/* My Body Clinic — site styles
   Wellness clinic. Warm off-white, deep olive, terracotta accent.
   Fraunces display serif + Inter Tight body. Generous space, subtle grain. */

:root {
  --paper: #fbf8f4;
  --cream: #f5efe6;
  --sand: #e8dccb;
  --rule: #e6dfd2;
  --rule-2: #d5cabb;
  --olive: #3d5547;
  --olive-700: #2e4136;
  --olive-100: #d9e1da;
  --terracotta: #c4674a;
  --terracotta-100: #f3dfd5;
  --gold: #c9a96e;
  --ink: #1a1a18;
  --ink-700: #3a3a37;
  --ink-500: #6b6862;
  --ink-400: #8e8b84;
  --ink-300: #b9b6ae;
  --measure: 1240px;
  --pad-x: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 120px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mbc-body {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grain */
body.mbc-body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  pointer-events: none; z-index: 100; opacity: 0.4;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.serif { font-family: 'Fraunces', Georgia, serif; }

.mbc-container { max-width: var(--measure); margin: 0 auto; padding: 0 var(--pad-x); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ─── Header ─── */
#site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,248,244,0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.mbc-header-bar {
  max-width: var(--measure); margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.mbc-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--olive); }
.mbc-logo-text { display: inline-flex; flex-direction: column; line-height: 1; }
.mbc-logo-name { font-family: 'Fraunces', serif; font-weight: 500; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); font-variation-settings: 'opsz' 144, 'SOFT' 50; }
.mbc-logo-sub { font-size: 9px; letter-spacing: 0.18em; color: var(--ink-400); margin-top: 4px; font-weight: 500; }

.mbc-nav-desktop { display: none; align-items: center; gap: 28px; }
@media (min-width: 1000px) { .mbc-nav-desktop { display: flex; } }
.mbc-nav-desktop > a, .mbc-nav-trigger {
  font-size: 14px; color: var(--ink-500); position: relative; background: transparent; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; transition: color 0.18s ease;
  display: inline-flex; align-items: center; gap: 4px;
}
.mbc-nav-desktop > a:hover, .mbc-nav-trigger:hover { color: var(--ink); }
.mbc-nav-desktop > a.is-active { color: var(--olive); }
.mbc-nav-desktop > a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 1px; background: var(--olive); }
.mbc-nav-caret { font-size: 9px; color: var(--ink-300); margin-top: 2px; }

.mbc-nav-cta {
  padding: 10px 18px; background: var(--olive); color: var(--paper) !important;
  border-radius: 999px; font-weight: 500; font-size: 13.5px;
}
.mbc-nav-cta:hover { background: var(--olive-700); }
.mbc-nav-cta.is-active::after { display: none; }

/* Treatments dropdown */
.mbc-nav-group { position: relative; }
.mbc-nav-menu {
  position: absolute; top: calc(100% + 20px); left: -16px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
  padding: 10px;
  min-width: 220px;
  display: flex; flex-direction: column;
  box-shadow: 0 16px 48px -20px rgba(61,85,71,0.18);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.mbc-nav-group.is-open .mbc-nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mbc-nav-menu a { display: block; padding: 10px 14px; font-size: 14px; color: var(--ink-700); border-radius: 4px; transition: background 0.15s, color 0.15s; }
.mbc-nav-menu a:hover { background: var(--cream); color: var(--olive); }

/* Burger */
.mbc-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0 9px; background: transparent; border: 1px solid var(--rule-2); border-radius: 999px; }
.mbc-burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.3s ease, opacity 0.2s ease; }
.mbc-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mbc-burger.is-open span:nth-child(2) { opacity: 0; }
.mbc-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 1000px) { .mbc-burger { display: none; } }

/* Mobile menu */
.mbc-mobile-menu {
  position: fixed; inset: 0; background: var(--olive); color: var(--paper); z-index: 38;
  clip-path: circle(0% at calc(100% - 36px) 36px);
  transition: clip-path 0.55s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
  display: flex; flex-direction: column;
}
.mbc-mobile-menu.is-open { clip-path: circle(160% at calc(100% - 36px) 36px); pointer-events: auto; }
.mbc-mobile-inner { padding: 88px var(--pad-x) 32px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.mbc-mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.mbc-mn-section { font-size: 11px; letter-spacing: 0.16em; color: rgba(251,248,244,0.45); padding: 18px 0 6px; }
.mbc-mn-section:first-child { padding-top: 0; }
.mbc-mobile-nav a { font-family: 'Fraunces', serif; font-size: 24px; padding: 10px 0; color: var(--paper); border-bottom: 1px solid rgba(251,248,244,0.08); font-weight: 400; letter-spacing: -0.01em; }
.mbc-mobile-foot { padding-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.mbc-mobile-foot a { font-size: 14px; color: var(--paper); }
.mbc-mobile-foot span { font-size: 12px; color: rgba(251,248,244,0.55); }

/* ─── Buttons ─── */
.mbc-btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--olive); color: var(--paper);
  padding: 14px 28px; border-radius: 999px;
  font-weight: 500; font-size: 14.5px;
  border: 1px solid var(--olive);
  transition: background 0.22s ease, border-color 0.22s ease;
}
.mbc-btn-primary:hover { background: var(--olive-700); border-color: var(--olive-700); }

.mbc-btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--olive);
  padding: 14px 28px; border-radius: 999px;
  font-weight: 500; font-size: 14.5px;
  border: 1px solid var(--olive);
  transition: background 0.22s ease, color 0.22s ease;
}
.mbc-btn-ghost:hover { background: var(--olive); color: var(--paper); }

.mbc-btn-terra {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--terracotta); color: var(--paper);
  padding: 14px 28px; border-radius: 999px;
  font-weight: 500; font-size: 14.5px; border: 1px solid var(--terracotta);
  transition: background 0.22s ease;
}
.mbc-btn-terra:hover { background: #a85638; border-color: #a85638; }

/* ─── Typography ─── */
.mbc-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--olive); letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mbc-eyebrow::before {
  content: ''; width: 18px; height: 1px; background: var(--olive);
}

.mbc-h1 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02;
  letter-spacing: -0.02em; color: var(--ink);
  margin: 24px 0;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.mbc-h1 em { font-style: italic; font-variation-settings: 'opsz' 144, 'SOFT' 100; color: var(--olive); }

.mbc-h2 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.08; letter-spacing: -0.02em; color: var(--ink);
  margin: 0 0 18px;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.mbc-h2 em { font-style: italic; color: var(--olive); font-variation-settings: 'opsz' 144, 'SOFT' 100; }

.mbc-lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6; color: var(--ink-500);
  max-width: 60ch;
  margin: 0;
}

/* ─── Sections ─── */
.mbc-section { padding: var(--section-y) 0; }
.mbc-section--cream { background: var(--cream); }
.mbc-section--olive { background: var(--olive); color: rgba(251,248,244,0.85); }
.mbc-section--olive .mbc-h2 { color: var(--paper); }
.mbc-section--olive .mbc-h2 em { color: var(--gold); }
.mbc-section--olive .mbc-eyebrow { color: var(--sand); }
.mbc-section--olive .mbc-eyebrow::before { background: var(--sand); }

.mbc-section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.mbc-section-head--left { text-align: left; margin-left: 0; }

.mbc-section-cta { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ─── Hero ─── */
.mbc-hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.mbc-hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
}
@media (min-width: 1024px) { .mbc-hero-grid { grid-template-columns: 1.1fr 0.9fr; } }

.mbc-hero-text { max-width: 640px; }
.mbc-hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  margin-top: 48px; padding-top: 36px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 480px) { .mbc-hero-stats { grid-template-columns: repeat(3, 1fr); } }
.mbc-hero-stat-n { font-family: 'Fraunces', serif; font-size: clamp(28px, 3.5vw, 36px); color: var(--olive); line-height: 1; letter-spacing: -0.02em; }
.mbc-hero-stat-l { font-size: 12.5px; color: var(--ink-500); margin-top: 8px; line-height: 1.5; }

/* Hero aside — editorial composition */
.mbc-hero-aside {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
}

.mbc-card-edit {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(28px, 3.5vw, 40px);
  box-shadow: 0 30px 80px -40px rgba(61,85,71,0.22);
  overflow: hidden;
}
.mbc-card-edit::before {
  /* warm gradient wash */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 70% at 100% 0%, rgba(196,103,74,0.05) 0%, transparent 55%),
              linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  pointer-events: none;
  z-index: 0;
}
.mbc-card-edit > * { position: relative; z-index: 1; }

.mbc-card-edit-top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 18px; border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}
.mbc-card-edit-mark {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 13px; letter-spacing: 0.35em; color: var(--olive);
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.mbc-card-edit-folio {
  font-family: 'Inter Tight', sans-serif; font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-400);
}

.mbc-card-edit-body { margin-bottom: 28px; }
.mbc-card-edit-kicker {
  display: inline-block; font-size: 10px; letter-spacing: 0.22em;
  color: var(--terracotta); text-transform: uppercase; margin-bottom: 14px;
}
.mbc-card-edit-quote {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2vw, 24px); line-height: 1.35;
  color: var(--ink); margin: 0 0 14px;
  letter-spacing: -0.005em;
  font-variation-settings: 'opsz' 100, 'SOFT' 100;
  position: relative;
}
.mbc-quote-mark {
  font-family: 'Fraunces', serif; color: var(--terracotta);
  font-size: 1.4em; line-height: 0; vertical-align: -0.2em;
  margin: 0 1px;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.mbc-quote-mark--close { margin-left: 2px; }
.mbc-card-edit-cite {
  font-size: 12px; color: var(--ink-500); letter-spacing: 0.04em;
  margin: 0;
}
.mbc-card-edit-cite::before { content: '— '; color: var(--ink-300); }

.mbc-card-edit-divider {
  height: 1px;
  background-image: linear-gradient(to right, var(--rule) 50%, transparent 50%);
  background-size: 6px 1px;
  margin-bottom: 24px;
}

.mbc-card-edit-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin-bottom: 28px;
}
.mbc-card-edit-grid > div { display: flex; flex-direction: column; gap: 4px; }
.mbc-card-edit-l { font-size: 9.5px; letter-spacing: 0.18em; color: var(--ink-400); }
.mbc-card-edit-v { font-family: 'Fraunces', serif; font-size: 22px; color: var(--ink); letter-spacing: -0.01em; line-height: 1; font-variation-settings: 'opsz' 144, 'SOFT' 50; }

.mbc-card-edit-foot {
  display: flex; align-items: center; gap: 10px;
  padding-top: 20px; border-top: 1px solid var(--rule);
  font-size: 11.5px; color: var(--ink-500); letter-spacing: 0.06em;
}
.mbc-card-edit-pulse {
  width: 7px; height: 7px; background: var(--olive); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(61,85,71,0.16);
  animation: mbcEditPulse 2.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes mbcEditPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61,85,71,0.16); }
  50% { box-shadow: 0 0 0 7px rgba(61,85,71,0.02); }
}
.mbc-card-edit-status { color: var(--ink-700); flex: 1; }
.mbc-card-edit-hours { font-family: 'Inter Tight', sans-serif; color: var(--ink-400); letter-spacing: 0.04em; }

/* Vertical rail caption */
.mbc-hero-rail {
  display: flex; align-items: center; gap: 14px;
  font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-400);
  padding: 0 4px;
}
.mbc-rail-sep { flex: 1; height: 1px; background: var(--rule); }
.mbc-rail-l { white-space: nowrap; }
@media (max-width: 540px) {
  .mbc-hero-rail { flex-direction: column; align-items: flex-start; gap: 4px; }
  .mbc-rail-sep { display: none; }
}

/* ─── Service cards (modular) ─── */
.mbc-svc-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 720px) { .mbc-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .mbc-svc-grid { grid-template-columns: repeat(4, 1fr); } }

.mbc-svc-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.25s, transform 0.25s;
  position: relative; overflow: hidden;
}
.mbc-svc-card:hover { border-color: var(--olive); transform: translateY(-3px); }
.mbc-svc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--olive-100); display: flex; align-items: center; justify-content: center; color: var(--olive); }
.mbc-svc-card h3 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -0.015em; font-variation-settings: 'opsz' 144; }
.mbc-svc-card p { font-size: 14px; color: var(--ink-500); line-height: 1.6; margin: 0; flex: 1; }
.mbc-svc-card .mbc-svc-link { font-size: 13.5px; color: var(--olive); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.mbc-svc-card:hover .mbc-svc-link { color: var(--terracotta); }

/* ─── Trust strip ─── */
.mbc-trust {
  padding: 28px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.mbc-trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  align-items: center;
}
@media (min-width: 720px) { .mbc-trust-grid { grid-template-columns: repeat(4, 1fr); } }
.mbc-trust-item { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.mbc-trust-n { font-family: 'Fraunces', serif; font-size: 28px; color: var(--olive); line-height: 1; }
.mbc-trust-l { font-size: 11px; color: var(--ink-500); letter-spacing: 0.08em; text-transform: uppercase; }

/* ─── Testimonial ─── */
.mbc-testi {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 760px) { .mbc-testi { grid-template-columns: repeat(3, 1fr); } }
.mbc-testi-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; }
.mbc-testi-stars { color: var(--gold); font-size: 14px; letter-spacing: 1px; margin-bottom: 14px; }
.mbc-testi-card p { font-family: 'Fraunces', serif; font-size: 18px; color: var(--ink); line-height: 1.45; margin: 0 0 18px; letter-spacing: -0.005em; font-variation-settings: 'opsz' 100; }
.mbc-testi-foot { font-size: 13px; color: var(--ink-500); display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--rule); }
.mbc-testi-foot .who { color: var(--ink); font-weight: 500; }

/* ─── Footer ─── */
.mbc-footer-main { background: var(--paper); border-top: 1px solid var(--rule); padding: 64px 0 28px; color: var(--ink-700); }
.mbc-footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 768px) { .mbc-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; } }
.mbc-logo--footer { color: var(--olive); margin-bottom: 16px; }
.mbc-footer-tag { font-size: 14px; line-height: 1.6; margin: 0 0 14px; max-width: 42ch; color: var(--ink-500); }
.mbc-footer-line { font-size: 13px; line-height: 1.6; margin: 0; color: var(--ink-500); }
.mbc-footer-grid h4 { font-size: 11px; letter-spacing: 0.14em; color: var(--olive); margin: 0 0 16px; font-weight: 500; text-transform: uppercase; }
.mbc-footer-grid a { display: block; font-size: 14px; padding: 4px 0; color: var(--ink-700); transition: color 0.18s; }
.mbc-footer-grid a:hover { color: var(--terracotta); }
.mbc-footer-base { display: flex; flex-direction: column; gap: 6px; padding-top: 28px; font-size: 12.5px; color: var(--ink-400); }
@media (min-width: 768px) { .mbc-footer-base { flex-direction: row; justify-content: space-between; } }
.mbc-footer-base a { color: var(--ink-500); border-bottom: 1px solid transparent; }
.mbc-footer-base a:hover { color: var(--olive); border-bottom-color: var(--rule); }

/* ─── Page utility ─── */
.mbc-page-head {
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.mbc-page-head .mbc-eyebrow { margin-bottom: 16px; }
.mbc-page-head h1 { font-family: 'Fraunces', serif; font-size: clamp(36px, 5vw, 56px); margin: 0 0 16px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 400; font-variation-settings: 'opsz' 144, 'SOFT' 50; color: var(--ink); max-width: 24ch; }
.mbc-page-head h1 em { font-style: italic; color: var(--olive); font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.mbc-page-head p { font-size: clamp(15px, 1.2vw, 17px); color: var(--ink-500); line-height: 1.6; margin: 0; max-width: 60ch; }

/* Hand-drawn line motif */
.mbc-leaf {
  display: inline-block; width: 60px; height: 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24'><path d='M2 12 C 15 4, 25 4, 30 12 C 35 4, 45 4, 58 12' stroke='%233d5547' stroke-width='1' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: 0.5;
}
