/* =========================================================================
   BrightSmile Dental — shared stylesheet
   Concept: "Aqua Studio" — crisp white + bright aqua/cyan signature accent,
   deep ink-teal text, fresh mint tints. Display: Unbounded. Body: Be Vietnam Pro.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — bright aqua/cyan cosmetic-dental */
  --aqua-50:  #ecfdff;
  --aqua-100: #d2f8fb;
  --aqua-200: #a6eff5;
  --aqua-300: #6fe2eb;
  --aqua-400: #2fcdda;
  --aqua-500: #06b6c4;   /* signature accent */
  --aqua-600: #088c9c;
  --aqua-700: #0d6e7c;
  --aqua-800: #0f5663;
  --aqua-900: #103f4c;

  --mint:     #e9fbf6;   /* soft fresh fill */
  --mint-2:   #d6f6ee;

  --ink:      #0b2530;   /* deep ink-teal — primary text */
  --ink-soft: #355663;   /* secondary text */
  --ink-faint:#6c8a95;   /* muted */

  --paper:    #ffffff;
  --paper-2:  #f5fbfc;   /* faint cool wash */
  --line:     #e2eef1;

  /* Secondary accent — a tasteful violet sparkle, used sparingly */
  --spark:    #7b6cf6;

  --ok:       #1f9d6b;
  --err:      #d6455d;

  /* Type */
  --font-display: "Unbounded", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;

  /* Radii / shadow */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(15, 86, 99, .06);
  --shadow-md: 0 12px 34px -12px rgba(13, 110, 124, .26);
  --shadow-lg: 0 30px 70px -28px rgba(13, 110, 124, .42);
  --shadow-glow: 0 14px 50px -10px rgba(6, 182, 196, .55);

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --header-h: 80px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(15.5px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--ink);
}

::selection { background: var(--aqua-200); color: var(--ink); }

/* Visible focus everywhere — accessibility */
:focus-visible {
  outline: 3px solid var(--aqua-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: var(--r-pill); transform: translateY(-160%);
  transition: transform .25s var(--ease); font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 600; font-size: .76rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--aqua-700);
}
.eyebrow::before {
  content: "✦"; color: var(--aqua-500); font-size: .85em;
  transform: translateY(-1px);
}

.section-head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); margin-top: 14px; }
.section-head p { color: var(--ink-soft); margin-top: 16px; font-size: 1.05rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--aqua-500); --fg: #042a30;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .98rem; letter-spacing: .005em;
  background: var(--bg); color: var(--fg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap; position: relative;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 60px -10px rgba(6,182,196,.7); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border: 1.6px solid var(--line); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--aqua-400); color: var(--aqua-700); transform: translateY(-2px); }
.btn--light {
  --bg: rgba(255,255,255,.14); --fg: #fff;
  border: 1.6px solid rgba(255,255,255,.4); backdrop-filter: blur(8px);
}
.btn--light:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.btn--dark { --bg: var(--ink); --fg: #fff; box-shadow: var(--shadow-md); }
.btn--dark:hover { transform: translateY(-3px); background: var(--aqua-900); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ============================ HEADER ============================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height .3s var(--ease), background .3s var(--ease),
              box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; width: 100%; }

/* over-hero (transparent, light text) */
.site-header[data-mode="over"] { background: transparent; }
.site-header[data-mode="over"] .nav-link,
.site-header[data-mode="over"] .brand-name { color: #fff; }
.site-header[data-mode="over"] .nav-link::after { background: #fff; }
.site-header[data-mode="over"] .brand-mark { box-shadow: 0 6px 22px rgba(0,0,0,.28); }
.site-header[data-mode="over"] .menu-toggle { color: #fff; }
.site-header[data-mode="over"] .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }

/* solid (interior pages + scrolled) */
.site-header[data-mode="solid"],
.site-header.is-scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 34px -26px rgba(13,110,124,.5);
}
.site-header.is-scrolled { height: 66px; }
.site-header[data-mode="solid"] .nav-link,
.site-header[data-mode="solid"] .brand-name,
.site-header.is-scrolled .nav-link,
.site-header.is-scrolled .brand-name { color: var(--ink); }
.site-header[data-mode="solid"] .menu-toggle,
.site-header.is-scrolled .menu-toggle { color: var(--ink); }
.site-header.is-scrolled .btn--ghost { border-color: var(--line); color: var(--ink); }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--aqua-400), var(--aqua-600));
  box-shadow: var(--shadow-glow);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  letter-spacing: -.02em; line-height: 1;
}
.brand-name small {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: .6rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--aqua-600); margin-top: 4px;
}
.site-header[data-mode="over"] .brand-name small { color: var(--aqua-200); }

.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-link {
  position: relative; font-weight: 500; font-size: .96rem; padding: 6px 2px;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--aqua-500); border-radius: 2px; transition: width .28s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }
.nav-link[aria-current="page"] { color: var(--aqua-600); }
.site-header[data-mode="over"] .nav-link[aria-current="page"] { color: #fff; }

.header-cta { margin-left: 6px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 13px;
  align-items: center; justify-content: center; margin-left: auto;
}
.menu-toggle svg { width: 26px; height: 26px; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 150; visibility: hidden;
}
.mobile-drawer__scrim {
  position: absolute; inset: 0; background: rgba(11,37,48,.5);
  opacity: 0; transition: opacity .3s var(--ease);
}
.mobile-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  background: var(--paper); padding: 26px 24px 32px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%); transition: transform .38s var(--ease);
  box-shadow: var(--shadow-lg); overflow-y: auto;
}
.mobile-drawer.is-open { visibility: visible; }
.mobile-drawer.is-open .mobile-drawer__scrim { opacity: 1; }
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mobile-drawer__close { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); }
.mobile-drawer__close svg { width: 24px; height: 24px; }
.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 14px; border-radius: var(--r-md); font-weight: 500; font-size: 1.08rem;
  border: 1px solid transparent; transition: background .2s, border-color .2s;
}
.mobile-link:hover, .mobile-link[aria-current="page"] { background: var(--mint); border-color: var(--line); }
.mobile-link[aria-current="page"] { color: var(--aqua-700); }
.mobile-drawer .btn { margin-top: 16px; }
.mobile-drawer__meta { margin-top: auto; padding-top: 22px; color: var(--ink-soft); font-size: .92rem; }
.mobile-drawer__meta a { color: var(--aqua-700); font-weight: 600; }

/* ============================ HERO ============================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: var(--header-h); color: #fff; isolation: isolate; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(110deg, rgba(8,40,46,.86) 0%, rgba(8,40,46,.55) 42%, rgba(8,40,46,.12) 78%),
    linear-gradient(0deg, rgba(8,40,46,.55), transparent 45%);
}
.hero__glow {
  position: absolute; z-index: -1; width: 560px; height: 560px; border-radius: 50%;
  right: -120px; top: 8%; filter: blur(20px); opacity: .55; pointer-events: none;
  background: radial-gradient(circle, rgba(47,205,218,.65), transparent 65%);
}
.hero .wrap { width: 100%; padding-block: clamp(40px, 8vw, 96px); }
.hero__inner { max-width: 660px; }
.hero h1 {
  color: #fff; font-size: clamp(2.6rem, 6.4vw, 5rem); margin: 20px 0 0;
  text-shadow: 0 4px 40px rgba(0,0,0,.3);
}
.hero h1 em {
  font-style: normal; color: var(--aqua-300);
  -webkit-text-fill-color: transparent;
  background: linear-gradient(100deg, var(--aqua-200), var(--aqua-400));
  -webkit-background-clip: text; background-clip: text;
}
.hero .eyebrow { color: var(--aqua-200); }
.hero .eyebrow::before { color: var(--aqua-300); }
.hero__sub { margin-top: 22px; font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: rgba(255,255,255,.9); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 42px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.2);
}
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.94); }
.trust-item svg { width: 22px; height: 22px; color: var(--aqua-300); flex: none; }

/* Hero animation (reveal) */
.reveal-up { opacity: 0; transform: translateY(26px); }
.hero.is-ready .reveal-up { animation: heroUp .9s var(--ease) forwards; }
.hero.is-ready .reveal-up:nth-child(1) { animation-delay: .05s; }
.hero__inner > * { animation-delay: 0s; }
.hero.is-ready .hero__inner > *:nth-child(1) { animation: heroUp .8s var(--ease) .05s both; }
.hero.is-ready .hero__inner > *:nth-child(2) { animation: heroUp .8s var(--ease) .15s both; }
.hero.is-ready .hero__inner > *:nth-child(3) { animation: heroUp .8s var(--ease) .25s both; }
.hero.is-ready .hero__inner > *:nth-child(4) { animation: heroUp .8s var(--ease) .35s both; }
.hero.is-ready .hero__inner > *:nth-child(5) { animation: heroUp .8s var(--ease) .45s both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.hero__card {
  position: absolute; right: clamp(24px, 5vw, 80px); bottom: clamp(28px, 6vw, 64px);
  z-index: 1; background: rgba(255,255,255,.92); color: var(--ink);
  border-radius: var(--r-lg); padding: 20px 24px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px); max-width: 280px;
  animation: floatCard 6s ease-in-out infinite;
}
.hero__card strong { font-family: var(--font-display); font-size: 1.9rem; display: block; color: var(--aqua-700); }
.hero__card .stars { color: #f4b740; letter-spacing: 2px; font-size: .95rem; }
.hero__card p { font-size: .88rem; color: var(--ink-soft); margin-top: 4px; }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 980px) { .hero__card { display: none; } }

/* Generic page banner (interior) */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(40px, 7vw, 84px));
  padding-bottom: clamp(48px, 7vw, 88px); color: #fff; isolation: isolate; overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(8,40,46,.9), rgba(13,110,124,.6) 70%, rgba(13,110,124,.4));
}
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.8rem); margin-top: 14px; }
.page-hero .eyebrow { color: var(--aqua-200); }
.page-hero .eyebrow::before { color: var(--aqua-300); }
.page-hero p { color: rgba(255,255,255,.9); margin-top: 16px; max-width: 600px; font-size: 1.08rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--aqua-200); }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-reveal="left"] { transform: translateX(-40px); }
[data-reveal][data-reveal="left"].in { transform: none; }
[data-reveal][data-reveal="right"] { transform: translateX(40px); }
[data-reveal][data-reveal="right"].in { transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal-stagger].in > * { opacity: 1; transform: none; }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: .07s; }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: .14s; }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: .21s; }
[data-reveal-stagger].in > *:nth-child(5) { transition-delay: .28s; }
[data-reveal-stagger].in > *:nth-child(6) { transition-delay: .35s; }

/* ============================ WELCOME ============================ */
.welcome { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.welcome__media { position: relative; }
.welcome__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.welcome__badge {
  position: absolute; left: -18px; bottom: 30px; background: var(--paper);
  border-radius: var(--r-md); padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px; max-width: 240px;
}
.welcome__badge .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; flex: none; }
.welcome__badge .ic svg { width: 24px; height: 24px; color: var(--aqua-600); }
.welcome__badge b { font-family: var(--font-display); font-size: 1.05rem; }
.welcome__badge span { font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr; } .welcome__media { order: -1; } }

/* ============================ TREATMENTS GRID ============================ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(18px, 2.4vw, 26px); }
.tcard {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 28px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.tcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 120% at 100% 0%, var(--mint), transparent 55%);
  opacity: 0; transition: opacity .35s var(--ease); z-index: 0;
}
.tcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--aqua-200); }
.tcard:hover::after { opacity: 1; }
.tcard > * { position: relative; z-index: 1; }
.tcard__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--aqua-400), var(--aqua-600));
  color: #fff; box-shadow: var(--shadow-glow); margin-bottom: 20px;
}
.tcard__icon svg { width: 30px; height: 30px; }
.tcard h3 { font-size: 1.32rem; }
.tcard p { color: var(--ink-soft); margin-top: 10px; font-size: .97rem; }
.tcard__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-weight: 600; color: var(--aqua-700); font-size: .94rem;
}
.tcard__more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.tcard:hover .tcard__more svg { transform: translateX(4px); }

/* ============================ STATS BAND ============================ */
.stats-band {
  background: linear-gradient(135deg, var(--aqua-700), var(--aqua-900));
  color: #fff; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.stats-band::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle, rgba(47,205,218,.5), transparent 60%);
}
.stats-band__head { max-width: 560px; position: relative; }
.stats-band__head .eyebrow { color: var(--aqua-200); }
.stats-band__head h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-top: 12px; }
.stats-band__head p { color: rgba(255,255,255,.85); margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; position: relative; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; line-height: 1; }
.stat__num .suffix { color: var(--aqua-300); }
.stat__label { margin-top: 10px; color: rgba(255,255,255,.82); font-size: .96rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; } }

/* ============================ BEFORE/AFTER SLIDER ============================ */
.gallery { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .gallery { grid-template-columns: 1fr; } }
.ba {
  position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; user-select: none; touch-action: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__tag {
  position: absolute; top: 14px; padding: 6px 14px; border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(11,37,48,.7); color: #fff; backdrop-filter: blur(4px); z-index: 3;
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; background: var(--aqua-500); color: #042a30; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 0; border-left: 3px solid #fff; transform: translateX(-1.5px); z-index: 4;
  box-shadow: 0 0 18px rgba(0,0,0,.35);
}
.ba__knob {
  position: absolute; top: 50%; left: var(--pos, 50%); transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: #fff; z-index: 5;
  display: grid; place-items: center; box-shadow: var(--shadow-md); cursor: ew-resize;
}
.ba__knob:focus-visible { outline: 3px solid var(--aqua-500); outline-offset: 3px; }
.ba__knob svg { width: 26px; height: 26px; color: var(--aqua-700); }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 6; margin: 0;
}
.gallery__copy .ba-stat { display: flex; gap: 26px; margin-top: 26px; }
.gallery__copy .ba-stat b { font-family: var(--font-display); font-size: 1.8rem; color: var(--aqua-700); display: block; }
.gallery__copy .ba-stat span { font-size: .88rem; color: var(--ink-soft); }

/* ============================ DENTISTS TEASER / CARDS ============================ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(20px, 2.6vw, 30px); }
.dcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.dcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.dcard__photo { aspect-ratio: 1/1; overflow: hidden; position: relative; }
.dcard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dcard:hover .dcard__photo img { transform: scale(1.06); }
.dcard__spec {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); font-size: .78rem; font-weight: 600; color: var(--aqua-700);
}
.dcard__body { padding: 22px 24px 26px; }
.dcard__body h3 { font-size: 1.28rem; }
.dcard__cred { color: var(--aqua-700); font-weight: 600; font-size: .9rem; margin-top: 3px; }
.dcard__body p { color: var(--ink-soft); font-size: .94rem; margin-top: 12px; }
.dcard__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip { font-size: .76rem; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill); background: var(--mint); color: var(--aqua-700); }

/* Filter bar */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 10px 20px; border-radius: var(--r-pill); border: 1.5px solid var(--line);
  font-weight: 600; font-size: .9rem; color: var(--ink-soft); background: var(--paper);
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--aqua-300); color: var(--aqua-700); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.is-hidden { display: none !important; }

/* ============================ TESTIMONIAL ============================ */
.testimonial {
  background: var(--paper-2); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px);
  position: relative; overflow: hidden; border: 1px solid var(--line);
}
.testimonial::before {
  content: "\201C"; position: absolute; top: -30px; left: 24px; font-family: var(--font-display);
  font-size: 14rem; color: var(--aqua-200); line-height: 1; opacity: .6;
}
.testimonial__inner { position: relative; max-width: 760px; margin-inline: auto; text-align: center; }
.testimonial blockquote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.3; letter-spacing: -.02em; }
.testimonial .stars { color: #f4b740; letter-spacing: 4px; font-size: 1.3rem; margin-bottom: 18px; }
.testimonial__by { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.testimonial__by img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial__by b { font-family: var(--font-display); }
.testimonial__by span { display: block; color: var(--ink-soft); font-size: .9rem; }

/* ============================ HOURS / LOCATION ============================ */
.info-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); }
@media (max-width: 820px) { .info-split { grid-template-columns: 1fr; } }
.info-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); }
.info-panel h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; }
.info-panel h3 svg { width: 26px; height: 26px; color: var(--aqua-600); }
.hours-list { margin-top: 22px; }
.hours-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .98rem; }
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { font-weight: 500; }
.hours-list .time { color: var(--ink-soft); }
.hours-list li.is-today { background: var(--mint); margin-inline: -14px; padding-inline: 14px; border-radius: 10px; border-bottom-color: transparent; }
.hours-list li.is-today .time { color: var(--aqua-700); font-weight: 600; }
.hours-list .closed { color: var(--err); }
.contact-line { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; }
.contact-line svg { width: 22px; height: 22px; color: var(--aqua-600); flex: none; margin-top: 3px; }
.contact-line a { font-weight: 500; }
.contact-line a:hover { color: var(--aqua-700); }
.contact-line span { color: var(--ink-soft); font-size: .9rem; display: block; }

/* ============================ CTA BAND ============================ */
.cta-band {
  position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px); color: #fff; text-align: center;
}
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(8,40,46,.92), rgba(13,110,124,.72));
}
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 720px; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 18px auto 0; font-size: 1.08rem; }
.cta-band .hero__cta, .cta-band__cta { justify-content: center; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ============================ SERVICES PAGE ============================ */
.svc-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(36px, 5vw, 64px);
}
.svc-row + .svc-row { border-top: 1px solid var(--line); }
.svc-row:nth-child(even) .svc-row__media { order: 2; }
@media (max-width: 880px) { .svc-row, .svc-row:nth-child(even) .svc-row__media { grid-template-columns: 1fr; order: 0; } .svc-row__media { order: -1 !important; } }
.svc-row__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 5/4; object-fit: cover; }
.svc-row__num { font-family: var(--font-display); color: var(--aqua-300); font-size: 1.1rem; font-weight: 700; }
.svc-row h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 6px; }
.svc-row p { color: var(--ink-soft); margin-top: 14px; }
.benefits { margin-top: 22px; display: grid; gap: 12px; }
.benefits li { display: flex; align-items: flex-start; gap: 12px; }
.benefits li svg { width: 22px; height: 22px; color: var(--aqua-500); flex: none; margin-top: 2px; }
.svc-row__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.price-from { font-size: .95rem; color: var(--ink-soft); }
.price-from b { font-family: var(--font-display); color: var(--ink); font-size: 1.3rem; display: block; }

.highlight-band {
  background: linear-gradient(135deg, var(--mint), var(--aqua-50));
  border: 1px solid var(--aqua-200); border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 760px) { .highlight-band { grid-template-columns: 1fr; } }
.highlight-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.highlight-band p { color: var(--ink-soft); margin-top: 14px; }
.highlight-band__stats { display: flex; gap: 30px; margin-top: 24px; }
.highlight-band__stats b { font-family: var(--font-display); font-size: 2rem; color: var(--aqua-700); display: block; }
.highlight-band__stats span { font-size: .85rem; color: var(--ink-soft); }

/* ============================ APPOINTMENTS / FORM ============================ */
.booking-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .booking-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .req { color: var(--err); }
.field .hint { font-size: .82rem; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--paper-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--aqua-400); background: #fff; box-shadow: 0 0 0 4px rgba(6,182,196,.14); outline: none;
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--err); }
.field .error-msg { font-size: .82rem; color: var(--err); min-height: 1em; font-weight: 500; display: none; }
.field.has-error .error-msg { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-pill label {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); cursor: pointer; font-weight: 500; transition: all .2s var(--ease);
}
.radio-pill input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.radio-pill input:focus-visible + label { outline: 3px solid var(--aqua-500); outline-offset: 2px; }
.form-actions { margin-top: 26px; }
.form-note { font-size: .85rem; color: var(--ink-faint); margin-top: 14px; text-align: center; }

.form-success {
  display: none; text-align: center; padding: clamp(30px, 5vw, 56px); animation: heroUp .5s var(--ease);
}
.form-success.show { display: block; }
.form-card.is-done .form-body { display: none; }
.form-success__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; margin: 0 auto 20px; }
.form-success__icon svg { width: 44px; height: 44px; color: var(--ok); }
.form-success h3 { font-size: 1.8rem; }
.form-success p { color: var(--ink-soft); margin-top: 12px; }
.form-success .summary { background: var(--paper-2); border-radius: var(--r-md); padding: 18px; margin: 22px auto 0; max-width: 380px; text-align: left; }
.form-success .summary div { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; }
.form-success .summary span { color: var(--ink-soft); }
.form-success .summary b { font-weight: 600; }

.aside-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); }
.aside-card + .aside-card { margin-top: 22px; }
.aside-card h3 { color: #fff; font-size: 1.4rem; display: flex; gap: 12px; align-items: center; }
.aside-card h3 svg { width: 24px; height: 24px; color: var(--aqua-300); }
.aside-card .hours-list li { border-bottom-color: rgba(255,255,255,.14); }
.aside-card .hours-list .day { color: #fff; }
.aside-card .hours-list .time { color: rgba(255,255,255,.75); }
.aside-card .hours-list li.is-today { background: rgba(255,255,255,.1); }
.aside-card .hours-list li.is-today .time { color: var(--aqua-300); }
.aside-card.light { background: var(--mint); color: var(--ink); }
.aside-card.light h3 { color: var(--ink); }
.aside-card.light h3 svg { color: var(--aqua-600); }
.aside-card.light p { color: var(--ink-soft); }
.aside-card p { color: rgba(255,255,255,.85); margin-top: 12px; font-size: .96rem; }
.aside-card ul.ticks { margin-top: 16px; display: grid; gap: 10px; }
.aside-card ul.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.aside-card ul.ticks li svg { width: 20px; height: 20px; color: var(--aqua-300); flex: none; margin-top: 2px; }
.aside-card.light ul.ticks li svg { color: var(--aqua-600); }

/* What to expect steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; position: relative; }
.step__n { font-family: var(--font-display); font-size: 2.4rem; color: var(--aqua-200); line-height: 1; }
.step h3 { font-size: 1.2rem; margin-top: 10px; }
.step p { color: var(--ink-soft); font-size: .94rem; margin-top: 10px; }

/* ============================ CONTACT PAGE ============================ */
.map-placeholder {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 380px;
  background:
    linear-gradient(135deg, var(--aqua-50), var(--mint)),
    var(--paper);
  border: 1px solid var(--aqua-200); display: grid; place-items: center; isolation: isolate;
}
.map-placeholder::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(var(--aqua-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--aqua-200) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
}
.map-placeholder__road { position: absolute; inset: 0; z-index: -1; }
.map-placeholder__road span {
  position: absolute; background: rgba(13,110,124,.18); border-radius: 4px;
}
.map-placeholder__road span:nth-child(1) { left: 0; right: 0; top: 42%; height: 16px; }
.map-placeholder__road span:nth-child(2) { top: 0; bottom: 0; left: 64%; width: 18px; }
.map-placeholder__road span:nth-child(3) { left: 0; right: 30%; bottom: 22%; height: 10px; transform: rotate(-3deg); }
.map-pin { text-align: center; position: relative; z-index: 1; }
.map-pin__dot {
  width: 66px; height: 66px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(140deg, var(--aqua-400), var(--aqua-600)); margin: 0 auto 18px;
  display: grid; place-items: center; box-shadow: var(--shadow-glow);
  animation: pinBounce 2.4s ease-in-out infinite;
}
.map-pin__dot svg { transform: rotate(45deg); width: 32px; height: 32px; color: #fff; }
@keyframes pinBounce { 0%,100% { transform: rotate(-45deg) translateY(0); } 50% { transform: rotate(-45deg) translateY(-10px); } }
.map-pin b { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.map-pin span { color: var(--ink-soft); font-size: .92rem; }
.map-pin .btn { margin-top: 18px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.contact-tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.contact-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-tile .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; margin-bottom: 16px; }
.contact-tile .ic svg { width: 26px; height: 26px; color: var(--aqua-600); }
.contact-tile h3 { font-size: 1.15rem; }
.contact-tile p, .contact-tile a { color: var(--ink-soft); font-size: .95rem; margin-top: 6px; display: block; }
.contact-tile a:hover { color: var(--aqua-700); }

.emergency {
  background: linear-gradient(120deg, var(--ink), var(--aqua-900)); color: #fff;
  border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); display: flex; flex-wrap: wrap;
  align-items: center; gap: 24px; justify-content: space-between;
}
.emergency__txt { display: flex; align-items: center; gap: 18px; }
.emergency__txt .ic { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
.emergency__txt .ic svg { width: 30px; height: 30px; color: var(--aqua-300); }
.emergency h3 { color: #fff; font-size: 1.4rem; }
.emergency p { color: rgba(255,255,255,.85); margin-top: 4px; }

/* Social icons */
.socials { display: flex; gap: 12px; }
.socials a {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--paper-2); border: 1px solid var(--line); transition: all .25s var(--ease);
}
.socials a:hover { background: var(--aqua-500); color: #042a30; transform: translateY(-3px); border-color: var(--aqua-500); }
.socials a svg { width: 20px; height: 20px; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 48px); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name small { color: var(--aqua-300); }
.footer-brand p { margin-top: 16px; max-width: 300px; font-size: .94rem; }
.footer-brand .socials { margin-top: 22px; }
.footer-brand .socials a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.footer-col h4 { color: #fff; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--aqua-300); }
.footer-col .hours-mini li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; padding: 4px 0; }
.footer-col .hours-mini .time { color: rgba(255,255,255,.6); }
.footer-emergency {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: .88rem;
}
.footer-emergency b { color: var(--aqua-300); display: block; margin-bottom: 4px; }
.footer-bottom {
  margin-top: clamp(44px, 6vw, 72px); border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 26px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center; font-size: .86rem; color: rgba(255,255,255,.6);
}
.footer-bottom a:hover { color: var(--aqua-300); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive header ---------- */
@media (max-width: 940px) {
  .primary-nav, .header-cta.desktop-only { display: none; }
  .menu-toggle { display: flex; }
}
@media (min-width: 941px) { .mobile-only { display: none; } }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.relative { position: relative; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(34px, 5vw, 52px); }
.split-head .section-head { margin-bottom: 0; }
