/* ==========================================================================
   Sarasota Dentistry — Design System
   Modern clean / clinical. Brand: blue #60A3D9, green #74C044, navy #191E26
   ========================================================================== */

:root {
  /* Brand */
  --blue:        #2f8fd0;
  --blue-light:  #60a3d9;
  --blue-dark:   #1f6aa0;
  --blue-50:     #eef6fc;
  --blue-100:    #d8ecf8;
  --green:       #74c044;
  --green-dark:  #5da634;
  --navy:        #191e26;
  --navy-soft:   #2b333f;

  /* Neutrals */
  --ink:         #1f2730;
  --body:        #4a5560;
  --muted:       #76828e;
  --line:        #e4eaf0;
  --bg:          #ffffff;
  --bg-soft:     #f4f8fb;
  --bg-tint:     #eef6fc;
  --white:       #ffffff;

  /* Type */
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Effects */
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(25,30,38,.06);
  --shadow:    0 12px 30px rgba(25,30,38,.10);
  --shadow-lg: 0 24px 60px rgba(25,30,38,.16);
  --ring:      0 0 0 4px rgba(96,163,217,.25);

  --container: 1180px;
  --gap: clamp(1.5rem, 4vw, 4rem);
}

/* Reset ------------------------------------------------------------------ */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }
ul { padding: 0; list-style: none; }

/* Typography ------------------------------------------------------------- */
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--body); }

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--blue-50), #fff); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center.narrow { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--green); border-radius: 2px; }
.center .eyebrow { justify-content: center; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); max-width: 620px; }
.section-head.center p { margin-inline: auto; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: all .22s ease; white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(47,143,208,.32); }
.btn--primary:hover { background: var(--blue-dark); color:#fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(47,143,208,.4); }
.btn--green { background: var(--green); color: #133; box-shadow: 0 10px 22px rgba(116,192,68,.32); }
.btn--green:hover { background: var(--green-dark); color:#fff; transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--blue-dark); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--blue-dark); }
.btn--white:hover { background: var(--blue-50); color: var(--blue-dark); transform: translateY(-2px); }
.btn--outline-white { background: transparent; color:#fff; border-color: rgba(255,255,255,.55); }
.btn--outline-white:hover { background: rgba(255,255,255,.14); color:#fff; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* Top utility bar -------------------------------------------------------- */
.topbar {
  background: var(--navy); color: #cdd6e0; font-size: .85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #cdd6e0; }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__info svg { width: 15px; height: 15px; color: var(--green); }
.topbar__socials { display: flex; gap: 1rem; }
.topbar__socials a { display: inline-flex; }
.topbar__socials svg { width: 16px; height: 16px; }

/* Header ----------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.nav__logo img { height: 46px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu a { font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: .98rem; position: relative; }
.nav__menu a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--green); transition: width .25s; border-radius:2px; }
.nav__menu a:hover, .nav__menu a.active { color: var(--blue-dark); }
.nav__menu a:hover::after, .nav__menu a.active::after { width:100%; }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__phone { display: inline-flex; align-items:center; gap:.5rem; font-family: var(--font-head); font-weight:600; color: var(--ink); }
.nav__phone svg { width: 18px; height: 18px; color: var(--green); }
.nav__toggle { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px; }
.nav__toggle span { width:26px; height:2.5px; background: var(--ink); border-radius:2px; transition: all .25s; }

/* Services dropdown (mega-menu) ------------------------------------------ */
.nav__item { position: relative; }
.nav__has-sub > .nav__toplink { display: inline-flex; align-items: center; gap: .3rem; }
.nav__caret { width: 15px; height: 15px; flex: none; transition: transform .25s; }
.nav__sub-toggle { display: none; } /* mobile only (see media query) */
.nav__sub {
  position: absolute; top: calc(100% + 16px); left: 0;
  width: min(640px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem 1.6rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 120;
}
/* invisible bridge so the cursor can travel from link to panel without closing */
.nav__sub::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav__has-sub:hover > .nav__sub,
.nav__has-sub:focus-within > .nav__sub,
.nav__has-sub.open > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__has-sub:hover > .nav__toplink .nav__caret,
.nav__has-sub:focus-within > .nav__toplink .nav__caret { transform: rotate(180deg); }
.nav__sub-grid { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; }
.nav__sub-col { flex: 0 0 auto; width: 178px; }
.nav__cat-toggle { display: none; } /* per-category expander — mobile only */
/* selector carries .nav__sub to outrank `.nav__menu a` (which would force --ink) */
.nav__sub .nav__sub-head { display: block; font-family: var(--font-head); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-dark); margin-bottom: .55rem; }
.nav__sub-col ul { display: flex; flex-direction: column; gap: .3rem; }
.nav__sub-col ul a { font-family: var(--font-body); font-weight: 500; font-size: .92rem; color: var(--body); }
.nav__sub a:hover { color: var(--blue-dark); }
.nav__sub a::after { content: none; } /* suppress the nav__menu underline inside the panel */
.nav__sub-foot { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.nav__sub-foot a { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--blue-dark); }
.nav__sub-foot a svg { width: 18px; height: 18px; }
/* Simple single-column dropdown variant (About) */
.nav__sub--menu { width: auto; min-width: 210px; padding: .6rem; }
.nav__sub-list { display: flex; flex-direction: column; gap: .1rem; }
.nav__sub .nav__sub-list a { display: block; padding: .5rem .7rem; border-radius: 9px; font-family: var(--font-body); font-weight: 500; font-size: .95rem; color: var(--body); }
.nav__sub .nav__sub-list a:hover { background: var(--blue-50); color: var(--blue-dark); }
.nav__sub .nav__sub-list a.active { color: var(--blue-dark); font-weight: 600; }
section[id] { scroll-margin-top: 92px; } /* keep anchored service sections clear of the sticky header */
[data-theme="dark"] .nav__sub { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .nav__sub-head,
[data-theme="dark"] .nav__sub-foot a { color: var(--blue-light); }
[data-theme="dark"] .nav__sub a:hover { color: var(--blue-light); }

/* Services dropdown → inline accordion inside the mobile menu */
@media (max-width: 980px) {
  .nav__has-sub { display: flex; flex-wrap: wrap; align-items: center; width: 100%; }
  .nav__has-sub > .nav__toplink { flex: 1 1 auto; }
  .nav__has-sub > .nav__toplink .nav__caret { display: none; } /* toggle button carries the caret */
  .nav__sub-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer; padding: .35rem .2rem; color: var(--ink);
  }
  .nav__sub-toggle .nav__caret { width: 22px; height: 22px; transition: transform .25s; }
  .nav__has-sub.open .nav__sub-toggle .nav__caret { transform: rotate(180deg); }
  .nav__sub {
    position: static; width: 100%; opacity: 1; visibility: visible; transform: none;
    background: none; border: none; box-shadow: none; padding: 0; margin: 0;
    display: none; z-index: auto;
  }
  .nav__has-sub.open > .nav__sub { display: block; margin-top: .5rem; }
  .nav__sub::before { content: none; }
  .nav__sub-grid { flex-direction: column; gap: .1rem; }
  .nav__sub-col { width: 100%; }
  /* each category is its own collapsible row so the Services menu stays short */
  .nav__sub-head-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
  .nav__sub .nav__sub-head-row .nav__sub-head { margin-bottom: 0; flex: 1 1 auto; padding: .5rem 0; }
  .nav__cat-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer; padding: .4rem; color: var(--ink); flex: none;
  }
  .nav__cat-toggle .nav__caret { width: 20px; height: 20px; transition: transform .25s; }
  .nav__sub-col.open .nav__cat-toggle .nav__caret { transform: rotate(180deg); }
  .nav__sub-col > ul { display: none; }
  .nav__sub-col.open > ul { display: flex; margin: .1rem 0 .5rem .2rem; }
  .nav__sub-col > ul a { padding: .3rem 0; }
  .nav__sub-foot { margin-top: .8rem; padding-top: .8rem; }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; background: linear-gradient(160deg, var(--blue-50) 0%, #fff 55%); overflow: hidden; }
.hero::before { content:""; position:absolute; top:-12%; right:-8%; width:520px; height:520px; background: radial-gradient(circle, rgba(116,192,68,.16), transparent 70%); border-radius:50%; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; z-index:1; }
.hero h1 span { color: var(--blue); }
.hero p { font-size: 1.2rem; max-width: 520px; margin-top: 1.2rem; }
.hero__actions { display:flex; gap:1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__trust { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:1.3rem 1.8rem; margin-top:2.5rem; }
.hero__trust .stat strong { font-family: var(--font-head); font-size: clamp(1.4rem, 3.6vw, 1.7rem); color: var(--ink); display:block; line-height:1.1; }
@media (max-width: 560px) { .hero__trust { grid-template-columns: 1fr; gap:1.1rem; } }
.hero__trust .stat span { font-size:.9rem; color: var(--muted); }
.hero__media { position: relative; }
/* frames just the photo so the floating "25 years" badge anchors to the image,
   not the taller media column (which now also holds the service highlights) */
.hero__media-frame { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width:100%; object-fit: cover; }
/* "25 Years of Excellence" seal floating on the hero photo */
.hero__media .hero__badge25 { position:absolute; top:-20px; right:-14px; width:clamp(82px, 13vw, 120px); height:auto;
  border-radius:50%; background:#fff; padding:6px; box-shadow:0 8px 20px rgba(25,30,38,.22); z-index:2; }
@media (max-width:980px) { .hero__media .hero__badge25 { width:86px; top:-14px; right:8px; } }
.hero__badge {
  position:absolute; bottom: -22px; left: -22px; background:#fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.3rem; display:flex; align-items:center; gap:.8rem;
}
.hero__badge .ico { width:44px; height:44px; border-radius:12px; background: var(--blue-50); display:grid; place-items:center; color: var(--blue); }
.hero__badge .ico svg { width:24px; height:24px; }
.hero__badge strong { font-family: var(--font-head); color: var(--ink); display:block; font-size:1rem; }
.hero__badge span { font-size:.82rem; color: var(--muted); }

/* Trust strip ------------------------------------------------------------ */
.trustbar { background: var(--white); border-block: 1px solid var(--line); }
.trustbar .container { display:flex; justify-content: space-around; flex-wrap: wrap; gap: 1.5rem; padding-block: 1.6rem; }
.trustbar .item { display:flex; align-items:center; gap:.7rem; font-family: var(--font-head); font-weight:500; color: var(--navy-soft); font-size:.98rem; }
.trustbar svg { width:24px; height:24px; color: var(--green); flex:none; }

/* Cards / grids ---------------------------------------------------------- */
.grid { display:grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; transition: transform .25s, box-shadow .25s, border-color .25s; height:100%; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width:60px; height:60px; border-radius:16px; background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); display:grid; place-items:center; color: var(--blue); margin-bottom:1.3rem; }
.card__icon svg { width:30px; height:30px; }
.card h3 { margin-bottom:.6rem; }
.card p { color: var(--muted); font-size:.98rem; margin-bottom:1rem; }
.card .more { font-family: var(--font-head); font-weight:600; font-size:.92rem; color: var(--blue); display:inline-flex; align-items:center; gap:.35rem; }
.card .more svg { width:16px; height:16px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }

/* Service photo cards */
.scard { background:#fff; border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--line); transition: transform .25s, box-shadow .25s; height:100%; display:flex; flex-direction:column; }
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.scard__img { aspect-ratio: 16/10; overflow:hidden; }
.scard__img img { width:100%; height:100%; object-fit:cover; transition: transform .5s; }
.scard:hover .scard__img img { transform: scale(1.06); }
.scard__body { padding: 1.6rem; flex:1; display:flex; flex-direction:column; }
.scard__body h3 { margin-bottom:.5rem; }
.scard__body p { color: var(--muted); font-size:.95rem; flex:1; }
.scard__body .more { margin-top:1rem; font-family:var(--font-head); font-weight:600; color: var(--blue); font-size:.92rem; display:inline-flex; gap:.35rem; align-items:center; }

/* Split feature ---------------------------------------------------------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items:center; }
.split > * { min-width: 0; } /* allow columns to shrink below content min-width (prevents nowrap-button overflow on mobile) */
.split--reverse .split__media { order:2; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split ul.checks { margin-top:1.2rem; }
ul.checks li { display:flex; gap:.7rem; align-items:flex-start; margin-bottom:.7rem; color: var(--body); }
ul.checks li svg { width:22px; height:22px; color: var(--green); flex:none; margin-top:2px; }

/* About doctor ----------------------------------------------------------- */
.doctor__media { position: relative; }
.doctor__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.creds { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.4rem; }
.creds span { background: var(--blue-50); color: var(--blue-dark); font-family: var(--font-head); font-weight:500; font-size:.82rem; padding:.45rem .9rem; border-radius:50px; }

/* About sub-navigation --------------------------------------------------- */
.subnav { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin-top:1.6rem; }
.subnav a { font-family:var(--font-head); font-weight:500; font-size:.92rem; padding:.5rem 1.1rem; border-radius:50px; border:1.5px solid var(--line); background:#fff; color:var(--body); transition:all .2s; }
.subnav a:hover { border-color:var(--blue); color:var(--blue-dark); }
.subnav a.active { background:var(--blue-dark); border-color:var(--blue-dark); color:#fff; }
[data-theme="dark"] .subnav a { background:var(--surface); color:var(--body); border-color:var(--line); }
[data-theme="dark"] .subnav a:hover { color:var(--blue-light); border-color:var(--blue-light); }
[data-theme="dark"] .subnav a.active { background:var(--blue-dark); border-color:var(--blue-dark); color:#fff; }

/* Team grid -------------------------------------------------------------- */
.member { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:1.8rem 1.6rem; text-align:center; height:100%; transition:transform .25s, box-shadow .25s; }
.member:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.member__photo { width:130px; height:130px; border-radius:50%; margin:0 auto 1.1rem; object-fit:cover; object-position:center top; box-shadow:var(--shadow-sm); display:block; background:var(--blue-50); }
.member h3 { font-size:1.2rem; margin-bottom:.15rem; }
.member__role { color:var(--blue-dark); font-family:var(--font-head); font-weight:600; font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:.7rem; }
.member p { color:var(--muted); font-size:.95rem; }
[data-theme="dark"] .member { background:var(--surface); border-color:var(--line); }
[data-theme="dark"] .member__role { color:var(--blue-light); }

/* Stats band ------------------------------------------------------------- */
.statsband { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color:#fff; }
.statsband .grid-4 { gap: 1rem; }
.statsband .stat { text-align:center; padding:1rem; }
.statsband .stat strong { font-family: var(--font-head); font-size: clamp(2.2rem,4vw,3rem); display:block; line-height:1; }
.statsband .stat span { opacity:.85; font-size:.95rem; }

/* Reviews ---------------------------------------------------------------- */
.review { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding:1.8rem; height:100%; }
.review .stars { color:#f5a623; display:flex; gap:2px; margin-bottom:.9rem; }
.review .stars svg { width:18px; height:18px; }
.review p { color: var(--ink); font-style: italic; }
.review .who { display:flex; align-items:center; gap:.8rem; margin-top:1.2rem; }
.review .avatar { width:42px; height:42px; border-radius:50%; background: linear-gradient(135deg,var(--blue),var(--green)); color:#fff; display:grid; place-items:center; font-family:var(--font-head); font-weight:600; }
.review .who strong { font-family:var(--font-head); color:var(--ink); font-size:.95rem; display:block; }
.review .who span { font-size:.82rem; color: var(--muted); }

/* Homepage testimonial video (lite YouTube facade) ----------------------- */
.review-video { max-width: 780px; margin: 0 auto 3rem; }
.ytlite { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background:#000; box-shadow: var(--shadow); }
.ytlite__btn { position:absolute; inset:0; width:100%; height:100%; padding:0; border:0; background:transparent; cursor:pointer; display:block; }
.ytlite__thumb { width:100%; height:100%; object-fit:cover; display:block; transition: transform .4s ease, filter .3s ease; }
.ytlite__btn:hover .ytlite__thumb { transform: scale(1.03); filter: brightness(.88); }
.ytlite__play { position:absolute; inset:0; margin:auto; width:72px; height:50px; pointer-events:none; }
.ytlite__play svg { width:100%; height:100%; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.ytlite__play-bg { fill:#f00; opacity:.92; transition: opacity .2s ease; }
.ytlite__btn:hover .ytlite__play-bg { opacity:1; }
.ytlite__btn:focus-visible { outline:none; box-shadow: var(--ring); }
.ytlite iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.review-video__cap { text-align:center; color: var(--muted); font-size:.9rem; margin-top:.9rem; }

/* Review social-proof badges (Google + Yelp / CRO) ----------------------- */
.gbadges { display: flex; flex-wrap: wrap; gap: .8rem; }
.gbadges--center { justify-content: center; }
.hero__actions + .gbadges { margin-top: 1.5rem; }
.section-head.center .gbadges--center { margin-top: 1.6rem; }
.gbadge {
  display: inline-flex; align-items: center; gap: .7rem; vertical-align: middle;
  background: var(--surface); border: 1px solid var(--line); border-radius: 50px;
  padding: .5rem 1.1rem .5rem .7rem; box-shadow: var(--shadow-sm);
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
a.gbadge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gbadge__logo { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; }
.gbadge__logo svg { width: 24px; height: 24px; display: block; }
.gbadge__logo--yelp { color: #d32323; }
.gbadge__hg { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #0f7d8e; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1; }
.gbadge__body { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.gbadge__top { display: flex; align-items: center; gap: .45rem; }
.gbadge__top strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); }
.gbadge__sub { font-size: .8rem; color: var(--muted); }
.gbadge__sub strong { color: var(--body); font-weight: 600; }
/* Partial-fill star rating (e.g. 4.8 → 96% gold) */
.stars-rate { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 1px; }
.stars-rate::before { content: "★★★★★"; color: var(--line); }
.stars-rate > i { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; }
.stars-rate > i::before { content: "★★★★★"; color: #f5a623; }
.gbadge--center { display: flex; width: max-content; max-width: 100%; margin: 1.5rem auto 0; }
/* Stacked badges inside the service-page CTA aside (paid-ad landing pages) */
.aside-card__reviews { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.aside-card__reviews .gbadges { flex-direction: column; gap: .6rem; }
.aside-card__reviews .gbadge { width: 100%; }

/* Gallery ---------------------------------------------------------------- */
.gallery-filters { display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center; margin-bottom:2.5rem; }
.gallery-filters button {
  font-family: var(--font-head); font-weight:500; font-size:.92rem; padding:.55rem 1.2rem; border-radius:50px;
  border:1.5px solid var(--line); background:#fff; color: var(--body); cursor:pointer; transition: all .2s;
}
.gallery-filters button:hover { border-color: var(--blue); color: var(--blue); }
.gallery-filters button.active { background: var(--blue-dark); border-color: var(--blue-dark); color:#fff; }
/* Before/after wall: wide 16:9 composites, 2-up (desktop) so both faces stay legible.
   Cells are 16:9 to match the images exactly — cover fills with zero cropping. */
.ba-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:1.2rem; }
.ba-grid .ba-item { margin:0; border-radius:var(--radius); overflow:hidden; background:#000; box-shadow:var(--shadow-sm); }
.ba-grid .ba-item img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
@media (max-width:640px){ .ba-grid { grid-template-columns:1fr; } }

.gallery-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:1.2rem; }
.gitem { border-radius: var(--radius); overflow:hidden; position:relative; cursor:pointer; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; background:#000; }
.gitem img { width:100%; height:100%; object-fit:cover; transition: transform .5s; }
.gitem:hover img { transform: scale(1.07); }
.gitem__cap { position:absolute; inset:auto 0 0 0; padding:1.4rem 1rem .9rem; background: linear-gradient(transparent, rgba(15,25,35,.85)); color:#fff; font-family:var(--font-head); font-weight:500; font-size:.9rem; transform: translateY(8px); opacity:0; transition: all .3s; }
.gitem:hover .gitem__cap { transform:none; opacity:1; }
.gitem__tag { position:absolute; top:.8rem; left:.8rem; background: rgba(255,255,255,.92); color: var(--blue-dark); font-family:var(--font-head); font-weight:600; font-size:.72rem; padding:.3rem .7rem; border-radius:50px; }

/* Lightbox */
.lightbox { position: fixed; inset:0; background: rgba(10,16,22,.92); display:none; align-items:center; justify-content:center; z-index:1000; padding:2rem; }
.lightbox.open { display:flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__cap { position:absolute; bottom:2rem; left:0; right:0; text-align:center; color:#fff; font-family:var(--font-head); }
.lightbox__close { position:absolute; top:1.4rem; right:1.6rem; background:none; border:none; color:#fff; font-size:2.4rem; cursor:pointer; line-height:1; }

/* CTA band --------------------------------------------------------------- */
.ctaband { background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color:#fff; position:relative; overflow:hidden; }
.ctaband::before { content:""; position:absolute; right:-6%; top:-30%; width:420px; height:420px; background: radial-gradient(circle, rgba(96,163,217,.25), transparent 70%); }
.ctaband::after { content:""; position:absolute; left:-8%; bottom:-40%; width:420px; height:420px; background: radial-gradient(circle, rgba(116,192,68,.18), transparent 70%); }
.ctaband .container { position:relative; z-index:1; text-align:center; }
.ctaband h2 { color:#fff; }
.ctaband p { color: rgba(255,255,255,.82); max-width:560px; margin-inline:auto; }
.ctaband .hero__actions { justify-content:center; }

/* Page hero (inner pages) ------------------------------------------------ */
.pagehero { background: linear-gradient(160deg, var(--blue-50), #fff); padding-block: clamp(2.5rem,6vw,4.5rem); text-align:center; border-bottom:1px solid var(--line); }
.pagehero p { max-width:640px; margin:1rem auto 0; color: var(--body); font-size:1.15rem; }
.breadcrumb { font-size:.85rem; color: var(--muted); margin-bottom:1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items:start; }
.info-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding:2rem; }
.info-row { display:flex; gap:1rem; align-items:flex-start; padding:1rem 0; border-bottom:1px solid var(--line); }
.info-row:last-child { border-bottom:none; }
.info-row .ico { width:46px; height:46px; border-radius:12px; background: var(--blue-50); color: var(--blue); display:grid; place-items:center; flex:none; }
.info-row .ico svg { width:22px; height:22px; }
.info-row h4 { margin-bottom:.15rem; }
.info-row a, .info-row p { color: var(--body); margin:0; }
.info-row a:hover { color: var(--blue); }

.form { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem,3vw,2.4rem); box-shadow: var(--shadow-sm); }
.form .row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.field { margin-bottom:1.1rem; }
.field label { display:block; font-family: var(--font-head); font-weight:500; font-size:.9rem; color: var(--ink); margin-bottom:.4rem; }
.field input, .field select, .field textarea {
  width:100%; padding:.85rem 1rem; border:1.5px solid var(--line); border-radius:12px; font-family: var(--font-body);
  font-size:1rem; color: var(--ink); background:#fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height:130px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--blue); box-shadow: var(--ring); }
.form__note { font-size:.82rem; color: var(--muted); margin-top:.8rem; }
.hp { position:absolute; left:-9999px; opacity:0; }
.form-success { display:none; background: #eafbe8; border:1px solid var(--green); color: var(--green-dark); padding:1rem 1.2rem; border-radius:12px; margin-bottom:1rem; font-family: var(--font-head); font-weight:500; }
.form-success.show { display:block; }

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

/* Specials --------------------------------------------------------------- */
.special-card { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color:#fff; border-radius: var(--radius-lg); padding: clamp(2rem,4vw,3rem); box-shadow: var(--shadow); }
.special-card h3 { color:#fff; }
.special-card .price { font-family: var(--font-head); font-size:3rem; font-weight:700; line-height:1; margin:.5rem 0; }
.special-card ul.checks li { color: rgba(255,255,255,.95); }
.special-card ul.checks li svg { color: var(--green); }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width:820px; margin-inline:auto; }
.faq__item { border:1px solid var(--line); border-radius: var(--radius); margin-bottom:.9rem; background:#fff; overflow:hidden; }
.faq__q { width:100%; text-align:left; background:none; border:none; padding:1.2rem 1.4rem; font-family: var(--font-head); font-weight:600; color: var(--ink); font-size:1.05rem; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.faq__q svg { width:20px; height:20px; color: var(--blue); transition: transform .25s; flex:none; }
.faq__item.open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height:0; overflow:hidden; transition: max-height .3s ease; }
.faq__a p { padding:0 1.4rem 1.3rem; color: var(--body); margin:0; }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--navy); color: #aeb9c5; padding-block: 3.5rem 1.5rem; font-size:.95rem; }
.footer a { color:#aeb9c5; }
.footer a:hover { color:#fff; }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap:2.5rem; padding-bottom:2.5rem; border-bottom:1px solid rgba(255,255,255,.1); }
.footer__logo-chip { display:inline-block; background:#fff; padding:.7rem 1rem; border-radius:12px; margin-bottom:1.2rem; box-shadow: var(--shadow-sm); }
.footer__logo-chip img { height:44px; width:auto; display:block; }
.footer h3 { color:#fff; font-size:1rem; margin-bottom:1.1rem; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 2px; }
.footer ul li { margin-bottom:.6rem; }
.footer__contact .row { display:flex; gap:.6rem; align-items:flex-start; margin-bottom:.8rem; }
.footer__contact svg { width:18px; height:18px; color: var(--green); flex:none; margin-top:3px; }
.footer__socials { display:flex; gap:.8rem; margin-top:1.2rem; }
.footer__socials a { width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,.08); display:grid; place-items:center; transition: background .2s; }
.footer__socials a:hover { background: var(--blue); }
.footer__socials svg { width:18px; height:18px; }
.footer__bottom { padding-top:1.5rem; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; font-size:.85rem; color:#7e8b98; }

/* Floating call button (mobile) ----------------------------------------- */
.fab-call { position:fixed; right:18px; bottom:18px; z-index:90; display:none; width:58px; height:58px; border-radius:50%; background: var(--green); color:#133; box-shadow: 0 10px 24px rgba(116,192,68,.5); place-items:center; }
.fab-call svg { width:26px; height:26px; }

/* Reveal animation ------------------------------------------------------- */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .nav__menu, .nav__phone { display:none; }
  .nav__toggle { display:flex; }
  .nav.open .nav__menu {
    display:flex; position:absolute; top:78px; left:0; right:0; flex-direction:column; align-items:flex-start;
    background:#fff; padding:1.5rem; gap:1.2rem; box-shadow: var(--shadow); border-top:1px solid var(--line);
    /* never taller than the space below the nav bar — long menus scroll instead of overflowing off-screen */
    max-height: calc(100vh - 78px); max-height: calc(100dvh - 78px);
    overflow-y: auto; overscroll-behavior: contain;
  }
  /* dark mode: the dropdown must be dark so the light nav text stays legible */
  [data-theme="dark"] .nav.open .nav__menu { background: var(--bg); }
  .hero__grid, .split, .contact-grid, .doctor-split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order:0; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .fab-call { display:grid; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .gallery-grid, .statsband .grid-4 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .topbar__info { gap: .9rem; font-size:.8rem; }
  .footer__grid { grid-template-columns: 1fr; gap:2rem; }
  .hero__badge { left:50%; transform: translateX(-50%); bottom:-26px; }
  .statsband .grid-4 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Article / Service-detail / Blog / Carousel (full-site additions) ===== */
.pagehero--article, .pagehero--svc { text-align:left; }
.pagehero--article h1, .pagehero--svc h1 { max-width:900px; }
.article__cat { display:inline-block; background:var(--blue-dark); color:#fff; font-family:var(--font-head); font-weight:600; font-size:.75rem; letter-spacing:.04em; text-transform:uppercase; padding:.35rem .8rem; border-radius:50px; margin-bottom:1rem; }
.article__meta { color:var(--muted); font-size:.95rem; margin-top:.4rem; }

/* two-column layouts with sticky aside */
.article-layout, .svc-layout { display:grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(2rem,4vw,3.5rem); align-items:start; }
.article-aside { position:sticky; top:100px; display:flex; flex-direction:column; gap:1.2rem; }
.aside-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:1.6rem; box-shadow:var(--shadow-sm); }
.aside-card h3 { font-size:1.2rem; margin-bottom:.5rem; }
.aside-card p { color:var(--muted); font-size:.95rem; }
.aside-card--hours h4 { color:var(--ink); font-size:.95rem; }
.aside-card--hours p { color:var(--body); margin:.2rem 0 0; }

/* Hero/lead images render at their natural aspect ratio (most sources are
   landscape 4:3–2:1) so faces aren't cropped; width/height attrs prevent CLS.
   max-height caps the few tall/portrait sources so they don't dominate the
   column — only those get cover-cropped; landscape images stay uncropped. */
.article__hero-img, .svc-hero-img { width:100%; height:auto; max-height:620px; object-fit:cover; border-radius:var(--radius-lg); box-shadow:var(--shadow); margin-bottom:2rem; }
.svc-section { margin-bottom:2rem; }
.svc-section h2 { margin-bottom:.8rem; }

/* rich text from scraped content */
/* break long unbreakable strings (e.g. bare URLs from imported content) so they
   wrap instead of forcing the column wider than the viewport on mobile */
.richtext { color:var(--body); font-size:1.06rem; line-height:1.8; overflow-wrap:break-word; }
.richtext h2 { font-size:clamp(1.5rem,2.4vw,2rem); margin:2rem 0 .8rem; }
.richtext h3 { font-size:1.3rem; margin:1.6rem 0 .6rem; }
.richtext h4 { font-size:1.1rem; margin:1.3rem 0 .5rem; }
.richtext p { margin-bottom:1.1rem; }
.richtext ul, .richtext ol { margin:0 0 1.2rem 1.2rem; }
.richtext ul { list-style:none; }
.richtext ul li { position:relative; padding-left:1.6rem; margin-bottom:.6rem; }
.richtext ul li::before { content:""; position:absolute; left:0; top:.62em; width:8px; height:8px; border-radius:50%; background:var(--green); }
.richtext ol { list-style:decimal; }
.richtext ol li { margin-bottom:.6rem; padding-left:.3rem; }
.richtext a { color:var(--blue-dark); text-decoration:underline; text-underline-offset:2px; }
.richtext a:hover { color:var(--blue); }
.richtext img { border-radius:var(--radius); margin:1.4rem 0; box-shadow:var(--shadow-sm); }
.richtext blockquote { border-left:4px solid var(--green); padding:.5rem 0 .5rem 1.4rem; margin:1.4rem 0; font-style:italic; color:var(--ink); }
.richtext table { width:100%; border-collapse:collapse; margin:1.4rem 0; font-size:.98rem; }
.richtext th, .richtext td { border:1px solid var(--line); padding:.7rem .9rem; text-align:left; }
.richtext th { background:var(--blue-50); font-family:var(--font-head); }

/* Blog cards */
.postgrid { gap:1.8rem; }
.postcard { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; display:flex; flex-direction:column; transition:transform .25s, box-shadow .25s; height:100%; }
.postcard:hover { transform:translateY(-6px); box-shadow:var(--shadow); }
.postcard__img { position:relative; aspect-ratio:16/10; overflow:hidden; }
.postcard__img img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.postcard:hover .postcard__img img { transform:scale(1.06); }
.postcard__cat { position:absolute; top:.8rem; left:.8rem; background:rgba(255,255,255,.93); color:var(--blue-dark); font-family:var(--font-head); font-weight:600; font-size:.72rem; padding:.3rem .7rem; border-radius:50px; }
.postcard__body { padding:1.5rem; flex:1; display:flex; flex-direction:column; }
.postcard__date { color:var(--muted); font-size:.82rem; font-family:var(--font-head); }
.postcard__body h3 { font-size:1.2rem; margin:.4rem 0 .5rem; line-height:1.3; }
.postcard__body p { color:var(--muted); font-size:.95rem; flex:1; }
.postcard__body .more { font-family:var(--font-head); font-weight:600; color:var(--blue); font-size:.9rem; display:inline-flex; align-items:center; gap:.35rem; margin-top:.8rem; }
.postcard__body .more svg { width:16px; height:16px; }
.blog-filters { margin-bottom:2.5rem; }

/* Author profile box (end of blog articles) */
.btn--sm { padding:.6rem 1.1rem; font-size:.92rem; }
.author-box {
  display:flex; gap:1.4rem; align-items:flex-start; margin-top:2.5rem; padding:1.6rem 1.8rem;
  background:var(--bg-soft); border:1px solid var(--line); border-left:4px solid var(--green);
  border-radius:var(--radius-lg);
}
.author-box__photo { width:96px; height:96px; border-radius:50%; object-fit:cover; flex:none; box-shadow:var(--shadow-sm); }
.author-box__eyebrow { font-family:var(--font-head); font-weight:600; font-size:.74rem; letter-spacing:.12em; text-transform:uppercase; color:var(--blue-dark); }
.author-box__name { font-size:1.25rem; margin:.15rem 0 .5rem; }
.author-box__bio { color:var(--body); font-size:.97rem; margin:0 0 1rem; }
.author-box__actions { display:flex; align-items:center; gap:1.2rem; flex-wrap:wrap; }
.author-box__actions .more { color:var(--blue-dark); font-family:var(--font-head); font-weight:600; font-size:.92rem; }
[data-theme="dark"] .author-box { background:var(--surface); }
[data-theme="dark"] .author-box__eyebrow,
[data-theme="dark"] .author-box__actions .more { color:var(--blue-light); }
@media (max-width:520px) {
  .author-box { flex-direction:column; gap:1rem; padding:1.4rem; }
  .author-box__photo { width:80px; height:80px; }
}

/* Carousel */
.carousel { position:relative; border-radius:var(--radius-lg); overflow:hidden; background:#0c1219; box-shadow:var(--shadow); }
.carousel__track { position:relative; aspect-ratio:4/3; }
.carousel__slide { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.carousel__slide[hidden] { display:none; }
.carousel__slide img { width:100%; height:100%; object-fit:contain; background:#0c1219; }
.carousel__btn { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:50%; border:none; background:rgba(255,255,255,.92); color:var(--blue-dark); cursor:pointer; display:grid; place-items:center; box-shadow:var(--shadow-sm); transition:background .2s, transform .2s; z-index:2; }
.carousel__btn:hover { background:#fff; }
.carousel__btn svg { width:22px; height:22px; }
.carousel__btn--prev { left:14px; transform:translateY(-50%) rotate(180deg); }
.carousel__btn--next { right:14px; }
.carousel__dots { position:absolute; left:0; right:0; bottom:14px; display:flex; gap:.5rem; justify-content:center; z-index:2; }
.carousel__dot { width:9px; height:9px; border-radius:50%; border:none; background:rgba(255,255,255,.5); cursor:pointer; padding:0; transition:background .2s, transform .2s; }
.carousel__dot.active { background:#fff; transform:scale(1.25); }

/* Homepage smile slider: wide 16:9 before/after composites, one pair at a time.
   Images are pre-flattened onto #000, so a pure-black frame blends seamlessly
   (no navy seam if aspect-ratio rounding leaves a sub-pixel gap). */
.carousel--ba { background:#000; }
.carousel--ba .carousel__track { aspect-ratio:16/9; }
.carousel--ba .carousel__slide img { object-fit:contain; background:#000; }
/* On phones the composite is small, so shrink the nav buttons to obstruct less of it. */
@media (max-width:640px){
  .carousel--ba .carousel__btn { width:38px; height:38px; }
  .carousel--ba .carousel__btn svg { width:18px; height:18px; }
  .carousel--ba .carousel__btn--prev { left:8px; }
  .carousel--ba .carousel__btn--next { right:8px; }
}

@media (max-width: 900px) {
  .article-layout, .svc-layout { grid-template-columns:minmax(0,1fr); }
  .article-aside { position:static; flex-direction:row; flex-wrap:wrap; }
  .article-aside .aside-card { flex:1; min-width:240px; }
}
@media (max-width:640px){
  .postgrid { grid-template-columns:1fr; }
  .article-aside { flex-direction:column; }
}

/* ===== Refinements: smaller "more" arrow + mobile sticky action bar ===== */
.more { display:inline-flex; align-items:center; gap:.4rem; }
.more svg { width:15px; height:15px; flex:none; transition:transform .2s; }
.scard:hover .more svg, .postcard:hover .more svg { transform:translateX(3px); }

/* Mobile bottom action bar (replaces single floating call bubble) */
.mobile-bar { display:none; }
@media (max-width: 980px) {
  .mobile-bar {
    position:fixed; left:0; right:0; bottom:0; z-index:95; display:flex; gap:.6rem;
    padding:.55rem .8rem calc(.55rem + env(safe-area-inset-bottom,0px));
    background:rgba(255,255,255,.97); backdrop-filter:blur(10px);
    border-top:1px solid var(--line); box-shadow:0 -6px 22px rgba(25,30,38,.12);
  }
  .mobile-bar__btn {
    flex:1; display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
    font-family:var(--font-head); font-weight:600; font-size:1rem; padding:.95rem .8rem;
    border-radius:50px; line-height:1; border:2px solid transparent;
  }
  .mobile-bar__btn svg { width:18px; height:18px; flex:none; }
  .mobile-bar__btn--call { background:#fff; color:var(--blue-dark); border-color:var(--blue-100); }
  .mobile-bar__btn--book { background:var(--blue-dark); color:#fff; flex:1.35; box-shadow:0 6px 16px rgba(31,106,160,.32); }
  /* declutter the header: bottom bar now carries the primary actions */
  .nav__cta .btn--primary { display:none; }
  body { padding-bottom:74px; }
  /* the old floating bubble is retired */
  .fab-call { display:none !important; }
}

/* ===== Homepage hero refinements: larger team photo + slimmer badge ===== */
@media (min-width: 981px) {
  .hero__grid { grid-template-columns: 0.82fr 1.18fr; gap: clamp(1.75rem, 3vw, 2.75rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
  .hero p { max-width: 460px; }
}
.hero__media img { width: 100%; }
/* slim, less intrusive trust badge */
.hero__badge { padding: .65rem .9rem; gap: .6rem; bottom: -16px; left: -16px; border-radius: 12px; }
.hero__badge .ico { width: 34px; height: 34px; border-radius: 10px; }
.hero__badge .ico svg { width: 19px; height: 19px; }
.hero__badge strong { font-size: .88rem; }
.hero__badge span { font-size: .74rem; }

/* ===== Mobile top utility bar cleanup ===== */
@media (max-width: 640px) {
  .topbar__socials { display: none; }
  .topbar .container { justify-content: flex-start; gap: .1rem .9rem; min-height: 0; padding-block: .5rem; }
  .topbar__info { gap: .15rem .9rem; font-size: .78rem; }
  .topbar__info span { gap: .35rem; }
}

/* Homepage hero: highlight the flagship Dental Implants callout */
.hero__trust .stat--feature strong { color: var(--blue); }
.hero__trust .stat--feature { position: relative; padding-left: .9rem; }
.hero__trust .stat--feature::before { content:""; position:absolute; left:0; top:2px; bottom:2px; width:3px; border-radius:3px; background: var(--green); }

/* ===== Accessibility (WCAG AA) pass ===== */
/* Stronger contrast for muted text (#76828e failed AA on white) */
:root { --muted: #5f6b77; }
/* Eyebrow + primary buttons: ensure AA contrast for small/bold text */
.eyebrow { color: var(--blue-dark); }
.btn--primary { background: var(--blue-dark); box-shadow: 0 10px 22px rgba(31,106,160,.3); }
.btn--primary:hover { background: var(--navy-soft); }
.card .more, .scard__body .more, .postcard__body .more { color: var(--blue-dark); }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.gitem:focus-visible, .faq__q:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Skip-to-content link (visible only on keyboard focus) */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--blue-dark); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 10px 10px; font-family: var(--font-head); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ============================ Dark mode ============================= */
:root { --surface: #ffffff; color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef2f7;
  --body: #c3ccd6;
  --muted: #94a1ad;
  --line: #2a333f;
  --bg: #0f141a;
  --bg-soft: #151c24;
  --bg-tint: #15212c;
  --white: #1b232d;
  --surface: #1b232d;
  --blue-50: #15212c;
  --blue-100: #1d3346;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.4);
  --shadow: 0 12px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
}
/* surfaces that were hard-coded white */
[data-theme="dark"] .header { background: rgba(15,20,26,.92); }
[data-theme="dark"] .hero { background: linear-gradient(160deg, #13202b 0%, var(--bg) 55%); }
[data-theme="dark"] .pagehero { background: linear-gradient(160deg, #13202b, var(--bg)); }
[data-theme="dark"] .section--tint { background: linear-gradient(180deg, #13202b, var(--bg)); }
[data-theme="dark"] .trustbar { background: var(--surface); }
/* trust-strip labels use --navy-soft (a dark navy) — invisible on the dark
   surface, so lift them to the light heading ink in dark mode */
[data-theme="dark"] .trustbar .item { color: var(--ink); }
[data-theme="dark"] .card,
[data-theme="dark"] .scard,
[data-theme="dark"] .review,
[data-theme="dark"] .faq__item,
[data-theme="dark"] .form,
[data-theme="dark"] .info-card,
[data-theme="dark"] .aside-card,
[data-theme="dark"] .postcard,
[data-theme="dark"] .card.reveal { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .btn--ghost { background: var(--surface); color: var(--blue-light); border-color: var(--line); }
[data-theme="dark"] .btn--ghost:hover { border-color: var(--blue-light); color: var(--blue-light); }
[data-theme="dark"] .gallery-filters button { background: var(--surface); color: var(--body); border-color: var(--line); }
[data-theme="dark"] .gallery-filters button:hover { color: var(--blue-light); border-color: var(--blue-light); }
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea { background: #121922; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .mobile-bar { background: rgba(15,20,26,.97); }
[data-theme="dark"] .mobile-bar__btn--call { background: var(--surface); color: var(--blue-light); border-color: var(--line); }
[data-theme="dark"] .eyebrow { color: var(--blue-light); }
/* lighten inline CONTENT links only — never buttons/nav, so button text stays legible */
[data-theme="dark"] .richtext a,
[data-theme="dark"] .breadcrumb a,
[data-theme="dark"] .callout a,
[data-theme="dark"] .info-row a { color: var(--blue-light); }
[data-theme="dark"] .richtext th { background: #18293a; }
[data-theme="dark"] .map-embed { border-color: var(--line); }
/* footer is dark in both themes — keep the white logo chip so the colored logo reads */
/* lift accent text that fails AA on dark surfaces (blue-dark was tuned for white bg) */
[data-theme="dark"] .card .more,
[data-theme="dark"] .scard__body .more,
[data-theme="dark"] .postcard__body .more,
[data-theme="dark"] .aside-card .more { color: var(--blue-light); }
/* credential pills: lighten text + chip so they read on the dark surface */
[data-theme="dark"] .creds span { background: var(--blue-100); color: var(--blue-light); }
/* floating hero badge is hard-coded #fff but its text uses --ink/--muted, which
   flip light in dark mode — flip the chip too so the text never sits on white */
[data-theme="dark"] .hero__badge { background: var(--surface); border: 1px solid var(--line); }
/* nav active/hover stays light on the dark header (blue-dark fails contrast there) */
[data-theme="dark"] .nav__menu a:hover,
[data-theme="dark"] .nav__menu a.active { color: var(--blue-light); }

/* Theme toggle button */
.theme-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; flex: none; }
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: inline-flex; }

/* ===================== Homepage continuous slider ==================== */
.marquee { overflow: hidden; padding: .5rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 1.2rem; width: max-content; animation: marquee-scroll 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: 0 0 auto; width: 300px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #0c1219; }
.marquee__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.marquee__item:hover img { transform: scale(1.05); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .marquee__item { width: 220px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .marquee__track { animation: none; }
}

/* Dark mode: keep the colored header logo legible on the dark bar */
[data-theme="dark"] .nav__logo { background: #fff; padding: .35rem .6rem; border-radius: 10px; line-height: 0; }
