/* ==========================================================================
   RECO Base Design System
   Shared foundation for all RECO Health network websites
   Version: 1.0.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors - Override per site */
  --primary: #000000;
  --primary-light: #333333;
  --primary-dark: #000000;
  --primary-rgb: 0, 0, 0;

  /* Neutral Palette */
  --white: #ffffff;
  --off-white: #f5f0eb;
  --cream: #F4F0E6;
  --gray-50: #fafaf9;
  --gray-100: #f5f5f4;
  --gray-200: #e7e5e4;
  --gray-300: #d6d3d1;
  --gray-400: #a8a29e;
  --gray-500: #78716c;
  --gray-600: #57534e;
  --gray-700: #44403c;
  --gray-800: #292524;
  --gray-900: #1c1917;
  --black: #0a0a0a;
  --dark: #201E10;

  /* Semantic Colors */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-light: var(--cream);
  --text-on-primary: var(--white);
  --bg-primary: var(--white);
  --bg-secondary: var(--off-white);
  --bg-dark: var(--dark);
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --border-color: var(--gray-200);

  /* Typography */
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'DM Mono', 'SF Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  --text-7xl: 4.5rem;     /* 72px */

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Layout */
  --container-max: 1440px;
  --container-narrow: 900px;
  --container-wide: 1600px;
  --container-padding: var(--space-6);
  --section-padding: var(--space-20);

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  /* Z-index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* Navbar */
  --navbar-height: 80px;
  --navbar-blur: 20px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Remove autofill background */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px var(--white) inset;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 300;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 300;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: 300;
}

h4 {
  font-size: var(--text-2xl);
  font-weight: 500;
}

h5 {
  font-size: var(--text-xl);
  font-weight: 500;
}

h6 {
  font-size: var(--text-lg);
  font-weight: 500;
}

p {
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.text-accent {
  font-family: var(--font-accent);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-size: var(--text-sm);
  font-weight: 400;
}

.text-highlight {
  color: var(--primary);
}

.text-large {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   4. Layout & Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--text-light);
}

.section--dark p {
  color: var(--gray-300);
}

.section--cream {
  background-color: var(--off-white);
}

.section--primary {
  background-color: var(--primary);
  color: var(--text-on-primary);
}

.section--primary h1,
.section--primary h2,
.section--primary h3 {
  color: var(--text-on-primary);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--col {
  flex-direction: column;
}

.flex--wrap {
  flex-wrap: wrap;
}

.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* --------------------------------------------------------------------------
   5. Navbar (Glassmorphic Sticky Header)
   -------------------------------------------------------------------------- */
.reco-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  transition: background-color var(--duration-base) var(--ease-out),
              backdrop-filter var(--duration-base) var(--ease-out);
}

.reco-navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(var(--navbar-blur));
  backdrop-filter: blur(var(--navbar-blur));
  box-shadow: var(--shadow-sm);
}

.reco-navbar.dark-mode {
  background-color: rgba(10, 10, 10, 0.85);
}

.reco-navbar.dark-mode.scrolled {
  background-color: rgba(10, 10, 10, 0.92);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Logo */
.navbar-logo {
  flex-shrink: 0;
  z-index: calc(var(--z-sticky) + 1);
}

.navbar-logo img {
  height: 40px;
  width: auto;
  transition: opacity var(--duration-fast);
}

.navbar-logo img:hover {
  opacity: 0.8;
}

/* Desktop Navigation */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--duration-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
}

.dark-mode .nav-link {
  color: var(--text-light);
}

.dark-mode .nav-link:hover {
  color: var(--primary-light);
}

/* Dropdown Arrow */
.nav-link .arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--duration-fast);
}

.nav-item:hover .nav-link .arrow {
  transform: rotate(-135deg) translateY(-2px);
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: var(--space-3) 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-out),
              visibility var(--duration-base);
  z-index: var(--z-dropdown);
}

.nav-item:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown a {
  display: block;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--duration-fast), background-color var(--duration-fast);
}

.nav-dropdown a:hover {
  color: var(--primary);
  background-color: var(--gray-50);
}

/* Mega Menu */
.nav-mega {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-out),
              visibility var(--duration-base);
  z-index: var(--z-dropdown);
}

.nav-item:hover > .nav-mega {
  opacity: 1;
  visibility: visible;
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-10) var(--container-padding);
}

.mega-column h4 {
  font-size: var(--text-sm);
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--primary);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.mega-column a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.mega-column a:hover {
  color: var(--primary);
}

.mega-featured {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.mega-featured img {
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* CTA Buttons in Navbar */
.navbar-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.navbar-phone {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--duration-fast);
}

.navbar-phone:hover {
  color: var(--primary);
}

.dark-mode .navbar-phone {
  color: var(--text-light);
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: calc(var(--z-overlay) + 1);
}

.navbar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast);
  transform-origin: center;
}

.dark-mode .navbar-toggle span {
  background-color: var(--text-light);
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--white);
  z-index: var(--z-overlay);
  padding: calc(var(--navbar-height) + var(--space-8)) var(--container-padding) var(--space-8);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.mobile-menu.active {
  transform: translateX(0);
}

.dark-mode .mobile-menu {
  background-color: var(--bg-dark);
}

.mobile-menu .nav-link {
  font-size: var(--text-xl);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu .nav-dropdown {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  box-shadow: none;
  padding: 0 0 0 var(--space-6);
  background: transparent;
  display: none;
}

.mobile-menu .nav-item.expanded .nav-dropdown {
  display: block;
}

.mobile-menu .nav-dropdown a {
  padding: var(--space-3) 0;
  font-size: var(--text-lg);
  border-bottom: 1px solid var(--gray-100);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
}

.btn--primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--secondary:hover {
  background-color: var(--primary);
  color: var(--text-on-primary);
  transform: translateY(-1px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn--ghost:hover {
  background-color: var(--text-primary);
  color: var(--white);
}

.btn--white {
  background-color: var(--white);
  color: var(--text-primary);
  border-color: var(--white);
}

.btn--white:hover {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--icon {
  padding: var(--space-3);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: var(--space-6);
}

.card__tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  color: var(--primary);
  font-weight: 500;
  transition: gap var(--duration-fast);
}

.card__link:hover {
  gap: var(--space-3);
}

.card__link::after {
  content: '\2192';
}

/* Dark card variant */
.card--dark {
  background: var(--bg-dark);
}

.card--dark .card__title {
  color: var(--text-light);
}

.card--dark .card__text {
  color: var(--gray-400);
}

/* Glass card variant */
.card--glass {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   8. Hero Sections
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  overflow: hidden;
}

.hero--short {
  min-height: 60vh;
}

.hero--medium {
  min-height: 75vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__tag {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-6);
  line-height: var(--leading-tight);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--gray-300);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
  max-width: 600px;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   9. Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

/* Dark form variant */
.form--dark .form-input,
.form--dark .form-textarea {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

.form--dark .form-input:focus,
.form--dark .form-textarea:focus {
  border-color: var(--primary);
}

.form--dark .form-label {
  color: var(--gray-400);
}

/* Form success/error states */
.form-success {
  padding: var(--space-4);
  background-color: #ecfdf5;
  color: #065f46;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: none;
}

.form-error {
  padding: var(--space-4);
  background-color: #fef2f2;
  color: #991b1b;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: none;
}

/* --------------------------------------------------------------------------
   10. Accordion / FAQ
   -------------------------------------------------------------------------- */
.accordion {
  border-top: 1px solid var(--border-color);
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}

.accordion-trigger::after {
  content: '+';
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--duration-base) var(--ease-out);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.accordion-item.active .accordion-trigger::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.accordion-content__inner {
  padding-bottom: var(--space-6);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
  padding: var(--space-8);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: #fbbf24;
}

.testimonial-card__text {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.testimonial-card__author {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Testimonial rotation */
.testimonial-rotator {
  position: relative;
}

.testimonial-rotator__slide {
  opacity: 0;
  transition: opacity 500ms ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.testimonial-rotator__slide.active {
  opacity: 1;
  position: relative;
}

.testimonial-progress {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.testimonial-progress__bar {
  flex: 1;
  height: 3px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.testimonial-progress__fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width linear;
}

.testimonial-progress__bar.active .testimonial-progress__fill {
  width: 100%;
}

/* --------------------------------------------------------------------------
   12. Team Members
   -------------------------------------------------------------------------- */
.team-card {
  text-align: center;
}

.team-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.team-card__name {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.team-card__title {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  color: var(--primary);
}

.team-card__credentials {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* --------------------------------------------------------------------------
   13. Accreditation Marquee
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding: var(--space-12) 0;
}

.marquee__track {
  display: flex;
  gap: var(--space-12);
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.marquee__item {
  flex-shrink: 0;
  height: 48px;
  opacity: 0.6;
  transition: opacity var(--duration-fast);
}

.marquee__item:hover {
  opacity: 1;
}

.marquee__item img {
  height: 100%;
  width: auto;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   14. Treatment/Service Panels (Expandable)
   -------------------------------------------------------------------------- */
.panels {
  display: flex;
  gap: var(--space-2);
  height: 500px;
}

.panel {
  position: relative;
  flex: 0 0 96px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: flex var(--duration-slow) var(--ease-in-out);
}

.panel.active {
  flex: 5 1 0;
}

.panel__bg {
  position: absolute;
  inset: 0;
}

.panel__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
}

.panel__title {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  transform-origin: bottom left;
  transition: transform var(--duration-slow) var(--ease-in-out);
}

.panel:not(.active) .panel__title {
  transform: rotate(-90deg) translateX(-100%);
  left: 50%;
}

.panel__description {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  padding-top: calc(var(--space-6) + var(--text-lg) * 1.4);
  color: var(--gray-300);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  opacity: 0;
  transition: opacity 310ms ease;
}

.panel.active .panel__description {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.reco-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.footer-column h4 {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-5);
  font-weight: 500;
}

.footer-column a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--gray-400);
  transition: color var(--duration-fast);
}

.footer-column a:hover {
  color: var(--white);
}

/* Footer Contact */
.footer-contact {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact__phone {
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  color: var(--primary);
  display: block;
  margin-bottom: var(--space-2);
}

.footer-contact__email {
  font-size: var(--text-base);
  color: var(--gray-400);
}

.footer-contact__email:hover {
  color: var(--white);
}

/* Footer Social */
.footer-social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gray-400);
  transition: all var(--duration-fast);
}

.footer-social a:hover {
  color: var(--white);
  border-color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.1);
}

/* Footer Accreditations */
.footer-accreditations {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.footer-accreditations img {
  height: 48px;
  width: auto;
  opacity: 0.6;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.footer-bottom a {
  color: var(--gray-500);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* Footer CTA Form */
.footer-cta {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-cta h3 {
  color: var(--text-light);
  margin-bottom: var(--space-3);
}

.footer-cta p {
  color: var(--gray-400);
  margin-bottom: var(--space-6);
}

/* --------------------------------------------------------------------------
   16. Scroll-Triggered Video
   -------------------------------------------------------------------------- */
.scroll-video {
  position: relative;
  overflow: hidden;
}

.scroll-video__container {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.scroll-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --------------------------------------------------------------------------
   17. Blog / Post Styles
   -------------------------------------------------------------------------- */
.post-card {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border-color);
}

.post-card__image {
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.post-card__meta {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-3);
}

.post-card__date {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.post-card__category {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  color: var(--primary);
  padding: var(--space-1) var(--space-3);
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-full);
}

.post-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Blog category filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.category-filter__btn {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
  cursor: pointer;
  background: none;
}

.category-filter__btn:hover,
.category-filter__btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   18. Insurance Section
   -------------------------------------------------------------------------- */
.insurance-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  justify-content: center;
}

.insurance-logos img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.insurance-logos img:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   19. Stats / Counters
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat__number {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__label {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   20. Admissions Steps / Timeline
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  counter-reset: step-counter;
}

.step {
  counter-increment: step-counter;
  position: relative;
  text-align: center;
}

.step::before {
  content: counter(step-counter, decimal-leading-zero);
  display: block;
  font-family: var(--font-accent);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-4);
  opacity: 0.3;
}

.step__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.step__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   21. Checklist (Interactive)
   -------------------------------------------------------------------------- */
.checklist {
  max-width: 600px;
}

.checklist__progress {
  margin-bottom: var(--space-8);
}

.checklist__progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.checklist__progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--duration-base) var(--ease-out);
  width: 0;
}

.checklist__progress-text {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-2);
  text-align: right;
}

.checklist__category {
  margin-bottom: var(--space-6);
}

.checklist__category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
}

.checklist__category-title {
  font-weight: 600;
}

.checklist__category-count {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0 var(--space-3) var(--space-4);
}

.checklist__item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist__item label {
  font-size: var(--text-base);
  color: var(--text-primary);
  cursor: pointer;
}

.checklist__item.checked label {
  text-decoration: line-through;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   22. Day in Treatment Timeline
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
}

.timeline__period {
  margin-bottom: var(--space-12);
}

.timeline__time {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--primary);
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-4));
  background: var(--bg-primary);
  padding: var(--space-3) 0;
  z-index: 1;
}

.timeline__events {
  padding-left: var(--space-8);
  border-left: 2px solid var(--gray-200);
}

.timeline__event {
  padding: var(--space-4) 0;
  position: relative;
}

.timeline__event::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: calc(var(--space-4) + 8px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline__event-title {
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.timeline__event-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   23. Animations
   -------------------------------------------------------------------------- */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 100ms; }
.animate-on-scroll.delay-2 { transition-delay: 200ms; }
.animate-on-scroll.delay-3 { transition-delay: 300ms; }
.animate-on-scroll.delay-4 { transition-delay: 400ms; }

/* --------------------------------------------------------------------------
   24. Utility Classes
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.w-full { width: 100%; }
.max-w-narrow { max-width: var(--container-narrow); }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* --------------------------------------------------------------------------
   25. Responsive Design
   -------------------------------------------------------------------------- */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  :root {
    --section-padding: var(--space-16);
    --navbar-height: 70px;
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }

  .hero__title { font-size: var(--text-4xl); }
  .hero__subtitle { font-size: var(--text-lg); }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .navbar-nav { display: none; }
  .navbar-toggle { display: flex; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .panels { height: 400px; }

  .mega-inner { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  :root {
    --section-padding: var(--space-12);
    --container-padding: var(--space-5);
    --navbar-height: 64px;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  .hero { min-height: 85vh; }
  .hero__title { font-size: var(--text-3xl); }
  .hero__subtitle { font-size: var(--text-base); }
  .hero__actions { flex-direction: column; }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .stat__number { font-size: var(--text-4xl); }

  .steps { grid-template-columns: 1fr; }

  .panels {
    flex-direction: column;
    height: auto;
  }
  .panel {
    flex: 0 0 auto;
    height: 200px;
  }
  .panel.active {
    height: 400px;
  }
  .panel:not(.active) .panel__title {
    transform: none;
    left: var(--space-6);
  }

  .post-card {
    flex-direction: column;
  }
  .post-card__image {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .navbar-logo img { height: 36px; }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
  h1 { font-size: var(--text-2xl); }
  .hero__title { font-size: var(--text-2xl); }

  .btn--lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }
}

/* Large Desktop (> 1440px) */
@media (min-width: 1441px) {
  :root {
    --container-padding: var(--space-10);
  }
}

/* --------------------------------------------------------------------------
   26. Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .reco-navbar,
  .reco-footer,
  .navbar-toggle,
  .mobile-menu,
  .btn,
  .scroll-video,
  .marquee {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }
}

/* ==========================================================================
   Footer newsletter / contact forms — polished, brand-aware input styling.
   Footer brightness is detected at runtime by initFooterTheme() in
   shared/js/reco-base.js, which adds .reco-footer-light or .reco-footer-dark
   to <html>. Default (no class) is the dark-footer treatment so SSR HTML
   without JS still looks correct on island/immersive/health.
   ========================================================================== */
:root {
  --reco-input-bg-dark: rgba(255, 255, 255, 0.06);
  --reco-input-text-dark: #F4F0E6;
  --reco-input-border-dark: rgba(255, 255, 255, 0.16);
  --reco-input-placeholder-dark: rgba(244, 240, 230, 0.5);

  --reco-input-bg-light: #ffffff;
  --reco-input-text-light: #201E10;
  --reco-input-border-light: rgba(32, 30, 16, 0.18);
  --reco-input-placeholder-light: rgba(32, 30, 16, 0.45);
}

/* Base shape — applies to all footer inputs regardless of theme */
.footer .form-field,
.footer input.w-input,
.footer textarea.w-input,
section.footer .form-field,
section.footer input.w-input,
section.footer textarea.w-input,
.section-footer .form-field {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Figtree', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-sizing: border-box;
  /* Light defaults — readable on white footers (psychiatry).
     Overridden by .reco-footer-dark below for dark-footer sites. */
  background: var(--reco-input-bg-light);
  color: var(--reco-input-text-light);
  border: 1px solid var(--reco-input-border-light);
}

.footer textarea.form-field,
.footer textarea.w-input,
section.footer textarea.form-field {
  height: auto;
  min-height: 96px;
  resize: vertical;
}

.footer .form-field::placeholder,
.footer .w-input::placeholder,
section.footer .form-field::placeholder {
  color: var(--reco-input-placeholder-light);
}

/* Dark-footer overrides — applies to island / immersive / health */
.reco-footer-dark .footer .form-field,
.reco-footer-dark .footer input.w-input,
.reco-footer-dark .footer textarea.w-input,
.reco-footer-dark section.footer .form-field,
.reco-footer-dark section.footer input.w-input,
.reco-footer-dark section.footer textarea.w-input,
.reco-footer-dark .section-footer .form-field {
  background: var(--reco-input-bg-dark);
  color: var(--reco-input-text-dark);
  border-color: var(--reco-input-border-dark);
}

.reco-footer-dark .footer .form-field::placeholder,
.reco-footer-dark .footer .w-input::placeholder,
.reco-footer-dark section.footer .form-field::placeholder {
  color: var(--reco-input-placeholder-dark);
}

/* Focus state - brand color ring on either background */
.footer .form-field:focus,
.footer .w-input:focus,
section.footer .form-field:focus,
section.footer .w-input:focus {
  border-color: var(--primary, #6B3FA0);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 107 63 160), 0.18);
}

.reco-footer-dark .footer .form-field:focus,
.reco-footer-dark section.footer .form-field:focus {
  background: rgba(255, 255, 255, 0.10);
}

.footer .form-field.reco-input-error,
.footer .w-input.reco-input-error,
section.footer .form-field.reco-input-error {
  border-color: #d93838;
  box-shadow: 0 0 0 3px rgba(217, 56, 56, 0.18);
}

/* Webflow's success / fail panels */
.footer .w-form-done,
.footer .w-form-fail,
section.footer .w-form-done,
section.footer .w-form-fail,
.section-footer .w-form-done,
.section-footer .w-form-fail {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.footer .w-form-done,
section.footer .w-form-done,
.section-footer .w-form-done {
  background: rgba(80, 166, 60, 0.12);
  color: #2d6e1c;
  border: 1px solid rgba(80, 166, 60, 0.35);
}
.reco-footer-dark .footer .w-form-done,
.reco-footer-dark section.footer .w-form-done {
  background: rgba(80, 166, 60, 0.18);
  color: #b9e7a8;
}

.footer .w-form-fail,
section.footer .w-form-fail,
.section-footer .w-form-fail {
  background: rgba(217, 56, 56, 0.10);
  color: #a32424;
  border: 1px solid rgba(217, 56, 56, 0.35);
}
.reco-footer-dark .footer .w-form-fail,
.reco-footer-dark section.footer .w-form-fail {
  background: rgba(217, 56, 56, 0.18);
  color: #f6b3b3;
}

.reco-newsletter-thanks {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(var(--primary-rgb, 107 63 160), 0.10);
  color: var(--primary, #6B3FA0);
  border: 1px solid rgba(var(--primary-rgb, 107 63 160), 0.30);
  font-size: 14px;
}
.reco-footer-dark .reco-newsletter-thanks {
  background: rgba(var(--primary-rgb, 107 63 160), 0.18);
  color: var(--cream, #F4F0E6);
  border-color: rgba(var(--primary-rgb, 107 63 160), 0.40);
}

/* Form labels — let parent text color flow naturally */
.footer label,
section.footer label,
.section-footer label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  display: inline-block;
  color: inherit;
  opacity: 0.85;
}

/* ----------------------------------------------------------------------
 * Footer form layout: force every wrapper (Webflow utility classes
 * .flex-12, .flex-16-auto, .flex-24, .w-form, etc.) to stretch full-width
 * in the footer column. Without this, .flex-24.left-align uses
 * `align-items: flex-start` so the email input shrinks to natural width
 * (~half the column).
 * ---------------------------------------------------------------------- */
.footer .w-form,
.footer form,
section.footer .w-form,
section.footer form,
.section-footer .w-form,
.section-footer form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer form .flex-12,
.footer form .flex-12.down,
.footer form .flex-16-auto,
.footer form .flex-16-auto.full-width,
.footer form > div,
section.footer form .flex-12,
section.footer form .flex-12.down,
section.footer form .flex-16-auto,
section.footer form > div {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Form root containers should stretch their children, not start-align them */
.footer form.flex-24,
.footer form.flex-24.left-align,
section.footer form.flex-24,
section.footer form.flex-24.left-align {
  align-items: stretch;
  width: 100%;
}

/* Submit button: full-width, sized like the input above it */
.footer form input.purple-submit,
.footer form input.orange-submit,
.footer form input.black-submit,
.footer form input.green-submit,
.footer form input[type="submit"],
section.footer form input[type="submit"] {
  width: 100%;
  display: block;
  height: 48px;
  margin-top: 4px;
}


/* ===== Nav dropdown size overrides (works on all 4 sites) =====
   The Webflow shared CSS pins .admissions and .resources dropdowns to a
   fixed 350-380px height which clips items when content is taller. Use
   higher selector specificity to override safely on every site. */
.section-nav .desktop-nav-dropdown-container.admissions,
.section-nav .desktop-nav-dropdown-container.resources,
.section-nav .desktop-nav-dropdown-container.conditions {
  height: auto !important;
  min-height: 350px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Mega menu (3-column for health/psych) — never clip; allow scroll */
.section-nav .desktop-nav-dropdown-container.mega {
  max-height: 85vh;
  overflow-y: auto;
}

/* Reco-psychiatry: Services column has 16 items - render in 2 sub-columns
   so the mega-menu stays compact and nothing gets cut off. */
.desktop-nav-dropdown-container.mega .nav-mega-col.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 4px;
  grid-auto-rows: min-content;
}
.desktop-nav-dropdown-container.mega .nav-mega-col.split-2 .nav-mega-col-title {
  grid-column: 1 / -1;
}

/* ======================================================================
   Homepage blog section (island / immersive) — clean, luxury card design
   matching the polish of the health/psych homepage blog sections.
   Wraps the Webflow blog-list-item markup in a proper card with border,
   rounded image, hover lift, and tight typography hierarchy.
   ====================================================================== */
.section-blog-home {
  padding-top: 80px;
  padding-bottom: 96px;
  background: #fafaf7;
}
.section-blog-home .flex-24.centered { margin-bottom: 56px; }
.section-blog-home .blogs-wrapper { width: 100%; }
.section-blog-home .blogs-list,
.section-blog-home .w-dyn-items {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.section-blog-home .blog-list-item {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.section-blog-home .blog-list-content {
  width: 100% !important;
  display: flex !important;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(32, 30, 16, 0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, border-color .4s ease;
}
.section-blog-home .blog-list-content:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 18px 48px rgba(32, 30, 16, 0.10), 0 4px 6px rgba(85, 61, 0, 0.05);
}
.section-blog-home .blog-image-div {
  aspect-ratio: 16 / 10;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f0ede6, #e8e4dc);
}
.section-blog-home .blog-image-div img,
.section-blog-home .blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  transition: transform .6s ease;
}
.section-blog-home .blog-list-content:hover .blog-image-div img,
.section-blog-home .blog-list-content:hover .blog-image {
  transform: scale(1.04);
}
.section-blog-home .blog-list-text {
  padding: 24px 24px 28px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-blog-home .blog-list-text .font-12 {
  font-family: 'DM Mono', monospace;
  font-size: 11px !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(32, 30, 16, 0.55) !important;
}
.section-blog-home .blog-list-text h3,
.section-blog-home .blog-list-text .font-24 {
  font-family: Figtree, sans-serif;
  font-size: 19px !important;
  font-weight: 500 !important;
  line-height: 1.35;
  color: #201E10 !important;
  margin: 0 !important;
  letter-spacing: -0.2px;
}
.section-blog-home .blog-list-text .font-16,
.section-blog-home .blog-list-text p {
  font-family: Figtree, sans-serif;
  font-size: 14px !important;
  line-height: 1.65;
  color: rgba(32, 30, 16, 0.55) !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.section-blog-home .orange-submit.w-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-decoration: none;
}
@media (max-width: 991px) {
  .section-blog-home .blogs-list,
  .section-blog-home .w-dyn-items { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section-blog-home { padding-top: 64px; padding-bottom: 72px; }
}
@media (max-width: 600px) {
  .section-blog-home .blogs-list,
  .section-blog-home .w-dyn-items { grid-template-columns: 1fr; gap: 18px; }
}

/* === Mega-menu styling refinements (match immersive's Treatment dropdown look) === */
.section-nav .desktop-nav-dropdown-container.mega .nav-mega-col-title {
  font-family: Figtree, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: #201E10;
  padding: 8px 12px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(143, 142, 132, 0.18);
}
.section-nav .desktop-nav-dropdown-container.mega .nav-mega-col + .nav-mega-col {
  border-left: 1px solid rgba(143, 142, 132, 0.12);
  padding-left: 8px;
  margin-left: 4px;
}
.section-nav .desktop-nav-dropdown-container.mega .nav-mega-col .nav-dropdown-link {
  padding: 8px 12px;
  gap: 2px;
}
.section-nav .desktop-nav-dropdown-container.mega .nav-mega-col .nav-dropdown-link .font-semibold {
  font-size: 14px;
  font-weight: 500;
}
.section-nav .desktop-nav-dropdown-container.mega .nav-mega-col .nav-dropdown-link .font-lite-black {
  font-size: 11px;
  color: rgba(32,30,16,0.5);
}
.section-nav .desktop-nav-dropdown-container.mega .nav-mega-col.split-2 .nav-dropdown-link {
  padding: 6px 10px;
}
.section-nav .desktop-nav-dropdown-container.mega .nav-mega-col.split-2 .nav-dropdown-link .font-lite-black {
  display: none;
}

/* ============================================================
   Single blog content links — luxury reco-branded inline link
   styling so prose links inside articles aren't invisible.
   Targets paragraph/list/blockquote anchors inside <article>,
   excluding cards/buttons/tags. Each site can override
   --reco-link-color in its own CSS.
   ============================================================ */
:root {
  --reco-link-color: var(--primary, #c87d3a);
  --reco-link-hover: var(--primary-dark, #8b531c);
}
article p > a:not([class]):not(.btn),
article li > a:not([class]):not(.btn),
article blockquote a:not([class]):not(.btn),
article .prose a:not([class]):not(.btn),
.section.inner-section--white .container p > a:not([class]):not(.btn),
.section.inner-section--white .container li > a:not([class]):not(.btn) {
  color: var(--reco-link-color);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0,0,0,0.2);
  font-weight: 500;
  transition: color .2s ease, text-decoration-color .2s ease, text-decoration-thickness .2s ease;
}
article p > a:not([class]):not(.btn):hover,
article li > a:not([class]):not(.btn):hover,
article blockquote a:not([class]):not(.btn):hover,
article .prose a:not([class]):not(.btn):hover,
.section.inner-section--white .container p > a:not([class]):not(.btn):hover,
.section.inner-section--white .container li > a:not([class]):not(.btn):hover {
  color: var(--reco-link-hover);
  text-decoration-color: var(--reco-link-color);
  text-decoration-thickness: 2px;
}

/* ==============================================================
   Treatment-pattern dropdown — exact match to immersive's
   Treatment tab. Used by reco-health Treatment + reco-psychiatry
   Care dropdowns: single column of curated links on the left,
   featured side panel with "View all" on the right.
   ============================================================== */
.section-nav .desktop-nav-dropdown-container.treatment {
  width: 704px !important;
  max-width: 704px !important;
  height: auto !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  padding: 12px;
  gap: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(143, 142, 132, 0.3);
  box-shadow: 0 2px 20px rgba(32, 30, 16, 0.1);
  overflow: visible;
}
.section-nav .desktop-nav-dropdown-container.treatment .nav-dropdown-links-div.treatment {
  flex-flow: column;
  justify-content: space-evenly;
  width: 50%;
  height: 100%;
  display: flex;
  gap: 0;
}
.section-nav .desktop-nav-dropdown-container.treatment .nav-dropdown-link {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--primary-black, #201E10);
  transition: background-color 0.2s ease;
}
.section-nav .desktop-nav-dropdown-container.treatment .nav-dropdown-link:hover {
  background-color: var(--lite-sand, #f5f0eb);
}
.section-nav .desktop-nav-dropdown-container.treatment .nav-dropdown-link .font-semibold {
  font-family: Figtree, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-black, #201E10);
  line-height: 1.3;
}
.section-nav .desktop-nav-dropdown-container.treatment .nav-dropdown-link .font-lite-black {
  font-family: Figtree, sans-serif;
  font-size: 12px;
  color: rgba(32, 30, 16, 0.6);
  line-height: 1.4;
}

/* RIGHT SIDE PANEL — featured sub-section with View all link */
.section-nav .desktop-nav-dropdown-container.treatment .nav-special-side-div.therapies-div {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
  position: relative;
}
.section-nav .desktop-nav-dropdown-container.treatment .flex-auto.treatment-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(143, 142, 132, 0.3);
  border-radius: 8px;
  height: 100%;
  padding: 14px 12px;
  box-shadow: 2px 4px 8px rgba(85, 61, 0, 0.15);
  justify-content: space-between;
  align-items: stretch;
}
.section-nav .desktop-nav-dropdown-container.treatment .treatment-div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  height: auto;
  padding: 0 4px;
  gap: 12px;
}
.section-nav .desktop-nav-dropdown-container.treatment .treatment-div .flex-16 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.section-nav .desktop-nav-dropdown-container.treatment .treatment-div .font-semibold {
  font-family: Figtree, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-black, #201E10);
  margin-bottom: 4px;
}
.section-nav .desktop-nav-dropdown-container.treatment .flex-12.down {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: flex-start;
}
.section-nav .desktop-nav-dropdown-container.treatment .flex-12.down a {
  font-family: Figtree, sans-serif;
  font-size: 12px;
  color: rgba(32, 30, 16, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}
.section-nav .desktop-nav-dropdown-container.treatment .flex-12.down a:hover {
  color: var(--primary-black, #201E10);
}
.section-nav .desktop-nav-dropdown-container.treatment .flex-8.link-small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-family: Figtree, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-black, #201E10);
  text-decoration: none;
  align-self: flex-end;
}
.section-nav .desktop-nav-dropdown-container.treatment .flex-8.link-small svg {
  transition: transform 0.2s ease;
}
.section-nav .desktop-nav-dropdown-container.treatment .flex-8.link-small:hover svg {
  transform: translateX(4px);
}

/* Health home blog section — kill the huge gap below the cards */
.section.section--blog {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}
.section.section--blog .news-grid {
  margin-bottom: 0 !important;
}

/* ============================================================
   Single blog post — 2-column layout with sticky sidebar.
   Used by reco-health blog/single template.
   ============================================================ */
.single-blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.single-blog-content {
  min-width: 0;
  max-width: 720px;
}
.single-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--navbar-height, 80px) + 24px);
  align-self: start;
}
.sidebar-card {
  background: var(--off-white, #fafaf7);
  border: 1px solid rgba(32, 30, 16, 0.08);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-card--accent {
  background: var(--dark, #1a1a1a);
  color: #fff;
  border-color: transparent;
}
.sidebar-card__eyebrow {
  font-family: var(--font-accent, 'DM Mono', monospace);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.6;
}
.sidebar-card__phone {
  font-family: var(--font-display, Figtree, sans-serif);
  font-size: 26px;
  font-weight: 500;
  color: inherit !important;
  text-decoration: none;
  letter-spacing: -0.4px;
  margin: 4px 0;
}
.sidebar-card__meta {
  font-size: 12px;
  opacity: 0.6;
}
.sidebar-card__title {
  font-family: var(--font-display, Figtree, sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #201E10);
  margin-bottom: 6px;
}
.sidebar-card__link {
  font-size: 14px;
  color: var(--text-secondary, rgba(32, 30, 16, 0.6)) !important;
  text-decoration: none !important;
  padding: 4px 0;
  transition: color .15s ease;
  border-bottom: none !important;
}
.sidebar-card__link:hover {
  color: var(--text-primary, #201E10) !important;
}
.sidebar-card__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary, rgba(32, 30, 16, 0.6));
  margin: 0 0 6px;
}
.sidebar-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--primary, #201E10);
  color: #fff !important;
  font-family: var(--font-accent, 'DM Mono', monospace);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: opacity .15s ease;
}
.sidebar-card__btn:hover { opacity: 0.85; }

@media (max-width: 991px) {
  .single-blog-grid { grid-template-columns: 1fr; gap: 32px; }
  .single-blog-sidebar { position: static; }
}
