/* =========================================================
   Dr K Y Goh Haematology & Internal Medicine Clinic
   Modern, elegant, responsive design system
   ========================================================= */

:root {
  --primary: #0a4d68;
  --primary-dark: #063447;
  --primary-light: #1a7a9c;
  --accent: #c45c4a;
  --accent-soft: #f8e8e5;
  --teal: #14919b;
  --teal-soft: #e6f5f6;
  --gold: #c9a227;
  --bg: #f6f8fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --text: #1c2430;
  --text-muted: #5a6573;
  --text-light: #8a95a5;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(10, 77, 104, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 77, 104, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 77, 104, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --nav-h: 72px;
  --max-w: 1180px;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Prefer sharp scaling when browsers upscale smaller assets */
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* ========== Skip link (a11y) ========== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* ========== Top bar ========== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  padding: 0.45rem 0;
}
.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
}
.top-bar a { color: rgba(255,255,255,0.9); }
.top-bar a:hover { color: #fff; }
.top-bar-left, .top-bar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.15rem;
}
.lang-btn {
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  transition: all var(--transition);
}
.lang-btn:hover, .lang-btn.active {
  background: #fff;
  color: var(--primary-dark);
}

/* ========== Header / Nav ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 0.75rem 1rem;
  flex-wrap: nowrap;
}

/* Mobile menu dimmer (created in main.js) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 52, 71, 0.45);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* ========== Header search ========== */
.site-search {
  position: relative;
  flex: 1 1 180px;
  max-width: 280px;
  min-width: 140px;
  order: 0;
}
.site-search-inner {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.55rem 0.35rem 0.85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-search-inner:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 145, 155, 0.15);
  background: #fff;
}
.site-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  color: var(--text);
  outline: none;
  padding: 0.25rem 0;
}
.site-search input::placeholder { color: var(--text-light); }
.site-search-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.site-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: min(340px, 92vw);
  max-height: min(360px, 60vh);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  padding: 0.4rem;
  display: none;
}
.site-search-results.open { display: block; }
.site-search-results[hidden] { display: none !important; }
.search-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--text);
  transition: background var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  font: inherit;
  text-decoration: none;
}
.search-result:hover,
.search-result:focus,
.search-result.active {
  background: var(--teal-soft);
  outline: none;
  color: var(--primary-dark);
}
.search-result-title {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 0.15rem;
}
.search-result-snippet {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.search-result-cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.2rem;
}
.search-empty {
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.search-hint {
  padding: 0.55rem 0.85rem 0.35rem;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  min-width: 0;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(10, 77, 104, 0.25);
}
.brand-text { min-width: 0; }
.brand-text strong {
  display: block;
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.brand-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  display: flex;
  align-items: center;
}
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  padding: 0;
  margin: 0;
}
.nav-list > li { margin: 0; position: relative; }
.nav-list > li > a {
  display: block;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > a.active,
.nav-list > li.has-dropdown:hover > a.nav-parent,
.nav-list > li.has-dropdown.is-open > a.nav-parent {
  background: var(--teal-soft);
  color: var(--primary);
}

/* Header dropdown — stays open while hovering trigger OR menu panel */
.nav-list > li.has-dropdown {
  padding-bottom: 0;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.2s;
  z-index: 60;
}
/* Invisible bridge fills any gap between label and panel so hover never drops */
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-list > li.has-dropdown:hover > .dropdown,
.nav-list > li.has-dropdown:focus-within > .dropdown,
.nav-list > li.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.dropdown li {
  margin: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.22s ease;
}
.nav-list > li.has-dropdown:hover > .dropdown li,
.nav-list > li.has-dropdown:focus-within > .dropdown li,
.nav-list > li.has-dropdown.is-open > .dropdown li {
  opacity: 1;
  transform: translateX(0);
}
.nav-list > li.has-dropdown:hover > .dropdown li:nth-child(1),
.nav-list > li.has-dropdown:focus-within > .dropdown li:nth-child(1),
.nav-list > li.has-dropdown.is-open > .dropdown li:nth-child(1) { transition-delay: 0.03s; }
.nav-list > li.has-dropdown:hover > .dropdown li:nth-child(2),
.nav-list > li.has-dropdown:focus-within > .dropdown li:nth-child(2),
.nav-list > li.has-dropdown.is-open > .dropdown li:nth-child(2) { transition-delay: 0.06s; }
.nav-list > li.has-dropdown:hover > .dropdown li:nth-child(3),
.nav-list > li.has-dropdown:focus-within > .dropdown li:nth-child(3),
.nav-list > li.has-dropdown.is-open > .dropdown li:nth-child(3) { transition-delay: 0.09s; }
.nav-list > li.has-dropdown:hover > .dropdown li:nth-child(4),
.nav-list > li.has-dropdown:focus-within > .dropdown li:nth-child(4),
.nav-list > li.has-dropdown.is-open > .dropdown li:nth-child(4) { transition-delay: 0.12s; }
.nav-list > li.has-dropdown:hover > .dropdown li:nth-child(5),
.nav-list > li.has-dropdown:focus-within > .dropdown li:nth-child(5),
.nav-list > li.has-dropdown.is-open > .dropdown li:nth-child(5) { transition-delay: 0.15s; }
.nav-list > li.has-dropdown:hover > .dropdown li:nth-child(6),
.nav-list > li.has-dropdown:focus-within > .dropdown li:nth-child(6),
.nav-list > li.has-dropdown.is-open > .dropdown li:nth-child(6) { transition-delay: 0.18s; }
.nav-list > li.has-dropdown:hover > .dropdown li:nth-child(7),
.nav-list > li.has-dropdown:focus-within > .dropdown li:nth-child(7),
.nav-list > li.has-dropdown.is-open > .dropdown li:nth-child(7) { transition-delay: 0.21s; }
.dropdown a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), transform var(--transition), padding-left var(--transition);
}
.dropdown a:hover,
.dropdown a:focus-visible,
.dropdown a.active {
  background: var(--teal-soft);
  color: var(--primary);
  outline: none;
  transform: translateX(3px);
  padding-left: 1rem;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(20, 145, 155, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(196, 92, 74, 0.1), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230a4d68' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin-bottom: 1.75rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 420px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-md);
}
.stat-card.visible-pulse,
.hero-stats .stat-card {
  animation: scaleIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-stats .stat-card:nth-child(1) { animation-delay: 0.15s; }
.hero-stats .stat-card:nth-child(2) { animation-delay: 0.25s; }
.hero-stats .stat-card:nth-child(3) { animation-delay: 0.35s; }
.stat-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary);
  line-height: 1.2;
}
.stat-card span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-visual {
  position: relative;
}
.hero-visual-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow var(--transition);
}
.hero-visual-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-visual:hover .hero-visual-card {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 48px rgba(10, 77, 104, 0.14);
}
.hero-visual:hover .hero-visual-card img {
  transform: scale(1.03);
}
.hero-float {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 230px;
  animation: softFloat 5s ease-in-out infinite;
  will-change: transform;
}
.hero-float strong {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.hero-float span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.btn:hover::after {
  transform: translateX(120%);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 77, 104, 0.28);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 77, 104, 0.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* ========== Sections ========== */
.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}
.section-alt { background: #fff; }
.section-tint {
  background: linear-gradient(180deg, var(--teal-soft) 0%, #fff 100%);
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
}
.section-header.reveal.visible .eyebrow {
  animation: chipPop 0.45s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.section-header h2 {
  position: relative;
}
.section-header.reveal.visible h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.65rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--primary-light));
  animation: lineGrow 0.55s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes lineGrow {
  from { width: 0; opacity: 0; }
  to { width: 3rem; opacity: 1; }
}

.page-hero {
  padding: clamp(2.35rem, 5vw, 3.25rem) 0 clamp(1.85rem, 4vw, 2.5rem);
  background:
    radial-gradient(ellipse 55% 90% at 92% 20%, rgba(255,255,255,0.12), transparent 55%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 52%, var(--teal) 100%);
  background-size: 100% 100%, 200% 200%;
  color: #fff;
  position: relative;
  overflow: hidden;
  animation:
    pageHeroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
    heroGradient 14s ease infinite;
}
.page-hero h1 {
  animation: fadeUp 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-hero p {
  animation: fadeUp 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-hero .breadcrumb {
  animation: fadeIn 0.5s 0.05s both;
}
@keyframes pageHeroIn {
  from { opacity: 0.6; }
  to { opacity: 1; }
}
@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%, 0% 50%; }
  50% { background-position: 0% 50%, 100% 50%; }
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.7;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -5%;
  top: -40%;
  width: 40%;
  height: 180%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.82rem;
  opacity: 0.9;
  margin-bottom: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.page-hero .breadcrumb a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 1px;
  transition: border-color var(--transition), opacity var(--transition);
}
.page-hero .breadcrumb a:hover {
  border-bottom-color: #fff;
  opacity: 1;
}
.page-hero .breadcrumb .bc-sep {
  opacity: 0.55;
  font-weight: 400;
  user-select: none;
}
.page-hero .breadcrumb .bc-current {
  opacity: 0.95;
  font-weight: 600;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.6vw, 2.55rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  line-height: 1.15;
  max-width: 20ch;
}
.page-hero p {
  max-width: 42rem;
  opacity: 0.93;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.6;
  font-weight: 400;
}

/* ========== Cards ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
}
a.card { text-decoration: none; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #c9d8e4;
}
.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #eef4f7;
  display: grid;
  place-items: center;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.card:hover .card-img img {
  opacity: 0.95;
  transform: scale(1.04);
}
.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--primary-dark);
  margin-bottom: 0.55rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
  line-height: 1.55;
}
.card-body ul,
.card-body ol {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.card-body .card-link {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition), gap 0.3s ease;
}
.card-body .card-link::after {
  content: "→";
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-block;
}
a.card:hover .card-link {
  color: var(--accent);
  gap: 0.55rem;
}
a.card:hover .card-link::after {
  transform: translateX(5px);
}

.icon-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
}
.icon-card .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--primary);
}

/* ========== Content layout ========== */
.prose {
  max-width: 72ch;
}
.prose h2, .prose h3, .content-block h2, .content-block h3 {
  font-family: var(--font-serif);
  color: var(--primary-dark);
  letter-spacing: -0.015em;
  margin: 1.75rem 0 0.75rem;
  line-height: 1.25;
}
.prose h2, .content-block h2 { font-size: 1.55rem; }
.prose h3, .content-block h3 { font-size: 1.2rem; color: var(--accent); }
.prose h2:first-child,
.content-block h2:first-child,
.prose h3:first-child,
.content-block h3:first-child {
  margin-top: 0;
}
.prose p, .content-block p {
  margin-bottom: 0.9rem;
  color: var(--text);
}
.prose ul, .prose ol, .content-block ul, .content-block ol {
  margin-bottom: 1rem;
  color: var(--text);
}
.prose li, .content-block li {
  line-height: 1.55;
}

/* Balanced page body rhythm (matches myeloma polish) */
.page-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.stack-gap > * + * {
  margin-top: 1.25rem;
}
.stack-gap-lg > * + * {
  margin-top: 1.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.two-col > .media-rail,
.two-col > .reveal:last-child:not(.content-block) {
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.info-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.55rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.info-panel:hover {
  box-shadow: var(--shadow-md);
  border-color: #d5dee8;
}
.info-panel.accent {
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, var(--accent-soft) 0%, #fff 72%);
}
.info-panel.teal {
  border-left: 4px solid var(--teal);
  background: linear-gradient(135deg, var(--teal-soft) 0%, #fff 72%);
}
.info-panel h2 {
  font-family: var(--font-serif);
  color: var(--primary-dark);
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.info-panel h3 {
  margin-top: 0 !important;
  margin-bottom: 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.info-panel h4 {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.95rem;
  color: var(--accent);
}
.info-panel p:last-child,
.info-panel ul:last-child,
.info-panel ol:last-child {
  margin-bottom: 0;
}
.info-panel > p,
.info-panel > ul,
.info-panel > ol {
  color: var(--text);
  font-size: 0.95rem;
}

/* Media column (myeloma-style stacked figures) */
.media-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.media-rail .media-figure {
  margin-bottom: 0;
}

.media-figure {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.media-figure:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.media-figure img {
  width: 100%;
  max-height: min(420px, 70vh);
  object-fit: contain; /* show full clinical/educational image without crop blur */
  object-position: center;
  background: linear-gradient(180deg, #f4f7fa 0%, #eef2f6 100%);
  padding: 0.5rem;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.media-figure:hover img {
  transform: scale(1.02);
}
.media-figure figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  background: linear-gradient(180deg, #fafbfc 0%, #f4f7fa 100%);
  border-top: 1px solid var(--border);
  line-height: 1.45;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}
.gallery a, .gallery figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f4f7fa;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color var(--transition);
}
.gallery a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: #c9d8e4;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* product/clinical photos stay sharp and fully visible */
  object-position: center;
  padding: 0.4rem;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery a:hover img { opacity: 0.95; transform: scale(1.04); }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1rem 0 1.5rem;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #f8fafc; }
tr:hover td { background: var(--teal-soft); }

/* On-page topic navigation (replaces buggy accordion dropdowns) */
.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.page-toc-label {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.page-toc a {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--teal-soft);
  border-radius: 999px;
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
  animation: chipPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-toc a:nth-child(2) { animation-delay: 0.04s; }
.page-toc a:nth-child(3) { animation-delay: 0.08s; }
.page-toc a:nth-child(4) { animation-delay: 0.12s; }
.page-toc a:nth-child(5) { animation-delay: 0.16s; }
.page-toc a:nth-child(6) { animation-delay: 0.2s; }
.page-toc a:nth-child(7) { animation-delay: 0.24s; }
.page-toc a:nth-child(8) { animation-delay: 0.28s; }
.page-toc a:nth-child(9) { animation-delay: 0.32s; }
.page-toc a:nth-child(10) { animation-delay: 0.36s; }
.page-toc a:nth-child(11) { animation-delay: 0.4s; }
.page-toc a:nth-child(12) { animation-delay: 0.44s; }
.page-toc a:nth-child(13) { animation-delay: 0.48s; }
.page-toc a:hover,
.page-toc a:focus-visible {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(10, 77, 104, 0.15);
}

/* Always-visible educational topic cards */
.topic-stack {
  display: grid;
  gap: 1.15rem;
}
.topic-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 6.5rem;
  transition:
    box-shadow 0.35s ease,
    border-color var(--transition),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.topic-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #c9d8e4;
  transform: translateY(-3px);
}
.topic-card h2,
.topic-card h3 {
  font-family: var(--font-serif);
  color: var(--primary-dark);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.topic-card h2 { font-size: 1.35rem; }
.topic-card h3 { font-size: 1.12rem; }
.topic-card p {
  margin-bottom: 0.85rem;
  color: var(--text);
  font-size: 0.95rem;
}
.topic-card p:last-child,
.topic-card ul:last-child,
.topic-card ol:last-child,
.topic-card .gallery:last-child {
  margin-bottom: 0;
}
.topic-card ul,
.topic-card ol {
  margin-bottom: 0.85rem;
  color: var(--text);
  font-size: 0.95rem;
}
.topic-card li { line-height: 1.55; }
.topic-card .gallery { margin-top: 0.85rem; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
}
.topic-grid .topic-card {
  height: 100%;
}

/* Topic card variants & helpers (related conditions, leukaemia, supportive) */
.topic-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.topic-card-head h2,
.topic-card-head h3 {
  margin-bottom: 0;
}
.topic-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--teal-soft);
  border: 1px solid rgba(20, 145, 155, 0.18);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  line-height: 1;
}
.topic-tag-warm {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(196, 92, 74, 0.2);
}
.topic-tag-warn {
  color: #8a5a00;
  background: #fff6e0;
  border-color: rgba(201, 162, 39, 0.35);
}
.topic-card-accent {
  border-left: 4px solid var(--teal);
  background: linear-gradient(135deg, rgba(230, 245, 246, 0.55) 0%, #fff 55%);
}
.topic-card-warn {
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, #fffbf0 0%, #fff 60%);
}
.topic-subhead {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.85rem 0 0.5rem;
  letter-spacing: -0.01em;
}
.topic-group-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0.35rem 0 0.15rem;
}
.topic-group-icon {
  color: var(--teal);
  font-size: 0.85rem;
}
.resource-note {
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}
.check-list {
  list-style: none;
  padding-left: 0 !important;
}
.check-list li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.55rem;
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--teal-soft);
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 0 rgba(20, 145, 155, 0.25);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.topic-card:hover .check-list li::before {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(20, 145, 155, 0.12);
}
.pill-list {
  list-style: none;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.pill-list li {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary-dark);
  transition: background var(--transition), transform 0.25s ease, border-color var(--transition);
}
.pill-list li:hover {
  background: var(--teal-soft);
  border-color: rgba(20, 145, 155, 0.25);
  transform: translateY(-2px);
}
.media-figure-sm {
  max-width: 280px;
  margin-top: 0.85rem;
  margin-bottom: 0;
}
.media-figure-sm img {
  max-height: 180px;
  padding: 0.65rem;
}

/* Topic card with side media (e.g. detox callout) */
.topic-card-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}
.topic-card-split .topic-card-main {
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.topic-card-split .topic-card-aside {
  margin: 0;
  border: none;
  border-radius: 0;
  border-left: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow: none;
  background: linear-gradient(180deg, #fff8e8 0%, #fff 100%);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.topic-card-split .topic-card-aside:hover {
  transform: none;
  box-shadow: none;
}
.topic-card-split .topic-card-aside a {
  display: grid;
  place-items: center;
  flex: 1;
  padding: 1.25rem 1.25rem 0.5rem;
  min-height: 220px;
}
.topic-card-split .topic-card-aside img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.topic-card-split .topic-card-aside:hover img {
  transform: scale(1.04);
}
.topic-card-split .topic-card-aside figcaption {
  border-top: none;
  background: transparent;
  text-align: center;
  padding: 0.5rem 1rem 1.15rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Equal info pair (PET/CT style) */
.info-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.info-pair .topic-card {
  height: 100%;
}

/* Showcase grid — large educational / product visuals */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.showcase-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.showcase-grid-iron {
  margin-top: 1.5rem;
}
.showcase-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color var(--transition);
}
.showcase-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: #c9d8e4;
}
.showcase-card > a {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
  min-height: 200px;
  padding: 1rem;
  flex: 1;
}
.showcase-card img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase-card:hover img {
  transform: scale(1.04);
}
.showcase-card figcaption {
  padding: 0.95rem 1.1rem 1.1rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfc 0%, #f4f7fa 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.showcase-card figcaption strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}
.showcase-card figcaption span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Photo-forward showcase (nutrition foods) — larger, cover crop */
.showcase-card-photo > a {
  min-height: 240px;
  padding: 0;
  background: #0a4d68;
}
.showcase-card-photo img {
  max-height: none;
  height: 240px;
  object-fit: cover;
  padding: 0;
}
.showcase-card-photo:hover img {
  transform: scale(1.05);
}

/* Tall educational charts — full image visible, roomy frame */
.showcase-card-tall > a {
  min-height: 280px;
  padding: 1.1rem;
}
.showcase-card-tall img {
  max-height: 280px;
  object-fit: contain;
}

/* Feature band — large content + hero visual (iron section) */
.feature-band {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature-band-copy {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(20, 145, 155, 0.08), transparent 55%),
    #fff;
}
.feature-band-copy h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  margin: 0.55rem 0 0.75rem;
  line-height: 1.25;
}
.feature-band-copy > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.feature-band-visual {
  margin: 0;
  position: relative;
  min-height: 320px;
  background: linear-gradient(145deg, var(--primary-dark), var(--teal));
}
.feature-band-visual a {
  display: block;
  height: 100%;
  min-height: 320px;
}
.feature-band-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 440px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-band-visual:hover img {
  transform: scale(1.04);
}
.feature-band-visual figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem 1.25rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(6, 52, 71, 0.85));
  border: none;
  line-height: 1.4;
}

/* Iron nutrition guide — full-width content */
.iron-guide {
  margin-bottom: 0;
}
.iron-guide > p {
  max-width: 52rem;
}
.iron-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1rem 0 0.35rem;
}
.iron-type-card {
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform 0.25s ease, box-shadow 0.3s ease;
}
.iron-type-card:hover {
  border-color: rgba(20, 145, 155, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.iron-type-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.35rem;
}
.iron-type-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
}

/* Numbered tip cards */
.tip-cards {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.tip-cards-row {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.tip-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 100%;
  transition: border-color var(--transition), background var(--transition), transform 0.25s ease, box-shadow 0.3s ease;
}
.tip-card:hover {
  background: #fff;
  border-color: rgba(20, 145, 155, 0.28);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.tip-card-num {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--teal), var(--primary));
  flex-shrink: 0;
}
.tip-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}

/* Hub cards (supportive care guides) */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.9rem;
}
.hub-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color var(--transition),
    background 0.35s ease;
}
.hub-card:hover {
  transform: translateY(-4px) translateX(2px);
  box-shadow: var(--shadow-md);
  border-color: #c9d8e4;
  background: linear-gradient(135deg, #fff 0%, var(--teal-soft) 160%);
  color: inherit;
}
.hub-card-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--teal-soft);
  border: 1px solid rgba(20, 145, 155, 0.15);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.hub-card:hover .hub-card-icon {
  transform: scale(1.08) rotate(-3deg);
  background: #d4eef0;
}
.hub-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--primary-dark);
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.hub-card-body p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.hub-card-arrow {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-light);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.hub-card:hover .hub-card-arrow {
  transform: translateX(5px);
  color: var(--accent);
}

/* Leukaemia type matrix + type cards */
.type-matrix {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.type-matrix a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color var(--transition);
}
.type-matrix a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #c9d8e4;
  color: inherit;
}
.type-matrix-pace {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.type-matrix-chronic {
  color: var(--teal);
}
.type-matrix-line {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.type-matrix strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  margin-top: 0.15rem;
}

.type-cards {
  display: grid;
  gap: 1.25rem;
}
.type-card {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 6.5rem;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color var(--transition);
}
.type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #c9d8e4;
}
.type-card-img {
  background: linear-gradient(180deg, #eef4f7 0%, #e4ebf1 100%);
  min-height: 180px;
  overflow: hidden;
}
.type-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.type-card:hover .type-card-img img {
  transform: scale(1.05);
}
.type-card-body {
  padding: 1.35rem 1.5rem;
}
.type-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--primary-dark);
  margin: 0 0 0.7rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.type-card-body p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}
.type-card-body p:last-child {
  margin-bottom: 0;
}
.type-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.type-badge {
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--primary);
  border: 1px solid rgba(20, 145, 155, 0.15);
}
.type-badge-acute {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(196, 92, 74, 0.2);
}
.type-badge-chronic {
  background: #e8f4f8;
  color: var(--primary-light);
  border-color: rgba(26, 122, 156, 0.2);
}
.gallery-lg {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.gallery-lg a {
  aspect-ratio: 4/3;
}

/* Tabs */
.tabs { margin: 1.5rem 0; }
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  border-bottom: 2px solid var(--border);
}
.tab-list button {
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 8px 8px 0 0;
  transition: all var(--transition);
}
.tab-list button:hover { color: var(--primary); background: var(--teal-soft); }
.tab-list button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
}
.tab-panel { display: none; animation: fadeUp 0.4s ease; }
.tab-panel.active { display: block; }

/* Hours / contact widgets */
.hours-list {
  list-style: none;
  padding: 0;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.hours-list li span:last-child { font-weight: 600; color: var(--primary); }

.contact-card {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.contact-card h3 { color: #fff; margin-bottom: 1rem; font-family: var(--font-serif); }
.contact-card a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.contact-card p { margin-bottom: 0.65rem; opacity: 0.95; font-size: 0.95rem; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 280px;
}
.map-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* Doctor profile */
.doctor-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  align-items: start;
}
.doctor-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid var(--teal-soft);
}
.doctor-card h3 {
  font-family: var(--font-serif);
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}
.doctor-card .role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

/* Compare / avoid-alt diet */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.compare-box {
  border-radius: var(--radius);
  padding: 1.15rem;
  border: 1px solid var(--border);
}
.compare-box.avoid {
  background: #fdf2f2;
  border-color: #f0c4c4;
}
.compare-box.ok {
  background: #f0faf5;
  border-color: #b8e0cc;
}
.compare-box h4 {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}
.compare-box.avoid h4 { color: #b03a3a; }
.compare-box.ok h4 { color: #1d7a4c; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.75rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(var(--teal), var(--primary));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.35rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem + 2px);
  top: 1.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--teal);
}

/* ========== Keyframes ========== */
@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 145, 155, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(20, 145, 155, 0); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes chipPop {
  from { opacity: 0; transform: scale(0.85) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Reveal animations (scroll-triggered) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  transform: translateX(-28px);
}
.reveal-left.visible {
  transform: translateX(0);
}
.reveal-right {
  transform: translateX(28px);
}
.reveal-right.visible {
  transform: translateX(0);
}
.reveal-scale {
  transform: scale(0.94);
}
.reveal-scale.visible {
  transform: scale(1);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* Staggered children inside grids when parent becomes visible */
.stagger-in > .reveal,
.card-grid > .reveal,
.topic-grid > .reveal,
.hub-grid > .reveal,
.type-cards > .reveal,
.type-matrix > li > a,
.three-col > .reveal {
  transition-delay: 0s;
}
.card-grid > .reveal:nth-child(1),
.topic-grid > .reveal:nth-child(1),
.hub-grid > .reveal:nth-child(1),
.type-cards > .reveal:nth-child(1),
.three-col > .reveal:nth-child(1) { transition-delay: 0.05s; }
.card-grid > .reveal:nth-child(2),
.topic-grid > .reveal:nth-child(2),
.hub-grid > .reveal:nth-child(2),
.type-cards > .reveal:nth-child(2),
.three-col > .reveal:nth-child(2) { transition-delay: 0.12s; }
.card-grid > .reveal:nth-child(3),
.topic-grid > .reveal:nth-child(3),
.hub-grid > .reveal:nth-child(3),
.type-cards > .reveal:nth-child(3),
.three-col > .reveal:nth-child(3) { transition-delay: 0.19s; }
.card-grid > .reveal:nth-child(4),
.topic-grid > .reveal:nth-child(4),
.hub-grid > .reveal:nth-child(4),
.type-cards > .reveal:nth-child(4),
.three-col > .reveal:nth-child(4) { transition-delay: 0.26s; }
.card-grid > .reveal:nth-child(5),
.topic-grid > .reveal:nth-child(5),
.hub-grid > .reveal:nth-child(5),
.type-cards > .reveal:nth-child(5),
.three-col > .reveal:nth-child(5) { transition-delay: 0.33s; }
.card-grid > .reveal:nth-child(6),
.topic-grid > .reveal:nth-child(6),
.hub-grid > .reveal:nth-child(6),
.type-cards > .reveal:nth-child(6),
.three-col > .reveal:nth-child(6) { transition-delay: 0.4s; }
.card-grid > .reveal:nth-child(7),
.topic-grid > .reveal:nth-child(7),
.hub-grid > .reveal:nth-child(7),
.type-cards > .reveal:nth-child(7),
.three-col > .reveal:nth-child(7) { transition-delay: 0.47s; }
.card-grid > .reveal:nth-child(8),
.topic-grid > .reveal:nth-child(8),
.hub-grid > .reveal:nth-child(8),
.type-cards > .reveal:nth-child(8),
.three-col > .reveal:nth-child(8) { transition-delay: 0.54s; }

/* Type matrix staggered entrance */
.type-matrix.reveal.visible a {
  animation: scaleIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.type-matrix.reveal.visible li:nth-child(1) a { animation-delay: 0.05s; }
.type-matrix.reveal.visible li:nth-child(2) a { animation-delay: 0.12s; }
.type-matrix.reveal.visible li:nth-child(3) a { animation-delay: 0.19s; }
.type-matrix.reveal.visible li:nth-child(4) a { animation-delay: 0.26s; }

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: clamp(220px, 40vw, 380px);
  object-fit: cover;
  opacity: 0.9;
}
.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-weight: 600;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: var(--shadow-md);
}
.carousel-btn.prev { left: 0.75rem; }
.carousel-btn.next { right: 0.75rem; }
.carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
}
.carousel-dots button.active { background: #fff; width: 22px; border-radius: 4px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 40%, var(--teal), var(--primary));
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  color: #fff;
  padding: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -80px;
  right: -40px;
  animation: softFloat 7s ease-in-out infinite;
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}
.cta-band p {
  opacity: 0.92;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}
.cta-band .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: #0a2430;
  color: rgba(255,255,255,0.82);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.site-footer a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
.site-footer a:hover { color: #fff; }
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 28ch;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 90;
  font-size: 1.2rem;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: scaleIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both, pulseSoft 2.8s 0.5s ease-in-out infinite;
}
.back-top:hover {
  background: var(--teal);
  transform: translateY(-3px) scale(1.06);
  animation: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 36, 48, 0.92);
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 1.5rem;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: min(92vw, 1000px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

/* Medical disclaimer */
.disclaimer {
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e8 100%);
  border: 1px solid #f0d78c;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.05rem 1.3rem;
  font-size: 0.88rem;
  color: #6b5420;
  margin: 2.25rem 0 0;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
}
/* Avoid nested container squeeze */
.section .container > .disclaimer,
.section > .container .disclaimer {
  max-width: none;
}

/* Chip list */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.25rem;
}
.chips li {
  margin: 0;
  background: var(--teal-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 145, 155, 0.15);
  transition: background var(--transition), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow var(--transition);
  animation: chipPop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.chips li:nth-child(1) { animation-delay: 0.05s; }
.chips li:nth-child(2) { animation-delay: 0.1s; }
.chips li:nth-child(3) { animation-delay: 0.15s; }
.chips li:nth-child(4) { animation-delay: 0.2s; }
.chips li:nth-child(5) { animation-delay: 0.25s; }
.chips li:nth-child(6) { animation-delay: 0.3s; }
.chips li:nth-child(7) { animation-delay: 0.35s; }
.chips li:nth-child(8) { animation-delay: 0.4s; }
.chips li:hover {
  background: #d9f0f2;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 14px rgba(10, 77, 104, 0.1);
}

/* Section divider accent (subtle polish between content blocks) */
.section-alt .info-panel + .info-panel,
.stack-gap .info-panel {
  margin-bottom: 0;
}

/* Doctor list polish */
.doctor-card ul {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.doctor-card ul ul {
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
}

/* Tabs polish */
.tabs {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.tab-list {
  margin-bottom: 1.35rem !important;
}

/* Print */
@media print {
  .top-bar, .site-header, .back-top, .cta-band, .nav-toggle, .lang-switch, .nav-backdrop { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero { background: #eee !important; color: #000; }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .hero-float { position: static; margin-top: 1rem; max-width: none; animation: none; }
  .doctor-card { grid-template-columns: 110px 1fr; }
  .two-col > .media-rail,
  .two-col > .reveal:last-child:not(.content-block) {
    position: static;
  }
  .page-hero h1 { max-width: none; }
  .tabs { padding: 1rem; }
  .type-matrix { grid-template-columns: repeat(2, 1fr); }
  .type-card { grid-template-columns: 180px 1fr; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-band-visual,
  .feature-band-visual a,
  .feature-band-visual img {
    min-height: 260px;
    max-height: 320px;
  }
  .topic-card-split { grid-template-columns: 1fr; }
  .topic-card-split .topic-card-aside {
    border-left: none;
    border-top: 1px solid rgba(201, 162, 39, 0.25);
  }
  .topic-card-split .topic-card-aside a { min-height: 180px; }
  .info-pair { grid-template-columns: 1fr; }
  .showcase-grid,
  .showcase-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tip-cards-row { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 64px;
  }

  .container {
    width: min(100% - 1.5rem, var(--max-w));
  }

  /* Compact top bar on tablets/phones */
  .top-bar {
    font-size: 0.72rem;
    padding: 0.4rem 0;
  }
  .top-bar .container {
    gap: 0.4rem 0.75rem;
  }
  .top-bar-left,
  .top-bar-right {
    gap: 0.45rem 0.75rem;
  }
  .top-bar-left span {
    /* Prefer WhatsApp + language on very tight widths */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /*
   * Header: brand + hamburger on one clean row.
   * Search sits full-width underneath (still usable).
   * backdrop-filter is disabled so position:fixed on the drawer
   * is relative to the viewport, not trapped in the header.
   */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
  .site-header.nav-open {
    z-index: 1110;
  }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "search search";
    align-items: center;
    gap: 0.65rem 0.75rem;
    min-height: var(--nav-h);
    padding: 0.65rem 0 0.75rem;
    flex-wrap: nowrap;
  }
  .brand { grid-area: brand; min-width: 0; }
  .nav-toggle {
    grid-area: toggle;
    display: inline-flex;
    z-index: 1120;
    flex-shrink: 0;
  }
  .site-search {
    grid-area: search;
    flex: none;
    max-width: none;
    min-width: 0;
    width: 100%;
    order: unset;
  }
  .main-nav {
    grid-area: unset;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 0.78rem;
  }
  .brand-text strong {
    font-size: 0.88rem;
    line-height: 1.2;
  }
  .brand-text span {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Full-screen slide-in drawer (not clipped by header) */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(22rem, 88vw);
    max-width: 100%;
    background: #fff;
    padding: calc(5.25rem + env(safe-area-inset-top, 0px)) 0.85rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    overflow-x: hidden;
    border-top: none;
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(6, 52, 71, 0.14);
    z-index: 1115;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .main-nav.open {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding-bottom: 2rem;
  }
  .nav-list > li > a {
    padding: 0.95rem 1rem;
    font-size: 1.02rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px; /* comfortable touch target */
  }
  .nav-list > li.has-dropdown > a.nav-parent::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 0.5rem;
    flex-shrink: 0;
    opacity: 0.65;
    transition: transform 0.25s ease;
  }
  .nav-list > li.has-dropdown.is-open > a.nav-parent::after {
    transform: rotate(-135deg);
    margin-top: 0.25rem;
  }

  /* Accordion submenus — always reset desktop float styles */
  .dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    display: none;
    padding: 0.15rem 0 0.45rem 0.35rem;
    min-width: 0;
    background: var(--bg);
    border-radius: 12px;
    margin: 0.15rem 0 0.35rem;
  }
  .dropdown::before { display: none !important; }
  .dropdown li {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .nav-list > li.has-dropdown.is-open > .dropdown {
    display: block;
  }
  .dropdown a {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.35;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .dropdown a:hover,
  .dropdown a:focus-visible,
  .dropdown a.active {
    transform: none;
    padding-left: 1rem;
  }

  /* Disable hover-open on touch widths so only .is-open works */
  .nav-list > li.has-dropdown:hover > .dropdown {
    display: none;
  }
  .nav-list > li.has-dropdown.is-open:hover > .dropdown,
  .nav-list > li.has-dropdown.is-open > .dropdown {
    display: block;
  }
  .nav-list > li.has-dropdown:hover > a.nav-parent {
    background: transparent;
    color: var(--text);
  }
  .nav-list > li.has-dropdown.is-open > a.nav-parent {
    background: var(--teal-soft);
    color: var(--primary);
  }

  .hero {
    padding: 1.75rem 0 2.25rem;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 0.65rem;
  }
  .stat-card {
    padding: 0.75rem 0.5rem;
  }
  .stat-card strong { font-size: 1.15rem; }
  .stat-card span { font-size: 0.68rem; }
  .compare-grid, .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section {
    padding: 2rem 0;
  }
  .section-header {
    margin-bottom: 1.5rem;
    text-align: left;
  }
  .section-header.reveal.visible h2::after {
    margin-left: 0;
  }
  .page-hero {
    padding: 1.75rem 0 1.5rem;
  }
  .page-toc {
    padding: 0.85rem 0.9rem;
    gap: 0.4rem;
  }
  .page-toc a {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  .topic-card {
    padding: 1.15rem 1.1rem;
    scroll-margin-top: 5.5rem;
  }
  .info-panel {
    padding: 1.15rem 1.15rem;
  }
  .card-body {
    padding: 1.1rem;
  }
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .carousel-slide img {
    height: clamp(200px, 55vw, 300px);
  }
  .carousel-btn {
    width: 38px;
    height: 38px;
  }
  .back-top {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
  }
  .table-wrap {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    border-radius: var(--radius-sm);
  }
  th, td {
    padding: 0.65rem 0.75rem;
    font-size: 0.86rem;
  }
  .hours-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, var(--max-w));
  }

  .top-bar-left > span:first-child {
    display: none; /* phones: keep WhatsApp, drop long dual-phone line */
  }
  .top-bar-right > span[data-i18n="top_location"],
  .top-bar-right > span:not(.lang-switch) {
    display: none;
  }
  .top-bar .container {
    justify-content: space-between;
  }
  .top-bar-left,
  .top-bar-right {
    width: auto;
  }

  .brand-text span { display: none; }
  .brand-text strong {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }
  .hero-lead {
    font-size: 0.98rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .stat-card strong {
    font-size: 1.25rem;
  }
  .stat-card span {
    font-size: 0.8rem;
    text-align: right;
  }

  .three-col,
  .footer-grid { grid-template-columns: 1fr; }
  .doctor-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.25rem;
  }
  .doctor-card img { margin: 0 auto; }
  .doctor-card ul { text-align: left; }

  .btn {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1.2rem;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn { width: 100%; }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .type-matrix { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
  .type-matrix a { padding: 0.75rem 0.7rem; }
  .type-matrix strong { font-size: 1.05rem; }
  .type-card { grid-template-columns: 1fr; }
  .type-card-img { min-height: 160px; max-height: 200px; }
  .type-card-body { padding: 1.1rem 1.15rem; }

  .hub-card {
    grid-template-columns: auto 1fr;
    padding: 1rem;
  }
  .hub-card-arrow { display: none; }

  .showcase-grid,
  .showcase-grid-3,
  .showcase-grid-iron { grid-template-columns: 1fr; }
  .showcase-card-photo img { height: 200px; }
  .feature-band-copy { padding: 1.15rem; }
  .feature-band-visual,
  .feature-band-visual a,
  .feature-band-visual img {
    min-height: 200px;
    max-height: 240px;
  }
  .iron-types { grid-template-columns: 1fr; }

  .contact-card {
    padding: 1.35rem 1.2rem;
  }
  .cta-band {
    padding: 2.25rem 0;
  }
  .cta-band .btn-primary {
    width: 100%;
    max-width: 20rem;
  }
  .site-footer {
    padding: 2.25rem 0 1.25rem;
  }
  .footer-grid {
    gap: 1.5rem;
  }
  .map-embed iframe {
    height: 240px;
  }
  .lightbox {
    padding: 0.75rem;
  }
  .lightbox-close {
    top: 0.5rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
  }

  /* Soften heavy hover transforms on touch devices */
  .card:hover,
  .hub-card:hover,
  .topic-card:hover,
  .media-figure:hover,
  .showcase-card:hover {
    transform: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-float,
  .cta-band,
  .cta-band::before {
    animation: none !important;
  }
  .chips li,
  .hero-stats .stat-card,
  .page-hero,
  .page-hero h1,
  .page-hero p,
  .page-hero .breadcrumb,
  .page-toc a,
  .type-matrix.reveal.visible a,
  .section-header.reveal.visible h2::after,
  .section-header.reveal.visible .eyebrow {
    animation: none !important;
  }
}
