/* ==========================================================================
   Holyoke Family Dental - Main Stylesheet
   Design system inherited from theme; palette derived from the clinic logo
   (royal blue #2B3F9E + red #C81E30).
   Load order: bootstrap.min.css -> bootstrap-icons.css -> style.css
   ========================================================================== */

/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
  --t9: #1B2A6B;
  --t8: #22337F;
  --t7: #2B3F9E;
  --t5: #4361C9;
  --t3: #8FA2E6;
  --t1: #E5EAFB;
  --t0: #F3F5FD;
  --navy: #131B3F;
  --slate: #4C5470;
  --slate-light: #626A87;
  --bd: #DDE2F0;
  --bd-light: #ECEFF8;
  --bg: #F3F5FC;
  --base: #FBFCFE;
  --red: #C81E30;
  --red-dark: #A11827;
  --red-light: #FDECEE;
  --ok: #2F8064;
  --star: #F5A623;
  --shadow-sm: 0 2px 8px rgba(19, 27, 63, 0.05);
  --shadow-md: 0 8px 24px rgba(19, 27, 63, 0.09);
  --shadow-lg: 0 16px 36px rgba(19, 27, 63, 0.13);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a11y-scale: 1;
  --header-h: 84px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: calc(100% * var(--a11y-scale));
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.65;
  background: var(--base);
  margin: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

a {
  color: var(--t7);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--t9);
}

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

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--t1);
  color: var(--navy);
}

/* Skip link (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  background: var(--navy);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ==========================================================================
   Layout & Utility Classes
   ========================================================================== */
.w {
  width: min(1240px, 92%);
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.tint {
  background: var(--bg);
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
  max-width: 62ch;
  margin-top: 1rem;
}

.section-intro {
  text-align: center;
  max-width: 740px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
}

.section-intro .lead {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.text-highlight {
  color: var(--red);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0 1.6rem;
  border-radius: var(--radius-sm);
  background: var(--t7);
  color: #fff;
  font: 600 15.5px var(--font-body);
  text-decoration: none;
  border: 2px solid var(--t7);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(43, 63, 158, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--t9);
  border-color: var(--t9);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 42, 107, 0.3);
}

.btn:active {
  background: var(--t9) !important;
  border-color: var(--t9) !important;
  color: #fff !important;
}

.btn .bi {
  font-size: 1.05em;
  line-height: 1;
}

.btn .btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn.red {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(200, 30, 48, 0.3);
}

.btn.red:hover,
.btn.red:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn.ghost {
  background: transparent;
  color: var(--t7);
  box-shadow: none;
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: var(--t1);
  color: var(--t9);
  border-color: var(--t7);
}

.btn.white {
  background: #fff;
  color: var(--t9);
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn.white:hover,
.btn.white:focus-visible {
  background: var(--t1);
  border-color: var(--t1);
  color: var(--t9);
}

.btn.glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.btn.glass:hover,
.btn.glass:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  border-color: #fff;
}

.btn.sm {
  min-height: 44px;
  padding: 0 1.1rem;
  font-size: 15px;
}

.link {
  font-weight: 600;
  text-decoration: none;
  color: var(--t7);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link:hover {
  text-decoration: underline;
  color: var(--t9);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(221, 226, 240, 0.9);
  color: var(--t9);
  padding: 0.4rem 1.05rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}

.badge-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(47, 128, 100, 0.2);
}

.badge-pill.red {
  background: var(--red-light);
  border-color: rgba(200, 30, 48, 0.25);
  color: var(--red-dark);
}

.badge-pill.red .dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 30, 48, 0.2);
}

.badge-pill.dark {
  background: rgba(229, 234, 251, 0.12);
  border-color: rgba(229, 234, 251, 0.3);
  color: #E5EAFB;
  backdrop-filter: blur(10px);
}

.badge-pill.dark .dot {
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.28);
  animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.75;
  }
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.topbar {
  background: var(--navy);
  color: #C9D1F0;
  font-size: 0.875rem;
}

.topbar .w {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
  color: #fff;
}

.topbar .tb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar .tb-item .bi {
  color: #FF8C98;
}

.topbar .tb-group {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.topbar .walkin {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#site-header {
  min-height: calc(var(--header-h) + 40px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(251, 252, 254, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bd);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(19, 27, 63, 0.08);
}

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

.site-nav .brand img {
  height: 62px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu>li {
  position: relative;
}

.nav-menu>li>a,
.nav-menu>li>button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  white-space: nowrap;
  color: var(--navy);
  background: none;
  border: 0;
  font-family: var(--font-body);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-menu>li>a:hover,
.nav-menu>li>button:hover,
.nav-menu>li>button[aria-expanded="true"] {
  color: var(--t7);
  background: var(--t0);
}

.nav-menu a.active,
.nav-menu button.active {
  color: var(--t7);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--red);
  border-radius: 8px 8px 0 0;
}

.nav-menu .dropdown-toggle::after {
  display: none;
}

.nav-menu .dropdown-toggle .bi {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.nav-menu .dropdown-toggle[aria-expanded="true"] .bi {
  transform: rotate(180deg);
}

.nav-menu .dropdown-menu {
  border: 1px solid var(--bd);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 250px;
  margin-top: 0.4rem !important;
}

.nav-menu .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  color: var(--navy);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-menu .dropdown-item .bi {
  color: var(--t7);
}

.nav-menu .dropdown-item:hover,
.nav-menu .dropdown-item:focus,
.nav-menu .dropdown-item.active {
  background: var(--t1);
  color: var(--t9);
}

.nav-menu .dropdown-divider {
  border-color: var(--bd);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-actions .btn {
  white-space: nowrap;
}

.tel {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--t7);
  text-decoration: none;
  white-space: nowrap;
}

.tel:hover {
  color: var(--red);
}

.tel .tel-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 10px;
  min-height: 46px;
  min-width: 46px;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile offcanvas navigation */
.mobile-nav .offcanvas-header {
  border-bottom: 1px solid var(--bd);
}

.mobile-nav .offcanvas-header img {
  height: 48px;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav .m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 0.25rem;
  border: 0;
  border-bottom: 1px solid var(--bd-light);
  background: none;
  color: var(--navy);
  font: 600 1.05rem var(--font-body);
  text-decoration: none;
  text-align: left;
}

.mobile-nav .m-link.active {
  color: var(--t7);
}

.mobile-nav .m-sub a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: var(--slate);
  text-decoration: none;
  border-left: 2px solid var(--bd);
}

.mobile-nav .m-sub a:hover,
.mobile-nav .m-sub a.active {
  color: var(--t7);
  border-left-color: var(--red);
}

.mobile-nav .m-cta {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   Hero Section with Background Slider
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 124px);
  min-height: calc(100dvh - 124px);
  display: flex;
  align-items: center;
  padding: clamp(3.5rem, 7vh, 6rem) 0 clamp(5rem, 9vh, 7rem);
  overflow: hidden;
  background: #0E1433;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-slide.active img {
  animation: kenBurns 9s ease-out both;
}

@keyframes kenBurns {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(14, 20, 51, 0.9) 0%, rgba(14, 20, 51, 0.72) 42%, rgba(14, 20, 51, 0.38) 75%, rgba(14, 20, 51, 0.3) 100%),
    linear-gradient(180deg, rgba(14, 20, 51, 0.3) 0%, transparent 40%, rgba(14, 20, 51, 0.7) 100%);
  pointer-events: none;
}

.hero .w {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hero h1 .text-highlight {
  background: linear-gradient(135deg, #FF8C98 0%, #FFE3E6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.62;
  color: rgba(243, 245, 253, 0.94);
  max-width: 55ch;
  margin: 1.1rem 0 1.9rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.acts {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.trust {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  color: rgba(229, 234, 251, 0.9);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-item .stars {
  color: var(--star);
  font-size: 0.85rem;
  display: inline-flex;
  gap: 2px;
}

.trust b {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.24);
}

.hero-slider-nav {
  position: absolute;
  bottom: 28px;
  right: clamp(16px, 4vw, 50px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 20, 51, 0.72);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0 4px;
}

.hero-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enlarge the tap area to 24x24px (WCAG 2.5.8) without changing the look */
.hero-dot::after {
  content: '';
  position: absolute;
  inset: -7px;
}

.hero-dot[aria-current="true"] {
  width: 26px;
  border-radius: var(--radius-full);
  background: #FF8C98;
}

/* ==========================================================================
   Page Hero / Breadcrumbs
   ========================================================================== */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #111A4A 0%, var(--t9) 45%, var(--t8) 100%);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(67, 97, 201, 0.35), transparent 45%),
    radial-gradient(circle at 8% 85%, rgba(200, 30, 48, 0.2), transparent 50%);
  pointer-events: none;
}

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

.page-hero .hero-inner {
  max-width: 860px;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.page-hero .lead {
  color: #D4DBF5;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.6;
  margin-top: 0;
}

.page-hero .lead strong {
  color: #fff;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  color: #B9C3EA;
}

.breadcrumbs a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  color: #fff;
}

.breadcrumbs .bi {
  font-size: 0.7rem;
  opacity: 0.7;
}

.breadcrumbs [aria-current] {
  color: #FFC2C8;
  font-weight: 600;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat-item b {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-stat-item b .bi {
  color: #FF8C98;
  font-size: 1.2rem;
}

.hero-stat-item span {
  color: #B9C3EA;
  font-size: 0.9rem;
}

/* ==========================================================================
   Cards (generic)
   ========================================================================== */
.tcard {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--t3);
}

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--t1);
  color: var(--t7);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.icon-box.red {
  background: var(--red-light);
  color: var(--red);
}

/* ==========================================================================
   Insurance Logos
   ========================================================================== */
.logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.logos .logo-tile {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: grid;
  place-items: center;
  height: 130px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logos .logo-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.logos img {
  max-height: 90px;
  max-width: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Offers
   ========================================================================== */
.offer-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bd);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.offer-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.offer-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.offer-note {
  font-size: 0.82rem;
  color: var(--slate-light);
  margin-top: 1.5rem;
}

/* ==========================================================================
   Doctor Spotlight / About
   ========================================================================== */
.photo-frame {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.photo-glow {
  position: absolute;
  inset: 5%;
  background: radial-gradient(circle, rgba(67, 97, 201, 0.25) 0%, rgba(229, 234, 251, 0) 70%);
  filter: blur(28px);
  z-index: 0;
}

.photo-wrapper {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(19, 27, 63, 0.2), 0 0 0 1px rgba(221, 226, 240, 0.8);
  background: #fff;
}

.photo-wrapper img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.photo-wrapper:hover img {
  transform: scale(1.03);
}

.floating-badge {
  position: absolute;
  bottom: 18px;
  left: -14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 0.7rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 10px 24px -6px rgba(19, 27, 63, 0.18);
  animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.floating-badge .icon-box {
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
  margin: 0;
}

.floating-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.25;
}

.floating-badge span {
  font-size: 0.78rem;
  color: var(--slate);
}

.exp-pill {
  position: absolute;
  top: 16px;
  right: -10px;
  z-index: 2;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 8px 18px -4px rgba(19, 27, 63, 0.3);
}

.exp-pill .bi {
  color: #FF8C98;
}

.about-collage {
  position: relative;
  padding: 0 0 3rem 3rem;
}

.about-collage .main-img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-collage .sub-img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
}

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--navy);
  font-weight: 500;
}

.check-list .bi {
  color: var(--ok);
  font-size: 1.15rem;
  line-height: 1.4;
  flex-shrink: 0;
}

blockquote.callout {
  font: 650 1.25rem/1.45 var(--font-head);
  color: var(--t7);
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--red);
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.svc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--t3);
  color: inherit;
}

.svc-card .svc-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}

.svc-card .svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.svc-card:hover .svc-img img {
  transform: scale(1.05);
}

.svc-card .svc-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.svc-card h3 {
  font-size: 1.15rem;
  transition: color 0.2s ease;
}

.svc-card:hover h3 {
  color: var(--t7);
}

.svc-card p {
  font-size: 0.94rem;
  line-height: 1.6;
}

.svc-card .link {
  margin-top: auto;
  padding-top: 0.4rem;
}

.svc-card .link .bi {
  transition: transform 0.2s ease;
}

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

/* Filter / search bar */
.filter-bar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  flex: 1 1 300px;
  max-width: 420px;
}

.search-box .bi {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-light);
}

.search-box input {
  padding-left: 2.6rem !important;
}

.chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chips button {
  min-height: 42px;
  padding: 0 1.05rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--bd);
  background: #fff;
  font: 500 0.92rem var(--font-body);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chips button:hover {
  border-color: var(--t7);
}

.chips button[aria-pressed="true"] {
  background: var(--t7);
  border-color: var(--t7);
  color: #fff;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--slate);
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.why-card .icon-box {
  margin: 0;
}

.why-card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.why-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
}

.why-card p {
  font-size: 0.93rem;
}

/* ==========================================================================
   Emergency Band
   ========================================================================== */
.emerg {
  position: relative;
  background: linear-gradient(120deg, var(--red-dark) 0%, var(--red) 55%, #D9384A 100%);
  color: #FFE3E6;
  overflow: hidden;
}

.emerg::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.emerg .w {
  position: relative;
  z-index: 1;
}

.emerg h2 {
  color: #fff;
}

.emerg p {
  font-size: 1.1rem;
  max-width: 52ch;
  margin-top: 0.8rem;
}

.emerg img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 5px solid rgba(255, 255, 255, 0.9);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ==========================================================================
   Media / Videos
   ========================================================================== */
.media-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--bd);
}

.media-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.review-card {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.review-card .quote-icon {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: 2.2rem;
  color: var(--t1);
  line-height: 1;
}

.review-card .stars {
  color: var(--star);
  display: flex;
  gap: 3px;
}

.review-card p {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.65;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bd-light);
}

.review-author .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--t7);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
}

.review-author strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.review-author span {
  font-size: 0.8rem;
  color: var(--slate-light);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.review-author img {
  width: 16px;
  height: 16px;
}

.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.rating-summary img {
  width: 34px;
  height: 34px;
}

.rating-summary b {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy);
}

.rating-summary .stars {
  color: var(--star);
}

/* ==========================================================================
   Blog Cards
   ========================================================================== */
.bp-card {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(19, 27, 63, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.bp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(19, 27, 63, 0.13);
  border-color: var(--t3);
  color: inherit;
}

.bp-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}

.bp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bp-card:hover .bp-card-img img {
  transform: scale(1.04);
}

.bp-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--t7);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
}

.bp-card-body {
  padding: 1.35rem 1.45rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bp-date {
  font-size: 0.82rem;
  color: var(--slate-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.bp-card-body h3 {
  font-size: 1.07rem;
  line-height: 1.38;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}

.bp-card:hover .bp-card-body h3 {
  color: var(--t7);
}

.bp-card-body p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
  flex: 1;
}

.bp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--bd);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--t7);
}

.bp-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--bd);
  display: grid;
  place-items: center;
  color: var(--t7);
  transition: all 0.2s ease;
}

.bp-card:hover .bp-arrow {
  background: var(--t7);
  border-color: var(--t7);
  color: #fff;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list details {
  border-bottom: 1px solid var(--bd);
  padding: 1.15rem 0;
}

.faq-list summary {
  cursor: pointer;
  font: 600 1.08rem var(--font-head);
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .bi {
  color: var(--t7);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-list details[open] summary .bi {
  transform: rotate(45deg);
}

.faq-list details p {
  margin-top: 0.7rem;
}

/* ==========================================================================
   Contact / Booking Form
   ========================================================================== */
.book {
  background: linear-gradient(135deg, var(--t9) 0%, var(--t7) 100%);
  color: #D4DBF5;
  position: relative;
  overflow: hidden;
}

.book::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(200, 30, 48, 0.22), transparent 40%);
  pointer-events: none;
}

.book .w {
  position: relative;
}

.book h2 {
  color: #fff;
}

.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  margin: 2rem 0;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-list .ci {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-list strong {
  display: block;
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-list a {
  color: #fff;
  font-weight: 500;
}

.contact-list a:hover {
  color: #FFC2C8;
}

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #0E1433;
  aspect-ratio: 16 / 10;
  position: relative;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.consent-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  color: #D4DBF5;
  font-size: 0.92rem;
  background: linear-gradient(135deg, #111A4A, #1B2A6B);
}

.consent-placeholder .bi {
  font-size: 2rem;
  color: #FF8C98;
  display: block;
  margin-bottom: 0.5rem;
}

.consent-placeholder.light {
  background: var(--bg);
  color: var(--slate);
  border: 1px dashed var(--bd);
  border-radius: var(--radius-md);
}

.form-card {
  background: #fff;
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  box-shadow: 0 24px 50px rgba(8, 12, 40, 0.3);
  color: var(--slate);
}

.form-card h3 {
  margin-bottom: 0.35rem;
}

.form-card .form-sub {
  font-size: 0.93rem;
  margin-bottom: 1.4rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-label .req {
  color: var(--red);
}

.form-control,
.form-select {
  font: inherit;
  color: var(--navy);
  padding: 0.75rem 1rem;
  border: 1px solid #C3CADF;
  border-radius: 10px;
  min-height: 50px;
  background-color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--t7);
  box-shadow: 0 0 0 4px rgba(43, 63, 158, 0.15);
}

.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.2em;
  border-color: #9AA3C2;
}

.form-check-input:checked {
  background-color: var(--t7);
  border-color: var(--t7);
}

.form-check-label {
  font-size: 0.86rem;
  line-height: 1.5;
}

.form-check-label a {
  font-weight: 600;
}

.form-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.5;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: var(--slate);
}

.form-note .bi {
  color: var(--t7);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.error {
  color: var(--red-dark);
}

.invalid-feedback {
  color: var(--red-dark);
  font-weight: 500;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid,
.form-control.is-invalid {
  border-color: var(--red);
}

/* ==========================================================================
   Doctor Profiles
   ========================================================================== */
.doctor-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bd);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.doctor-card.reverse {
  grid-template-columns: 1fr 360px;
}

.doctor-card.reverse .doctor-media {
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--bd-light);
}

.doctor-media {
  background: linear-gradient(180deg, #EEF1FC 0%, #E1E7FA 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--bd-light);
}

.doctor-img-frame {
  width: 250px;
  height: 310px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(19, 27, 63, 0.18);
  border: 4px solid #fff;
  background: #fff;
  transition: transform 0.35s ease;
}

.doctor-card:hover .doctor-img-frame {
  transform: scale(1.02);
}

.doctor-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doctor-tagline {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--t9);
  border: 1px solid var(--bd);
}

.tag-badge .bi {
  color: var(--red);
}

.doctor-details {
  padding: clamp(2rem, 4vw, 3.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-header {
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--bd-light);
}

.doctor-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

.doctor-role {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--red);
  font-weight: 600;
  display: block;
  margin-top: 0.3rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--bd);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
}

.chip .bi {
  color: var(--t7);
}

.doctor-bio p {
  color: #3F4763;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.doctor-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Service / Blog Detail
   ========================================================================== */
.service-hero {
  position: relative;
  background: linear-gradient(135deg, #111A4A 0%, var(--t9) 50%, var(--t8) 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(67, 97, 201, 0.35), transparent 50%),
    radial-gradient(circle at 5% 90%, rgba(200, 30, 48, 0.18), transparent 45%);
  pointer-events: none;
}

.service-hero .w {
  position: relative;
  z-index: 2;
}

.service-hero h1 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.service-hero .lead {
  color: #D4DBF5;
  margin-top: 0;
}

.hero-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 5px solid rgba(255, 255, 255, 0.92);
  background: #fff;
}

.hero-img-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.hero-pills .pill {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-pills .pill .bi {
  color: #7EE2B8;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: #D4DBF5;
  font-size: 0.93rem;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3.5rem;
  align-items: start;
}

/* Long-form content typography */
.prose {
  color: #3F4763;
  font-size: 1.05rem;
  line-height: 1.8;
}

.prose>*+* {
  margin-top: 1.15rem;
}

.prose h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.75rem);
  margin-top: 2.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--t1);
  line-height: 1.25;
}

.prose h3 {
  font-size: 1.22rem;
  margin-top: 2rem;
  line-height: 1.3;
}

.prose>h2:first-child,
.prose>h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.9rem;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--t1);
  box-shadow: inset 0 0 0 3px var(--t7);
}

.prose ol {
  counter-reset: step;
}

.prose ol li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1.2rem 1rem 3.7rem;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.prose ol li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--t1);
  color: var(--t7);
  font: 800 0.95rem/32px var(--font-head);
  text-align: center;
}

.prose strong {
  color: var(--navy);
}

.prose a {
  font-weight: 600;
}

.prose .ratio {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.prose .ratio iframe {
  border: 0;
}

.disclaimer-note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 2.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--bd);
  border-left: 4px solid var(--t7);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--slate);
}

.disclaimer-note .bi {
  color: var(--t7);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.sidebar-card.primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--t9) 100%);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-md);
}

.sidebar-card.primary h2 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.sidebar-card.primary p {
  color: #D4DBF5;
  font-size: 0.95rem;
  margin-bottom: 1.3rem;
}

.sidebar-phone {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFC2C8;
  margin-bottom: 1.3rem;
  text-decoration: none;
}

.sidebar-phone:hover {
  color: #fff;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.94rem;
  background: var(--bg);
  border: 1px solid var(--bd);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-list a:hover {
  background: var(--t1);
  border-color: var(--t7);
  color: var(--t9);
  transform: translateX(3px);
}

.sidebar-list a[aria-current="page"] {
  background: var(--t7);
  color: #fff;
  border-color: var(--t7);
}

.sidebar-post {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
  padding: 0.5rem 0;
}

.sidebar-post+.sidebar-post {
  border-top: 1px solid var(--bd-light);
}

.sidebar-post img {
  width: 70px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-post span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.sidebar-post:hover span {
  color: var(--t7);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.post-nav a {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid var(--bd);
  border-radius: var(--radius-md);
  text-decoration: none;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-nav a:hover {
  border-color: var(--t7);
  box-shadow: var(--shadow-sm);
}

.post-nav small {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--slate-light);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.post-nav .next {
  text-align: right;
}

.post-nav .next small {
  justify-content: flex-end;
}

/* ==========================================================================
   Call to Action Banner
   ========================================================================== */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--t9) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 1rem;
  border-radius: 36px;
  margin: clamp(2rem, 5vw, 4rem) auto;
  width: min(1200px, 92%);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(67, 97, 201, 0.35), transparent 60%),
    radial-gradient(circle at 85% 85%, rgba(200, 30, 48, 0.25), transparent 50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #D4DBF5;
  font-size: 1.12rem;
  margin-bottom: 2.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.legal-toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-light);
  margin-bottom: 0.8rem;
}

.legal-toc ol {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.legal-toc a {
  color: var(--navy);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--t7);
  text-decoration: underline;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #D4DBF5;
}

.prose.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose.legal th,
.prose.legal td {
  border: 1px solid var(--bd);
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

.prose.legal th {
  background: var(--bg);
  color: var(--navy);
}

.info-box {
  background: var(--t0);
  border: 1px solid var(--bd);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
}

.info-box.warn {
  background: var(--red-light);
  border-color: rgba(200, 30, 48, 0.25);
}

/* ==========================================================================
   Thank You Page
   ========================================================================== */
.thanks-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0;
  background: radial-gradient(circle at 15% 15%, var(--t1), transparent 40%),
    radial-gradient(circle at 85% 85%, var(--red-light), transparent 40%), var(--base);
}

.thanks-card {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 820px;
  width: 100%;
  text-align: center;
}

.thanks-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  background: #E6F4EE;
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 3rem;
  box-shadow: 0 0 0 12px rgba(47, 128, 100, 0.08);
  animation: popIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

@keyframes popIn {
  from {
    transform: scale(0.4);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.thanks-card h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.thanks-card .lead {
  margin: 0 auto 2rem;
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
  margin: 2rem 0;
}

.next-steps .step {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.next-steps .step .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--t7);
  color: #fff;
  font: 800 0.95rem/34px var(--font-head);
  text-align: center;
  margin-bottom: 0.7rem;
}

.next-steps h2 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.next-steps p {
  font-size: 0.88rem;
}

.thanks-emergency {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 1.2rem;
  background: var(--red-light);
  border-radius: var(--radius-md);
  color: var(--red-dark);
  font-weight: 600;
  margin-bottom: 2rem;
}

.thanks-emergency a {
  color: var(--red-dark);
}

/* 404 */
.error-code {
  font: 800 clamp(5rem, 16vw, 9rem)/1 var(--font-head);
  color: var(--t1);
  -webkit-text-stroke: 2px var(--t7);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(135deg, var(--navy) 0%, #0B1030 100%);
  color: #B9C2E3;
  padding: 4.5rem 0 2rem;
  font-size: 0.95rem;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 0.55rem 0;
}

.site-footer a,
.site-footer .linklike {
  text-decoration: none;
  color: #C9D1F0;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-footer a:hover,
.site-footer .linklike:hover {
  color: #fff;
}

.site-footer .nav-col a:hover {
  transform: translateX(4px);
}

.footer-logo {
  display: inline-block;
  background: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  margin-bottom: 1.2rem;
}

.footer-logo img {
  height: 56px;
  width: auto;
}

.footer-contact {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.6rem;
}

.footer-contact .bi {
  color: #FF8C98;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 0.45rem;
}

.hours-list span:last-child {
  color: #fff;
  font-weight: 500;
}

.hours-badge {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(200, 30, 48, 0.2);
  border: 1px solid rgba(255, 140, 152, 0.4);
  color: #FFD5DA;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--red);
  transform: translateY(-3px);
}

.footer-disclaimer {
  margin-top: 2.8rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  line-height: 1.6;
  color: #AEB8DC;
}

.footer-disclaimer strong {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.legal-links .linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* ==========================================================================
   Floating UI: Scroll Top, Mobile Bar, Accessibility Widget
   ========================================================================== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--t7) 0%, var(--t9) 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(43, 63, 158, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1040;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-bar {
  display: none;
}

.a11y-trigger {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 1041;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--t7);
  color: #fff;
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(19, 27, 63, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.a11y-trigger:hover {
  transform: scale(1.06);
  background: var(--t9);
}

.a11y-panel {
  --bs-offcanvas-width: 380px;
}

.a11y-panel .offcanvas-header {
  background: var(--t7);
  color: #fff;
}

.a11y-panel .offcanvas-title {
  color: #fff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.a11y-panel .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 1;
}

.a11y-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-light);
  margin: 1.2rem 0 0.7rem;
}

.a11y-size {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 0.5rem;
}

.a11y-size button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--bd);
  background: #fff;
  color: var(--navy);
  font-size: 1.2rem;
  cursor: pointer;
}

.a11y-size button:hover {
  border-color: var(--t7);
  color: var(--t7);
}

.a11y-size output {
  font-weight: 700;
  color: var(--navy);
}

.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.a11y-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 92px;
  padding: 0.7rem 0.5rem;
  border-radius: 12px;
  border: 2px solid var(--bd);
  background: #fff;
  color: var(--navy);
  font: 600 0.86rem var(--font-body);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.a11y-opt .bi {
  font-size: 1.5rem;
  color: var(--t7);
}

.a11y-opt:hover {
  border-color: var(--t5);
}

.a11y-opt[aria-pressed="true"] {
  border-color: var(--t7);
  background: var(--t1);
}

.a11y-opt[aria-pressed="true"]::after {
  content: 'On';
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--t7);
  border-radius: var(--radius-full);
  padding: 0 0.5rem;
}

.a11y-foot {
  border-top: 1px solid var(--bd);
  margin-top: 1.4rem;
  padding-top: 1rem;
  font-size: 0.82rem;
}

/* Accessibility modes (applied to <html>) */
html.a11y-contrast body {
  background: #fff;
  color: #000;
}

html.a11y-contrast {
  --slate: #111;
  --slate-light: #222;
  --navy: #000;
  --t7: #0A1A80;
  --t9: #000845;
  --bd: #333;
  --bd-light: #555;
}

html.a11y-contrast .hero-overlay {
  background: rgba(0, 0, 0, 0.82);
}

html.a11y-contrast .prose,
html.a11y-contrast .doctor-bio p {
  color: #000;
}

html.a11y-contrast .btn {
  border-width: 3px;
}

/* Filter on <html> so fixed elements (mobile bar, buttons, banner) keep their position */
html.a11y-grayscale {
  filter: grayscale(1);
}

html.a11y-links a:not(.btn) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  background: #FFF6BF;
  color: #0A1A80 !important;
}

html.a11y-readable,
html.a11y-readable body,
html.a11y-readable h1,
html.a11y-readable h2,
html.a11y-readable h3,
html.a11y-readable h4,
html.a11y-readable .btn,
html.a11y-readable button,
html.a11y-readable input,
html.a11y-readable select,
html.a11y-readable textarea {
  font-family: Verdana, Tahoma, Arial, sans-serif !important;
  letter-spacing: 0.02em !important;
}

html.a11y-spacing body p,
html.a11y-spacing body li {
  line-height: 2 !important;
  letter-spacing: 0.04em !important;
  word-spacing: 0.12em !important;
}

html.a11y-noanim *,
html.a11y-noanim *::before,
html.a11y-noanim *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.a11y-cursor,
html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1.2' d='M4 2l15 11-6.5 1.2L16 21l-3 1.4-3.4-6.9L4 20z'/%3E%3C/svg%3E") 4 2, auto !important;
}

html.a11y-focus *:focus {
  outline: 4px solid #FFB800 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 7px #000 !important;
}

/* ==========================================================================
   Cookie Consent
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  width: min(1100px, calc(100% - 32px));
  z-index: 1060;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(19, 27, 63, 0.28);
  padding: 1.4rem 1.6rem;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cookie-banner.show {
  transform: translate(-50%, 0);
}

.cookie-banner .cb-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--t1);
  color: var(--t7);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cookie-banner h2 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.cookie-banner p {
  font-size: 0.88rem;
  line-height: 1.55;
}

.cookie-banner .cb-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-banner .btn {
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.92rem;
}

.consent-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--bd-light);
}

.consent-row:last-child {
  border-bottom: 0;
}

.consent-row h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.consent-row p {
  font-size: 0.87rem;
}

.consent-row .form-switch .form-check-input {
  width: 2.8em;
  height: 1.5em;
  margin: 0;
  cursor: pointer;
}

.always-on {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ok);
  white-space: nowrap;
}

.modal-content {
  border-radius: 20px;
  border: 0;
}

.modal-header {
  border-bottom-color: var(--bd);
}

.modal-footer {
  border-top-color: var(--bd);
  gap: 0.5rem;
}

.gpc-note {
  display: none;
  margin-top: 0.8rem;
}

html.gpc-on .gpc-note {
  display: flex;
}

/* ==========================================================================
   Reveal Animations
   ========================================================================== */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
  .nav-menu>li>a,
  .nav-menu>li>button {
    padding: 0.55rem 0.55rem;
    font-size: 0.94rem;
  }

  .nav-actions .tel,
  .topbar .hide-lg {
    display: none;
  }

  .site-nav .brand img {
    height: 54px;
  }

  .logos {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 991.98px) {
  :root {
    --header-h: 74px;
  }

  .nav-menu,
  .nav-actions .tel,
  .nav-actions .btn {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav .brand img {
    height: 52px;
  }

  .topbar .hide-md {
    display: none !important;
  }

  .detail-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .legal-toc {
    position: static;
  }

  .doctor-card,
  .doctor-card.reverse {
    grid-template-columns: 1fr;
  }

  .doctor-card.reverse .doctor-media {
    order: 0;
    border-left: 0;
  }

  .doctor-media {
    border-right: 0;
    border-bottom: 1px solid var(--bd-light);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .next-steps {
    grid-template-columns: 1fr;
  }

  .about-collage {
    max-width: 520px;
    margin: 0 auto;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  body {
    padding-bottom: 76px;
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1035;
    background: #fff;
    padding: 0.7rem 4%;
    border-top: 1px solid var(--bd);
    box-shadow: 0 -6px 18px rgba(19, 27, 63, 0.08);
  }

  .mobile-bar .btn {
    min-height: 48px;
    padding: 0 0.4rem;
    font-size: clamp(13px, 3.4vw, 15px);
  }

  .scroll-top {
    bottom: 90px;
  }

  .a11y-trigger {
    bottom: 90px;
    left: 14px;
    width: 50px;
    height: 50px;
  }

  .cookie-banner {
    bottom: 84px;
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: auto;
    padding: 4rem 0 6rem;
  }

  .trust-divider {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-badge {
    left: 6px;
  }

  .exp-pill {
    right: 6px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .about-collage {
    padding: 0 0 2rem 1.5rem;
  }

  .doctor-img-frame {
    width: 220px;
    height: 270px;
  }

  .cookie-banner .cb-actions {
    width: 100%;
  }

  .cookie-banner .cb-actions .btn {
    flex: 1 1 auto;
  }

  .topbar .w {
    justify-content: center;
    padding: 0.4rem 0;
  }

  .topbar .tb-group:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {

  #site-header,
  #site-footer,
  .mobile-bar,
  .a11y-trigger,
  .scroll-top,
  .cookie-banner {
    display: none !important;
  }
}
