/* ============================================================
   SIRONA HEALTH & MASSAGE — Design System
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand greens */
  --green-900: #1A3A28;
  --green-800: #2D5A3D;
  --green-700: #386B49;
  --green-600: #4A7C5C;
  --green-300: #9CBBA6;
  --green-100: #E4EBE3;

  /* Neutrals (warm) */
  --bg: #F5F4F0;
  --bg-alt: #EFEDE6;
  --surface: #FAFAF8;
  --surface-2: #F1EFEA;
  --ink: #28251D;
  --ink-2: #5A554A;
  --ink-3: #8A8478;
  --line: #E2DFD6;
  --line-strong: #D2CEC2;

  /* Functional */
  --primary: var(--green-800);
  --primary-hover: var(--green-900);
  --accent: var(--green-600);
  --on-primary: #F5F4F0;
  --focus: #4A7C5C;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows — warm tinted */
  --sh-sm: 0 1px 2px rgba(40, 37, 29, 0.06), 0 1px 3px rgba(40, 37, 29, 0.05);
  --sh-md: 0 6px 18px -6px rgba(45, 50, 35, 0.16), 0 2px 6px rgba(45, 50, 35, 0.06);
  --sh-lg: 0 24px 60px -22px rgba(26, 45, 30, 0.30), 0 8px 24px -12px rgba(26, 45, 30, 0.18);

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "General Sans", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
}

[data-theme="dark"] {
  --green-800: #5E9B73;
  --green-700: #538C66;
  --green-600: #6FAE84;
  --green-300: #2D5A3D;
  --green-100: #1E2A22;

  --bg: #14171410;
  --bg: #131614;
  --bg-alt: #181C19;
  --surface: #1B201C;
  --surface-2: #20261F;
  --ink: #E9E7DE;
  --ink-2: #B4B0A4;
  --ink-3: #837E72;
  --line: #2A302A;
  --line-strong: #353C34;

  --primary: #5E9B73;
  --primary-hover: #6FAE84;
  --accent: #82BE96;
  --on-primary: #0F140F;
  --focus: #82BE96;

  --sh-sm: 0 1px 2px rgba(0,0,0,0.4);
  --sh-md: 0 6px 20px -6px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  --sh-lg: 0 28px 64px -22px rgba(0,0,0,0.7), 0 8px 24px -12px rgba(0,0,0,0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
  transition: background-color .4s ease, color .4s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.display { font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 600; line-height: 1.0; }
.h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
.h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); display: inline-block; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.serif-quote { font-family: var(--font-display); font-style: italic; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 880px; margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 130px); }
.section-pad-sm { padding-block: clamp(48px, 6vw, 84px); }
.bg-alt { background: var(--bg-alt); }
.bg-surface { background: var(--surface); }
.bg-green { background: var(--green-900); color: #EDEFE9; }
.bg-green h1, .bg-green h2, .bg-green h3 { color: #FBFCF8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 0.92em 1.7em; border-radius: var(--r-pill);
  min-height: 48px; line-height: 1;
  transition: transform .18s ease, background-color .2s ease, box-shadow .2s ease, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--sh-md); }
.btn-outline { border: 1.5px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: color-mix(in oklab, var(--primary) 6%, transparent); }
.btn-ghost { color: var(--primary); padding-inline: 0.4em; }
.btn-ghost:hover { color: var(--primary-hover); }
.btn-light { background: #F5F4F0; color: var(--green-900); }
.btn-light:hover { background: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05em 2.1em; font-size: 1.02rem; min-height: 56px; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; color: var(--primary); font-size: 0.95rem; }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.42em 0.95em; border-radius: var(--r-pill);
  background: var(--green-100); color: var(--green-800);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
}
.price-tag { font-family: var(--font-display); font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--line-strong); }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative; overflow: hidden; background: var(--surface-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 16px, color-mix(in oklab, var(--green-600) 8%, transparent) 16px 17px);
  display: flex; align-items: flex-end;
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-3);
  padding: 10px 12px; text-transform: lowercase;
}
.ph-photo { background-size: cover; background-position: center; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.input, .textarea, .select {
  width: 100%; padding: 0.85em 1em; border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: border-color .18s, box-shadow .18s; font-size: 1rem;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3.5px color-mix(in oklab, var(--accent) 22%, transparent); }
.textarea { resize: vertical; min-height: 130px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.brand { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }
.brand .brand-logo-white { display: none; }
[data-theme="dark"] .brand .brand-logo-color { display: none; }
[data-theme="dark"] .brand .brand-logo-white { display: block; }
.brand .brand-fallback { display: flex; align-items: baseline; gap: .5rem; }
.brand-word { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--green-800); line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  padding: 0.6em 0.95em; border-radius: var(--r-pill);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); transition: color .18s, background-color .18s; position: relative;
}
.nav-links a:hover { color: var(--ink); background: color-mix(in oklab, var(--green-600) 9%, transparent); }
.nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.icon-btn {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); transition: background-color .18s, color .18s; position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary);
  font-size: 0.66rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); transform: scale(0); transition: transform .2s ease;
}
.cart-count.show { transform: scale(1); }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.hamburger { display: none; }

/* Mobile drawer */
.scrim { position: fixed; inset: 0; background: rgba(20,24,18,0.45); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 200; }
.scrim.open { opacity: 1; pointer-events: auto; }
.mobile-nav {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(86vw, 360px);
  background: var(--surface); z-index: 210; box-shadow: var(--sh-lg);
  transform: translateX(100%); transition: transform .34s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; padding: 1.4rem; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.mobile-nav a {
  padding: 1em 0.6em; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav a.active { color: var(--primary); }
.mobile-nav .btn { margin-top: 1.4rem; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(92vw, 420px);
  background: var(--surface); z-index: 210; box-shadow: var(--sh-lg);
  transform: translateX(100%); transition: transform .34s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1.5rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 0.6rem 1.4rem; }
.cart-empty { text-align: center; color: var(--ink-3); padding: 3rem 1rem; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row .ph { width: 64px; height: 64px; border-radius: var(--r-md); }
.cart-row .ci-name { font-weight: 600; font-size: 0.95rem; }
.cart-row .ci-price { color: var(--ink-2); font-size: 0.88rem; }
.qty { display: inline-flex; align-items: center; gap: 0.2rem; margin-top: 0.35rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); }
.qty button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); border-radius: 50%; }
.qty button:hover { color: var(--primary); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.ci-remove { color: var(--ink-3); font-size: 0.78rem; margin-top: 0.4rem; }
.ci-remove:hover { color: #b04a3a; }
.cart-foot { padding: 1.3rem 1.4rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.cart-total .price-tag { font-size: 1.7rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--green-900); color: #C9D3C9; padding-block: clamp(56px, 7vw, 88px) 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem 2rem; }
.site-footer img.f-logo { height: 42px; margin-bottom: 1.2rem; }
.site-footer p { color: #A8B6A9; font-size: 0.94rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7E9282; margin-bottom: 1.1rem; font-weight: 600; }
.footer-col a { display: block; color: #C9D3C9; padding: 0.32em 0; font-size: 0.95rem; transition: color .18s; }
.footer-col a:hover { color: #fff; }
.footer-contact a, .footer-contact span { display: flex; gap: 0.6rem; color: #C9D3C9; font-size: 0.95rem; padding: 0.3em 0; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--green-600); }
.socials { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; color: #C9D3C9; transition: all .2s; }
.socials a:hover { background: #fff; color: var(--green-900); border-color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-strip { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding-top: 2rem; }
.footer-insurers { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; align-items: center; opacity: 0.65; margin-bottom: 1.6rem; }
.footer-insurers .ins-logo { height: 32px; filter: brightness(0) invert(1); opacity: 0.7; }
.pay-icons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pay-icons svg { height: 26px; width: auto; border-radius: 4px; }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-base p { font-size: 0.85rem; color: #8A9A8C; }
.footer-base a { color: #C9D3C9; }
.footer-base a:hover { color: #fff; }

/* ============================================================
   INSURANCE STRIP (shared)
   ============================================================ */
.insurer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3.4rem); }
.insurer-row .ins-logo { height: clamp(28px, 3.5vw, 40px); width: auto; filter: grayscale(1); opacity: 0.55; transition: filter .35s ease, opacity .35s ease, transform .3s ease; }
.insurer-row .ins-logo:hover { filter: grayscale(0); opacity: 1; transform: scale(1.05); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
html.no-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Accordion ---------- */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; text-align: left; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.acc-q .acc-ico { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; transition: transform .3s, border-color .2s, background .2s; }
.acc-item.open .acc-ico { transform: rotate(45deg); border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.acc-a-inner { padding-bottom: 1.4rem; color: var(--ink-2); max-width: 68ch; }

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: 0.8rem; }
.stack > * + * { margin-top: 1.3rem; }
.stack-lg > * + * { margin-top: 2.2rem; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-prose { max-width: 60ch; }
.divider { height: 1px; background: var(--line); border: 0; }
.grid { display: grid; }
.flex { display: flex; }
.hide { display: none !important; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--green-900); color: #F5F4F0; padding: 0.9em 1.4em; border-radius: var(--r-pill);
  box-shadow: var(--sh-lg); z-index: 300; font-weight: 600; font-size: 0.92rem;
  transition: transform .4s cubic-bezier(.2,.8,.2,1); display: flex; align-items: center; gap: 0.6rem;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--primary); color: var(--on-primary); padding: 0.8em 1.2em; border-radius: var(--r-md); }
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .nav-actions .book-cta { display: none; }
}
