/* =========================================================================
   GASTROENTEROLOGY BRONX — CORE STYLESHEET
   Design system, tokens, typography, and reusable components.
   Built on Bootstrap 5.3+. This file holds source-of-truth design tokens —
   update palette/type/spacing here and it cascades across all 50+ pages.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Brand palette (from brief) */
  --gb-primary: #0D5EA6;
  --gb-primary-dark: #0A4A85;
  --gb-primary-darker: #083A6B;
  --gb-primary-light: #E3EFF9;
  --gb-secondary: #16B3A3;
  --gb-secondary-dark: #119186;
  --gb-secondary-light: #E1F7F4;
  --gb-bg: #F8FBFD;
  --gb-text: #1E293B;
  --gb-text-muted: #5B6B7E;
  --gb-accent: #EEF8F8;
  --gb-white: #FFFFFF;
  --bs-navbar-nav-link-padding-x: 0.8rem !important;

  /* Semantic */
  --gb-border: #E1E9F1;
  --gb-success: #16B3A3;
  --gb-warning: #E0A106;
  --gb-danger: #D6455D;
  --gb-focus: #0D5EA6;

  /* Gradients — the signature "gut-line" gradient, echoing the logo mark */
  --gb-gradient-brand: linear-gradient(120deg, var(--gb-primary) 0%, var(--gb-secondary) 100%);
  --gb-gradient-soft: linear-gradient(180deg, var(--gb-accent) 0%, var(--gb-bg) 100%);
  --gb-gradient-hero: radial-gradient(120% 140% at 85% -10%, rgba(22,179,163,0.16) 0%, rgba(13,94,166,0.06) 45%, rgba(248,251,253,0) 70%),
                       radial-gradient(90% 120% at -10% 110%, rgba(13,94,166,0.10) 0%, rgba(248,251,253,0) 55%);

  /* Typography */
  --font-display: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Shadows — soft, clinical, never harsh */
  --shadow-sm: 0 2px 8px rgba(16, 44, 74, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 44, 74, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 44, 74, 0.12);
  --shadow-brand: 0 12px 32px rgba(13, 94, 166, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;

  /* Layout */
  --header-height: 88px;
  --container-max: 1320px;
}

/* -------------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--gb-text);
  background-color: var(--gb-bg);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: var(--font-display);
  color: var(--gb-primary-darker);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

h1 { font-weight: 700; }

p { color: var(--gb-text-muted); }

a { color: var(--gb-primary); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--gb-secondary-dark); }

::selection { background: var(--gb-secondary); color: #fff; }

/* Visible focus state — WCAG 2.2 AA */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gb-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--gb-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 2000;
  transition: top var(--dur-fast) var(--ease-out);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

img { max-width: 100%; height: auto; }

.container, .container-fluid.px-custom {
  max-width: var(--container-max);
}

section { position: relative; }
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 0.8rem;
        padding-left: 0.8rem;
    }
}

.dropdown-menu[data-bs-popper] {
    left: 50%;
}

/* -------------------------------------------------------------------------
   3. UTILITIES
   ------------------------------------------------------------------------- */
.text-primary-brand { color: var(--gb-primary) !important; }
.text-secondary-brand { color: var(--gb-secondary) !important; }
.bg-brand-accent { background-color: var(--gb-accent) !important; }
.bg-brand-soft { background: var(--gb-gradient-soft) !important; }
.bg-primary-brand { background-color: var(--gb-primary) !important; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gb-secondary-dark);
  background: var(--gb-secondary-light);
  padding: 8px 16px 8px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gb-secondary);
  flex: none;
}

.section-pad { padding-block: clamp(60px, 8vw, 110px); }
.section-pad-sm { padding-block: clamp(40px, 5vw, 70px); }

.lead-muted {
  color: var(--gb-text-muted);
  font-size: 1.125rem;
}

/* Signature divider — a flowing line inspired by the logo's coiled gut mark.
   Used sparingly between major sections to give the site a distinct visual signature. */
.gut-divider {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 0;
}
.gut-divider svg { width: 100%; height: 100%; display: block; }

/* -------------------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.75rem;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  border-width: 2px;
}
.btn:focus-visible { outline-offset: 3px; }

.btn-brand-primary {
  background: var(--gb-gradient-brand);
  border: 2px solid transparent;
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-brand-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(13, 94, 166, 0.26);
  color: #fff;
}
.btn-brand-primary:active { transform: translateY(0); }

.btn-brand-outline {
  background: transparent;
  border: 2px solid var(--gb-primary);
  color: var(--gb-primary);
}
.btn-brand-outline:hover {
  background: var(--gb-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-brand-ghost {
  background: rgba(255,255,255,0.14);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-brand-ghost:hover {
  background: #fff;
  color: var(--gb-primary);
}

.btn-brand-secondary {
  background: var(--gb-secondary);
  border: 2px solid var(--gb-secondary);
  color: #fff;
}
.btn-brand-secondary:hover {
  background: var(--gb-secondary-dark);
  border-color: var(--gb-secondary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm-pill { padding: 0.55rem 1.25rem; font-size: 0.9rem; }

.btn-icon-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}

/* -------------------------------------------------------------------------
   5. HEADER / STICKY NAVIGATION
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(248, 251, 253, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(13, 94, 166, 0.08);
  transition: box-shadow var(--dur-med) var(--ease-out), background-color var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.topbar {
  background: var(--gb-primary-darker);
  color: rgba(255,255,255,0.92);
  font-size: 0.85rem;
}
.topbar a { color: rgba(255,255,255,0.92); }
.topbar a:hover { color: var(--gb-secondary); }
.topbar .divider { color: rgba(255,255,255,0.3); }

.navbar-brand-custom { display: flex; align-items: center; gap: 12px; }
.navbar-brand-custom img { height: auto; width: 100%; max-width: 250px; }
.navbar-brand-custom .brand-text { line-height: 1.15; }
.navbar-brand-custom .brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gb-primary-darker);
  font-size: 1.15rem;
}
.navbar-brand-custom .brand-text span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gb-secondary-dark);
  font-weight: 600;
}

.main-nav .nav-link {
  font-weight: 600;
  color: var(--gb-text);
  padding: 1.7rem 1rem;
  position: relative;
}
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1.15rem;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--gb-gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--gb-primary); }

.main-nav .nav-item.dropdown > .nav-link .bi-chevron-down {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.main-nav .nav-item.dropdown:hover > .nav-link .bi-chevron-down,
.main-nav .nav-item.dropdown.show > .nav-link .bi-chevron-down { transform: rotate(180deg); }

/* Mega menu */
.mega-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  margin-top: 0;
  border-top: 3px solid var(--gb-secondary);
}
.mega-menu .mega-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gb-secondary-dark);
  margin-bottom: 0.85rem;
}
.mega-menu .mega-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--gb-text);
  font-size: 0.925rem;
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), padding-left var(--dur-fast) var(--ease-out);
}
.mega-menu .mega-link i { color: var(--gb-secondary); font-size: 1rem; flex: none; }
.mega-menu .mega-link:hover {
  background: var(--gb-accent);
  color: var(--gb-primary);
  padding-left: 0.9rem;
}
.mega-menu .mega-feature {
  background: var(--gb-gradient-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  border: 1px solid var(--gb-border);
}

@media (min-width: 992px) {
  .mega-menu-full {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, 92vw);
  }
}

.header-cta { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--gb-primary-darker);
}
.header-phone .btn-icon-circle { background: var(--gb-accent); color: var(--gb-secondary-dark); }

/* Mobile offcanvas nav */
.offcanvas-nav .nav-link { color: var(--gb-text); font-weight: 600; padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--gb-border); }
.offcanvas-nav .accordion-button { font-weight: 600; box-shadow: none; }
.offcanvas-nav .accordion-button:not(.collapsed) { color: var(--gb-primary); background: var(--gb-accent); }

/* -------------------------------------------------------------------------
   6. FLOATING CTA
   ------------------------------------------------------------------------- */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.floating-cta .fab {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 1.35rem;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.floating-cta .fab:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.floating-cta .fab-call { background: var(--gb-gradient-brand); }
.floating-cta .fab-book {
  border-radius: var(--radius-pill);
  width: auto;
  padding: 0 22px;
  height: 56px;
  background: var(--gb-secondary);
  font-weight: 700;
  gap: 10px;
}
.floating-cta .fab-book:hover { background: var(--gb-secondary-dark); }

/* -------------------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------------------- */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: var(--gb-bg);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(70px, 10vw, 120px);
}
.hero-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gb-gradient-hero);
  pointer-events: none;
}
.hero-banner .hero-shape {
  position: absolute;
  z-index: 0;
  opacity: 0.9;
}
.hero-banner .hero-content { position: relative; z-index: 2; }
.hero-banner h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.hero-banner .hero-media {
  position: relative;
  z-index: 1;
}
.hero-banner .hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}
.hero-stat-card {
  position: absolute;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.85rem;
  z-index: 3;
}
.hero-stat-card .icon-box {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gb-gradient-brand);
  color: #fff; display: flex; align-items: center; justify-content: center;
  flex: none; font-size: 1.1rem;
}
.hero-stat-card strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--gb-primary-darker); }
.hero-stat-card span { font-size: 0.8rem; color: var(--gb-text-muted); }

/* Page hero (interior pages — shorter, with breadcrumb) */
.page-hero {
  position: relative;
  background: var(--gb-primary-darker);
  background-image:
    radial-gradient(120% 160% at 100% 0%, rgba(22,179,163,0.35) 0%, rgba(13,74,133,0) 55%),
    linear-gradient(120deg, var(--gb-primary-darker), var(--gb-primary));
  color: #fff;
  padding-block: clamp(64px, 8vw, 96px);
  overflow: hidden;
}
.page-hero h1 { color: #fff; }
.page-hero .lead-muted { color: rgba(255,255,255,0.82); }
.page-hero .gut-line-bg {
  position: absolute; right: -5%; top: -20%;
  width: 55%; opacity: 0.15;
}

/* -------------------------------------------------------------------------
   8. BREADCRUMB
   ------------------------------------------------------------------------- */
.breadcrumb-wrap {
  background: transparent;
}
.breadcrumb-custom {
  --bs-breadcrumb-divider: '›';
  margin: 0;
  flex-wrap: wrap;
}
.breadcrumb-custom .breadcrumb-item a {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.9rem;
}
.breadcrumb-custom .breadcrumb-item a:hover { color: #fff; }
.breadcrumb-custom .breadcrumb-item.active { color: #fff; font-weight: 600; font-size: 0.9rem; }
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* Light variant for use on white backgrounds (e.g. sidebar/in-body breadcrumb) */
.breadcrumb-light .breadcrumb-item a { color: var(--gb-text-muted); }
.breadcrumb-light .breadcrumb-item a:hover { color: var(--gb-primary); }
.breadcrumb-light .breadcrumb-item.active { color: var(--gb-text); }
.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before { color: var(--gb-border); }

/* -------------------------------------------------------------------------
   9. TRUST BADGES / STRIP
   ------------------------------------------------------------------------- */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--gb-border);
  border-top: 1px solid var(--gb-border);
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  color: var(--gb-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.trust-item i { color: var(--gb-secondary); font-size: 1.4rem; }

/* -------------------------------------------------------------------------
   10. CARDS — services / conditions / procedures
   ------------------------------------------------------------------------- */
.card-brand {
  background: #fff;
  border: 1px solid var(--gb-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
  height: 100%;
}
.card-brand:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-brand .card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.card-brand .card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out);
}
.card-brand:hover .card-img-wrap img { transform: scale(1.07); }
.card-brand .card-icon-badge {
  position: absolute;
  bottom: -24px; left: 20px;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gb-gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-brand);
}
.card-brand .card-body-custom { padding: 2.25rem 1.5rem 1.5rem; }
.card-brand .card-body-custom h3,
.card-brand .card-body-custom h4 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card-brand .card-link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem;
  color: var(--gb-primary);
}
.card-brand .card-link-arrow i { transition: transform var(--dur-fast) var(--ease-out); }
.card-brand:hover .card-link-arrow i { transform: translateX(4px); }

/* Compact condition "pill" card */
.condition-pill {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid var(--gb-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  height: 100%;
  transition: all var(--dur-fast) var(--ease-out);
  color: var(--gb-text);
  font-weight: 600;
}
.condition-pill .icon-box {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gb-accent); color: var(--gb-secondary-dark);
  display: flex; align-items: center; justify-content: center;
  flex: none; font-size: 1.1rem;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.condition-pill:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--gb-primary);
}
.condition-pill:hover .icon-box { background: var(--gb-gradient-brand); color: #fff; }

/* Procedure card — icon led */
.procedure-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--gb-border);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: all var(--dur-med) var(--ease-out);
}
.procedure-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.procedure-card .icon-circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gb-gradient-brand);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}

/* -------------------------------------------------------------------------
   11. DOCTOR CARD
   ------------------------------------------------------------------------- */
.doctor-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gb-border);
  transition: all var(--dur-med) var(--ease-out);
  height: 100%;
}
.doctor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.doctor-card .doctor-photo { /*aspect-ratio: 3/4;*/ overflow: hidden; position: relative; }
.doctor-card .doctor-photo img { width: 100%; /* height: 100%; object-fit: cover; */ }
.doctor-card .doctor-social {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  display: flex; gap: 8px;
  opacity: 0; transform: translateY(8px);
  transition: all var(--dur-fast) var(--ease-out);
}
.doctor-card:hover .doctor-social { opacity: 1; transform: translateY(0); }
.doctor-card .doctor-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--gb-primary);
  display: flex; align-items: center; justify-content: center;
}
.doctor-card .doctor-social a:hover { background: var(--gb-secondary); color: #fff; }
.doctor-card .doctor-body { padding: 1.5rem; }
.doctor-card .doctor-body h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }
.doctor-card .doctor-title { color: var(--gb-secondary-dark); font-weight: 600; font-size: 0.875rem; margin-bottom: 0.75rem; }
.doctor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.75rem; }
.doctor-tags .badge-tag {
  background: var(--gb-accent); color: var(--gb-secondary-dark);
  font-size: 0.72rem; font-weight: 600; padding: 5px 10px; border-radius: var(--radius-pill);
}

/* -------------------------------------------------------------------------
   12. TESTIMONIAL CARD
   ------------------------------------------------------------------------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  height: 100%;
  border: 1px solid var(--gb-border);
  position: relative;
}
.testimonial-card .quote-mark {
  position: absolute; top: 1.5rem; right: 1.75rem;
  font-size: 2.75rem; color: var(--gb-accent);
  font-family: Georgia, serif; line-height: 1;
}
.testimonial-card .stars { color: #F2A93B; letter-spacing: 2px; margin-bottom: 1rem; }
.testimonial-card p.quote { color: var(--gb-text); font-size: 1.02rem; }
.testimonial-card .patient {
  display: flex; align-items: center; gap: 12px; margin-top: 1.5rem;
}
.testimonial-card .patient img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
}
.testimonial-card .patient strong { display: block; font-size: 0.95rem; color: var(--gb-text); }
.testimonial-card .patient span { font-size: 0.8rem; color: var(--gb-text-muted); }

/* -------------------------------------------------------------------------
   13. BLOG CARD
   ------------------------------------------------------------------------- */
.blog-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gb-border); height: 100%; transition: all var(--dur-med) var(--ease-out); }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.blog-card .blog-img-wrap { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.blog-card .blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-med) var(--ease-out); }
.blog-card:hover .blog-img-wrap img { transform: scale(1.06); }
.blog-card .blog-category {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.95); color: var(--gb-primary);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.blog-card .blog-body { padding: 1.5rem; }
.blog-card .blog-meta { display: flex; align-items: center; gap: 14px; font-size: 0.8rem; color: var(--gb-text-muted); margin-bottom: 0.75rem; }
.blog-card .blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-card h3 { font-size: 1.1rem; }

/* -------------------------------------------------------------------------
   14. FAQ ACCORDION
   ------------------------------------------------------------------------- */
.faq-accordion .accordion-item {
  border: 1px solid var(--gb-border);
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #fff;
}
.faq-accordion .accordion-button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gb-primary-darker);
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--gb-primary);
  background: var(--gb-accent);
}
.faq-accordion .accordion-button::after { filter: hue-rotate(150deg) saturate(2); }
.faq-accordion .accordion-body { padding: 0 1.5rem 1.5rem; color: var(--gb-text-muted); }

/* -------------------------------------------------------------------------
   15. CTA BANNER
   ------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  background: var(--gb-gradient-brand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner .lead-muted { color: rgba(255,255,255,0.85); }
.cta-banner .cta-shape { position: absolute; opacity: 0.5; pointer-events: none; }

.cta-banner-split {
  background: var(--gb-primary-darker);
  background-image: radial-gradient(120% 180% at 100% 0%, rgba(22,179,163,0.4), rgba(13,74,133,0) 55%);
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   16. SIDEBAR (service / condition / procedure pages)
   ------------------------------------------------------------------------- */
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--gb-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--gb-accent);
}
.sidebar-widget .sidebar-link-list { list-style: none; padding: 0; margin: 0; }
.sidebar-widget .sidebar-link-list li { border-bottom: 1px solid var(--gb-border); }
.sidebar-widget .sidebar-link-list li:last-child { border-bottom: none; }
.sidebar-widget .sidebar-link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0.75rem 0.1rem;
  color: var(--gb-text);
  font-weight: 500; font-size: 0.925rem;
}
.sidebar-widget .sidebar-link-list a i:first-child { color: var(--gb-secondary); }
.sidebar-widget .sidebar-link-list a .bi-arrow-right { opacity: 0; transition: all var(--dur-fast) var(--ease-out); color: var(--gb-primary); }
.sidebar-widget .sidebar-link-list a:hover { color: var(--gb-primary); }
.sidebar-widget .sidebar-link-list a:hover .bi-arrow-right { opacity: 1; transform: translateX(3px); }

.sidebar-cta {
  background: var(--gb-gradient-brand);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
}
.sidebar-cta i { font-size: 2rem; margin-bottom: 0.75rem; }
.sidebar-cta h4 { color: #fff; border: none; padding: 0; margin-bottom: 0.5rem; font-size: 1.05rem; }
.sidebar-cta p { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

.sidebar-doctor {
  display: flex; align-items: center; gap: 12px;
  background: var(--gb-accent);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--dur-fast) var(--ease-out);
}
a.sidebar-doctor:hover { background: var(--gb-secondary-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sidebar-doctor img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.sidebar-doctor strong { display: block; font-size: 0.9rem; color: var(--gb-text); }
.sidebar-doctor span { font-size: 0.78rem; color: var(--gb-text-muted); }

/* -------------------------------------------------------------------------
   17. CONTENT PAGE TYPOGRAPHY (service/condition/procedure body)
   ------------------------------------------------------------------------- */
.content-body h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.content-body h2:first-child { margin-top: 0; }
.content-body h3 { font-size: 1.2rem; margin-top: 1.75rem; margin-bottom: 0.75rem; color: var(--gb-primary); }
.content-body p { margin-bottom: 1.15rem; }
.content-body ul, .content-body ol { color: var(--gb-text-muted); margin-bottom: 1.15rem; }
.content-body li { margin-bottom: 0.5rem; }
.content-body .lead-intro { font-size: 1.15rem; color: var(--gb-text); }

.icon-list { list-style: none; padding: 0; margin: 0; }
.icon-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 0.6rem 0;
}
.icon-list li i { color: var(--gb-secondary); font-size: 1.15rem; margin-top: 2px; flex: none; }
.icon-list-danger li { color: var(--gb-danger); font-weight: 500; }
.icon-list-danger li i { color: var(--gb-danger); }

.callout-box {
  background: var(--gb-accent);
  border-left: 4px solid var(--gb-secondary);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
}
.callout-box strong { color: var(--gb-primary-darker); }

.medical-disclaimer {
  background: var(--gb-primary-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  font-size: 0.875rem;
  color: var(--gb-text-muted);
  margin-top: 2.5rem;
}
.medical-disclaimer i { color: var(--gb-primary); margin-right: 8px; }

.author-updated-row {
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--gb-border);
  border-bottom: 1px solid var(--gb-border);
  margin: 1.75rem 0;
  font-size: 0.875rem; color: var(--gb-text-muted);
}
.author-updated-row .author-chip { display: flex; align-items: center; gap: 10px; }
.author-updated-row .author-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.author-updated-row strong { color: var(--gb-text); }

/* -------------------------------------------------------------------------
   18. AI-ANSWER / SNAPSHOT BOX (AEO/GEO optimization block)
   ------------------------------------------------------------------------- */
.ai-answer-box {
  background: #fff;
  border: 1px solid var(--gb-border);
  border-left: 4px solid var(--gb-primary);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.ai-answer-box .eyebrow { margin-bottom: 10px; }
.ai-answer-box p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   19. FORMS
   ------------------------------------------------------------------------- */
.form-brand label { font-weight: 600; font-size: 0.9rem; color: var(--gb-text); margin-bottom: 0.4rem; }
.form-brand .form-control,
.form-brand .form-select {
  border: 2px solid var(--gb-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: #fff;
}
.form-brand .form-control:focus,
.form-brand .form-select:focus {
  border-color: var(--gb-primary);
  box-shadow: 0 0 0 4px rgba(13,94,166,0.12);
}
.form-brand .form-check-input:checked { background-color: var(--gb-primary); border-color: var(--gb-primary); }
.form-brand .invalid-feedback { font-size: 0.8rem; }
.form-brand .form-control.is-invalid,
.form-brand .form-select.is-invalid { border-color: var(--gb-danger); }

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

/* -------------------------------------------------------------------------
   20. INSURANCE LOGOS STRIP
   ------------------------------------------------------------------------- */
.insurance-strip { background: #fff; }
.insurance-logo {
  display: flex; align-items: center; justify-content: center;
  height: 84px;
  border: 1px solid var(--gb-border);
  border-radius: var(--radius-md);
  color: var(--gb-text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--dur-fast) var(--ease-out);
  background: var(--gb-bg);
}
.insurance-logo:hover { border-color: var(--gb-secondary); color: var(--gb-primary); box-shadow: var(--shadow-sm); }

/* -------------------------------------------------------------------------
   21. MAP SECTION
   ------------------------------------------------------------------------- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gb-border);
  position: relative;
}
.map-placeholder {
  aspect-ratio: 21/9;
  background:
    linear-gradient(rgba(13,94,166,0.06), rgba(13,94,166,0.06)),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(13,94,166,0.08) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(13,94,166,0.08) 40px),
    var(--gb-accent);
  display: flex; align-items: center; justify-content: center;
}
.map-pin {
  width: 64px; height: 64px; border-radius: 50% 50% 50% 0;
  background: var(--gb-gradient-brand);
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand);
}
.map-pin i { transform: rotate(45deg); color: #fff; font-size: 1.6rem; }

/* -------------------------------------------------------------------------
   22. FOOTER
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--gb-primary-darker);
  color: rgba(255,255,255,0.78);
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--gb-secondary); }
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.35rem;
}
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 1.1rem; }
.footer-brand-row img { height: 44px; width: auto; }
.footer-brand-row strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.footer-brand-row span { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gb-secondary); font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a { font-size: 0.9rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem; font-size: 0.9rem; }
.footer-contact-item i { color: var(--gb-secondary); margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 1.25rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--gb-secondary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.83rem; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-newsletter .form-control {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.footer-newsletter .form-control::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.footer-badges-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.footer-badges-row span {
  font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.18); padding: 5px 10px; border-radius: var(--radius-pill);
}

/* -------------------------------------------------------------------------
   23. MISC — stat counters, process steps, glass panels
   ------------------------------------------------------------------------- */
.stat-counter { text-align: center; }
.stat-counter .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--gb-primary);
  display: block;
}
.stat-counter .label { color: var(--gb-text-muted); font-size: 0.9rem; font-weight: 600; }

.glass-panel {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.why-us-item { display: flex; gap: 1.1rem; }
.why-us-item .icon-circle {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--gb-accent); color: var(--gb-secondary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex: none;
}
.why-us-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }

.back-to-top {
  position: fixed; right: 24px; bottom: 96px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--gb-border);
  color: var(--gb-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--dur-fast) var(--ease-out);
  z-index: 1039;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Loading skeleton for lazy content (optional use) */
.skeleton { background: linear-gradient(90deg, var(--gb-border) 25%, #eef3f7 37%, var(--gb-border) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
