/* ============================================================
   GBT Clinic by Dr Khalid — Gallery-luxe design system
   Palette anchored in the real clinic: warm gallery white,
   glowing coral-onyx accent, teal brand mark, pop-art energy.
   Motif: the pointed Islamic arch from the clinic architecture.
   ============================================================ */

:root {
  /* surfaces */
  --bg: #FBF8F5;
  --surface: #FFFFFF;
  --surface-2: #F4EDE8;
  --surface-3: #ECE2DB;

  /* ink */
  --ink: #1B1714;
  --ink-soft: #5C534C;
  --ink-faint: #8B8079;
  --line: #E8DED6;
  --line-strong: #D9CCC2;

  /* brand + accent */
  --teal: #0D7C8A;
  --teal-deep: #17324D;
  --teal-tint: #E2F0F1;
  --onyx: #E0825F;          /* coral onyx — signature accent */
  --onyx-deep: #C5613F;
  --onyx-soft: #F6E2D7;
  --pop-pink: #E33B6B;
  --pop-orange: #F08C20;

  /* accent role (swappable via Tweaks) */
  --accent: var(--onyx);
  --accent-deep: var(--onyx-deep);
  --accent-soft: var(--onyx-soft);

  --onyx-grad: linear-gradient(118deg, #F6B79A 0%, #ED8E69 34%, #E0744F 60%, #D98198 100%);

  --focus: #0D7C8A;

  /* type */
  --display: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  /* metrics */
  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --header-h: 76px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(27,23,20,.05), 0 6px 18px rgba(27,23,20,.05);
  --shadow-md: 0 4px 12px rgba(27,23,20,.06), 0 24px 48px rgba(27,23,20,.09);
  --shadow-lg: 0 30px 80px rgba(27,23,20,.16);

  /* pointed-arch mask (portrait, aspect ~ 100:124) */
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 124' preserveAspectRatio='none'%3E%3Cpath d='M0,124 L0,50 Q3,9 50,0 Q97,9 100,50 L100,124 Z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

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

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }

.eyebrow {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; line-height: 1.04; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.h-display { font-size: clamp(2.6rem, 6.4vw, 5.1rem); }
h2.h-sec { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.12; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-soft); line-height: 1.55; }
.muted { color: var(--ink-soft); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--body); font-weight: 600; font-size: .98rem;
  padding: 15px 26px; min-height: 52px;
  border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }

.btn--call { background: var(--teal); color: #fff; }
.btn--call:hover { background: #0a6772; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn--light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.26); }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 11px 18px; font-size: .9rem; }

/* ---------- logo chip ---------- */
.chip {
  background: #fff; border-radius: 14px; padding: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(27,23,20,.12);
  border: 1px solid var(--line);
}
.chip img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.chip--lg { padding: 9px; border-radius: 18px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.header.is-stuck { background: color-mix(in srgb, var(--bg) 92%, transparent); border-color: var(--line); box-shadow: 0 1px 0 rgba(27,23,20,.03); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: nowrap; }

.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand .chip { width: 46px; height: 46px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--display); font-weight: 650; font-size: 1.04rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-name span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

.nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; }
.nav a {
  position: relative; font-size: .94rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
  padding: 9px 12px; border-radius: 8px; transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; border-radius: 2px;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.menu-btn {
  display: none; width: 48px; height: 48px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-strong);
  align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.menu-btn span { position: relative; }
.menu-btn span::before { position: absolute; top: -6px; left: 0; }
.menu-btn span::after { position: absolute; top: 6px; left: 0; }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: var(--bg); padding: 24px var(--gut) 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .26s ease, transform .26s ease;
  overflow-y: auto;
}
body.menu-open .drawer { opacity: 1; transform: none; pointer-events: auto; }
.drawer a.d-link {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--display); font-weight: 600; font-size: 1.5rem;
  padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.drawer a.d-link span { font-family: var(--body); font-size: .8rem; color: var(--ink-faint); font-weight: 500; }
.drawer .drawer-actions { display: grid; gap: 10px; margin-top: 22px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(28px, 5vw, 60px)); padding-bottom: clamp(40px, 6vw, 90px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--accent-deep); }
.hero-sub { max-width: 30em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.meta-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.meta-item svg { width: 18px; height: 18px; color: var(--accent-deep); flex: none; }
.meta-item b { color: var(--ink); font-weight: 600; }

.stars { display: inline-flex; gap: 2px; color: var(--onyx); }
.stars svg { width: 15px; height: 15px; }

/* hero media — arch motif */
.hero-media { position: relative; }
.arch {
  -webkit-mask-image: var(--arch); mask-image: var(--arch);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.hero-arch {
  position: relative; aspect-ratio: 100 / 124; width: 100%; max-width: 460px; margin-inline: auto;
  background: var(--surface-2);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch::after { /* subtle inner edge */
  content: ""; position: absolute; inset: 0; -webkit-mask-image: var(--arch); mask-image: var(--arch); -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(27,23,20,.06); pointer-events: none;
}
/* glowing onyx bar behind arch */
.hero-media::before {
  content: ""; position: absolute; z-index: -1; right: 6%; top: -3%; bottom: 8%; width: 38%;
  background: var(--onyx-grad); border-radius: 120px 120px 16px 16px; filter: blur(2px); opacity: .9;
}
.hero-badge {
  position: absolute; left: -6px; bottom: 12%; z-index: 3;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px;
}
.hero-badge .num { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.hero-badge .lbl { font-size: .74rem; color: var(--ink-soft); line-height: 1.25; }

/* ---------- trust strip ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-strip .wrap { display: flex; flex-wrap: nowrap; gap: 8px 22px; align-items: center; justify-content: space-between; padding-block: 18px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-soft); white-space: nowrap; min-width: 0; }
.trust-item svg { width: 21px; height: 21px; color: var(--teal); flex: none; }
.trust-item b { color: var(--ink); font-weight: 600; }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.sec-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head p { margin: 18px 0 0; }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }

/* ============================================================
   TREATMENTS
   ============================================================ */
.treatments { background: var(--bg); }
.treat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }

.treat {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 230px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.treat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* feature card (GBT) */
.treat--feature { grid-column: span 6; grid-row: span 2; min-height: 420px; color: #fff; border: none; }
.treat--feature .treat-img { position: absolute; inset: 0; }
.treat--feature .treat-img img { width: 100%; height: 100%; object-fit: cover; }
.treat--feature .treat-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,12,.12) 0%, rgba(20,15,12,.34) 46%, rgba(20,15,12,.86) 100%); }
.treat--feature .treat-body { position: relative; margin-top: auto; padding: clamp(24px, 3vw, 36px); }
.treat--feature h3 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.treat--feature p { color: rgba(255,255,255,.86); }
.treat--feature .eyebrow { color: #fff; }
.treat--feature .eyebrow::before { background: #fff; }
.treat--feature .tag { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); }

.treat--std { grid-column: span 3; padding: 26px 24px; }
.treat--std .t-icn {
  width: 50px; height: 50px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.treat--std .t-icn svg { width: 25px; height: 25px; }
.treat--std h3 { font-size: 1.22rem; margin-bottom: 8px; }
.treat--std p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

.treat--wide { grid-column: span 6; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft);
}

.disclaimer { margin-top: 22px; font-size: .82rem; color: var(--ink-faint); display: flex; gap: 9px; align-items: flex-start; }
.disclaimer svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ink-faint); }

/* ============================================================
   THE SPACE (about / gallery rhythm)
   ============================================================ */
.space { background: var(--surface); border-block: 1px solid var(--line); }
.space-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 18vw, 196px); gap: 16px; }
.space-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.space-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.space-grid figure:hover img { transform: scale(1.04); }
.g-lead { grid-column: span 7; grid-row: span 2; }
.g-a { grid-column: span 5; }
.g-b { grid-column: span 5; }
.fig-cap { position: absolute; left: 14px; bottom: 12px; font-size: .76rem; color: #fff; background: rgba(20,15,12,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 6px 11px; border-radius: 999px; }

.space-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.space-copy .lead { margin-bottom: 18px; }
.space-feats { display: grid; gap: 4px; }
.space-feat { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.space-feat:last-child { border-bottom: 1px solid var(--line); }
.space-feat .sf-icn { width: 40px; height: 40px; border-radius: 11px; background: var(--teal-tint); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: none; }
.space-feat .sf-icn svg { width: 20px; height: 20px; }
.space-feat b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.04rem; margin-bottom: 2px; }
.space-feat p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ============================================================
   SMILES — before/after + grid
   ============================================================ */
.smiles { background: var(--bg); }
.smiles-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }

.ba {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  user-select: none; touch-action: none; box-shadow: var(--shadow-md); background: #000;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-label { position: absolute; top: 12px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(20,15,12,.55); padding: 5px 11px; border-radius: 999px; pointer-events: none; }
.ba-label.l { left: 12px; }
.ba-label.r { right: 12px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: var(--pos, 50%); transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.ba-knob svg { width: 22px; height: 22px; }

.smiles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.smiles-grid .sm {
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; background: var(--surface-2); cursor: pointer; position: relative;
}
.smiles-grid .sm img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.smiles-grid .sm:hover img { transform: scale(1.05); }
.smiles-grid .sm--tall { grid-row: span 2; aspect-ratio: auto; }

/* ============================================================
   VISIT — onyx console
   ============================================================ */
.visit { position: relative; background: var(--teal-deep); color: #fff; }
.visit::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 88% 0%, rgba(224,130,95,.30), transparent 55%); }
.visit .wrap { position: relative; }
.visit .eyebrow { color: #fff; }
.visit .eyebrow::before { background: var(--onyx); }
.visit h2 { color: #fff; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

.visit-info { display: grid; gap: 14px; margin-top: 28px; }
.vi-row { display: flex; gap: 15px; align-items: flex-start; padding: 16px 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; }
.vi-row .vi-icn { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.vi-row .vi-icn svg { width: 21px; height: 21px; }
.vi-row .lbl { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 3px; }
.vi-row .val { font-size: 1.02rem; font-weight: 500; color: #fff; }
.vi-row a.val:hover { text-decoration: underline; }

.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.map-ph {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 330px; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #1d3a56, #15293d);
  border: 1px solid rgba(255,255,255,.14);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px;
}
.map-ph .pin { width: 56px; height: 56px; border-radius: 50%; background: var(--onyx); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 10px 30px rgba(224,130,95,.4); }
.map-ph .pin svg { width: 28px; height: 28px; color: #fff; }
.map-ph .ph-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.map-ph b { font-family: var(--display); font-size: 1.2rem; color: #fff; }
.map-ph p { color: rgba(255,255,255,.7); font-size: .9rem; margin: 6px 0 18px; max-width: 30ch; }

/* ============================================================
   PATIENT INFO + FORM
   ============================================================ */
.info { background: var(--surface); border-top: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }

.faq { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--ink);
}
.faq-q .pm { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; transition: background .2s, border-color .2s; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; top: 50%; left: 50%; transition: transform .25s ease, background .2s; }
.faq-q .pm::before { width: 11px; height: 1.5px; transform: translate(-50%,-50%); }
.faq-q .pm::after { width: 1.5px; height: 11px; transform: translate(-50%,-50%); }
.faq-item.open .faq-q .pm { background: var(--accent); border-color: var(--accent); }
.faq-item.open .faq-q .pm::before, .faq-item.open .faq-q .pm::after { background: #fff; }
.faq-item.open .faq-q .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-a-inner { padding: 0 4px 22px; color: var(--ink-soft); font-size: .96rem; max-width: 52ch; }

/* form card */
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-sm); }
.form-card h3 { margin-bottom: 6px; }
.form-card .fc-sub { color: var(--ink-soft); font-size: .94rem; margin: 0 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--accent-deep); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: .98rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 11px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field.err input, .field.err select, .field.err textarea { border-color: #cc4242; box-shadow: 0 0 0 3px rgba(204,66,66,.12); }
.field .err-msg { display: none; color: #cc4242; font-size: .8rem; margin-top: 6px; }
.field.err .err-msg { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  margin: 0; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  font-size: .86rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: all .18s ease;
}
.seg input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + label { outline: 2.5px solid var(--focus); outline-offset: 2px; }

.form-note { font-size: .8rem; color: var(--ink-faint); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.form-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form-success .ok svg { width: 32px; height: 32px; }
form.hide { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: clamp(48px, 6vw, 80px) 30px; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand .chip { width: 54px; height: 54px; margin-bottom: 16px; }
.foot-brand b { font-family: var(--display); color: #fff; font-size: 1.2rem; display: block; }
.foot-brand p { font-size: .92rem; max-width: 32ch; margin: 10px 0 0; }
.foot-col h4 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--body); font-weight: 600; }
.foot-col a, .foot-col p { display: block; font-size: .94rem; margin-bottom: 11px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.5); }
.foot-bottom .legal { max-width: 64ch; }

/* ============================================================
   MOBILE BOTTOM BAR
   ============================================================ */
.botbar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: none; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -8px 24px rgba(27,23,20,.08);
}
.botbar a {
  background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 11px 6px 12px; font-size: .72rem; font-weight: 600; color: var(--ink); min-height: 60px;
}
.botbar a svg { width: 21px; height: 21px; color: var(--accent-deep); }
.botbar a.bb-primary { background: var(--ink); color: #fff; }
.botbar a.bb-primary svg { color: #fff; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(16,12,10,.92); display: none; align-items: center; justify-content: center; padding: 30px; opacity: 0; transition: opacity .25s ease; }
.lightbox.show { display: flex; opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 22px; right: 22px; }
.lb-close svg, .lb-nav svg { width: 24px; height: 24px; }
.lb-nav.prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .88rem; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.is-in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .24s; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1120px) {
  .brand-name span { display: none; }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin-inline: auto; margin-top: 8px; }
  .treat--feature { grid-column: span 12; grid-row: auto; min-height: 360px; }
  .treat--std { grid-column: span 6; }
  .treat--wide { grid-column: span 12; }
  .g-lead { grid-column: span 12; grid-row: span 2; }
  .g-a, .g-b { grid-column: span 6; }
  .space-copy, .smiles-layout, .visit-grid, .info-grid { grid-template-columns: 1fr; }
  .map-ph { min-height: 280px; order: -1; }
}

@media (max-width: 720px) {
  .nav, .header-cta .btn--call span.txt { display: none; }
  .header-cta .btn { padding: 11px 16px; }
  .menu-btn { display: flex; }
  .botbar { display: grid; }
  body { padding-bottom: 60px; }
  .header { --header-h: 66px; }
  .footer { padding-bottom: 84px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .smiles-layout { gap: 22px; }
  .trust-strip .wrap { flex-wrap: wrap; justify-content: flex-start; gap: 12px 26px; }
  .trust-item { flex: 1 1 40%; }
}

@media (max-width: 460px) {
  .treat--std { grid-column: span 12; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-badge { left: 0; }
  .brand-name { display: none; }
  .brand-name.show-sm { display: flex; }
}

/* BytesGlue QA map patch */
.bg-map-embed{display:block!important;position:relative!important;width:100%!important;min-height:240px!important;border-radius:12px!important;overflow:hidden!important;background:#e9edf1!important;box-shadow:0 0 0 1px rgba(0,0,0,.08) inset!important}
.bg-map-embed iframe{display:block!important;width:100%!important;min-height:260px!important;border:0!important}
.bg-map-embed + .bg-map-embed,
.bg-map-embed + .pin,
.bg-map-embed + .lbl,
.bg-map-embed + .corner-note,
.bg-map-embed + .placeholder,
.bg-map-embed + .center,
.bg-map-embed + [class*="map-note"],
.bg-map-embed + [class*="map-tag"]{display:none!important}
.map .placeholder .pin,.map-ph .pin,.map-pin,.map-marker,.map-ph__pin,.map-ph__pin .dot,.map-ph__pin .pin,.map-ph .mi{max-width:18px!important;max-height:18px!important;width:18px!important;height:18px!important;box-shadow:none!important}
.map .placeholder .pin svg,.map-ph .pin svg,.map-pin svg,.map-marker svg,.map-ph__pin svg,.map-ph .mi{width:12px!important;height:12px!important}
.map-note,.map-tag,[class*="map-note"],[class*="map-tag"]{display:none!important}
