/* =========================================================
   Dental Homepage Template — Design System
   Clean & clinical · trustworthy blue · serif headings + sans body
   All themeable values live in :root and are driven by the Tweaks panel.
   ========================================================= */

:root {
  /* — Color — */
  --accent: #3d6a48;                                   /* Birch Tree forest green (from logo) */
  --accent-2: #3e5663;                                 /* Seaworthy blue (secondary brand) */
  --accent-2-deep: color-mix(in srgb, var(--accent-2) 82%, #05161f);
  --accent-ink: color-mix(in srgb, var(--accent) 80%, #08160d); /* darker for hover/text */
  --accent-soft: color-mix(in srgb, var(--accent) 8%, #ffffff); /* faint tinted fields   */
  --tint: color-mix(in srgb, var(--accent) 5%, #ffffff);        /* alt section bg        */
  --tint-2: color-mix(in srgb, var(--accent) 11%, #ffffff);

  --ink: #15212d;                                      /* near-black, cool */
  --ink-2: #51606f;                                    /* muted body       */
  --ink-3: #8593a1;                                    /* captions         */
  --line: #e5eaf0;                                     /* hairline borders */
  --paper: #ffffff;
  --star: #e3a93a;

  /* — Highlight (Book Now CTA) — a warm color that pops against the blue — */
  --highlight: #B85C38;
  --highlight-ink: color-mix(in srgb, var(--highlight) 82%, #05161f);

  /* — Type — */
  --font-head: "Newsreader", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --fs-base: 17px;

  /* — Shape — */
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-pill: 999px;

  /* — Rhythm — */
  --section-pad: 104px;        /* vertical padding per section */
  --maxw: 1180px;
  --gap: 28px;

  --shadow-sm: 0 1px 2px rgba(20,34,46,.05), 0 2px 8px rgba(20,34,46,.04);
  --shadow-md: 0 8px 28px rgba(20,34,46,.08), 0 2px 6px rgba(20,34,46,.05);
  --shadow-lg: 0 24px 60px rgba(20,34,46,.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 32px;
}

/* ---------- Section scaffolding ---------- */
section { padding-block: var(--section-pad); }
.section-tint { background: var(--tint); }
.section-tint-blue { background: color-mix(in srgb, var(--accent-2) 6%, #ffffff); }
.section-ink  { background: var(--ink); color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.section-ink .eyebrow { color: color-mix(in srgb, var(--accent) 50%, #fff); }

.sec-head { max-width: 680px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 {
  font-size: clamp(32px, 4vw, 46px);
}
.sec-head .support {
  margin-top: 18px;
  font-size: 1.075rem;
  color: var(--ink-2);
  line-height: 1.65;
}
.section-ink .sec-head .support { color: rgba(255,255,255,.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: var(--shadow-md); }
.btn-book { background: var(--highlight); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--highlight) 38%, transparent); }
.btn-book:hover { background: var(--highlight-ink); box-shadow: 0 8px 22px color-mix(in srgb, var(--highlight) 45%, transparent); }
.btn-outline { background: transparent; color: var(--accent-ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--accent-ink); }
.btn-light:hover { background: var(--accent-soft); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }

/* ---------- Star rating ---------- */
.stars { color: var(--star); letter-spacing: 2px; font-size: .95rem; }

/* ---------- Pills / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #fff);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
}

/* ---------- Image slot defaults ---------- */
image-slot {
  --slot-bg: var(--tint-2);
  background: var(--tint-2);
  display: block;
  width: 100%;
  border-radius: var(--radius-card);
}

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: var(--accent-2-deep);
  color: #fff;
  font-size: .9rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 46px;
  padding-block: 8px;
}
.topbar .cta-text { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9); text-align: center; }
.topbar .cta-text b { color: #fff; font-weight: 600; }
.topbar .tb-right { display: flex; align-items: center; gap: 22px; }
.topbar .tb-right a { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.85); font-weight: 500; }
.topbar .tb-right a:hover { color: #fff; }
.topbar .rating b { color: #fff; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand .logo-slot {
  width: 200px; height: 52px;
  border-radius: 8px;
}
.brand .logo-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 600;
}
.brand .b-name { font-family: var(--font-head); font-size: 1.32rem; font-weight: 600; line-height: 1.05; }
.brand .b-sub { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 14px; }
.nav-links a { font-weight: 500; color: var(--ink-2); font-size: .88rem; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.nav-menu-head { display: none; }
.nav-menu-social { display: none; }
.nav-call {
  display: none;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-btn);
  color: var(--accent);
  font-weight: 600;
  font-size: .95rem;
}
.nav-call:active { transform: translateY(1px); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO — full-bleed video background
   ========================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-block: 96px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2-deep) 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(55% 60% at 28% 32%, color-mix(in srgb, var(--accent-2) 55%, #ffffff), transparent 72%);
  opacity: .4; mix-blend-mode: screen;
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: heroDrift 18s ease-in-out infinite alternate; }
}
@keyframes heroDrift {
  from { transform: translate(-4%, -3%) scale(1.06); }
  to   { transform: translate(5%, 4%) scale(1.18); }
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  background: transparent;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,20,12,.42) 0%, rgba(7,20,12,.18) 38%, rgba(5,22,31,.66) 100%),
    radial-gradient(120% 95% at 50% 38%, transparent 32%, rgba(5,18,26,.5) 100%);
}
.hero .wrap { width: 100%; }
.hero-copy { max-width: 800px; margin: 0 auto; text-align: center; color: #fff; }
.hero .h1-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
  margin-bottom: 16px;
}
.hero .h1-kicker::after {
  content: ""; display: block;
  width: 46px; height: 2px; margin: 13px auto 0;
  background: rgba(255,255,255,.45);
}
.hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  color: #fff;
  text-shadow: 0 2px 36px rgba(0,0,0,.28);
}
.hero .support {
  margin: 24px auto 0;
  font-size: 1.2rem;
  color: rgba(255,255,255,.9);
  max-width: 58ch;
}
.hero .cta-row { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero .trust { margin-top: 32px; display: flex; align-items: center; gap: 14px; justify-content: center; color: rgba(255,255,255,.9); font-size: .95rem; }
.hero .trust .stars { font-size: 1.05rem; }
.btn-hero-outline {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
}
.btn-hero-outline:hover { background: #fff; color: var(--accent-ink); border-color: #fff; }
.hero-video-hint {
  position: absolute; left: 18px; bottom: 16px; z-index: 1;
  font-family: ui-monospace, monospace; font-size: .72rem;
  color: rgba(255,255,255,.72);
  background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.2);
  padding: 6px 11px; border-radius: 8px; backdrop-filter: blur(5px);
}
.hero-video-hint b { color: #fff; font-weight: 700; }

/* =========================================================
   REVIEWS
   ========================================================= */
/* ---------- Reviews slider ---------- */
.reviews-slider {
  margin-top: 54px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.reviews-viewport { flex: 1; overflow: hidden; }
.reviews-track {
  display: flex;
  gap: var(--gap);
  transition: transform .45s cubic-bezier(.4,.05,.2,1);
  will-change: transform;
}
.reviews-track .review-card {
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
}
.slider-arrow {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-ink);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .18s, color .18s, border-color .18s, opacity .18s, transform .15s;
}
.slider-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.slider-arrow:active { transform: scale(.94); }
.slider-arrow:disabled { opacity: .35; cursor: default; pointer-events: none; }
.slider-dots {
  margin-top: 34px;
  display: flex; justify-content: center; gap: 10px;
}
.slider-dots button {
  width: 9px; height: 9px; padding: 0;
  border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 25%, #fff);
  cursor: pointer;
  transition: background .18s, transform .18s, width .18s;
}
.slider-dots button[aria-current="true"] {
  background: var(--accent);
  width: 26px; border-radius: 999px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
}
.review-card .stars { font-size: 1rem; }
.review-card .quote { color: var(--ink); line-height: 1.6; }
.review-card .who { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.review-card .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.review-card .who .name { font-weight: 600; }
.review-card .who .src { font-size: .82rem; color: var(--ink-3); }
.reviews-foot { margin-top: 40px; text-align: center; }

/* =========================================================
   OFFICE TOUR
   ========================================================= */
.tour-slider {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.tour-viewport { flex: 1; overflow: hidden; }
.tour-track {
  display: flex;
  gap: 18px;
  transition: transform .45s cubic-bezier(.4,.05,.2,1);
  will-change: transform;
}
.tour-track .tour-slide {
  flex: 0 0 100%;
  height: 560px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 60fr 40fr; gap: 56px; align-items: center; }
.about-highlights { margin-top: 32px; display: flex; flex-direction: column; gap: 26px; }
.about-hl { display: flex; gap: 0; }
.about-hl h4 { font-size: 1.2rem; margin-bottom: 5px; }
.about-hl p { color: var(--ink-2); font-size: .98rem; }
.assoc { margin-top: 34px; }
.assoc .lbl { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.assoc-row { display: flex; flex-wrap: wrap; gap: 14px; }
.assoc-logo {
  height: 48px; display: flex; align-items: center;
  padding: 0 4px;
  border: none; border-radius: 0;
  display: grid; place-items: center;
  background: transparent;
}
.doctor-aside { display: flex; flex-direction: column; }
.doctor-card-vert {
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.doc-img-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.doc-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.doc-caption {
  padding: 22px 24px 26px;
}
.doc-caption h4 { font-size: 1.25rem; margin: 0 0 4px; }
.doc-caption .title { color: var(--accent); font-weight: 600; font-size: .92rem; }
.doc-caption p { color: var(--ink-2); font-size: .93rem; margin-top: 10px; line-height: 1.6; }

/* =========================================================
   TEAM
   ========================================================= */
.team-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
.team-member { text-align: center; }
.team-member image-slot {
  width: 188px; height: 188px;
  margin: 0 auto 20px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.team-member h4 { font-size: 1.3rem; }
.team-member .role {
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  margin-top: 5px;
}

/* Subtle birch-tree brand watermark */
.leaf-mark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.financing { position: relative; overflow: hidden; }
.financing .wrap { position: relative; z-index: 1; }
.financing .leaf-mark {
  right: -34px; bottom: -54px;
  width: 300px; height: auto;
  opacity: .09;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card image-slot { width: 100%; height: 208px; border-radius: 0; }
.sc-img { width: 100%; height: 208px; overflow: hidden; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.service-card:hover .sc-img img { transform: scale(1.04); }
.service-card .sc-body { padding: 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.service-card h3 { font-size: 1.35rem; }
.service-card p { color: var(--ink-2); font-size: .97rem; }
.service-card .sc-link { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; font-size: .92rem; }
.badge-special {
  position: absolute; top: 14px; right: 14px;
  background: var(--star); color: #3a2c08;
  font-weight: 700; font-size: .8rem;
  padding: 6px 12px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   COMFORT MENU
   ========================================================= */
.comfort .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.amenities { display: grid; grid-template-columns: 1fr; gap: 16px; }
.amenity {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.amenity .ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.3rem;
}
.amenity h4 { font-size: 1.12rem; margin-bottom: 3px; }
.amenity p { color: var(--ink-2); font-size: .94rem; }

/* =========================================================
   LOCATION
   ========================================================= */
.location .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.map-slot {
  border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--line); min-height: 420px;
  background: var(--tint-2);
  display: grid; place-items: center;
  position: relative;
}
.map-slot .map-note {
  font-family: ui-monospace, monospace; font-size: .8rem; color: var(--ink-3);
  text-align: center; padding: 20px;
}
.loc-info {
  display: flex; flex-direction: column;
}
.loc-info h3 { font-size: 1.5rem; margin-bottom: 6px; }
.loc-info .addr { color: var(--ink-2); margin: 16px 0 20px; font-size: .98rem; line-height: 1.7; }
.loc-info .btn { margin-top: auto; align-self: flex-start; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .98rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: var(--ink-2); }
.hours-list .time { font-weight: 600; }
.hours-list .closed { color: var(--ink-3); font-weight: 500; }
.loc-info .btn { margin-top: 22px; }

/* =========================================================
   PRACTICE HIGHLIGHTS
   ========================================================= */
.highlights-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.highlight {
  text-align: center;
  padding: 8px 12px;
}
.highlight .ico {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.7rem;
}
.highlight h4 { font-size: 1.22rem; margin-bottom: 8px; }
.highlight p { color: var(--ink-2); font-size: .95rem; }

/* =========================================================
   FINANCING (accent band)
   ========================================================= */
.financing {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-ink) 100%);
  color: #fff;
}
.financing .wrap { display: flex; flex-direction: column; align-items: center; gap: 34px; text-align: center; }
.financing .eyebrow { color: rgba(255,255,255,.7); }
.financing h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); }
.financing .support { color: rgba(255,255,255,.85); margin-top: 16px; font-size: 1.08rem; }
.financing .cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.follow-us { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }
.follow-label {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}
.follow-links { display: flex; gap: 14px; }
.follow-links a {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  transition: background .18s, border-color .18s, transform .15s;
}
.follow-links a:hover { background: #fff; color: var(--accent); border-color: #fff; transform: translateY(-3px); }

/* =========================================================
   CONNECT
   ========================================================= */
.connect { text-align: center; }
.connect-cta { margin-top: 40px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.social-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 26px; min-width: 190px;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: #fff; box-shadow: var(--shadow-sm);
  font-weight: 600; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.social-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.social-btn .si {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.15rem; flex: none;
}
.social-btn .sb-sub { font-size: .8rem; color: var(--ink-3); font-weight: 500; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--accent-2-deep); color: rgba(255,255,255,.7); padding-block: 72px 32px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer h5 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; font-weight: 700; }
.footer .f-brand .b-name { color: #fff; font-family: var(--font-head); font-size: 1.4rem; }
.footer .f-brand p { margin-top: 14px; font-size: .95rem; max-width: 34ch; }
.footer .f-phone { color: #fff; font-family: var(--font-head); font-size: 1.35rem; font-weight: 500; }
.footer .f-phone:hover { color: var(--accent); }
.footer .f-contact { margin-top: 4px; }
.footer .f-sub {
  color: rgba(255,255,255,.55);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  margin: 16px 0 4px;
}
.footer .f-contact .f-sub:first-child { margin-top: 0; }
.footer .f-val { font-size: .95rem; line-height: 1.5; color: rgba(255,255,255,.7); }
.footer .f-seal { margin-top: 20px; }
.footer .seal-slot {
  width: 76px; height: 76px;
  --slot-bg: rgba(255,255,255,.06);
  background: rgba(255,255,255,.06);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: .95rem; }
.footer ul a:hover { color: #fff; }
.footer .f-hours li { display: flex; justify-content: space-between; gap: 14px; }
.footer .f-social { display: flex; gap: 12px; margin-top: 16px; }
.footer .f-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; color: #fff; transition: background .15s, border-color .15s;
}
.footer .f-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer .f-bottom {
  max-width: var(--maxw); margin: 48px auto 0; padding: 24px 32px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 28px;
  font-size: .85rem; color: rgba(255,255,255,.5);
}
.footer .f-legal { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.footer .f-bottom a:hover { color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* — Tablet — */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .about-grid, .comfort .wrap, .location .wrap, .financing .wrap { grid-template-columns: 1fr; gap: 44px; }
  .map-slot { min-height: 320px; }
  .doc-img-frame { aspect-ratio: 4 / 3; }
  .reviews-track .review-card { flex-basis: calc((100% - var(--gap)) / 2); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-track .tour-slide { flex-basis: 100%; height: 420px; }
  .footer .wrap { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* — Collapse nav to hamburger — */
@media (max-width: 900px) {
  .nav .wrap { gap: 14px; }
  .nav-links {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 88px 32px 48px;
    background: #fff;
    box-shadow: none;
    z-index: 60;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .32s cubic-bezier(.4,.05,.2,1), opacity .25s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 78px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu-head .logo-slot { width: 150px; height: 44px; }
  .nav-close {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-close:active { transform: scale(.94); }
  .nav-links a {
    width: 100%; max-width: 360px;
    text-align: center;
    padding: 18px 6px; font-size: 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-of-type { border-bottom: 0; }
  .nav-menu-social {
    display: flex;
    gap: 16px;
    margin-top: 32px;
  }
  .nav-menu-social a {
    width: 50px; height: 50px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    padding: 0;
    transition: background .18s, color .18s, border-color .18s;
  }
  .nav-menu-social a:active { background: var(--accent); color: #fff; border-color: var(--accent); }
  .nav-book { display: none; }
  .nav-phone { display: none; }
  .nav-call { display: inline-flex; }
  .nav-toggle { display: flex; }
}

/* — Mobile — */
@media (max-width: 680px) {
  :root { --section-pad: 60px; --fs-base: 16px; }
  .topbar { display: none; }
  .wrap { padding-inline: 20px; }
  .nav .wrap { min-height: 66px; }
  .brand .logo-slot { width: 150px; height: 44px; }
  .hero { min-height: 82vh; padding-block: 72px; }
  .hero .trust { flex-wrap: wrap; }
  .reviews-track .review-card { flex-basis: 100%; }
  .services-grid, .highlights-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 34px 18px; }
  .team-member image-slot { width: 138px; height: 138px; }
  .tour-track .tour-slide { flex-basis: 100%; height: 260px; }
  .hero-badge { left: 0; bottom: 18px; padding: 14px 18px; }
  .hero-badge .num { font-size: 1.7rem; }
  .slider-arrow { width: 44px; height: 44px; }  .reviews-slider, .tour-slider { gap: 10px; }
  .doctor-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .doctor-card image-slot { width: 100%; height: 220px; }
  .map-slot { min-height: 280px; }
  .loc-info { padding: 0; }
  .footer .wrap { grid-template-columns: 1fr; gap: 30px; }
  .footer .f-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .connect-cta, .financing .cta-row { flex-direction: column; width: 100%; }
  .connect-cta .btn, .financing .cta-row .btn { width: 100%; }
}

/* Hide elements when a section is toggled off via Tweaks */
[data-hidden="true"] { display: none !important; }

/* Lock background scroll while the mobile nav overlay is open */
body.nav-open { overflow: hidden; }

/* =========================================================
   MOBILE FLOATING CTA — visible at top, hides on scroll down
   ========================================================= */
.mobile-cta {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  background: var(--highlight);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--highlight) 40%, transparent), 0 2px 8px rgba(20,34,46,.18);
  transition: transform .3s cubic-bezier(.4,.05,.2,1), opacity .3s ease;
}
.mobile-cta.hidden {
  transform: translateX(-50%) translateY(140%);
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 680px) {
  .mobile-cta { display: inline-flex; }
}
