/* ============================================================
   웨디아 순천점 — 산후건강관리

   centremarsea.com에서 실측 추출한 값 → 이 파일에 반영한 지점:
   - font-weight 대비로 위계를 만드는 방식 (Termina Demi 굵은 헤드라인 + Hanken
     Grotesk/Satoshi 가벼운 본문) → 한 폰트(Paperlogy, 100~900) 안에서 웨이트만으로
     동일한 대비를 구현 (아래 타이포 스케일 참고)
   - 버튼 radius 50px(pill) → --r-pill: 999px로 동일하게 완전한 pill 처리
   - 카드/섹션 radius 20~30px → --r-card: 20px
   - 히어로: 이미지 전면 색상 오버레이 금지, 텍스트 영역 하단에만 국소 그라데이션
     → .hero-slide::after
   - 넉넉한 섹션 여백/네거티브 스페이스 → --section-pad clamp(64px,10vw,140px)
   컬러는 레퍼런스의 흑백 미니멀 대신 웨디아 로고 톤(황갈/모카)으로 베리에이션.
   ============================================================ */

:root {
  /* color */
  --c-bg: #faf6f0;
  --c-bg-alt: #f1e9de;
  --c-ink: #221e1a;
  --c-ink-soft: #5c5347;
  --c-accent: #8a5a3f;
  --c-accent-deep: #5f3d2a;
  --c-line: #e4dace;
  --c-card: #ffffff;
  --text-on-light: #221e1a;
  --text-on-dark: #faf6f0;

  /* type — Paperlogy 단일 패밀리, 웨이트 대비로 위계 형성 (100~900) */
  --f-display: 'Paperlogy', sans-serif;
  --f-sans: 'Paperlogy', sans-serif;

  /* shape */
  --r-card: 20px;
  --r-pill: 999px;
  --r-sm: 10px;

  /* spacing */
  --section-pad: clamp(64px, 10vw, 140px);
  --container-w: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--text-on-light);
  font-family: var(--f-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad) 0; overflow-x: hidden; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--c-ink); color: var(--c-bg);
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--r-pill); font-weight: 700; font-size: 15px;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, background .3s ease;
}
.btn-dark { background: var(--c-ink); color: var(--text-on-dark); }
.btn-outline { background: transparent; color: var(--c-ink); border: 1.5px solid var(--c-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(34,30,26,.18); }
}

/* ── Nav ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--c-accent);
  transform: scaleX(0); transform-origin: left; z-index: 200;
}
.nav {
  position: sticky; top: 0; z-index: 100; background: rgba(250,246,240,.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { border-color: var(--c-line); box-shadow: 0 4px 20px rgba(34,30,26,.05); }
.nav__in {
  max-width: var(--container-w); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); }
.nav__logo-mark { border-radius: 50%; flex-shrink: 0; }
.nav__logo-div { width: 1px; height: 16px; background: var(--c-line); }
.nav__logo-ko { font-size: 18px; font-weight: 800; }
.nav__links { display: flex; gap: 28px; font-size: 14px; }
.nav__cta { padding: 10px 22px; font-size: 14px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__burger span { width: 22px; height: 2px; background: var(--c-ink); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; background: var(--c-bg);
  border-top: 1px solid var(--c-line);
}
.mobile-menu a { padding: 12px 4px; border-bottom: 1px solid var(--c-line); font-size: 15px; }
.mobile-menu .btn { margin-top: 12px; }
body.menu-open .mobile-menu { display: flex; }

/* ── Hero ── */
.hero { position: relative; padding: 0; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease;
  background-size: cover; background-position: center;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(to top, rgba(34,30,26,.62), transparent);
}
.hero-body { position: relative; z-index: 2; padding: 56px 24px 72px; max-width: var(--container-w); margin: 0 auto; width: 100%; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .12em;
  color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  padding: 8px 16px; border-radius: var(--r-pill); backdrop-filter: blur(6px);
  opacity: 0; animation: heroFadeUp .8s cubic-bezier(.16,1,.3,1) .2s forwards;
}
.hero h1 {
  font-family: var(--f-display); color: #fff; font-size: clamp(42px, 8.5vw, 96px);
  font-weight: 900; line-height: 1.02; letter-spacing: -.02em; margin: 20px 0 0;
  opacity: 0; animation: heroFadeUp .9s cubic-bezier(.16,1,.3,1) .4s forwards;
}
.hero-sub {
  color: rgba(255,255,255,.86); font-size: clamp(15px, 2vw, 18px); font-weight: 300; margin: 18px 0 0; max-width: 560px;
  opacity: 0; animation: heroFadeUp .8s cubic-bezier(.16,1,.3,1) .6s forwards;
}
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap;
  opacity: 0; animation: heroFadeUp .8s cubic-bezier(.16,1,.3,1) .8s forwards;
}
.hero-ctas .btn-outline { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ── Section heading ── */
.eyebrow {
  font-size: 13px; letter-spacing: .14em; color: var(--c-accent); font-weight: 700; text-transform: uppercase;
}
.section-title { font-family: var(--f-display); font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: -.01em; margin: 12px 0 0; line-height: 1.25; }
.section-desc { color: var(--c-ink-soft); font-size: 16px; font-weight: 300; margin-top: 14px; max-width: 620px; line-height: 1.7; }
.section-head { margin-bottom: 48px; }

/* ── Grid systems (design_rules: 인라인 고정 그리드 금지) ── */
.dp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dp-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dp-g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dp-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; align-items: center; }
@media (max-width: 1024px) { .dp-g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .dp-g2, .dp-g3, .dp-g4 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .dp-stat3 { grid-template-columns: 1fr; gap: 16px; } }

/* ── Carousel (horizontal scroll, centremarsea "Solutions" 섹션 패턴) ── */
.carousel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.carousel-arrows { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--c-ink);
  background: transparent; color: var(--c-ink); font-size: 18px; cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .carousel-arrow:hover { background: var(--c-ink); color: var(--text-on-dark); transform: translateY(-2px); }
}
.carousel-wrap { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; }
.carousel-wrap::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 20px; padding: 4px 24px 24px; width: max-content; margin: 0 auto; }
.carousel-card {
  scroll-snap-align: start; flex: 0 0 300px; background: var(--c-card); border-radius: var(--r-card);
  padding: 24px; border: 1px solid var(--c-line);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .carousel-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(34,30,26,.1); }
}
.carousel-card-img { border-radius: var(--r-sm); overflow: hidden; margin-bottom: 16px; aspect-ratio: 4/3; }
.carousel-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
@media (hover: hover) and (pointer: fine) {
  .carousel-card:hover .carousel-card-img img { transform: scale(1.06); }
}
.carousel-card h3 { font-family: var(--f-display); font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.carousel-card p { color: var(--c-ink-soft); font-size: 14px; margin: 0; }
@media (max-width: 600px) {
  .carousel-head { flex-direction: column; align-items: flex-start; }
  .carousel-card { flex-basis: 78vw; }
}

/* ── Cards ── */
.card {
  background: var(--c-card); border-radius: var(--r-card); padding: 28px; border: 1px solid var(--c-line);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(34,30,26,.08); }
}
.card-img { border-radius: var(--r-sm); overflow: hidden; margin-bottom: 18px; aspect-ratio: 4/3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
@media (hover: hover) and (pointer: fine) {
  .card-img:hover img { transform: scale(1.06); }
}
.card h3 { font-family: var(--f-display); font-size: 19px; margin: 0 0 8px; font-weight: 700; }
.card p { color: var(--c-ink-soft); font-size: 14.5px; line-height: 1.65; margin: 0; }

.card-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 768px) { .card-badges { flex-direction: column; align-items: flex-start; gap: 6px; } }
.badge {
  font-size: 12.5px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--c-bg-alt); color: var(--c-ink-soft);
}

/* ── Process / timeline (design_rules 지정 구조 그대로) ── */
.proc-list { display: flex; list-style: none; margin: 0; padding: 0; }
.proc-step { flex: 1; position: relative; padding: 0 12px; text-align: center; }
.proc-step:not(:last-child)::after {
  content: ''; position: absolute; top: 24px; left: 50%; width: 100%; height: 2px; background: var(--c-line); z-index: 0;
}
.proc-num {
  position: relative; z-index: 1; margin: 0 auto 14px; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--c-ink); color: var(--text-on-dark);
  font-family: var(--f-display); font-weight: 800;
}
.proc-step p { font-size: 14.5px; color: var(--c-ink-soft); margin: 0; }
.proc-step strong { display: block; font-size: 15.5px; margin-bottom: 4px; }
@media (max-width: 768px) {
  .proc-list { flex-direction: column; gap: 10px; }
  .proc-step { padding: 24px 0; }
  .proc-step::after { display: none; }
}

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 22px 4px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; font-weight: 600;
  color: var(--text-on-light); font-family: var(--f-sans);
}
.faq-icon { flex-shrink: 0; transition: transform .35s cubic-bezier(.16,1,.3,1); font-size: 20px; color: var(--c-accent); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .45s cubic-bezier(.16,1,.3,1); }
.faq-a p { padding: 0 4px 22px; color: var(--c-ink-soft); line-height: 1.7; margin: 0; font-size: 15px; }

/* ── Access / map ── */
.access-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 768px) { .access-card { grid-template-columns: 1fr; } }
.access-info dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 20px 0 0; }
.access-info dt { color: var(--c-ink-soft); font-size: 14px; }
.access-info dd { margin: 0; font-size: 15px; }

/* ── Scroll reveal ── */
[data-anim] { opacity: 0; will-change: transform, opacity; }
[data-anim="fade-up"] { transform: translateY(40px); }
[data-anim="fade-left"] { transform: translateX(-32px); }
[data-anim="fade-right"] { transform: translateX(32px); }
[data-anim="scale-in"] { transform: scale(.94); }
[data-anim].is-visible {
  opacity: 1 !important; transform: none !important;
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
[data-delay="1"] { transition-delay: .08s !important; }
[data-delay="2"] { transition-delay: .16s !important; }
[data-delay="3"] { transition-delay: .24s !important; }
[data-delay="4"] { transition-delay: .32s !important; }
@media (max-width: 768px) {
  [data-anim="fade-left"], [data-anim="fade-right"] { transform: translateY(28px); }
}

/* ── Footer (필수 3블록만) ── */
.footer { background: var(--c-ink); color: var(--text-on-dark); padding: 64px 0 24px; }
.footer-in { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .footer-in { grid-template-columns: 1fr; gap: 32px; } }
.footer-col { min-width: 0; }
.year-auto { font-variant-numeric: tabular-nums; }
.footer-logo { margin-bottom: 12px; opacity: .92; }
.footer-brand { font-family: var(--f-display); font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.footer-legal { color: rgba(250,246,240,.68); font-size: 13.5px; font-weight: 300; line-height: 1.9; margin: 0; }
.footer-h { font-size: 13px; letter-spacing: .08em; color: rgba(250,246,240,.5); margin-bottom: 14px; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-links a { color: rgba(250,246,240,.85); }
.footer-bottom {
  max-width: var(--container-w); margin: 40px auto 0; padding: 20px 24px 0; border-top: 1px solid rgba(250,246,240,.14);
  font-size: 12.5px; color: rgba(250,246,240,.5);
}

/* ── Float CTA / back-to-top / mobile bar ── */
.float-cta { position: fixed; right: 28px; bottom: 28px; z-index: 90; display: none; opacity: 0; transition: opacity .3s ease; }
.float-cta.is-visible { display: flex; opacity: 1; }
.fcta-btn { padding: 14px 24px; border-radius: var(--r-pill); background: var(--c-accent); color: #fff; font-weight: 700; box-shadow: 0 10px 28px rgba(138,90,63,.35); }
.back-top {
  position: fixed; right: 28px; bottom: 96px; z-index: 90; width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-ink); color: #fff; border: 0; opacity: 0; visibility: hidden; transition: opacity .3s ease, transform .3s ease; cursor: pointer;
}
.back-top.is-visible { opacity: 1; visibility: visible; }
@media (max-width: 767px) { .float-cta, .back-top { display: none !important; } }

#mob-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 64px; }
  #mob-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; height: 64px;
    background: var(--c-card); border-top: 1px solid var(--c-line);
  }
  .mb-btn { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
  .mb-btn--cta { background: var(--c-accent); color: #fff; }
  .mb-sep { width: 1px; background: var(--c-line); }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}
@media (min-width: 768px) { .nav__burger, .mobile-menu { display: none; } }

/* ── table overflow guard ── */
.table-wrap { overflow-x: auto; }

/* ── 의미단위 줄바꿈 (모바일/데스크톱 분리) ── */
.br-mobile { display: none; }
.br-desktop { display: inline; }
@media (max-width: 768px) {
  .br-mobile { display: inline; }
  .br-desktop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-anim], .hero-kicker, .hero h1, .hero-sub, .hero-ctas {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
}
