/* 학원철거업체바닥철거 전용 스타일 — 다른 페이지와 공유하지 않음 */

:root {
  --color-primary: #422006;
  --color-bg: #FEF3C7;
  --color-accent: #B45309;
  --color-ink: #2A1704;
  --color-surface: #FFFDF5;
  --color-border: #E7C88A;

  --font-heading: 'IBM Plex Sans KR', 'Pretendard', sans-serif;
  --font-body: 'Noto Sans KR', 'Pretendard', sans-serif;

  /* 타입 스케일 1.250 */
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: 1.9531rem;
  --fs-2xl: 2.4414rem;

  --radius: 12px;
  --section-pad: 96px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-display: swap;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: var(--fs-base);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-display: swap;
  color: var(--color-primary);
  line-height: 1.35;
  margin: 0 0 0.6em;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); margin-top: 0; }

p { margin: 0 0 1em; }

a { color: var(--color-accent); }

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.header-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--color-bg);
}

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 10px 18px;
  border: 2px solid transparent;
}

.btn-call {
  background: var(--color-accent);
  color: #FFFDF5;
}

.btn-call:hover { background: #973F07; }

.header-call { font-size: var(--fs-sm); padding: 8px 16px; }

.btn-lg { font-size: var(--fs-md); padding: 14px 28px; }

/* HERO */
.hero {
  background: linear-gradient(180deg, #FEF3C7 0%, #FBE3A0 100%);
  padding-top: 72px;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 56px;
  text-align: center;
}

.hero-lead {
  font-size: var(--fs-md);
  color: var(--color-primary);
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero-floor {
  width: 100%;
  height: 96px;
  background-image:
    repeating-linear-gradient(90deg, rgba(66,32,6,0.14) 0 2px, transparent 2px 148px),
    repeating-linear-gradient(0deg, rgba(66,32,6,0.10) 0 2px, transparent 2px 48px),
    linear-gradient(180deg, #C9A96A 0%, #A98750 100%);
  background-color: #B98E4E;
}

@media (min-width: 1024px) {
  .hero-floor { height: 140px; }
}

/* SECTIONS */
.section {
  padding: var(--section-pad) 0;
}

.section-problem { background: var(--color-surface); }
.section-core { background: var(--color-bg); }
.section-diagram { background: var(--color-surface); }
.section-table { background: var(--color-bg); }
.section-photos { background: var(--color-surface); }
.section-faq { background: var(--color-bg); }

.lead-text {
  font-size: var(--fs-md);
  font-weight: 500;
}

.section-core h2 {
  border-left: 5px solid var(--color-accent);
  padding-left: 14px;
  margin-top: 2.2em;
}

.section-core h2:first-of-type { margin-top: 0; }

/* DIAGRAM */
.diagram-note {
  color: #5A3A18;
  font-size: var(--fs-sm);
}

.floor-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 720px;
  margin: 24px auto 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.floor-label text {
  font-family: var(--font-body);
  font-size: 14px;
  fill: #FFFDF5;
  font-weight: 500;
}

.floor-label text:nth-child(3) { fill: #2A1704; }

.floor-bracket line {
  stroke: var(--color-primary);
  stroke-width: 2;
}

.floor-bracket text {
  font-family: var(--font-body);
  font-size: 14px;
  fill: var(--color-primary);
  font-weight: 600;
}

/* TABLE */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--color-surface);
}

caption {
  text-align: left;
  font-weight: 600;
  padding: 12px 16px;
  color: var(--color-primary);
  background: #F6E4B0;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}

thead th {
  background: var(--color-primary);
  color: var(--color-bg);
  font-family: var(--font-heading);
}

tbody th[scope="row"] {
  font-weight: 600;
  color: var(--color-primary);
}

.table-caveat {
  font-size: var(--fs-sm);
  color: #5A3A18;
  margin-top: 16px;
}

/* PHOTOS */
.photo-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

@media (min-width: 640px) {
  .photo-grid {
    flex-direction: row;
    justify-content: center;
  }
}

.photo-item {
  margin: 0;
  max-width: 380px;
  width: 100%;
}

.photo-item picture {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-item figcaption {
  font-size: var(--fs-sm);
  color: #5A3A18;
  margin-top: 8px;
  text-align: center;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

summary {
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
}

details p {
  margin: 12px 0 0;
  font-size: var(--fs-sm);
}

@media (prefers-reduced-motion: no-preference) {
  details[open] summary ~ * {
    animation: fadein 0.25s ease-out;
  }
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CTA */
.section-cta {
  background: var(--color-primary);
  text-align: center;
}

.section-cta h2 { color: var(--color-bg); }
.section-cta p { color: #E7C88A; }

.cta-inner { max-width: 520px; }

/* FOOTER */
.site-footer {
  background: #2A1704;
  color: #E7C88A;
  padding: 48px 0 32px;
  font-size: var(--fs-sm);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #FCD34D;
  text-decoration: none;
}

.footer-links a:hover { text-decoration: underline; }

.footer-info { margin: 0; opacity: 0.85; }

/* BREAKPOINTS */
@media (min-width: 640px) {
  :root { --section-pad: 96px; }
  h1 { font-size: 2.75rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.2rem; }
  .lead-text { font-size: var(--fs-lg); }
}

@media (min-width: 1280px) {
  .container { max-width: 1080px; }
}

@media (prefers-color-scheme: dark) {
  body { background: #1C1002; color: #F5E6C8; }
  .section-problem, .section-diagram, .section-photos {
    background: #241705;
  }
  .section-core, .section-table, .section-faq { background: #1C1002; }
  h1, h2, h3 { color: #F5CE7A; }
  details { background: #241705; border-color: #4A3010; }
  .floor-svg { background: #241705; border-color: #4A3010; }
  table { background: #241705; }
  caption { background: #3A2508; color: #F5CE7A; }
  th, td { border-color: #4A3010; }
}
