/* chaekgeolsang-cheori: 학원철거업체책걸상처리 전용 스타일시트 (독립, 공유 금지) */

:root {
  --color-ink: #1F2937;
  --color-bg: #FFFFFF;
  --color-accent: #F97316;
  --color-panel: #F9FAFB;
  --color-accent-soft: #FFF7ED;
  --font-heading: 'Gothic A1', 'Pretendard', 'Noto Sans KR', sans-serif;
  --font-body: 'Gothic A1', 'Pretendard', 'Noto Sans KR', sans-serif;

  /* type scale: 1.250 (major third) */
  --fs-base: 1rem;
  --fs-sm: 0.8rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.563rem;
  --fs-xl: 1.953rem;
  --fs-xxl: 2.441rem;

  --space-section: 80px;
  --radius: 12px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  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-weight: 900;
  color: var(--color-ink);
  line-height: 1.35;
  margin: 0 0 0.6em;
}

h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }

p { margin: 0 0 1em; }

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.section-inner {
  max-width: 1080px;
  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-bg);
  border-bottom: 1px solid #E5E7EB;
}

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

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

.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background-color 0.15s ease;
}

.header-call {
  background: var(--color-accent);
  color: #FFFFFF;
  padding: 10px 18px;
  font-size: var(--fs-sm);
}

.header-call:hover { background: #EA6A0C; }

/* hero */
.hero {
  padding: 56px 0;
  background: var(--color-panel);
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  order: 2;
}

.hero-grid-cell {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-ink), #374151);
}

.cell-a { background: linear-gradient(135deg, var(--color-accent), #FDBA74); }
.cell-b { background: linear-gradient(135deg, var(--color-ink), #4B5563); }
.cell-c { background: linear-gradient(135deg, #4B5563, var(--color-ink)); }
.cell-d { background: linear-gradient(135deg, #FDBA74, var(--color-accent)); }

.hero-text { order: 1; }

.hero-text h1 { font-size: var(--fs-xxl); }

.hero-summary {
  font-size: var(--fs-md);
  color: #374151;
  margin-bottom: 1.4em;
}

.btn-cta-primary {
  background: var(--color-accent);
  color: #FFFFFF;
  padding: 14px 26px;
  font-size: var(--fs-base);
}

.btn-cta-primary:hover { background: #EA6A0C; }

/* sections */
.section { padding: var(--space-section) 0; }

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

.section-core h2:not(:first-child) { margin-top: 1.6em; }

/* diagram */
.diagram-lead { color: #374151; }

.quantity-diagram {
  display: block;
  width: 100%;
  height: auto;
  background: var(--color-panel);
  border-radius: var(--radius);
  border: 1px solid #E5E7EB;
}

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

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

caption {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: #374151;
  background: var(--color-panel);
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #E5E7EB;
  font-size: 0.95rem;
}

thead th {
  background: var(--color-ink);
  color: #FFFFFF;
  font-weight: 700;
}

tbody tr:last-child td { border-bottom: none; }

.table-note {
  margin-top: 16px;
  font-size: var(--fs-sm);
  color: #4B5563;
}

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

.photo-item {
  margin: 0;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.photo-item picture,
.photo-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.photo-item figcaption {
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: #4B5563;
}

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

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

summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1.05rem;
}

details p {
  margin: 12px 0 0;
  color: #374151;
}

/* cta */
.section-cta {
  background: var(--color-ink);
  color: #FFFFFF;
}

.section-cta h2 { color: #FFFFFF; }
.section-cta p { color: #D1D5DB; }
.cta-inner { text-align: center; }

/* footer */
.site-footer {
  background: #111827;
  color: #D1D5DB;
  padding: 48px 0;
}

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

.footer-links a {
  color: #FDBA74;
  text-decoration: none;
  font-size: var(--fs-sm);
}

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

.footer-info {
  font-size: var(--fs-sm);
  color: #9CA3AF;
  margin: 0;
}

/* single animation point: hero grid cells fade/scale in */
@media (prefers-reduced-motion: no-preference) {
  .hero-grid-cell {
    animation: cell-in 0.6s ease both;
  }
  .cell-a { animation-delay: 0s; }
  .cell-b { animation-delay: 0.08s; }
  .cell-c { animation-delay: 0.16s; }
  .cell-d { animation-delay: 0.24s; }

  @keyframes cell-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
  }
}

/* breakpoints */
@media (min-width: 640px) {
  .photo-row {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
  .photo-item { max-width: 31%; }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid { order: 1; }
  .hero-text { order: 2; }

  h1 { font-size: 2.9rem; }
}

@media (min-width: 1280px) {
  .section-inner { padding: 0 32px; }
  .hero-inner { padding: 0 32px; }
}
