/* ==========================================================================
   AD SOLACE HEALTHCARE — MAIN STYLESHEET
   Design system: Deep Navy / Healthcare Teal / Cyan
   Type: Space Grotesk (display) + Inter (body) + IBM Plex Mono (data/labels)
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand colors */
  --primary: #0B1F33;
  --primary-2: #122a44;
  --primary-soft: #16324f;
  --secondary: #0D9488;
  --secondary-light: #14b8a6;
  --accent: #22D3EE;
  --light: #F7FAFC;
  --white: #FFFFFF;
  --text: #334155;
  --text-light: #64748B;
  --border: #E2E8F0;
  --border-dark: rgba(255, 255, 255, 0.12);
  --surface-dark: #071422;
  --success: #10B981;
  --error: #EF4444;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  --grad-dark: linear-gradient(180deg, var(--primary) 0%, #081726 100%);
  --grad-glow: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.18), transparent 60%);

  /* Typography */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Spacing scale */
  --space-1: 0.4rem;
  --space-2: 0.8rem;
  --space-3: 1.2rem;
  --space-4: 1.6rem;
  --space-5: 2.4rem;
  --space-6: 3.2rem;
  --space-7: 4.8rem;
  --space-8: 6.4rem;
  --space-9: 9.6rem;

  /* Layout */
  --container-w: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --header-h: 124px;
  --marquee-h: 34px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.2s;
  --t-med: 0.45s;
  --t-slow: 0.8s;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(11, 31, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 31, 51, 0.10);
  --shadow-lg: 0 24px 64px rgba(11, 31, 51, 0.16);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 20px 60px rgba(13, 148, 136, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
  /* 1rem = 10px */
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

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

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

svg {
  display: block;
}

/* Visible focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 1.2rem 2rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(3.4rem, 4.6vw, 5.8rem);
}

h2 {
  font-size: clamp(2.8rem, 3.4vw, 4.2rem);
}

h3 {
  font-size: clamp(2rem, 2.2vw, 2.6rem);
}

h4 {
  font-size: 1.9rem;
}

p {
  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-7);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  margin-top: var(--space-3);
  font-size: 1.75rem;
  color: var(--text-light);
}

.text-mono {
  font-family: var(--font-mono);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-9) 0;
  position: relative;
}

.section-alt {
  background: var(--white);
}

.section-idx {
  position: absolute;
  top: var(--space-6);
  right: var(--space-5);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--border);
  letter-spacing: 0.05em;
}

.divider-glow {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  position: relative;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(11, 31, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 51, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.5rem;
  padding: 1.5rem 2.8rem;
  border-radius: 100px;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  white-space: nowrap;
  position: relative;
  min-height: 48px;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover {
  background: var(--secondary-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(13, 148, 136, 0.36);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-3px);
}

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

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border-dark);
}

.btn-ghost-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 1.1rem 2rem;
  font-size: 1.35rem;
}

/* magnetic wrapper (JS adds transform via inline style) */
.magnetic {
  will-change: transform;
}

/* ---------- Header ---------- */
.top-marquee {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 100%;
  height: var(--marquee-h);
  overflow: hidden;
  background: var(--secondary);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.top-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  gap: 3.5rem;
  padding-left: 100%;
  animation: top-marquee-scroll 28s linear infinite;
}

.top-marquee-track span::after {
  content: '•';
  margin-left: 3.5rem;
  color: var(--accent);
}

@keyframes top-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.site-header {
  position: fixed;
  top: var(--marquee-h);
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(11, 31, 51, 0.08);
  padding: var(--space-3) 0;
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), padding var(--t-med) var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.is-scrolled {
  background: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(11, 31, 51, 0.06);
  padding: var(--space-2) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  transition: color var(--t-med) var(--ease);
}

.brand-logo {
  display: block;
  width: 100px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.site-header.is-scrolled .brand {
  color: var(--primary);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.9rem;
  transform-style: preserve-3d;
  transition: transform var(--t-med) var(--ease);
}

.brand:hover .brand-mark {
  transform: rotateY(180deg);
}

.brand span {
  line-height: 1;
}

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  opacity: 0.65;
  margin-top: 0.3rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links {
  display: flex;
  gap: var(--space-5);
}

.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--text);
  padding: 0.6rem 0.1rem;
  transition: color var(--t-fast) var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--t-med) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a.active {
  color: var(--secondary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.site-header.is-scrolled .hamburger span {
  background: var(--primary);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--marquee-h);
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: calc(var(--header-h) - var(--marquee-h) + var(--space-4)) var(--space-5) var(--space-6);
  transform: translateY(-110%);
  transition: transform var(--t-med) var(--ease);
  z-index: 999;
  max-height: 100vh;
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  font-size: 2rem;
  font-family: var(--font-display);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}

.mobile-menu .btn {
  margin-top: var(--space-5);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-dark);
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

.hero-bg-layer.is-active {
  opacity: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    var(--grad-glow),
    linear-gradient(120deg, rgba(7, 20, 34, 0.94) 0%, rgba(7, 20, 34, 0.82) 45%, rgba(7, 20, 34, 0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.hero-eyebrow {
  color: var(--accent);
}

.hero-eyebrow::before {
  background: var(--secondary-light);
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.hero-content h1 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-slide p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.8rem;
  max-width: 480px;
  margin-bottom: var(--space-5);
}

/* ---------- Hero banner slider ---------- */
.hero-slider {
  position: relative;
  min-height: 250px;
}

.hero-slide {
  display: none;
}

.hero-slide.is-active {
  display: block;
  animation: fade-in var(--t-slow) var(--ease);
}

.hero-dots {
  display: flex;
  gap: 0.8rem;
  margin-top: var(--space-2);
  margin-bottom: var(--space-6);
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all var(--t-fast) var(--ease);
}

.hero-dots button:hover {
  background: rgba(255, 255, 255, 0.55);
}

.hero-dots button.is-active {
  background: var(--accent);
  width: 26px;
  border-radius: 100px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--space-3) var(--space-6);
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
}

.trust-strip i {
  color: var(--accent);
  font-size: 1.5rem;
}

/* ---------- Hero 3D visual ---------- */
.hero-visual {
  position: relative;
  height: 560px;
  perspective: 1400px;
}

.hero-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.35s ease-out;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: spin-ring linear infinite;
}

.orbit-ring.r1 {
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  transform: rotateX(72deg);
  animation-duration: 26s;
}

.orbit-ring.r2 {
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  transform: rotateX(72deg) rotateZ(40deg);
  animation-duration: 34s;
  animation-direction: reverse;
}

.orbit-ring.r3 {
  width: 500px;
  height: 500px;
  margin: -250px 0 0 -250px;
  transform: rotateY(72deg);
  animation-duration: 40s;
  border-color: rgba(13, 148, 136, 0.28);
}

.core-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2fe3ff, var(--secondary) 55%, var(--primary) 100%);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.55), inset -10px -10px 30px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 4.2rem;
  animation: float-y 6s var(--ease) infinite;
}

.node {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 2.1rem;
  box-shadow: var(--shadow-glow);
  animation: float-y 5s var(--ease) infinite;
}

.node.n1 {
  top: 4%;
  left: 6%;
  animation-delay: 0.2s;
}

.node.n2 {
  top: 12%;
  right: 2%;
  animation-delay: 1.1s;
}

.node.n3 {
  bottom: 16%;
  left: -2%;
  animation-delay: 0.6s;
}

.node.n4 {
  bottom: 2%;
  right: 14%;
  animation-delay: 1.6s;
}

.node.n5 {
  top: 42%;
  left: 92%;
  animation-delay: 0.9s;
}

.info-card {
  position: absolute;
  background: rgba(11, 31, 51, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.7rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  animation: float-y 7s var(--ease) infinite;
  box-shadow: var(--shadow-md);
}

.info-card i {
  color: var(--accent);
  font-size: 2.2rem;
}

.info-card strong {
  display: block;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1.7rem;
  line-height: 1.1;
}

.info-card span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.2rem;
}

.info-card.c1 {
  top: 6%;
  right: 8%;
  animation-delay: 0.3s;
}

.info-card.c2 {
  bottom: 10%;
  left: 0%;
  animation-delay: 1.4s;
}

.info-card.c3 {
  top: 48%;
  right: -4%;
  animation-delay: 0.8s;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  animation: drift 8s linear infinite;
}

.scroll-cue {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: scroll-cue 1.8s var(--ease) infinite;
}

/* ---------- Trust Stats ---------- */
.stats-band {
  background: var(--primary);
  padding: var(--space-6) 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-dark);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 4vw, 4.4rem);
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
}

.stat-num .plus {
  color: var(--accent);
}

.stat-label {
  margin-top: 0.6rem;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Healthcare Journey ---------- */
.journey-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  position: relative;
  margin-top: var(--space-5);
}

.journey-track::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
  z-index: 0;
}

.journey-step {
  position: relative;
  z-index: 1;
  padding-top: var(--space-2);
}

.journey-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: var(--space-3);
  transition: all var(--t-med) var(--ease);
}

.journey-step:hover .journey-num {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  transform: scale(1.08);
}

.journey-step h4 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.journey-step p {
  font-size: 1.4rem;
  color: var(--text-light);
}

/* ---------- Treatments ---------- */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.treatment-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

.treatment-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--grad-brand);
}

.card-media img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-fast);
}

.treatment-card:hover .card-media img {
  transform: scale(1.08);
}

.card-media .ph-icon {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 3.6rem;
  color: rgba(255, 255, 255, 0.85);
}

.card-icon {
  position: absolute;
  bottom: -22px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: var(--secondary);
  font-size: 1.9rem;
}

.card-body {
  padding: var(--space-5) var(--space-4) var(--space-4);
}

.card-body h4 {
  margin-bottom: 0.6rem;
}

.card-body p {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: var(--space-3);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--secondary);
}

.card-link i {
  transition: transform var(--t-fast) var(--ease);
}

.card-link:hover i {
  transform: translateX(4px);
}

.treatments-more {
  text-align: center;
  margin-top: var(--space-6);
}

/* ---------- Featured Treatment ---------- */
.featured-treatment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.featured-media {
  position: relative;
  aspect-ratio: 5 / 4.2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-brand);
}

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

.featured-badge {
  position: absolute;
  bottom: var(--space-4);
  right: -var(--space-4);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.4rem 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateZ(40px);
}

.featured-badge i {
  color: var(--secondary);
  font-size: 2.2rem;
}

.featured-badge strong {
  display: block;
  font-size: 1.5rem;
}

.featured-badge span {
  font-size: 1.2rem;
  color: var(--text-light);
}

.featured-content .btn {
  margin-top: var(--space-4);
}

/* ---------- Why Ad Solace ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.why-card {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--secondary);
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  margin-bottom: var(--space-3);
}

.why-card h4 {
  margin-bottom: 0.6rem;
}

.why-card p {
  font-size: 1.4rem;
  color: var(--text-light);
}

/* ---------- Services (asymmetric) ---------- */
.services-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.svc-card {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease);
  border: 1px solid var(--border);
  background: var(--white);
}

.svc-card:hover {
  transform: translateY(-5px);
}

.svc-card i {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: var(--space-2);
}

.svc-card h4 {
  font-size: 1.6rem;
}

.svc-card.large {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--grad-dark);
  color: var(--white);
  border: none;
}

.svc-card.large h4 {
  color: var(--white);
  font-size: 2.1rem;
}

.svc-card.large p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  margin-top: 0.6rem;
}

.svc-card.large i {
  color: var(--accent);
  font-size: 2.8rem;
}

.svc-card.image {
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.svc-card.image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 51, 0.1), rgba(11, 31, 51, 0.85));
  z-index: 0;
}

.svc-card.image i, .svc-card.image h4 {
  position: relative;
  z-index: 1;
  color: var(--white);
}

/* ---------- Destinations ---------- */
.destinations-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-6);
}

.world-map {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.world-map svg {
  width: 100%;
  height: 100%;
}

.map-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse-pin 2.4s infinite;
}

.map-pin::after {
  content: attr(data-country);
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease);
}

.map-pin:hover::after,
.map-pin.is-active::after {
  opacity: 1;
}

.destination-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  min-height: 320px;
}

.destination-panel .dp-country {
  font-family: var(--font-mono);
  color: var(--secondary);
  font-size: 1.3rem;
  margin-bottom: var(--space-2);
}

.destination-panel h3 {
  margin-bottom: var(--space-3);
}

.dp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: var(--space-3) 0 var(--space-4);
}

.dp-list span {
  font-size: 1.25rem;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--text);
}

/* ---------- Hospitals carousel ---------- */
.carousel {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-6);
}

.carousel-track {
  display: flex;
  gap: var(--space-4);
  transition: transform var(--t-slow) var(--ease);
}

.hospital-card {
  flex: 0 0 calc(33.333% - 1.6rem);
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hospital-card .card-media {
  aspect-ratio: 16/10;
}

.hospital-card .card-body h4 {
  margin-bottom: 0.3rem;
}

.hospital-loc {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: var(--space-2);
}

.hospital-loc i {
  color: var(--secondary);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-3);
}

.tag-row span {
  font-size: 1.15rem;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  background: rgba(13, 148, 136, 0.08);
  color: var(--secondary);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  transition: all var(--t-fast) var(--ease);
  color: var(--primary);
}

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

/* ---------- Doctors ---------- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.doctor-card:hover {
  box-shadow: var(--shadow-lg);
}

.doctor-card .card-media {
  aspect-ratio: 3/3.4;
}

.doctor-card .card-body {
  text-align: center;
  padding: var(--space-4);
}

.doctor-card .card-body h4 {
  margin-bottom: 0.2rem;
}

.doctor-specialty {
  color: var(--secondary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.doctor-meta {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: var(--space-3);
}

/* ---------- Patient Stories ---------- */
.story-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary);
  margin-top: var(--space-6);
}

.story-media {
  position: relative;
  min-height: 420px;
  background: var(--grad-brand);
  overflow: hidden;
}

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

.story-content {
  padding: var(--space-7);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-content .eyebrow {
  color: var(--accent);
}

.story-content .eyebrow::before {
  background: var(--accent);
}

.story-content h3 {
  color: var(--white);
  margin-bottom: var(--space-4);
  font-size: clamp(2.4rem, 3vw, 3.4rem);
}

.story-meta {
  display: flex;
  gap: var(--space-6);
  margin: var(--space-4) 0 var(--space-5);
}

.story-meta div span {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.4rem;
}

.story-meta div strong {
  font-size: 1.6rem;
}

/* ---------- Testimonials ---------- */
.testimonial-slider {
  position: relative;
  margin-top: var(--space-6);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.is-active {
  display: block;
  animation: fade-in var(--t-slow) var(--ease);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 7rem;
  color: var(--secondary);
  opacity: 0.25;
  line-height: 1;
}

.testimonial-slide p {
  font-size: 2.1rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.4;
  margin: var(--space-3) 0 var(--space-4);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--grad-brand);
}

.testimonial-author .ta-name {
  font-weight: 600;
}

.testimonial-author .ta-loc {
  font-size: 1.3rem;
  color: var(--text-light);
}

.stars {
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: var(--space-5);
}

.testimonial-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--t-fast) var(--ease);
}

.testimonial-dots button.is-active {
  background: var(--secondary);
  width: 26px;
  border-radius: 100px;
}

/* ---------- Consultation CTA + Form ---------- */
.cta-band {
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-band .container {
  position: relative;
  z-index: 2;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: var(--space-3);
}

.cta-band>.container>p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 560px;
  margin: 0 auto var(--space-5);
  font-size: 1.8rem;
}

.cta-buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-band .float-deco {
  position: absolute;
  color: rgba(255, 255, 255, 0.06);
  font-size: 12rem;
  z-index: 1;
}

.cta-band .fd1 {
  top: -30px;
  left: -20px;
  transform: rotate(-15deg);
}

.cta-band .fd2 {
  bottom: -50px;
  right: -20px;
  transform: rotate(12deg);
}

.consult-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-7);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-7);
}

.consult-info {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-7);
}

.consult-info h3 {
  color: var(--white);
  margin-bottom: var(--space-3);
}

.consult-info p {
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: var(--space-5);
}

.consult-info ul li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: var(--space-4);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
}

.consult-info ul i {
  color: var(--accent);
  margin-top: 0.3rem;
}

.consult-form {
  padding: var(--space-7);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.field {
  margin-bottom: var(--space-3);
  position: relative;
}

.field label {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--light);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--secondary);
  background: var(--white);
  outline: none;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--error);
}

.field-error {
  display: none;
  color: var(--error);
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.field.has-error .field-error {
  display: block;
}

.file-drop {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  background: var(--light);
  transition: border-color var(--t-fast) var(--ease);
}

.file-drop:hover, .file-drop.drag-over {
  border-color: var(--secondary);
}

.file-drop i {
  font-size: 2.4rem;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.file-drop small {
  display: block;
  color: var(--text-light);
  font-size: 1.2rem;
  margin-top: 0.4rem;
}

.file-drop input {
  display: none;
}

.file-list {
  margin-top: 0.8rem;
  font-size: 1.25rem;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: var(--light);
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.file-list button {
  color: var(--error);
  font-weight: 700;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-6) 0;
}

.form-success.is-visible {
  display: block;
  animation: fade-in var(--t-slow) var(--ease);
}

.form-success i {
  font-size: 5rem;
  color: var(--success);
  margin-bottom: var(--space-3);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: var(--space-6) auto 0;
}

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

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--primary);
}

.faq-q i {
  transition: transform var(--t-med) var(--ease);
  color: var(--secondary);
  flex-shrink: 0;
}

.faq-item.is-open .faq-q i {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med) var(--ease);
}

.faq-a p {
  padding-bottom: var(--space-4);
  color: var(--text-light);
  max-width: 680px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-8);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  margin: var(--space-3) 0 var(--space-4);
  font-size: 1.4rem;
  max-width: 300px;
}

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

.social-row {
  display: flex;
  gap: 1rem;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: grid;
  place-items: center;
  transition: all var(--t-fast) var(--ease);
}

.social-row a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.footer-col ul li {
  margin-bottom: var(--space-2);
}

.footer-col a {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--t-fast) var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 1.4rem;
}

.footer-col li i {
  color: var(--secondary);
  margin-top: 0.3rem;
}

.footer-bottom {
  padding: var(--space-4) 0 var(--space-6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom .legal-links {
  display: flex;
  gap: var(--space-4);
}

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

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  z-index: 900;
  animation: pulse-wa 2.6s infinite;
}

.whatsapp-float .wa-tip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-size: 1.25rem;
  font-family: var(--font-body);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease);
}

.whatsapp-float:hover .wa-tip {
  opacity: 1;
}

/* ---------- Mobile CTA bar ---------- */
.mobile-cta-bar {
  display: none;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  z-index: 890;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t-med) var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Custom cursor (medical cross) ---------- */
.med-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease), transform 0.06s linear;
  mix-blend-mode: difference;
}

.med-cursor.is-active {
  opacity: 1;
}

.med-cursor::before,
.med-cursor::after {
  content: '';
  position: absolute;
  background: var(--white);
}

.med-cursor::before {
  top: 9px;
  left: 0;
  width: 22px;
  height: 4px;
}

.med-cursor::after {
  left: 9px;
  top: 0;
  height: 22px;
  width: 4px;
}

/* ---------- Image placeholder fallback ----------
   If a photo hasn't been dropped into /images yet, broken <img> is hidden
   via JS (img-broken class) so the gradient background + icon shows instead. */
.img-broken {
  display: none !important;
}

/* ==========================================================================
   INNER PAGES — SHARED COMPONENTS
   Used across pages/*.html. Built on the same tokens/patterns as the
   homepage so every inner page reads as part of one system.
   ========================================================================== */

/* ---------- Page hero band (breadcrumb + title banner) ----------
   Photo goes in via the --hero-img custom property (set inline per
   page, e.g. style="--hero-img:url('../images/hero/page-hero-about.webp')").
   Layers, top to bottom: dark legibility wash → the photo → the
   original flat gradient as a safe fallback if the photo file is
   missing, so nothing breaks before real photography is dropped in. */
.page-hero {
  background-color: var(--primary);
  background-image:
    linear-gradient(180deg, rgba(7, 20, 34, 0.68) 0%, rgba(7, 20, 34, 0.9) 100%),
    var(--hero-img, none),
    var(--grad-dark);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + var(--space-7)) 0 var(--space-7);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 18% 30%, black, transparent 70%);
  mask-image: radial-gradient(circle at 18% 30%, black, transparent 70%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero-deco {
  position: absolute;
  z-index: 1;
  font-size: 11rem;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.page-hero-deco.pd1 {
  top: -24px;
  right: 7%;
  transform: rotate(12deg);
}

.page-hero-deco.pd2 {
  bottom: -46px;
  right: 24%;
  font-size: 7rem;
  transform: rotate(-10deg);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-4);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb i {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.3);
}

.page-hero h1 {
  color: var(--white);
  max-width: 780px;
}

.page-hero .lead {
  margin-top: var(--space-3);
  font-size: 1.75rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.page-hero-meta div {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.4rem;
}

/* ---------- Filter tabs (treatments / doctors listings) ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.filter-tab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.35rem;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}

.filter-tab:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.filter-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

[data-filter-item] {
  transition: opacity var(--t-med) var(--ease);
}

[data-filter-item].is-hidden {
  display: none;
}

/* ---------- Hospitals — full grid (listing page) ---------- */
.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

/* ---------- Team grid (About) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.team-card {
  text-align: center;
}

.team-card .card-media {
  aspect-ratio: 1/1;
  border-radius: 50%;
  margin-bottom: var(--space-4);
}

.team-card .card-media .ph-icon {
  border-radius: 50%;
}

.team-card h4 {
  margin-bottom: 0.2rem;
  font-size: 1.7rem;
}

.team-card .team-role {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-6);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.contact-card {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
}

.contact-card i {
  font-size: 2rem;
  color: var(--secondary);
  margin-top: 0.2rem;
}

.contact-card h4 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.contact-card p, .contact-card a {
  color: var(--text-light);
  font-size: 1.4rem;
}

.contact-map {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--primary);
}

.contact-map .grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.contact-map i {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: var(--accent);
}

.contact-map span {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  text-align: center;
}

/* ---------- Legal content (FAQ page: privacy / terms / disclaimer) ---------- */
.legal-block {
  max-width: 800px;
  margin: 0 auto var(--space-8);
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h3 {
  margin-bottom: var(--space-3);
}

.legal-block p, .legal-block li {
  color: var(--text-light);
  margin-bottom: var(--space-3);
  line-height: 1.75;
}

.legal-block ul {
  padding-left: 2rem;
}

.legal-updated {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: var(--space-2);
}

/* ---------- Patient stories — supporting grid beneath the featured story ---------- */
.story-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.story-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}

.story-card .card-media {
  aspect-ratio: 4/3;
}

.story-card .card-body {
  padding: var(--space-4);
}

.story-card .story-tags {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.story-card .story-tags span {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--secondary);
  background: rgba(13, 148, 136, 0.08);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
}

/* ---------- Medical visa — document checklist ---------- */
.doc-checklist {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.doc-checklist li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.doc-checklist i {
  color: var(--secondary);
  font-size: 1.8rem;
  margin-top: 0.2rem;
}

/* ---------- Treatment details — overview + sticky facts sidebar ---------- */
.detail-overview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-6);
  align-items: start;
}

.spec-list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.spec-list li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  color: var(--text);
}

.spec-list i {
  color: var(--secondary);
  margin-top: 0.35rem;
}

.detail-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  position: sticky;
  top: calc(var(--header-h) + var(--space-3));
}

.detail-sidebar h4 {
  margin-bottom: var(--space-3);
  font-size: 1.8rem;
}

.detail-sidebar ul {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.detail-sidebar li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 1.4rem;
  color: var(--text-light);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.6rem;
}

.detail-sidebar li strong {
  color: var(--primary);
  text-align: right;
}

/* ---------- Services — full listing with description ---------- */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.service-detail-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.service-detail-card:hover {
  border-color: var(--secondary);
  transform: translateY(-4px);
}

.service-detail-card .svc-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.08);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.service-detail-card h4 {
  margin-bottom: 0.6rem;
  font-size: 1.8rem;
}

.service-detail-card p {
  color: var(--text-light);
  font-size: 1.45rem;
}

.service-detail-card .spec-list {
  margin: var(--space-3) 0 0;
}

/* ---------- Destinations — full grid (listing page) ---------- */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.destination-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

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

.destination-card .card-media {
  aspect-ratio: 4/3;
}

.destination-card .card-body h4 {
  margin-bottom: 0.2rem;
}

.destination-card .dest-region {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: var(--space-2);
}

/* ---------- Contact page — form card ---------- */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-7);
}

@media (max-width: 768px) {
  .contact-form-card {
    padding: var(--space-5);
  }
}

/* ---------- Treatment details modal ----------
   Built once via JS on first "Explore Treatment" click and reused after
   that. .is-open toggles visibility/interactivity so it stays in the DOM
   (cheaper than rebuilding) without capturing focus/clicks while hidden. */
.tmodal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(7, 20, 34, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease);
}

.tmodal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.tmodal-box {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-7);
  transform: translateY(24px) scale(0.98);
  transition: transform var(--t-med) var(--ease);
}

.tmodal-overlay.is-open .tmodal-box {
  transform: translateY(0) scale(1);
}

.tmodal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--light);
  color: var(--text);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}

.tmodal-close:hover {
  background: rgba(13, 148, 136, 0.12);
  color: var(--secondary);
}

.tmodal-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-right: var(--space-6);
}

.tmodal-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.08);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}

.tmodal-head .eyebrow {
  margin-bottom: 0.4rem;
}

.tmodal-name {
  font-size: 2.4rem;
  margin: 0;
}

.tmodal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  background: var(--light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}

.tmodal-meta div {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tmodal-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.3rem;
}

.tmodal-overview {
  color: var(--text-light);
  margin-bottom: var(--space-5);
}

.tmodal-box h4 {
  font-size: 1.6rem;
  margin-bottom: var(--space-3);
}

.tmodal-included {
  margin-bottom: var(--space-5);
}

.tmodal-doctor {
  font-size: 1.4rem;
  color: var(--text-light);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  margin-bottom: var(--space-5);
}

.tmodal-doctor i {
  color: var(--secondary);
  margin-right: 0.4rem;
}

.tmodal-enquiry-form {
  margin: var(--space-5) 0;
  padding: var(--space-4);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.tmodal-enquiry-form h4 {
  margin-bottom: var(--space-3);
}

.tmodal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.tmodal-enquiry-form label {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.tmodal-enquiry-form input,
.tmodal-enquiry-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font: inherit;
}

.tmodal-enquiry-form input:focus,
.tmodal-enquiry-form textarea:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

.tmodal-form-success {
  display: none;
  color: var(--success);
  font-weight: 600;
  margin-top: var(--space-3);
}

.tmodal-form-success.is-visible {
  display: block;
}

.tmodal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 600px) {
  .tmodal-box {
    padding: var(--space-5);
  }

  .tmodal-meta {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .tmodal-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tmodal-actions {
    flex-direction: column;
  }

  .tmodal-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tmodal-overlay, .tmodal-box {
    transition-duration: 0.01ms;
  }
}