:root {
  --brand: 212 88% 38%;
  --brand-dark: 212 88% 26%;
  --brand-light: 212 88% 96%;
  --brand-red: 0 74% 50%;
  --whatsapp: 142 70% 45%;
  --accent-teal: 188 70% 38%;
  --accent-rose: 340 75% 52%;
  --accent-amber: 38 92% 48%;
  --accent-violet: 262 55% 58%;
  --ink: 215 30% 14%;
  --muted: 215 15% 42%;
  --border: 215 20% 89%;
  --bg-alt: 210 30% 97%;
}

* { box-sizing: border-box; }

html {
  font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  color: hsl(var(--ink));
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

.header-inner, .nav { min-width: 0; }
.header-inner > * { min-width: 0; }

h1, h2, h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.5em;
}

h1 em, .hero em { font-style: italic; color: hsl(0 0% 100% / 0.95); }

p { margin: 0 0 1em; }

a { color: hsl(var(--brand)); text-decoration: none; }

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: -4px;
  flex-shrink: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Calming pre-loader ---------- */
/* Hidden unless JS confirms it can also remove it — never blocks the page if JS fails. */
.preloader { display: none; }
.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.js .preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  animation: preloader-breathe 1.8s ease-in-out infinite;
}

@keyframes preloader-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.preloader-tagline {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 0.95rem;
  color: hsl(var(--muted));
  text-align: center;
}

.preloader-bar {
  width: 120px;
  height: 3px;
  border-radius: 999px;
  background: hsl(var(--border));
  overflow: hidden;
  margin-top: 6px;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: hsl(var(--brand));
  animation: preloader-fill 1.2s ease-in-out infinite;
}
@keyframes preloader-fill {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-logo, .preloader-bar span { animation: none; }
}

/* Accessible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 2px solid hsl(var(--brand-red));
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible { outline-color: #fff; }

/* Image fade-in as they load, instead of a hard pop-in */
.feature-media img, .team-photo img, .team-media img, .tip-media img {
  opacity: 0;
  animation: img-in 0.5s ease forwards;
}
@keyframes img-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .feature-media img, .team-photo img, .team-media img, .tip-media img { animation: none; opacity: 1; }
}

/* ---------- Scroll reveal ---------- */
/* Content is visible by default; only .js (script ran) + not-yet-revealed gets hidden.
   This keeps the page fully visible if JS fails, and avoids a flash of hidden content. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--delay, 0) * 90ms);
}
.js .reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--delay, 0) * 90ms); }
.js .reveal-right { opacity: 0; transform: translateX(32px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--delay, 0) * 90ms); }
.js .reveal-scale {
  opacity: 0;
  transform: translateY(-22px) scale(0.86);
  transition: opacity 0.6s cubic-bezier(.22,.9,.36,1.4), transform 0.65s cubic-bezier(.22,.9,.36,1.4);
  transition-delay: calc(var(--delay, 0) * 110ms);
}

.reveal.in-view, .reveal-left.in-view, .reveal-right.in-view { opacity: 1; transform: translate(0, 0); }
.reveal-scale.in-view { opacity: 1; transform: translateY(0) scale(1); }

/* "Pop in from outside" — cards fly in from beyond the page edge, crossing paths, and settle into place */
.js .pop-left {
  opacity: 0;
  transform: translateX(-140px) rotate(-6deg) scale(0.82);
  transition: opacity 0.6s cubic-bezier(.22,.9,.36,1.35), transform 0.75s cubic-bezier(.22,.9,.36,1.35);
  transition-delay: calc(var(--delay, 0) * 110ms);
}
.js .pop-right {
  opacity: 0;
  transform: translateX(140px) rotate(6deg) scale(0.82);
  transition: opacity 0.6s cubic-bezier(.22,.9,.36,1.35), transform 0.75s cubic-bezier(.22,.9,.36,1.35);
  transition-delay: calc(var(--delay, 0) * 110ms);
}
.pop-left.in-view, .pop-right.in-view { opacity: 1; transform: translateX(0) rotate(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-left, .js .reveal-right, .js .reveal-scale,
  .js .pop-left, .js .pop-right { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Button shine sweep ---------- */
.btn-primary, .btn-whatsapp {
  position: relative;
  overflow: hidden;
}
.btn-primary::before, .btn-whatsapp::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::before, .btn-whatsapp:hover::before { left: 130%; }

/* Pulsing ring for the WhatsApp CTA */
.btn-whatsapp {
  animation: whatsapp-pulse 2.8s ease-in-out infinite;
}
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 10px 24px hsl(var(--whatsapp) / 0.28), 0 0 0 0 hsl(var(--whatsapp) / 0.35); }
  50% { box-shadow: 0 10px 24px hsl(var(--whatsapp) / 0.28), 0 0 0 10px hsl(var(--whatsapp) / 0); }
}

/* Breathing pulse for the main hero CTA */
.btn-primary {
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 10px 24px hsl(var(--brand-red) / 0.3), 0 0 0 0 hsl(var(--brand-red) / 0.4); }
  50% { box-shadow: 0 10px 24px hsl(var(--brand-red) / 0.3), 0 0 0 9px hsl(var(--brand-red) / 0); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-whatsapp, .btn-primary { animation: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  box-shadow: 0 1px 0 hsl(var(--border) / 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, hsl(var(--brand)), hsl(var(--accent-teal)), hsl(var(--accent-rose)), hsl(var(--accent-amber)));
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: hsl(var(--border));
  box-shadow: 0 4px 24px hsl(215 30% 14% / 0.08);
}
.site-header.scrolled::after { opacity: 0.85; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--ink));
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px hsl(var(--brand) / 0.25);
}

.brand-name {
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
}

.nav-links { display: flex; align-items: center; gap: 26px; }

.nav a:not(.nav-cta) { color: hsl(var(--muted)); position: relative; letter-spacing: 0.01em; transition: color 0.2s ease; }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, hsl(var(--brand)), hsl(var(--accent-rose)));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:not(.nav-cta):hover { color: hsl(var(--brand)); }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: hsl(var(--brand));
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 16px hsl(var(--brand) / 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { background: hsl(var(--brand-dark)); transform: translateY(-1px); box-shadow: 0 10px 22px hsl(var(--brand) / 0.35); }
.nav-cta-short { display: none; }

/* Mobile menu toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: hsl(var(--ink));
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, hsl(var(--brand)) 0%, hsl(212 85% 24%) 100%);
  color: #fff;
  padding: 110px 0 76px;
}

.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s ease;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  animation: hero-zoom 6s ease-out forwards;
  will-change: transform;
}

@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1.15); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, hsl(212 85% 12% / 0.5) 0%, hsl(212 82% 18% / 0.32) 32%, hsl(212 80% 24% / 0.1) 55%, transparent 74%),
    linear-gradient(to top, hsl(212 85% 10% / 0.32) 0%, transparent 30%);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,0.08), transparent 32%),
    radial-gradient(circle at 88% 15%, rgba(255,255,255,0.06), transparent 30%),
    radial-gradient(circle at 75% 85%, hsl(var(--brand-red) / 0.16), transparent 40%);
  animation: drift 16s ease-in-out infinite alternate;
  mix-blend-mode: soft-light;
}

@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; transform: scale(1); transition: opacity 0.4s ease; }
  .hero-blobs { animation: none; }
}

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 44px;
  display: block;
}

/* Hospital artifact: heartbeat line with a travelling glow, matching the Care Team section */
.hero-ekg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 88px;
  width: 100%;
  height: 40px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-ekg-path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-pulse-node {
  fill: hsl(var(--brand-red));
  filter: drop-shadow(0 0 6px hsl(var(--brand-red) / 0.9));
}

/* Hospital artifact: floating pulse badge over the hero photo */
.hero-badge {
  position: absolute;
  right: 6%;
  bottom: 128px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 32px hsl(215 30% 6% / 0.25);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 220px;
}
.hero-badge-pulse {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--brand-red) / 0.9);
  color: #fff;
  animation: badge-pulse 2s ease-in-out infinite;
}
.hero-badge-pulse .icon { width: 18px; height: 18px; vertical-align: 0; }
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsl(var(--brand-red) / 0.5); }
  50% { box-shadow: 0 0 0 8px hsl(var(--brand-red) / 0); }
}

@media (min-width: 860px) {
  .hero-badge { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ekg-path { animation: none; stroke-dashoffset: 0; }
  .hero-badge-pulse { animation: none; }
}

/* Subtle hospital-cross watermark texture for alt sections */
.section-alt {
  background-image:
    radial-gradient(hsl(var(--brand) / 0.05) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: 0 0;
}

.hero-inner { position: relative; max-width: 720px; text-align: left; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(var(--brand));
  margin-bottom: 10px;
}
.hero .eyebrow { color: rgba(255,255,255,0.85); }

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  color: #fff;
  max-width: 14ch;
}

.hero-sub {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: hsl(var(--brand-red));
  color: #fff;
  box-shadow: 0 10px 24px hsl(var(--brand-red) / 0.3);
}
.btn-primary:hover { background: hsl(0 74% 44%); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

/* secondary btn on light background (Ready card) */
.card .btn-secondary {
  background: #fff;
  color: hsl(var(--ink));
  border-color: hsl(var(--border));
}
.card .btn-secondary:hover { background: hsl(var(--bg-alt)); }

.btn-whatsapp {
  background: hsl(var(--whatsapp));
  color: #fff;
  justify-content: center;
  box-shadow: 0 10px 24px hsl(var(--whatsapp) / 0.28);
}
.btn-whatsapp:hover { background: hsl(142 70% 39%); }
.btn-whatsapp[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-block { width: 100%; justify-content: center; }

.hero-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}
.hero-meta a { color: #fff; }
.hero-meta .icon { opacity: 0.85; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid hsl(var(--border));
  padding: 22px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.trust-item {
  --accent: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  color: hsl(var(--ink));
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid hsl(var(--accent) / 0.32);
  background: hsl(var(--accent) / 0.07);
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px hsl(var(--accent) / 0.2);
  background: hsl(var(--accent) / 0.12);
  border-color: hsl(var(--accent) / 0.5);
}
.trust-grid > :nth-child(2) { --accent: var(--whatsapp); }
.trust-grid > :nth-child(3) { --accent: var(--accent-amber); }
.trust-grid > :nth-child(4) { --accent: var(--accent-violet); }
.trust-item .icon { color: hsl(var(--accent)); transition: transform 0.3s cubic-bezier(.3,1.6,.5,1); }
.trust-item:hover .icon { transform: scale(1.2) rotate(-6deg); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; scroll-margin-top: 84px; }
.section-alt { background: hsl(var(--bg-alt)); }

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { max-width: 620px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 8px; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-sub { color: hsl(var(--muted)); margin: 0; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Bento layout — varied-width tiles instead of uniform boxes */
.bento { grid-template-columns: repeat(3, 1fr); align-items: start; }
.bento-2 { grid-column: span 2; }
.bento-3 { grid-column: span 3; }

.bento .feature-card { display: flex; flex-direction: column; }
.bento .feature-media { aspect-ratio: 4 / 2.5; }
.bento .bento-2 .feature-media { aspect-ratio: 21 / 8; }

@media (max-width: 720px) {
  /* Two compact squares side by side, with the wider tiles kept as full-width banners
     above/below them — a deliberate bento-style arrangement, not a plain uniform grid. */
  .bento { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bento-3 { grid-column: span 2; }
}



/* Feature / team cards — modern image-led design */
.feature-card, .team-card {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px hsl(215 30% 14% / 0.12);
  border-color: hsl(var(--brand) / 0.3);
}

.feature-media, .team-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: hsl(var(--bg-alt));
}
.team-media { aspect-ratio: 3 / 4; }

.feature-media img, .team-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.feature-card:hover .feature-media img {
  transform: scale(1.08);
}

/* ---------- Doctor/team cards: compact photo + sideline text, colour-coded per role ---------- */
.team-card {
  --accent: var(--brand);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, hsl(var(--accent) / 0.08), #fff 55%);
  border: 1px solid hsl(var(--accent) / 0.22);
  border-left: 4px solid hsl(var(--accent));
  border-radius: 14px;
  padding: 10px 14px 10px 12px;
  box-shadow: 0 4px 14px hsl(var(--accent) / 0.12);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.team-card:hover, .team-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px hsl(var(--accent) / 0.24);
  border-color: hsl(var(--accent) / 0.55);
}
.team-grid > :nth-child(6n+2), .service-grid > :nth-child(6n+2) { --accent: var(--accent-teal); }
.team-grid > :nth-child(6n+3), .service-grid > :nth-child(6n+3) { --accent: var(--accent-rose); }
.team-grid > :nth-child(6n+4), .service-grid > :nth-child(6n+4) { --accent: var(--accent-amber); }
.team-grid > :nth-child(6n+5), .service-grid > :nth-child(6n+5) { --accent: var(--accent-violet); }
.team-grid > :nth-child(6n+6), .service-grid > :nth-child(6n+6) { --accent: var(--whatsapp); }

.team-photo {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid hsl(var(--accent) / 0.6);
  box-shadow: 0 0 0 4px hsl(var(--accent) / 0.14);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.team-card:hover .team-photo img { transform: scale(1.1); }
.team-photo .team-icon {
  position: absolute;
  top: auto;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: hsl(var(--accent));
  box-shadow: 0 3px 8px hsl(var(--accent) / 0.45);
}
.team-photo .team-icon .icon { width: 12px; height: 12px; }

.team-info { min-width: 0; }
.team-info h3 { margin: 0 0 2px; font-size: 0.86rem; }
.team-info p {
  color: hsl(var(--muted));
  font-size: 0.74rem;
  line-height: 1.4;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: hsl(var(--accent));
  font-weight: 600;
  font-size: 0.74rem;
}
.team-link .arrow { display: inline-block; transition: transform 0.2s ease; }
.team-link:hover .arrow { transform: translateX(3px); }

/* Hospital artifacts flanking the care-team grid: a clean animated heart-monitor pulse line on each side */
.team-section { position: relative; }
.team-decor {
  position: absolute;
  top: 60px;
  bottom: 60px;
  width: 64px;
  display: none;
  pointer-events: none;
}
.team-decor-left { left: 6px; }
.team-decor-right { right: 6px; }
@media (min-width: 1260px) {
  .team-decor { display: block; }
}
.team-ekg-svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }
.team-ekg-trace {
  fill: none;
  stroke: hsl(var(--brand));
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.team-decor-right .team-ekg-trace { stroke: hsl(var(--accent-rose)); }

.team-pulse-node {
  fill: hsl(var(--brand-red));
  filter: drop-shadow(0 0 6px hsl(var(--brand-red) / 0.85));
}
.team-decor-right .team-pulse-node {
  fill: hsl(var(--brand));
  filter: drop-shadow(0 0 6px hsl(var(--brand) / 0.85));
}

@media (prefers-reduced-motion: reduce) {
  .team-pulse-node animateMotion, .hero-pulse-node animateMotion { display: none; }
  .team-pulse-node, .hero-pulse-node { opacity: 0; }
}

.feature-media::after, .service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(215 30% 8% / 0.45), transparent 55%);
}

/* Icon badges gently come alive on hover — calm, not constant motion */
.team-icon .icon {
  transition: transform 0.4s cubic-bezier(.3,1.4,.5,1);
}
.team-card:hover .team-icon .icon {
  transform: scale(1.15) rotate(-8deg);
}
.team-icon .icon { width: 18px; height: 18px; vertical-align: 0; }

/* Hospital-theme accent cycling: each card in a grid takes a rotating colour,
   used for the card border and the rule above its heading. */
.feature-card, .tip-card { --accent: var(--brand); }
.bento > :nth-child(6n+2), .tips-grid > :nth-child(6n+2) { --accent: var(--accent-teal); }
.bento > :nth-child(6n+3), .tips-grid > :nth-child(6n+3) { --accent: var(--accent-rose); }
.bento > :nth-child(6n+4), .tips-grid > :nth-child(6n+4) { --accent: var(--accent-amber); }
.bento > :nth-child(6n+5), .tips-grid > :nth-child(6n+5) { --accent: var(--accent-violet); }
.bento > :nth-child(6n+6), .tips-grid > :nth-child(6n+6) { --accent: var(--whatsapp); }

.feature-card, .tip-card {
  border-color: hsl(var(--accent) / 0.28);
}
.feature-card:hover, .tip-card:hover {
  border-color: hsl(var(--accent) / 0.6);
  box-shadow: 0 20px 40px hsl(var(--accent) / 0.18);
}

.feature-card h3, .tip-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: hsl(var(--ink));
  margin: 0 0 6px;
  padding-top: 12px;
  border-top: 3px solid hsl(var(--accent));
  transition: color 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover h3, .tip-card:hover h3 { color: hsl(var(--accent)); }
.feature-card p, .tip-card p {
  color: hsl(var(--muted));
  font-size: 0.87rem;
  line-height: 1.55;
  margin: 0;
}
.feature-card h3, .feature-card p { padding: 0 16px; }
.feature-card h3 { margin-top: 22px; }
.feature-card p { padding-bottom: 16px; }

.team-icon {
  position: absolute;
  top: -17px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--brand));
  color: #fff;
  box-shadow: 0 8px 18px hsl(215 30% 14% / 0.2);
}

/* HIV awareness ribbon is always red, regardless of the card's accent colour */
.team-icon--hiv.team-icon {
  background: hsl(var(--brand-red)) !important;
  box-shadow: 0 3px 8px hsl(var(--brand-red) / 0.45);
}

/* Tip cards — image-top, consistent with feature/service/team cards */
.tip-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.tip-card:hover {
  transform: translateY(-6px);
}

.tip-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 6.5;
  background: hsl(var(--bg-alt));
}
.tip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.tip-card:hover .tip-media img { transform: scale(1.08); }
.tip-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(215 30% 8% / 0.4), transparent 55%);
}

.tip-body { padding: 16px 18px 18px; flex: 1; }

/* Visit us & Book an appointment: side by side on desktop, stacked on phones */
#book.section { padding: 36px 0; }

.visit-book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.visit-book-layout > * { min-width: 0; }
.visit-panel, .booking-panel { display: flex; flex-direction: column; }
.visit-panel .contact-card { flex: 1; display: flex; flex-direction: column; }
.booking-panel .booking-form { flex: 1; }
.visit-panel .section-head, .booking-panel .section-head { margin-bottom: 18px; }
.visit-panel .section-head h2, .booking-panel .section-head h2 { font-size: 1.35rem; }
.visit-panel .section-head .section-sub, .booking-panel .section-head .section-sub { font-size: 0.88rem; }

/* A short medical quote anchors the bottom of the contact card, echoing the
   booking card beside it so the two boxes read as a matched pair. */
.care-quote {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px dashed hsl(var(--border));
  color: hsl(var(--muted));
}
.care-quote-mark { width: 22px; height: 22px; color: hsl(var(--accent-violet) / 0.55); }
.care-quote p {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: hsl(var(--ink));
  margin: 6px 0 6px;
}
.care-quote cite {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--accent-violet));
}

.contact-list { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.contact-item {
  --accent: var(--brand);
  display: flex;
  gap: 14px;
  padding: 10px;
  border-radius: 12px;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), background 0.25s ease;
}
.contact-item > div { min-width: 0; overflow-wrap: break-word; }
.contact-item:hover { transform: translateX(6px); background: hsl(var(--accent) / 0.07); }
.contact-item:nth-child(2) { --accent: var(--whatsapp); }
.contact-item:nth-child(3) { --accent: var(--accent-violet); }
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: hsl(var(--accent) / 0.14);
  color: hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(.3,1.4,.5,1), background 0.25s ease;
}
.contact-item:hover .contact-icon { transform: scale(1.12) rotate(-6deg); background: hsl(var(--accent) / 0.24); }
.contact-icon .icon { width: 20px; height: 20px; vertical-align: 0; }
.contact-item strong { font-size: 1rem; }
.contact-item p { color: hsl(var(--muted)); font-size: 0.9rem; margin: 2px 0 0; }

.card {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 32px;
}

.contact-card {
  padding: 24px;
  border: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(200deg, hsl(var(--accent-violet)) 0%, hsl(var(--brand)) 38%, hsl(var(--accent-teal)) 70%, hsl(var(--whatsapp)) 100%) border-box;
}
.contact-card .contact-list { gap: 4px; }
.contact-card .contact-item { padding: 8px; gap: 12px; }
.contact-card .contact-icon { width: 34px; height: 34px; }
.contact-card .contact-icon .icon { width: 17px; height: 17px; }
.contact-card .contact-item strong { font-size: 0.92rem; }
.contact-card .contact-item p { font-size: 0.82rem; }

.ready-card {
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(155deg, hsl(var(--brand)) 0%, hsl(212 85% 20%) 100%);
}
.ready-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.14), transparent 40%),
    radial-gradient(circle at 88% 82%, hsl(var(--brand-red) / 0.3), transparent 45%);
}
.ready-card > * { position: relative; }
.ready-card h3 { color: #fff; }
.ready-card p { color: rgba(255, 255, 255, 0.82); margin-bottom: 22px; }
.ready-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: icon-float 3.2s ease-in-out infinite;
}
.ready-icon .icon { width: 24px; height: 24px; vertical-align: 0; }
@keyframes icon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ready-icon { animation: none; }
}

/* Booking form */
.booking-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, hsl(var(--brand)) 0%, hsl(var(--accent-teal)) 34%, hsl(var(--accent-rose)) 67%, hsl(var(--accent-amber)) 100%) border-box;
}

.field {
  --accent: var(--brand);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.field-row:nth-of-type(1) .field:nth-of-type(2) { --accent: var(--accent-teal); }
.field-row:nth-of-type(2) .field:nth-of-type(1) { --accent: var(--accent-rose); }
.field-row:nth-of-type(2) .field:nth-of-type(2) { --accent: var(--accent-amber); }
.booking-form > .field { --accent: var(--accent-violet); }

.field > span { transition: color 0.2s ease; }
.field:focus-within { transform: translateY(-2px); }
.field:focus-within > span { color: hsl(var(--accent)); }

.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  padding: 9px 12px;
  border: 1.5px solid hsl(var(--accent) / 0.4);
  border-radius: 8px;
  color: hsl(var(--ink));
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.18);
}

.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; box-sizing: border-box; }

.form-note {
  font-size: 0.88rem;
  border-radius: 9px;
  min-height: 0;
}
.form-note.error { padding: 12px 14px; background: hsl(0 74% 96%); color: hsl(0 74% 40%); }

/* Footer */
.site-footer { background: hsl(215 32% 11%); color: hsl(215 15% 72%); padding: 60px 0 0; }
.footer-grid {
  display: grid;
  /* minmax(0, …) rather than a bare fr: a bare fr floors each track at its
     min-content width, and the un-breakable email address makes that floor wider
     than half a phone screen — which pushed the Contact column off the edge, where
     html{overflow-x:hidden} silently clipped it. */
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand .brand-name, .footer-brand-name { color: #fff; }
.footer-brand p { font-size: 0.9rem; margin: 14px 0 18px; }

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: hsl(var(--brand)); transform: translateY(-2px); }
.social-row .icon { width: 17px; height: 17px; vertical-align: 0; }

.site-footer h4 { color: #fff; font-family: "Lora", serif; font-size: 1rem; margin-bottom: 16px; }
.site-footer > .footer-grid > div > a {
  display: block;
  color: hsl(215 15% 72%);
  font-size: 0.9rem;
  margin-bottom: 11px;
}
.site-footer > .footer-grid > div > a:hover { color: #fff; }

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  margin-bottom: 12px;
  color: hsl(215 15% 72%);
  /* "anywhere" (not "break-word") so the email address also shrinks the track's
     min-content size — otherwise the grid column refuses to narrow and the text
     is clipped rather than wrapped. */
  overflow-wrap: anywhere;
}
.site-footer > .footer-grid > div > a { overflow-wrap: anywhere; }
.footer-contact-line .icon { width: 16px; height: 16px; margin-top: 2px; color: hsl(var(--brand-red)); }
.footer-contact-line a { color: hsl(215 15% 72%); }
.footer-contact-line a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  /* padding-block only — this element is also a .container, and a `padding: 20px 0`
     shorthand would override the container's side padding and jam the copyright
     against the screen edge. */
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: hsl(215 15% 55%);
}
.footer-bottom p { margin: 0; }

/* ---------- Card detail dialog ---------- */
/* The source copy stays in the page (hidden) so it remains crawlable; JS clones it in. */
.card-details, .card-details[hidden] { display: none; }

.is-expandable { cursor: pointer; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
body.modal-open { overflow: hidden; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: hsl(215 35% 12% / 0.62);
  backdrop-filter: blur(3px);
  animation: modal-fade 0.2s ease;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(86vh, 760px);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px hsl(215 35% 12% / 0.34);
  animation: modal-rise 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-dialog { animation: none; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: hsl(0 0% 100% / 0.92);
  color: hsl(var(--ink));
  cursor: pointer;
  box-shadow: 0 4px 14px hsl(215 35% 12% / 0.28);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: hsl(var(--brand)); color: #fff; transform: rotate(90deg); }
.modal-close:focus-visible { outline: 3px solid hsl(var(--brand)); outline-offset: 2px; }
.modal-close .icon { width: 18px; height: 18px; vertical-align: 0; }

.modal-media[hidden] { display: none; }
.modal-media {
  flex-shrink: 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: hsl(var(--brand-light));
}
.modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-scroll { overflow-y: auto; overscroll-behavior: contain; }
.modal-content { padding: 22px 26px 26px; }

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: hsl(var(--brand-dark));
}

.modal-body { color: hsl(var(--muted)); }
.modal-body p { font-size: 0.95rem; line-height: 1.65; }
.modal-body p:last-of-type { margin-bottom: 0; }
.modal-body strong { color: hsl(var(--ink)); font-weight: 600; }
.modal-body ul {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.modal-body li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  line-height: 1.55;
}
/* Check mark drawn in CSS so the list needs no extra markup per item */
.modal-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 11px;
  height: 6px;
  border-left: 2px solid hsl(var(--brand));
  border-bottom: 2px solid hsl(var(--brand));
  transform: rotate(-45deg);
}

.modal-cta { margin-top: 18px; }

@media (max-width: 720px) {
  .modal { padding: 0; place-items: end center; }
  .modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
  .modal-media { aspect-ratio: 16 / 9; }
  .modal-content { padding: 18px 18px 22px; }
  .modal-title { font-size: 1.2rem; }
  .modal-body p, .modal-body li { font-size: 0.88rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .nav { gap: 10px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid hsl(var(--border));
    box-shadow: 0 16px 30px hsl(215 30% 14% / 0.14);
    padding: 8px 18px 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }
  .nav-links.is-open { max-height: 320px; opacity: 1; }
  .nav-links a { padding: 12px 4px; }
  .nav-links a::after { display: none; }
  /* Wrap the name over two lines rather than ellipsing it to "La-tullah Medic…" —
     the header is tall enough for two lines, and the clinic's full name is the one
     thing on the page that should never be cut off. */
  .brand-name {
    font-size: 0.82rem;
    max-width: 132px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.18;
  }
  .nav-cta { padding: 9px 14px; font-size: 0.88rem; white-space: nowrap; }
  .nav-cta-short { display: none; }

  /* Trust bar: smaller, tighter pills so 2-line labels don't balloon into odd blobs */
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .trust-item {
    min-width: 0;
    gap: 7px;
    padding: 8px 12px;
    font-size: 0.76rem;
    border-radius: 14px;
    line-height: 1.25;
  }
  .trust-item span { min-width: 0; }
  .trust-item .icon { width: 15px; height: 15px; flex-shrink: 0; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  /* Visit us / Book an appointment: stack into one column on phones — "Visit or Reach Us"
     on top, the booking form below. Full width means the cramped type used for the
     side-by-side desktop pair is no longer needed, so sizes go back to comfortable. */
  .visit-book-layout { grid-template-columns: 1fr; gap: 28px; }
  .contact-card, .booking-form { padding: 18px; }
  .visit-panel .section-head h2, .booking-panel .section-head h2 { font-size: 1.25rem; }
  .visit-panel .section-head .section-sub, .booking-panel .section-head .section-sub { font-size: 0.85rem; }
  .contact-card .contact-list { gap: 6px; margin-top: 18px; }
  .contact-card .contact-item { padding: 9px 8px; gap: 12px; }
  .contact-card .contact-item strong { font-size: 0.9rem; }
  .contact-card .contact-item p { font-size: 0.8rem; }
  .visit-panel .section-head, .booking-panel .section-head { margin-bottom: 14px; }
  .care-quote p { font-size: 0.88rem; }
  .field input, .field select, .field textarea {
    /* 16px keeps iOS Safari from zooming the page when a field takes focus */
    font-size: 16px;
    padding: 10px 12px;
  }

  /* Footer: brand and Contact take the full width; the two short link lists sit
     side by side between them. Keeps the footer compact without ever squeezing an
     address or phone number into a column too narrow to show it. */
  .site-footer { padding-top: 36px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; padding-bottom: 26px; }
  .footer-brand, .footer-contact-col { grid-column: 1 / -1; }
  .footer-brand p { font-size: 0.86rem; margin: 10px 0 14px; max-width: 46ch; }
  .social-row { gap: 8px; }
  .social-row a { width: 32px; height: 32px; }
  .site-footer h4 { font-size: 0.92rem; margin-bottom: 10px; }
  .site-footer > .footer-grid > div > a { font-size: 0.84rem; margin-bottom: 8px; }
  .footer-contact-line { font-size: 0.84rem; margin-bottom: 10px; }
  .footer-bottom { padding-block: 14px; font-size: 0.76rem; gap: 4px; }

  /* Hero on mobile: copy starts right under the header, with room reserved at the
     bottom so the heartbeat line and the meta row don't crowd each other. */
  .hero { padding: 20px 0 168px; }
  .hero-ekg { bottom: 64px; height: 30px; }

  /* On desktop the copy occupies the left half, so the scrim only darkens that side.
     On a phone it spans the full width and the background photo rotates every 6s, so
     no one region can be relied on to be dark — darken the whole hero instead. */
  .hero-scrim {
    background:
      linear-gradient(to bottom, hsl(212 85% 10% / 0.58) 0%, hsl(212 85% 12% / 0.44) 42%, hsl(212 85% 10% / 0.66) 100%);
  }

  /* Let the headline scale with the viewport instead of holding a 2.1rem floor that
     overflows narrow phones, and drop the ch-based caps that keep it artificially narrow. */
  .hero h1 { font-size: clamp(1.65rem, 8.4vw, 2.4rem); max-width: none; }
  .hero-sub { font-size: 0.98rem; max-width: none; margin-bottom: 22px; }
  .hero .eyebrow { font-size: 0.68rem; letter-spacing: 0.1em; }

  /* Full-width stacked buttons: equal size, comfortable tap targets */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 22px; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 14px 18px; }

  /* One contact per line — easier to read and to tap than a wrapped row */
  .hero-meta { flex-direction: column; gap: 9px; font-size: 0.86rem; }

  /* Tighter section rhythm on mobile — desktop spacing feels bloated on small screens */
  .section { padding: 48px 0; scroll-margin-top: 64px; }
  #book.section { padding: 24px 0; }
  .section-head { margin-bottom: 28px; }
  .grid { gap: 12px; }
  .slider-section { padding-bottom: 56px; }

  /* "What You Can Expect": two small square cards side by side, wide tiles as full banners */
  .bento .feature-media { aspect-ratio: 1 / 1; }
  .bento .bento-2 .feature-media { aspect-ratio: 20 / 9; }
  .feature-card h3 { margin-top: 12px; font-size: 0.86rem; }
  .feature-card p { font-size: 0.76rem; padding-bottom: 12px; line-height: 1.4; }
  .feature-card h3, .feature-card p { padding-left: 12px; padding-right: 12px; }

  /* Health Tips: two small square cards side by side, with a gentle stagger for a
     bento-style feel rather than a plain uniform 2x2 (same idea as the section above) */
  .tips-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tips-grid > :nth-child(2n) { margin-top: 22px; }
  .tip-media { aspect-ratio: 1 / 1; }
  .tip-body { padding: 10px 10px 10px; }
  .tip-card h3 { font-size: 0.8rem; margin-top: 0; }
  .tip-card p { font-size: 0.7rem; line-height: 1.35; }
}

@media (max-width: 480px) {
  .nav-cta-full { display: none; }
  .nav-cta-short { display: inline; }
}

@media (max-width: 400px) {
  .nav-cta .arrow { display: none; }
}

/* ---------- Facility gallery slider ---------- */
.slider-section { padding-bottom: 96px; }

.slider { position: relative; }

.slider-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 24px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 8px 22px hsl(215 30% 14% / 0.08);
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.slide:hover img { transform: scale(1.08); }
.slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, hsl(215 30% 8% / 0.8), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.slider-arrow {
  position: absolute;
  top: 92px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: hsl(var(--ink));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 10px 22px hsl(215 30% 14% / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.slider-arrow:hover { background: hsl(var(--brand)); color: #fff; transform: scale(1.06); }
.slider-arrow .icon { width: 19px; height: 19px; vertical-align: 0; }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--border));
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.slider-dot.active { background: hsl(var(--brand)); width: 22px; border-radius: 4px; }

@media (max-width: 720px) {
  .slider-arrow { display: none; }
  .slide { width: 240px; height: 170px; }
}
