/*
  ===================================================
  FLORIDA FAMILY PRIMARY CARE — SHARED STYLESHEET
  ===================================================
  TYPOGRAPHY:
  - Display: "Playfair Display" — warm authority, institutional trust
  - Body: "Source Sans 3" — humanist, legible, warm

  COLORS:
  - Deep Blue   (#1A4E7C) — medical authority, trust
  - Navy        (#0D2B45) — headings, footer bg
  - Teal        (#2BA8A0) — health, vitality, Florida coastal
  - Teal Light  (#3CBFB7) — accent on dark backgrounds
  - Teal Pale   (#E8F7F6) — section bg, icon containers
  - Coral       (#E8705A) — CTA urgency, warmth
  - Off-White   (#F8FBFF) — page bg
  ===================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
  --blue:      #1A4E7C;
  --navy:      #0D2B45;
  --teal:      #2BA8A0;
  --teal-lt:   #3CBFB7;
  --teal-pale: #E8F7F6;
  --coral:     #E8705A;
  --white:     #F8FBFF;
  --gray-50:   #F2F6FA;
  --gray-100:  #EEF2F7;
  --gray-200:  #D8E4EF;
  --gray-400:  #8FA8BE;
  --gray-500:  #6B8399;
  --gray-700:  #3A5166;
  --text:      #3A5166;
  --heading:   #0D2B45;

  --font-d: 'Playfair Display', Georgia, serif;
  --font-b: 'Source Sans 3', system-ui, sans-serif;

  --r:    12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-sm: 0 2px 12px rgba(13,43,69,.08);
  --sh-md: 0 8px 32px rgba(13,43,69,.13);
  --sh-lg: 0 20px 60px rgba(13,43,69,.18);

  --ease: all .3s cubic-bezier(.4,0,.2,1);

  /* FIX 1: topbar (38px) + navbar (64px) = 102px total offset */
  --topbar-h: 38px;
  --nav-h:    64px;
  --offset:   102px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  /* Correct padding so content starts below BOTH bars */
  padding-top: var(--offset);
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4 { font-family: var(--font-d); color: var(--heading); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { font-size: 1.05rem; }

.label {
  display: inline-block;
  font-family: var(--font-b);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .75rem;
}

/* ===== LAYOUT ===== */
.container  { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
section     { padding: 5rem 0; }
.section-alt  { background: var(--gray-100); }
.section-dark { background: var(--navy); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 50px;
  font-family: var(--font-b); font-size: 1rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--ease); white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn-primary:hover { background: #d15a44; border-color: #d15a44; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,112,90,.4); }
.btn-teal    { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { background: #228e87; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(43,168,160,.35); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white   { background: #fff; color: var(--blue); border-color: #fff; }
.btn-white:hover { background: var(--teal-pale); }
.btn-sm      { padding: .55rem 1.3rem; font-size: .88rem; }

/* ===== FIX 6: Book Appointment nav button ===== */
.btn-book-nav {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.35rem;
  background: var(--coral);
  color: #fff !important;
  border-radius: 50px;
  font-family: var(--font-b);
  font-size: .86rem;
  font-weight: 700;
  border: 2px solid var(--coral);
  transition: var(--ease);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: .01em;
}
.btn-book-nav:hover {
  background: #d15a44;
  border-color: #d15a44;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232,112,90,.45);
}
/* Remove underline animation from book button */
.nav-book-li > a::after { display: none !important; }

/* ===== TOPBAR ===== */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: var(--topbar-h);
  background: var(--teal);
  display: flex; align-items: center;
  overflow: hidden;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: nowrap;
  font-size: .76rem; font-weight: 500; color: #fff;
  overflow: hidden;
}
.topbar-inner a { color: #fff; font-weight: 700; }
.topbar-inner span { display: flex; align-items: center; gap: .3rem; white-space: nowrap; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: var(--topbar-h); /* sits directly under topbar */
  left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(13,43,69,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center;
  transition: var(--ease);
}
#navbar.scrolled { box-shadow: var(--sh-md); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: 100%;
}
.nav-brand { display: flex; flex-direction: column; gap: 0; flex-shrink: 0; }
.nav-brand-name { font-family: var(--font-d); font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.1; }
.nav-brand-sub  { font-size: .65rem; color: var(--teal-lt); font-weight: 500; letter-spacing: .03em; }

.nav-links {
  display: flex; align-items: center; gap: 1.4rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: rgba(255,255,255,.82); font-size: .84rem; font-weight: 500;
  transition: var(--ease); padding: .3rem 0;
  display: flex; align-items: center; gap: .2rem;
  white-space: nowrap;
  position: relative;
}
.nav-links > li > a:hover { color: #fff; }
.nav-links > li > a:not(.btn-book-nav)::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--teal-lt); border-radius: 2px;
  transform: scaleX(0); transition: var(--ease);
}
.nav-links > li > a:not(.btn-book-nav):hover::after { transform: scaleX(1); }
.nav-active { color: #fff !important; }
.nav-active::after { transform: scaleX(1) !important; }

/* Dropdown */
.has-dropdown:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -1rem;
  background: #fff; border-radius: var(--r); padding: .65rem 0;
  min-width: 210px; box-shadow: var(--sh-lg);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: var(--ease); z-index: 999;
}
.dropdown a {
  display: block; padding: .5rem 1.2rem;
  font-size: .86rem; color: var(--text); font-weight: 500;
  transition: var(--ease);
}
.dropdown a:hover { background: var(--teal-pale); color: var(--teal); }
.dropdown a::after { display: none !important; }

/* ===== FIX 7: Hamburger — visible, toggleable, animates to X ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  flex-shrink: 0;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
/* Animate to X when open */
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAV ===== */
@media (max-width: 960px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    max-height: calc(100vh - var(--offset));
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }

  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links > li:last-child { border-bottom: none; margin-top: .75rem; }

  .nav-links > li > a {
    color: rgba(255,255,255,.88);
    font-size: .95rem;
    padding: .85rem 0;
    width: 100%;
  }
  .nav-links > li > a::after { display: none !important; }

  /* Mobile dropdown: hidden by default, shown when .mobile-open */
  .dropdown {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,.06);
    border-radius: var(--r);
    padding: .25rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    min-width: unset;
    width: 100%;
  }
  .has-dropdown.mobile-open .dropdown {
    max-height: 400px;
  }
  .dropdown a {
    color: rgba(255,255,255,.7);
    padding: .55rem 1rem;
    font-size: .88rem;
  }
  .dropdown a:hover { background: rgba(255,255,255,.1); color: #fff; }

  /* Book appointment button on mobile */
  .nav-book-li { padding-top: .5rem; }
  .btn-book-nav { width: 100%; justify-content: center; font-size: .95rem; padding: .75rem 1rem; }

  /* Hide some topbar items on very small screens */
  .topbar-inner { gap: 1rem; font-size: .7rem; }
}

@media (max-width: 480px) {
  .topbar-inner span:nth-child(3) { display: none; }
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #1a5f7a 100%);
  padding: 4rem 0 3.5rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1400&q=70') center/cover no-repeat;
  opacity: .08;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero .label { color: var(--teal-lt); }
.page-hero h1 { color: #fff; }
.page-hero p  { color: rgba(255,255,255,.78); max-width: 560px; font-size: 1.1rem; margin-top: .75rem; }
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 1rem;
}
.breadcrumb a { color: var(--teal-lt); }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* ===== CARDS ===== */
.card {
  background: #fff; border-radius: var(--r-lg); padding: 2rem;
  box-shadow: var(--sh-sm); border: 1px solid transparent; transition: var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--teal-pale); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--teal-pale); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; color: var(--teal); }

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .84rem; font-weight: 600; color: var(--heading); }
.form-group input,
.form-group textarea,
.form-group select {
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  padding: .75rem 1rem; font-family: var(--font-b); font-size: .95rem;
  color: var(--heading); background: #fff; outline: none; transition: var(--ease);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43,168,160,.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

/* Form success message */
#form-success {
  display: none;
  background: var(--teal-pale); color: var(--teal);
  border-radius: 10px; padding: 1rem 1.25rem;
  font-weight: 600; margin-top: 1rem; text-align: center;
  border: 1.5px solid var(--teal);
}

/* ===== INSURANCE STRIP ===== */
.insurance-strip { background: var(--navy); padding: 1.4rem 0; }
.ins-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.ins-label { color: var(--teal-lt); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.ins-pills { display: flex; gap: .75rem; flex-wrap: wrap; }
.ins-pill {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.82);
  padding: .28rem .9rem; border-radius: 50px; font-size: .8rem; font-weight: 600;
}
.ins-pill.hl { background: rgba(43,168,160,.25); color: var(--teal-lt); }

/* ===== ACCESSIBILITY BAR ===== */
.access-bar { background: var(--blue); padding: 2rem 0; }
.access-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.access-bar-text h3 { color: #fff; font-size: 1.2rem; }
.access-bar-text p  { color: rgba(255,255,255,.65); font-size: .88rem; margin-top: .25rem; }
.access-icons { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.access-icon-item { display: flex; align-items: center; gap: .6rem; }
.access-icon-item .ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(43,168,160,.2); display: flex; align-items: center; justify-content: center;
}
.access-icon-item .ico svg { width: 18px; height: 18px; color: var(--teal-lt); }
.access-icon-item span { color: rgba(255,255,255,.8); font-size: .85rem; font-weight: 500; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }

/* ===== FLOATING PHONE BUTTON ===== */
.float-phone {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(13,43,69,.3);
  transition: var(--ease);
}
.float-phone:hover { transform: scale(1.1); background: var(--teal); }
.float-phone svg { width: 22px; height: 22px; stroke: #fff; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  padding: 4rem 0 1.5rem;
  /* Ensure footer is always AFTER page content */
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; color: #fff; }
.footer-sub   { font-size: .72rem; color: var(--teal-lt); font-weight: 500; margin: .2rem 0 1rem; }
.footer-desc  { font-size: .86rem; line-height: 1.6; max-width: 260px; }
.footer-col h4 {
  color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 1rem; font-family: var(--font-b);
}
.footer-col li { margin-bottom: .55rem; }
.footer-col a  { font-size: .86rem; transition: var(--ease); }
.footer-col a:hover { color: var(--teal-lt); }
.footer-bottom {
  display: flex; align-items: center; justify-content: center;
  padding-top: 1.5rem; font-size: .78rem; color: rgba(255,255,255,.35);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== UTILS ===== */
.tc   { text-align: center; }
.mt1  { margin-top: 1rem; }
.mt2  { margin-top: 2rem; }
.mt3  { margin-top: 3rem; }
.mb1  { margin-bottom: 1rem; }
.mb2  { margin-bottom: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--teal-pale); color: var(--teal);
  padding: .3rem .85rem; border-radius: 50px; font-size: .8rem; font-weight: 600;
}
.divider { height: 1px; background: var(--gray-200); margin: 2rem 0; }
.star { color: #F59E0B; }

/* ===== FIX 10: BLOG CSS ===== */
/* Blog list cards — correct image+body side-by-side */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.blog-grid { display: flex; flex-direction: column; gap: 1.75rem; }

.blog-card {
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: var(--ease);
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 220px;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.blog-card-body {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-cat {
  display: inline-flex; align-items: center;
  background: var(--teal-pale); color: var(--teal);
  font-size: .7rem; font-weight: 700;
  padding: .2rem .75rem; border-radius: 50px;
  margin-bottom: .85rem;
  text-transform: uppercase; letter-spacing: .07em;
  width: fit-content;
}
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: .5rem; line-height: 1.35; }
.blog-card-body h3 a { color: var(--heading); transition: var(--ease); }
.blog-card-body h3 a:hover { color: var(--teal); }
.blog-card-body p  { font-size: .9rem; color: var(--text); margin-bottom: .75rem; line-height: 1.6; }
.blog-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .76rem; color: var(--gray-500);
}
.blog-meta span { display: flex; align-items: center; gap: .3rem; }
.read-more {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .86rem; font-weight: 700; color: var(--teal); margin-top: .9rem;
}
.read-more:hover { color: var(--blue); }

/* Blog sidebar */
/* .sidebar sticky rules moved to unified sticky block below */
.sidebar-widget {
  background: #fff; border-radius: var(--r-lg); padding: 1.4rem;
  box-shadow: var(--sh-sm); margin-bottom: 1.25rem;
}
.sidebar-widget h4 {
  font-size: .88rem; font-family: var(--font-d);
  margin-bottom: .9rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--teal-pale); color: var(--heading);
}
.cat-list li { margin-bottom: .35rem; }
.cat-list a {
  font-size: .86rem; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  padding: .4rem .6rem; border-radius: 8px; transition: var(--ease);
  cursor: pointer;
}
.cat-list a:hover, .cat-list a.active { background: var(--teal-pale); color: var(--teal); }
.cat-count {
  background: var(--gray-100); color: var(--gray-500);
  font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 50px;
}
.recent-post { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .9rem; }
.recent-post img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.recent-post h5 { font-size: .82rem; margin-bottom: .2rem; line-height: 1.35; }
.recent-post h5 a { color: var(--heading); transition: var(--ease); }
.recent-post h5 a:hover { color: var(--teal); }
.recent-post small { font-size: .72rem; color: var(--gray-500); }

.cta-sidebar {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--r-lg); padding: 1.5rem; text-align: center;
}
.cta-sidebar h4 { color: #fff; margin-bottom: .4rem; font-size: 1rem; }
.cta-sidebar p  { color: rgba(255,255,255,.7); font-size: .84rem; margin-bottom: 1rem; }

/* Blog responsive */
@media (max-width: 960px) {
  .blog-layout { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar { position: static; }
  .blog-card { grid-template-columns: 200px 1fr; }
}
@media (max-width: 640px) {
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-img { height: 200px; width: 100%; }
}

/* ===== FIX 9: Insurance "No Insurance" selfpay mobile ===== */
.selfpay-box {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--r-xl); padding: 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.selfpay-box h2 { color: #fff; }
.selfpay-box p  { color: rgba(255,255,255,.75); margin-top: .75rem; }
.selfpay-box .btn { margin-top: 1.5rem; }
.selfpay-list { display: flex; flex-direction: column; gap: .75rem; }
.selfpay-list li { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.82); font-size: .92rem; }
.selfpay-list li::before { content: '✓'; color: var(--teal-lt); font-weight: 700; flex-shrink: 0; }

@media (max-width: 768px) {
  .selfpay-box {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 1.75rem;
  }
}
@media (max-width: 480px) {
  .selfpay-box { padding: 1.5rem 1.25rem; }
}

/* ===== REVIEW CARDS (testimonials page) ===== */
.review-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--r-lg); padding: 1.75rem;
  box-shadow: var(--sh-sm); transition: var(--ease);
  display: flex; flex-direction: column;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.stars       { display: flex; gap: 3px; margin-bottom: .9rem; }
.rv-text     { font-size: .93rem; font-style: italic; color: var(--text); margin-bottom: 1.1rem; flex: 1; }
.rv-author   { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.rv-avatar   {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-pale); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 1rem; font-weight: 700; flex-shrink: 0;
}
.rv-author strong { font-size: .9rem; color: var(--heading); display: block; }
.rv-author small  { font-size: .76rem; color: var(--gray-500); }
.rv-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 600; color: var(--teal);
  background: var(--teal-pale); padding: .18rem .65rem; border-radius: 50px;
  margin-bottom: .75rem; width: fit-content;
}

/* ===== MOBILE HERO FIXES ===== */
/* Fix: text overflowing viewport on mobile (Image 2) */
@media (max-width: 600px) {
  /* Prevent any section from overflowing horizontally */
  section, .page-hero, #hero { overflow-x: hidden; }

  /* Hero text should not bleed out */
  .hero-text h1 { font-size: 1.9rem; line-height: 1.25; word-break: break-word; }
  .hero-text p  { font-size: 1rem; }
  .hero-ctas    { flex-direction: column; gap: .75rem; }
  .hero-ctas .btn, .hero-ctas a { width: 100%; justify-content: center; }

  /* Stats row */
  .hero-stats { gap: 1.25rem; }
  .hero-stat-n { font-size: 1.6rem; }

  /* Hero card full width */
  .hero-card { border-radius: var(--r-lg); padding: 1.25rem; }
  .hours-grid { grid-template-columns: 1fr 1fr; gap: .35rem; }
}

/* ===== MOBILE SELFPAY / INSURANCE BOX FIX (Image 3) ===== */
/* The text is bleeding outside the box on mobile */
.selfpay-box {
  overflow: hidden; /* clip children */
  word-break: break-word;
}
@media (max-width: 640px) {
  .selfpay-box {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .selfpay-box h2 { font-size: 1.4rem; }
  .selfpay-list li { font-size: .85rem; }
  .selfpay-box .btn {
    width: 100%;
    justify-content: center;
    font-size: .88rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

/* ===== BLOG POST ARTICLE PAGE CSS FIX ===== */
/* Applied globally so all blog/*.html pages look right */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 3rem;
  align-items: start;
}
.article-body {
  font-family: var(--font-b);
  color: var(--text);
  line-height: 1.75;
}
.article-body h2 {
  font-family: var(--font-d);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--heading);
  margin: 2rem 0 .75rem;
  line-height: 1.25;
}
.article-body h3 {
  font-family: var(--font-d);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--heading);
  margin: 1.5rem 0 .5rem;
}
.article-body p { margin-bottom: 1rem; font-size: 1.02rem; }
.article-body ul, .article-body ol {
  margin: 1rem 0 1rem 1.5rem;
}
.article-body li {
  margin-bottom: .5rem;
  font-size: 1rem;
  line-height: 1.65;
}
.article-body ul li::marker { color: var(--teal); }
.article-callout {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.article-callout p { margin: 0; font-size: .97rem; }
.article-callout strong { color: var(--teal); }
.article-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--r-xl);
  margin-bottom: 2.5rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: .82rem;
  color: var(--gray-500);
}
/* .article-sidebar sticky rules moved to unified sticky block below */
.aside-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--sh-sm);
  margin-bottom: 1.5rem;
}
.aside-card h4 { font-size: .9rem; font-family: var(--font-d); margin-bottom: 1rem; }
.aside-card .btn { width: 100%; justify-content: center; margin-bottom: .75rem; }
.toc-list { display: flex; flex-direction: column; gap: .4rem; }
.toc-list a {
  font-size: .86rem; color: var(--text);
  padding: .3rem .6rem; border-radius: 6px; transition: var(--ease); display: block;
}
.toc-list a:hover { background: var(--teal-pale); color: var(--teal); }
.author-box {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.25rem; background: var(--gray-100);
  border-radius: var(--r-lg); margin-top: 2.5rem;
}
.author-avatar-lg {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-family: var(--font-d); font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.author-box h4 { font-size: .9rem; margin-bottom: .15rem; }
.author-box p  { font-size: .8rem; color: var(--gray-500); margin: 0; }
.article-cat {
  background: var(--teal-pale); color: var(--teal);
  font-size: .72rem; font-weight: 700; padding: .22rem .75rem;
  border-radius: 50px; text-transform: uppercase; letter-spacing: .06em;
  display: inline-block; margin-right: .5rem;
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-hero-img { height: 260px; }
}

/* ===== GENERAL OVERFLOW SAFETY =====
   These targeted rules prevent horizontal overflow without breaking
   flex/grid layouts that rely on explicit widths.
===== */
html, body { overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; overflow-x: clip; }

/* Prevent long words/URLs from breaking layout */
p, li, h1, h2, h3, h4, label, span {
  overflow-wrap: break-word;
  word-wrap: break-word;
}




/* ===== STICKY SIDEBARS — CORRECT IMPLEMENTATION =====

   HOW CSS STICKY WORKS IN GRID:
   - The sticky element scrolls with the page until it hits its `top` offset
   - It then stays fixed relative to the viewport
   - It STOPS when the bottom of its GRID COLUMN is reached (never overlaps footer)
   - KEY: the grid parent must NOT stretch items (use align-items:start)
   - KEY: the sticky element needs align-self:start so its column height = its content
   - NO max-height, NO overflow-y needed — that creates a second scroll inside sidebar

   RESULT: Sidebar scrolls with page, locks at top, stops naturally at container bottom.
============================================================ */

/* All grid layouts that contain sticky sidebars */
.faq-layout,
.svc-layout,
.article-layout,
.blog-layout    { align-items: start; }

/* FAQ "Jump to Section" — sticky, follows scroll, stops at FAQ section bottom */
.faq-nav {
  position: sticky;
  top: calc(var(--offset) + 1.5rem);
  align-self: start;
}

/* Service page right sidebar */
.svc-sidebar {
  position: sticky;
  top: calc(var(--offset) + 1.5rem);
  align-self: start;
}

/* Article (blog post) right sidebar */
.article-sidebar {
  position: sticky;
  top: calc(var(--offset) + 1.5rem);
  align-self: start;
}

/* Blog index right sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--offset) + 1.5rem);
  align-self: start;
}