/* =============================================================
   BrightSmile Dental — Premium Static Template
   Design system with CSS variables + light/dark mode.
   Rebrand quickly by editing the :root variables below.
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --primary: #0d9488;          /* teal */
  --primary-dark: #0f766e;
  --primary-light: #99f6e4;
  --accent: #0891b2;           /* cyan */
  --accent-soft: #e0f7fa;

  --bg: #ffffff;
  --bg-alt: #f1f7f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #94a3b8;
  --border: #e2e8f0;

  --star: #f59e0b;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(13, 148, 136, .18);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1180px;
  --space: clamp(3.5rem, 8vw, 6.5rem);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Dark mode ---------- */
[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #101a2c;
  --surface: #14203a;
  --text: #e8eef7;
  --text-soft: #a9b6cc;
  --muted: #6b7a94;
  --border: #22304d;
  --accent-soft: #123040;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* Ensure the [hidden] attribute always wins over author display rules
   (needed for the lightbox/overlay which use display:grid when shown). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
section { scroll-margin-top: 90px; }

.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--space); }
.section--alt { background: var(--bg-alt); }
.grad { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn--primary { background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 8px 20px rgba(13,148,136,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,148,136,.45); }
.btn--ghost { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
  background: var(--accent-soft); padding: .35rem .9rem; border-radius: var(--radius-pill); margin-bottom: 1rem;
}

.section__head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__head p { color: var(--text-soft); margin-top: .8rem; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* ---------- Topbar ---------- */
.topbar { background: var(--primary-dark); color: #d7fbf5; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .ico { width: 15px; height: 15px; fill: #99f6e4; }
.topbar .pill { background: rgba(255,255,255,.15); padding: .1rem .55rem; border-radius: var(--radius-pill); }
.topbar__emg { gap: .5rem; }
@media (max-width: 720px) { .topbar__hours { display: none; } }

/* ---------- Navbar ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: box-shadow var(--transition), border-color var(--transition); }
.nav.scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-block: .9rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.brand__mark { font-size: 1.5rem; }
.brand__text span { color: var(--primary); }
.brand--light { color: #fff; }
.brand--light .brand__text span { color: var(--primary-light); }

.nav__menu { display: flex; gap: .3rem; }
.nav__link { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--text-soft); padding: .5rem .85rem; border-radius: var(--radius-pill); transition: color var(--transition), background var(--transition); }
.nav__link:hover, .nav__link.active { color: var(--primary); background: var(--accent-soft); }

.nav__actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text); transition: background var(--transition), transform var(--transition); }
.theme-toggle:hover { transform: rotate(15deg); }
.theme-toggle .ico { width: 20px; height: 20px; fill: currentColor; }
.ico--moon { display: none; }
[data-theme="dark"] .ico--sun { display: none; }
[data-theme="dark"] .ico--moon { display: block; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; }

@media (max-width: 980px) {
  .nav__cta { display: none; }
  .hamburger { display: flex; }
  .nav__menu {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(80vw, 320px);
    background: var(--surface); flex-direction: column; gap: .3rem; padding: 5rem 1.4rem 2rem;
    transform: translateX(100%); transition: transform var(--transition); z-index: 95; box-shadow: var(--shadow-lg);
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__link { font-size: 1.05rem; padding: .8rem 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem); background:
    radial-gradient(circle at 80% 10%, var(--accent-soft), transparent 55%),
    radial-gradient(circle at 0% 90%, rgba(13,148,136,.10), transparent 45%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero__lead { color: var(--text-soft); font-size: 1.12rem; margin: 1.2rem 0 2rem; max-width: 40ch; }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__badges { display: flex; gap: 1.8rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero__badges li { display: flex; flex-direction: column; }
.hero__badges strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--primary); }
.hero__badges span { font-size: .85rem; color: var(--text-soft); }

.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 9/10; width: 100%; }
.hero__float { position: absolute; display: flex; align-items: center; gap: .7rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem 1rem; box-shadow: var(--shadow-md); animation: float 4s ease-in-out infinite; }
.hero__float strong { display: block; font-size: .9rem; }
.hero__float small { color: var(--text-soft); font-size: .78rem; }
.hero__float--1 { top: 12%; left: -18px; }
.hero__float--2 { bottom: 12%; right: -18px; animation-delay: 1.5s; }
.ico-circle { display: grid; place-items: center; width: 38px; height: 38px; background: var(--accent-soft); border-radius: 50%; font-size: 1.1rem; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead, .hero__badges { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__media { max-width: 460px; margin-inline: auto; }
  .hero__float--1 { left: 0; } .hero__float--2 { right: 0; }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--border); background: var(--surface); }
.trust__inner { display: flex; align-items: center; gap: 2rem; padding-block: 1.3rem; flex-wrap: wrap; justify-content: center; }
.trust__label { font-weight: 600; color: var(--text-soft); font-size: .9rem; }
.trust__logos { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.trust__logos li { font-family: var(--font-head); font-weight: 700; color: var(--muted); letter-spacing: .02em; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--steps { grid-template-columns: repeat(4, 1fr); }
.grid--team { grid-template-columns: repeat(4, 1fr); }
.grid--pricing { grid-template-columns: repeat(3, 1fr); align-items: start; }
.grid--gallery { grid-template-columns: repeat(3, 1fr); }
.grid--stats { grid-template-columns: repeat(4, 1fr); }

/* ---------- Services ---------- */
.service { padding: 2rem 1.6rem; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.service__ico { width: 60px; height: 60px; display: grid; place-items: center; font-size: 1.8rem; background: var(--accent-soft); border-radius: 16px; margin-bottom: 1.1rem; }
.service p { color: var(--text-soft); margin-top: .5rem; font-size: .95rem; }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
.about__badge { position: absolute; bottom: -22px; right: -14px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; padding: 1rem 1.3rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center; }
.about__badge strong { display: block; font-family: var(--font-head); font-size: 1.8rem; }
.about__badge span { font-size: .8rem; opacity: .9; }
.about__content p { color: var(--text-soft); margin: 1rem 0 1.5rem; }
.checklist { display: grid; gap: .7rem; margin-bottom: 1.8rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--text-soft); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--primary); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
@media (max-width: 860px) { .about__inner { grid-template-columns: 1fr; } .about__badge { right: 14px; } }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(120deg, var(--primary), var(--accent)); color: #fff; padding-block: 3.5rem; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); display: block; }
.stat__label { opacity: .9; font-size: .95rem; }

/* ---------- Steps ---------- */
.step { text-align: center; padding: 1.5rem 1rem; position: relative; }
.step__num { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 1rem; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50%; box-shadow: var(--shadow-md); }
.step p { color: var(--text-soft); font-size: .93rem; margin-top: .4rem; }

/* ---------- Team ---------- */
.team { overflow: hidden; }
.team:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team img { aspect-ratio: 1/1; object-fit: cover; }
.team__body { padding: 1.2rem; text-align: center; }
.team__role { color: var(--primary); font-size: .9rem; font-weight: 600; margin-bottom: .8rem; }
.team__social { display: flex; justify-content: center; gap: .5rem; }
.team__social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--primary); font-weight: 700; font-size: .85rem; transition: var(--transition); }
.team__social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.team__profile { display: inline-block; margin-bottom: .9rem; color: var(--primary); font-weight: 600; font-size: .88rem; }
.team__profile:hover { text-decoration: underline; }

/* ---------- Pricing ---------- */
.price { padding: 2.2rem 1.8rem; text-align: center; position: relative; }
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price--featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price--featured:hover { transform: scale(1.03) translateY(-6px); }
.price__flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; font-size: .75rem; font-weight: 600; padding: .3rem 1rem; border-radius: var(--radius-pill); font-family: var(--font-head); }
.price__tag { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--text); margin: 1rem 0; }
.price__tag span { font-size: 1.3rem; vertical-align: super; }
.price__tag small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price ul { margin-bottom: 1.8rem; display: grid; gap: .7rem; }
.price li { color: var(--text-soft); padding-block: .4rem; border-bottom: 1px dashed var(--border); }
.price li.muted { text-decoration: line-through; opacity: .6; }

/* ---------- Gallery ---------- */
.gallery__item { border: none; padding: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; background: none; box-shadow: var(--shadow-sm); }
.gallery__item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.08); }

/* ---------- Carousel ---------- */
.carousel { display: flex; align-items: center; gap: 1rem; max-width: 780px; margin: 0 auto; }
.carousel__viewport { overflow: hidden; flex: 1; }
.carousel__track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.testimonial { min-width: 100%; text-align: center; padding: 2.2rem 1.5rem; }
.stars { color: var(--star); font-size: 1.25rem; letter-spacing: 2px; }
.testimonial blockquote { font-size: 1.18rem; color: var(--text); margin: 1.2rem 0; line-height: 1.6; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: .8rem; }
.testimonial figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption span { text-align: left; }
.testimonial figcaption small { color: var(--text-soft); display: block; }
.carousel__arrow { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--primary); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: var(--transition); }
.carousel__arrow:hover { background: var(--primary); color: #fff; }
.carousel__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.carousel__dots button { width: 11px; height: 11px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; transition: var(--transition); }
.carousel__dots button.active { background: var(--primary); width: 28px; border-radius: var(--radius-pill); }
@media (max-width: 560px) { .carousel__arrow { display: none; } }

/* ---------- Booking ---------- */
.section--book { background: linear-gradient(160deg, var(--accent-soft), transparent 60%); }
.book__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.book__info p { color: var(--text-soft); margin: 1rem 0 1.5rem; }
.book__info a { color: var(--primary); font-weight: 600; }
.book__form { padding: 2rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: .95rem; transition: var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.field input.invalid, .field select.invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.error { color: #ef4444; font-size: .78rem; min-height: 1em; }
.form-note { text-align: center; font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) { .book__inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.accordion { display: grid; gap: .8rem; }
.acc { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.acc__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: 1.1rem 1.3rem; background: none; border: none; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--text); }
.acc__ico { flex-shrink: 0; font-size: 1.4rem; color: var(--primary); transition: transform var(--transition); }
.acc.open .acc__ico { transform: rotate(45deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.acc__a p { padding: 0 1.3rem 1.2rem; color: var(--text-soft); }
@media (max-width: 800px) { .faq__inner { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact__cards { display: grid; gap: 1rem; }
.contact__card { display: flex; gap: 1rem; padding: 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.contact__ico { font-size: 1.5rem; }
.contact__card strong { font-family: var(--font-head); }
.contact__card p, .contact__card a { color: var(--text-soft); font-size: .93rem; }
.contact__card a:hover { color: var(--primary); }
.hours { border-collapse: collapse; margin-top: .3rem; font-size: .9rem; }
.hours td { padding: .15rem .8rem .15rem 0; color: var(--text-soft); }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.contact__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
@media (max-width: 800px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: #0a1628; color: #cbd5e1; padding-top: 3.5rem; }
[data-theme="dark"] .footer { background: #060c17; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__col p { color: #94a3b8; font-size: .92rem; margin-top: .8rem; }
.footer__col h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.footer__col ul { display: grid; gap: .55rem; }
.footer__col a { color: #94a3b8; font-size: .92rem; transition: var(--transition); }
.footer__col a:hover { color: var(--primary-light); padding-left: 4px; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer__social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; transition: var(--transition); }
.footer__social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer__news { display: flex; gap: .5rem; margin-top: .8rem; }
.footer__news input { flex: 1; padding: .7rem .9rem; border-radius: 10px; border: 1px solid #22304d; background: #0f1c30; color: #fff; font-family: var(--font-body); }
.footer__news input:focus { outline: none; border-color: var(--primary); }
.footer__news-msg { display: block; margin-top: .5rem; color: var(--primary-light); font-size: .82rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.3rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #94a3b8; }
.footer__bottom a:hover { color: var(--primary-light); }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; bottom: 24px; right: 24px; width: 50px; height: 50px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 1.4rem; cursor: pointer; box-shadow: var(--shadow-lg); z-index: 80; opacity: 0; transform: translateY(20px); transition: var(--transition); }
.to-top.show { opacity: 1; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(2,6,20,.9); display: grid; place-items: center; padding: 1.5rem; }
.lightbox img { max-width: 92vw; max-height: 85vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 1.2rem; cursor: pointer; }
.lightbox__close:hover { background: rgba(255,255,255,.3); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--primary); color: #fff; padding: .9rem 1.5rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); z-index: 160; font-weight: 600; transition: transform .4s cubic-bezier(.4,0,.2,1); max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive grids ---------- */
@media (max-width: 980px) {
  .grid--services, .grid--gallery { grid-template-columns: repeat(2, 1fr); }
  .grid--team { grid-template-columns: repeat(2, 1fr); }
  .grid--steps { grid-template-columns: repeat(2, 1fr); }
  .grid--pricing { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .price--featured { transform: none; }
  .price--featured:hover { transform: translateY(-6px); }
}
@media (max-width: 620px) {
  .grid--services, .grid--gallery, .grid--team, .grid--steps, .grid--stats { grid-template-columns: 1fr; }
  .grid--stats { gap: 2rem; }
}

/* ---------- Page banner (inner pages) ---------- */
.page-hero {
  position: relative; padding-block: clamp(2.6rem, 6vw, 4.5rem); text-align: center;
  background:
    radial-gradient(circle at 80% 10%, var(--accent-soft), transparent 55%),
    radial-gradient(circle at 0% 90%, rgba(13,148,136,.10), transparent 45%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { color: var(--text-soft); max-width: 60ch; margin: 1rem auto 0; }
.breadcrumb { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .88rem; color: var(--muted); }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary), var(--accent)); color: #fff; text-align: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 55ch; margin: 1rem auto 1.8rem; opacity: .95; }
.cta-band .btn--primary { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.cta-band .btn--primary:hover { background: #f0fdfa; }
.cta-band .btn--ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--primary-dark); }
.cta-band__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Reviews grid (reviews page) ---------- */
.grid--reviews { grid-template-columns: repeat(3, 1fr); margin-top: 3rem; }
.review-card { padding: 1.8rem; }
.review-card .stars { font-size: 1.05rem; margin-bottom: .8rem; }
.review-card blockquote { color: var(--text-soft); font-size: .96rem; }
.review-card figcaption { display: flex; align-items: center; gap: .7rem; margin-top: 1.2rem; }
.review-card figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-card figcaption small { color: var(--muted); display: block; }
@media (max-width: 900px) { .grid--reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--reviews { grid-template-columns: 1fr; } }

/* ---------- Emergency button + mobile nav links ---------- */
.btn--emergency { background: linear-gradient(90deg, #ef4444, #f97316); color: #fff; box-shadow: 0 8px 20px rgba(239,68,68,.32); }
.btn--emergency:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(239,68,68,.45); }
.nav__emg span { display: inline; }
.nav__link--mobile { display: none; }
.nav__link--emergency { color: #ef4444; font-weight: 600; }
[data-theme="dark"] .nav__link--emergency { color: #fca5a5; }
@media (max-width: 1120px) { .nav__emg span { display: none; } .nav__emg { padding: .8rem 1rem; } }
@media (max-width: 980px) {
  .nav__emg { display: none; }
  .nav__link--mobile { display: block; }
  .nav__link--mobile.nav__link--emergency { background: rgba(239,68,68,.1); }
}

/* ---------- Treatment info (services detail) ---------- */
.treatment { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.treatment .card { padding: 1.8rem; }
.treatment h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.treatment h3 span { font-size: 1.4rem; }
.treatment h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin: 1rem 0 .3rem; }
.treatment p, .treatment li { color: var(--text-soft); font-size: .93rem; }
.treatment ul { display: grid; gap: .3rem; padding-left: 1.1rem; list-style: disc; }
@media (max-width: 760px) { .treatment { grid-template-columns: 1fr; } }

/* ---------- Before / After slider ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ba { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; user-select: none; touch-action: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__label { position: absolute; bottom: 10px; padding: .2rem .7rem; font-size: .72rem; font-weight: 600; border-radius: var(--radius-pill); background: rgba(15,23,42,.7); color: #fff; }
.ba__label--before { left: 10px; } .ba__label--after { right: 10px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--primary); font-weight: 700; box-shadow: var(--shadow-md); cursor: ew-resize; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
@media (max-width: 900px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ba-grid { grid-template-columns: 1fr; } }

/* ---------- Google Reviews widget ---------- */
.greviews { max-width: 1000px; margin: 0 auto; }
.greviews__head { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; text-align: center; margin-bottom: 2rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.greviews__g { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; }
.greviews__g b:nth-child(1){color:#4285F4}.greviews__g b:nth-child(2){color:#EA4335}.greviews__g b:nth-child(3){color:#FBBC05}.greviews__g b:nth-child(4){color:#4285F4}.greviews__g b:nth-child(5){color:#34A853}.greviews__g b:nth-child(6){color:#EA4335}
.greviews__score { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.greviews__score strong { font-size: 2.4rem; font-family: var(--font-head); }
.greviews__score .stars { font-size: 1.1rem; }
.greviews__score small { color: var(--text-soft); }
.gcard { padding: 1.5rem; }
.gcard__top { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.gcard__top img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.gcard__top strong { display: block; font-size: .95rem; }
.gcard__top small { color: var(--muted); }
.gcard .stars { color: var(--star); font-size: .95rem; }
.gcard p { color: var(--text-soft); font-size: .92rem; margin-top: .5rem; }
.gcard__g { float: right; font-weight: 700; font-family: var(--font-head); color: #4285F4; }
.embed-note { margin-top: 2rem; padding: 1rem 1.2rem; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--bg-alt); color: var(--text-soft); font-size: .85rem; }
.embed-note code { background: var(--surface); padding: .1rem .4rem; border-radius: 5px; font-size: .82rem; }

/* ---------- Insurance & Financing ---------- */
.ins-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin: 2rem 0; }
.ins-logo { display: grid; place-items: center; padding: 1.1rem .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; color: var(--text-soft); text-align: center; font-size: .9rem; transition: var(--transition); }
.ins-logo:hover { color: var(--primary); border-color: var(--primary-light); transform: translateY(-3px); }
.fin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .ins-grid { grid-template-columns: repeat(3, 1fr); } .fin-grid { grid-template-columns: 1fr; } }

/* ---------- Doctor profile ---------- */
.doctor { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.doctor__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.doctor__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.doctor__role { color: var(--primary); font-weight: 600; margin-bottom: 1rem; }
.doctor__meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1.2rem 0; }
.doctor__meta div { background: var(--bg-alt); border-radius: var(--radius); padding: .8rem 1.1rem; }
.doctor__meta strong { display: block; color: var(--primary); font-family: var(--font-head); }
.doctor__meta small { color: var(--text-soft); }
.doctor h3 { margin: 1.4rem 0 .4rem; }
.doctor p { color: var(--text-soft); margin-bottom: .6rem; }
@media (max-width: 800px) { .doctor { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- Calendly / scheduler embed ---------- */
.scheduler { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); min-height: 630px; }
.scheduler .calendly-inline-widget { min-width: 320px; height: 630px; }
.scheduler__fallback { display: grid; place-items: center; text-align: center; padding: 3rem 1.5rem; color: var(--text-soft); gap: .8rem; }
.scheduler__fallback .ico-circle { width: 60px; height: 60px; font-size: 1.8rem; }

/* ---------- Contact form ---------- */
.contact__form { padding: 2rem; display: grid; gap: 1.1rem; }

/* ---------- Clear Build Technologies credit + watermark ---------- */
.footer__credit { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1rem; }
.footer__credit-inner { display: flex; justify-content: center; }
.cbt { display: inline-flex; align-items: center; gap: .6rem; color: #94a3b8; font-size: .85rem; transition: var(--transition); }
.cbt:hover { color: #fff; }
.cbt__logo { flex-shrink: 0; border-radius: 8px; }
.cbt__text strong { color: #cbd5e1; font-family: var(--font-head); font-weight: 700; }
.cbt:hover .cbt__text strong { color: #fff; }

.cbt-watermark {
  position: fixed; left: 16px; bottom: 16px; z-index: 70;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .7rem .4rem .5rem; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  color: var(--text-soft); opacity: .55; transition: var(--transition);
}
.cbt-watermark:hover { opacity: 1; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cbt-watermark__logo { flex-shrink: 0; border-radius: 7px; }
.cbt-watermark__text { font-family: var(--font-head); font-weight: 700; font-size: .62rem; line-height: 1.05; letter-spacing: .01em; }
@media (max-width: 560px) { .cbt-watermark__text { display: none; } .cbt-watermark { left: 12px; bottom: 12px; padding: .45rem; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
