﻿
:root{
  --navy:#163a63;
  --navy-2:#1b4676;
  --bg:#ffffff;
  /* slightly deeper "spa-lux" neutral so the UI reads more navy than silver */
  --soft:#f2f6fb;
  --text:#163a63;
  --muted:rgba(22,58,99,.80);
  --line:rgba(22,58,99,.12);
  --shadow: 0 16px 50px rgba(22,58,99,.08);
  --radius:18px;
  --radius-sm:14px;
  --container: 1120px;
}

/* Inline text links (e.g., "See all reviews") should match site theme */
.text-link,
.text-link:visited{
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover,
.text-link:focus{
  color: var(--navy-2);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

/* --- First-load intro (white → content) --- */
.page-intro{
  position:fixed;
  inset:0;
  background:#ffffff;
  opacity:1;
  z-index:9999;
  pointer-events:none;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.page-intro.is-hidden{opacity:0;}

/* Header intro reveal: slightly slower, premium settle */
.intro-reveal{
  opacity:0;
  transform: translateY(-6px);
  transition:
    opacity 1050ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1050ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.intro-reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* --- Scroll reveal (Wix-like fade + rise) --- */
.reveal{
  opacity: 0;
  transform: translateY(var(--revealY, 20px));
  transition:
    opacity var(--revealDur, 950ms) cubic-bezier(0.22, 1, 0.36, 1),
    transform var(--revealDur, 950ms) cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Hero caption reveal: slower + slightly smaller rise, with a small intentional delay */
.hero-reveal{
  --revealDur: 2000ms;
  --revealY: 8px;
}

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
img{max-width:100%;display:block}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}

/* Premium section wrapper */
.panel{
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(11,31,58,.06);
  padding: 28px;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.82);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
}

/* Ensure the header + mobile menu stay clickable even after scrolling */
.site-header{ z-index: 5000; isolation:isolate; pointer-events:auto; touch-action:manipulation; }
.nav-toggle{ position: relative; z-index: 6001; pointer-events:auto; touch-action:manipulation; }
.mobile-nav{ z-index: 5500; }
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:86px;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--navy);
}
.brand-mark{
  width:34px;height:34px;border-radius:999px;
  border:1px solid var(--line);
  box-shadow: inset 0 0 0 6px rgba(11,31,58,.04);
}
.brand-name{
  font-family:"Playfair Display", Georgia, serif;
  font-weight:600;
  letter-spacing:.2px;
  font-size:18px;
}
.nav-links{
  display:flex;
  gap:22px;
  align-items:center;
}
.nav-links a{
  text-decoration:none;
  color:rgba(11,31,58,.78);
  font-weight:500;
  font-size:14px;
}
.nav-links a:hover{color:var(--navy)}
.nav-cta{display:flex;gap:10px;align-items:center}
.nav-toggle{display:none}
.mobile-drawer{display:none}

/* Ensure the HTML [hidden] attribute always wins, even if author styles
   set display in responsive rules. */
.mobile-drawer[hidden]{display:none !important}

/* Buttons */
.btn{
  border-radius:999px;
  padding:11px 16px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--navy);
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:transform .08s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{box-shadow:0 10px 26px rgba(11,31,58,.10)}
.btn:active{transform:translateY(1px)}
.btn-primary{
  background:var(--navy);
  color:#fff;
  border-color:rgba(11,31,58,.18);
}
.btn-primary:hover{background:var(--navy-2)}
.btn-ghost{background:transparent}
.btn-lg{padding:13px 18px;font-size:14px}

/* Typography */
h1,h2{
  font-family:"Playfair Display", Georgia, serif;
  color:var(--navy);
  line-height:1.12;
  margin:0;
}
h1{font-size:58px;letter-spacing:-.3px}
h2{font-size:40px}
.eyebrow{
  margin:0 0 10px 0;
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:12px;
  color:rgba(11,31,58,.62);
  font-weight:600;
}
.doctor-role{
  margin:6px 0 14px 0;
  font-size:14px;
  font-weight:600;
  color:var(--muted);
}
.lead{
  margin:14px 0 0 0;
  font-size:18px;
  color:var(--muted);
  max-width:52ch;
}
.lead-sm{
  margin:10px 0 0 0;
  font-size:16px;
  color:var(--muted);
  max-width:60ch;
}
.subhead{
  margin:10px 0 0 0;
  color:var(--muted);
  max-width:62ch;
}
.micro{
  margin:12px 0 0 0;
  font-size:12px;
  color:rgba(11,31,58,.56);
}

/* Sections */
.section{padding:70px 0}
.section-soft{background:var(--soft)}
.section-head{margin-bottom:24px}
.section-head.row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
}
.hero{
  padding:56px 0 20px 0;
  background:linear-gradient(180deg, rgba(246,248,251,.85), rgba(255,255,255,1));
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:44px;
  align-items:center;
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.hero-media{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.hero-media img{width:100%;height:auto}

/* About */
.about-preview, .about-page{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap:42px;
  align-items:start;
}
.about-photo{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  align-self: start;
}
.about-actions{margin-top:14px}
.link{
  color:var(--navy);
  text-decoration:none;
  font-weight:600;
}
.link:hover{text-decoration:underline}

/* Pillars */
.pillars{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
.pillar{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:0 10px 30px rgba(11,31,58,.06);
}
.pillar-kicker{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(11,31,58,.60);
  font-weight:700;
}
.pillar-title{
  margin-top:10px;
  font-size:16px;
  color:rgba(11,31,58,.85);
  font-weight:600;
}

/* Cards / Services */
.cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
.card{
  text-align:left;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(11,31,58,.06);
  cursor:pointer;
  padding:0;
}
.card img{width:100%;height:auto}
.card-meta{
  padding:14px 16px 16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.card-title{
  font-weight:700;
  color:var(--navy);
  font-size:14px;
}
.card-cta{
  font-weight:700;
  color:var(--navy);
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.card-cta .caret{
  display:inline-block;
  transform:rotate(0deg);
  transition:transform .18s ease;
  font-size:14px;
  line-height:1;
}
.service-trigger[aria-expanded="true"] .card-cta .caret{
  transform:rotate(180deg);
}
.card:hover{box-shadow:0 18px 60px rgba(11,31,58,.10)}
.trust-strip{
  margin-top:18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.trust-item{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:rgba(11,31,58,.70);
  font-weight:600;
  font-size:13px;
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:34px;
  align-items:start;
}
.contact-cards{
  margin-top:18px;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.contact-card{
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}
.contact-label{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(11,31,58,.55);
  font-weight:700;
}
.contact-value{
  margin-top:6px;
  color:rgba(11,31,58,.85);
  font-weight:650;
  text-decoration:none;
}
.form{
  padding:18px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 12px 40px rgba(11,31,58,.06);
}
.form-row{display:flex;flex-direction:column;gap:7px;margin-bottom:12px}
label{font-size:13px;color:rgba(11,31,58,.72);font-weight:600}
input,textarea{
  border-radius:12px;
  border:1px solid rgba(11,31,58,.18);
  padding:12px 12px;
  font: inherit;
  outline:none;
}
input:focus,textarea:focus{border-color:rgba(11,31,58,.38);box-shadow:0 0 0 4px rgba(11,31,58,.08)}
.note{margin-top:14px;color:rgba(11,31,58,.62)}

/* About box */
.about-box{
  margin-top:18px;
  padding:16px 16px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:var(--soft);
}
.about-box-title{
  font-weight:800;
  letter-spacing:.06em;
  color:rgba(11,31,58,.82);
  margin-bottom:8px;
}
.bullets{margin:0;padding-left:18px;color:rgba(11,31,58,.70)}
.bullets li{margin:8px 0}

/* Footer */
.site-footer{
  padding:28px 0 100px 0;
  border-top:1px solid var(--line);
  background:#fff;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap:18px;
  align-items:start;
}
.footer-brand{
  font-family:"Playfair Display", Georgia, serif;
  font-weight:600;
  color:var(--navy);
}
.footer-muted{color:rgba(11,31,58,.62);font-size:13px;margin-top:6px}
.footer-links{display:flex;gap:16px;justify-content:center}
.footer-links a{text-decoration:none;color:rgba(11,31,58,.70);font-weight:600;font-size:14px}
.footer-links a:hover{color:var(--navy)}
.footer-legal{text-align:right}

/* Sticky CTA */
.sticky-cta{
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  display:none;
  gap:10px;
  z-index:60;
}
.sticky-btn{
  flex:1;
  border-radius:999px;
  padding:13px 14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--navy);
  font-weight:800;
  text-decoration:none;
  text-align:center;
  box-shadow:0 18px 60px rgba(11,31,58,.12);
}
.sticky-btn-primary{
  background:var(--navy);
  color:#fff;
}

/* Modal */
.modal{position:fixed;inset:0;display:none;z-index:100}
.modal[aria-hidden="false"]{display:block}
.modal-overlay{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.modal-card{
  position:relative;
  width:min(920px, calc(100% - 32px));
  max-height:calc(100% - 64px);
  overflow:auto;
  margin:32px auto;
  background:#fff;
  border-radius:22px;
  border:1px solid rgba(11,31,58,.18);
  box-shadow:0 30px 120px rgba(0,0,0,.25);
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 16px 12px 16px;
  border-bottom:1px solid var(--line);
}
.modal-title{font-weight:900;color:var(--navy)}
.modal-close{
  width:42px;height:42px;border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  color:rgba(11,31,58,.70);
}
.modal-body{padding:14px 16px 18px 16px}
.booking-fallback p{margin:8px 0;color:rgba(11,31,58,.78)}
.booking-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}

/* Page hero */
.page-hero{
  padding:56px 0 26px 0;
  background:linear-gradient(180deg, rgba(246,248,251,.85), rgba(255,255,255,1));
  border-bottom:1px solid var(--line);
}

/* Responsive */
@media (max-width: 980px){
  h1{font-size:40px}
  .hero-grid{grid-template-columns:1fr;gap:22px}
  .about-preview, .about-page{grid-template-columns:1fr;gap:18px}
  .pillars{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr; text-align:left}
  .footer-links{justify-content:flex-start;flex-wrap:wrap}
  .footer-legal{text-align:left}
  .nav-links, .nav-cta{display:none}
  .nav-toggle{display:inline-flex;border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 14px;font-weight:800;color:var(--navy);cursor:pointer}
  /* Mobile drawer is controlled by JS + the `nav-open` body class.
     Keep it hidden by default on small screens. */
  .mobile-drawer{display:none;border-top:1px solid var(--line);padding:0}

  /* When open, render as a full-screen overlay for a clean mobile experience. */
  body.nav-open{overflow:hidden}
  body.nav-open .mobile-drawer{
    display:block;
    position:fixed;
    inset:0;
    z-index:3000;
    background:rgba(11,31,58,.46);
    padding: env(safe-area-inset-top) 14px calc(env(safe-area-inset-bottom) + 14px) 14px;
  }

  /* Prevent CTA clutter while the menu is open */
  body.nav-open .sticky-cta{display:none}
  body.nav-open .whatsapp-fab{display:none}

  .mobile-drawer-inner{
    padding:16px 18px 18px 18px;
    display:flex;
    flex-direction:column;
    gap:12px;
    background:#fff;
    border-radius:18px;
    box-shadow:0 20px 60px rgba(0,0,0,.20);
    max-width:520px;
    margin:0 auto;
  }
  .mobile-drawer-inner a{color:rgba(11,31,58,.82);text-decoration:none;font-weight:700}
  .sticky-cta{display:flex}

  /* Reduce clutter: when the menu is open, hide floating CTAs. */
  body.nav-open .sticky-cta{display:none}
  body.nav-open .whatsapp-fab{display:none}
}


/* Brand logo (larger, per client request) */
.brand-logo{height:60px;width:auto;display:block;}
@media (max-width:720px){.brand-logo{height:46px;}}


/* --- Service tiles: Smile Centre-style cards --- */
.tile-media{
  position: relative;
  border-radius: 18px;
  background: #F3F6FB;
  overflow: hidden;
  /* Keep service imagery compact so cards don't feel too tall on mobile */
  aspect-ratio: 16 / 9;
  max-height: 220px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

@media (max-width: 720px){
  .tile-media{max-height: 180px;}
}

.tile-media img{
  width: 100%;
  height: 100%;
  /* Fill the media frame cleanly (no letterboxing) */
  object-fit: cover;
  object-position: center;
  display: block;
  padding: 0;
}

/*
  Fit modes (system)
  - Default: cover (photo-like imagery)
  - Contain: for composite/diagram images that should not be cropped
*/
.service-card.fit-contain .tile-media,
.service-tile.fit-contain .tile-media{
  background: linear-gradient(180deg, #F8FAFF 0%, #F2F6FD 100%);
}

.service-card.fit-contain .tile-media img,
.service-tile.fit-contain .tile-media img{
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

/* For composite/service illustrations that must be fully visible (avoid aggressive cropping) */
.tile-media img.img-contain{
  object-fit: contain;
  object-position: center;
  background: #F3F6FB;
}

/* Fine-tune a couple of images so the key subject stays centered */
.service-card[data-service="Root Canal"] .tile-media img,
.service-tile[data-service="Root Canal"] .tile-media img{
  object-position: center 35%;
}

.service-card[data-service="Braces / Aligners"] .tile-media img,
.service-tile[data-service="Braces / Aligners"] .tile-media img{
  object-position: center 55%;
}

.tile-label{
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.8);

  position:absolute;
  top:12px;
  left:12px;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(11,31,58,.70);
  background:rgba(255,255,255,.85);
  border:1px solid rgba(11,31,58,.10);
  padding:6px 10px;
  border-radius:999px;
  backdrop-filter: blur(6px);
}
.card-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px 16px;
}
.card-title{font-weight:650}
.card-cta{
  font-weight:700;
  color:var(--navy);
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.card-cta .caret{
  display:inline-block;
  transform:rotate(0deg);
  transition:transform .18s ease;
  font-size:14px;
  line-height:1;
}
.service-trigger[aria-expanded="true"] .card-cta .caret{
  transform:rotate(180deg);
}

/* --- Section blocking (Wix-like) --- */
.section{padding:84px 0}
.section + .section{border-top:1px solid rgba(11,31,58,.08)}
.section-soft{background:var(--soft)}
.hero{padding:86px 0}

/* === V7: Service-first hybrid layout === */
.hero--service-first{
  padding:96px 0 54px;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(11,31,58,0.12), rgba(255,255,255,0)),
              linear-gradient(180deg, #FFFFFF 0%, #F2F6FB 100%);
}
.hero-stack{
  display:grid;
  grid-template-columns: 1fr;
  gap:28px;
  align-items:start;
}
.hero-copy--center{
  max-width:760px;
  margin:0 auto;
  text-align:center;
}
.hero--service-first .lead{margin-left:auto;margin-right:auto}
.hero--service-first .hero-actions{justify-content:center}
.hero--service-first h1{
  letter-spacing:-0.02em;
}

@media (min-width: 900px){
  .hero--service-first .hero-copy h1{font-size:68px}
}
.section-head--tight{margin-bottom:14px}
.cards--services{
  grid-template-columns:repeat(3, 1fr);
}
.service-grid-wrap{
  background:#FFFFFF;
  border:1px solid rgba(11,37,69,0.10);
  border-radius:24px;
  padding:18px 18px 14px;
  box-shadow: 0 12px 30px rgba(11,37,69,0.08);
}
.service-grid-footer{margin-top:10px}

/* Service cards (homepage). Keep scoped to the direct image to avoid breaking tile-media images on /services. */
.service-card > img{
  width:100%;
  height:240px;
  object-fit:contain;
  border-radius:16px 16px 0 0;
  background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 70%);
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.card-meta{padding:14px 4px 0}
.card-title{font-size:16px;font-weight:600}
.card-cta{
  font-weight:700;
  color:var(--navy);
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.card-cta .caret{
  display:inline-block;
  transform:rotate(0deg);
  transition:transform .18s ease;
  font-size:14px;
  line-height:1;
}
.service-trigger[aria-expanded="true"] .card-cta .caret{
  transform:rotate(180deg);
}

.split{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}
.split--reverse{grid-template-columns:1fr 1fr}
.split-media img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(11,37,69,0.10);
}

.split-copy h2{margin:0 0 10px;letter-spacing:-.02em}
.split-copy p{margin:0 0 14px;max-width:52ch}

.mini-points{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
}

.mini-point{
  color: var(--muted);

  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
}

.mini-point .dot{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,37,69,.08);
  color: var(--ink);
  flex: 0 0 auto;
}

.mini-point strong{display:block;line-height:1.2;margin-top:2px}
.mini-point span{display:block;color:var(--muted);font-size: 0.95rem;line-height:1.35;margin-top:2px}

.key-points{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:10px}
.key-points li{display:flex;gap:10px;align-items:flex-start;color:rgba(11,37,69,.78)}
.key-points li::before{content:"";width:10px;height:10px;border-radius:999px;background:rgba(11,37,69,.20);margin-top:7px;flex:0 0 10px}

/* Floating WhatsApp bubble (more "native" WhatsApp look) */
.whatsapp-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:60;
  width:56px;
  height:56px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#25D366;
  box-shadow:0 18px 60px rgba(11,31,58,.18);
  border:1px solid rgba(255,255,255,.65);
}
.whatsapp-fab img{width:34px;height:34px;display:block;}
.whatsapp-fab:focus-visible{outline:3px solid rgba(37,211,102,0.35);outline-offset:2px}

@media (max-width: 980px){
  .hero-stack{grid-template-columns:1fr;}
  .cards--services{grid-template-columns:repeat(2, 1fr);}
  .panel{padding:22px}
  .split-media img{height:320px}
}
@media (max-width: 560px){
  .hero--service-first{padding:78px 0 44px}
  .cards--services{grid-template-columns:1fr;}
  .service-card > img{height:190px;}
  .panel{padding:18px}
  .split-media img{height:260px}
  .whatsapp-fab{right:14px;bottom:14px}
}

/* Service card description + testimonials */
.card-desc{
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
}
.quotes{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.quote{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow: 0 12px 30px rgba(11,31,58,.06);
  padding:18px;
}
.quote p{
  margin:0;
  color:rgba(11,31,58,.85);
  font-weight:500;
}
.quote-by{
  margin-top:10px;
  font-size:12px;
  color:rgba(11,31,58,.58);
}
@media (max-width: 920px){
  .quotes{grid-template-columns:1fr}
}


/* --- Service image refinements (v19) --- */
.service-card[data-service="Crowns"] .tile-media img,
.service-tile[data-service="Crowns"] .tile-media img{
  object-position: center 42%;
}

.service-card[data-service="Bridges"] .tile-media img,
.service-tile[data-service="Bridges"] .tile-media img{
  object-position: center 46%;
}

.service-card[data-service="Partial & Complete Dentures"] .tile-media img,
.service-tile[data-service="Partial & Complete Dentures"] .tile-media img{
  object-position: center 40%;
}

.service-card[data-service="Minor Oral Surgery"] .tile-media img,
.service-tile[data-service="Minor Oral Surgery"] .tile-media img{
  object-position: center 30%;
  filter: saturate(0.86) brightness(1.05) contrast(1.02);
}

.service-card[data-service="Bleaching"] .tile-media img,
.service-tile[data-service="Bleaching"] .tile-media img{
  object-position: center 52%;
}


/* Subtle cool overlay so all service images feel cohesive */
.tile-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(120% 120% at 10% 0%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 55%),
              linear-gradient(180deg, rgba(238,242,246,0.10), rgba(238,242,246,0.04));
  pointer-events:none;
  mix-blend-mode: normal;
}


/* Extra palette alignment for gum-heavy renders */
.service-card[data-service="Crowns"] .tile-media img,
.service-card[data-service="Bridges"] .tile-media img,
.service-card[data-service="Partial & Complete Dentures"] .tile-media img,
.service-tile[data-service="Crowns"] .tile-media img,
.service-tile[data-service="Bridges"] .tile-media img,
.service-tile[data-service="Partial & Complete Dentures"] .tile-media img{
  filter: saturate(0.92) brightness(1.03);
}


/* Improve multi-line hours readability */
.contact-card .contact-value{ line-height: 1.4; }

/* === Service Card Accent Line (Option C) === */
.tile-label{ display:none !important; }

.service-card .card-title{
  position: relative;
  padding-left: 14px;
}

.service-card .card-title::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  height: 1.2em;
  width: 2px;
  background: linear-gradient(180deg, #2E3A59, #9AA3B2); /* navy to silver */
  border-radius: 2px;
}

.service-card{
  padding-top: 14px;
}

.service-card .card-desc{
  margin-top: 6px;
}

/* ================= MOBILE OPTIMIZATION ================= */

/* Global container padding */
@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Service grid responsiveness */
@media (max-width: 768px) {
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Service cards */
@media (max-width: 768px) {
  .service-card {
    padding: 16px;
  }

  .service-card img {
    height: auto;
    max-height: 200px;
    object-fit: contain;
  }

  .service-card .card-title {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .service-card .card-desc {
    font-size: 0.9rem;
    line-height: 1.45;
  }
}

/* Accent line alignment on mobile */
@media (max-width: 768px) {
  .service-card .card-title {
    padding-left: 12px;
  }

  .service-card .card-title::before {
    top: 0.15em;
    height: 1em;
  }
}

/* Buttons */
@media (max-width: 768px) {
  .service-card .btn,
  .service-card button {
    width: 100%;
    text-align: center;
  }
}

/* Hero section spacing */
@media (max-width: 768px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 56px;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* Header / logo scaling */
@media (max-width: 768px) {
  header .logo img {
    max-width: 180px;
    height: auto;
  }
}

/* Contact cards stacking */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Footer spacing */
@media (max-width: 768px) {
  footer {
    padding: 24px 16px;
    text-align: center;
  }
}


/* === Mobile navigation cleanup (v26) === */
@media (max-width: 720px){
  /*
    Mobile Safari/Chrome can occasionally stop registering taps on a sticky header
    after scrolling. For reliability, force the header to be fixed on small screens
    and keep the hamburger above all overlays.
  */
  body{ padding-top: 76px; }
  .site-header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 12000;
  }
  .nav-toggle{
    position: relative;
    z-index: 12001;
    pointer-events: auto;
    touch-action: manipulation;
  }
  .nav-links, .nav-cta{ display:none !important; }
  .nav-toggle{ display:inline-flex; }
}

/* Drawer as overlay (doesn't push content) */
.mobile-drawer{
  position: fixed;
  left: 0;
  right: 0;
  top: 76px; /* header height */
  z-index: 1000;
  background: rgba(248,250,251,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46,58,89,0.10);
  box-shadow: 0 14px 40px rgba(0,0,0,0.10);
}

.mobile-drawer-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 18px 18px;
  display: grid;
  gap: 12px;
}

.mobile-drawer a{
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

body.nav-open{
  overflow: hidden;
}

/* === Final mobile nav correction (v27) === */
@media (max-width: 720px){
  .desktop-only{ display:none !important; }
  .nav-cta.desktop-only .btn{ display:none !important; }
}
.mobile-nav{
  display:grid;
  gap:14px;
  margin-bottom:18px;
}
.mobile-nav a{
  font-size:22px;
  font-weight:600;
}
.mobile-cta{
  display:grid;
  gap:12px;
}

/* -----------------------------
   Accordions (Services details)
------------------------------ */

.accordion-list{
  display: grid;
  gap: 12px;
}

.accordion{
  border: 1px solid rgba(46,58,89,0.12);
  background: rgba(255,255,255,0.72);
  border-radius: 16px;
  overflow: clip;
}

.accordion summary{
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;

  color: var(--navy);
}

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

.accordion summary::after{
  content: "";
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(46,58,89,0.65);
  border-bottom: 2px solid rgba(46,58,89,0.65);
  transform: rotate(45deg);
  transition: transform 220ms ease;
}

.accordion[open] summary::after{ transform: rotate(-135deg); }

.accordion-panel{
  padding: 0 18px 18px;
  color: rgba(30, 38, 61, 0.92);
}

.accordion-panel p{ margin: 10px 0; }
.accordion-panel h4{ margin: 16px 0 8px; font-size: 15px; letter-spacing: -0.01em; }
.accordion-panel ul{ margin: 8px 0 8px 18px; }
.accordion-panel li{ margin: 6px 0; }

.qa .q{ font-weight: 650; margin-top: 12px; }
.qa .a{ margin-top: 6px; color: rgba(30, 38, 61, 0.88); }

.accordion-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.divider{
  height: 1px;
  background: rgba(46,58,89,0.12);
  margin: 22px 0;
}

/* Smoother content animation (JS-enhanced) */
.accordion-panel[data-animating="1"]{ overflow: hidden; }

@media (max-width: 720px){
  .accordion summary{ padding: 14px 14px; }
  .accordion-panel{ padding: 0 14px 14px; }
}

/* Google rating badge */
.google-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(46,58,89,0.14);
  background: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  color: rgba(30, 38, 61, 0.9);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.google-badge:hover{ transform: translateY(-1px); }

@media (max-width: 720px){
  .google-badge{ width: fit-content; }
}


/* === Service card dropdown panels (tap card to expand) === */
.service-item{
  margin-bottom: 14px;
  position: relative;
  overflow: visible;
}
.service-trigger{ width:100%; text-align:left; cursor:pointer; }
.service-trigger:focus-visible{ outline: 3px solid rgba(46,58,89,0.25); outline-offset: 4px; }

.service-panel{
  /* Option 1: expand inside the card (prevents covering the card underneath) */
  position: static;
  width: 100%;
  margin-top: 10px;

  border: 1px solid rgba(46,58,89,0.14);
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px 14px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.10);

  /* Keep long content usable without making the whole page jump */
  max-height: 360px;
  overflow: auto;
}

.service-panel h4{ margin-top: 14px; margin-bottom: 8px; font-size: 0.95rem; 
  color: var(--navy);
}
.service-panel ul{ padding-left: 18px; margin: 8px 0 0; }
.service-panel .qa .q{ font-weight: 600; margin-top: 10px; margin-bottom: 4px; }
.service-panel .qa .a{ margin: 0 0 6px; color: rgba(11,20,36,0.78); }

.service-panel .accordion-actions,
.service-panel .panel-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.service-item.is-open .service-trigger .card-cta{
  font-weight:700;
  color:var(--navy);
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.card-cta .caret{
  display:inline-block;
  transform:rotate(0deg);
  transition:transform .18s ease;
  font-size:14px;
  line-height:1;
}
.service-trigger[aria-expanded="true"] .card-cta .caret{
  transform:rotate(180deg);
}

@media (max-width: 768px){
  /* On mobile, let the panel flow naturally under the card */
  .service-panel{ position: static; max-height: none; overflow: visible; padding: 14px 14px 12px; border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
  .service-panel .accordion-actions .btn,
  .service-panel .panel-actions .btn{ width: 100%; text-align:center; }
}



/* --- Services: nested accordion (FAQ + Cost) --- */
.sub-accordion{
  margin-top: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.65);
  overflow: hidden;
}
.sub-accordion > summary{
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  color: var(--navy);
}
.sub-accordion > summary::-webkit-details-marker{ display:none; }
.sub-accordion > summary::after{
  content: "▾";
  opacity: 0.7;
  transition: transform 180ms ease;
}
.sub-accordion[open] > summary::after{ transform: rotate(180deg); }
.sub-accordion > *:not(summary){ padding: 0 14px 12px; }
.sub-accordion .qa{ margin-top: 6px; }

/* --- Contact page: embedded map --- */
.contact-map{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.map-embed{
  margin-top: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
}
.map-embed iframe{
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}
@media (max-width: 640px){
  .map-embed iframe{ height: 260px; }
}


/* Ensure contact numbers match site text color */
.plain-link{color:inherit;text-decoration:none;}
.plain-link:hover{text-decoration:underline;}

.contact-value a{color:inherit;}


/* ===============================
   Premium Service Cards (Option A)
   =============================== */

/* Grid spacing */
.cards{
  gap: 18px;
}

/* Card */
.service-card{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
  border-color: rgba(15, 23, 42, 0.14);
}

/* Media area */
.service-card .tile-media{
  padding: 14px 14px 0 14px;
  background: linear-gradient(180deg, rgba(248,250,252,1) 0%, rgba(255,255,255,1) 100%);
}

.service-card .tile-media img{
  width: 100%;
  height: 168px; /* single standard */
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  display: block;
}

/* Content */
.service-card .card-meta{
  padding: 16px 18px 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.service-card .card-title{
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
}

.service-card .card-desc{
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Learn more */
.service-card .card-cta{
  font-weight:700;
  color:var(--navy);
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.card-cta .caret{
  display:inline-block;
  transform:rotate(0deg);
  transition:transform .18s ease;
  font-size:14px;
  line-height:1;
}
.service-trigger[aria-expanded="true"] .card-cta .caret{
  transform:rotate(180deg);
}


/* Dropdown panel */
.service-card .service-dropdown{
  padding: 0 18px 18px;
}

/* Mobile tweaks */
@media (max-width: 640px){
  .service-card .tile-media img{height: 160px;}
  .service-card .card-title{font-size: 20px;}
}



/* =========================
   Reviews (Homepage + About)
   ========================= */

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.section-head .muted{ margin:0; max-width:58ch; }

.reviews-carousel{
  display:grid;
  grid-template-columns: 44px 1fr 44px;
  gap:12px;
  align-items:center;
}

.carousel-viewport{
  overflow:hidden;
  border-radius:18px;
}

.carousel-track{
  display:flex;
  transition: transform 280ms ease;
  will-change: transform;
}

.review-card{
  flex: 0 0 100%;
  background: #fff;
  border: 1px solid rgba(10, 35, 66, 0.10);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px rgba(10, 35, 66, 0.06);
}

.review-stars{
  letter-spacing: 2px;
  color: #d4af37;
  font-size: 14px;
  margin-bottom: 10px;
}

.review-text{
  margin: 0 0 12px 0;
  color: rgba(10,35,66,0.92);
  line-height: 1.6;
}

.review-name{
  font-weight: 600;
  color: rgba(10,35,66,0.85);
}

.carousel-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(10,35,66,0.12);
  background: #fff;
  box-shadow: 0 10px 24px rgba(10, 35, 66, 0.06);
  color: rgba(10,35,66,0.85);
  font-size: 22px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
}

.carousel-btn:hover{ transform: translateY(-1px); }
.carousel-btn:active{ transform: translateY(0); }

.carousel-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:12px;
}

.carousel-dots button{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(10,35,66,0.18);
  padding:0;
}

.carousel-dots button[aria-current="true"]{
  width: 18px;
  background: rgba(10,35,66,0.55);
}

@media (max-width: 640px){
  .reviews-carousel{ grid-template-columns: 36px 1fr 36px; }
  .carousel-btn{ width:36px; height:36px; border-radius:12px; font-size:20px; }
}

/* About: reviews grid + read more */

.reviews-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
}

.review-card--grid{
  flex: initial;
  padding: 16px 16px 14px;
}

.review-clamp{
  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.review-more{
  margin-top: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  color: rgba(10,35,66,0.85);
  font-weight: 600;
  cursor:pointer;
}

.review-more:hover{ text-decoration: underline; }

@media (max-width: 820px){
  .reviews-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Team (About)
   ========================= */

.team-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
  align-items: start;
}

.team-card{
  background:#fff;
  border: 1px solid rgba(10,35,66,0.10);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(10, 35, 66, 0.06);
  overflow:hidden;
  display:grid;
  grid-template-columns: 160px 1fr;
  align-self: start;
}

.team-photo{
  background: linear-gradient(180deg, rgba(10,35,66,0.03), rgba(10,35,66,0.01));
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 14px;
}

.team-photo img{
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.team-body{
  padding: 16px 16px 14px;
}

.team-body h3{
  margin: 0 0 6px 0;
  font-size: 18px;
}

.team-role{
  color: rgba(10,35,66,0.70);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Custom team bio toggle (so only the text area expands) */
.bio-toggle{
  cursor:pointer;
  list-style:none;
  font-weight: 600;
  color: rgba(10,35,66,0.85);
  display:flex;
  width: 100%;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,0.7);
}

.bio-toggle::after{
  content: "▾";
  font-weight: 700;
  transform: rotate(0deg);
  transition: transform .18s ease;
}

.bio-toggle.is-open::after{
  transform: rotate(180deg);
}

.bio-panel{ margin-top: 10px; }

/* --- Bio reveal (About page: Dr. Tavette) --- */
.bio-panel--static{
  /* keep spacing consistent with other bios while remaining always-visible */
  padding-top: 2px;
}
.reveal-stagger .reveal-item{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}
.reveal-stagger.is-visible .reveal-item{
  opacity: 1;
  transform: translateY(0);
}
/* Stagger timing (covers up to first 8 paragraphs) */
.reveal-stagger .reveal-item:nth-child(1){ transition-delay: 80ms; }
.reveal-stagger .reveal-item:nth-child(2){ transition-delay: 200ms; }
.reveal-stagger .reveal-item:nth-child(3){ transition-delay: 320ms; }
.reveal-stagger .reveal-item:nth-child(4){ transition-delay: 440ms; }
.reveal-stagger .reveal-item:nth-child(5){ transition-delay: 560ms; }
.reveal-stagger .reveal-item:nth-child(6){ transition-delay: 680ms; }
.reveal-stagger .reveal-item:nth-child(7){ transition-delay: 800ms; }
.reveal-stagger .reveal-item:nth-child(8){ transition-delay: 920ms; }

@media (prefers-reduced-motion: reduce){
  .reveal-stagger .reveal-item{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.team-bio{
  margin-top: 10px;
  color: rgba(10,35,66,0.90);
  line-height: 1.65;
  padding: 12px 12px;
  background: rgba(10,35,66,0.03);
  border: 1px solid rgba(10,35,66,0.08);
  border-radius: 12px;
}

.team-bio p{ margin: 0 0 10px 0; }

@media (max-width: 900px){
  .team-grid{ grid-template-columns: 1fr; }
  .team-card{ grid-template-columns: 140px 1fr; }
}

@media (max-width: 520px){
  .team-card{ grid-template-columns: 1fr; }
  .team-photo{ padding: 12px; }
  .team-body{ padding: 14px; }
}



/* Team layout: masonry-style columns so expanding one bio doesn't shift the other card */
.team-grid{
  column-count: 2;
  column-gap: 18px;
}
.team-card{
  /* Keep internal grid layout while preventing column breaks */
  display: grid;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 18px;
}
@media (max-width: 900px){
  .team-grid{ column-count: 1; }
}
/* Roles list */
.team-roles{
  margin-top: 10px;
  padding: 14px 14px;
  border: 1px solid rgba(10,35,66,0.10);
  border-radius: 16px;
  background: rgba(10,35,66,0.02);
}
.team-role-row{
  display:flex;
  justify-content:space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid rgba(10,35,66,0.08);
}
.team-role-row:first-child{ border-top: 0; }
.team-role-row .role{ font-weight: 600; color: rgba(10,35,66,0.85); }
.team-role-row .name{ color: rgba(10,35,66,0.75); text-align:right; }


\1on above the sticky Call/Book bar */
@media (max-width: 768px) {
  .whatsapp-fab {
    bottom: 110px; /* sticky-cta sits at ~16px; this prevents overlap */
    right: 16px;
  }
}


.contact-label{
  display:flex;
  align-items:center;
  gap:10px;
}
.contact-ico{
  width:18px;
  height:18px;
  display:inline-flex;
}
.contact-ico svg{ width:18px; height:18px; fill: rgba(10,35,66,0.70); }


/* Services page: make all service tiles consistent height */
.service-trigger{
  display:flex;
  flex-direction:column;
  height:100%;
}
.cards{ align-items: stretch; }

/* Services page: prevent OTHER tiles in the same grid row from stretching
   when one service expands (the "all services in that row drop" effect).
   We only top-align the Services grid.
*/
.cards--services{ align-items: start; }
.cards--services .service-item{ align-self: start; }
.service-trigger .tile-media{
  height: 220px;
}
.service-trigger .tile-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.service-trigger .card-meta{
  display:flex;
  flex-direction:column;
  flex:1;
}
.service-trigger .card-cta{
  font-weight:700;
  color:var(--navy);
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.card-cta .caret{
  display:inline-block;
  transform:rotate(0deg);
  transition:transform .18s ease;
  font-size:14px;
  line-height:1;
}
.service-trigger[aria-expanded="true"] .card-cta .caret{
  transform:rotate(180deg);
}

/* Services card description clamp */
.service-card p{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}


/* Services: make Learn more a clean dropdown control (matches premium card style) */
.service-item{display:flex;flex-direction:column;}
.service-item .service-toggle{margin:10px 6px 0 auto;background:transparent;border:0;padding:8px 10px;font-weight:600;color:var(--navy, #0b2a4a);cursor:pointer;display:inline-flex;align-items:center;gap:6px;border-radius:10px;}
.service-item .service-toggle:hover{background:rgba(11,42,74,0.06);}
.service-item .service-toggle:focus{outline:2px solid rgba(11,42,74,0.25);outline-offset:2px;}

/* Rotate chevron when expanded */
.service-item .service-toggle svg{transition: transform 180ms ease;}
.service-item .service-toggle[aria-expanded="true"] svg{transform: rotate(180deg);}
.service-trigger[aria-expanded="true"] .caret{transform:rotate(180deg);}

/* Services page headline letter-spacing refinement */
.page-hero h1 {
  letter-spacing: -0.6px;
}

@media (max-width: 768px) {
  .page-hero h1 {
    letter-spacing: -0.2px;
  }
}

/* Services dropdown behavior (Phase 2 fix)
   Keep panels in normal document flow.
   Absolute positioning causes the expanded panel to overlap
   the service card underneath (the reported "superimposed" glitch).
*/
.service-item{
  position: relative;
  overflow: visible;
}
.service-panel{
  position: static;
  left: auto;
  right: auto;
  top: auto;
  z-index: auto;
  margin-top: 10px;
}

/* Section subheadings */
.section-subheading{margin-top:6px;}

/* Make bio link look like the existing Read bio control */
a.bio-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 16px;
  border:1px solid rgba(13,27,42,0.12);
  border-radius:12px;
  text-decoration:none;
  color:inherit;
  background:#fff;
}
a.bio-toggle:hover{ box-shadow:0 8px 20px rgba(0,0,0,0.06); }

.section-head h2{
  color: var(--navy);
}

.bio-panel p{
  color: var(--muted);
  line-height: 1.6;
}

.footer-line{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.footer-ico{
  width:16px;
  height:16px;
  margin-top:2px;
  flex:0 0 16px;
  fill: rgba(22,58,99,.62);
}


/* Phase 2: unify body text into Exquisite "light navy" system */
.about-preview .bio-text,
.contact .contact-details,
.find-us .find-details{
  color: var(--muted);
}



/* === Slow Stagger Animation for Dr. Tavette Bio === */
.taylor-bio p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.taylor-bio.is-visible p {
  opacity: 1;
  transform: translateY(0);
}
.taylor-bio.is-visible p:nth-child(1) { transition-delay: 0.2s; }
.taylor-bio.is-visible p:nth-child(2) { transition-delay: 0.5s; }
.taylor-bio.is-visible p:nth-child(3) { transition-delay: 0.8s; }
.taylor-bio.is-visible p:nth-child(4) { transition-delay: 1.1s; }
.taylor-bio.is-visible p:nth-child(5) { transition-delay: 1.4s; }


/* === FIX: Slow Stagger Animation (About - Dr. Tavette) === */
#bio-taylor-about.reveal-stagger .reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
#bio-taylor-about.reveal-stagger.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-of-type(1) { transition-delay: 0.20s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-of-type(2) { transition-delay: 0.55s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-of-type(3) { transition-delay: 0.90s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-of-type(4) { transition-delay: 1.25s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-of-type(5) { transition-delay: 1.60s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-of-type(6) { transition-delay: 1.95s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-of-type(7) { transition-delay: 2.30s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-of-type(8) { transition-delay: 2.65s; }

@media (prefers-reduced-motion: reduce) {
  #bio-taylor-about.reveal-stagger .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* === Ultra Slow Premium Stagger (Override) === */
#bio-taylor-about.reveal-stagger .reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
#bio-taylor-about.reveal-stagger.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-child(1) { transition-delay: 0.4s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-child(2) { transition-delay: 0.9s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-child(3) { transition-delay: 1.4s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-child(4) { transition-delay: 1.9s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-child(5) { transition-delay: 2.4s; }

@media (prefers-reduced-motion: reduce) {
  #bio-taylor-about.reveal-stagger .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}



/* === Extreme Slow Premium Stagger (1.8s Override) === */
#bio-taylor-about.reveal-stagger .reveal-item {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}
#bio-taylor-about.reveal-stagger.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

/* Wider delays for dramatic pacing */
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-child(1) { transition-delay: 0.6s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-child(2) { transition-delay: 1.3s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-child(3) { transition-delay: 2.0s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-child(4) { transition-delay: 2.7s; }
#bio-taylor-about.reveal-stagger.is-visible .reveal-item:nth-child(5) { transition-delay: 3.4s; }

@media (prefers-reduced-motion: reduce) {
  #bio-taylor-about.reveal-stagger .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}



/* === Main Page Dr. Taylor Ultra Slow Stagger === */
#bio-taylor-main.reveal-stagger .reveal-item {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}
#bio-taylor-main.reveal-stagger.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

#bio-taylor-main.reveal-stagger.is-visible .reveal-item:nth-child(1) { transition-delay: 0.6s; }
#bio-taylor-main.reveal-stagger.is-visible .reveal-item:nth-child(2) { transition-delay: 1.3s; }
#bio-taylor-main.reveal-stagger.is-visible .reveal-item:nth-child(3) { transition-delay: 2.0s; }
#bio-taylor-main.reveal-stagger.is-visible .reveal-item:nth-child(4) { transition-delay: 2.7s; }
#bio-taylor-main.reveal-stagger.is-visible .reveal-item:nth-child(5) { transition-delay: 3.4s; }


@media (max-width: 768px) {
  .doctor-grid {
    align-items: flex-start !important;
  }

  .doctor-image {
    align-self: flex-start !important;
  }
}


@media (max-width: 768px) {
  /* FIX: Meet the Doctor image should sit under heading, not drop mid-bio */
  .panel.split,
  .panel.split.split--reverse {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  .panel.split .split-media,
  .panel.split.split--reverse .split-media {
    order: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
    align-self: flex-start !important;
  }

  .panel.split .split-copy,
  .panel.split.split--reverse .split-copy {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }

  .panel.split .split-media img,
  .panel.split.split--reverse .split-media img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
}


@media (max-width: 9999px) {
  /* FIX: Keep doctor/practice name on one line (Meet the Doctor + About header) */
  .doctor-name,
  .meet-doctor-name,
  .meet-the-doctor h2,
  .meet-the-doctor h3,
  .panel.split .split-copy h2,
  .panel.split .split-copy h3,
  h1, h2 {
    white-space: nowrap;
  }
}


@media (max-width: 768px) {
  /* FIX: Resize Meet the Doctor name on mobile */
  .panel.split .split-copy h1 {
    font-size: 32px !important;
    line-height: 1.2;
  }
}


@media (max-width: 768px) {
  /* === MOBILE TYPOGRAPHY FIX (shrink oversized headings + prevent overflow) === */

  /* Reset any previous nowrap that could force giant single-line overflow */
  h1, h2, h3, .title, .heading, .hero-title {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* Global heading scaling */
  h1 { font-size: clamp(26px, 7.5vw, 38px) !important; line-height: 1.15; }
  h2 { font-size: clamp(22px, 6.2vw, 30px) !important; line-height: 1.2; }
  h3 { font-size: clamp(18px, 5.2vw, 24px) !important; line-height: 1.25; }

  /* Meet the Doctor (main page) */
  .doctor-section h1,
  .doctor-section h2,
  .doctor-section h3,
  .panel.split .split-copy h1,
  .panel.split .split-copy h2,
  .panel.split .split-copy h3 {
    font-size: clamp(26px, 7vw, 36px) !important;
    line-height: 1.15;
  }

  /* About page header */
  .about-hero h1,
  .about-hero h2,
  .page-title,
  .page-hero h1 {
    font-size: clamp(24px, 6.5vw, 34px) !important;
    line-height: 1.15;
  }

  /* Subheads / roles / lead text that sometimes look too big */
  .lead { font-size: clamp(15px, 4.3vw, 18px) !important; line-height: 1.5; }
  p { font-size: clamp(15px, 4.1vw, 17px); line-height: 1.65; }
}


@media (max-width: 768px) {
  /* === ONE-LINE HEADING FIT FIX (mobile) === */

  /* 1) Meet the Doctor name (front page) */
  .doctor-section h1,
  .panel.split .split-copy h1 {
    white-space: nowrap !important;
    font-size: clamp(18px, 5.2vw, 30px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
  }

  /* 2) About page header (Dr Tavette... & Associates) */
  .about-hero h1,
  .page-hero h1,
  .page-title {
    white-space: nowrap !important;
    font-size: clamp(16px, 4.8vw, 26px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
  }

  /* Prevent sideways scrolling if a heading still pushes width */
  body { overflow-x: hidden; }
}


@media (max-width: 768px) {
  /* === MOBILE: FORCE MAIN SECTION TITLES TO 1 LINE (FIT) === */

  /* Big serif headings used across sections */
  h1, h2 {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: clip;
    letter-spacing: -0.03em;
  }

  /* Keep H1 (Meet the Doctor name) smaller so it fits */
  h1 {
    font-size: clamp(18px, 5.3vw, 30px) !important;
    line-height: 1.05 !important;
  }

  /* Keep H2 (section titles like "Why choose Exquisite Dental?") on one line */
  h2 {
    font-size: clamp(18px, 6.0vw, 28px) !important;
    line-height: 1.1 !important;
  }

  /* Prevent horizontal scrolling from nowrap headings */
  body { overflow-x: hidden; }
}


@media (max-width: 768px) {
  /* === MOBILE HEADING FIXES (premium + readable) === */

  /* LONG heading: allow clean wrap (better than tiny font) */
  .mobile-doctor-name {
    white-space: normal !important;
    font-size: clamp(28px, 7.2vw, 36px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
    text-wrap: balance;
  }

  /* SHORT heading: keep on ONE LINE by shrinking slightly */
  .mobile-one-line-title {
    white-space: nowrap !important;
    font-size: clamp(20px, 5.6vw, 26px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    overflow: hidden;
  }

  body { overflow-x: hidden; }
}


/* === PATCH: Normalize dropdown text colors (Services / Financial / Cancellations) === */
.accordion,
.accordion * ,
.faq,
.faq * ,
details,
details * ,
.dropdown,
.dropdown * ,
.bio-panel,
.bio-panel * {
  color: #163a5f !important; /* matches main body navy */
}

/* keep links readable */
.accordion a,
.faq a,
details a,
.dropdown a,
.bio-panel a {
  color: #163a5f !important;
  text-decoration: underline;
}

/* Homepage doctor section */
.panel.split .split-media,
.doctor-photo,
.meet-doctor-photo {
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 520px;
  border-radius: 24px;
}

.panel.split .split-media img,
.doctor-photo img,
.meet-doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* About page doctor photo */
.about-photo {
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 520px;
  border-radius: 24px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Responsive tuning */
@media (max-width: 768px) {
  .panel.split .split-media,
  .doctor-photo,
  .meet-doctor-photo,
  .about-photo {
    min-height: 380px;
  }
}

/* 🔥 THIS removes the white gap */
  object-fit: cover;
  display: block;
}

/* removes white box */
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* fills container */
  object-position: center 20%;     /* keeps face aligned */
  display: block;
}


/* === ABOUT IMAGE WIDTH FIX === */
.about-photo {
  overflow: hidden;
  border-radius: 24px;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.about-photo img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;   /* shows more left + right sides */
  object-position: center center;
  display: block;
}

/* === ABOUT PAGE IMAGE ONLY FIX === */
.about-page .about-photo {
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  background: transparent !important;
  display: block !important;
}

.about-page .about-photo img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
}


/* soft fade into next section */
.front-store-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(243,246,250,0.00) 0%,
    rgba(243,246,250,0.18) 35%,
    rgba(243,246,250,0.52) 68%,
    rgba(243,246,250,0.95) 100%
  );
  pointer-events: none;
}

.front-store-hero > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .front-store-hero {
    background-size: cover;
    background-position: center bottom;
  }

  .front-store-hero::after {
    height: 120px;
  }
}


/* === FRONT STORE HERO FULL BLEED FADE === */
.front-store-hero {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(
      to bottom,
      rgba(243,246,250,0.10) 0%,
      rgba(243,246,250,0.08) 22%,
      rgba(243,246,250,0.10) 42%,
      rgba(243,246,250,0.18) 62%,
      rgba(243,246,250,0.58) 82%,
      rgba(243,246,250,0.96) 100%
    ),
    url("assets/hero/front-of-store.jpg");
  background-size: cover;              /* fill the entire hero area */
  background-position: center 72%;     /* keep storefront visible */
  background-repeat: no-repeat;
}

/* actual fade into next section */
.front-store-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(243,246,250,0.00) 0%,
    rgba(243,246,250,0.12) 22%,
    rgba(243,246,250,0.35) 50%,
    rgba(243,246,250,0.72) 76%,
    rgba(243,246,250,1.00) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.front-store-hero > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .front-store-hero {
    background-size: cover;
    background-position: center 68%;
  }

  .front-store-hero::after {
    height: 120px;
  }
}


/* === HERO HEIGHT AND TRANSITION FIX === */
.front-store-hero {
  min-height: 720px !important;   /* gives the full storefront room to show */
  padding-bottom: 120px !important;
  background-size: cover !important;
  background-position: center top !important;
}

.front-store-hero::after {
  height: 140px !important;       /* smoother fade into next section */
}

.front-store-hero + section,
.front-store-hero + .section,
.front-store-hero + .section-soft {
  margin-top: -20px !important;   /* pulls next section up slightly */
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .front-store-hero {
    min-height: 520px !important;
    padding-bottom: 80px !important;
    background-position: center top !important;
  }

  .front-store-hero::after {
    height: 100px !important;
  }

  .front-store-hero + section,
  .front-store-hero + .section,
  .front-store-hero + .section-soft {
    margin-top: -10px !important;
  }
}

/* === HERO RESET FIX === */
.front-store-hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: 560px !important;
  padding-top: 72px !important;
  padding-bottom: 120px !important;
  background-image:
    linear-gradient(
      to bottom,
      rgba(243,246,250,0.18) 0%,
      rgba(243,246,250,0.14) 28%,
      rgba(243,246,250,0.18) 54%,
      rgba(243,246,250,0.45) 78%,
      rgba(243,246,250,0.95) 100%
    ),
    url("assets/hero/front-of-store.jpg") !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center 72% !important;
}

.front-store-hero::before {
  content: none !important;
}

.front-store-hero::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 120px !important;
  background: linear-gradient(
    to bottom,
    rgba(243,246,250,0.00) 0%,
    rgba(243,246,250,0.16) 28%,
    rgba(243,246,250,0.48) 62%,
    rgba(243,246,250,1.00) 100%
  ) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.front-store-hero > * {
  position: relative !important;
  z-index: 1 !important;
}

.front-store-hero + section,
.front-store-hero + .section,
.front-store-hero + .section-soft {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .front-store-hero {
    min-height: 440px !important;
    padding-top: 56px !important;
    padding-bottom: 90px !important;
    background-position: center 68% !important;
  }

  .front-store-hero::after {
    height: 90px !important;
  }
}


/* === HERO TUNED SOFT OVERLAY === */
.front-store-hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: 560px !important;
  padding-top: 72px !important;
  padding-bottom: 40px !important;
  background-image:
    linear-gradient(
      to bottom,
      rgba(243,246,250,0.22) 0%,
      rgba(243,246,250,0.18) 35%,
      rgba(243,246,250,0.22) 70%,
      rgba(243,246,250,0.28) 100%
    ),
    url("assets/hero/front-of-store.jpg") !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center 72% !important;
  filter: saturate(1.02) contrast(0.98) !important;
}

.front-store-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  backdrop-filter: blur(1.5px) !important;
  -webkit-backdrop-filter: blur(1.5px) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.front-store-hero::after {
  content: none !important; /* removes the big fade */
}

.front-store-hero > * {
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 768px) {
  .front-store-hero {
    min-height: 440px !important;
    padding-top: 56px !important;
    padding-bottom: 28px !important;
    background-position: center 68% !important;
  }

  .front-store-hero::before {
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
  }
}


/* === HERO SUBTLE TEXT CONTRAST FIX === */
.front-store-hero {
  background-image:
    radial-gradient(
      ellipse at center 34%,
      rgba(255,255,255,0.20) 0%,
      rgba(255,255,255,0.12) 28%,
      rgba(255,255,255,0.00) 62%
    ),
    linear-gradient(
      to bottom,
      rgba(243,246,250,0.20) 0%,
      rgba(243,246,250,0.16) 35%,
      rgba(243,246,250,0.18) 70%,
      rgba(243,246,250,0.24) 100%
    ),
    url("assets/hero/front-of-store.jpg") !important;
}

.front-store-hero .hero-copy::before,
.front-store-hero .hero-content::before {
  content: none !important;
}

.front-store-hero h1 {
  color: #163a6b !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.22),
    0 8px 24px rgba(255,255,255,0.18);
}

.front-store-hero .eyebrow,
.front-store-hero p,
.front-store-hero .hero-subcopy {
  color: #274d7f !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.18),
    0 4px 16px rgba(255,255,255,0.12);
}


/* === HERO SUBTLE TEXT CONTRAST FIX === */
.front-store-hero {
  background-image:
    radial-gradient(
      ellipse at center 34%,
      rgba(255,255,255,0.20) 0%,
      rgba(255,255,255,0.12) 28%,
      rgba(255,255,255,0.00) 62%
    ),
    linear-gradient(
      to bottom,
      rgba(243,246,250,0.20) 0%,
      rgba(243,246,250,0.16) 35%,
      rgba(243,246,250,0.18) 70%,
      rgba(243,246,250,0.24) 100%
    ),
    url("assets/hero/front-of-store.jpg") !important;
}

.front-store-hero .hero-copy::before,
.front-store-hero .hero-content::before {
  content: none !important;
}

.front-store-hero h1 {
  color: #163a6b !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.22),
    0 8px 24px rgba(255,255,255,0.18);
}

.front-store-hero .eyebrow,
.front-store-hero p,
.front-store-hero .hero-subcopy {
  color: #274d7f !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.18),
    0 4px 16px rgba(255,255,255,0.12);
}

/* === HERO SUBTEXT VISIBILITY FIX === */
.front-store-hero p,
.front-store-hero .hero-subcopy {
  color: #1f3f6d !important; /* stronger navy for readability */
  font-weight: 500;
}


/* === OFFICE SECTION IMAGE FIT === */
.panel.split {
  align-items: stretch !important;
}

.panel.split .split-media {
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  min-height: 100% !important;
}

.panel.split .split-media img,
.panel.split img[alt="Exquisite Dental"] {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center 35% !important;
  display: block !important;
  border-radius: 24px !important;
}

/* keep section balanced on smaller screens */
@media (max-width: 900px) {
  .panel.split .split-media img,
  .panel.split img[alt="Exquisite Dental"] {
    height: auto !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center 30% !important;
  }
}

/* === MOBILE IMAGE LOAD + CTA FIX === */
@media (max-width: 768px) {

  /* Split sections should not hold oversized fixed image boxes */
  .panel.split,
  .split,
  .split--reverse {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 18px !important;
    align-items: start !important;
  }

  .split-media {
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
  }

  .split-media img,
  .panel.split .split-media img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    border-radius: 20px !important;
  }

  /* Doctor section image should not leave giant empty box */
  .section-soft .split-media img,
  .panel.split.split--reverse .split-media img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  /* Team cards */
  .team-card {
    grid-template-columns: 88px 1fr !important;
    align-items: start !important;
    gap: 14px !important;
  }

  .team-photo,
  .team-photo img {
    width: 88px !important;
    min-width: 88px !important;
    height: auto !important;
  }

  /* Sticky CTA + WhatsApp bubble spacing */
  .sticky-cta {
    display: flex !important;
    gap: 10px !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    padding: 0 !important;
  }

  .sticky-btn {
    min-height: 52px !important;
    font-size: 16px !important;
  }

  .whatsapp-fab {
    right: 12px !important;
    bottom: 88px !important;
    z-index: 70 !important;
  }

  /* Slightly smaller logo on mobile so header breathes */
  .brand-logo {
    height: 44px !important;
    width: auto !important;
  }
}


/* === HERO BLUR LIGHT TUNE === */
.front-store-hero {
  background-image:
    radial-gradient(
      ellipse at center 34%,
      rgba(255,255,255,0.26) 0%,
      rgba(255,255,255,0.16) 28%,
      rgba(255,255,255,0.04) 62%,
      rgba(255,255,255,0.00) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(243,246,250,0.24) 0%,
      rgba(243,246,250,0.22) 35%,
      rgba(243,246,250,0.24) 70%,
      rgba(243,246,250,0.28) 100%
    ),
    url("assets/hero/front-of-store.jpg") !important;
}

.front-store-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.front-store-hero::after {
  content: none !important;
}

.front-store-hero > * {
  position: relative !important;
  z-index: 1 !important;
}


/* === HERO LIGHTING TWEAK === */
.front-store-hero {
  background-image:
    radial-gradient(
      ellipse at center 34%,
      rgba(255,255,255,0.34) 0%,
      rgba(255,255,255,0.22) 30%,
      rgba(255,255,255,0.08) 60%,
      rgba(255,255,255,0.00) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(243,246,250,0.30) 0%,
      rgba(243,246,250,0.28) 35%,
      rgba(243,246,250,0.30) 70%,
      rgba(243,246,250,0.34) 100%
    ),
    url("assets/hero/front-of-store.jpg") !important;
}
