/* ============================================================
   Elevate Smiles Dental — Global Stylesheet
   Fonts: Cormorant Garamond (serif headings) + Inter (sans body)
   ============================================================ */

/* Fonts loaded async in each page's <head> — no @import here to avoid chained requests */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --green-dark:   #7D8B61;
  --green-mid:    #96A47D;
  --green-light:  #A8B592;
  --gold:         #C9A86C;
  --gold-light:   #d4b87e;
  --cream:        #faf8f4;
  --white:        #ffffff;
  --text-dark:    #1a1a1a;
  --text-mid:     #4a4a4a;
  --text-light:   #6b6b6b;
  --border:       #e8e4dc;
  --font-serif:   'Cormorant Garamond', 'Cormorant Garamond Fallback', Georgia, serif;
  --font-sans:    'Inter', 'Inter Fallback', Arial, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text-dark); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: normal; color: var(--gold); }

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  font-family: var(--font-sans);
  font-size: .75rem;
  padding: .4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,.75); transition: color .2s; }
.topbar a:hover { color: var(--gold-light); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.topbar-espanol {
  display: none;
  font-style: italic;
  font-weight: 600;
  color: var(--gold-light);
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .65rem; }
.logo-mark {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark img {
  width: 42px; height: 42px;
  object-fit: contain;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1rem; font-weight: 700; color: var(--green-dark); letter-spacing: .02em; font-family: var(--font-sans); }
.logo-text span { font-family: var(--font-sans); font-size: .65rem; color: var(--text-light); letter-spacing: .08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a {
  font-family: var(--font-sans);
  font-size: .82rem; font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase; letter-spacing: .06em;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--green-mid); }

.header-cta {
  background: var(--gold);
  color: var(--green-dark);
  font-family: var(--font-sans);
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: .55rem 1.25rem;
  border-radius: 8px;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  display: inline-block;
}
.header-cta:hover { background: var(--gold-light); transform: translateY(-1px); color: var(--green-dark); }
.header-espanol {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  white-space: nowrap;
}
.cta-mobile { display: none; }
@media (max-width: 768px) {
  .header-inner { padding: .7rem 1.25rem; }
  .cta-full { display: none; }
  .cta-mobile { display: inline; }
  .header-espanol { display: none; }
  .topbar-espanol { display: inline; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-mark img { width: 32px; height: 32px; }
}

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: .25rem; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--green-dark); margin: 5px 0; transition: all .3s; }

/* ── Mega Menu — Desktop ────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans);
  font-size: .82rem; font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase; letter-spacing: .06em;
  display: flex; align-items: center; gap: .3rem;
  padding: 0; transition: color .2s;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.active > .nav-dropdown-trigger { color: var(--green-mid); }
.dd-chevron { transition: transform .25s; }
.nav-dropdown.open .dd-chevron { transform: rotate(180deg); }

/* Hover bridge — prevents menu from closing when crossing the gap */
.nav-dropdown::after {
  content: ''; position: absolute;
  top: 100%; left: 0; right: 0; height: 1.5rem;
  display: none;
}
@media (min-width: 769px) {
  .nav-dropdown:hover::after { display: block; }
}

/* Panel */
.mega-panel {
  position: absolute; top: calc(100% + 1.15rem); left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.04);
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 200;
  padding: 1.75rem 2rem;
}
/* Show on hover (desktop) */
@media (min-width: 769px) {
  .nav-dropdown:hover > .mega-panel,
  .nav-dropdown.open > .mega-panel {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}
/* Also show via JS .open class */
.nav-dropdown.open > .mega-panel {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-inner { display: flex; gap: 2.25rem; }

/* Sizing per panel type */
.mega-about .mega-inner { min-width: 340px; }
.mega-services .mega-inner { min-width: 680px; }
.mega-patients .mega-inner { min-width: 340px; }

.mega-col { min-width: 140px; }
.mega-col h4 {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold); margin-bottom: .75rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}
.mega-col a {
  display: block; padding: .55rem 0;
  font-family: var(--font-sans); font-size: .85rem; font-weight: 500;
  color: var(--text-mid); transition: color .15s, padding-left .15s;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.mega-col a:hover { color: var(--green-mid); padding-left: .25rem; }

/* CTA card inside services mega */
.mega-col-cta { display: flex; flex-direction: column; justify-content: space-between; min-width: 180px; }
.mega-cta-card {
  background: var(--cream); border-radius: 8px; padding: 1.25rem;
  margin-bottom: .75rem;
}
.mega-cta-card h4 {
  border: none; padding-bottom: 0; margin-bottom: .4rem;
  font-size: .82rem; color: var(--green-dark); text-transform: none; letter-spacing: 0;
}
.mega-cta-card p {
  font-family: var(--font-sans); font-size: .8rem; color: var(--text-mid);
  line-height: 1.5; margin-bottom: .75rem;
}
.mega-cta-btn { font-size: .72rem !important; padding: .55rem 1.1rem !important; text-align: center; justify-content: center; }
.mega-all-link {
  font-family: var(--font-sans); font-size: .8rem; font-weight: 600;
  color: var(--green-mid); transition: color .15s;
}
.mega-all-link:hover { color: var(--green-dark); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold); color: var(--green-dark);
  font-family: var(--font-sans); font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: .8rem 1.75rem; border-radius: 8px;
  transition: background .2s, transform .15s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); color: var(--green-dark); }

.btn-green {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green-dark); color: var(--white);
  font-family: var(--font-sans); font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: .85rem 2rem; border-radius: 8px;
  transition: background .2s, transform .15s;
}
.btn-green:hover { background: var(--green-mid); transform: translateY(-2px); color: var(--white); }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid rgba(255,255,255,.4); color: rgba(255,255,255,.85);
  font-family: var(--font-sans); font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  padding: .8rem 1.5rem; border-radius: 8px;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── Section shared ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--green-light); margin-bottom: .5rem;
}
.section-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.2; color: var(--green-dark);
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb { background: var(--cream); border-bottom: 1px solid var(--border); padding: .65rem 1.5rem; }
.breadcrumb-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans); font-size: .78rem; color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); transition: color .2s; }
.breadcrumb a:hover { color: var(--green-mid); }
.breadcrumb-sep { opacity: .5; }

/* ── Service page hero ───────────────────────────────────── */
.svc-hero { background: var(--green-dark); min-height: 520px; display: grid; grid-template-columns: 1fr 1fr; }
.svc-hero-content { display: flex; flex-direction: column; justify-content: center; padding: 4rem 3rem 4rem 5rem; }
.svc-hero-eyebrow {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--gold); margin-bottom: .9rem;
}
.svc-hero-h1 { font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; color: var(--white); margin-bottom: 1.25rem; }
.svc-hero-sub { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.78); max-width: 480px; margin-bottom: 2rem; font-family: var(--font-sans); }
.svc-hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.svc-hero-image { position: relative; overflow: hidden; }
.svc-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, var(--green-dark) 0%, transparent 30%); }

/* ── What Is ─────────────────────────────────────────────── */
.what-is { padding: 5rem 1.5rem; background: var(--white); }
.what-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.what-image { border-radius: 8px; overflow: hidden; position: relative; }
.what-image img { width: 100%; height: 420px; object-fit: cover; }
.what-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: var(--green-dark); color: var(--gold);
  font-family: var(--font-sans); font-size: .75rem; font-weight: 700;
  padding: .5rem 1rem; border-radius: 4px;
  display: flex; align-items: center; gap: .4rem;
}
.what-label { font-family: var(--font-sans); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--green-light); margin-bottom: .6rem; }
.what-h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.5vw, 2.2rem); line-height: 1.2; color: var(--green-dark); margin-bottom: 1.25rem; }
.what-p { font-size: 1rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 1rem; font-family: var(--font-sans); }
.what-list { list-style: none; margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: .55rem; }
.what-list li { display: flex; align-items: flex-start; gap: .6rem; font-family: var(--font-sans); font-size: .92rem; color: var(--text-mid); line-height: 1.5; }
.what-list li .ico { color: var(--green-light); flex-shrink: 0; margin-top: 2px; }

/* ── Benefits ────────────────────────────────────────────── */
.benefits { padding: 5rem 1.5rem; background: var(--cream); }
.benefits-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.benefit-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem 1.5rem; transition: box-shadow .2s, transform .2s; }
.benefit-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-4px); }
.benefit-icon { width: 44px; height: 44px; background: rgba(168,181,146,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--green-mid); margin-bottom: 1rem; }
.benefit-card h3 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--green-dark); margin-bottom: .5rem; }
.benefit-card p { font-family: var(--font-sans); font-size: .88rem; line-height: 1.6; color: var(--text-mid); }

/* ── Sub-sections ────────────────────────────────────────── */
.subsections { padding: 5rem 1.5rem; background: var(--white); }
.subsections-inner { max-width: 1100px; margin: 0 auto; }
.subsections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; margin-top: 2.5rem; }
.subsection-card { border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; }
.subsection-card h3 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--green-dark); margin-bottom: .65rem; padding-bottom: .65rem; border-bottom: 1px solid var(--border); }
.subsection-card p { font-family: var(--font-sans); font-size: .9rem; line-height: 1.65; color: var(--text-mid); }

/* ── Content sections ────────────────────────────────────── */
.content-sections { padding: 5rem 1.5rem; background: var(--cream); }
.content-inner { max-width: 1100px; margin: 0 auto; }
.content-block { margin-bottom: 3rem; }
.content-block:last-child { margin-bottom: 0; }
.content-block h2 { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--green-dark); margin-bottom: 1rem; }
.content-block p { font-family: var(--font-sans); font-size: .95rem; line-height: 1.8; color: var(--text-mid); margin-bottom: .75rem; }
.content-block ul { list-style: none; margin: .75rem 0; display: flex; flex-direction: column; gap: .5rem; padding-left: .25rem; }
.content-block ul li { display: flex; align-items: flex-start; gap: .65rem; font-family: var(--font-sans); font-size: .92rem; color: var(--text-mid); line-height: 1.55; }
.content-block ul li .ico { color: var(--green-light); flex-shrink: 0; margin-top: 2px; }
.content-block h3 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--green-dark); margin: 1.5rem 0 .5rem; }

/* ── Why Us (dark green) ─────────────────────────────────── */
.why-us { padding: 5rem 1.5rem; background: var(--green-dark); }
.why-us .section-h2 { color: var(--white); }
.why-us .section-eyebrow { color: var(--gold); }
.why-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.why-card { border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 1.75rem 1.5rem; background: rgba(255,255,255,.04); }
.why-card h3 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); margin-bottom: .5rem; }
.why-card p { font-family: var(--font-sans); font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.7); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section { padding: 5rem 1.5rem; background: var(--white); }
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  text-align: left; padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-serif); font-size: 1.1rem; color: var(--green-dark);
}
.faq-q .faq-icon { flex-shrink: 0; color: var(--green-light); transition: transform .25s; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 1.25rem; font-family: var(--font-sans); font-size: .93rem; line-height: 1.75; color: var(--text-mid); }
.faq-a.open { display: block; }

/* ── Process (dark green) ────────────────────────────────── */
.process { padding: 5rem 1.5rem; background: var(--green-dark); }
.process .section-h2 { color: var(--white); }
.process .section-eyebrow { color: var(--gold); }
.process-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.process-step { padding: 2rem 1.5rem; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.04); }
.step-num { font-family: var(--font-sans); font-size: 2.5rem; font-weight: 700; color: var(--gold); opacity: .4; line-height: 1; margin-bottom: .75rem; }
.process-step h3 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); margin-bottom: .6rem; }
.process-step p { font-family: var(--font-sans); font-size: .85rem; line-height: 1.65; color: rgba(255,255,255,.7); }

/* ── CTA ─────────────────────────────────────────────────── */
.cta-section { padding: 5rem 1.5rem; background: var(--cream); text-align: center; }
.cta-inner { max-width: 700px; margin: 0 auto; }
.cta-h2 { font-family: var(--font-serif); font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.2; color: var(--green-dark); margin-bottom: 1rem; }
.cta-sub { font-family: var(--font-sans); font-size: 1.05rem; color: var(--text-mid); margin-bottom: 2rem; line-height: 1.7; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-phone { font-family: var(--font-sans); font-size: .9rem; color: var(--text-mid); }
.cta-phone a { color: var(--green-mid); font-weight: 700; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.7); font-family: var(--font-sans); font-size: .85rem; }
.footer-main { max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.5rem 2rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { line-height: 1.65; margin-top: .75rem; max-width: 260px; }
.footer-col h4 { color: var(--gold); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; font-family: var(--font-sans); }
.footer-col a { display: block; margin-bottom: .45rem; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 1.5rem; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .78rem; color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════════════════════
   Float widget — Desktop (right-side vertical stack)
   ══════════════════════════════════════════════════════════ */
.float-widget {
  position: fixed; right: 1rem; bottom: 1.75rem;
  z-index: 999;
  display: flex; flex-direction: column; align-items: flex-end; gap: .6rem;
}
.float-links {
  display: flex; flex-direction: column; gap: .55rem; align-items: flex-end;
}

/* Social icons vertical capsule */
.float-social-pill {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  background: rgba(30,30,30,.88); backdrop-filter: blur(8px);
  border-radius: 50px; padding: .5rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.3);
}
.float-social {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: transform .15s, box-shadow .15s; flex-shrink: 0;
}
.float-social:hover { transform: scale(1.12); color: var(--white); }
.float-social--ig  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.float-social--fb  { background: #1877f2; }
.float-social--tt  { background: #010101; }
.float-social--gmb { background: #fff; }

/* Action pill buttons */
.float-btn {
  display: flex; align-items: center; gap: .55rem;
  background: var(--green-dark); color: var(--white);
  font-family: var(--font-sans); font-size: .82rem; font-weight: 600;
  padding: .6rem 1.2rem .6rem .9rem; border-radius: 50px;
  box-shadow: 0 3px 12px rgba(0,0,0,.22);
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.float-btn svg { flex-shrink: 0; opacity: .9; }
.float-btn--gold {
  background: var(--gold); color: var(--green-dark);
}
.float-btn--gold svg { stroke: var(--green-dark); }
.float-btn--gold:hover {
  background: var(--gold-light); color: var(--green-dark);
  transform: translateX(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.28);
}
.float-btn--green {
  background: var(--green-dark); color: var(--white);
}
.float-btn--green:hover {
  background: var(--green-mid); color: var(--white);
  transform: translateX(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.28);
}

/* ══════════════════════════════════════════════════════════
   Mobile bottom bar — full-width tab bar at the bottom
   ══════════════════════════════════════════════════════════ */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--green-dark);
  border-top: 1px solid rgba(255,255,255,.12);
  z-index: 999;
  padding: .4rem .75rem calc(.4rem + env(safe-area-inset-bottom));
  align-items: center; gap: .5rem;
}
/* Action buttons — left side */
.mobile-bar-actions {
  display: flex; flex: 1; gap: .25rem;
}
.mobile-bar-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .2rem;
  color: rgba(255,255,255,.9); padding: .3rem .2rem;
  border-radius: 6px; transition: background .15s;
  font-family: var(--font-sans); font-size: .58rem; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
}
.mobile-bar-btn:hover, .mobile-bar-btn:active { background: rgba(255,255,255,.1); color: var(--white); }
.mobile-bar-btn svg { opacity: .9; }

/* Vertical divider */
.mobile-bar-sep {
  width: 1px; height: 32px; flex-shrink: 0;
  background: rgba(255,255,255,.2);
}

/* Social icons — right side */
.mobile-bar-social {
  display: flex; gap: .3rem; align-items: center; flex-shrink: 0;
}
.mobile-bar-social a {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: transform .15s; flex-shrink: 0;
}
.mobile-bar-social a:hover { transform: scale(1.1); color: var(--white); }
.mobile-bar-social .float-social--ig  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.mobile-bar-social .float-social--fb  { background: #1877f2; }
.mobile-bar-social .float-social--tt  { background: #010101; }
.mobile-bar-social .float-social--gmb { background: #fff; }

@media (max-width: 768px) {
  /* Hide desktop float widget */
  .float-widget { display: none; }
  /* Show mobile bar */
  .mobile-bar { display: flex; }
  /* Push page content up so footer isn't hidden under bar */
  body { padding-bottom: 62px; }
}

/* ── Scroll animations ───────────────────────────────────── */
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* ── Footer social + hours ───────────────────────────────── */
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: border-color .2s, color .2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-hours { color: rgba(255,255,255,.7); font-size: .82rem; line-height: 1.7; margin-top: .75rem; }

/* ── Responsive ──────────────────────────────────────────── */
/* ── Tablet ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .main-nav { gap: 1.25rem; }
  .main-nav a, .nav-dropdown-trigger { font-size: .78rem; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  /* Constrain mega panels on tablet */
  .mega-services .mega-inner { min-width: 520px; flex-wrap: wrap; }
}

/* ── Mobile nav & layout ──────────────────────────────────── */
@media (max-width: 768px) {
  /* Float widget */
  .float-toggle { display: flex; }
  .float-links { display: none; }
  .float-links.open { display: flex; }

  /* Header */
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: .75rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 200;
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav > a {
    padding: .75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
    letter-spacing: .04em;
  }
  .main-nav > a:last-child { border-bottom: none; }
  .mobile-toggle { display: flex; flex-direction: column; }

  /* Mega menu → accordion on mobile */
  .nav-dropdown {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-dropdown::after { display: none !important; }
  .nav-dropdown-trigger {
    width: 100%;
    padding: .75rem 0;
    font-size: .85rem;
    letter-spacing: .04em;
    justify-content: space-between;
  }
  .mega-panel {
    position: static !important;
    transform: none !important;
    left: auto; top: auto;
    border: none; border-radius: 0;
    box-shadow: none;
    padding: 0;
    max-height: 0; overflow: hidden;
    opacity: 1; visibility: visible;
    transition: max-height .3s ease;
  }
  .nav-dropdown.open > .mega-panel {
    max-height: 800px;
    padding: 0 0 .75rem 0;
    transform: none !important;
  }
  .mega-inner { flex-direction: column; gap: .75rem; min-width: 0 !important; }
  .mega-about .mega-inner,
  .mega-services .mega-inner,
  .mega-patients .mega-inner { min-width: 0 !important; }
  .mega-col { min-width: 0; }
  .mega-col h4 { margin-bottom: .4rem; padding-bottom: .3rem; font-size: .65rem; }
  .mega-col a { padding: .35rem 0; font-size: .82rem; border-bottom: none; }
  .mega-col-cta { display: none; }
  .mega-all-link { padding: .35rem 0; display: block; font-size: .82rem; }

  /* Service page hero (.svc-hero) */
  .svc-hero { grid-template-columns: 1fr; min-height: auto; }
  .svc-hero-image { min-height: 260px; order: -1; }
  .svc-hero-overlay { background: linear-gradient(to bottom, transparent 60%, var(--green-dark)); }
  .svc-hero-content { padding: 2rem 1.5rem 2.5rem; }
  .svc-hero-actions { flex-direction: column; }
  .svc-hero-actions .btn-gold,
  .svc-hero-actions .btn-outline { text-align: center; justify-content: center; }

  /* What Is */
  .what-inner { grid-template-columns: 1fr; gap: 2rem; }
  .what-image img { height: 280px; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-brand { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .5rem; }
}

/* ── Small mobile ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .topbar-left span:not(.topbar-espanol) { display: none; }
  .topbar { justify-content: space-between; }
  .header-inner { padding: .7rem 1.25rem; }
  .logo-text strong { font-size: .9rem; }
  .svc-hero-h1 { font-size: 1.75rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}
