/*
Theme Name: Eutteum ENG
Theme URI:
Author: 5FUNNEL / OSC
Description: 으뜸ENG 방수·외벽도색 / 잡철·철구조물 C 리드형 랜딩 테마 (Astro 라이브 사이트 이식 · trust blue).
Version: 1.0
Text Domain: eutteum
*/

/* ===========================================================================
   1. DESIGN TOKENS — ported from @osc/ui global.css :root
      (trust/blue construction tone, single brand blue + warm CTA accent).
      EVERY variable referenced by LeadForm + sections is defined here.
   =========================================================================== */
:root {
  /* Brand — blue (물·철 = trust) + warm CTA accent */
  --brand-primary: #1f5fbf;       /* primary blue */
  --brand-primary-dark: #16498f;  /* navy — pill text / ours emphasis */
  --brand-primary-soft: #eaf1fb;  /* tinted background */
  --brand-ink: #16202e;           /* near-black text */
  --brand-ink-soft: #54616f;      /* secondary text */
  --brand-line: #e2e7ee;          /* hairline borders */
  --brand-surface: #ffffff;
  --brand-surface-alt: #f6f8fb;
  --brand-accent: #ff7a1a;        /* CTA / phone accent (warm) */
  --brand-success: #14924d;

  /* Typography */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;

  /* Radius / shadow */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(22, 32, 46, 0.04), 0 8px 24px rgba(22, 32, 46, 0.06);

  /* Layout */
  --container-max: 720px;         /* mobile-first single-column lead page */
  --mobile-callbar-h: 64px;       /* reserved space for fixed bottom call bar */
  --header-h: 58px;
}

/* ===========================================================================
   2. BASE RESETS — ported from global.css
   =========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--brand-ink);
  background: var(--brand-surface);
  line-height: 1.7;
  /* Korean text: prevent mid-syllable line breaks across the whole page. */
  word-break: keep-all;
  overflow-wrap: anywhere;
  /* iOS Safari address-bar safe — dvh, never 100vh. */
  min-height: 100dvh;
}

/* leave room for the fixed mobile call bar so the footer isn't covered */
@media (max-width: 767px) {
  body { padding-bottom: var(--mobile-callbar-h); }
}

/* Korean headlines: snug leading + balanced wrap (no orphan words). */
h1, h2, h3 {
  line-height: 1.25;
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
p { text-wrap: pretty; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ===========================================================================
   3. SHARED UTILITIES — ported from global.css
   =========================================================================== */
.osc-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.osc-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-primary);
  text-transform: none;
}

/* CTA buttons — GPU-safe transitions only (transform/opacity). */
.osc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 14px 22px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
  will-change: transform;
}
.osc-btn:active { transform: translateY(1px); }
.osc-btn-primary { background: var(--brand-primary); color: #fff; }
.osc-btn-call { background: var(--brand-accent); color: #fff; }
.osc-btn-ghost { background: #fff; color: var(--brand-primary); border-color: var(--brand-primary); }

/* Placeholder image slot — labeled, never a real unverified asset. */
.osc-image-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--brand-surface-alt);
  border: 1px dashed var(--brand-line);
  border-radius: var(--radius-md);
  color: var(--brand-ink-soft);
  font-size: 0.8125rem;
  padding: 24px;
  min-height: 160px;
}

/* Reveal-on-scroll (main.js adds .in). GPU-safe. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .osc-btn { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===========================================================================
   4. HEADER (WP theme — fixed + solid-on-scroll) + burger
   Ported/adapted from @osc/ui Header.astro (sticky) → WP fixed header.
   =========================================================================== */
.hdr {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hdr.solid {
  background: #fff;
  border-bottom-color: var(--brand-line);
}
.hdr__in {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }

/* push page content below the fixed header */
body { padding-top: var(--header-h); }

.nav {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-ink-soft);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav a:hover { color: var(--brand-primary); }
.nav a.active {
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  font-weight: 600;
}
.nav .nav__tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #fff;
  background: var(--brand-accent);
  padding: 8px 14px;
  border-radius: 999px;
  margin-left: 6px;
}
.nav .nav__tel:hover { color: #fff; opacity: 0.92; }

/* burger */
.burger {
  margin-left: auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav drawer */
@media (max-width: 767px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--brand-line);
    padding: 10px 16px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: var(--shadow-card);
  }
  .nav.open {
    display: flex;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    margin-left: 0;
  }
  .nav a { padding: 12px 8px; font-size: 1rem; }
  .nav .nav__tel { justify-content: center; margin: 6px 0 0; padding: 12px; }
}

/* desktop: show inline nav, hide burger */
@media (min-width: 768px) {
  .nav { display: flex; }
  .burger { display: none; }
}

/* ===========================================================================
   5. SECTION primitive + SECTION HEADING
   Ported from @osc/ui Section.astro + SectionHeading.astro.
   =========================================================================== */
.osc-section {
  background: var(--section-bg);
  padding-block: 56px;
}
@media (min-width: 640px) {
  .osc-section { padding-block: 72px; }
}

.osc-heading { margin-bottom: 28px; }
.osc-heading[data-align="center"] { text-align: center; }
.osc-heading h2 { font-size: 1.55rem; margin-top: 6px; }
@media (min-width: 640px) {
  .osc-heading h2 { font-size: 1.9rem; }
}
.osc-heading-lead {
  margin-top: 12px;
  color: var(--brand-ink-soft);
  font-size: 1rem;
}

/* ===========================================================================
   6. HERO — ported from sections/Hero.astro
   =========================================================================== */
.osc-hero-grid {
  display: grid;
  gap: 28px;
}
.osc-hero-copy h1 {
  font-size: 1.85rem;
  margin-top: 8px;
}
.osc-hero-sub {
  margin-top: 14px;
  color: var(--brand-ink-soft);
  font-size: 1.02rem;
}
@media (min-width: 860px) {
  .osc-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
  }
  .osc-hero-copy h1 { font-size: 2.4rem; }
}

/* ===========================================================================
   7. 긍정세트 — ported from sections/PositiveSet.astro
   =========================================================================== */
.osc-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.osc-checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--brand-surface-alt);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.98rem;
}
.osc-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
@media (min-width: 640px) {
  .osc-checklist { grid-template-columns: 1fr 1fr; }
}

/* ===========================================================================
   8. 사회적증거 — BeforeAfterGallery + RealtimeIntake + proof CTA
   Ported from sections/SocialProof.astro + @osc/ui BeforeAfterGallery.astro
   + RealtimeIntake.astro.
   =========================================================================== */
.osc-proof-intake { margin-top: 28px; }
.osc-proof-cta { margin-top: 28px; }

/* Before/after gallery */
.osc-ba {
  display: grid;
  gap: 28px;
}
.osc-ba-cat {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}
.osc-ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.osc-ba-grid figure {
  margin: 0;
  position: relative;
}
.osc-ba-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.osc-ba-grid figcaption {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(22, 32, 46, 0.7);
  padding: 3px 8px;
  border-radius: 4px;
}
.osc-ba-caption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--brand-ink-soft);
}
/* 단일 완성 showcase (before/after 없이 after만) */
.osc-ba-single figure { margin: 0; }
.osc-ba-single img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
}
/* AD-LAW: AI-generated example disclaimer (visible). */
.osc-ba-disclaimer {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--brand-ink-soft);
  text-align: center;
}

/* RealtimeIntake */
.osc-intake {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.osc-intake-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.osc-intake-pin {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--brand-primary);
}
.osc-intake-sub {
  font-size: 0.78rem;
  color: var(--brand-ink-soft);
  margin: 0 0 14px;
}
.osc-intake-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.osc-intake-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.82rem;
  padding: 9px 11px;
  background: var(--brand-surface-alt);
  border-radius: var(--radius-sm);
}
.osc-intake-time {
  color: var(--brand-ink-soft);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  white-space: nowrap;
  padding-top: 1px;
}
.osc-intake-main b {
  font-weight: 700;
  color: var(--brand-ink);
}
.osc-intake-svc {
  display: block;
  color: var(--brand-ink-soft);
  font-size: 0.78rem;
  margin-top: 1px;
}
.osc-intake-disclaimer {
  font-size: 0.74rem;
  color: var(--brand-ink-soft);
  background: var(--brand-surface-alt);
  border: 1px dashed var(--brand-line);
  border-radius: 8px;
  padding: 9px 11px;
  margin-top: 12px;
  line-height: 1.5;
}

/* 시공 가능 지역·서비스 chips (사실 기반 — 조작 RealtimeIntake 대체) */
.osc-coverage-svc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.osc-coverage-svc li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-ink);
  background: var(--brand-surface-alt);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 6px 13px;
}

/* ===========================================================================
   9. 가치입증 — ported from sections/ValueProof.astro
   =========================================================================== */
.osc-valuegrid {
  display: grid;
  gap: 14px;
}
.osc-valuecard {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.osc-valuecard-media {
  aspect-ratio: 3 / 2;
  background: var(--brand-surface-alt);
}
.osc-valuecard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.osc-valuecard-media .osc-image-slot {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  min-height: 0;
}
.osc-valuecard-body { padding: 16px 18px 18px; }
.osc-valuecard-body h3 {
  font-size: 1.05rem;
  color: var(--brand-primary);
}
.osc-valuecard-body p {
  margin-top: 8px;
  color: var(--brand-ink-soft);
  font-size: 0.92rem;
}
.osc-valuenote {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--brand-ink-soft);
  text-align: center;
}
@media (min-width: 640px) {
  .osc-valuegrid { grid-template-columns: 1fr 1fr; }
}

/* ===========================================================================
   10. 소구점 구체화 — ported from sections/PointDetails.astro
   =========================================================================== */
.osc-points {
  display: grid;
  gap: 24px;
}
.osc-point {
  display: grid;
  gap: 16px;
  align-items: center;
}
.osc-point-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.osc-point-num {
  font-weight: 800;
  color: var(--brand-primary);
  font-size: 0.9rem;
}
.osc-point-copy h3 {
  font-size: 1.2rem;
  margin-top: 6px;
}
.osc-point-copy p {
  margin-top: 8px;
  color: var(--brand-ink-soft);
}
@media (min-width: 720px) {
  .osc-point {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .osc-point[data-flip="true"] .osc-point-media { order: 2; }
}

/* ===========================================================================
   11. 순서(프로세스) — ported from sections/ProcessSteps.astro
   =========================================================================== */
.osc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}
.osc-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--brand-surface-alt);
  border-left: 3px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.osc-step-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.osc-step-label { font-weight: 700; }
.osc-step-body {
  margin-top: 4px;
  color: var(--brand-ink-soft);
  font-size: 0.9rem;
}

/* ===========================================================================
   12. 비교 — ported from sections/Compare.astro
   =========================================================================== */
.osc-compare {
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  font-size: 0.88rem;
}
.osc-compare-head,
.osc-compare-row {
  display: grid;
  grid-template-columns: 0.72fr 1fr 1.05fr;
}
.osc-compare-row { border-top: 1px solid var(--brand-line); }
.osc-compare-head span,
.osc-compare-row span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 12px;
}
.osc-compare-axis-head {
  background: var(--brand-ink);
  color: #c9d3df;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.osc-compare-others-head {
  background: var(--brand-surface-alt);
  color: var(--brand-ink);
  font-weight: 700;
  border-left: 1px solid var(--brand-line);
}
.osc-compare-ours-head {
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  justify-content: space-between;
}
.osc-compare-pill {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 800;
  font-style: normal;
  background: #fff;
  color: var(--brand-primary-dark);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.osc-compare-axis {
  background: var(--brand-surface-alt);
  font-weight: 700;
  color: var(--brand-ink);
  font-size: 0.82rem;
}
.osc-compare-others { color: var(--brand-ink-soft); }
.osc-compare-ours {
  background: var(--brand-primary-soft);
  color: var(--brand-primary-dark);
  font-weight: 700;
  box-shadow: inset 2px 0 0 var(--brand-primary);
}
.osc-mark {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 900;
  font-style: normal;
}
.osc-mark-x { background: #fdecec; color: #c0392b; }
.osc-mark-v { background: var(--brand-primary); color: #fff; }

/* ===========================================================================
   13. 반박제거 — ported from sections/Rebuttal.astro
   =========================================================================== */
.osc-rebuttals {
  display: grid;
  gap: 14px;
}
.osc-rebuttal {
  background: var(--brand-surface-alt);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  padding: 18px;
}
.osc-rebuttal-q {
  font-weight: 600;
  color: var(--brand-ink);
}
.osc-rebuttal-a {
  margin-top: 8px;
  color: var(--brand-ink-soft);
  font-size: 0.92rem;
}

/* ===========================================================================
   14. Q&A — ported from sections/Faq.astro (native <details>)
   =========================================================================== */
.osc-faq {
  display: grid;
  gap: 10px;
}
.osc-faq-item {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  padding: 4px 16px;
}
.osc-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.osc-faq-item summary::-webkit-details-marker { display: none; }
.osc-faq-item summary::after {
  content: "+";
  color: var(--brand-primary);
  font-weight: 700;
}
.osc-faq-item[open] summary::after { content: "\2212"; }
.osc-faq-item p {
  padding: 0 0 16px;
  color: var(--brand-ink-soft);
  font-size: 0.92rem;
}

/* ===========================================================================
   15. 최종 CTA — ported from sections/FinalCta.astro
   =========================================================================== */
.osc-final {
  max-width: 520px;
  margin-inline: auto;
}

/* ===========================================================================
   16. LEADFORM — VERBATIM port of @osc/ui LeadForm.astro <style>
   (field names/classes are a HARD CONTRACT with lead.js — do NOT rename).
   =========================================================================== */
.osc-leadform {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
}
.osc-leadform-head h3 { font-size: 1.15rem; }
.osc-leadform-head p {
  margin-top: 6px;
  color: var(--brand-ink-soft);
  font-size: 0.9rem;
}
.osc-leadform-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.osc-field {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}
.osc-field em {
  color: var(--brand-accent);
  font-style: normal;
}
.osc-field input,
.osc-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  background: var(--brand-surface-alt);
}
.osc-field input:focus,
.osc-field textarea:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 1px;
  background: #fff;
}
.osc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.osc-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--brand-ink-soft);
  line-height: 1.5;
}
.osc-consent input {
  margin-top: 3px;
  flex: 0 0 auto;
}
.osc-leadform-error {
  margin: 0;
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 500;
}
.osc-leadform-actions {
  display: grid;
  gap: 10px;
}
.osc-leadform-actions .osc-btn { width: 100%; }
.osc-leadform-done {
  text-align: center;
  padding: 28px 12px;
}
.osc-done-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-success);
}
.osc-done-sub {
  margin-top: 8px;
  color: var(--brand-ink-soft);
  font-size: 0.9rem;
}
@media (min-width: 480px) {
  .osc-leadform-actions { grid-template-columns: 1fr auto; }
  .osc-leadform-actions .osc-btn-primary { width: 100%; }
}

/* ===========================================================================
   17. FOOTER — ported from @osc/ui Footer.astro (+ WP nav row)
   =========================================================================== */
.osc-footer {
  background: var(--brand-ink);
  color: #c7d0db;
  padding-block: 40px;
  font-size: 0.875rem;
}
.osc-footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}
.osc-footer-info {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}
.osc-footer-info > div { display: flex; gap: 10px; }
.osc-footer-info dt {
  flex: 0 0 96px;
  color: #8a97a6;
  margin: 0;
}
.osc-footer-info dd { margin: 0; }
.osc-footer-info dd a { text-decoration: underline; text-underline-offset: 2px; }
.osc-footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}
.osc-footer-nav a {
  color: #c7d0db;
  font-size: 0.82rem;
}
.osc-footer-nav a:hover { color: #fff; }
.osc-footer-legal {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.osc-footer-legal a {
  color: #8a97a6;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.osc-footer-legal a:hover { color: #c7d0db; }
.osc-footer-copy {
  color: #6b7886;
  font-size: 0.75rem;
  margin-top: 10px;
}

/* ===========================================================================
   18. MOBILE CALL BAR — ported from @osc/ui MobileCallBar.astro
   =========================================================================== */
.osc-callbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  height: var(--mobile-callbar-h);
  background: var(--brand-line);
  box-shadow: 0 -2px 12px rgba(22, 32, 46, 0.12);
  padding-bottom: env(safe-area-inset-bottom);
}
.osc-callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.98rem;
}
.osc-callbar-phone { background: var(--brand-accent); color: #fff; }
.osc-callbar-form { background: var(--brand-primary); color: #fff; }
/* desktop: hide the bar (header already shows the phone). */
@media (min-width: 768px) {
  .osc-callbar { display: none; }
}

/* ===========================================================================
   개인정보처리방침 (page-privacy.php) — ported from @osc/ui PrivacyPolicy.astro
   =========================================================================== */
.pp-wrap {
  max-width: 720px;
  margin-inline: auto;
  padding: 96px 20px 80px;
  color: var(--brand-ink);
  font-size: 0.9375rem;
  line-height: 1.75;
  word-break: keep-all;
}
.pp-header { margin-bottom: 48px; border-bottom: 1px solid var(--brand-line); padding-bottom: 28px; }
.pp-eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--brand-primary); margin-bottom: 8px; }
.pp-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; color: var(--brand-ink); margin: 0 0 10px; line-height: 1.25; text-wrap: balance; }
.pp-meta { font-size: 0.8125rem; color: var(--brand-ink-soft); margin: 0; }
.pp-section { margin-bottom: 36px; }
.pp-section h2 { font-size: 1.0625rem; font-weight: 700; color: var(--brand-ink); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--brand-line); line-height: 1.4; text-wrap: balance; }
.pp-section p { color: var(--brand-ink); margin-bottom: 10px; }
.pp-section p:last-child { margin-bottom: 0; }
.pp-dl { display: grid; gap: 12px; margin: 0; }
.pp-dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: start; }
.pp-dl dt { font-weight: 600; color: var(--brand-ink-soft); font-size: 0.875rem; margin: 0; padding-top: 2px; }
.pp-dl dd { margin: 0; color: var(--brand-ink); }
.pp-dl a { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 2px; }
.pp-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.pp-list li { color: var(--brand-ink); }
.pp-placeholder { color: var(--brand-ink-soft); font-style: italic; font-size: 0.875rem; }
@media (max-width: 480px) {
  .pp-title { font-size: 1.375rem; }
  .pp-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .pp-dl dt { font-size: 0.8125rem; }
}

/* ===========================================================================
   19. BLOG — hub (home.php) + post (single.php) + archive (index.php)
       Ported from kangwon-theme blog, recolored to eutteum --brand-* tokens.
       All Pretendard sans, blue primary (#1f5fbf) + warm orange accent (#ff7a1a).
       NOTE: dev source = _preview-blog.css. On deploy this block is appended
       to style.css verbatim; the _preview-* files are NOT uploaded.
   =========================================================================== */
:root { --blog-max: 1120px; }

/* Wider container for blog grids (site default .osc-container = 720px, too narrow). */
.bwrap { width: 100%; max-width: var(--blog-max); margin-inline: auto; padding-inline: 20px; }

/* On blog pages, align the fixed header + footer with the wider blog content.
   body.blog is added via body_class on is_home/is_single/is_archive/is_category/is_search. */
body.blog .hdr .osc-container,
body.blog .osc-footer .osc-container { max-width: var(--blog-max); }

/* Shared blog eyebrow (kangwon used .eyebrow; keep for blog templates). */
.eyebrow { display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: var(--brand-primary); }

/* ---------------------------------------------------------------------------
   BLOG HERO (home.php)
   --------------------------------------------------------------------------- */
.bhero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: #fff;
  padding: 52px 0 46px;
}
.bhero::after { content: ""; position: absolute; right: -70px; top: -70px; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,0.16); border-radius: 50%; }
.bhero::before { content: ""; position: absolute; right: 24px; top: 26px; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; }
.bhero__in { position: relative; z-index: 1; }
.bhero .eyebrow { color: #ffd0ab; }
.bhero h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 12px 0 12px; color: #fff; }
.bhero p { color: rgba(255,255,255,0.86); max-width: 34em; font-size: 1.02rem; }
@media (min-width: 640px) { .bhero { padding: 70px 0 58px; } }

/* ---------------------------------------------------------------------------
   CATEGORY CHIP BAR (sticky under fixed header)
   --------------------------------------------------------------------------- */
.cats { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--brand-line); }
.cats__in { display: flex; gap: 8px; padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
.cats__in::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--brand-line); background: #fff; font-size: 0.9rem; font-weight: 600; color: var(--brand-ink-soft); white-space: nowrap; transition: border-color 0.2s ease, color 0.2s ease; }
.chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.chip.on { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* ---------------------------------------------------------------------------
   FEATURED (latest post)
   --------------------------------------------------------------------------- */
.feat { padding: 44px 0 26px; }
.feat__card { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--brand-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.feat__img { aspect-ratio: 16 / 10; overflow: hidden; }
.feat__img img { width: 100%; height: 100%; object-fit: cover; }
.feat__body { padding: 24px 22px 26px; }
.feat__meta { display: flex; gap: 10px; align-items: center; font-size: 0.8rem; font-weight: 700; color: var(--brand-primary); letter-spacing: 0.03em; }
.feat__meta span { color: var(--brand-ink-soft); font-weight: 500; }
.feat__body h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 12px 0 10px; }
.feat__body p { color: var(--brand-ink-soft); margin-bottom: 16px; }
.txtlink { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-primary); font-weight: 700; font-size: 0.95rem; }
.txtlink:hover { color: var(--brand-primary-dark); }
@media (min-width: 820px) {
  .feat__card { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .feat__body { padding: 34px 38px; }
}

/* ---------------------------------------------------------------------------
   LIST GRID (remaining posts)
   --------------------------------------------------------------------------- */
.list { padding: 22px 0 72px; }
.list__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.bcard { display: block; background: #fff; border: 1px solid var(--brand-line); border-radius: var(--radius-md); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.bcard__img { aspect-ratio: 16 / 10; overflow: hidden; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.bcard:hover .bcard__img img { transform: scale(1.04); }
.bcard__body { padding: 16px 18px 18px; }
.bcard__meta { display: flex; gap: 8px; align-items: center; font-size: 0.76rem; font-weight: 700; color: var(--brand-primary); letter-spacing: 0.03em; }
.bcard__meta span { color: var(--brand-ink-soft); font-weight: 500; }
.bcard__body h3 { font-size: 1.08rem; margin: 8px 0 6px; line-height: 1.45; }
.bcard__body p { color: var(--brand-ink-soft); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) { .list__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .list__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------------------
   PAGINATION (the_posts_pagination → .pagination .nav-links)
   --------------------------------------------------------------------------- */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .nav-links a,
.pagination .nav-links span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--brand-line); border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; color: var(--brand-ink-soft);
}
.pagination .nav-links a:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.pagination .nav-links .current { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* ---------------------------------------------------------------------------
   BLOG BOTTOM CTA (lead-oriented — phone + 상담)
   --------------------------------------------------------------------------- */
.bstrip { background: var(--brand-primary-soft); text-align: center; padding: 54px 0; }
.bstrip .eyebrow { color: var(--brand-primary); }
.bstrip h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 10px 0 10px; color: var(--brand-ink); }
.bstrip p { color: var(--brand-ink-soft); max-width: 32em; margin: 0 auto 22px; }
.bstrip__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------------
   READING PROGRESS (single)
   --------------------------------------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); z-index: 60; transition: width 0.1s linear; }

/* ---------------------------------------------------------------------------
   POST HERO (single)
   --------------------------------------------------------------------------- */
.phero { background: var(--brand-surface-alt); padding: 40px 0 32px; border-bottom: 1px solid var(--brand-line); }
.phero__crumb { font-size: 0.85rem; color: var(--brand-ink-soft); margin-bottom: 16px; }
.phero__crumb a { color: var(--brand-ink-soft); }
.phero__crumb a:hover { color: var(--brand-primary); }
.phero__meta { display: flex; gap: 10px; align-items: center; font-size: 0.82rem; font-weight: 700; color: var(--brand-primary); letter-spacing: 0.03em; }
.phero__meta span { color: var(--brand-ink-soft); font-weight: 500; }
.phero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 12px 0 12px; max-width: 20em; line-height: 1.3; }
.phero__dek { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--brand-ink-soft); max-width: 36em; }
.phero__cover { margin-top: 28px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; }
.phero__cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------------------
   POST BODY + TOC (single)
   --------------------------------------------------------------------------- */
.pbody { padding: 44px 0 60px; }
.pbody__grid { display: grid; grid-template-columns: 1fr; }
.toc { display: none; }
.article { min-width: 0; }
.toc-mobile { background: #fff; border: 1px solid var(--brand-line); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 28px; }
.toc-mobile summary { font-weight: 700; cursor: pointer; color: var(--brand-primary); font-size: 0.95rem; }
.toc-mobile ul { list-style: none; margin: 12px 0 2px; padding: 0; display: grid; gap: 8px; }
.toc-mobile a { font-size: 0.92rem; color: var(--brand-ink-soft); }
.toc-mobile a:hover { color: var(--brand-primary); }

.article h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 40px 0 14px; scroll-margin-top: calc(var(--header-h) + 20px); color: var(--brand-ink); }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.15rem; margin: 26px 0 10px; color: var(--brand-ink); }
.article p { margin-bottom: 18px; font-size: 1.04rem; color: #2c3644; line-height: 1.85; }
.article strong { color: var(--brand-primary-dark); font-weight: 700; }
.article ul, .article ol { margin: 0 0 18px 1.1rem; display: grid; gap: 8px; }
.article li { padding-left: 4px; color: #2c3644; font-size: 1.02rem; line-height: 1.7; }
.article ul li::marker { color: var(--brand-accent); }
.article ol li::marker { color: var(--brand-primary); font-weight: 700; }
.article figure { margin: 26px 0; }
.article figure img { width: 100%; border-radius: var(--radius-md); }
.article figcaption { font-size: 0.85rem; color: var(--brand-ink-soft); text-align: center; margin-top: 10px; }
.article blockquote { border-left: 3px solid var(--brand-primary); background: var(--brand-primary-soft); padding: 14px 18px; margin: 24px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--brand-primary-dark); font-size: 1.05rem; line-height: 1.7; }

@media (min-width: 981px) {
  .pbody__grid { grid-template-columns: 220px minmax(0, 720px); gap: 0 clamp(28px, 4vw, 56px); justify-content: center; }
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; height: max-content; }
  .toc__label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; color: var(--brand-primary); text-transform: uppercase; margin-bottom: 14px; }
  .toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; border-left: 1px solid var(--brand-line); }
  .toc a { display: block; padding: 3px 0 3px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 0.9rem; color: var(--brand-ink-soft); line-height: 1.5; transition: color 0.2s ease, border-color 0.2s ease; }
  .toc a:hover { color: var(--brand-ink); }
  .toc a.active { color: var(--brand-primary); border-left-color: var(--brand-primary); font-weight: 700; }
  .toc-mobile { display: none; }
}

/* ---------------------------------------------------------------------------
   LEAD CTA (single — replaces kangwon brand CTA)
   --------------------------------------------------------------------------- */
.pcta { background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary)); color: #fff; text-align: center; padding: 56px 0; }
.pcta .eyebrow { color: #ffd0ab; }
.pcta h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 10px 0 10px; color: #fff; }
.pcta p { color: rgba(255,255,255,0.86); max-width: 30em; margin: 0 auto 22px; }
.pcta__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pcta .osc-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.pcta .osc-btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------------------------------------------------------------------------
   RELATED (single)
   --------------------------------------------------------------------------- */
.rel { padding: 60px 0; background: var(--brand-surface-alt); border-top: 1px solid var(--brand-line); }
.rel__head { margin-bottom: 28px; }
.rel__head .eyebrow { color: var(--brand-primary); }
.rel__head h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin-top: 8px; }
.rel__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .rel__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .rel__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------------------
   ARCHIVE / SEARCH / 404 (index.php)
   --------------------------------------------------------------------------- */
.barchive { padding: 44px 0 72px; min-height: 52vh; }
.barchive__title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.barchive__sub { color: var(--brand-ink-soft); margin-bottom: 28px; }
.barchive__empty { color: var(--brand-ink-soft); padding: 48px 0; }
