/**
 * styles.css — design tokens inspired by docs/UI_STYLING_GUIDE.md (plain CSS, no Tailwind)
 * Educational: tweak --color-* and --max-9xl to re-theme the whole page.
 */

/* Fonts load from index.html (avoid duplicate @import network cost). */

:root {
  --color-sky: rgb(2, 132, 199);
  --color-emerald: rgb(16, 185, 129);
  --color-amber: rgb(245, 158, 11);
  --color-rose: rgb(225, 29, 72);
  --color-violet: rgb(139, 92, 246);
  --color-blue: rgb(59, 130, 246);
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --accent: #fb923c;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --surface: #f8fafc;
  --surface-deep: #0f172a;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  /* max-w-9xl: wider than typical 7xl (~80rem); cap with min() for gutters */
  --max-9xl: min(100% - 2rem, 96rem);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-sky: 0 30px 80px rgba(2, 132, 199, 0.22);
  --shadow-header: 0 10px 30px rgba(15, 23, 42, 0.12);
  /* Colored glows — docs/UI_STYLING_GUIDE.md “Shadows & Effects” */
  --glow-sky-lg: 0 30px 80px rgba(2, 132, 199, 0.35);
  --glow-emerald-lg: 0 30px 80px rgba(16, 185, 129, 0.3);
  --glow-amber-lg: 0 30px 80px rgba(245, 158, 11, 0.25);
  --glow-teal-lg: 0 30px 80px rgba(13, 148, 136, 0.32);
  --glow-sky-sm: 0 10px 30px rgba(2, 132, 199, 0.2);
  --glow-emerald-sm: 0 10px 30px rgba(16, 185, 129, 0.2);
  /* Pull hero media under sticky nav; match .nav__bar vertical size (padding + min-height) */
  --site-header-height: 5rem;
  /* Book card: shared white → mint → emerald (title, subtitle, placeholders) */
  --book-form-text-gradient: linear-gradient(
    118deg,
    #ffffff 0%,
    #ecfdf5 32%,
    #6ee7b7 72%,
    #34d399 100%
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
}

body.drawer-lock {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
}

/* --- Layout: max-w-9xl (root + sections) --- */
.max-w-9xl {
  width: 100%;
  max-width: var(--max-9xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Sticky header: transparent + backdrop-blur-sm over hero; solid-ish past hero --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 4rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px) saturate(1.12);
  -webkit-backdrop-filter: blur(4px) saturate(1.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header:not(.site-header--on-light) .nav__links a {
  color: rgba(255, 255, 255, 0.86);
}

.site-header:not(.site-header--on-light) .nav__links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.site-header:not(.site-header--on-light) .nav__links a.is-active,
.site-header:not(.site-header--on-light) .nav__links a[aria-current="page"] {
  color: #99f6e4;
}

.site-header:not(.site-header--on-light) .nav__logo-health {
  color: #5eead4;
}

.site-header:not(.site-header--on-light) .nav__menu-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Scrolled past hero: readable frosted bar (UI_STYLING_GUIDE: glass on light content) */
.site-header.site-header--on-light {
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  border-bottom-color: rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-header);
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem;
  min-height: 4rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: inherit;
  text-decoration: none;
}

.nav__logo:hover {
  text-decoration: none;
}

/* Wordmark: matches --primary for “Health” */
.nav__logo-health {
  color: #0d9488;
}

.nav__logo-accent {
  color: var(--accent);
}

.nav__logo-icon {
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
  border-radius: 10px;
  box-shadow: none;
}

.nav__logo-text--no-icon {
  margin-left: 0;
}

.nav__links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav__links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.35rem 0.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav__links a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.nav__links a.is-active,
.nav__links a[aria-current="page"] {
  color: #0d9488;
  font-weight: 600;
}

.nav__links--desktop {
  display: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Phone: save space — Contact us stays in drawer + Contact nav link */
.nav__actions .cta-shine-wrap--header {
  display: none;
}

.nav__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  background: rgba(255, 255, 255, 0.88);
  font-size: 1.35rem;
  color: var(--text-dark);
}

.cta-shine-wrap--header .btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .nav__links--desktop {
    display: flex;
  }

  .nav__menu-btn {
    display: none;
  }

  .nav__actions .cta-shine-wrap--header {
    display: inline-block;
  }
}

/* --- Mobile drawer --- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 45;
}

.drawer-backdrop.drawer-backdrop--visible {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 320px);
  height: 100%;
  background: rgba(248, 250, 252, 0.97);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 1rem 0 2rem;
}

.drawer.drawer--open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.drawer__title {
  font-family: var(--font-display);
  font-weight: 600;
}

.drawer__close {
  border: none;
  background: rgba(15, 23, 42, 0.06);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  font-size: 1.25rem;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer__nav a {
  padding: 0.85rem 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.drawer__nav a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  /*
   * Full viewport + overlap cushion: .section--stats uses margin-top: -2rem, so the
   * next section starts 2rem above the hero’s bottom edge. Pure 100dvh aligns the
   * hero bottom with the viewport bottom, which exposes a strip of the stats.
   * Extra ~0.25rem covers subpixel / scrollbar / dvh vs real pixel gaps on some screens.
   */
  min-height: calc(100vh + 2.25rem);
  min-height: calc(100dvh + 2.25rem);
  display: flex;
  align-items: center;
  /* Background layers extend to viewport top under the transparent navbar */
  margin-top: calc(-1 * var(--site-header-height));
  padding: calc(var(--site-header-height) + 4rem) 0
    max(3rem, env(safe-area-inset-bottom, 0px));
  background-color: #0a2f2a;
  color: #fff;
  overflow: hidden;
}

/* Photo stack: crossfade controlled in main.js (two layers, opacity transition) */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform-origin: center center;
  transition: opacity 1.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__bg-layer--active {
  opacity: 1;
}

/*
 * One cycle per slide: symmetric zoom in / zoom out (50% = peak), same ease both
 * halves — shorter total time than before, still synced via animationend in JS.
 */
@keyframes hero-bg-kenburns-cycle {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
  }

  50% {
    transform: scale(1.055) translate3d(0, -0.28%, 0);
    animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
  }

  100% {
    transform: scale(1) translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__bg-layer--active {
    animation: hero-bg-kenburns-cycle 14s forwards;
  }
}

/* Softer, slower overlay pulse */
@keyframes hero-overlay-breathe {
  0%,
  100% {
    opacity: 0.86;
  }

  50% {
    opacity: 1;
  }
}

/*
 * Darker on left & right (readable text / form); lighter in the middle so the
 * photo reads through. Teal is a thin wash, not a heavy green blanket.
 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      95deg,
      rgba(15, 23, 42, 0.88) 0%,
      rgba(15, 23, 42, 0.42) 22%,
      rgba(15, 23, 42, 0.12) 48%,
      rgba(15, 23, 42, 0.38) 76%,
      rgba(15, 23, 42, 0.85) 100%
    ),
    linear-gradient(
      125deg,
      rgba(13, 148, 136, 0.28) 0%,
      rgba(13, 148, 136, 0.06) 42%,
      rgba(13, 148, 136, 0.1) 100%
    );
}

@media (prefers-reduced-motion: no-preference) {
  .hero::after {
    animation: hero-overlay-breathe 20s cubic-bezier(0.42, 0, 0.58, 1) infinite
      alternate;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 85% 70% at 18% 45%,
      rgba(15, 23, 42, 0.45) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 80% 65% at 88% 52%,
      rgba(15, 23, 42, 0.5) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 50% 40%,
      transparent 0%,
      transparent 38%,
      rgba(6, 78, 59, 0.14) 100%
    );
  pointer-events: none;
  z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: hero-overlay-breathe 26s cubic-bezier(0.45, 0.05, 0.55, 0.95)
      infinite alternate-reverse;
  }
}

.hero__parallax {
  position: absolute;
  inset: -20%;
  z-index: 3;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.12),
    transparent 45%
  );
  pointer-events: none;
  will-change: transform;
}

.hero__inner {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }
}

.hero__content {
  flex: 1;
}

/* Flex wrap: first row = three badges, then full-width title, lead, CTAs */
.hero__stack {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 0.55rem;
  row-gap: 1rem;
}

.hero__stack > h1 {
  flex: 1 1 100%;
  margin: 0;
}

.hero__stack > .hero__lead {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

/* Full-width row under the lead so CTAs never sit beside the paragraph */
.hero__stack > .hero__cta-row {
  flex: 1 1 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero__lead {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.15rem;
  font-size: 1.05rem;
}

.hero__cta-row .cta-shine-wrap {
  flex: 0 0 auto;
}

.hero__form-card {
  width: 100%;
  max-width: 380px;
  align-self: center;
}

@media (min-width: 640px) {
  .hero__form-card {
    align-self: flex-start;
  }
}

/*
 * Glass card — same backdrop blur recipe as .site-header (blur-sm + saturate).
 * Slight tint so fields stay readable over the hero.
 */
.book-form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px) saturate(1.12);
  -webkit-backdrop-filter: blur(4px) saturate(1.12);
  box-shadow:
    var(--glow-emerald-lg),
    var(--glow-emerald-sm),
    0 24px 56px rgba(15, 23, 42, 0.18);
}

.book-form__intro {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.book-form__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  color: #ecfdf5;
  background-image: var(--book-form-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Nicer line breaks when the headline wraps in a narrow card (not “one line”) */
  text-wrap: balance;
}

.book-form__subtitle {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 500;
  color: #d1fae5;
  background-image: var(--book-form-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .book-form__title,
  .book-form__subtitle {
    background-image: none;
    -webkit-text-fill-color: unset;
  }

  .book-form__title {
    color: #fff;
  }

  .book-form__subtitle {
    color: #d1fae5;
  }
}

.book-form__field {
  display: block;
  margin: 0;
}

.book-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(13, 148, 136, 0.28);
  border-radius: 10px;
  font-size: 1rem;
  /* Lighter frosted fill so fields read clearly on the glass card */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.book-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.book-form input::placeholder {
  opacity: 1;
  font-weight: 500;
  color: #a7f3d0;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .book-form input::placeholder {
    color: transparent;
    background-image: var(--book-form-text-gradient);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.book-form .cta-shine-wrap:last-of-type {
  width: 100%;
  display: flex;
  justify-content: center;
}

.book-form .form__btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.book-form .form__btn i {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

/* --- Buttons + ripple (docs/RIPPLE_BUTTON_EFFECT.md) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 15px 35px rgba(251, 146, 60, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--secondary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid rgba(13, 148, 136, 0.45);
}

.btn--outline:hover {
  background: rgba(13, 148, 136, 0.08);
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple-animate 0.65s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-animate {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* CTA shine (docs/RIPPLE_BUTTON_EFFECT.md — splashing highlight) */
.cta-shine-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 14px;
}

/* Full pill: matches .contact-hero__cta-btn; clips shine without square corners */
.cta-shine-wrap--pill {
  border-radius: 999px;
}

.cta-shine-wrap--pill .btn,
.cta-shine-wrap--pill .contact-hero__cta-btn {
  border-radius: 999px;
}

.cta-shine-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 85%;
  left: -100%;
  z-index: 2; /* above .cta-shine-button (z-index: 1) so sweep shows on solid fills */
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 45%,
    transparent 75%
  );
  transform: skewX(-8deg);
  pointer-events: none; /* shine is decorative; never steal clicks */
  animation: cta-shine 4.5s cubic-bezier(0.35, 0, 0.15, 1) infinite;
}

.cta-shine-button {
  position: relative;
  z-index: 1;
}

@keyframes cta-shine {
  0% {
    transform: translateX(-100%) skewX(-8deg);
  }
  100% {
    transform: translateX(280%) skewX(-8deg);
  }
}

/* --- Scroll reveal (IntersectionObserver toggles .reveal--visible in & out) --- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 2.15rem, 0) scale(0.985);
  transition:
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.75s cubic-bezier(0.33, 1, 0.68, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

@media (min-width: 768px) {
  .reveal {
    filter: blur(5px);
  }
}

.reveal--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* Gentle zoom on photos as their card fades in (motion-style polish) */
.reveal .safe-img,
.reveal img.rounded-img {
  transform: scale(1.05);
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal--visible .safe-img,
.reveal--visible img.rounded-img {
  transform: scale(1);
}

.reveal--delay {
  --reveal-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero__bg-layer,
  .reveal .safe-img,
  .reveal img.rounded-img {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    filter: none !important;
  }

  .reveal {
    transform: none;
  }

  .hero__bg-layer--active {
    animation: none !important;
  }

  .hero::after,
  .hero::before {
    animation: none !important;
    opacity: 1;
  }

  .cta-shine-wrap::after {
    animation: none !important;
  }
}

/* --- Sections --- */
.section {
  padding: 4rem 0;
}

.section--stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: -2rem;
  position: relative;
  z-index: 3;
}

@media (min-width: 640px) {
  .section--stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .section--stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.stat-card--sky {
  background: linear-gradient(
    135deg,
    rgba(2, 132, 199, 0.12),
    rgba(255, 255, 255, 0.9)
  );
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: var(--glow-sky-lg);
}

.stat-card--emerald {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.12),
    rgba(255, 255, 255, 0.9)
  );
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 30px 80px rgba(16, 185, 129, 0.15);
}

.stat-card--amber {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.14),
    rgba(255, 255, 255, 0.9)
  );
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 30px 80px rgba(245, 158, 11, 0.12);
}

.stat-card--violet {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.12),
    rgba(255, 255, 255, 0.92)
  );
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: 0 30px 80px rgba(139, 92, 246, 0.2);
}

.stat-card__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  min-height: 1.75rem;
}

.stat-card__state {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  line-height: 1.2;
}

.stat-card__state--sky {
  color: rgb(3, 105, 161);
  background: rgba(2, 132, 199, 0.14);
  border: 1px solid rgba(2, 132, 199, 0.22);
}

.stat-card__state--emerald {
  color: rgb(5, 122, 85);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.stat-card__state--amber {
  color: rgb(180, 83, 9);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.stat-card__state--violet {
  color: rgb(109, 40, 217);
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.28);
}

.stat-card__icon {
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.88;
}

.stat-card--sky .stat-card__icon {
  color: rgb(2, 132, 199);
}

.stat-card--emerald .stat-card__icon {
  color: rgb(5, 150, 105);
}

.stat-card--amber .stat-card__icon {
  color: rgb(217, 119, 6);
}

.stat-card--violet .stat-card__icon {
  color: rgb(139, 92, 246);
}

.stat-card__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0.35rem 0;
  color: var(--text-dark);
}

.stat-card__hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .section__head:not(.section__head--service) {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* Services: title full width; subtitle + CTA share one row (space-between) */
.section__head--service {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.section__head--service .section__title {
  margin-bottom: 0;
}

.section__head__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

@media (min-width: 640px) {
  .section__head__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.section__subtitle--service {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .section__subtitle--service {
    max-width: none;
  }
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section__subtitle {
  max-width: 40rem;
  color: var(--text-muted);
}

.section__subtitle--tabs {
  margin-bottom: 1.5rem;
}

.service__btn {
  align-self: flex-start;
  flex-shrink: 0;
}

.service__btn-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service__btn-label i {
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.92;
}

@media (min-width: 640px) {
  .section__head__row .service__btn {
    align-self: center;
  }
}

.service__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .service__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.glass-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(248, 250, 252, 0.85)
  );
  box-shadow:
    var(--glow-teal-lg),
    0 18px 48px rgba(15, 23, 42, 0.06);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.glass-card:hover {
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow:
    var(--glow-emerald-lg),
    0 28px 70px rgba(13, 148, 136, 0.18);
  transform: translateY(-3px);
}

.service__icon {
  display: inline-flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 2rem;
  color: var(--primary-dark);
  background: rgba(204, 251, 241, 0.8);
  margin-bottom: 0.65rem;
}

.service__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.service__badge--sky {
  color: rgb(3, 105, 161);
  background: rgba(2, 132, 199, 0.14);
  border: 1px solid rgba(2, 132, 199, 0.22);
}

.service__badge--emerald {
  color: rgb(5, 122, 85);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.service__badge--amber {
  color: rgb(180, 83, 9);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.service__badge--teal {
  color: rgb(15, 90, 84);
  background: rgba(17, 118, 110, 0.14);
  border: 1px solid rgba(17, 118, 110, 0.28);
}

.service__badge--violet {
  color: rgb(91, 33, 182);
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.32);
}

.service__card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.service__card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.service__link {
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
}

.service__link:hover {
  text-decoration: underline;
}

.service__link--btn {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

/* --- Service detail dialog (reusable <dialog>) --- */
.service-modal {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  width: min(80vw, calc(100vw - 1.5rem));
  max-width: 80vw;
  height: min(80vh, calc(100vh - 1.5rem));
  max-height: 80vh;
  /* UA dialog often uses overflow:auto → clips shadows to a square; glow must extend past rounded corners */
  overflow: visible;
  border-radius: var(--radius-lg);
}

.service-modal::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
}

/* Outer shell: glow is not clipped by the panel’s overflow:hidden */
.service-modal__outer {
  height: 100%;
  border-radius: inherit;
  overflow: visible;
  /* Hairline edge reads rounded (avoids a square “ring” shadow fighting the radius) */
  border: 1px solid rgba(17, 118, 110, 0.38);
  /* Nearly invisible fill helps engines round the shadow shape consistently */
  background: rgba(255, 255, 255, 0.001);
  box-shadow:
    0 0 32px 4px rgba(17, 118, 110, 0.28),
    0 0 72px 12px rgba(6, 38, 34, 0.34),
    0 0 112px 24px rgba(17, 118, 110, 0.16),
    0 0 148px 40px rgba(8, 52, 46, 0.1),
    0 28px 70px rgba(15, 23, 42, 0.18);
}

.service-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 80vh;
  border-radius: inherit;
  border: 1px solid rgba(17, 118, 110, 0.22);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 250, 252, 0.96)
  );
  overflow: hidden;
}

.service-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: rgba(4, 18, 16, 0.78);
  border: 1px solid rgba(17, 118, 110, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 4px 18px rgba(4, 18, 16, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.service-modal__close:hover {
  background: rgba(17, 118, 110, 0.92);
  border-color: rgba(204, 251, 241, 0.45);
  color: #fff;
}

.service-modal__close:focus-visible {
  outline: 2px solid rgba(204, 251, 241, 0.9);
  outline-offset: 2px;
}

.service-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
  flex: 1;
  min-height: 0;
}

@media (min-width: 768px) {
  .service-modal__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  }
}

.service-modal__media {
  position: relative;
  min-height: 10rem;
  max-height: 34vh;
  background: rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
  .service-modal__media {
    min-height: 0;
    max-height: none;
  }
}

.service-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-modal__body {
  padding: 1.35rem 1.35rem 1.5rem;
  padding-inline-end: 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .service-modal__body {
    padding: 1.75rem 1.75rem 2rem;
    padding-inline-end: 2.5rem;
  }
}

.service-modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.service-modal__icon-wrap {
  display: inline-flex;
  width: 3.35rem;
  height: 3.35rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1.7rem;
  color: var(--primary-dark);
  background: rgba(204, 251, 241, 0.85);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.service-modal__body .service__badge {
  margin-bottom: 0;
}

.service-modal__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.2;
}

.service-modal__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.service-modal__detail {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Tabs --- */
/* No outer “card” shell — title, tabs, and .tab-panel sit on the section background */
.section--tabs {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tabs [role="tab"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-muted);
  font-weight: 600;
}

.tabs__tab-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.tabs__tab-label i {
  font-size: 1.12rem;
  line-height: 1;
  opacity: 0.92;
}

.tabs [role="tab"][aria-selected="true"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
}

/*
 * Stable height: tabs.js sets inline min-height to the tallest panel (FAQ measured
 * with all <details> open). Fallback min-height limits layout shift before JS runs.
 */
.tab-panels {
  position: relative;
  width: 100%;
  min-height: clamp(20rem, 48vh, 36rem);
}

.tab-panel {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
  box-shadow:
    var(--glow-sky-sm),
    0 16px 40px rgba(15, 23, 42, 0.05);
}

/* Off-screen measure pass: no flash, no layout jump */
.tab-panel--measuring {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: -1;
  visibility: hidden;
  pointer-events: none;
  height: auto;
  overflow: hidden;
}

/* Staggered “magazine rack” reveal — one line at a time (see tabs.js) */
.tab-panel [data-tab-line] {
  opacity: 1;
  transform: none;
}

.tabs-block--ready .tab-panel:not(.tab-panel--lines-visible) [data-tab-line] {
  opacity: 0;
  transform: translate3d(-1.1rem, 0.55rem, 0) scale(0.98);
  filter: blur(2px);
  transition:
    opacity 0.78s var(--tab-ease, cubic-bezier(0.22, 1, 0.36, 1))
      var(--tab-line-delay, 0ms),
    transform 0.88s var(--tab-ease, cubic-bezier(0.22, 1, 0.36, 1))
      var(--tab-line-delay, 0ms),
    filter 0.65s ease var(--tab-line-delay, 0ms);
}

.tabs-block--ready .tab-panel--lines-visible [data-tab-line] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  transition:
    opacity 0.82s var(--tab-ease, cubic-bezier(0.22, 1, 0.36, 1))
      var(--tab-line-delay, 0ms),
    transform 0.95s var(--tab-ease, cubic-bezier(0.22, 1, 0.36, 1))
      var(--tab-line-delay, 0ms),
    filter 0.72s ease var(--tab-line-delay, 0ms);
}

/* Paragraph / note / intro: vertical “round” rail seats like a magazine column */
.tabs-block--ready .tab-panel p[data-tab-line],
.tabs-block--ready .tab-panel .tab-panel__faq-intro[data-tab-line],
.tabs-block--ready .tab-panel .tab-panel__note[data-tab-line] {
  position: relative;
  padding-left: 0.95rem;
}

.tabs-block--ready .tab-panel p[data-tab-line]::before,
.tabs-block--ready .tab-panel .tab-panel__faq-intro[data-tab-line]::before,
.tabs-block--ready .tab-panel .tab-panel__note[data-tab-line]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  box-shadow: 0 0 0 1px rgba(17, 118, 110, 0.12);
  opacity: 0;
  transform: scaleY(0.15);
  transform-origin: center bottom;
  transition:
    opacity 0.72s ease var(--tab-line-delay, 0ms),
    transform 0.88s cubic-bezier(0.28, 1, 0.45, 1) var(--tab-line-delay, 0ms);
}

.tabs-block--ready
  .tab-panel:not(.tab-panel--lines-visible)
  p[data-tab-line]::before,
.tabs-block--ready
  .tab-panel:not(.tab-panel--lines-visible)
  .tab-panel__faq-intro[data-tab-line]::before,
.tabs-block--ready
  .tab-panel:not(.tab-panel--lines-visible)
  .tab-panel__note[data-tab-line]::before {
  opacity: 0;
  transform: scaleY(0.15);
}

.tabs-block--ready .tab-panel--lines-visible p[data-tab-line]::before,
.tabs-block--ready
  .tab-panel--lines-visible
  .tab-panel__faq-intro[data-tab-line]::before,
.tabs-block--ready
  .tab-panel--lines-visible
  .tab-panel__note[data-tab-line]::before {
  opacity: 1;
  transform: scaleY(1);
}

/* List lines: custom round “bullet” pops in one by one */
.tab-panel__list li[data-tab-line] {
  list-style: none;
  position: relative;
  padding-left: 1.4rem;
}

.tab-panel__list li[data-tab-line]::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.4em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  box-shadow:
    0 0 0 2px rgba(17, 118, 110, 0.12),
    0 2px 6px rgba(17, 118, 110, 0.2);
  opacity: 0;
  transform: scale(0.2) translateX(-0.35rem);
  transition:
    opacity 0.72s ease var(--tab-line-delay, 0ms),
    transform 0.88s cubic-bezier(0.28, 1, 0.48, 1) var(--tab-line-delay, 0ms);
}

.tabs-block--ready
  .tab-panel:not(.tab-panel--lines-visible)
  .tab-panel__list
  li[data-tab-line]::before {
  opacity: 0;
  transform: scale(0.2) translateX(-0.35rem);
}

.tabs-block--ready
  .tab-panel--lines-visible
  .tab-panel__list
  li[data-tab-line]::before {
  opacity: 1;
  transform: scale(1) translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .tab-panel [data-tab-line] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .tabs-block--ready .tab-panel p[data-tab-line]::before,
  .tabs-block--ready .tab-panel .tab-panel__faq-intro[data-tab-line]::before,
  .tabs-block--ready .tab-panel .tab-panel__note[data-tab-line]::before,
  .tabs-block--ready .tab-panel__list li[data-tab-line]::before {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.tab-panel__faq-intro {
  margin-bottom: 0.35rem;
}

.tab-panel__faq-intro + .faq-item {
  margin-top: 0.5rem;
}

.tab-panel__list {
  margin-top: 1rem;
  padding-left: 0;
}

.tab-panel__note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.faq-item {
  margin-top: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  background: rgba(248, 250, 252, 0.6);
  box-shadow:
    var(--glow-sky-sm),
    0 8px 24px rgba(15, 23, 42, 0.04);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
}

/* --- About / Why --- */
.about__layout,
.why__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 640px) {
  .about__layout,
  .why__layout {
    grid-template-columns: 1fr 1fr;
  }
}

.about__content p,
.why__content > p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.section__subtitle--about {
  max-width: 42rem;
  margin-bottom: 0.9rem;
}

.rounded-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
}

.section-media-frame {
  border-radius: var(--radius-md);
  border: 1px solid rgba(17, 118, 110, 0.2);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(248, 250, 252, 0.9)
  );
  padding: 0.45rem;
  box-shadow:
    0 0 0 1px rgba(17, 118, 110, 0.18),
    0 0 24px rgba(17, 118, 110, 0.14),
    0 18px 46px rgba(15, 23, 42, 0.12);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.about__content .badge-row,
.why__content .badge-row {
  margin-top: 1rem;
}

.compare__badges {
  margin-top: 0.25rem;
  margin-bottom: 0.85rem;
}

.compare__kicker {
  margin-top: 0.15rem;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 118, 110, 0.95);
}

.compare__badges .service__badge {
  gap: 0.38rem;
}

.compare__badges .service__badge i {
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.9;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.badge--sky {
  background: rgba(2, 132, 199, 0.12);
  color: rgb(3, 105, 161);
}

.badge--emerald {
  background: rgba(16, 185, 129, 0.12);
  color: rgb(5, 122, 85);
}

.badge--amber {
  background: rgba(245, 158, 11, 0.15);
  color: rgb(180, 83, 9);
}

.badge--violet {
  background: rgba(139, 92, 246, 0.12);
  color: rgb(109, 40, 217);
}

.badge--hero {
  /* rounded-2xl ≈ 1rem — Tailwind scale */
  border-radius: 1rem;
  background: rgba(6, 95, 70, 0.42);
  color: rgba(236, 253, 245, 0.98);
  border-color: rgba(236, 253, 245, 0.62);
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  box-shadow: var(--glow-emerald-sm);
}

.why__grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: stretch;
}

.why__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(17, 118, 110, 0.14);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(248, 250, 252, 0.85)
  );
  box-shadow:
    0 0 0 1px rgba(17, 118, 110, 0.05),
    0 12px 28px rgba(15, 23, 42, 0.08),
    0 0 16px rgba(17, 118, 110, 0.09);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.why__item:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 118, 110, 0.28);
  box-shadow:
    0 0 0 1px rgba(17, 118, 110, 0.12),
    0 18px 34px rgba(15, 23, 42, 0.1),
    0 0 22px rgba(17, 118, 110, 0.14);
}

.why__icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-dark);
  background: linear-gradient(
    145deg,
    rgba(204, 251, 241, 0.96),
    rgba(236, 253, 245, 0.88)
  );
  border-radius: 14px;
  border: 1px solid rgba(17, 118, 110, 0.2);
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.08),
    0 0 10px rgba(17, 118, 110, 0.12);
}

.why__item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.why__item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .why__item {
    transition: none;
  }

  .why__item:hover {
    transform: none;
  }
}

/* --- Table --- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  box-shadow:
    var(--glow-sky-lg),
    0 16px 44px rgba(15, 23, 42, 0.06);
}

.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.compare-table thead {
  background: rgba(13, 148, 136, 0.08);
}

.compare-table th {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-table tbody th[scope="row"] {
  color: var(--text-dark);
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
}

/* --- Doctors (same visual layer as the rest of main — no boxed panel) --- */
.section.section--doctors {
  position: relative;
  overflow: visible;
  /* Keep horizontal centering: do not use margin shorthand (it would override .max-w-9xl auto margins). */
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  /* Vertical rhythm from .section (4rem); do not use padding shorthand — .max-w-9xl keeps side gutters. */
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  max-width: var(--max-9xl);
  box-sizing: border-box;
}

/* Tighter gap under title / badges / toolbar row (default .section__head is 2.5rem ≈ 40px). */
.section.section--doctors .section__head {
  position: relative;
  z-index: 20;
  margin-bottom: 1rem;
}

/* Carousel uses transform (.reveal + track) — keep it under the head so the department dropdown isn’t covered */
.section.section--doctors .doctors__viewport {
  z-index: 0;
}

.doctors__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 1rem;
  max-width: 42rem;
}

.doctors__reel-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.doctors__reel-hint i {
  font-size: 1.15rem;
  color: var(--primary-dark);
  opacity: 0.85;
}

.doctors__toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .doctors__toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
  }
}

.dropdown {
  position: relative;
}

.dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .dropdown__toggle {
    width: auto;
    min-width: 220px;
    justify-content: center;
  }
}

.dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  padding: 0.35rem;
  border-radius: 14px;
  z-index: 30;
  list-style: none;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.dropdown__menu li button {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-weight: 500;
}

.dropdown__menu li button:hover {
  background: rgba(13, 148, 136, 0.1);
}

.doctors__nav-btns {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.3);
  background: rgba(204, 251, 241, 0.4);
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.doctors__viewport {
  position: relative;
  width: 100%;
  scroll-behavior: auto;
  /* Room below cards so xl shadows + hover lift aren’t clipped by the reel box */
  padding: 0.75rem 0 3.25rem;
  margin: 0 -0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Fade card edges horizontally only — keep vertical extent full opacity so shadows aren’t masked off */
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 2%,
    #000 98%,
    transparent 100%
  );
}

.doctors__viewport::-webkit-scrollbar {
  display: none;
}

/*
 * Horizontal clip only: `overflow-x: hidden` + `overflow-y: visible` computes to y:auto and chops shadows.
 * `clip` on x allows y:visible in supporting browsers so shadows can “splash” below naturally.
 */
.doctors__viewport--reel {
  overflow-x: clip;
  overflow-y: visible;
  cursor: grab;
  /* Slightly extra tail for largest hover shadow */
  padding-bottom: 3.5rem;
}

@supports not (overflow: clip) {
  .doctors__viewport--reel {
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 4rem;
  }
}

.doctors__viewport--reel:active {
  cursor: grabbing;
}

.doctors__viewport--no-reel,
.doctors__viewport--filtered {
  overflow-x: auto;
  overflow-y: visible;
  mask-image: none;
}

.doctors__track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
  min-height: 0;
  will-change: transform;
}

/* If .reveal ever lands on the track, strip motion so loop jumps stay instant (seamless marquee). */
.doctors__viewport--reel .doctors__track {
  transition: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.doctors__viewport--no-reel .doctors__track,
.doctors__viewport--filtered .doctors__track {
  will-change: auto;
}

/* Drop the global glass-card teal “wall” glow so a clipped overflow edge doesn’t read as a green border. */
.section--doctors .doctors__card.glass-card {
  padding: 0;
  border-radius: var(--radius-md);
  /* ≈ Tailwind shadow-xl: deeper slate lift */
  box-shadow:
    0 20px 25px -5px rgba(15, 23, 42, 0.14),
    0 8px 10px -6px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(15, 23, 42, 0.06);
}

.section--doctors .doctors__card.glass-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.2),
    0 12px 16px -8px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(13, 148, 136, 0.14);
}

.doctors__ribbon {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.5rem;
  flex-shrink: 0;
}

.doctors__card {
  flex: 0 0 clamp(260px, 72vw, 292px);
  width: clamp(260px, 72vw, 292px);
  text-align: center;
  overflow: visible;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
  box-shadow:
    0 20px 25px -5px rgba(15, 23, 42, 0.14),
    0 8px 10px -6px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(15, 23, 42, 0.06);
}

.doctors__card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.2),
    0 12px 16px -8px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(13, 148, 136, 0.14);
}

.doctors__card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.doctors__card.is-filtered-out {
  display: none;
}

.doctors__card__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  aspect-ratio: 4 / 5;
  background: rgba(15, 23, 42, 0.06);
}

.doctors__card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.doctors__socials {
  position: absolute;
  left: 0;
  bottom: -5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: bottom 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.doctors__socials span {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  font-size: 1.25rem;
  color: var(--text-dark);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.doctors__card:hover .doctors__socials {
  bottom: 1.25rem;
}

.doctors__card h3 {
  margin-top: 1rem;
  font-size: 1.15rem;
  padding: 0 0.5rem;
}

.doctors__card p {
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  padding: 0 0.5rem;
  font-size: 0.92rem;
}

.doctors__badge {
  display: inline-flex;
  margin: 0 0.75rem 1.15rem;
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.12);
}

/* --- Resources --- */
.resources__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .resources__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 2.75rem;
  }
}

.resources__col--text {
  min-width: 0;
}

.resources__anim-panel {
  margin-top: 0.35rem;
}

.resources__lead {
  max-width: 38rem;
  margin-bottom: 0.25rem;
}

.resources__item-list {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.resources__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.97),
    rgba(248, 250, 252, 0.88)
  );
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

@media (max-width: 480px) {
  .resources__item {
    grid-template-columns: 1fr;
  }
}

.resources__item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.resources__item__icon {
  display: inline-flex;
  width: 2.65rem;
  height: 2.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.35rem;
  color: var(--primary-dark);
  background: rgba(204, 251, 241, 0.65);
  border: 1px solid rgba(13, 148, 136, 0.18);
}

.resources__item__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-body);
}

.resources__item__sub {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.resources__item .service__badge {
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.resources__item .service__badge i {
  font-size: 0.85rem;
  margin-right: 0.2rem;
  vertical-align: -0.05em;
}

.resources__col--visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  container-type: inline-size;
  container-name: resources-visual;
}

.resources__figure {
  margin: 0;
}

.resources__figure.section-media-frame {
  box-shadow:
    0 0 0 1px rgba(17, 118, 110, 0.12),
    0 0 40px rgba(13, 148, 136, 0.18),
    0 28px 56px rgba(15, 23, 42, 0.14);
}

.resources__photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-md) - 4px);
}

.resources__caption {
  display: flex;
  justify-content: center;
  margin: 1.15rem 0 0;
  width: 100%;
  padding: 0 0.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 500;
}

.resources__caption__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  row-gap: 0.2rem;
  max-width: 100%;
}

.resources__caption__text {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

/* One line (icon + sentence) when the image column is wide enough */
@container resources-visual (min-width: 30rem) {
  .resources__caption__inner {
    flex-wrap: nowrap;
  }

  .resources__caption__text {
    white-space: nowrap;
    text-align: left;
  }
}

.resources__caption i {
  font-size: 1.2rem;
  color: var(--primary-dark);
  line-height: 1;
  flex-shrink: 0;
}

/* Staggered lines — same motion as Plans & information tab panels */
.resources-block--ready
  .resources__anim-panel:not(.resources__anim-panel--visible)
  [data-tab-line] {
  opacity: 0;
  transform: translate3d(-1.1rem, 0.55rem, 0) scale(0.98);
  filter: blur(2px);
  transition:
    opacity 0.78s var(--tab-ease, cubic-bezier(0.22, 1, 0.36, 1))
      var(--tab-line-delay, 0ms),
    transform 0.88s var(--tab-ease, cubic-bezier(0.22, 1, 0.36, 1))
      var(--tab-line-delay, 0ms),
    filter 0.65s ease var(--tab-line-delay, 0ms);
}

.resources-block--ready
  .resources__anim-panel--visible
  [data-tab-line] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  transition:
    opacity 0.82s var(--tab-ease, cubic-bezier(0.22, 1, 0.36, 1))
      var(--tab-line-delay, 0ms),
    transform 0.95s var(--tab-ease, cubic-bezier(0.22, 1, 0.36, 1))
      var(--tab-line-delay, 0ms),
    filter 0.72s ease var(--tab-line-delay, 0ms);
}

.resources-block--ready .resources__anim-panel p[data-tab-line] {
  position: relative;
  padding-left: 0.95rem;
}

.resources-block--ready .resources__anim-panel p[data-tab-line]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  box-shadow: 0 0 0 1px rgba(17, 118, 110, 0.12);
  opacity: 0;
  transform: scaleY(0.15);
  transform-origin: center bottom;
  transition:
    opacity 0.72s ease var(--tab-line-delay, 0ms),
    transform 0.88s cubic-bezier(0.28, 1, 0.45, 1) var(--tab-line-delay, 0ms);
}

.resources-block--ready
  .resources__anim-panel:not(.resources__anim-panel--visible)
  p[data-tab-line]::before {
  opacity: 0;
  transform: scaleY(0.15);
}

.resources-block--ready
  .resources__anim-panel--visible
  p[data-tab-line]::before {
  opacity: 1;
  transform: scaleY(1);
}

.resources-block--ready .resources__item-list li[data-tab-line] {
  list-style: none;
  position: relative;
  padding-left: 1.4rem;
}

.resources-block--ready .resources__item-list li[data-tab-line]::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  box-shadow:
    0 0 0 2px rgba(17, 118, 110, 0.12),
    0 2px 6px rgba(17, 118, 110, 0.2);
  opacity: 0;
  transform: scale(0.2) translateX(-0.35rem);
  transition:
    opacity 0.72s ease var(--tab-line-delay, 0ms),
    transform 0.88s cubic-bezier(0.28, 1, 0.48, 1) var(--tab-line-delay, 0ms);
}

.resources-block--ready
  .resources__anim-panel:not(.resources__anim-panel--visible)
  .resources__item-list
  li[data-tab-line]::before {
  opacity: 0;
  transform: scale(0.2) translateX(-0.35rem);
}

.resources-block--ready
  .resources__anim-panel--visible
  .resources__item-list
  li[data-tab-line]::before {
  opacity: 1;
  transform: scale(1) translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .resources-block--ready .resources__anim-panel [data-tab-line] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .resources-block--ready .resources__anim-panel p[data-tab-line]::before,
  .resources-block--ready
    .resources__item-list
    li[data-tab-line]::before {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- Contact hero: one image frame; copy, cards & CTA layered in the same cell --- */
.contact-hero {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.contact-hero__media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, auto);
  isolation: isolate;
  width: 100%;
}

.contact-hero__media-bg {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-height: clamp(26rem, 72vh, 52rem);
  height: 100%;
  align-self: stretch;
  pointer-events: none;
}

.contact-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.contact-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Slate fade with a longer ease into the footer (less abrupt last step) */
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.5) 0%,
    rgba(15, 23, 42, 0.28) 36%,
    rgba(15, 23, 42, 0.48) 58%,
    rgba(15, 23, 42, 0.68) 82%,
    rgba(12, 38, 34, 0.72) 100%
  );
}

.contact-hero__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Thin teal wash + bottom ramp that tints toward #0a2f2a so the hand-off matches the footer */
  background:
    linear-gradient(
      125deg,
      rgba(13, 148, 136, 0.22) 0%,
      rgba(13, 148, 136, 0.05) 42%,
      rgba(13, 148, 136, 0.09) 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 22%,
      rgba(15, 23, 42, 0.1) 48%,
      rgba(15, 23, 42, 0.22) 72%,
      rgba(10, 47, 42, 0.38) 100%
    );
}

.contact-hero__frame {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 2.8vw, 2rem);
  align-self: stretch;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.75rem) 1rem clamp(2.5rem, 5vw, 3.75rem);
  box-sizing: border-box;
}

.contact-hero__head {
  flex-shrink: 0;
}

.contact-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-hero__eyebrow i {
  font-size: 1rem;
  opacity: 0.95;
}

.contact-hero__title {
  margin: 0 0 0.5rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.contact-hero__subtitle {
  margin: 0 0 0.75rem;
  max-width: 26rem;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  font-weight: 600;
  color: #99f6e4;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.25);
}

.contact-hero__slogan {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(0.95rem, 1.55vw, 1.08rem);
  line-height: 1.6;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.contact-hero__details {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: start;
}

@media (min-width: 720px) {
  .contact-hero__details {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.contact-hero__detail {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: left;
}

.contact-hero__detail-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 12px;
  font-size: 1.45rem;
  color: #5eead4;
  background: rgba(13, 148, 136, 0.16);
  border: 1px solid rgba(45, 212, 191, 0.45);
  /* Neutral outer shadow avoids “two green lamps” with a dark gap between columns */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.28);
}

.contact-hero__detail-body {
  min-width: 0;
}

.contact-hero__detail-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
}

.contact-hero__detail-text {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.95);
}

.contact-hero__detail-text a {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s ease;
}

.contact-hero__detail-text a:hover {
  color: #99f6e4;
}

.contact-hero__cta-wrap {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
  border-top: none;
  text-align: center;
}

.contact-hero__cta-line {
  margin: 0 auto 1.25rem;
  max-width: 32rem;
  font-size: clamp(1rem, 1.85vw, 1.15rem);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.contact-hero__cta-actions {
  display: flex;
  justify-content: center;
}

.contact-hero__cta-btn {
  padding: 0.95rem 2.25rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 4px 12px rgba(13, 148, 136, 0.22);
}

.contact-hero__cta-btn:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .contact-hero__cta-btn:hover {
    transform: none;
  }
}

/* --- Footer (preserve original structure / content spirit) --- */
.footer {
  position: relative;
  margin-top: 0;
  /* Same base + overlay language as .hero (see .hero background-color, ::after, ::before) */
  background-color: #0a2f2a;
  background-image:
    linear-gradient(
      95deg,
      rgba(15, 23, 42, 0.78) 0%,
      rgba(15, 23, 42, 0.34) 24%,
      rgba(15, 23, 42, 0.07) 50%,
      rgba(15, 23, 42, 0.32) 78%,
      rgba(15, 23, 42, 0.74) 100%
    ),
    linear-gradient(
      125deg,
      rgba(13, 148, 136, 0.38) 0%,
      rgba(13, 148, 136, 0.09) 42%,
      rgba(13, 148, 136, 0.17) 100%
    ),
    radial-gradient(
      ellipse 88% 72% at 14% 38%,
      rgba(15, 23, 42, 0.42) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 82% 68% at 86% 48%,
      rgba(15, 23, 42, 0.4) 0%,
      transparent 54%
    ),
    radial-gradient(
      circle at 50% 42%,
      transparent 0%,
      transparent 32%,
      rgba(6, 78, 59, 0.28) 100%
    );
  box-shadow: none;
}

.footer__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 4rem 1rem 3rem;
}

@media (min-width: 640px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__container {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ecfdf5;
}

.footer__heading {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #99f6e4;
}

.footer__col p {
  margin-bottom: 0.65rem;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.95rem;
}

.footer__col a {
  text-decoration: none;
  color: rgba(248, 250, 252, 0.92);
}

.footer__col a:hover {
  text-decoration: underline;
  color: #ccfbf1;
}

.footer__bar {
  background: transparent;
}

.footer__bar__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem 1.5rem;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) {
  .footer__bar__content {
    flex-direction: row;
  }
}

.footer__bar__content p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer__socials {
  display: flex;
  gap: 1rem;
  color: #fff;
  font-size: 1.1rem;
}

code {
  font-size: 0.88em;
  background: rgba(13, 148, 136, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}
