/* =========================================================
   Wellness Experts — Apple-inspired design system
   ========================================================= */

:root {
  --bg: #fdfaf4;
  --bg-elevated: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --ink-muted: #6e6e73;
  --line: #ddd3c4;
  --line-soft: #efe7da;
  --accent: #0070c0;        /* logo blue */
  --accent-deep: #005a99;
  --accent-soft: #e6f0fa;
  --orange: #f07020;        /* logo orange — used for Make a Referral CTA */
  --orange-deep: #d65d10;
  --orange-soft: #fdece0;
  --warm: #f6efe4;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --shadow: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.10);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1100px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 200ms var(--ease); }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 244, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-logo { height: 78px; width: auto; display: block; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, #3399dd 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 14px rgba(0, 112, 192, 0.25);
}
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 450; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--orange); color: #fff !important; padding: 8px 16px; border-radius: 980px;
  font-size: 0.9rem; font-weight: 500; transition: background 200ms var(--ease), transform 200ms var(--ease);
  box-shadow: 0 4px 14px rgba(240, 112, 32, 0.22);
}
.nav-cta:hover { background: var(--orange-deep); color: #fff !important; transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--ink); }

@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    padding: 12px 24px 20px; border-bottom: 1px solid var(--line-soft); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); width: 100%; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-flex; }
}

/* ===== Service sub-navigation (Apple-style sticky strip) ===== */
.subnav {
  position: sticky;
  top: 106px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.subnav-inner {
  display: flex; align-items: center; gap: 28px;
  max-width: var(--container); margin: 0 auto;
  padding: 12px 24px;
  overflow-x: auto; scrollbar-width: none;
  font-size: 0.92rem;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-title {
  font-weight: 600; color: var(--ink); flex-shrink: 0;
}
.subnav-inner a {
  color: var(--ink-soft); white-space: nowrap; padding: 4px 0;
  border-bottom: 2px solid transparent; flex-shrink: 0;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.subnav-inner a:hover { color: var(--ink); }
.subnav-inner a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.subnav-cta {
  margin-left: auto !important;
  background: var(--orange); color: #fff !important;
  padding: 6px 14px !important; border-radius: 980px !important;
  border-bottom: none !important;
  box-shadow: 0 4px 14px rgba(240, 112, 32, 0.22);
}
.subnav-cta:hover { background: var(--orange-deep); color: #fff !important; }
@media (max-width: 760px) {
  .brand-logo { height: 44px; }
  .subnav { top: 72px; }
  .subnav-inner { gap: 18px; padding: 10px 16px; }
  .subnav-title { display: none; }
  .subnav-cta { margin-left: 6px !important; }
}

.hero-service { padding-top: clamp(48px, 7vw, 80px); }
.hero-service h1 { max-width: 18ch; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: clamp(80px, 12vw, 140px) 24px clamp(60px, 10vw, 100px);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(10, 110, 110, 0.08), transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(20, 168, 168, 0.05), transparent 50%);
  z-index: -1;
}
.hero-eyebrow {
  display: inline-block; padding: 6px 14px; background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 980px; font-size: 0.85rem; font-weight: 500; margin-bottom: 24px; letter-spacing: 0;
}
.hero h1 { max-width: 14ch; margin: 0 auto 20px; }
.hero p.lede {
  max-width: 56ch; margin: 0 auto 36px; font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ink-soft); line-height: 1.5;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 980px;
  font-size: 1rem; font-weight: 500; cursor: pointer; border: none;
  transition: all 200ms var(--ease);
  text-decoration: none;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
/* Orange CTA used on all "Make a Referral" buttons (matches logo accent) */
.btn-cta { background: var(--orange); color: #fff; box-shadow: 0 6px 20px rgba(240, 112, 32, 0.28); }
.btn-cta:hover { background: var(--orange-deep); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--bg-elevated); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--warm); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--accent); padding: 8px 0; }
.btn-ghost:hover { color: var(--accent-deep); gap: 12px; }
.btn-ghost::after { content: "→"; transition: transform 200ms var(--ease); }
.btn-ghost:hover::after { transform: translateX(3px); }

/* ===== Sections ===== */
section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-eyebrow { color: var(--accent); font-size: 0.95rem; font-weight: 500; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== Service grid ===== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
a.card-link { display: block; text-decoration: none; color: inherit; }
a.card-link h3 { color: var(--ink); }
a.card-link p { color: var(--ink-soft); }
.card-cta { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 500; font-size: 0.95rem; transition: transform 200ms var(--ease); }
a.card-link:hover .card-cta { transform: translateX(3px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; margin-bottom: 0; }

/* ===== Feature blocks (alternating) ===== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse > :first-child { order: 0; }
}
.feature-visual {
  aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e6f2f2 0%, #f5f5f7 100%);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.feature-visual svg { width: 50%; height: auto; color: var(--accent); }

/* ===== Stats strip ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center; padding: 56px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.stat-num { font-size: 2.4rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.stat-label { color: var(--ink-muted); font-size: 0.95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== CTA band ===== */
.cta-band {
  background: var(--ink); color: #fff;
  text-align: center; padding: 80px 24px; border-radius: var(--radius-lg);
  margin: 80px auto; max-width: var(--container);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 50ch; margin: 0 auto 28px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--accent-soft); color: var(--accent-deep); }
.cta-band .btn-cta { background: var(--orange); color: #fff; }
.cta-band .btn-cta:hover { background: var(--orange-deep); color: #fff; }

/* ===== Footer ===== */
footer { background: var(--warm); padding: 64px 0 32px; margin-top: 80px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-size: 0.9rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--ink-soft); font-size: 0.95rem; padding: 4px 0; }
.foot-grid a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: var(--ink-muted);
}

/* Compact contact strip — shown in footer of every page so phone/email always visible */
.foot-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 8px 0 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-contact-item { display: flex; flex-direction: column; gap: 4px; }
.foot-contact-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); font-weight: 600;
}
.foot-contact-item a {
  color: var(--ink); font-size: 0.98rem; font-weight: 500;
  transition: color 200ms var(--ease);
}
.foot-contact-item a:hover { color: var(--accent); }
.foot-contact-item .addr { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 760px) {
  .foot-contact { grid-template-columns: 1fr; gap: 14px; padding: 8px 0 20px; }
}

/* ===== Form layout & quick-nav ===== */
.form-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.form-quicknav {
  position: sticky; top: 120px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
}
.form-quicknav h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); margin: 0 0 12px; font-weight: 600;
}
.form-quicknav ol {
  list-style: none; counter-reset: step; padding: 0; margin: 0;
}
.form-quicknav li { counter-increment: step; margin: 0; }
.form-quicknav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  color: var(--ink-soft); font-size: 0.92rem;
  border-left: 2px solid transparent;
}
.form-quicknav a::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--warm); color: var(--ink-muted);
  font-size: 0.75rem; font-weight: 600; flex-shrink: 0;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.form-quicknav a:hover { background: var(--warm); color: var(--ink); }
.form-quicknav a.active { color: var(--accent); background: var(--accent-soft); }
.form-quicknav a.active::before { background: var(--accent); color: #fff; }
@media (max-width: 900px) {
  .form-shell { grid-template-columns: 1fr; }
  .form-quicknav {
    position: static;
    display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 12px;
  }
  .form-quicknav h4 { width: 100%; margin-bottom: 6px; }
  .form-quicknav ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .form-quicknav a { padding: 6px 10px; font-size: 0.85rem; }
}

/* Section heads inside form */
.form-section { scroll-margin-top: 130px; }
.form-section-head {
  display: flex; align-items: baseline; gap: 12px;
  margin: 28px 0 18px; padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.form-section-head:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.form-section-head .step {
  font-size: 0.78rem; color: var(--accent); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.form-section-head h3 { margin: 0; }

/* ===== Forms ===== */
.form-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 0.92rem; font-weight: 500;
  margin-bottom: 8px; color: var(--ink);
}
.field .hint { font-size: 0.82rem; color: var(--ink-muted); margin-top: 6px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; padding: 13px 14px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-elevated); color: var(--ink); font-family: inherit;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 110, 110, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-required::after { content: " *"; color: #c0392b; }

.consent {
  display: flex; gap: 10px; padding: 16px;
  background: var(--warm); border-radius: var(--radius-sm); margin-bottom: 20px;
  align-items: flex-start;
}
.consent input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.consent label { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }

.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.95rem; display: none; }
.form-msg.success { background: #e8f5ee; color: #1b5e20; border: 1px solid #c5e1cc; display: block; }
.form-msg.error { background: #fdecea; color: #7a1f17; border: 1px solid #f5c2bd; display: block; }

/* ===== Legal page ===== */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.legal h1 { font-size: 2.4rem; }
.legal h2 { margin-top: 2em; font-size: 1.4rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.4em; }
.legal li { margin-bottom: 6px; }
.legal .meta { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 32px; }

/* ===== Scroll reveal ===== */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.js .reveal.visible { opacity: 1; transform: none; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Accessibility helpers ===== */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Lotus hero visual (brand mark frame with photo window) ===== */
.hero-lotus { max-width: 540px; margin: 48px auto 0; }
.hero-lotus svg, .hero-lotus img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .hero-lotus { max-width: 340px; margin-top: 32px; } }

/* ===== Warm & human pass ===== */
h1, h2 { color: #14568a; }
.cta-band { background: #14568a; }
.feature-visual { background: linear-gradient(135deg, #fdf1e3 0%, #e8f2fb 100%); overflow: hidden; }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.card { background: #fffdf9; }
.hero::before {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(240, 112, 32, 0.08), transparent 55%),
    radial-gradient(ellipse at 75% 20%, rgba(0, 112, 192, 0.08), transparent 55%);
}

/* Checkboxes & radios: natural size, never full-width (Safari fix) */
.field input[type="checkbox"], .field input[type="radio"] {
  width: 16px; height: 16px; flex: 0 0 auto; margin: 0; padding: 0;
  accent-color: var(--accent);
}

/* ===== Photo cards & banner photos ===== */
.card-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; margin-bottom: 18px; display: block; }
.banner-photo { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; }

/* ===== Persistent warm gradient across the whole page ===== */
html { background: var(--bg); }
body { background: transparent; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 8%, rgba(240, 112, 32, 0.09), transparent 52%),
    radial-gradient(ellipse at 82% 28%, rgba(0, 112, 192, 0.07), transparent 52%),
    radial-gradient(ellipse at 50% 95%, rgba(240, 112, 32, 0.06), transparent 60%);
}
