/* ==========================================================================
   Attuned Psychiatry — Modern Zero-Bloat Design System
   Replaces GoHighLevel (GHL) Funnel CSS with Clean, Accessible, Fast CSS3
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Core Brand Palette (from Attuned Psychiatry GHL Brand Variables) */
  --navy-950: #0d1128;
  --navy-900: #1b2538;
  --navy-800: #1f2756;
  --navy-700: #2c3772;
  --purple-700: #5321a3;
  --purple-600: #36465e;
  --purple-500: #7f4ad4;
  --purple-100: #f0ece4;
  --teal-700: #007a87;
  --teal-600: #0098a6;
  --teal-500: #298087;
  --teal-400: #d4a86a;
  --ice-200: #b8e3ec;
  --ice-100: #f1ede4;
  --ice-50: #faf8f4;
  --white: #ffffff;
  --slate-900: #161c40;
  --slate-700: #3b4262;
  --slate-600: #525a7a;
  --slate-500: #6e7696;
  --slate-200: #dde5ed;
  --slate-100: #f4f7fa;
  --amber-500: #f59e0b;
  --emerald-600: #059669;
  --rose-600: #e11d48;
  --border-subtle: rgba(22, 28, 64, 0.10);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #1b2538 0%, #19565b 100%);
  --grad-brand-hover: linear-gradient(135deg, #5824ad 0%, #00a2b0 100%);
  --grad-hero: radial-gradient(circle at 85% 15%, rgba(25, 86, 91, 0.14) 0%, rgba(105, 48, 195, 0.10) 42%, rgba(215, 239, 244, 0.45) 100%);
  --grad-dark: linear-gradient(135deg, #161c40 0%, #241b4b 55%, #123649 100%);
  --grad-surface: linear-gradient(180deg, #f2fafc 0%, #ffffff 100%);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(215, 239, 244, 0.38) 100%);

  /* Typography */
  --font-heading: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows & Radius */
  --shadow-xs: 0 2px 6px rgba(22, 28, 64, 0.05);
  --shadow-sm: 0 6px 18px rgba(22, 28, 64, 0.07);
  --shadow-md: 0 14px 34px rgba(22, 28, 64, 0.10);
  --shadow-lg: 0 24px 56px rgba(22, 28, 64, 0.14);
  --shadow-glow: 0 4px 14px rgba(20, 28, 43, 0.12);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-pill: 9999px;

  /* Layout */
  --container-max: 1120px;
  --header-height: 92px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--slate-700);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple-600);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--teal-600);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  position: relative;
}

.section-sm {
  padding: clamp(2.5rem, 4.5vw, 4rem) 0;
}

.bg-ice {
  background-color: var(--ice-50);
}

.bg-surface {
  background: var(--grad-surface);
}

.bg-dark {
  background: var(--grad-dark);
  color: rgba(255, 255, 255, 0.88);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--white);
}

/* Section Headers */
.section-header {
  max-width: 760px;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.section-header.left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-600);
  background: rgba(105, 48, 195, 0.09);
  border: 1px solid rgba(25, 86, 91, 0.15);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.bg-dark .eyebrow {
  color: var(--teal-400);
  background: rgba(25, 86, 91, 0.1);
  border-color: rgba(25, 86, 91, 0.24);
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--slate-600);
  margin-top: 0.9rem;
}

.bg-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Top Utility Crisis / Info Bar */
.top-bar {
  background-color: var(--navy-900);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.top-bar a {
  color: var(--ice-100);
  font-weight: 500;
}

.top-bar a:hover {
  color: var(--teal-400);
}

.badge-rems {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(25, 86, 91, 0.14);
  color: var(--teal-400);
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.76rem;
}

/* Sticky Main Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 28, 64, 0.08);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo img {
  height: 66px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--purple-600);
  background: rgba(105, 48, 195, 0.06);
}

.nav-caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-caret {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 250px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(22, 28, 64, 0.08);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 1100;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.9rem;
}

.dropdown-link span {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--slate-500);
  margin-top: 0.1rem;
}

.dropdown-link:hover {
  background: var(--ice-50);
  color: var(--purple-600);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  color: var(--navy-900);
  cursor: pointer;
  font-size: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--grad-brand-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(105, 48, 195, 0.36);
}

.btn-secondary {
  background: var(--navy-900);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--purple-600);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy-900);
  border-color: rgba(22, 28, 64, 0.2);
}

.btn-outline:hover {
  border-color: var(--purple-600);
  color: var(--purple-600);
  background: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy-900);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

/* Hero Section */
.hero {
  background: var(--grad-hero);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(22, 28, 64, 0.06);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--slate-700);
  margin-bottom: 1.75rem;
  max-width: 640px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(22, 28, 64, 0.1);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
}

.trust-pill svg, .trust-pill .dot {
  color: var(--teal-600);
}

.hero-visual {
  position: relative;
}

.hero-card-visual {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(25, 86, 91, 0.12);
  position: relative;
}

.hero-card-visual img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 8px);
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  bottom: -1rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(22, 28, 64, 0.95);
  backdrop-filter: blur(12px);
  color: var(--white);
  padding: 1rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-floating-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
}

.hero-floating-badge span {
  font-size: 0.8rem;
  color: var(--ice-100);
}

/* Logo Marquee / Trust Strip (Replaces GHL's 12x Duplicated Logo DOM Blocks!) */
.logo-strip {
  background: var(--white);
  padding: 2rem 0;
  border-bottom: 1px solid var(--slate-200);
  overflow: hidden;
}

.logo-strip-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}

.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 3rem;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 3rem;
  min-width: 100%;
  flex-shrink: 0;
  animation: scrollMarquee 34s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track img {
  height: 44px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(15%);
  opacity: 0.88;
  transition: var(--transition);
}

.marquee-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 3rem)); }
}

/* Grid Systems & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(22, 28, 64, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(25, 86, 91, 0.2);
}

.card-glass {
  background: var(--grad-card);
  backdrop-filter: blur(10px);
}

.card-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--ice-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-image {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.35rem;
  background: var(--navy-900);
  border: 1px solid rgba(22, 28, 64, 0.12);
  box-shadow: 0 10px 24px rgba(13, 17, 40, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-image img {
  transform: scale(1.04);
}

.card h3 {
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--slate-600);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--purple-600);
}

.card-link:hover {
  gap: 0.65rem;
  color: var(--teal-600);
}

/* Comparison Tables (TMS vs SPRAVATO & Advanced vs Standard) */
.comparison-table-wrap,
.table-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(22, 28, 64, 0.08);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.comparison-table th,
.comparison-table td {
  padding: 1.35rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}

.comparison-table thead th {
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--ice-50);
}

.comparison-table td:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.05rem;
}

.metric-pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  background: rgba(25, 86, 91, 0.1);
  color: var(--navy-900);
}

.metric-pill.highlight {
  background: rgba(105, 48, 195, 0.14);
  color: var(--purple-700);
}

/* PET Scan Brain Comparison Component */
.pet-scan-box {
  background: var(--grad-dark);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.pet-scan-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.pet-images-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pet-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.pet-card img {
  width: 100%;
  max-width: 220px;
  margin: 0.75rem auto;
  border-radius: var(--radius-md);
}

.pet-card .pet-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-400);
  font-weight: 700;
}

.pet-card h4 {
  color: var(--white);
  margin-top: 0.35rem;
  text-transform: capitalize;
}

/* 4-Step Care Journey */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  border: 1px solid rgba(22, 28, 64, 0.08);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

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

.step-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-600);
  background: var(--purple-100);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

/* Symptom-to-Treatment Interactive Finder & Cards */
.condition-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 2.25rem;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.condition-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  border: 1px solid rgba(22, 28, 64, 0.09);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

.condition-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--teal-500);
}

.condition-card-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--slate-100);
}

.condition-subhead {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 0.45rem;
}

.sign-list li, .tx-list li {
  font-size: 0.88rem;
  padding-left: 1.15rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.sign-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--teal-600);
  font-weight: 700;
}

.tx-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--purple-600);
  font-weight: 700;
}

/* Founder & Team Section */
.founder-spotlight {
  background: var(--grad-card);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.2vw, 2.5rem);
  border: 1px solid rgba(105, 48, 195, 0.14);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 2.25rem;
  align-items: center;
}

.founder-photo-wrap {
  width: 210px;
  max-width: 210px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--ice-100);
  border: 1px solid var(--slate-200);
}

.founder-photo-wrap img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  object-position: center top;
}

.pillars-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.pillar-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(22, 28, 64, 0.08);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-900);
}

.pillar-chip span {
  color: var(--teal-600);
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(22, 28, 64, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-photo {
  height: 290px;
  background: linear-gradient(180deg, var(--ice-100) 0%, var(--purple-100) 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  box-shadow: var(--shadow-md);
}

.team-body {
  padding: 1.65rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-role {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--purple-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.25rem 0 0.85rem;
}

/* Patient Reviews */
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(22, 28, 64, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-stars {
  color: var(--amber-500);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.review-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.review-card p {
  font-style: italic;
  color: var(--slate-600);
  font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(22, 28, 64, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--purple-600);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.35rem 1.5rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ice-100);
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--purple-600);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.4rem;
  color: var(--slate-600);
  font-size: 0.96rem;
}

/* Forms (Replaces GHL LeadConnector Forms) */
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(22, 28, 64, 0.1);
  color: var(--slate-700);
}

.form-grid,
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.05rem;
}

.form-row {
  margin-bottom: 0.95rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

form > .form-group {
  margin-bottom: 0.95rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-900);
}

.form-label .req {
  color: var(--rose-600);
}

.form-control {
  width: 100%;
  padding: 0.82rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy-900);
  background: var(--slate-100);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--purple-600);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(25, 86, 91, 0.12);
}

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

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.check-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy-900);
  transition: var(--transition);
}

.check-option:hover {
  border-color: var(--purple-500);
  background: var(--white);
}

.check-option input {
  margin-top: 0.2rem;
  accent-color: var(--purple-600);
}

.consent-box,
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--slate-600);
  line-height: 1.48;
  padding: 0.85rem;
  background: var(--ice-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--ice-200);
  margin-bottom: 1rem;
}

.consent-box input,
.form-check input {
  margin-top: 0.22rem;
  accent-color: var(--purple-600);
  flex-shrink: 0;
}

.form-disclaimer {
  margin-top: 0.85rem;
  margin-bottom: 0;
  font-size: 0.76rem;
  color: var(--slate-500);
  line-height: 1.45;
  text-align: center;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

/* PHQ-9 Interactive Depression Screener */
.phq9-question-card {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.phq9-question-card:focus-within,
.phq9-question-card.answered {
  background: var(--white);
  border-color: rgba(25, 86, 91, 0.25);
}

.phq9-question-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.phq9-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.phq9-radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.7rem 0.6rem;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: var(--transition);
}

.phq9-radio-label input {
  display: none;
}

.phq9-radio-label:hover {
  border-color: var(--purple-500);
}

.phq9-radio-label:has(input:checked),
.phq9-radio-label.selected {
  background: var(--grad-brand);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-xs);
}

.phq9-score-banner {
  background: var(--grad-dark);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Legal / Policy Pages */
.legal-hero {
  background: var(--grad-dark);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.legal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.legal-content h3 {
  font-size: 1.08rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

/* REMS Highlight Banner */
.rems-banner {
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--purple-700) 50%, var(--teal-600) 100%);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.rems-banner h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.78);
  padding: 4.5rem 0 2rem;
  border-top: 4px solid var(--teal-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 54px;
  width: auto;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--teal-400);
  padding-left: 4px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--teal-400);
  transform: translateY(-2px);
}

.social-btn img {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid,
  .founder-spotlight,
  .pet-scan-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 76px;
  }

  .top-bar-left {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 0.5rem;
  }

  .top-bar-right {
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
  }

  .top-bar-inner {
    justify-content: center;
    gap: 0.35rem;
  }

  .brand-logo img {
    height: 50px !important;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--slate-200);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: var(--slate-100);
    margin-top: 0.25rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .steps-grid,
  .conditions-grid,
  .form-grid,
  .checkbox-grid,
  .phq9-options,
  .condition-card-cols,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-floating-badge {
    position: static;
    margin-top: 1rem;
  }
}


/* Additional Interactive State & Form Confirmation Styles */
.faq-item.open .faq-answer {
  max-height: 800px;
}

.form-success-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--ice-50);
  border: 1.5px solid var(--teal-500);
  border-radius: var(--radius-lg);
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-glow);
}

.form-success-score {
  display: inline-block;
  margin: 1rem auto;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.form-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.5rem 0 1rem;
}

.form-success-note {
  font-size: 0.86rem;
  color: var(--slate-600);
}

.phq-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 0.75rem;
}

.phq-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-brand);
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
}

.crisis-banner-inline {
  background: #fff1f2;
  border: 1.5px solid #fda4af;
  color: #881337;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

/* ==========================================================================
   Office Photo Gallery, Lightbox & Scenic Nature Showcase Components
   ========================================================================== */

.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.gallery-filter-btn {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  color: var(--slate-700);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--grad-brand);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-xs);
}

.office-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: 0 14px 32px rgba(13, 17, 40, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.85);
  outline: 1px solid rgba(22, 28, 64, 0.10);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: var(--transition);
}

.gallery-card.featured {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(13, 17, 40, 0.20);
  outline-color: rgba(0, 187, 203, 0.55);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 40, 0) 0%, rgba(13, 17, 40, 0) 48%, rgba(13, 17, 40, 0.72) 73%, rgba(13, 17, 40, 0.94) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  color: var(--white);
  transition: var(--transition);
}

.gallery-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(0, 187, 203, 0.32);
  border: 1px solid rgba(63, 212, 225, 0.65);
  color: #ffffff;
  padding: 0.22rem 0.68rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.4rem;
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.gallery-card-overlay h3 {
  color: var(--white);
  font-size: 1.12rem;
  margin-bottom: 0.22rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.gallery-card-overlay p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  line-height: 1.42;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.gallery-zoom-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(22, 28, 64, 0.72);
  backdrop-filter: blur(8px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0.85;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-card:hover .gallery-zoom-badge {
  background: var(--teal-500);
  opacity: 1;
  transform: scale(1.08);
}

/* Scenic Nature Sanctuary Banner */
.scenic-sanctuary-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--navy-900);
}

.scenic-sanctuary-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 8s ease;
}

.scenic-sanctuary-banner:hover .scenic-sanctuary-bg {
  transform: scale(1.04);
}

.scenic-sanctuary-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(2.25rem, 5vw, 4rem);
  background: linear-gradient(95deg, rgba(13, 17, 40, 0.90) 0%, rgba(22, 28, 64, 0.76) 55%, rgba(13, 17, 40, 0.35) 100%);
  color: var(--white);
}

.scenic-sanctuary-content {
  max-width: 640px;
}

.scenic-sanctuary-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.scenic-sanctuary-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
  margin-bottom: 1.5rem;
}

/* Scenic Split Feature Grid */
.scenic-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.scenic-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22, 28, 64, 0.1);
}

.scenic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.scenic-tile:hover img {
  transform: scale(1.06);
}

.scenic-tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 40, 0.85) 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
}

/* Native HTML5 <dialog> Lightbox Modal */
.lightbox-dialog {
  border: none;
  border-radius: var(--radius-xl);
  padding: 0;
  background: var(--navy-950);
  color: var(--white);
  max-width: min(1040px, 94vw);
  max-height: 92vh;
  margin: auto;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.lightbox-dialog::backdrop {
  background: rgba(10, 14, 32, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
}

.lightbox-img-wrap {
  background: #070a18;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 74vh;
  overflow: hidden;
}

.lightbox-img-wrap img {
  width: auto;
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

.lightbox-caption-bar {
  padding: 1.25rem 1.75rem;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption-bar h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.lightbox-caption-bar p {
  color: var(--ice-100);
  font-size: 0.88rem;
  margin: 0;
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(13, 17, 40, 0.8);
  color: var(--white);
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.lightbox-close-btn:hover {
  background: var(--rose-600);
  border-color: var(--rose-600);
}

@media (max-width: 1024px) {
  .office-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-card.featured {
    grid-column: span 2;
  }
  .scenic-mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .office-gallery-grid,
  .scenic-mosaic-grid {
    grid-template-columns: 1fr;
  }
  .gallery-card.featured {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Split-Feature Clinical Showcase & Checklist Components (TMS / SWIFT Pages)
   ========================================================================== */

.split-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split-feature.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-feature.reverse > :first-child {
  order: 2;
}

.split-feature.reverse > :last-child {
  order: 1;
}

.split-visual {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.15rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(22, 28, 64, 0.10);
}

.split-visual img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-xl) - 8px);
  display: block;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.15rem 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  color: var(--slate-700);
  line-height: 1.55;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(0, 187, 203, 0.16);
  color: var(--teal-700);
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ghost {
  background: var(--slate-100);
  color: var(--navy-900);
  border: 1.5px solid var(--slate-200);
}

.btn-ghost:hover {
  background: var(--ice-100);
  border-color: var(--teal-600);
  color: var(--navy-900);
}

@media (max-width: 960px) {
  .split-feature,
  .split-feature.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-feature.reverse > :first-child,
  .split-feature.reverse > :last-child {
    order: unset;
  }
}

/* ==========================================================================
   Homepage 3D Clinic Showcase & Sky-Smiles Banner Components
   ========================================================================== */

.sky-smiles-card {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 205px;
  box-shadow: 0 14px 28px rgba(15, 35, 60, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 2.5px solid rgba(255, 255, 255, 0.92);
  background: #6fb2e6;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.sky-smiles-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(15, 35, 60, 0.18);
}

.sky-smiles-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.sky-smiles-card:hover img {
  transform: scale(1.04);
}

.sky-smiles-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 12px;
  background: rgba(13, 23, 46, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.hero-office-showcase {
  margin-top: 1.35rem;
  padding: 1.25rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfd 100%);
  border: 1.5px solid rgba(20, 78, 107, 0.16);
  box-shadow: 0 18px 42px rgba(15, 35, 60, 0.11), inset 0 1px 0 #ffffff;
}

.hero-office-stage {
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy-950);
  border: 2px solid #ffffff;
  box-shadow: 0 12px 28px rgba(13, 17, 40, 0.16);
  margin-bottom: 0.95rem;
}

.hero-office-stage-img-wrap {
  position: relative;
  width: 100%;
  height: 365px;
  overflow: hidden;
  background: #0d1528;
}

.hero-office-stage-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-office-caption-bar {
  padding: 0.85rem 1.15rem;
  background: linear-gradient(90deg, #0f1b38 0%, #152b4f 60%, #113c52 100%);
  color: #ffffff;
  border-top: 1px solid rgba(63, 212, 225, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-office-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.local-office-thumb {
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(22, 28, 64, 0.12);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(15, 35, 60, 0.08);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  text-align: left;
}

.local-office-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(15, 35, 60, 0.15);
  border-color: var(--teal-500);
}

.local-office-thumb.active {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 2px rgba(0, 187, 203, 0.28), 0 10px 22px rgba(15, 35, 60, 0.15);
  transform: translateY(-2px);
}

.local-office-thumb-img-wrap {
  width: 100%;
  height: 92px;
  overflow: hidden;
  background: #0f233c;
  position: relative;
}

.local-office-thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.local-office-thumb:hover .local-office-thumb-img-wrap img {
  transform: scale(1.06);
}

.local-office-thumb-label {
  width: 100%;
  padding: 5px 8px;
  background: #ffffff;
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid rgba(22, 28, 64, 0.07);
  display: flex;
  align-items: center;
  gap: 5px;
}

.local-office-thumb.active .local-office-thumb-label {
  background: linear-gradient(90deg, #0f233c 0%, #144e6b 100%);
  color: #ffffff;
  border-top-color: transparent;
}

.local-office-thumb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate-200);
  flex-shrink: 0;
}

.local-office-thumb.active .local-office-thumb-dot {
  background: var(--teal-400);
  box-shadow: 0 0 6px var(--teal-400);
}

@media (max-width: 640px) {
  .hero-office-stage-img-wrap {
    height: 260px;
  }
  .hero-office-thumb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .local-office-thumb-img-wrap {
    height: 68px;
  }
  .local-office-thumb-label {
    font-size: 10px;
    padding: 4px 6px;
  }
}

/* ==========================================================================
   Warm, Slim & Non-AI Bespoke Overrides (Decatur Suite 200 Aesthetic)
   ========================================================================== */
html {
  font-size: 15.5px;
}

body {
  background-color: #ffffff;
  color: var(--slate-800);
  line-height: 1.62;
}

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.16;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Editorial serif italic replaces neon AI purple-cyan gradient text */
.text-gradient {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  background-clip: initial !important;
  color: var(--teal-700) !important;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
}

.bg-navy .text-gradient,
.bg-dark .text-gradient,
.page-hero .text-gradient,
.cta-banner .text-gradient,
.scenic-sanctuary-overlay .text-gradient,
.rems-banner .text-gradient {
  color: #e5c896 !important;
}

/* Slimmer Sections, Headers & Chrome */
.top-bar {
  padding: 0.48rem 0;
  font-size: 0.84rem;
  background-color: var(--navy-950);
}

.site-header {
  background-color: rgba(250, 248, 244, 0.96);
  border-bottom: 1px solid var(--slate-200);
}

.brand-logo img {
  height: 66px;
  width: auto;
}

.nav-link {
  padding: 0.42rem 0.68rem;
  font-size: 0.84rem;
  font-weight: 500;
}

.btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: var(--shadow-xs);
}

.btn-primary {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.btn-primary:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.42rem 0.9rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.72rem 1.45rem;
  font-size: 0.92rem;
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: var(--white);
  color: var(--white);
}

.section {
  padding: clamp(2.5rem, 4.2vw, 3.85rem) 0;
}

.section-sm {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
}

.section-header {
  margin-bottom: clamp(1.5rem, 2.6vw, 2.25rem);
}

/* Understated Editorial Eyebrow */
.eyebrow {
  padding: 0.22rem 0.68rem;
  border-radius: 4px;
  background: var(--ice-100);
  border: 1px solid var(--slate-300);
  color: var(--teal-700);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  width: 5px;
  height: 5px;
  background: #b5834d;
  box-shadow: none;
}

/* Hero & Cards — Remove AI Glow Blobs & Rainbow Top Borders */
.hero {
  padding: clamp(1.75rem, 3vw, 2.65rem) 0 clamp(2.25rem, 3.8vw, 3.15rem);
  background: linear-gradient(180deg, #faf8f4 0%, #f3efe6 100%);
  border-bottom: 1px solid var(--slate-200);
}

.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after,
.cta-banner::before,
.cta-banner::after {
  display: none !important;
}

.page-hero {
  padding: clamp(2.15rem, 3.8vw, 3.2rem) 0;
}

.card,
.condition-card,
.step-card,
.review-card {
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xs);
}

.card::before {
  display: none !important;
}

.card:hover,
.condition-card:hover,
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Full-Frame Uncropped Photo Presentation (Zoomed Out Entirety) */
.hero-office-stage-img-wrap {
  height: 330px;
  background: #f4f0e8;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.hero-office-stage-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 6px;
}

.local-office-thumb-img-wrap {
  height: 82px;
  background: #f4f0e8;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.local-office-thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 4px;
}

.local-office-thumb:hover .local-office-thumb-img-wrap img {
  transform: scale(1.02);
}

.gallery-grid {
  align-items: stretch;
}

.gallery-card {
  aspect-ratio: auto !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-card > img {
  width: 100% !important;
  height: 310px !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #f4f0e8;
  padding: 0.65rem;
  border-bottom: 1px solid var(--slate-200);
  transition: transform 0.35s ease;
}

.gallery-card.featured > img {
  height: 360px !important;
}

.gallery-card:hover > img {
  transform: scale(1.015);
}

.gallery-card-overlay {
  position: static !important;
  inset: auto !important;
  background: #ffffff !important;
  color: var(--slate-700) !important;
  padding: 1.15rem 1.3rem !important;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.gallery-tag {
  background: var(--ice-100) !important;
  border: 1px solid var(--slate-300) !important;
  color: var(--teal-700) !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  margin-bottom: 0.5rem;
}

.gallery-card-overlay h3 {
  color: var(--navy-900) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.35rem !important;
  text-shadow: none !important;
}

.gallery-card-overlay p {
  color: var(--slate-600) !important;
  font-size: 0.86rem !important;
  line-height: 1.56 !important;
  text-shadow: none !important;
  margin-bottom: 0 !important;
}

.gallery-zoom-badge {
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(20, 28, 43, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.card-image {
  height: 220px;
  background: #f4f0e8;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
}

.card:hover .card-image img {
  transform: scale(1.02);
}

.hero-card-visual {
  height: 230px;
  max-width: 260px;
  margin: 0 auto;
  background: #f4f0e8;
  padding: 0.35rem;
}

.hero-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 6px;
}

.team-photo {
  height: 230px;
  background: #f4f0e8;
  padding: 0.4rem;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
}

.team-card:hover .team-photo img {
  transform: scale(1.015);
}

@media (max-width: 640px) {
  .hero-office-stage-img-wrap {
    height: 265px;
  }
  .local-office-thumb-img-wrap {
    height: 68px;
  }
  .gallery-card > img,
  .gallery-card.featured > img {
    height: 255px !important;
  }
}

.hero-trust-pills {
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.trust-pill {
  padding: 0.28rem 0.68rem;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--slate-300);
  font-size: 0.76rem;
  font-weight: 500;
  box-shadow: none;
}

/* Scenic Sanctuary Banner & Mosaic (Shared Across Pages) */
.scenic-sanctuary-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 235px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  margin: 1.25rem 0;
  background: var(--navy-900);
}

.scenic-sanctuary-banner img.scenic-bg,
.scenic-sanctuary-banner img.scenic-sanctuary-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: 0;
}

.scenic-sanctuary-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(105deg, rgba(20, 28, 43, 0.88) 0%, rgba(20, 28, 43, 0.68) 55%, rgba(25, 86, 91, 0.35) 100%);
  color: var(--white);
}

.scenic-sanctuary-overlay h2,
.scenic-sanctuary-overlay h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.scenic-sanctuary-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  max-width: 620px;
  line-height: 1.6;
}

.scenic-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.scenic-pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.26rem 0.68rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
}

.scenic-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.scenic-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--slate-200);
  background: #ffffff;
  cursor: zoom-in;
}

.scenic-tile img {
  width: 100%;
  height: 190px;
  object-fit: cover !important;
  object-position: center center !important;
  background: #f4f0e8;
  padding: 0;
  border-bottom: 1px solid var(--slate-200);
  transition: transform 0.35s ease;
}

.scenic-tile:hover img {
  transform: scale(1.015);
}

.scenic-tile-caption {
  position: static;
  padding: 0.75rem 0.9rem;
  background: #ffffff;
  color: var(--slate-800);
  font-size: 0.8rem;
  font-weight: 500;
  flex-grow: 1;
}

.scenic-tile-caption span {
  display: block;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-700);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.scenic-tile-caption strong {
  color: var(--navy-900);
  font-size: 0.81rem;
  font-weight: 500;
  display: block;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .scenic-mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .scenic-mosaic-grid {
    grid-template-columns: 1fr;
  }
}


:root {
  --navy-950: #141c2b;
  --navy-900: #1b2538;
  --navy-800: #26344d;
  --navy-700: #334460;
  --purple-700: #2b384e;
  --purple-600: #36465e;
  --purple-500: #4a5b75;
  --purple-100: #f0ece4;
  --purple-50: #f8f6f1;
  --teal-700: #19565b;
  --teal-600: #1f6b71;
  --teal-500: #298087;
  --teal-400: #d4a86a;
  --teal-100: #e5efef;
  --ice-200: #e3ddd1;
  --ice-100: #f1ede4;
  --ice-50: #faf8f4;
  --slate-900: #18202c;
  --slate-800: #242e3d;
  --slate-700: #3b4554;
  --slate-600: #525c6c;
  --slate-500: #6d7685;
  --slate-400: #8c94a2;
  --slate-300: #d5cfc4;
  --slate-200: #e6e1d7;
  --slate-100: #f4f1ea;
  --slate-50: #faf8f4;
  --grad-brand: linear-gradient(135deg, #1b2538 0%, #19565b 100%);
  --grad-brand-hover: linear-gradient(135deg, #141c2b 0%, #144549 100%);
  --grad-dark: linear-gradient(160deg, #151e2e 0%, #1d293e 60%, #18363b 100%);
  --grad-hero-bg: linear-gradient(180deg, #faf8f4 0%, #f3efe6 100%);
  --grad-surface: linear-gradient(180deg, #faf8f4 0%, #ffffff 100%);
  --font-heading: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1120px;
  --container-narrow: 840px;
  --header-height: 92px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --shadow-xs: 0 1px 2px rgba(20, 28, 43, 0.04);
  --shadow-sm: 0 2px 8px rgba(20, 28, 43, 0.05);
  --shadow-md: 0 6px 18px rgba(20, 28, 43, 0.06);
  --shadow-lg: 0 12px 28px rgba(20, 28, 43, 0.08);
  --shadow-glow: 0 4px 12px rgba(20, 28, 43, 0.12);
}
/* ==========================================================================
   Executive Clinical Polish, Static Logo Strip & Simplified Navigation
   (Arena SEO & Visual Simplicity Optimization)
   ========================================================================== */

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav .nav-link {
  position: relative;
  padding: 0.45rem 0.78rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  letter-spacing: -0.005em;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--teal-700);
  background: rgba(25, 86, 91, 0.07);
}

.main-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.78rem;
  right: 0.78rem;
  bottom: 0.18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-700);
}

/* Calm, Static, Centered Insurance & Credential Strip (Zero Marquee Motion) */
.logo-strip {
  background: var(--white);
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.logo-strip-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-600);
  margin-bottom: 1.15rem;
}

.marquee-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  overflow: visible;
  gap: 1.5rem 2.5rem;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.marquee-track,
.logo-strip-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.75rem;
  min-width: 0 !important;
  width: 100%;
  flex-shrink: 1;
  animation: none !important;
  transform: none !important;
}

.marquee-track img,
.logo-strip-track img {
  height: 38px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  filter: grayscale(12%);
  opacity: 0.88;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.marquee-track img:hover,
.logo-strip-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-1px);
}

/* Refined executive card borders & subtle depth (Grafted from Candidate 2) */
.card,
.service-card,
.condition-card,
.review-card,
.team-card,
.step-card {
  border-color: rgba(15, 44, 54, 0.08);
  box-shadow: 0 8px 28px -6px rgba(13, 38, 48, 0.05), 0 2px 6px -1px rgba(13, 38, 48, 0.03);
}

/* Editorial Quote Badge (Replaces 3x Duplicate Neon GHL Quote Image) */
.review-quote-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ice-100);
  border: 1px solid var(--slate-300);
  color: var(--teal-700);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  padding-top: 0.3rem;
}

/* Native Dark-Mode Footer Wordmark SVG */
.footer-brand a {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.footer-logo-svg {
  display: block;
  height: 54px;
  width: auto;
}

/* Hide any legacy injected payer bar if ever referenced */
#attuned-payer-bar {
  display: none !important;
}

/* Enlarged Header Logo & Prominent Clinic Address Display */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 1001;
  background-color: var(--navy-950);
  padding: 0.48rem 0;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header {
  position: sticky;
  top: 35px;
  z-index: 1000;
}

.brand-logo img {
  height: 66px !important;
  width: auto !important;
  max-width: 225px;
  object-fit: contain;
}

.top-bar .top-bar-address-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: 0.005em;
}

.top-bar .top-bar-address-link:hover {
  color: var(--teal-400) !important;
}

.card .footer-contact-list a {
  color: var(--slate-700);
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
}

.card .footer-contact-list a:hover {
  color: var(--teal-600);
}

.hero-address-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  background: #ffffff;
  border: 1.5px solid rgba(25, 86, 91, 0.24);
  border-left: 4px solid var(--teal-700);
  border-radius: var(--radius-md);
  padding: 0.72rem 1rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-xs);
}

.hero-address-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-900);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero-address-main svg {
  color: var(--teal-700);
  flex-shrink: 0;
}

.hero-address-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-address-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--teal-700);
  background: var(--teal-100);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero-address-directions:hover {
  background: var(--teal-700);
  color: #ffffff;
}

/* ==========================================================================
   Mobile UX & Conversion Optimization Overrides
   ========================================================================== */

/* 1. Homepage Hero Grid: Form beside copy on desktop, Form BEFORE office gallery on mobile */
@media (min-width: 1025px) {
  .hero-grid-home {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    column-gap: 2.75rem;
    row-gap: 1.35rem;
    align-items: start;
  }
  .hero-grid-home .hero-intro-col {
    grid-column: 1;
    grid-row: 1;
  }
  .hero-grid-home .hero-office-col {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }
  .hero-grid-home .hero-visual {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* 2. Improved Service Page Hero Visual Proportions */
.hero-card-visual {
  height: 280px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  background: #f4f0e8;
  padding: 0.45rem;
}

/* 3. Compact In-Network Badge & Optional Form Details Drawer */
.form-in-network-badge {
  background: #f4f8f7;
  border: 1px solid #c5dcd9;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.79rem;
  color: #19565b;
  line-height: 1.45;
}

.form-optional-details {
  margin-bottom: 0.85rem;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  padding: 0.5rem 0.75rem;
}

.form-optional-details summary {
  cursor: pointer;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--teal-700);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.form-optional-details summary::-webkit-details-marker {
  display: none;
}

.form-optional-details[open] summary {
  margin-bottom: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--slate-200);
}

.form-optional-body .form-group {
  margin-bottom: 0.75rem;
}

.form-optional-body .form-group:last-child {
  margin-bottom: 0;
}

.btn-submit-full {
  min-height: 50px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* 4. Tablet & Mobile Ordering: Always place #request-consultation form FIRST in #contact-section & Hero */
@media (max-width: 1024px) {
  .hero-grid-home .hero-intro-col {
    order: 1;
  }
  .hero-grid-home .hero-visual {
    order: 2;
  }
  .hero-grid-home .hero-office-col {
    order: 3;
    margin-top: 0.5rem;
  }
  #contact-section .grid-2 > #request-consultation {
    order: -1;
  }
}

/* 5. Mobile-Specific Streamlining (<=768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container,
  .container-narrow {
    padding: 0 1rem;
  }

  /* Single-line, zero-clutter mobile top utility bar */
  .top-bar {
    position: relative;
    padding: 0.35rem 0;
    font-size: 0.75rem;
  }

  .top-bar .badge-rems,
  .top-bar-left > span,
  .top-bar-right > span {
    display: none !important;
  }

  .top-bar-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .top-bar-left,
  .top-bar-right {
    width: auto;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .top-bar .top-bar-address-link {
    font-size: 0.73rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62vw;
  }

  .top-bar-right a[href^="tel:"] {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.74rem;
    color: #ffffff;
    white-space: nowrap;
  }

  .site-header {
    top: 0;
  }

  .brand-logo img {
    height: 44px !important;
    max-width: 155px;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .nav-actions .btn-sm {
    padding: 0.42rem 0.72rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
  }

  .main-nav .nav-menu {
    align-items: stretch;
    padding: 1rem;
    gap: 0.2rem;
  }

  .main-nav .nav-link {
    padding: 0.7rem 0.85rem;
    font-size: 0.96rem;
    font-weight: 600;
  }

  .main-nav .nav-link.active::after {
    display: none;
  }

  /* Hero mobile spacing & CTA buttons */
  .hero {
    padding: 1.35rem 0 1.85rem;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-lead {
    font-size: 0.98rem;
    margin-bottom: 1.15rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.94rem;
    justify-content: center;
  }

  .hero-address-bar {
    padding: 0.58rem 0.8rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .hero-card-visual {
    height: 220px;
    max-width: 100%;
  }

  /* Compact Consultation Form on Mobile (Prevent iOS 16px Focus Zoom) */
  #request-consultation.form-card,
  .form-card {
    padding: 1.25rem 1.1rem !important;
  }

  .form-control {
    font-size: 16px !important;
    padding: 0.68rem 0.8rem;
  }

  .form-row.form-row-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .form-row {
    gap: 0.7rem;
    margin-bottom: 0.7rem;
  }

  form > .form-group {
    margin-bottom: 0.7rem;
  }

  .form-check {
    padding: 0.65rem 0.75rem;
    font-size: 0.76rem;
    margin-bottom: 0.8rem;
  }

  /* 2x2 Grid for PHQ-9 Options on Mobile (Halves vertical scroll length) */
  .phq9-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .phq9-radio-label {
    padding: 0.6rem 0.45rem;
    font-size: 0.8rem;
  }

  .marquee-track,
  .logo-strip-track {
    gap: 1rem 1.4rem;
  }

  .marquee-track img,
  .logo-strip-track img {
    height: 28px;
    max-width: 105px;
  }
}

/* 6. Responsive Stacked Cards for Clinical Comparison Tables on Small Screens (<=640px) */
@media (max-width: 640px) {
  .comparison-table-wrap {
    overflow-x: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .comparison-table {
    min-width: 0;
    display: block;
  }
  .comparison-table thead {
    display: none;
  }
  .comparison-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  .comparison-table tbody tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-xs);
  }
  .comparison-table tbody td {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--slate-100);
    font-size: 0.88rem;
  }
  .comparison-table tbody td:first-child {
    font-size: 1rem;
    padding-top: 0;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 0.25rem;
  }
  .comparison-table tbody td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .comparison-table tbody td[data-label]::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-500);
  }
  .comparison-table tbody td:first-child::before {
    display: none;
  }
}

@media (max-width: 350px) {
  .form-row.form-row-compact {
    grid-template-columns: 1fr;
  }
}
