/* SunTeeth Dubai — clinical white, deep navy type, one sun yellow, sky only for panels.
   Instrument Sans. Built from the Apple DESIGN.md notes (awesome-design-md): centred statements,
   product imagery that fills the screen, quiet chrome. The expanding video is the one bold move. */
:root {
  --sky: #f1f6fb;
  --sky-2: #dfeaf4;
  --white: #ffffff;
  --navy: #0d1f33;
  --navy-2: #1d4366;
  --sun: #ffc93c;
  --sun-2: #ffb703;
  --muted: #5b6b7c;
  --mint: #2e9e78;
  --line: rgba(13, 31, 51, .1);
  --font: "Instrument Sans", system-ui, sans-serif;
  --g: clamp(16px, 4vw, 56px);
  --max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--white); color: var(--navy); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.2vw, 54px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun-2); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 99px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--sun { background: var(--sun); color: var(--navy); }
.btn--sun:hover { background: var(--sun-2); box-shadow: 0 12px 26px -12px rgba(255, 183, 3, .8); }
.btn--line { border-color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }

.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 22px; padding: 8px var(--g); min-height: 56px; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -.02em; }
.logo img { width: 28px; height: 28px; }
.nav { display: flex; gap: 26px; margin: 0 auto; font-weight: 500; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--navy); }
.emerg { font-weight: 600; font-size: 13px; color: #b3261e; text-decoration: none; padding: 7px 12px; border-radius: 99px; background: #fde7e5; white-space: nowrap; }
.top .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* Hero: centred statement, then the video that grows to full width */
.hero { padding: clamp(48px, 7vw, 100px) 0 clamp(48px, 6vw, 80px); text-align: center; overflow-x: clip; }
.hero__copy { max-width: 980px; margin: 0 auto; padding: 0 var(--g); }
.hero__status { margin-bottom: 22px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 1; letter-spacing: -.045em; }
.hero__lead { margin: 24px auto 0; font-size: 20px; color: var(--muted); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; margin-top: 32px; }
.hero__link { font-weight: 600; color: var(--navy-2); text-decoration: none; }
.hero__link::after { content: " \203A"; }
.hero__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero__stage { margin-top: clamp(40px, 5vw, 64px); display: flex; justify-content: center; }
.hero__video { margin: 0; width: min(72vw, 1100px); aspect-ratio: 16 / 8.4; border-radius: 40px; overflow: hidden; background: #1a5a8c; will-change: width; }
.hero__video video { width: 100%; height: 100%; object-fit: cover; }
.hero__trust { list-style: none; max-width: var(--max); margin: clamp(32px, 4vw, 48px) auto 0; padding: 0 var(--g); display: grid; grid-template-columns: repeat(4, 1fr); text-align: left; }
.hero__trust li { display: grid; gap: 2px; padding: 0 20px; border-left: 1px solid var(--line); }
.hero__trust li:first-child { border-left: 0; padding-left: 0; }
.hero__trust b { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.hero__trust span { font-size: 14px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: var(--sky); font-weight: 500; font-size: 14px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.is-open::before { background: var(--mint); box-shadow: 0 0 0 4px rgba(46, 158, 120, .2); }

.head2 { max-width: var(--max); margin: 0 auto 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; align-items: end; }
.head2 p { color: var(--muted); }

.services { padding: clamp(56px, 8vw, 110px) var(--g); background: var(--sky); }
.svc { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--white); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card div { padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; align-content: start; }
.card p { color: var(--muted); font-size: 15px; }
.card .price { font-weight: 800; font-size: 20px; margin-top: auto; padding-top: 6px; }
.card .price small { font-weight: 600; font-size: 13px; color: var(--muted); }
.card--emergency { background: #fde7e5; }

/* Simulator */
.sim { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--g); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.sim__copy > p:not(.shade-note):not(.sim__fine) { color: var(--muted); margin: 14px 0 22px; }
.shades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.shade { padding: 10px 6px; border-radius: 16px; border: 2px solid transparent; background: var(--white); cursor: pointer; text-align: center; font-weight: 700; font-size: 14px; }
.shade i { display: block; height: 36px; border-radius: 10px 10px 18px 18px; margin: 0 auto 8px; width: 30px; box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .06); }
.shade[aria-checked="true"] { border-color: var(--navy); }
.shade[disabled] { opacity: .35; cursor: default; }
.shade-note { margin-top: 14px; min-height: 3.2em; font-size: 16px; }
.shade-note b { font-weight: 700; }
.sim__fine { margin-top: 14px; font-size: 13px; color: var(--muted); padding-left: 12px; border-left: 3px solid var(--sun); }
.compare { position: relative; --x: 50%; border-radius: 30px; overflow: hidden; aspect-ratio: 1100 / 520; background: #ddd; user-select: none; }
.compare img { width: 100%; height: 100%; object-fit: cover; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: #fff; pointer-events: none; }
.compare__line span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.compare__line span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--navy); letter-spacing: 4px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare:has(.compare__range:focus-visible) .compare__line span { box-shadow: 0 0 0 4px var(--sun); }
.tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 700; pointer-events: none; }
.tag--l { left: 14px; } .tag--r { right: 14px; }

/* Insurance */
.ins { background: var(--navy); color: #fff; padding: clamp(56px, 8vw, 110px) var(--g); }
.ins .head2 p { color: #a9c1d8; }
.ins__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ins__form { background: var(--white); color: var(--navy); border-radius: 28px; padding: 26px; display: grid; gap: 18px; }
.f { display: grid; gap: 6px; }
.f > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.f input, .f select { min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--sky); }
.f input:focus, .f select:focus { outline: none; border-color: var(--navy); background: #fff; }
.f.is-bad input { border-color: #b3261e; }
.err { color: #b3261e; font-size: 13px; font-style: normal; font-weight: 600; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { min-height: 42px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--sky); cursor: pointer; font-weight: 700; font-size: 14px; }
.seg button[aria-checked="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.ins__out { border: 1px solid rgba(255, 255, 255, .18); border-radius: 28px; padding: 26px; display: grid; gap: 16px; align-content: start; }
.ins__badge { display: inline-flex; width: max-content; padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; background: rgba(46, 158, 120, .2); color: #8fe0c2; }
.ins__badge.is-claim { background: rgba(255, 201, 60, .18); color: var(--sun); }
.ins__note { color: #cfe0ef; font-size: 17px; }
.ins__pay { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .18); display: grid; gap: 2px; }
.ins__pay span { color: #a9c1d8; font-size: 14px; }
.ins__pay b { font-size: clamp(34px, 4vw, 50px); font-weight: 800; letter-spacing: -.03em; color: var(--sun); }
.ins__pay small { color: #a9c1d8; font-size: 14px; }

/* Doctors */
.doctors { padding: clamp(56px, 8vw, 110px) var(--g); }
.docs { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.doc { background: var(--white); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.doc img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.doc div { padding: 16px 18px 18px; display: grid; gap: 4px; }
.doc p { font-size: 14px; color: var(--muted); }
.doc .lic { font-size: 12px; font-weight: 700; color: var(--navy-2); letter-spacing: .02em; }
.doc .btn { margin-top: 10px; min-height: 40px; font-size: 14px; }

.journey { background: var(--white); padding: clamp(56px, 8vw, 110px) var(--g); }
.journey h2 { max-width: var(--max); margin: 0 auto 28px; }
.journey ol { list-style: none; padding: 0; margin: 0 auto; max-width: var(--max); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: j; }
.journey li { counter-increment: j; display: grid; gap: 8px; align-content: start; }
.journey li::before { content: counter(j); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); font-weight: 800; }
.journey b { font-size: 19px; }
.journey span { color: var(--muted); font-size: 15px; }

.tech { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--g); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tech figure { margin: 0; border-radius: 30px; overflow: hidden; }
.tech img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tech p { color: var(--muted); margin-top: 14px; font-size: 18px; }

.reviews { max-width: var(--max); margin: 0 auto; padding: 0 var(--g) clamp(56px, 8vw, 110px); }
.reviews h2 { margin-bottom: 24px; }
.rev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rev blockquote { margin: 0; padding: 24px; border-radius: 26px; background: var(--white); display: grid; gap: 12px; }
.rev .stars { color: var(--sun-2); letter-spacing: 2px; }
.rev cite { font-style: normal; font-weight: 700; font-size: 14px; color: var(--muted); }

.book { background: var(--sky-2); padding: clamp(56px, 8vw, 110px) var(--g); }
.bform { max-width: var(--max); margin: 0 auto; background: var(--white); border-radius: 30px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 20px; }
.reasons, .docpick { display: flex; flex-wrap: wrap; gap: 8px; }
.reasons button, .docpick button { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--sky); cursor: pointer; font-weight: 600; font-size: 14px; }
.reasons button[aria-checked="true"], .docpick button[aria-checked="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.reasons button.is-emerg { border-color: #f3b7b1; background: #fde7e5; }
.reasons button.is-emerg[aria-checked="true"] { background: #b3261e; border-color: #b3261e; color: #fff; }
.docpick button[disabled] { opacity: .35; cursor: not-allowed; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.day { flex: 0 0 66px; min-height: 64px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--sky); cursor: pointer; font-size: 12px; font-weight: 600; }
.day b { display: block; font-size: 22px; }
.day[aria-checked="true"], .time[aria-checked="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.times { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.time { min-height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sky); cursor: pointer; font-weight: 600; font-size: 14px; }
.time[disabled] { color: #a8b7c4; text-decoration: line-through; cursor: not-allowed; }
.time.is-urgent { border-color: #f3b7b1; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.bform__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.bform__bar p { color: var(--muted); font-weight: 600; }

.visit { display: grid; grid-template-columns: 1fr 1.1fr; }
.visit > div:first-child { padding: clamp(48px, 7vw, 96px) var(--g); }
.visit address { font-style: normal; font-size: 26px; font-weight: 700; margin: 18px 0 10px; line-height: 1.3; }
.visit p { color: var(--muted); }
.hours { border-collapse: collapse; width: 100%; max-width: 380px; margin: 22px 0; font-size: 15px; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.is-today td { font-weight: 700; }
.visit__links { display: flex; gap: 10px; }
.visit__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; }

.faq { max-width: 900px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--g); }
.faq h2 { margin-bottom: 20px; }
.faq details { background: var(--white); border-radius: 20px; padding: 0 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 26px; color: var(--sun-2); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

.foot { background: var(--navy); color: #a9c1d8; padding: 32px var(--g) 110px; font-size: 13px; display: grid; gap: 6px; }
.mbar { display: none; }

.dlg { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 28px; padding: 0; background: var(--white); color: var(--navy); }
.dlg::backdrop { background: rgba(15, 42, 67, .5); }
.dlg__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 6px; }
.dlg > div:last-child { padding: 6px 24px 24px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: none; font-size: 22px; cursor: pointer; }
.ok__ref { font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.ok__list { list-style: none; padding: 0; margin: 10px 0 14px; }
.ok__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .emerg { margin-left: auto; }
  .svc, .docs { grid-template-columns: repeat(2, 1fr); }
  .times { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top .btn { display: none; }
  .hero, .head2, .sim, .ins__grid, .tech, .visit { grid-template-columns: 1fr; }
  .journey ol, .rev { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .times { grid-template-columns: repeat(4, 1fr); }
  .shades { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .shade { font-size: 12px; padding: 8px 2px; }
  .bform__bar { flex-direction: column; align-items: stretch; }
  .mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; min-height: 54px; align-items: center; justify-content: center; border-radius: 99px; background: var(--sun); color: var(--navy); font-weight: 800; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(15, 42, 67, .5); transition: transform .3s; }
  .mbar.is-hidden { transform: translateY(150%); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }

.ins__grid > *, .sim > *, .hero > * { min-width: 0; }

@media (max-width: 1080px) { .nav { display: none; } .top .emerg { margin-left: auto; } }
@media (max-width: 760px) {
  .hero__video { width: calc(100vw - 32px); aspect-ratio: 4 / 3.4; border-radius: 24px; }
  .hero__trust { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .hero__trust li:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__lead { font-size: 17px; }
}
