/* ==========================================================================
   Spandan® Dental Implant & Laser Clinic — design system
   Palette + smile-arc signature grounded in the clinic's real brand
   (teal #007490 / orange #ED7F22, the orange smile painted on their wall).
   ========================================================================== */

:root {
  /* color */
  --porcelain: #f4f7f7;
  --white: #ffffff;
  --teal: #007490;
  --teal-deep: #02333f;
  --teal-700: #0a5a6e;
  --teal-tint: #e3eff0;
  --teal-tint-2: #eef5f5;
  --coral: #ed7f22;
  --coral-600: #d96e16;
  --coral-soft: #fbe9d8;
  --ink: #11272c;
  --muted: #5e777d;
  --line: #d9e5e5;

  /* type */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* scale / rhythm */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 128px);
  --radius: 18px;
  --radius-lg: 30px;
  --shadow-sm: 0 2px 10px rgba(2, 51, 63, 0.06);
  --shadow: 0 18px 50px -22px rgba(2, 51, 63, 0.28);
  --shadow-lg: 0 40px 80px -36px rgba(2, 51, 63, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.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) {
  /* Client wants the full animated experience regardless of the OS
     "reduce motion" setting, so motion is intentionally kept on.
     Only disable instant-jump smooth scrolling. */
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.65;
  font-size: clamp(16px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* stop horizontal scroll from any wide third-party widget; `hidden` (not `clip`)
   so the fixed mobile menu panel is NOT clipped */
html { overflow-x: hidden; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--coral); color: #fff; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
p { color: var(--ink); }
.sup { font-size: 0.55em; vertical-align: super; font-family: var(--font-body); }

/* ---------- layout ---------- */
.container {
  width: min(100% - calc(var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.container--wide { --container: 1340px; }
section { padding-block: var(--section-y); }

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 8px;
  /* the smile arc, drawn small */
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14'%3E%3Cpath d='M2 2c6 9 30 9 36 0' fill='none' stroke='%23ed7f22' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* heading underlined by the orange smile arc — the page signature */
.smile-head { position: relative; display: inline-block; }
.smile-head::after {
  content: "";
  display: block;
  height: 16px;
  margin-top: 0.15em;
  width: var(--smile-w, min(100%, 240px));
  margin-left: var(--smile-ml, auto);
  margin-right: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 28'%3E%3Cpath d='M4 6c50 22 162 22 212 0' fill='none' stroke='%23ed7f22' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0% 100%;
  transition: background-size 0.9s var(--ease) 0.12s;
}
.smile-head.drawn::after { background-size: 100% 100%; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; margin-inline: auto; }
.page-banner .eyebrow { margin-inline: auto; }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, box-shadow 0.35s;
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 14px 28px -12px rgba(237, 127, 34, 0.7); }
.btn--primary:hover { background: var(--coral-600); transform: translateY(-3px); box-shadow: 0 20px 34px -14px rgba(237, 127, 34, 0.75); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-700); transform: translateY(-3px); }
.btn--ghost { background: transparent; color: var(--teal-deep); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--teal-deep); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
}
.topbar a { color: inherit; transition: color 0.2s; }
.topbar a:hover { color: var(--coral); }
.topbar__info { display: flex; gap: 1.6rem; align-items: center; }
.topbar__info span { display: inline-flex; align-items: center; gap: 0.45em; }
.topbar__info svg { width: 15px; height: 15px; color: var(--coral); }
.topbar__social { display: flex; gap: 0.4rem; }
.topbar__social a {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
}
.topbar__social a:hover { background: var(--coral); color: #fff; }
.topbar__social svg { width: 15px; height: 15px; }
@media (max-width: 860px) { .topbar__info span.hide-sm { display: none; } }
@media (max-width: 560px) { .topbar { display: none; } }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.header.is-stuck { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav a {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--teal-deep);
  border-radius: 8px;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__cta { display: flex; align-items: center; gap: 0.7rem; }
.header__call {
  display: flex; align-items: center; gap: 0.6rem;
}
.header__call .ico {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal);
  display: grid; place-items: center; flex-shrink: 0;
}
.header__call .ico svg { width: 20px; height: 20px; }
.header__call small { display: block; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.header__call strong { display: block; font-size: 1rem; color: var(--teal-deep); font-family: var(--font-display); }

.nav-only-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--teal-deep);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after { transform: translate(-50%, 7px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translate(-50%, 0) rotate(-45deg); }

@media (max-width: 1024px) {
  .header__call { display: none; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  /* on phones the header is just logo + menu button (booking lives in the menu + bottom bar) */
  .header__cta > .btn--primary { display: none; }
  /* IMPORTANT: backdrop-filter on the header would make the fixed nav panel
     size to the header instead of the viewport — use a solid bg on mobile */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: #fff;
    padding: 6rem 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    /* hide via opacity/visibility (NOT an off-screen transform) so the closed
       panel never extends the page width and causes horizontal overflow */
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    z-index: 90;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a { padding: 0.85rem 1rem; font-size: 1.1rem; border-radius: 12px; }
  .nav a::after { display: none; }
  .nav a:hover { background: var(--teal-tint); }
  .nav .btn { margin-top: 1rem; width: 100%; }
  .nav-only-mobile { display: flex; }
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(2, 51, 63, 0.4);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s;
    z-index: 80;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* ==========================================================================
   Hero (cinematic)
   ========================================================================== */
.hero { position: relative; isolation: isolate; padding-block: 0; }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.hero__glow--teal { width: 48vw; height: 48vw; max-width: 660px; max-height: 660px; top: -18%; left: -12%; background: radial-gradient(circle, rgba(0,116,144,0.32), transparent 62%); }
.hero__glow--coral { width: 40vw; height: 40vw; max-width: 540px; max-height: 540px; bottom: -22%; right: -8%; background: radial-gradient(circle, rgba(237,127,34,0.22), transparent 62%); }
.hero__watermark { position: absolute; right: -5%; top: 12%; width: min(44vw, 600px); color: rgba(0,116,144,0.05); }

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(2rem, 5vw, 5.5rem); align-items: center;
  padding-block: clamp(12px, 1.8vw, 30px) clamp(40px, 5vw, 76px);
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal);
  opacity: 0; animation: heroFade 0.8s var(--ease) 0.1s both;
}
.hero__pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: heroPulse 1.9s ease-out infinite; }

.hero__title {
  font-family: var(--font-display); font-weight: 800; line-height: 0.96; letter-spacing: -0.03em;
  font-size: clamp(3rem, 7.6vw, 6.1rem); color: var(--teal-deep); margin: 0.5rem 0 0;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
/* last line carries the smile arc — give it room below so overflow:hidden doesn't clip the arc */
.hero__title .ln:last-child { padding-bottom: 0.52em; }
.hero__title .ln__in { display: block; transform: translateY(116%); animation: heroLine 0.95s var(--ease) both; }
.hero__title .ln:nth-child(1) .ln__in { animation-delay: 0.26s; }
.hero__title .ln:nth-child(2) .ln__in { animation-delay: 0.40s; }
.smile-word { position: relative; color: var(--coral); white-space: nowrap; }
.hero__smile { position: absolute; left: -2%; top: 100%; margin-top: -0.08em; width: 104%; height: 0.4em; overflow: visible; }
.hero__smile path { stroke-dasharray: 360; stroke-dashoffset: 360; animation: heroDraw 1.1s var(--ease) 1.1s forwards; }

.hero__sub {
  max-width: 46ch; margin-top: 1.5rem; color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.6;
  opacity: 0; animation: heroFade 0.8s var(--ease) 0.7s both;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.1rem; opacity: 0; animation: heroFade 0.8s var(--ease) 0.85s both; }
.btn--lg { padding: 1.05em 2em; font-size: 1.04rem; }

.hero__trust { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 1.9rem); margin-top: 2.5rem; opacity: 0; animation: heroFade 0.8s var(--ease) 1s both; }
.hero__trust-item { display: flex; align-items: center; gap: 0.65rem; }
.hero__stars { color: var(--coral); font-size: 1.05rem; letter-spacing: 1px; }
.hero__trust-num { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--teal); line-height: 1; }
.hero__trust-meta strong { display: block; font-family: var(--font-display); color: var(--teal-deep); font-size: 1.02rem; line-height: 1; }
.hero__trust-meta span { font-size: 0.78rem; color: var(--muted); line-height: 1.18; }
.hero__divider { width: 1px; height: 36px; background: var(--line); }

/* visual side */
.hero__visual { position: relative; opacity: 0; animation: heroFade 1s var(--ease) 0.5s both; }
.hero__blob {
  position: absolute; inset: -7% 2% -7% 6%; z-index: 0;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  border-radius: 58% 42% 46% 54% / 60% 56% 44% 40%;
  opacity: 0.16; filter: blur(6px);
  animation: heroFloat2 10s ease-in-out infinite;
}
.hero__frame {
  position: relative; z-index: 1;
  border-radius: 300px 300px 34px 34px; overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4.8;
  animation: heroFloat 7.5s ease-in-out infinite;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
/* crossfade clinic carousel inside the hero frame */
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero__slide.is-active { opacity: 1; }

.hero__card {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 16px; box-shadow: var(--shadow);
  padding: 0.85rem 1.05rem; display: flex; align-items: center; gap: 0.7rem;
  opacity: 0;
}
.hero__card strong { display: block; font-family: var(--font-display); color: var(--teal-deep); font-size: 0.96rem; line-height: 1.1; }
.hero__card span { font-size: 0.76rem; color: var(--muted); }
.hero__card--rating { top: 7%; left: -8%; animation: heroPop 0.7s var(--ease) 1.2s both; }
.hero__card--laser { bottom: -9%; right: 2%; max-width: 265px; animation: heroPop 0.7s var(--ease) 1.4s both; }
.hero__card--years { flex-direction: column; gap: 0; bottom: -3%; left: 6%; background: var(--coral); border: 0; padding: 0.95rem 1.25rem; text-align: center; animation: heroPop 0.7s var(--ease) 1.55s both; }
.hero__card--years strong { color: #fff; font-size: 1.7rem; }
.hero__card--years span { color: rgba(255,255,255,0.92); font-size: 0.74rem; letter-spacing: 0.04em; }
.hero__card-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--coral-soft); color: var(--coral); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.hero__card-dot { width: 11px; height: 11px; border-radius: 50%; background: #1ebe57; box-shadow: 0 0 0 4px rgba(30,190,87,0.2); flex-shrink: 0; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0; animation: heroFade 0.8s var(--ease) 1.7s both;
}
.hero__scroll-line { width: 1.5px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--teal); animation: heroScroll 1.9s ease-in-out infinite; }

@keyframes heroFade { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes heroLine { from { transform: translateY(116%); } to { transform: translateY(0); } }
@keyframes heroPop { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes heroDraw { to { stroke-dashoffset: 0; } }
@keyframes heroPulse { 0% { box-shadow: 0 0 0 0 rgba(237,127,34,0.5); } 100% { box-shadow: 0 0 0 11px rgba(237,127,34,0); } }
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes heroFloat2 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(10px) rotate(2deg); } }
@keyframes heroScroll { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 920px) {
  .hero { overflow-x: clip; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 2.5rem; padding-block: clamp(28px,6vw,48px) clamp(40px,7vw,64px); }
  .hero__visual { max-width: 440px; margin-inline: auto; width: 100%; }
  .hero__watermark, .hero__scroll { display: none; }
}
@media (max-width: 560px) {
  /* hero title: scale with the viewport so it sits properly on phones
     instead of being locked at a too-large fixed minimum */
  .hero__title { font-size: clamp(2.5rem, 12.5vw, 3.6rem); line-height: 1; }
  /* extra room below the last line so the smile arc isn't clipped by .ln overflow:hidden */
  .hero__title .ln:last-child { padding-bottom: 0.62em; }
  /* center the whole hero block on phones */
  .hero__copy { text-align: center; }
  /* eyebrow: switch from inline-flex to centered block so the long clinic name
     wraps evenly (the pulse dot flows inline at the start instead of splitting the line) */
  .hero__eyebrow { display: block; text-align: center; line-height: 1.6; letter-spacing: 0.1em; }
  .hero__eyebrow .hero__pulse { display: inline-block; vertical-align: middle; margin-right: 0.45em; }
  .hero__sub { margin-top: 1.1rem; margin-inline: auto; }
  .hero__trust { justify-content: center; }
  /* stack the hero buttons full-width so they line up edge-to-edge */
  .hero__actions { margin-top: 1.6rem; flex-direction: column; align-items: stretch; gap: 0.85rem; }
  .hero__actions .btn { width: 100%; }
}
@media (max-width: 520px) {
  .hero__card--rating { top: 5%; left: 2px; padding: 0.65rem 0.8rem; }
  .hero__card--laser { bottom: -6%; left: auto; right: 2px; margin: 0; max-width: 230px; padding: 0.55rem 0.8rem; }
  .hero__card--years { left: 2%; bottom: -2%; padding: 0.8rem 1rem; }
  .hero__trust { flex-wrap: wrap; gap: 0.8rem 1.4rem; }
  .hero__divider { display: none; }
}

/* ==========================================================================
   Marquee strip
   ========================================================================== */
.strip {
  background: var(--teal);
  color: #fff;
  padding-block: 0.9rem;
  overflow: hidden;
}
.strip__track {
  display: flex;
  gap: 0;                /* spacing lives inside each span so the -50% loop is seamless (no end gap) */
  width: max-content;
  animation: marquee 80s linear infinite;  /* 6 groups; -50% spans 3 groups, so longer duration keeps the same speed */
}
.strip__track span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 3rem;
  padding-right: 3rem;   /* equal trailing space on every item, including the last */
}
.strip__track span::after { content: "✦"; color: var(--coral); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Why choose — feature cards
   ========================================================================== */
.features { background: var(--white); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.feature-grid { counter-reset: feat; }
.feature {
  counter-increment: feat;
  /* per-card theme (overridden below); defaults to teal */
  --accent: #0892a8; --accent-d: #045f76; --accent-rgb: 8,146,168;
  position: relative; overflow: hidden;
  /* persistent themed accent bar across the top + soft card gradient */
  background:
    linear-gradient(90deg, var(--accent), var(--accent-d)) top left / 100% 4px no-repeat,
    linear-gradient(180deg, #ffffff, #f6fafb);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.4rem 1.7rem 2.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.35s;
}
/* top row — all brand coral/orange */
.feature:nth-child(odd), .feature:nth-child(even) { --accent: #ED7F22; --accent-d: #cf6a12; --accent-rgb: 237,127,34; }
/* big ghosted index number — gives the resting card real depth */
.feature::before {
  content: counter(feat, decimal-leading-zero);
  position: absolute; top: 1rem; right: 1.4rem;
  font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: rgba(var(--accent-rgb), 0.10); transition: color 0.45s var(--ease); pointer-events: none;
}
.feature:hover::before { color: rgba(var(--accent-rgb), 0.24); }
/* soft themed radial glow in the corner on hover */
.feature::after {
  content: ""; position: absolute; right: -30%; top: -45%;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 70%);
  opacity: 0; transition: opacity 0.55s var(--ease); pointer-events: none;
}
.feature:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: rgba(var(--accent-rgb), 0.35); }
.feature:hover::after { opacity: 1; }
.feature__ico {
  position: relative; z-index: 1;
  width: 62px; height: 62px; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  color: #fff; display: grid; place-items: center; margin-bottom: 1.4rem;
  box-shadow: 0 12px 24px -10px rgba(var(--accent-rgb), 0.6);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.feature:hover .feature__ico { transform: translateY(-3px) rotate(-5deg) scale(1.04); }
.feature__ico svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: 0.55rem; font-size: 1.25rem; color: var(--teal-deep); position: relative; z-index: 1; }
.feature p { color: var(--muted); font-size: 0.96rem; position: relative; z-index: 1; }

/* trust row (safety items) */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 1.4rem;
}
.trust {
  /* per-card theme (overridden below) */
  --accent: #0892a8; --accent-d: #045f76; --accent-rgb: 8,146,168;
  position: relative; overflow: hidden;
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.6rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fafdfd);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}
/* bottom row — all brand teal/blue */
.trust:nth-child(odd), .trust:nth-child(even) { --accent: #007490; --accent-d: #013e49; --accent-rgb: 0,116,144; }
/* themed accent bar down the left edge */
.trust::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--accent), var(--accent-d));
  transform: scaleY(1); transform-origin: top;
  transition: transform 0.45s var(--ease);
}
.trust:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(var(--accent-rgb), 0.3); }
/* icon sits in a themed-tinted rounded badge with a soft glow */
.trust img {
  width: 30px; height: 30px; padding: 12px; box-sizing: content-box;
  flex-shrink: 0; object-fit: contain;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), #ffffff);
  border: 1px solid rgba(var(--accent-rgb), 0.25); border-radius: 14px;
  box-shadow: 0 6px 14px -8px rgba(var(--accent-rgb), 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.trust:hover img { transform: scale(1.07) rotate(-3deg); box-shadow: 0 10px 18px -8px rgba(var(--accent-rgb), 0.6); }
.trust h4 { font-size: 1.05rem; color: var(--teal-deep); margin-bottom: 0.25rem; }
.trust p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 920px) {
  .feature-grid, .trust-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .feature-grid, .trust-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Services grid
   ========================================================================== */
.services { background: var(--porcelain); }
.services__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(36px, 4vw, 56px); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.svc-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.svc-card__img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.svc-card:hover .svc-card__img img { transform: scale(1.07); }
.svc-card__num {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--teal); font-weight: 700;
  font-family: var(--font-display);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.95rem;
}
.svc-card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.svc-card__body h3 { margin-bottom: 0.55rem; }
.svc-card__body p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.svc-link {
  margin-top: 1.1rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; color: var(--teal); font-size: 0.92rem;
}
.svc-link svg { width: 16px; height: 16px; transition: transform 0.3s; }
.svc-card:hover .svc-link svg { transform: translateX(5px); }
.svc-card:hover .svc-link { color: var(--coral); }

@media (max-width: 920px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   About preview
   ========================================================================== */
.about-prev .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-prev__media { position: relative; }
.about-prev__photo {
  border-radius: 26px 26px 220px 220px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
}
.about-prev__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-prev__exp {
  position: absolute;
  right: -14px; bottom: 30px;
  background: var(--coral);
  color: #fff;
  border-radius: 20px;
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.about-prev__exp .n { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.about-prev__exp .l { font-size: 0.78rem; opacity: 0.92; margin-top: 0.2rem; }
.about-prev__copy p { color: var(--muted); margin-top: 1.1rem; }
.about-prev__sign { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.8rem; }
.about-prev__sign img { height: 72px; width: auto; }
.about-prev__sign strong { display: block; color: var(--teal-deep); font-family: var(--font-display); font-size: 1.1rem; }
.about-prev__sign span { font-size: 0.85rem; color: var(--muted); }
.about-prev .btn { margin-top: 2rem; }
@media (max-width: 920px) {
  .about-prev .container { grid-template-columns: 1fr; }
  .about-prev__media { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats {
  background: var(--teal-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::after {
  content: "";
  position: absolute;
  bottom: -40%; right: -10%;
  width: 50vw; height: 50vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(0,116,144,0.4), transparent 60%);
}
.stats .container { position: relative; z-index: 1; }
.stats h2 { color: #fff; }
.stats .section-head p { color: rgba(255,255,255,0.7); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat .n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat .n .plus { color: var(--coral); }
.stat .l { font-size: 0.86rem; color: rgba(255,255,255,0.72); margin-top: 0.5rem; }
.stat { padding: 1rem 0.3rem; border-radius: 14px; min-width: 0; }
@media (max-width: 920px) { .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; } }
@media (max-width: 460px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .stat .n { font-size: 1.9rem; } }

/* ==========================================================================
   Video
   ========================================================================== */
.video { background: var(--white); }
.video__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 8.2;
  background: var(--teal-deep);
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* click-to-play YouTube facade */
.yt-facade { position: absolute; inset: 0; display: block; cursor: pointer; overflow: hidden; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.yt-facade::after { content: ""; position: absolute; inset: 0; background: rgba(2,51,63,0); transition: background 0.3s; }
.yt-facade:hover img { transform: scale(1.04); }
.yt-facade:hover::after { background: rgba(2,51,63,0.12); }
.yt-facade__btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 88px; height: 62px; border-radius: 16px;
  background: #ff0000; display: grid; place-items: center; z-index: 1;
  transition: transform 0.3s var(--ease), background 0.3s;
  box-shadow: 0 12px 34px rgba(0,0,0,0.35);
}
.yt-facade:hover .yt-facade__btn { transform: translate(-50%,-50%) scale(1.08); background: #f12b2b; }
.yt-facade__btn svg { width: 34px; height: 34px; color: #fff; }

/* ==========================================================================
   Awards marquee
   ========================================================================== */
.awards { background: var(--porcelain); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; align-items: center; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 120px; width: auto;
  background: #fff; border-radius: 14px; padding: 14px;
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}
/* clickable certificates open in the lightbox */
.marquee__track .cert-item {
  border: 0; background: transparent; padding: 0; cursor: pointer;
  display: inline-flex; border-radius: 14px;
  transition: transform 0.3s var(--ease);
}
.marquee__track .cert-item:hover { transform: translateY(-5px) scale(1.03); }
.marquee__track .cert-item:hover img { box-shadow: var(--shadow); }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews { background: var(--white); overflow-x: clip; }
/* keep third-party widgets (Elfsight reviews) from forcing horizontal scroll */
.reviews .container { overflow-x: clip; }
[class*="elfsight-app"] { max-width: 100%; overflow-x: clip; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  position: relative;
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  overflow: hidden;
}
.cta .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; max-width: 16ch; }
.cta p { color: rgba(255,255,255,0.82); margin-top: 0.8rem; }
.cta__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--teal-deep); color: rgba(255,255,255,0.74); padding-top: clamp(60px, 7vw, 90px); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
.footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: 1.3rem; position: relative; }
.footer__brand img {
  /* size by width + height:auto so it never stretches when max-width clamps it on mobile */
  width: 460px; max-width: 100%; height: auto; margin: -1.4rem 0 0.6rem -0.5rem;
  /* logo now has a transparent background, so it sits directly on the footer */
}
.footer__brand p { color: rgba(255,255,255,0.62); font-size: 0.94rem; }
.footer__links { display: grid; gap: 0.7rem; }
.footer__links a { color: rgba(255,255,255,0.74); transition: color 0.2s, padding-left 0.2s; width: fit-content; }
.footer__links a:hover { color: var(--coral); padding-left: 6px; }
.footer__contact li { display: flex; gap: 0.8rem; margin-bottom: 1rem; align-items: flex-start; font-size: 0.92rem; }
.footer__contact svg { width: 19px; height: 19px; color: var(--coral); flex-shrink: 0; margin-top: 3px; }
.footer__contact a { color: rgba(255,255,255,0.74); }
.footer__contact a:hover { color: #fff; }
.footer__map { margin-top: 1.4rem; border-radius: 16px; overflow: hidden; height: 180px; border: 1px solid rgba(255,255,255,0.12); }
.footer__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.88rem; font-weight: 500;
}
/* the global `p { color: var(--ink) }` rule overrides inheritance here, so set it directly */
.footer__bottom p { color: rgba(255,255,255,0.85); margin: 0; }
.footer__bottom a:hover { color: var(--coral); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ==========================================================================
   Floating buttons
   ========================================================================== */
.float-wa, .to-top {
  position: fixed;
  z-index: 95;
  border: 0; /* no native button border ring — keep it whole-colour */
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), opacity 0.3s;
  -webkit-tap-highlight-color: transparent; /* no square flash on mobile tap */
  -webkit-touch-callout: none;
  outline: none;
}
.float-wa { left: 22px; bottom: 22px; width: 56px; height: 56px; background: #25d366; }
.float-wa:hover { transform: scale(1.1); }
.float-wa img, .float-wa svg { width: 32px; height: 32px; }
.to-top {
  right: 22px; bottom: 72px; width: 50px; height: 50px;
  background: var(--coral); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(14px);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: #d16f18; }
.to-top svg { width: 22px; height: 22px; }

/* ==========================================================================
   Sticky mobile action bar
   ========================================================================== */
.mobile-bar { display: none; }
@media (max-width: 920px) {
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 97;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 26px rgba(2, 51, 63, 0.12);
    padding: 8px 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 8px 4px; border-radius: 12px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em;
    color: var(--teal-deep); line-height: 1;
    -webkit-tap-highlight-color: transparent; /* no square flash on mobile tap */
  }
  .mobile-bar a svg { width: 21px; height: 21px; }
  .mobile-bar .call { background: var(--teal); color: #fff; box-shadow: 0 8px 18px -8px rgba(0,116,144,0.85); }
  .mobile-bar .wa { background: #25d366; color: #fff; box-shadow: 0 8px 18px -8px rgba(37,211,102,0.85); }
  .mobile-bar .book { background: var(--coral); color: #fff; box-shadow: 0 8px 18px -8px rgba(237,127,34,0.8); }
  body { padding-bottom: 76px; }
  .float-wa { display: none; }
  /* keep back-to-top on the LEFT so it never collides with the Dentee widget */
  .to-top { bottom: 90px; left: 16px; right: auto; }
  /* lift the Dentee "Request Appointment" widget above the action bar */
  dentee\:app_widget,
  [class*="cwidget"], [id*="cwidget"],
  [class*="dentee"], [id*="dentee"],
  iframe[src*="dentee"] { bottom: 86px !important; }
}

/* ==========================================================================
   Page banner (inner pages)
   ========================================================================== */
.page-banner {
  background: var(--teal-deep);
  color: #fff;
  text-align: center;
  padding-block: clamp(60px, 8vw, 120px) clamp(50px, 6vw, 90px);
  position: relative;
  overflow: hidden;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; }
.breadcrumb { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: var(--coral); }
.breadcrumb span { opacity: 0.5; }

/* ==========================================================================
   Article / service detail blocks
   ========================================================================== */
.prose p { color: var(--ink); margin-bottom: 1.1rem; line-height: 1.8; }
.prose p:first-of-type { font-size: 1.12rem; color: var(--teal-deep); }
.check-list { display: grid; gap: 0.7rem; margin: 1.2rem 0; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-list li::before {
  content: "";
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: var(--teal-tint) no-repeat center/12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007490' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* service detail alternating rows */
.svc-detail { scroll-margin-top: 110px; }
.svc-detail__row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.svc-detail:nth-child(even) .svc-detail__row { direction: rtl; }
.svc-detail:nth-child(even) .svc-detail__row > * { direction: ltr; }
.svc-detail__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/12; }
.svc-detail__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail__copy .eyebrow { margin-bottom: 0.6rem; }
.svc-detail + .svc-detail { margin-top: clamp(48px, 6vw, 90px); }
@media (max-width: 820px) {
  .svc-detail__row, .svc-detail:nth-child(even) .svc-detail__row { grid-template-columns: 1fr; direction: ltr; }
}

/* quick nav chips on services page */
.svc-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.svc-nav a {
  padding: 0.5rem 1rem; border-radius: 100px;
  background: #fff; border: 1px solid var(--line);
  font-size: 0.88rem; font-weight: 600; color: var(--teal-deep);
  transition: all 0.25s;
}
.svc-nav a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; gap: 1.1rem; align-items: flex-start;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.info-card + .info-card { margin-top: 1.1rem; }
.info-card > div { min-width: 0; }
.info-card p, .info-card a { overflow-wrap: anywhere; }
.info-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.info-card .ico svg { width: 24px; height: 24px; }
.info-card h4 { font-size: 1.1rem; color: var(--teal-deep); margin-bottom: 0.25rem; }
.info-card p, .info-card a { color: var(--muted); font-size: 0.96rem; }
.info-card a:hover { color: var(--teal); }
.map-large { border-radius: var(--radius-lg); overflow: hidden; height: 100%; min-height: 420px; box-shadow: var(--shadow); }
.map-large iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } .map-large { min-height: 320px; } }

/* mission / vision cards (about) */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.mv-card { background: #fff; border-radius: var(--radius-lg); padding: 2.2rem; border: 1px solid var(--line); position: relative; overflow: hidden; }
.mv-card .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.2rem; color: #fff; }
.mv-card.mission .ico { background: var(--teal); }
.mv-card.vision .ico { background: var(--coral); }
.mv-card .ico svg { width: 28px; height: 28px; }
.mv-card p { color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 700px) { .mv-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Media play button (service explainer videos)
   ========================================================================== */
.media-play {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: inherit;
  overflow: hidden;
}
.media-play img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.media-play::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,51,63,0) 40%, rgba(2,51,63,0.55));
  opacity: 0.85;
  transition: opacity 0.3s;
}
.media-play:hover img { transform: scale(1.05); }
.media-play__btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--coral);
  display: grid; place-items: center;
  z-index: 1;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
  box-shadow: 0 10px 30px rgba(2,51,63,0.3);
}
.media-play__btn::before {
  content: ""; position: absolute; inset: -10px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.85); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }
.media-play__btn svg { width: 28px; height: 28px; margin-left: 4px; }
.media-play:hover .media-play__btn { transform: translate(-50%, -50%) scale(1.08); background: var(--coral); color: #fff; }
.media-play__label {
  position: absolute; left: 18px; bottom: 16px; z-index: 1;
  color: #fff; font-weight: 700; font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  text-shadow: 0 1px 8px rgba(2,51,63,0.5);
}
.media-play__label svg { width: 15px; height: 15px; }

/* ==========================================================================
   Lightbox (videos + gallery)
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2, 20, 25, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__stage {
  max-width: min(1100px, 100%); max-height: 100%;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.96); transition: transform 0.35s var(--ease);
}
.lightbox.open .lightbox__stage { transform: scale(1); }
.lightbox video, .lightbox img {
  max-width: 100%; max-height: 86vh;
  border-radius: 14px; box-shadow: var(--shadow-lg);
  background: #000;
}
.lightbox__close {
  position: absolute; top: 18px; right: 18px;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.14); color: #fff; border: 0;
  display: grid; place-items: center;
  transition: background 0.25s, transform 0.25s;
}
.lightbox__close:hover { background: var(--coral); transform: rotate(90deg); }
.lightbox__close svg { width: 24px; height: 24px; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.14); color: #fff; border: 0;
  display: grid; place-items: center;
  transition: background 0.25s;
}
.lightbox__nav:hover { background: var(--coral); }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__nav.prev { left: 18px; }
.lightbox__nav.next { right: 18px; }
@media (max-width: 600px) { .lightbox__nav { width: 42px; height: 42px; } }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1.2rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 0; padding: 0; background: none;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,116,144,0) 50%, rgba(0,116,144,0.5));
  opacity: 0; transition: opacity 0.35s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item__zoom {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.7);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--teal);
  display: grid; place-items: center;
  opacity: 0; transition: opacity 0.35s, transform 0.35s var(--ease);
  z-index: 1;
}
.gallery-item:hover .gallery-item__zoom { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.gallery-item__zoom svg { width: 22px; height: 22px; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item.wide { grid-column: span 1; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.tall { grid-row: span 1; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Premium finishing touches
   ========================================================================== */
/* branded scrollbar */
html { scrollbar-color: var(--teal) var(--porcelain); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--porcelain); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--teal), var(--teal-700)); border-radius: 10px; border: 3px solid var(--porcelain); }
::-webkit-scrollbar-thumb:hover { background: var(--coral); }

/* sweeping sheen on the primary CTA */
.btn { position: relative; overflow: hidden; }
.btn--primary::after, .btn--light::after {
  content: ""; position: absolute; top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); transition: left 0.65s var(--ease);
}
.btn--primary:hover::after, .btn--light:hover::after { left: 150%; }

/* lift + accent ring on service cards */
.svc-card { border: 1px solid transparent; }
.svc-card:hover { border-color: rgba(0,116,144,0.14); }

/* feature card top accent line on hover */
.feature { position: relative; overflow: hidden; }
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.feature:hover::before { transform: scaleX(1); }

/* richer entrance for reveals */
[data-reveal] { transform: translateY(28px) scale(0.985); }
[data-reveal].in { transform: none; }

/* animated aurora in the dark stats band */
.stats::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background:
    radial-gradient(40% 60% at 15% 20%, rgba(0,116,144,0.5), transparent 60%),
    radial-gradient(35% 50% at 85% 80%, rgba(237,127,34,0.18), transparent 60%);
  animation: auroraShift 14s ease-in-out infinite alternate;
}
@keyframes auroraShift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .stats::before { animation: none; } }

/* ==========================================================================
   Responsive overflow safeguards (prevent grid/flex text clipping on mobile)
   ========================================================================== */
.hero__copy, .hero__visual,
.about-prev .container > *,
.svc-detail__row > *,
.contact-grid > *,
.services__head > *,
.cta .container > *,
.footer__grid > * { min-width: 0; }

/* long eyebrows (page banners) wrap instead of overflowing */
.eyebrow { max-width: 100%; flex-wrap: wrap; }

@media (max-width: 920px) {
  /* keep overhanging badges/cards inside the screen on phones */
  .about-prev__exp { right: 6px; bottom: 14px; }
  .hero__card--rating { left: 0; }
  .hero__card--laser { right: 0; }
  /* a touch more breathing room under the fixed bottom bar */
  .footer__bottom { gap: 0.4rem; }
}

/* ==========================================================================
   Small-phone banner sizing (prevent heading/eyebrow clipping)
   ========================================================================== */
@media (max-width: 560px) {
  .page-banner h1 { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
  .page-banner .eyebrow { font-size: 0.72rem; letter-spacing: 0.1em; }
  .page-banner { padding-block: clamp(48px,12vw,70px) clamp(40px,10vw,60px); }
}

/* ==========================================================================
   Dentee appointment widget — recolour from its default blue to brand coral
   (the booking form itself is a cross-origin Dentee iframe and can't be themed)
   ========================================================================== */
/* sticky "Request Appointment" button is a blue PNG — shift its hue to orange */
dentee\:app_widget img,
.buttonContainer img,
.bottomRight img {
  /* computed to map Dentee blue #007bc1 -> brand coral #ED7F22 */
  filter: hue-rotate(188deg) saturate(0.74) brightness(1.42);
}
/* popup FRAME (built on our page; the booking grid inside is a Dentee iframe we can't restyle) */
#myModal {
  background: rgba(2,51,63,0.55) !important;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
#myModal .modal-content {
  width: 94vw !important; max-width: 1000px !important;
  margin: 4vh auto !important; max-height: 90vh !important;
  /* force normal-flow centering, overriding any inline top/left/transform Dentee sets */
  position: relative !important;
  top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
  transform: none !important; float: none !important;
  border: 0 !important; border-radius: 16px !important; overflow: hidden !important;
  box-shadow: 0 40px 90px -24px rgba(2,51,63,0.6) !important;
}
#myModal .modal-header {
  position: relative !important;
  background-color: var(--coral) !important;
  padding: 16px 64px 16px 22px !important;  /* extra right padding leaves room for the close button */
}
#myModal .modal-header,
#myModal .modal-header h1, #myModal .modal-header h2, #myModal .modal-header h3,
#myModal .modal-header span:not(.close) {
  font-family: var(--font-display) !important;
  font-size: 1.5rem !important; line-height: 1.2 !important; color: #02333f !important;
}
/* circular close button pinned to the top-right */
#myModal .close {
  position: absolute !important; top: 50% !important; right: 16px !important; transform: translateY(-50%) !important;
  margin: 0 !important; float: none !important; text-shadow: none !important;
  color: #fff !important; opacity: 0.95 !important;
  width: 36px !important; height: 36px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  border-radius: 50% !important; background: rgba(255,255,255,0.22) !important;
  font-size: 1.3rem !important; line-height: 1 !important; transition: background 0.2s !important;
}
#myModal .close:hover { background: rgba(255,255,255,0.4) !important; opacity: 1 !important; }
/* give the booking area more room */
#myModal .iframeCls, #myModal iframe { width: 100% !important; height: 75vh !important; border: 0 !important; display: block !important; }
