/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

:root {
  --bg: #ffffff;
  --bg-soft: #F3FAFB;
  --bg-mint: #EAF8F4;
  --ink: #1B2430;
  --ink-soft: #5B6B75;
  --ink-faint: #8B98A1;
  --line: #E3EBEC;
  --primary: #0EA5B7;
  --primary-dark: #0A8B9B;
  --primary-ink: #086878;
  --before-tag: #8B98A1;
  --radius: 20px;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-ink);
  background: var(--bg-mint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.02rem; }
.section-alt { background: var(--bg-soft); }

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s ease;
}
.btn-call:hover { background: var(--primary-dark); }
.btn-call.large { padding: 17px 34px; font-size: 1.05rem; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
}

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.logo { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; display: flex; flex-direction: column; line-height: 1.25; }
.logo span { font-size: 0.7rem; font-weight: 600; color: var(--primary-ink); letter-spacing: 0.02em; }
.site-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.site-nav a:hover { color: var(--primary-ink); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  margin-left: 4px; flex-shrink: 0;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .15s ease, opacity .15s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: 64px 0 56px; }
.hero-inner { display: flex; align-items: center; gap: 48px; }
.hero-text { flex: 0 0 55%; max-width: 55%; }
.hero-text .eyebrow-line { color: var(--ink-soft); font-size: 1rem; margin-bottom: 14px; display: block; }
.hero-text h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.hero-text .desc { margin-top: 22px; font-size: 1.08rem; color: var(--ink-soft); max-width: 460px; }
.hero-text .cta-row { margin-top: 32px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-media { flex: 0 0 45%; max-width: 45%; position: relative; }
.hero-media figure { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(14,165,183,.35); }
.hero-media img { width: 100%; height: 420px; object-fit: cover; }
.hero-tag {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(20,30,36,.72); color: #fff; backdrop-filter: blur(4px);
  padding: 10px 16px; border-radius: 14px; font-size: 0.82rem;
}
.hero-tag b { display: block; color: #7CEAD8; font-size: 0.72rem; letter-spacing: 0.08em; margin-bottom: 2px; }

/* ===== Symptom strip ===== */
.symptom-strip { background: var(--ink); color: #fff; padding: 40px 0; }
.symptom-strip .section-head h2 { color: #fff; font-size: 1.2rem; font-weight: 700; }
.symptom-strip .section-head { margin-bottom: 26px; }
.symptom-row { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.symptom-row::-webkit-scrollbar { display: none; }
.symptom-item {
  flex: 1 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-right: 1px solid rgba(255,255,255,.14);
  font-size: 0.95rem; font-weight: 600; white-space: nowrap;
}
.symptom-item:last-child { border-right: none; }
.symptom-item .ico { font-size: 1.2rem; }

/* ===== Before / After hero comparison ===== */
.ba-slider { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.ba-figure { position: absolute; inset: 0; margin: 0; }
.ba-figure img { width: 100%; height: 100%; object-fit: cover; }
.ba-figure figcaption {
  position: absolute; top: 16px; left: 16px;
  background: rgba(20,30,36,.72); color: #fff; padding: 6px 12px; border-radius: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
}
.ba-before figcaption { background: rgba(91,107,117,.82); }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  transform: translateX(-50%); pointer-events: none;
}
.ba-handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 42px; height: 42px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.18); font-size: 1.1rem; color: var(--primary-ink);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; appearance: none; }

.ba-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.ba-notes { display: flex; flex-direction: column; gap: 28px; }
.ba-note h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.ba-note.before h3 { color: var(--before-tag); }
.ba-note.after h3 { color: var(--primary-ink); }
.ba-note ul li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: 0.95rem; margin-top: 6px; }
.ba-note ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }

/* extra small before/after gallery */
.ba-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.ba-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ba-card .ba-pair { display: grid; grid-template-columns: 1fr 1fr; }
.ba-card .ba-pair figure { position: relative; margin: 0; aspect-ratio: 1; }
.ba-card .ba-pair img { width: 100%; height: 100%; object-fit: cover; }
.ba-card .ba-pair figcaption {
  position: absolute; top: 8px; left: 8px; font-size: 0.65rem; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: rgba(20,30,36,.65); padding: 3px 8px; border-radius: 8px;
}
.ba-card .ba-caption { padding: 14px 16px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }

/* ===== Causes (typographic list) ===== */
.causes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cause-item { background: #fff; padding: 34px 28px; }
.cause-item .num { font-size: 0.85rem; font-weight: 800; color: var(--primary); letter-spacing: 0.05em; }
.cause-item h3 { margin-top: 14px; font-size: 1.12rem; font-weight: 700; line-height: 1.35; }
.cause-item p { margin-top: 10px; color: var(--ink-soft); font-size: 0.92rem; }

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 640px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-step { position: relative; padding: 0 0 40px 64px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step .dot {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-mint); color: var(--primary-ink); font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--line);
}
.timeline-step h3 { font-size: 1.05rem; font-weight: 700; padding-top: 8px; }
.timeline-step p { margin-top: 6px; color: var(--ink-soft); font-size: 0.92rem; }

/* ===== Hub links (fan types / symptoms) ===== */
.hub-links { display: flex; flex-wrap: wrap; gap: 12px; }
.hub-links a, .hub-links span {
  padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line); font-size: 0.94rem; font-weight: 600;
}
.hub-links a { color: var(--primary-ink); background: var(--bg-mint); border-color: transparent; }
.hub-links a:hover { background: var(--primary); color: #fff; }
.hub-links span { color: var(--ink-faint); background: #fff; }

.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-cloud span, .chip-cloud a { padding: 9px 16px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; }
.chip-cloud span { background: var(--bg-soft); color: var(--ink-soft); }
.chip-cloud a { background: var(--bg-mint); color: var(--primary-ink); }
.chip-cloud a:hover { background: var(--primary); color: #fff; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.95rem; }

/* ===== CTA band ===== */
.cta-band { background: var(--primary); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { font-size: 1.7rem; font-weight: 800; }
.cta-band p { margin-top: 10px; color: rgba(255,255,255,.85); }
.cta-band .cta-row { margin-top: 26px; }
.cta-band .btn-call { background: #fff; color: var(--primary-ink); }
.cta-band .btn-call:hover { background: #EAF8F4; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-soft); }
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand { font-weight: 800; font-size: 1rem; }
.footer-biz { display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; color: var(--ink-soft); }
.footer-biz a { color: var(--primary-ink); font-weight: 600; }
.footer-links { display: flex; gap: 18px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }

/* ===== Generic inner page ===== */
.page-hero { padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; }
.page-hero .desc { margin-top: 16px; color: var(--ink-soft); font-size: 1.04rem; max-width: 640px; }
.page-hero .cta-row { margin-top: 24px; }

.page-image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px auto 40px; max-width: 1000px; }
.page-image-pair figure { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 3/2; }
.page-image-pair img { width: 100%; height: 100%; object-fit: cover; }
.page-image-pair figcaption {
  position: absolute; top: 12px; left: 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: rgba(20,30,36,.7); padding: 5px 12px; border-radius: 8px;
}
.page-image-pair .before figcaption { background: rgba(91,107,117,.82); }

.page-image-single { margin: 24px auto 40px; max-width: 800px; border-radius: 16px; overflow: hidden; }
.page-image-single img { width: 100%; max-height: 640px; object-fit: cover; }

.prose { max-width: 720px; }
.prose h2 { font-size: 1.4rem; font-weight: 700; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 14px; }
.prose ul { margin: 14px 0; }
.prose ul li { position: relative; padding-left: 20px; color: var(--ink-soft); margin-top: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.prose h3 { font-size: 1.08rem; font-weight: 700; margin: 24px 0 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: 0.95rem; }
.prose table caption { text-align: left; color: var(--ink-faint); font-size: 0.82rem; margin-bottom: 6px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.prose th { color: var(--ink); font-weight: 700; background: #F5FAFB; }

.related-block { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 40px; padding-bottom: 72px; }
.related-block h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; }

/* ===== Region detail pages (지역+키워드 시공사례) ===== */
.region-badge {
  display: inline-block; padding: 5px 14px; margin-bottom: 14px;
  background: var(--bg-mint); color: var(--primary-ink);
  border-radius: 999px; font-size: 0.85rem; font-weight: 700;
}
.info-card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 32px 0 48px; }
.info-card-row .info-card { background: #fff; padding: 22px 20px; }
.info-card-row .info-card .k { display: block; font-size: 0.82rem; color: var(--ink-faint); font-weight: 600; margin-bottom: 6px; }
.info-card-row .info-card .v { display: block; font-size: 1.05rem; color: var(--ink); font-weight: 700; }

.nseo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nseo-cards .nseo-card {
  display: block; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #fff; text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.nseo-cards .nseo-card:hover { box-shadow: 0 16px 30px -18px rgba(20,30,36,.24); transform: translateY(-2px); }
.nseo-cards .nseo-card figure { margin: 0; aspect-ratio: 4/3; }
.nseo-cards .nseo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nseo-cards .nseo-card .label { padding: 14px 16px; font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.nseo-cards.grid-2-3 { grid-template-columns: repeat(6, 1fr); }
.nseo-cards.grid-2-3 .nseo-card:nth-child(-n+3) { grid-column: span 2; }
.nseo-cards.grid-2-3 .nseo-card:nth-child(n+4) { grid-column: span 3; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  section { padding: 60px 0; }
  .hero-inner { flex-direction: column; }
  .hero-text, .hero-media { flex: 0 0 auto; max-width: 100%; }
  .hero-media img { height: 280px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 24px 16px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -12px rgba(20,30,36,.18);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
  .ba-layout { grid-template-columns: 1fr; }
  .ba-gallery { grid-template-columns: 1fr; }
  .causes-grid { grid-template-columns: 1fr; }
  .page-image-pair { grid-template-columns: 1fr; }
  .info-card-row { grid-template-columns: 1fr; }
  .nseo-cards, .nseo-cards.grid-2-3 { grid-template-columns: 1fr; }
  .nseo-cards.grid-2-3 .nseo-card:nth-child(-n+3),
  .nseo-cards.grid-2-3 .nseo-card:nth-child(n+4) { grid-column: span 1; }

  /* switch drag-slider to a stacked before/above/after view */
  .ba-slider { position: static; aspect-ratio: auto; display: flex; flex-direction: column; gap: 12px; border-radius: 0; background: none; }
  .ba-figure { position: static; border-radius: var(--radius); overflow: hidden; }
  .ba-figure img { height: 260px; }
  .ba-before { clip-path: none; }
  .ba-handle, .ba-range { display: none; }

  /* symptom strip: fixed 2-column grid so all items are visible without a hidden horizontal scroll */
  .symptom-row { display: grid; grid-template-columns: 1fr 1fr; overflow-x: visible; }
  .symptom-item { border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); white-space: normal; }
  .symptom-item:nth-child(2n) { border-right: none; }
  .symptom-item:nth-last-child(-n+2) { border-bottom: none; }
}
