/* ============================================
   맘앤힐링테라피 — Design tokens
   ============================================ */
:root {
  --sand: #efe1cc;
  --ivory: #fbf6ee;
  --espresso: #2e2015;
  --umber: #6b4226;
  --gold: #a9793c;
  --terracotta: #93432b;
  --terracotta-dark: #7a3623;
  --line: #ddc9a8;

  --serif: "Noto Serif KR", serif;
  --sans: "Noto Sans KR", sans-serif;
  --wordmark: "Cormorant Garamond", serif;

  --radius: 4px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--espresso);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); margin: 0 0 0.6em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.eyebrow {
  font-family: var(--wordmark);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-lede { max-width: 46ch; color: var(--umber); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 225, 204, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-family: var(--wordmark); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.04em; }
.nav-links { display: none; gap: 1.8rem; font-size: 0.92rem; }
.nav-links a:hover { color: var(--terracotta); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: inline-flex; background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--espresso);
}
@media (min-width: 760px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
.mobile-menu {
  display: none; flex-direction: column; gap: 0.9rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.4rem;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
@media (min-width: 760px) { .mobile-menu { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.9em 1.6em;
  border-radius: var(--radius);
  font-weight: 700; font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--terracotta); color: var(--ivory); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-ghost { background: transparent; border-color: var(--umber); color: var(--espresso); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  position: relative; overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--terracotta); }
.hero-sub { font-size: 1.05rem; color: var(--umber); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 2.2rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; }
.badge {
  font-size: 0.82rem; color: var(--umber);
  padding: 0.35em 0.9em; border: 1px solid var(--line);
  border-radius: 999px; background: var(--ivory);
}
.hero-motif { position: absolute; opacity: 0.5; pointer-events: none; }
.hero-motif.top-right { top: -20px; right: -40px; width: 220px; }
.hero-motif.bottom-left { bottom: -30px; left: -50px; width: 200px; transform: scaleX(-1); }

/* ---------- Generic section ---------- */
section { padding: var(--section-pad) 0; }
.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.alt-bg { background: var(--ivory); }

/* ---------- Service cards (출장/샵) ---------- */
.service-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .service-grid { grid-template-columns: 1fr 1fr; } }
.service-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.2rem);
}
.service-card .tag { color: var(--gold); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; }
.service-card h3 { font-size: 1.3rem; margin-top: 0.3em; }

/* ---------- Program menu ---------- */
.menu-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .menu-grid { grid-template-columns: repeat(4, 1fr); } }
.menu-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  display: flex; flex-direction: column;
}
.menu-card.featured { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.menu-card.featured .menu-time { color: var(--gold); }
.menu-time {
  display: inline-block; align-self: flex-start;
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--terracotta);
  border: 1px solid currentColor; border-radius: 999px; padding: 0.2em 0.8em; margin-bottom: 0.8em;
}
.menu-card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.menu-card ul { display: flex; flex-direction: column; gap: 0.4em; font-size: 0.9rem; }
.menu-card.featured ul { color: #eadfc9; }
.menu-card ul li:not(.featured li) { color: var(--umber); }
.menu-card li::before { content: "· "; color: var(--gold); font-weight: 700; }

/* ---------- Roadmap (signature element) ---------- */
.roadmap { position: relative; }
.roadmap-path {
  position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--gold) 0 6px, transparent 6px 12px);
}
@media (min-width: 700px) { .roadmap-path { left: 50%; transform: translateX(-1px); } }
.roadmap-list { display: flex; flex-direction: column; gap: 2.2rem; }
.roadmap-item { position: relative; padding-left: 66px; }
.roadmap-week {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--terracotta); color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 0.95rem;
  text-align: center; line-height: 1.15;
}
.roadmap-item h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.roadmap-item p { color: var(--umber); font-size: 0.92rem; margin: 0; }
@media (min-width: 700px) {
  .roadmap-item { padding-left: 0; width: calc(50% - 40px); }
  .roadmap-item:nth-child(odd) { margin-right: calc(50% + 40px); text-align: right; }
  .roadmap-item:nth-child(even) { margin-left: calc(50% + 40px); }
  .roadmap-week { left: 50%; transform: translateX(-50%); top: -4px; }
}

/* ---------- Why us ---------- */
.why-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-item { border-top: 2px solid var(--terracotta); padding-top: 1rem; }
.why-item h3 { font-size: 1.05rem; }
.why-item p { color: var(--umber); font-size: 0.92rem; }

/* ---------- Location / payment ---------- */
.info-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.info-card h3 { font-size: 1rem; color: var(--gold); letter-spacing: 0.03em; }
.pay-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.pay-tags span { font-size: 0.8rem; background: var(--sand); border-radius: 999px; padding: 0.3em 0.8em; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--espresso); color: var(--ivory); text-align: center; }
.final-cta h2 { color: var(--ivory); }
.final-cta p { color: #d8c6ac; }
.final-cta .btn-primary { background: var(--gold); }
.final-cta .btn-primary:hover { background: #96692f; }

/* ---------- Footer ---------- */
footer { background: var(--espresso); color: #cbb896; padding: 2rem 0; font-size: 0.82rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer a:hover { color: var(--ivory); }
.footer-links { display: flex; gap: 1.2rem; }

/* ---------- Legal pages ---------- */
.legal main { padding: var(--section-pad) 0; }
.legal h2 { font-size: 1.2rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--umber); font-size: 0.95rem; }
.legal ul { padding-left: 1.2em; list-style: disc; }
