/* ==========================================================================
   AltaMedicare - Modern Utah Wellness
   Stylesheet v1.0
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- ROOT VARIABLES ---------- */
:root {
  /* Brand colors — teal primary, emerald accent (slate neutrals) */
  --mountain-blue: #2563eb;       /* blue-600 — primary UI, links, icons */
  --mountain-blue-dark: #1d4ed8;  /* blue-700 */
  --mountain-blue-light: #93c5fd; /* blue-300 — decorations, borders */
  --sage-green: #0284c7;          /* sky-600 — Text/success accents */
  --sage-green-dark: #0369a1;     /* sky-700 */
  --sage-green-light: #7dd3fc;    /* sky-300 */
  --terracotta: #1d4ed8;          /* blue-700 — primary CTAs, eyebrows */
  --terracotta-dark: #1e40af;     /* blue-800 */
  --terracotta-light: #3b82f6;    /* blue-500 */

  /* Backgrounds */
  --warm-white: #f8fafc;          /* slate-50 — page background */
  --soft-sand: #f1f5f9;           /* slate-100 — tinted sections */
  --soft-sand-dark: #e2e8f0;      /* slate-200 */

  /* Text */
  --charcoal: #0f172a;            /* slate-900 — headings/ink */
  --charcoal-soft: #334155;       /* slate-700 — body */
  --text-muted: #64748b;          /* slate-500 */

  /* Utility */
  --border-light: #e2e8f0;        /* slate-200 */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -15px rgba(15, 23, 42, 0.2);
  --shadow-lg: 0 24px 48px -24px rgba(15, 23, 42, 0.3);

  /* Type */
  --font-heading: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --transition: 0.25s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  /* Clip any stray horizontal overflow on small screens (prevents the grey
     side-gutter below ~450px). `clip` doesn't break the sticky header the way
     `hidden` can; `hidden` is the fallback for older browsers. */
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mountain-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--charcoal);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background-color: var(--terracotta);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--terracotta-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background-color: var(--mountain-blue);
  color: #fff;
}
.btn-secondary:hover {
  background-color: var(--mountain-blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background-color: transparent;
  color: var(--mountain-blue);
  border-color: var(--mountain-blue);
}
.btn-outline:hover {
  background-color: var(--mountain-blue);
  color: #fff;
}
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}
/* Header spans wider than the 1200px body cap so the full nav + CTA fit on one line. */
.site-header > .container {
  max-width: 1560px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  white-space: nowrap;
  color: var(--charcoal);
}
.logo:hover { color: var(--mountain-blue); }
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 8px;
  /* Space the tabs away from the logo so "Home" isn't crowding "AltaMedicare". */
  margin-left: 32px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  margin: 0;
  padding: 0;
}
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  white-space: nowrap;
  padding: 9px 11px;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: 8px;
}
.main-nav a:hover, .main-nav a.active {
  background-color: var(--soft-sand);
  color: var(--mountain-blue);
}

/* Dropdown */
.has-dropdown > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.75em;
  opacity: 0.6;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: flex; }
.dropdown a { padding: 10px 14px; }

.header-cta {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--mountain-blue);
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--terracotta); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  /* Sit above the slide-in nav panel (z-index:200) so it stays clickable to close. */
  position: relative;
  z-index: 300;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--charcoal);
  margin: 6px 0;
  transition: transform var(--transition), opacity var(--transition);
}
/* Animate the bars into an X while the menu is open. */
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 32px 0 72px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248,250,252,0.3) 0%, rgba(248,250,252,0.85) 100%),
    linear-gradient(135deg, #eff6ff 0%, var(--warm-white) 55%, #dbeafe 100%);
}

/* Full-bleed background reel — fills the entire hero, behind all content. */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video video,
.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Cover the whole section without distorting the footage. */
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;     /* native <video> crops to fill — no letterboxing */
  border: 0;
  pointer-events: none;
}

/* No fog — the reel shows fully clear. Text legibility comes from text-shadow below. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

/* Respect reduced-motion: drop the reel and fall back to the static gradient. */
@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .hero-overlay { display: none; }
}

.hero::before {
  /* Mountain silhouette */
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath fill='%232563eb' fill-opacity='0.16' d='M0,180 L180,90 L320,150 L460,60 L620,140 L780,40 L920,120 L1100,70 L1280,130 L1440,80 L1440,220 L0,220 Z'/%3E%3Cpath fill='%230284c7' fill-opacity='0.2' d='M0,200 L120,140 L260,180 L400,110 L560,170 L720,90 L880,160 L1040,120 L1200,170 L1360,130 L1440,160 L1440,220 L0,220 Z'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
}
.hero > .container {
  position: relative;
  z-index: 2;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}
/* Clear reel behind the text — a soft white halo keeps it readable over busy footage. */
.hero-inner h1,
.hero-inner .subhead,
.hero-inner .hero-phone,
.hero-inner .hero-trust {
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.9),
    0 2px 14px rgba(255, 255, 255, 0.75);
}
.hero h1 {
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.hero .subhead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--charcoal-soft);
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}
/* Outline buttons sit over busy hero footage — a frosted white backing keeps
   the blue label readable without losing the outlined look. */
.hero-buttons .btn-outline {
  background-color: rgba(255, 255, 255, 0.82);
  border-color: var(--mountain-blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
}
.hero-buttons .btn-outline:hover {
  background-color: var(--mountain-blue);
  color: #fff;
}
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--mountain-blue);
  margin-top: 8px;
}
.hero-phone svg { width: 22px; height: 22px; }

/* ---------- HERO TWO-COLUMN + MEDIA PANEL ---------- */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-grid .hero-inner {
  max-width: none;
  margin: 0;
  text-align: left;
}
.hero-grid .hero-buttons { justify-content: flex-start; }
.hero-grid .hero-phone,
.hero-grid .hero-trust { justify-content: flex-start; }

/* Media card (used in hero + video center) */
.media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--mountain-blue-dark) 0%, var(--sage-green-dark) 100%);
  /* Deeper, softer shadow reads as the card hovering above the section. */
  box-shadow: 0 30px 60px -18px rgba(13, 63, 134, 0.45), 0 10px 24px -12px rgba(15, 23, 42, 0.25);
  aspect-ratio: 16 / 10;
  animation: media-float 6s ease-in-out infinite;
  transition: transform var(--transition), box-shadow var(--transition);
}
.media-card:hover {
  /* Pause the bob and hold a lifted position so the lift reads on hover. */
  animation-play-state: paused;
  transform: translateY(-10px);
  box-shadow: 0 40px 72px -16px rgba(13, 63, 134, 0.5), 0 14px 28px -12px rgba(15, 23, 42, 0.3);
}
/* Gentle hover/bob so the video frame floats over the section. */
@keyframes media-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .media-card { animation: none; }
}
.media-card video,
.media-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}
.media-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.16), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(255,255,255,0.1), transparent 50%);
}
.media-poster::after {
  /* subtle mountain motif so the poster reads as branded, not empty */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.10' d='M0,180 L180,90 L320,150 L460,60 L620,140 L780,40 L920,120 L1100,70 L1280,130 L1440,80 L1440,220 L0,220 Z'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
}
/* When the poster shows a real YouTube thumbnail, drop the branded mountain motif. */
.media-poster.has-thumb::after { display: none; }
.media-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 13px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.media-play {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: #fff;
  color: var(--mountain-blue-dark);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
  transition: transform var(--transition);
}
.media-play svg { width: 30px; height: 30px; margin-left: 4px; }
.media-play::before {
  /* pulsing ring — the "alive" cue */
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  animation: mediaPulse 2.4s ease-out infinite;
}
.media-play:hover { transform: scale(1.07); }
@keyframes mediaPulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
/* "Watch the video" cue — only shown on posters that actually have a video. */
.media-watch {
  display: none;
  position: absolute;
  z-index: 2;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: 24px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.media-poster.has-thumb .media-watch { display: inline-flex; }
.media-captions {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 20px 18px;
  background: linear-gradient(to top, rgba(15,23,42,0.72), transparent);
}
.media-captions p {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  transition: opacity 0.4s ease;
}
.media-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.media-pause {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: all var(--transition);
}
.media-pause:hover { border-color: var(--mountain-blue); color: var(--mountain-blue); }

/* ---------- EDUCATIONAL VIDEO CENTER ---------- */
.video-center {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}
.video-topics { display: flex; flex-direction: column; gap: 10px; }
.video-topic {
  text-align: left;
  background: #fff;
  border: 1px solid var(--border-light);
  border-left: 4px solid transparent;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: all var(--transition);
}
.video-topic:hover {
  border-color: var(--mountain-blue-light);
  background: var(--soft-sand);
}
.video-topic.active {
  border-left-color: var(--mountain-blue);
  color: var(--mountain-blue-dark);
  box-shadow: var(--shadow-sm);
}
.video-meta { margin-top: 22px; }
.video-meta h3 { margin-bottom: 8px; }
.video-meta p { color: var(--charcoal-soft); margin-bottom: 18px; }
.video-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.video-transcript { font-weight: 600; }

/* ---------- LATEST ARTICLES CAROUSEL ---------- */
.carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.carousel-nav { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--mountain-blue);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-btn:hover { background: var(--mountain-blue); color: #fff; border-color: var(--mountain-blue); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; background: #fff; color: var(--mountain-blue); }
.article-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.article-track::-webkit-scrollbar { display: none; }
.article-card {
  flex: 0 0 320px;
  max-width: 320px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: all var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mountain-blue-light); }
.article-img {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, var(--mountain-blue), var(--sage-green));
}
.article-img.alt-1 { background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light)); }
.article-img.alt-2 { background: linear-gradient(135deg, var(--sage-green), var(--mountain-blue-light)); }
.article-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 11px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.article-body { padding: 22px 24px 24px; }
.article-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.article-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.article-body p { color: var(--charcoal-soft); margin-bottom: 14px; font-size: 0.97rem; }

/* ---------- SECTIONS ---------- */
section {
  padding: 80px 0;
}
.section-tinted { background-color: var(--soft-sand); }
.section-white { background-color: #fff; }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--charcoal-soft);
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  padding: 50px 0;
  background-color: #fff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}
.trust-item .icon-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background-color: var(--soft-sand);
  display: grid;
  place-items: center;
  color: var(--mountain-blue);
}
.trust-item .icon-circle svg { width: 28px; height: 28px; }
.trust-item h4 { font-size: 1rem; margin-bottom: 0; }

/* ---------- CARD GRID ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.card {
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--mountain-blue-light);
}
.card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background-color: var(--soft-sand);
  color: var(--mountain-blue);
  margin-bottom: 18px;
}
.card .card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--charcoal-soft); margin-bottom: 16px; flex-grow: 1; }
.card-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--terracotta);
}
.card-link::after { content: "→"; transition: transform var(--transition); }
.card-link:hover::after { transform: translateX(4px); }

/* Variant: terracotta accent */
.card--terracotta .card-icon { background-color: #dbeafe; color: var(--terracotta); }
.card--sage .card-icon { background-color: #e0f2fe; color: var(--sage-green-dark); }

/* ---------- WHY US ---------- */
.why-us {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-us-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.why-us-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  font-size: 1.05rem;
}
.why-us-list .check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--sage-green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.bret-card {
  background-color: var(--soft-sand);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border-light);
}
.bret-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
}
.bret-card h3 { margin-bottom: 6px; }
.bret-card .role { color: var(--mountain-blue); font-weight: 500; margin-bottom: 14px; }

/* ---------- NEWS CARDS ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.news-card {
  background-color: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  border-left: 4px solid var(--mountain-blue);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card.tag-savings { border-left-color: var(--sage-green); }
.news-card.tag-alert { border-left-color: var(--terracotta); }
.news-card .news-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mountain-blue);
  margin-bottom: 10px;
}
.news-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.news-card p { color: var(--charcoal-soft); font-size: 0.97rem; margin-bottom: 0; }

/* ---------- NEWS CATEGORY CHIPS (Medicare News hub) ---------- */
.news-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.news-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--charcoal-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.news-cat-chip i { color: var(--mountain-blue); }
.news-cat-chip:hover {
  border-color: var(--mountain-blue);
  background: var(--mountain-blue);
  color: #fff;
}
.news-cat-chip:hover i { color: #fff; }
.news-rss-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--terracotta);
  text-decoration: none;
}
.news-rss-link:hover { text-decoration: underline; }
.post-byline {
  margin: 14px 0 6px;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  font-weight: 600;
}
.post-byline a { color: var(--terracotta); text-decoration: none; }
.post-byline a:hover { text-decoration: underline; }

/* ---------- PRESCRIPTION FORM ---------- */
.prescription-section {
  background:
    linear-gradient(135deg, var(--mountain-blue) 0%, var(--sage-green-dark) 100%);
  color: #fff;
  padding: 80px 0;
}
.prescription-section .section-header h2,
.prescription-section .section-header p { color: #fff; }
.prescription-section .eyebrow { color: #bfdbfe; }
.form-card {
  background-color: #fff;
  color: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--charcoal);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--mountain-blue);
}
.form-card button { width: 100%; margin-top: 8px; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background-color: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-light);
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: 14px;
  left: 22px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--mountain-blue-light);
  opacity: 0.4;
  line-height: 1;
}
.testimonial p {
  position: relative;
  font-size: 1.05rem;
  color: var(--charcoal-soft);
  font-style: italic;
}
.testimonial-author {
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 14px;
  font-style: normal;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background-color: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item.open { box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 26px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question:hover { color: var(--mountain-blue); }
.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--soft-sand);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--mountain-blue);
  transition: transform var(--transition);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 26px;
}
.faq-item.open .faq-answer { max-height: 480px; padding: 0 26px 22px; }
.faq-answer p { color: var(--charcoal-soft); margin: 0; }

/* ---------- FINAL CTA ---------- */
.final-cta {
  background:
    linear-gradient(135deg, var(--terracotta) 0%, #1e3a8a 100%);
  color: #fff;
  padding: 90px 0;
  text-align: center;
}
.final-cta h2 { color: #fff; margin-bottom: 14px; }
.final-cta p {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 540px;
  margin: 0 auto 30px;
}
.final-cta .btn-primary {
  background-color: #fff;
  color: var(--terracotta);
}
.final-cta .btn-primary:hover {
  background-color: var(--charcoal);
  color: #fff;
}
.final-cta .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.final-cta .btn-outline:hover {
  background-color: #fff;
  color: var(--terracotta);
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; }
.footer-brand p { color: #94a3b8; margin-top: 16px; max-width: 320px; }
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.footer-contact p { margin: 0 0 6px; font-size: 0.95rem; }
.footer-contact .footer-phone {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
}
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}
.footer-bottom .disclaimer { max-width: 900px; margin: 0 auto 14px; line-height: 1.6; }

/* ---------- ASK BRET CHAT BUBBLE ---------- */
.chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background-color: var(--sage-green);
  color: #fff;
  border: 0;
  border-radius: 30px;
  padding: 14px 22px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
}
.chat-bubble:hover { background-color: var(--sage-green-dark); transform: translateY(-2px); color: #fff; }
.chat-bubble svg { width: 22px; height: 22px; flex-shrink: 0; }
.chat-bubble .cb-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.chat-bubble .cb-text small { font-weight: 400; font-size: 0.78rem; opacity: 0.9; }

.chat-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 95;
  width: 340px;
  max-width: calc(100vw - 48px);
  background-color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-header {
  background-color: var(--mountain-blue);
  color: #fff;
  padding: 18px 22px;
}
.chat-header h4 { color: #fff; margin: 0 0 4px; font-size: 1.1rem; }
.chat-header p { margin: 0; font-size: 0.9rem; opacity: 0.85; }
.chat-body { padding: 18px 22px; }
.chat-body p { font-size: 0.95rem; color: var(--charcoal-soft); }
.chat-body .btn { width: 100%; margin-bottom: 10px; }
.chat-close {
  position: absolute;
  top: 14px; right: 16px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.8;
}
.chat-close:hover { opacity: 1; }

/* ---------- INTERACTIVE TIMELINE ---------- */
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  background-color: var(--mountain-blue-light);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--terracotta);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}
.timeline-item:nth-child(odd)::after { right: -9px; }
.timeline-item:nth-child(even)::after { left: -9px; }
.timeline-content {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.timeline-content .age {
  display: inline-block;
  background-color: var(--terracotta);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.timeline-content h4 { margin-bottom: 6px; }
.timeline-content p { color: var(--charcoal-soft); margin: 0; font-size: 0.97rem; }

/* ---------- MYTH VS FACT CARDS ---------- */
.myth-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.mf-card {
  background-color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.mf-myth, .mf-fact { padding: 22px 26px; }
.mf-myth {
  background-color: #fef2f2;
  border-bottom: 2px dashed #fca5a5;
}
.mf-myth .label { color: #b91c1c; }
.mf-fact { background-color: #fff; }
.mf-fact .label { color: var(--sage-green-dark); }
.mf-myth .label, .mf-fact .label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.mf-myth p, .mf-fact p { margin: 0; font-size: 1rem; color: var(--charcoal); }

/* ---------- QUIZ ---------- */
.quiz-container {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.quiz-progress {
  height: 6px;
  background-color: var(--soft-sand);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}
.quiz-progress-bar {
  height: 100%;
  background-color: var(--mountain-blue);
  width: 0;
  transition: width 0.4s ease;
}
.quiz-question { display: none; }
.quiz-question.active { display: block; }
.quiz-question h3 { margin-bottom: 22px; }
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  background: var(--warm-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}
.quiz-option:hover {
  border-color: var(--mountain-blue);
  background-color: var(--soft-sand);
}
.quiz-result {
  text-align: center;
  display: none;
}
.quiz-result.active { display: block; }
.quiz-result h3 { color: var(--mountain-blue); }

/* ---------- UTAH MAP ---------- */
.utah-map-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.utah-map { width: 100%; height: auto; max-width: 460px; margin: 0 auto; }
.city-list { list-style: none; padding: 0; margin: 0; }
.city-list li {
  padding: 14px 18px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
}
.city-list li:hover {
  border-color: var(--terracotta);
  background-color: var(--soft-sand);
}
.city-list li.active {
  border-color: var(--terracotta);
  background-color: #eff6ff;
}
.city-list strong { color: var(--mountain-blue); }

/* ---------- PAGE HEADER (interior pages) ---------- */
.page-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(241,245,249,0.5) 0%, rgba(241,245,249,1) 100%),
    linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 70px 0 60px;
  text-align: center;
}
.page-header .breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.page-header .breadcrumb a { color: var(--mountain-blue); }
.page-header h1 { margin-bottom: 12px; }
.page-header .lede {
  font-size: 1.28rem;
  color: var(--charcoal-soft);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- HERO REEL ON INTERIOR + ARTICLE HEADERS ----------
   The same background reel as the home hero, injected into every .page-header
   and .post-header by MainLayout. A translucent light overlay keeps the existing
   dark heading text readable; reduced-motion users fall back to the gradient. */
.ph-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ph-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none;
}
.ph-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}
.page-header > .container,
.post-header > .container {
  position: relative;
  z-index: 2;
  /* Clear reel behind the text — a soft white halo keeps it readable (same as the home hero). */
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.95),
    0 2px 14px rgba(255, 255, 255, 0.8);
}
@media (prefers-reduced-motion: reduce) {
  .ph-video,
  .ph-overlay { display: none; }
}

/* ---------- FLOATING ALTA MEDICARE CREST ----------
   The full logo (logo1.webp) floats as a white rounded badge in the top-right
   of the home hero and every interior/article/landing header. Decorative, so a
   CSS pseudo-element keeps it markup-free and consistent across all pages. */
.hero::after,
.page-header::after,
.post-header::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 24px;
  width: 132px;
  height: 132px;
  background: #fff url("/images/logo1.webp") center / 88% no-repeat;
  border-radius: 20px;
  box-shadow: 0 18px 46px -18px rgba(13, 63, 134, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero::after,
  .page-header::after,
  .post-header::after { width: 96px; height: 96px; top: 16px; right: 16px; border-radius: 16px; }
}
@media (max-width: 560px) {
  .hero::after,
  .page-header::after,
  .post-header::after { width: 64px; height: 64px; top: 12px; right: 12px; border-radius: 12px; box-shadow: 0 10px 26px -14px rgba(13, 63, 134, 0.5); }
}

/* When the reel is behind the header, the smaller supporting text turns white
   with a dark halo for contrast. Scoped to .has-reel so the reduced-motion /
   no-JS gradient fallback keeps its dark text. The big <h1> stays dark. */
.page-header.has-reel .breadcrumb,
.page-header.has-reel .breadcrumb a,
.page-header.has-reel .lede,
.page-header.has-reel .news-rss-link,
.post-header.has-reel .breadcrumb,
.post-header.has-reel .breadcrumb a,
.post-header.has-reel .lede,
.post-header.has-reel .post-meta,
.post-header.has-reel .post-meta i,
.post-header.has-reel .post-byline,
.post-header.has-reel .post-byline a {
  color: #fff;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.95),
    0 0 9px rgba(0, 0, 0, 0.85),
    0 1px 4px rgba(0, 0, 0, 1),
    0 2px 18px rgba(0, 0, 0, 0.7);
}

/* Home hero: smaller supporting text turns white while the reel is showing
   (motion allowed). Under reduced-motion the reel is hidden and the dark
   defaults remain. The big <h1> keeps its dark color + white halo. */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner .subhead,
  .hero-inner .hero-phone,
  .hero-inner .hero-trust {
    color: #fff;
    text-shadow:
      0 0 3px rgba(0, 0, 0, 0.95),
      0 0 9px rgba(0, 0, 0, 0.85),
      0 1px 4px rgba(0, 0, 0, 1),
      0 2px 18px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- CONTENT (long-form) ---------- */
.content-narrow {
  max-width: 780px;
  margin: 0 auto;
}
.content-narrow h2 { margin-top: 1.6em; }
.content-narrow h3 { margin-top: 1.4em; }
.content-narrow ul, .content-narrow ol { padding-left: 22px; }
.content-narrow li { margin-bottom: 8px; }
.callout {
  background-color: var(--soft-sand);
  border-left: 4px solid var(--terracotta);
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}
.callout strong { color: var(--terracotta-dark); }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info { padding: 30px; }
.contact-info h3 { margin-bottom: 16px; }
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-method .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--soft-sand);
  display: grid;
  place-items: center;
  color: var(--mountain-blue);
  flex-shrink: 0;
}
.contact-method strong { display: block; margin-bottom: 4px; }
.contact-method a { color: var(--charcoal-soft); }
.contact-method a:hover { color: var(--mountain-blue); }

/* ---------- CONTACT ACTION BUTTONS ---------- */
.contact-action {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px 14px;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
}
.contact-action:first-of-type { border-top: 0; padding-top: 0; }
.contact-action .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--soft-sand);
  display: grid;
  place-items: center;
  color: var(--mountain-blue);
  flex-shrink: 0;
}
.contact-action-text strong { display: block; font-size: 1.05rem; color: var(--charcoal); }
.contact-action-text span { display: block; margin-top: 2px; color: var(--text-muted); font-size: 0.92rem; }
.contact-action .btn { grid-column: 1 / -1; width: 100%; margin-top: 6px; }

/* ---------- BLOG INDEX ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card .blog-img {
  height: 180px;
  background: linear-gradient(135deg, var(--mountain-blue), var(--sage-green));
  position: relative;
}
.blog-card .blog-img.alt-1 { background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light)); }
.blog-card .blog-img.alt-2 { background: linear-gradient(135deg, var(--sage-green), var(--mountain-blue-light)); }
.blog-card .blog-body { padding: 24px; }
.blog-card .blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.blog-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-card p { color: var(--charcoal-soft); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .why-us, .utah-map-container, .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-grid .hero-inner { text-align: center; }
  .hero-grid .hero-buttons,
  .hero-grid .hero-phone,
  .hero-grid .hero-trust { justify-content: center; }
  .hero-media { max-width: 520px; margin: 0 auto; width: 100%; }
  .video-center { grid-template-columns: 1fr; gap: 24px; }
  .carousel-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  /* Timeline becomes single column */
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) {
    width: 100%; left: 0; padding-left: 50px; padding-right: 0; text-align: left;
  }
  .timeline-item::after, .timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after {
    left: 11px; right: auto;
  }
}

/* Header collapse — below 1560px the full nav no longer fits cleanly, so the
   whole nav folds into the hamburger while the search + phone stay in the bar. */
@media (max-width: 1560px) {
  .menu-toggle { display: block; }
  /* Full-width dropdown anchored under the header. Pinned to BOTH edges (left:0;
     right:0) so it always spans the header width and can't slide off-screen — the
     header's backdrop-filter + sticky positioning would otherwise misanchor a
     fixed/right-only panel and push it past the right edge. */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
    z-index: 200;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; flex-wrap: nowrap; width: 100%; gap: 0; }
  .main-nav li { width: 100%; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--soft-sand);
    border-radius: 0;
    margin: 4px 0 4px 14px;
    padding: 4px 0;
    display: none;
  }
  .has-dropdown.open .dropdown { display: flex; }
}

@media (max-width: 768px) {
  /* Phones: drop the button and the header phone (the sticky bottom Call bar covers it),
     so logo + search + hamburger fit without crowding the close button off-screen. */
  .header-cta .btn,
  .header-text,
  .header-enroll,
  .header-phone { display: none; }
  .header-search-btn span { display: none; }
  .header-search-btn { padding: 8px; }
  section { padding: 60px 0; }
  .hero { padding: 60px 0 90px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .hero { padding: 50px 0 80px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .article-card { flex-basis: 80vw; max-width: 80vw; }
  .media-play { width: 64px; height: 64px; }
  .media-play svg { width: 26px; height: 26px; }
  .form-card, .quiz-container { padding: 26px 22px; }
  .chat-panel { right: 12px; left: 12px; width: auto; }
  .chat-bubble { right: 16px; padding: 12px 18px; font-size: 0.95rem; }
}

/* Narrow phones (≤450px): the logo is fixed-width + nowrap, so on real phones
   (360–430px) the header row overflows and shoves the hamburger off the right
   edge. Let the logo shrink/truncate and keep the toggle pinned on-screen. */
@media (max-width: 450px) {
  .header-inner { gap: 8px; }
  /* Allow the wordmark to shrink and ellipsis instead of forcing the row wide. */
  .logo { flex: 0 1 auto; min-width: 0; font-size: 1.15rem; }
  .logo > span:not(.logo-mark) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  /* CTA + hamburger never shrink, so the toggle stays visible and tappable. */
  .header-cta { gap: 8px; flex: 0 0 auto; }
  .menu-toggle { flex: 0 0 auto; }
  /* Drop the redundant static search icon (script.js injects its own), freeing
     the width that was crowding the hamburger off the edge. */
  .header-cta .header-search { display: none; }
}

/* ==========================================================================
   UPGRADES — site-wide enhancements (sticky mobile bar, skip link, hero trust)
   ========================================================================== */

/* ---------- SKIP TO CONTENT (accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 200;
  background: #fff;
  color: var(--mountain-blue);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--mountain-blue);
  font-family: var(--font-heading);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; outline: none; }

/* ---------- HERO TRUST / STAR RATING ---------- */
.hero-trust {
  margin: 20px 0 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--charcoal-soft);
}
.hero-trust .stars {
  color: #f59e0b;
  letter-spacing: 2px;
  margin-right: 8px;
}

/* ---------- STICKY HEADER (shrink on scroll) ---------- */
.site-header {
  transition: padding var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(44, 44, 44, 0.08);
  background-color: rgba(248, 250, 252, 0.98);
}
.site-header.scrolled .header-inner { padding: 8px 0; }
.site-header.scrolled .logo-img { height: 32px; }
.site-header.scrolled .logo { font-size: 1.2rem; }

/* ---------- DESKTOP "TEXT US" HEADER BUTTON ---------- */
.header-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--sage-green-dark);
  white-space: nowrap;
}
.header-text svg { width: 18px; height: 18px; }
.header-text:hover { color: var(--terracotta); }

.header-enroll {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background-color: var(--mountain-blue);
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color var(--transition), transform var(--transition);
}
.header-enroll:hover { color: #fff; background-color: var(--mountain-blue-dark, #15307a); transform: translateY(-1px); }

/* ---------- UNIVERSAL MEDICARE SEARCH ---------- */
.site-search {
  position: relative;
  max-width: 560px;
  margin: 28px auto 0;
  text-align: left;
}
.site-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-search-field:focus-within {
  border-color: var(--mountain-blue);
  box-shadow: var(--shadow-lg);
}
.site-search-field svg { width: 22px; height: 22px; color: var(--mountain-blue); flex-shrink: 0; }
.site-search-field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--charcoal);
  padding: 12px 0;
  min-width: 0;
}
.site-search-field input::placeholder { color: var(--text-muted); }
.site-search-field .btn { padding: 12px 20px; flex-shrink: 0; }
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  z-index: 80;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
  display: none;
}
.search-results.open { display: block; }
.search-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 12px 14px 6px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--charcoal);
}
.search-result:hover, .search-result.active {
  background-color: var(--soft-sand);
  color: var(--mountain-blue);
}
.search-result .sr-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
  background-color: var(--soft-sand);
  color: var(--mountain-blue);
}
.sr-badge.type-tool { background-color: #dcfce7; color: #15803d; }      /* green */
.sr-badge.type-faq { background-color: #ede9fe; color: #6d28d9; }       /* purple */
.sr-badge.type-service { background-color: #dbeafe; color: #1d4ed8; }   /* blue */
.sr-badge.type-video { background-color: #dbeafe; color: #1d4ed8; }     /* blue */
.sr-badge.type-article { background-color: #fef3c7; color: #b45309; }   /* amber */
.sr-badge.type-contact { background-color: #fee2e2; color: #b91c1c; }   /* red */
.search-result .sr-title { font-weight: 500; }
.search-empty { padding: 22px 14px; color: var(--text-muted); text-align: center; }
.search-empty a { font-weight: 600; }

/* Hero example chips */
.search-examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.search-example {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 7px 15px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  cursor: pointer;
  transition: all var(--transition);
}
.search-example:hover {
  background: #fff;
  color: var(--mountain-blue);
  border-color: var(--mountain-blue-light);
}

/* ---------- HERO "POPULAR TOOLS" SHORTCUT ROW ---------- */
.hero-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 620px;
  margin: 16px auto 0;
}
.hero-tools-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}
.hero-tools a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.hero-tools a:hover {
  color: var(--mountain-blue);
  border-color: var(--mountain-blue-light);
  transform: translateY(-1px);
}

/* ---------- TOOLS & CALCULATORS ---------- */
.card-icon.emoji {
  font-size: 1.7rem;
  line-height: 1;
}
.tool-card .btn { width: 100%; margin-top: auto; }
.tool-note {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}
.tool-note a { font-weight: 600; }

/* Cost estimator (reuses .search-modal shell) */
.estimator-intro { color: var(--charcoal-soft); margin: 0 0 20px; }
.estimator-form { display: grid; gap: 16px; }
.estimator-field { display: flex; flex-direction: column; gap: 6px; }
.estimator-field label { font-weight: 600; font-size: 0.95rem; }
.estimator-field select,
.estimator-field input {
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--charcoal);
}
.estimator-field select:focus,
.estimator-field input:focus { outline: 0; border-color: var(--mountain-blue); }
.estimator-field small { color: var(--text-muted); font-size: 0.84rem; }
.estimator-form .btn { width: 100%; margin-top: 4px; }
.estimator-results { margin-top: 22px; }
.est-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
  color: var(--charcoal-soft);
}
.est-line:last-child { border-bottom: 0; }
.est-line .est-val { font-weight: 700; color: var(--charcoal); white-space: nowrap; }
.est-line.est-total {
  font-size: 1.12rem;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 2px solid var(--border-light);
  border-bottom: 0;
  color: var(--charcoal);
}
.est-line.est-total .est-val { color: var(--mountain-blue-dark); }
.est-irmaa {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

/* Part A note + coverage paths + ecosystem */
.est-note {
  background: var(--soft-sand);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  margin: 16px 0 4px;
}
.est-subhead {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin: 24px 0 12px;
}
.est-path {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.est-path-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--charcoal);
}
.est-path-head .est-val { color: var(--mountain-blue-dark); white-space: nowrap; }
.est-path p { margin: 8px 0 0; font-size: 0.94rem; color: var(--charcoal-soft); }
.est-path .btn { margin-top: 12px; }
.est-cta {
  background: var(--soft-sand);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}
.est-cta .est-subhead { margin-top: 0; }
.est-cta p { margin: 0 0 14px; color: var(--charcoal-soft); font-size: 0.96rem; }
.est-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.est-cta-btns .btn { flex: 1; min-width: 110px; }
.est-resources { display: flex; flex-direction: column; gap: 4px; }
.est-disclaimer-acc {
  margin-top: 24px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}
.est-disclaimer-acc summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  list-style: none;
}
.est-disclaimer-acc summary::-webkit-details-marker { display: none; }
.est-disclaimer-acc summary::before { content: "＋ "; color: var(--mountain-blue); font-weight: 700; }
.est-disclaimer-acc[open] summary::before { content: "− "; }
.est-disclaimer-acc p { font-size: 0.84rem; color: var(--text-muted); margin: 10px 0 0; line-height: 1.55; }

.enroll-freedom {
  text-align: center;
  max-width: 760px;
  margin: 36px auto 0;
  color: var(--charcoal-soft);
  font-size: 1.04rem;
}
.enroll-freedom a { font-weight: 600; }

/* ---------- HEADER SEARCH BUTTON ---------- */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
  padding: 8px 10px;
  border-radius: 8px;
  transition: color var(--transition), background-color var(--transition);
}
.header-search-btn svg { width: 19px; height: 19px; }
.header-search-btn:hover { color: var(--mountain-blue); background-color: var(--soft-sand); }

/* ---------- SEARCH MODAL (Spotlight style) ---------- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 11vh 20px 20px;
}
.search-modal.open { display: flex; }
.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(37, 49, 58, 0.5);
  backdrop-filter: blur(4px);
}
.search-modal-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 78vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px 30px 26px;
  animation: searchPop 0.18s ease-out;
}
@keyframes searchPop {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: transparent;
  border: 0;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.search-modal-close:hover { color: var(--charcoal); }
.search-modal-title { font-size: 1.4rem; margin: 0 0 16px; }
.search-modal-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 4px 16px;
  transition: border-color var(--transition);
}
.search-modal-field:focus-within { border-color: var(--mountain-blue); }
.search-modal-field svg { width: 22px; height: 22px; color: var(--mountain-blue); flex-shrink: 0; }
.search-modal-field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 14px 0;
  color: var(--charcoal);
  min-width: 0;
}
.search-popular-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 22px 0 10px;
}
.search-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.search-chip {
  background: var(--soft-sand);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  cursor: pointer;
  transition: all var(--transition);
}
.search-chip:hover {
  background: var(--mountain-blue);
  color: #fff;
  border-color: var(--mountain-blue);
}
.search-modal-results { margin-top: 10px; }
.search-modal-results:empty { display: none; }

/* ---------- FAQ SEARCH ---------- */
.faq-search {
  position: relative;
  max-width: 820px;
  margin: 0 auto 26px;
}
.faq-search svg {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--mountain-blue);
  pointer-events: none;
}
.faq-search input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 15px 18px 15px 50px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--charcoal);
  transition: border-color var(--transition);
}
.faq-search input:focus { outline: 0; border-color: var(--mountain-blue); }
.faq-item[hidden] { display: none; }
.faq-no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
  display: none;
}

/* ---------- MINI "TURNING 65?" BANNER ---------- */
.mini-banner {
  padding: 0;
  background: transparent;
}
.mini-banner .container {
  background: linear-gradient(135deg, var(--sage-green) 0%, var(--mountain-blue) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 38px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.mini-banner h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.mini-banner p { margin: 0; font-size: 1.08rem; opacity: 0.95; }
.mini-banner .mini-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mini-banner .btn-primary { background-color: #fff; color: var(--mountain-blue-dark); }
.mini-banner .btn-primary:hover { background-color: var(--charcoal); color: #fff; }
.mini-banner .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.mini-banner .btn-outline:hover { background-color: #fff; color: var(--mountain-blue-dark); }

/* ---------- REVIEW SLIDER ---------- */
.review-slider { max-width: 760px; margin: 0 auto; position: relative; }
.review-track { position: relative; min-height: 200px; }
.review-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 38px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.review-slide.active { opacity: 1; visibility: visible; transform: translateY(0); position: relative; }
.review-slide .review-stars { color: #f59e0b; letter-spacing: 3px; font-size: 1.2rem; margin-bottom: 14px; }
.review-slide blockquote {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--charcoal-soft);
  line-height: 1.6;
}
.review-slide .review-author { font-weight: 600; color: var(--charcoal); }
.review-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.review-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 0;
  background-color: var(--border-light);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition), transform var(--transition);
}
.review-dot.active { background-color: var(--mountain-blue); transform: scale(1.2); }

/* ---------- MEET BRET ACTIONS ---------- */
.bret-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.bret-actions .btn { padding: 12px 22px; font-size: 0.97rem; }

/* ---------- STICKY MOBILE ACTION BAR ---------- */
.mobile-action-bar { display: none; }

@media (max-width: 768px) {
  .mobile-action-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 96;
    background: #fff;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -6px 20px rgba(44, 44, 44, 0.12);
    padding: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .mab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.1;
    text-align: center;
    color: #fff;
  }
  .mab-item svg { width: 20px; height: 20px; }
  .mab-item:hover { color: #fff; }
  .mab-call { background-color: var(--mountain-blue); }
  .mab-text { background-color: var(--sage-green); }
  .mab-enroll { background-color: var(--charcoal); }
  .mab-schedule { background-color: var(--terracotta); }
  .mab-item { font-size: 0.74rem; padding: 0 2px; }

  /* Sticky bar already offers Text on mobile — hide the floating bubble to avoid duplication */
  body { padding-bottom: 76px; }
  .chat-bubble { display: none; }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease-out both; }

/* ---------- ACCESSIBILITY ---------- */
:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   PAGEFIND SEARCH (header button, modal, /search page)
   ========================================================================== */
.header-search {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--soft-sand); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 9px 11px; cursor: pointer;
  color: var(--charcoal-soft); transition: all var(--transition);
}
.header-search:hover { color: var(--mountain-blue); border-color: var(--mountain-blue-light); }
.header-search .hs-key { font-size: 0.72rem; font-weight: 700; background: #fff; border: 1px solid var(--border-light); border-radius: 5px; padding: 1px 6px; color: var(--text-muted); }
@media (max-width: 768px) { .header-search .hs-key { display: none; } }

.pf-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; }
.pf-modal[hidden] { display: none; }
.pf-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(3px); }
.pf-panel { position: relative; width: 100%; max-width: 640px; max-height: 84vh; overflow-y: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px; }
@media (max-width: 600px) { .pf-modal { padding: 0; } .pf-panel { max-width: none; max-height: 100vh; height: 100vh; border-radius: 0; } }

.pf-inline { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 22px; }

.pf-box { display: flex; align-items: center; gap: 10px; border: 2px solid var(--border-light); border-radius: var(--radius-md); padding: 4px 12px; }
.pf-box:focus-within { border-color: var(--mountain-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.pf-box svg { width: 22px; height: 22px; color: var(--mountain-blue); flex: none; }
.pf-input { flex: 1; border: 0; outline: 0; font-family: var(--font-body); font-size: 1.1rem; padding: 13px 0; color: var(--charcoal); background: transparent; min-width: 0; }
.pf-clear { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--text-muted); cursor: pointer; min-height: 44px; min-width: 36px; }
.pf-escbtn { background: var(--soft-sand); border: 1px solid var(--border-light); border-radius: 6px; font-size: 0.74rem; font-weight: 700; color: var(--text-muted); padding: 5px 9px; cursor: pointer; min-height: 36px; }

.pf-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.pf-filter { background: #fff; border: 1.5px solid var(--border-light); border-radius: 20px; padding: 8px 14px; font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; color: var(--charcoal-soft); cursor: pointer; min-height: 38px; }
.pf-filter:hover { border-color: var(--mountain-blue); }
.pf-filter.is-active { background: var(--mountain-blue); border-color: var(--mountain-blue); color: #fff; }

.pf-count { margin: 16px 0 8px; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.pf-results { display: flex; flex-direction: column; gap: 10px; }
.pf-result { display: block; text-decoration: none; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 14px 16px; transition: all var(--transition); }
.pf-result:hover { border-color: var(--mountain-blue); background: var(--soft-sand); }
.pf-rhead { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.pf-url { font-size: 0.78rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-result h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--charcoal); }
.pf-result p { margin: 0; font-size: 0.92rem; color: var(--charcoal-soft); line-height: 1.5; }
.pf-result mark { background: #fde68a; color: inherit; padding: 0 1px; border-radius: 2px; }

.pf-badge { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 20px; flex: none; }
.pf-calculator, .pf-tool { background: #dbeafe; color: #1d4ed8; }
.pf-guide { background: #e0f2fe; color: #0369a1; }
.pf-glossary { background: #ede9fe; color: #6d28d9; }
.pf-blog { background: #fef3c7; color: #b45309; }
.pf-faq { background: #dcfce7; color: #15803d; }
.pf-page { background: var(--soft-sand); color: var(--charcoal-soft); }

.pf-block { margin-top: 16px; }
.pf-block h4 { margin: 0 0 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip { background: var(--soft-sand); border: 1px solid var(--border-light); border-radius: 20px; padding: 8px 14px; font-family: var(--font-body); font-size: 0.9rem; color: var(--charcoal-soft); cursor: pointer; min-height: 38px; }
.pf-chip:hover { background: var(--mountain-blue); color: #fff; border-color: var(--mountain-blue); }
.pf-empty { padding: 16px 4px; color: var(--text-muted); }
.pf-empty p { margin: 0 0 10px; }
.pf-empty code { background: var(--soft-sand); padding: 1px 6px; border-radius: 4px; font-size: 0.85em; }

/* ============================================================
   BLOG — hub, category cards, post rows, article, prev/next
   ============================================================ */

/* Card variants reused on the blog hub */
.card-eyebrow { display:inline-block; font-size:0.78rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color:var(--terracotta); margin-bottom:8px; }
.card-eyebrow i { margin-right:5px; }
.card-feature { border-top:3px solid var(--mountain-blue); }
.cat-card .card-icon { background:var(--soft-sand); }

/* Post list (hub + category pages) */
.post-list { display:flex; flex-direction:column; gap:2px; max-width:880px; margin:0 auto; }
.post-row { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:22px 18px; border-bottom:1px solid var(--border-light); text-decoration:none; color:inherit; border-radius:10px; transition:background var(--transition); }
.post-row:hover { background:var(--soft-sand); }
.post-row .pr-cat { display:inline-block; font-size:0.74rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color:var(--terracotta); margin-bottom:6px; }
.post-row .pr-main h3 { margin:0 0 6px; font-size:1.18rem; color:var(--charcoal); }
.post-row .pr-main p { margin:0; color:var(--text-muted); font-size:0.96rem; line-height:1.5; }
.post-row .pr-date { flex:none; font-size:0.85rem; color:var(--text-muted); white-space:nowrap; padding-top:3px; }
@media (max-width:560px) {
  .post-row { flex-direction:column; gap:8px; }
  .post-row .pr-date { padding-top:0; }
}

/* Article header */
.post-header { position:relative; overflow:hidden; background:linear-gradient(180deg, var(--soft-sand) 0%, #fff 100%); padding:48px 0 30px; }
.post-cat-tag { display:inline-block; background:#fff; border:1px solid var(--border-light); border-radius:20px; padding:5px 14px; font-size:0.82rem; font-weight:700; color:var(--mountain-blue); margin-bottom:16px; }
.post-cat-tag i { margin-right:6px; }
.post-header h1 { margin:0 0 14px; font-size:2.1rem; line-height:1.18; }
.post-meta { display:flex; flex-wrap:wrap; gap:18px; margin-top:18px; color:var(--text-muted); font-size:0.9rem; }
.post-meta i { color:var(--mountain-blue); margin-right:6px; }

/* Article body typography */
.post-body { padding:36px 0 8px; font-size:1.07rem; line-height:1.75; color:var(--charcoal-soft); }
.post-body h2 { margin:1.8em 0 0.5em; font-size:1.5rem; color:var(--charcoal); }
.post-body h3 { margin:1.5em 0 0.4em; font-size:1.2rem; color:var(--charcoal); }
.post-body p { margin:0 0 1.1em; }
.post-body ul, .post-body ol { margin:0 0 1.2em; padding-left:24px; }
.post-body li { margin-bottom:8px; }
.post-body a { color:var(--mountain-blue); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.post-body a:hover { color:var(--mountain-blue-dark); }
.post-body blockquote { margin:1.4em 0; padding:14px 20px; border-left:4px solid var(--mountain-blue); background:var(--soft-sand); border-radius:0 10px 10px 0; color:var(--charcoal); }
.post-body blockquote p:last-child { margin-bottom:0; }
.post-body table { width:100%; border-collapse:collapse; margin:1.4em 0; font-size:0.96rem; }
.post-body th, .post-body td { border:1px solid var(--border-light); padding:10px 12px; text-align:left; }
.post-body th { background:var(--soft-sand); font-weight:700; }
.post-body code { background:var(--soft-sand); padding:1px 6px; border-radius:4px; font-size:0.9em; }
.post-body img { max-width:100%; height:auto; border-radius:12px; margin:1.2em 0; }
.post-body hr { border:0; border-top:1px solid var(--border-light); margin:2em 0; }

/* Tags */
.post-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; padding-top:20px; border-top:1px solid var(--border-light); }
.post-tag { background:var(--soft-sand); border:1px solid var(--border-light); border-radius:16px; padding:5px 12px; font-size:0.82rem; color:var(--text-muted); }

/* FAQ accordion */
.faq-title { text-align:center; margin-bottom:24px; }
.faq-list { max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.faq-item { background:#fff; border:1px solid var(--border-light); border-radius:12px; padding:0; overflow:hidden; }
.faq-item summary { list-style:none; cursor:pointer; padding:18px 20px; font-weight:700; color:var(--charcoal); display:flex; justify-content:space-between; align-items:center; gap:12px; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:"+"; font-size:1.4rem; color:var(--mountain-blue); font-weight:400; line-height:1; flex:none; }
.faq-item[open] summary::after { content:"\2013"; }
.faq-item p { margin:0; padding:0 20px 18px; color:var(--charcoal-soft); line-height:1.65; }

/* Prev / Next */
.post-nav { padding:36px 0 60px; }
.post-nav-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.post-nav-link { display:flex; flex-direction:column; gap:6px; padding:18px 20px; border:1px solid var(--border-light); border-radius:12px; text-decoration:none; transition:border-color var(--transition), background var(--transition); }
.post-nav-link:hover { border-color:var(--mountain-blue); background:var(--soft-sand); }
.post-nav-link.next { text-align:right; }
.post-nav-link .pn-dir { font-size:0.8rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-muted); }
.post-nav-link .pn-title { font-weight:700; color:var(--charcoal); }
@media (max-width:560px) {
  .post-nav-grid { grid-template-columns:1fr; }
  .post-nav-link.next { text-align:left; }
}

/* Drug-article medical/coverage disclaimer */
.post-disclaimer { margin:28px 0 0; padding:14px 18px; background:var(--soft-sand); border:1px solid var(--border-light); border-left:4px solid var(--mountain-blue); border-radius:0 10px 10px 0; font-size:0.9rem; line-height:1.6; color:var(--text-muted); }
.post-disclaimer strong { color:var(--charcoal); }

/* ============================================================
   FAQ HUB — search box, answer cards, action chips
   ============================================================ */
.faq-search { display:flex; align-items:center; gap:10px; background:#fff; border:2px solid var(--border-light); border-radius:12px; padding:12px 16px; margin-bottom:8px; transition:border-color var(--transition); }
.faq-search:focus-within { border-color:var(--mountain-blue); box-shadow:0 0 0 4px rgba(37,99,235,.12); }
.faq-search i { color:var(--text-muted); }
.faq-search input { flex:1; border:0; outline:0; font-family:var(--font-body); font-size:1rem; color:var(--charcoal); background:transparent; min-height:28px; }
.faq-resultcount { min-height:1.2em; margin:0 4px 14px; font-size:0.88rem; color:var(--text-muted); }

/* Reuses .faq-list / .faq-item / summary from the blog FAQ accordion. */
.faq-item .faq-answer { padding:0 20px 18px; }
.faq-item .faq-answer p { margin:0 0 14px; padding:0; color:var(--charcoal-soft); line-height:1.65; }

.faq-actions { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.faq-link, .faq-tool { display:inline-flex; align-items:center; gap:7px; padding:7px 13px; border-radius:8px; font-size:0.85rem; font-weight:600; text-decoration:none; transition:all var(--transition); }
.faq-link { background:var(--soft-sand); color:var(--mountain-blue); border:1px solid var(--border-light); }
.faq-link:hover { background:var(--mountain-blue); color:#fff; border-color:var(--mountain-blue); }
.faq-link i, .faq-tool i { font-size:0.82em; }
.faq-tool { background:var(--mountain-blue-soft, #eaf2fd); color:var(--mountain-blue-dark); border:1px solid var(--mountain-blue-light); }
.faq-tool:hover { background:var(--mountain-blue); color:#fff; border-color:var(--mountain-blue); }

.faq-cta { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding-top:12px; border-top:1px solid var(--border-light); font-size:0.88rem; }
.faq-cta a { color:var(--terracotta); font-weight:600; text-decoration:none; display:inline-flex; align-items:center; gap:6px; }
.faq-cta a:hover { text-decoration:underline; }
.faq-cta .dot { color:var(--border-light); }

.faq-empty { text-align:center; padding:24px; color:var(--text-muted); }
