:root {
  /* Brand palette: Royal Blue + Green (primary), Yellow (highlight), Red (rare) */
  --color-primary-green: #15803D;   /* healing green */
  --color-teal: #4169E1;            /* ROYAL BLUE (primary action) */
  --color-wood-brown: #DC2626;      /* rare alert accent (kept for legacy selectors) */
  --color-bg-main: #F7FAFF;         /* clinical off-white with a blue hint */
  --color-bg-card: #FFFFFF;         /* cards / sections */
  --color-border-light: #E2E8F0;    /* light borders */
  --color-text-main: var(--text-blue-grey);       /* main text */
  --color-text-muted: #475569;      /* secondary text */
  --color-accent-gold: #FBBF24;     /* highlight yellow */

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 28px rgba(2, 8, 23, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--color-text-main);
  background: var(--color-bg-main);
  line-height: 1.6;
}

a { color: var(--color-teal); text-decoration: none; }
a:hover { text-decoration: none; }
a:focus-visible { outline: 3px solid rgba(251,191,36,0.65); outline-offset: 3px; border-radius: 10px; }
a.underlined { text-decoration: none; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.skip-link {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; padding: 12px 14px; background: #fff; border: 1px solid var(--color-border-light); border-radius: 10px; z-index: 9999; }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 250, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  gap: 14px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  min-width: 220px;
}
.brand img { width: 74px; height: 74px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--color-border-light); }
.brand .name { font-weight: 750; letter-spacing: 0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.brand .tag { font-size: 13px; color: var(--color-text-muted); margin-top: -2px; }

nav.primary-nav { display: flex; align-items: center; gap: 16px; }
nav.primary-nav a {
  color: var(--color-text-main);
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--color-text-main);

  text-decoration: none;
  border: 1px solid var(--color-border-light);
  background: rgba(247, 250, 255, 0.92);
  font-weight: 750;
}
nav.primary-nav a:hover {
  background: rgba(65,105,225,0.06);
  border: 1px solid rgba(65,105,225,0.28);
  color: var(--color-teal);
  
  text-decoration: none;
}
.nav-cta { display: flex; gap: 10px; align-items: center; }
.mobile-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid var(--color-border-light);
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(2,8,23,0.10); }
.btn-primary {
  background: linear-gradient(135deg, rgba(65,105,225,0.98), rgba(21,128,61,0.98));
  border-color: rgba(65,105,225,0.30);
  color: #fff;
}
.btn-secondary {
  background: #fff;
  border-color: rgba(65,105,225,0.26);
  color: var(--color-teal);
}
.btn-outline {
  background: rgba(21,128,61,0.02);
  border-color: rgba(21,128,61,0.28);
  color: var(--color-primary-green);
}
.badge {
  display: inline-flex; align-items: center;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--color-border-light);
  background: #fff;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Sections */
section { padding: 56px 0; }
.tint-blue { background: rgba(65,105,225,0.04); }
.tint-green { background: rgba(21,128,61,0.04); }
.tint-yellow { background: rgba(251,191,36,0.06); }
.tint-mix { background: linear-gradient(180deg, rgba(65,105,225,0.04), rgba(21,128,61,0.03)); }

.section-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(65,105,225,0.18);
  border-left: 6px solid rgba(65,105,225,0.38);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
}
.section-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius);
  background: radial-gradient(900px 300px at 10% 0%, rgba(65,105,225,0.10), transparent 60%),
              radial-gradient(700px 260px at 90% 10%, rgba(21,128,61,0.08), transparent 60%);
}
.section-card > * { position: relative; }

.section-title {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.2px;
}
.kicker {
  display: inline-flex; gap: 10px; align-items: center;
  font-weight: 900; font-size: 12px;
  color: var(--color-teal);
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.kicker::before { content: "●"; color: var(--color-primary-green); font-size: 10px; line-height: 1; }
.muted { color: var(--color-text-muted); }

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: center; }
.grid-2.reverse { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 920px) { .grid-2, .grid-2.reverse { grid-template-columns: 1fr; } }

/* Hero */
.hero {
  padding: 28px 0 42px;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: stretch;
}
@media (max-width: 980px) { .hero-wrap { grid-template-columns: 1fr; } }

.hero-copy {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 10px 0 10px;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.6px;
}
.hero p { margin: 0 0 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  background: linear-gradient(135deg, rgba(65,105,225,0.16), rgba(21,128,61,0.12));
  box-shadow: var(--shadow);
  min-height: 360px;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Callout */
.callout {
  margin-top: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-left: 6px solid rgba(65,105,225,0.45);
  background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(65,105,225,0.06));
  padding: 14px 14px;
}
.callout strong { color: var(--color-text-main); }
.callout p { margin: 0; font-size: 14px; }

/* Spine */
.spine {
  display: grid;
  gap: 18px;
}
.spine .spine-item {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.spine .spine-item:nth-child(even) { grid-template-columns: 1.05fr 0.95fr; }
.spine .spine-item .media { min-height: 260px; background: #f0fdf4; }
.spine .spine-item .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spine .spine-item .content { padding: 26px; }
.spine h3 { margin: 10px 0 8px; font-size: 22px; line-height: 1.2; }
.spine ul { margin: 10px 0 0 18px; padding: 0; }
.spine li { margin: 6px 0; }
@media (max-width: 920px) {
  .spine .spine-item,
  .spine .spine-item:nth-child(even) { grid-template-columns: 1fr; }
  .spine .spine-item .media { min-height: 220px; }
}

/* Service cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 920px) { .cards { grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.service-card .topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.service-card h3 { margin: 10px 0 8px; font-size: 22px; letter-spacing: -0.2px; }
.service-card p { margin: 0 0 10px; }
.service-card ul { margin: 10px 0 0 18px; }
.service-card .price { font-weight: 850; }
.service-card .accent {
  width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-primary-green), var(--color-accent-gold));
  margin-bottom: 12px;
}
.service-card.advanced { border-color: rgba(65,105,225,0.28); }
.service-card.advanced .badge { border-color: rgba(65,105,225,0.20); }
.service-card.spa { border-color: rgba(21,128,61,0.22); }
.service-card.spa .badge { border-color: rgba(21,128,61,0.18); }

/* FAQ */
.faq {
  display: grid; gap: 10px;
}
details {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  padding: 14px 16px;
}
summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
summary::-webkit-details-marker { display:none; }
details p { margin: 10px 0 0; color: var(--color-text-muted); }

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid rgba(65,105,225,0.18);
  background: linear-gradient(180deg, rgba(65,105,225,0.03), transparent 45%);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; align-items: start; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr; } }
.small { font-size: 13px; color: var(--color-text-muted); }

hr.soft {
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: 18px 0;
}

.highlight {
  border-left: 4px solid rgba(65,105,225,0.85);
  padding-left: 12px;
}
.text-green { color: var(--color-primary-green); font-weight: 800; }
.text-blue { color: var(--color-teal); font-weight: 800; }
.text-yellow { color: #92400E; font-weight: 800; }
.grad {
  background: linear-gradient(135deg, rgba(65,105,225,1), rgba(21,128,61,1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.notice {
  border: 1px solid rgba(251,191,36,0.45);
  background: rgba(251,191,36,0.10);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--color-text-muted);
  font-size: 14px;
}


/* Mobile nav */
@media (max-width: 820px) {
  .header-inner { align-items: flex-start; flex-wrap: wrap; }
  .brand { width: 100%; min-width: 0; }
  .nav-cta { width: 100%; justify-content: flex-end; margin-top: 8px; }
  nav.primary-nav { display: none; width: 100%; }
  nav.primary-nav.is-open { display: grid; width: 100%; grid-template-columns: 1fr; gap: 6px; padding: 10px 0 14px; }
  .mobile-toggle { display: inline-flex; }
}


/* --- Additions for v3 layout --- */
.section-lead { margin: 10px 0 0; max-width: 72ch; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(65,105,225,0.22);
  background: linear-gradient(135deg, rgba(65,105,225,0.06), rgba(21,128,61,0.04));
  font-size: 13px;
  color: var(--color-text-muted);
}
.pill strong { color: var(--color-text-main); font-weight: 800; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }

.panel {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.panel h3 { margin: 6px 0 10px; font-size: 22px; }
.panel p { margin: 0 0 10px; }

.note {
  border-left: 4px solid rgba(65,105,225,0.85);
  background: rgba(65,105,225,0.06);
  padding: 14px 14px;
  border-radius: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.note strong { color: var(--color-text-main); }

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 920px) { .proof { grid-template-columns: 1fr; } }
.proof .stat {
  background: #fff;
  border: 1px solid rgba(65,105,225,0.16);
  border-top: 4px solid rgba(21,128,61,0.40);
  border-radius: 14px;
  padding: 14px 14px;
}
.proof .stat .k { font-weight: 900; letter-spacing: -0.2px; }
.proof .stat .v { color: var(--color-text-muted); font-size: 13px; margin-top: 4px; }

.anchor-offset { scroll-margin-top: 90px; }


/* Panels: coloured accents */
.panel { position: relative; }
.panel.panel-advanced { border-left: 6px solid rgba(65,105,225,0.60); background: linear-gradient(180deg, rgba(65,105,225,0.04), #fff 55%); }
.panel.panel-spa { border-left: 6px solid rgba(21,128,61,0.55); background: linear-gradient(180deg, rgba(21,128,61,0.04), #fff 55%); }
.panel.panel-emergency { border-left: 6px solid rgba(220,38,38,0.55); background: linear-gradient(180deg, rgba(220,38,38,0.04), #fff 55%); }


.hero h1 { position: relative; }
.hero h1::after { content: ""; display: block; width: 92px; height: 6px; border-radius: 999px; margin-top: 14px; background: linear-gradient(90deg, rgba(65,105,225,1), rgba(21,128,61,1), rgba(251,191,36,1)); opacity: 0.95; }


#emergency-relief { padding: 56px 0; }
/* Color pills */
.pill-green{
  border-color: rgba(22,163,74,0.45);
  background: linear-gradient(135deg, rgba(22,163,74,0.14), rgba(65,105,225,0.06));
}
.pill-green strong{ color: var(--green-600); }

/* Feelings / outcomes */
.feelings-wrap{ margin-top: 18px; }
.subhead{ margin: 18px 0 10px; font-size: 18px; color: var(--color-text-main); }
.feelings-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 12px;
}
@media (max-width: 920px){
  .feelings-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .feelings-grid{ grid-template-columns: 1fr; }
}
.feeling-card{
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-left: 6px solid rgba(65,105,225,0.55);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: var(--shadow-soft);
}
.feeling-card .feeling-title{
  font-weight: 800;
  letter-spacing: .2px;
}
.feeling-card .feeling-desc{ margin-top: 8px; font-size: 14px; }
.feeling-card .feeling-phys{ margin-top: 10px; font-size: 13px; }
.feeling-card.tone-1{ border-left-color: rgba(65,105,225,0.75); }
.feeling-card.tone-2{ border-left-color: rgba(22,163,74,0.75); }
.feeling-card.tone-3{ border-left-color: rgba(251,191,36,0.75); }
.feeling-card.tone-4{ border-left-color: rgba(239,68,68,0.55); }

/* Emergency approach */
.approach{ margin-top: 16px; }
.approach-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 920px){
  .approach-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .approach-grid{ grid-template-columns: 1fr; }
}
.step-card{
  background: linear-gradient(135deg, rgba(65,105,225,0.08), rgba(22,163,74,0.06));
  border: 1px solid rgba(65,105,225,0.18);
  border-left: 6px solid rgba(65,105,225,0.55);
  border-radius: var(--radius);
  padding: 12px 12px;
}
.step-card .k{ font-weight: 800; }
.step-card.step-2{ border-left-color: rgba(22,163,74,0.7); }
.step-card.step-3{ border-left-color: rgba(251,191,36,0.75); }
.step-card.step-4{ border-left-color: rgba(239,68,68,0.55); }

.notice.notice-green{
  border: 1px solid rgba(22,163,74,0.28);
  border-left: 6px solid rgba(22,163,74,0.65);
  background: linear-gradient(135deg, rgba(22,163,74,0.10), rgba(65,105,225,0.04));
}


/* === BodyAlive Advanced Update === */

:root {
  --royal-blue: #0f2a44;
  --royal-blue-deep: #0b2236;
  --text-blue-grey: #243845;
  --text-blue-green: #3a5a5f;
  --yellow-accent: #f2c94c;
  --blood-red: #7a0c12;
  --green-accent: #2f7f6f;
}

body {
  color: var(--text-blue-grey);
}

h1, h2, h3, h4, h5 {
  color: var(--royal-blue-deep);
}

.small-text, .meta, .subtext {
  color: var(--text-blue-green);
}

a {
  color: var(--royal-blue);
  border-bottom: 1px solid var(--blood-red);
}

.promo-pill {
  background: var(--yellow-accent);
  color: var(--royal-blue-deep);
}

.watermark {
  opacity: 0.05;
}


/* === Advanced Therapy Watermark === */
.section-watermark {
  position: relative;
}

.section-watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/logos/logo-bodyalive-color-redheel-fixed.png') no-repeat center;
  background-size: 70%;
  opacity: 0.05;
  pointer-events: none;
}


/* === NAV BUTTONS (no underlines, blood-red outline) === */
.primary-nav {
  gap: 10px;
}

.primary-nav a.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--blood-red);
  border-radius: 6px;
  background: transparent;
  color: var(--royal-blue);
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a.nav-btn:hover,
.primary-nav a.nav-btn:focus {
  outline: none;
  background: rgba(122, 12, 18, 0.06);
}

/* Header tagline: no underline, palette text */
.site-header .tag {
  color: var(--green-accent);
}

/* Brand splash logo (homepage) */
.brand-splash {
  padding: 24px 0 10px;
}

.brand-splash-inner {
  display: flex;
  justify-content: center;
}

.brand-splash-logo {
  max-width: 360px;
  width: 70%;
  height: auto;
}


/* Accessibility: screen-reader only text */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}


/* Hero tagline image */
.hero-tagline{display:flex;justify-content:center;align-items:center;margin:0 auto 18px;}
.hero-tagline-img{width:100%;max-width:860px;height:auto;display:block;}
@media (max-width: 640px){.hero-tagline-img{max-width:980px;}}


/* Header brand title fit */
@media (max-width: 520px) {
  .brand .name { font-size: 15px; }
  .brand img { width: 64px; height: 64px; }
}

/* =========================
   HOME SPLASH (logo-only)
   ========================= */
.home-splash{
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #fff;
}
.home-splash-inner{
  width: 100%;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.home-splash-logo{
  width: min(980px, 96vw);
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* Hide header while on the splash (first view stays clean) */
body.at-top .site-header{
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Accessibility helper */
.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
