/* ==========================================================================
   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=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Core Brand Palette (from Attuned Psychiatry GHL Brand Variables) */
  --navy-950: #0d1128;
  --navy-900: #161c40;
  --navy-800: #1f2756;
  --navy-700: #2c3772;
  --purple-700: #5321a3;
  --purple-600: #6930c3;
  --purple-500: #7f4ad4;
  --purple-100: #efe8fb;
  --teal-700: #007a87;
  --teal-600: #0098a6;
  --teal-500: #00bbcb;
  --teal-400: #3fd4e1;
  --ice-200: #b8e3ec;
  --ice-100: #d7eff4;
  --ice-50: #f2fafc;
  --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, #6930c3 0%, #00bbcb 100%);
  --grad-brand-hover: linear-gradient(135deg, #5824ad 0%, #00a2b0 100%);
  --grad-hero: radial-gradient(circle at 85% 15%, rgba(0, 187, 203, 0.18) 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: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Montserrat', -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 10px 28px rgba(105, 48, 195, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Layout */
  --container-max: 1240px;
  --header-height: 84px;
  --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(105, 48, 195, 0.18);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.bg-dark .eyebrow {
  color: var(--teal-400);
  background: rgba(0, 187, 203, 0.14);
  border-color: rgba(0, 187, 203, 0.3);
}

.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(0, 187, 203, 0.18);
  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: 50px;
  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(105, 48, 195, 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(105, 48, 195, 0.25);
}

.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(0, 187, 203, 0.14);
  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(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(105, 48, 195, 0.14);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.founder-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ice-100);
}

.founder-photo-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.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(105, 48, 195, 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(105, 48, 195, 0.35);
}

.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) {
  .top-bar-left {
    display: none;
  }

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

  .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;
  }
}
