/* ============================================================
   White Teeth Dental and Orthodontic Centre — white + bluish-green rebuild
   Palette: white/mint bg · teal-green accent pills · cool bento cards
   Font: Plus Jakarta Sans
   ============================================================ */

:root {
  --primary: #0d9488;
  --primary-600: #0f766e;
  --primary-700: #115e59;

  --dark: #082423;

  --ink: #0f2a27;
  --ink-2: #24443f;
  --body: #55716c;
  --muted: #82a29c;

  --bg: #f6fbfa;
  --bg-soft: #eaf6f4;

  --border: #d8ece8;
  --border-strong: #c2e0da;
  --ring: #0d9488;
  --star: #f2a30f;

  --yellow: #d7f2f5; --yellow-ic: #0e7490;
  --lavender: #dceefb; --lavender-ic: #1d4ed8;
  --sky: #d8f3ec; --sky-ic: #0d9488;
  --mint: #dcf2e3; --mint-ic: #15803d;

  --sage: #e2f4ee;
  --sage-ink: #0f4a3e;
  --lav-panel: #e0f2f7;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-2xl: 40px;
  --r-pill: 999px;

  --sh-sm: 0 2px 8px rgba(8, 36, 35, .06);
  --sh-md: 0 10px 30px -10px rgba(8, 36, 35, .16);
  --sh-lg: 0 30px 60px -22px rgba(8, 36, 35, .32), 0 12px 24px -14px rgba(8, 36, 35, .12);

  --container: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body.is-loading { overflow: hidden; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__texts {
  display: flex;
  gap: 8px;
  overflow: hidden;
  font-weight: 800;
  font-size: clamp(15px, 4vw, 22px);
  color: var(--bg);
  letter-spacing: .01em;
}
.preloader__texts span {
  display: inline-block;
  opacity: 0;
  transform: translateY(70px) skewY(10deg);
  animation: preloader-rise 1.5s cubic-bezier(.16, 1, .3, 1) forwards,
             preloader-fall .8s cubic-bezier(.7, 0, .84, 0) forwards;
}
.preloader__texts span:nth-child(1) { animation-delay: 1s, 2.6s; }
.preloader__texts span:nth-child(2) { animation-delay: 1.4s, 2.8s; }
.preloader__texts span:nth-child(3) { animation-delay: 1.8s, 3s; }
@keyframes preloader-rise {
  0%   { opacity: 0; transform: translateY(70px) skewY(10deg); }
  100% { opacity: 1; transform: translateY(0) skewY(0deg); }
}
@keyframes preloader-fall {
  0%   { opacity: 1; transform: translateY(0) skewY(0deg); }
  100% { opacity: 1; transform: translateY(70px) skewY(-20deg); }
}
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg, iframe { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: var(--ink); }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.accent { color: inherit; }

.skip-link { position: fixed; left: 14px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s var(--ease); }
.skip-link:focus { top: 14px; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons ---------- */
.btn {
  --by: 14px; --bx: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--by) var(--bx);
  font-weight: 700; font-size: .96rem; letter-spacing: -.01em;
  border-radius: var(--r-pill);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn .ic { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { --by: 17px; --bx: 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--dark { background: var(--primary); color: #fff; }
.btn--dark:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(8,36,35,.45); }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(0,0,0,.35); }

.btn--ghost-w { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn--ghost-w:hover { background: rgba(255,255,255,.2); }

.btn--outline { background: rgba(246,251,250,.6); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(8,36,35,.18); backdrop-filter: blur(6px); }
.btn--outline:hover { background: #fff; transform: translateY(-2px); }

.btn--callnow { background: #fff; color: var(--ink); font-weight: 700; font-size: .88rem; padding: 9px 16px; border-radius: var(--r-pill); box-shadow: var(--sh-sm); }
.btn--callnow:hover { transform: translateY(-2px); }

.linklike { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 0; display: inline; }
.linklike:hover { color: var(--primary-700); }

/* ---------- kickers ---------- */
.kicker-line {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 16px;
}
.kicker-line--dash { position: relative; padding-right: 60px; }
.kicker-line--dash::after { content: ""; position: absolute; right: 0; top: 50%; width: 44px; height: 1px; background: var(--border-strong); }

/* ============================================================
   HERO (nav overlaid on the photo — scrolls away with it, not sticky)
   ============================================================ */
.hero { position: relative; min-height: 92vh; min-height: 92dvh; overflow: hidden; display: flex; flex-direction: column; background: var(--dark); padding-top: 74px; }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.hero__bg.is-in { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(246,251,250,.5) 0%, rgba(246,251,250,.14) 34%, rgba(246,251,250,0) 55%);
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.hero__scrim.is-in { opacity: 1; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 16px 0;
  will-change: transform;
  transition: transform .4s var(--ease), padding .3s var(--ease);
}
.nav.is-stuck { padding: 10px 0; }
.nav--hidden { transform: translateY(-100%); }
.nav__inner { max-width: var(--container); margin-inline: auto; padding-inline: 24px; display: flex; align-items: center; gap: 18px; }
.nav__brand { color: var(--ink); font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }
.nav__brand span { opacity: .6; font-weight: 600; margin-left: 2px; }

.nav__links { position: relative; margin-inline: auto; display: flex; gap: 2px; background: #fff; border-radius: var(--r-pill); padding: 5px; box-shadow: 0 10px 26px -12px rgba(0,0,0,.3); }
.nav__links a { position: relative; z-index: 1; padding: 9px 15px; border-radius: var(--r-pill); font-weight: 600; font-size: .86rem; color: var(--ink-2); transition: color .25s var(--ease); }
.nav__links a.is-active, .nav__links a.is-lit { color: #fff; }
.nav__links a.is-active::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-pill); background: var(--primary);
}
.nav__indicator {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; z-index: 0;
  border-radius: var(--r-pill); background: var(--primary); opacity: 0; pointer-events: none;
  transition: left .3s var(--ease), width .3s var(--ease), opacity .2s var(--ease);
}

.hero__content {
  position: relative; z-index: 2; margin-top: auto; width: 100%; max-width: 460px;
  padding: 40px 24px 100px; padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
}
.hero__title { color: var(--ink); font-size: clamp(2.1rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-shadow: 0 2px 24px rgba(246,251,250,.7); }
.hero__lede { color: var(--ink-2); margin-top: 20px; max-width: 360px; font-size: 1rem; }
.hero__lede strong { color: var(--ink); }
.hero__cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section { padding: 100px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section__note { text-align: center; margin-top: 40px; color: var(--muted); font-size: .98rem; }
.section__fine { text-align: center; margin-top: 18px; color: var(--muted); font-size: .84rem; }

/* ============================================================
   ABOUT — asymmetric 3-photo collage
   ============================================================ */
.about { position: relative; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 40px; align-items: start; padding-bottom: 90px; }
.about__photo img { width: 100%; border-radius: var(--r-xl); object-fit: cover; box-shadow: var(--sh-md); }
.about__photo--l img { aspect-ratio: 3 / 3.5; }
.about__photo--r img { aspect-ratio: 3 / 3.3; }
.about__photo--r { margin-top: 20px; }
.about__copy { position: relative; text-align: center; padding-top: 16px; padding-bottom: 200px; }
.about__copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.about__copy p { margin: 18px auto 26px; max-width: 380px; color: var(--body); }

.about__photo--c {
  position: absolute; z-index: 2; width: 200px; right: -50px; bottom: 30px;
}
.about__photo--c img { aspect-ratio: 4 / 3; border: 6px solid var(--bg); }
.about__stat {
  position: absolute; z-index: 1; right: 4%; bottom: -6px; text-align: left;
}
.about__stat strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.about__stat span { font-size: .88rem; color: var(--muted); }

/* ============================================================
   SERVICES — 2-col bento per category
   ============================================================ */
.svc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 60px; flex-wrap: wrap; }
.svc-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.svc-head__side { max-width: 380px; text-align: right; }
.svc-head__side p { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.svc-head__side .btn { margin-left: auto; }

.svc-cat { position: relative; margin-bottom: 30px; }
.svc-cat:last-of-type { margin-bottom: 0; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 0; position: relative; }
.svc-cat__rail {
  position: absolute; left: 50%; top: 10px; bottom: 10px; width: 1px; background: var(--border-strong);
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.svc-cat__rail span {
  writing-mode: vertical-rl; transform: rotate(180deg); background: var(--bg); padding: 12px 0;
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.svc-grid > .svc-card:nth-child(odd) { margin-right: 20px; }
.svc-grid > .svc-card:nth-child(even) { margin-left: 20px; }

.svc-card {
  border-radius: var(--r-xl); padding: 30px 28px 28px; position: relative;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.svc-card--yellow { background: var(--yellow); }
.svc-card--lavender { background: var(--lavender); }
.svc-card--sky { background: var(--sky); }
.svc-card--mint { background: var(--mint); }

.svc-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 40px; }
.svc-card__ic { width: 48px; height: 48px; border-radius: var(--r-md); background: rgba(255,255,255,.7); display: grid; place-items: center; }
.svc-card--yellow .svc-card__ic { color: var(--yellow-ic); }
.svc-card--lavender .svc-card__ic { color: var(--lavender-ic); }
.svc-card--sky .svc-card__ic { color: var(--sky-ic); }
.svc-card--mint .svc-card__ic { color: var(--mint-ic); }
.svc-card__ic .ic { width: 24px; height: 24px; stroke-width: 1.8; }
.svc-card__plus { font-size: 1.3rem; color: rgba(8,36,35,.35); font-weight: 300; line-height: 1; transition: transform .3s var(--ease); }
.svc-card:hover .svc-card__plus { transform: rotate(90deg); color: var(--ink); }

.svc-card h3 { font-size: 1.16rem; }
.svc-card p { font-size: .9rem; margin-top: 8px; color: var(--ink-2); opacity: .75; }
.svc-card__more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; font-weight: 700; font-size: .88rem; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; transition: gap .2s var(--ease);
}
.svc-card__more .ic { width: 15px; height: 15px; }
.svc-card__more:hover { gap: 11px; }

/* ============================================================
   ROUNDED PANELS ("our works" + testimonials)
   ============================================================ */
.panel { border-radius: var(--r-2xl); padding: 60px; }
.panel--sage { background: var(--sage); }
.panel--lav { background: var(--lav-panel); }

.works { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: center; }
.works__left p { font-size: .96rem; color: var(--sage-ink); opacity: .82; margin-bottom: 26px; max-width: 340px; }
.works__proof { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.works__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sage); }
.works__proof span { font-weight: 700; color: var(--sage-ink); font-size: .92rem; }

.works__title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 26px; }
.works__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.works__photo { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); }
.works__photo img { width: 100%; height: 240px; object-fit: cover; }
.works__cap { display: block; margin-top: 12px; font-weight: 700; color: var(--sage-ink); font-size: .96rem; }
.works__cap span { display: block; font-weight: 500; color: var(--sage-ink); opacity: .65; font-size: .84rem; margin-top: 2px; }

/* ============================================================
   DOCTOR
   ============================================================ */
.doctor { display: grid; grid-template-columns: .82fr 1fr 1fr; gap: 44px; align-items: start; margin-bottom: 56px; }
.doctor__left h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 4px 0 20px; }
.doctor__note { font-size: .92rem; color: var(--muted); }
.doctor__note a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.doctor__photo { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); }
.doctor__photo img { width: 100%; height: 380px; object-fit: cover; }
.doctor__right p { font-size: .96rem; color: var(--body); margin-bottom: 22px; }
.doctor__statrow { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.doctor__stat { flex: none; }
.doctor__stat strong { display: block; font-size: 1.5rem; font-weight: 800; }
.doctor__stat span { font-size: .8rem; color: var(--muted); max-width: 100px; display: block; }
.doctor__thumb { width: 84px; height: 84px; border-radius: var(--r-md); overflow: hidden; flex: none; }
.doctor__thumb img { width: 100%; height: 100%; object-fit: cover; }

.doc-card {
  display: flex; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 22px 26px; box-shadow: var(--sh-sm); flex-wrap: wrap;
}
.doc-card__photo { position: relative; width: 72px; height: 72px; flex: none; }
.doc-card__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 22%; }
.doc-card__rate { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-weight: 700; font-size: .68rem; padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.doc-card__body { flex: 1; min-width: 220px; }
.doc-card__tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-700); background: var(--bg-soft); padding: 4px 11px; border-radius: var(--r-pill); margin-bottom: 8px; }
.doc-card__body h3 { font-size: 1.1rem; }
.doc-card__body p { font-size: .86rem; color: var(--muted); margin-top: 4px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.tt-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.tt-head p { font-size: .92rem; color: var(--muted); margin-top: 8px; max-width: 420px; }
.tt-arrows { display: flex; gap: 10px; flex: none; }
.tt-arrow { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh-sm); transition: transform .2s var(--ease); }
.tt-arrow--dark { background: var(--primary); color: #fff; }
.tt-arrow:hover { transform: translateY(-2px); }

.tt-grid { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 4px; scrollbar-width: none; }
.tt-grid::-webkit-scrollbar { display: none; }
.tt { background: #fff; border-radius: var(--r-xl); padding: 30px 28px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; scroll-snap-align: start; flex: 0 0 calc((100% - 48px) / 3); }
.tt__av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 16px; }
.tt__stars { color: var(--star); font-size: 1rem; letter-spacing: 2px; }
.tt blockquote { font-size: 1.02rem; font-weight: 600; line-height: 1.45; color: var(--ink); margin-top: 14px; letter-spacing: -.01em; flex: 1; }
.tt figcaption { margin-top: 20px; }
.tt figcaption strong { display: block; color: var(--ink); font-size: .92rem; }
.tt figcaption em { font-style: normal; font-size: .8rem; color: var(--muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.faq__head p { font-size: 1.02rem; color: var(--body); margin-bottom: 22px; }
.faq { display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.faq__item.is-open { box-shadow: var(--sh-md); border-color: var(--border-strong); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 22px 24px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq__chev { width: 20px; height: 20px; color: var(--primary-700); transition: transform .3s var(--ease); flex: none; }
.faq__item.is-open .faq__chev { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { padding: 0 24px 22px; color: var(--body); font-size: .98rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.contact__info h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.contact__info p { font-size: 1.02rem; color: var(--body); }
.contact__list { display: grid; gap: 16px; margin: 26px 0; }
.contact__list li { display: flex; gap: 15px; align-items: flex-start; }
.contact__ic { width: 50px; height: 50px; flex: none; border-radius: var(--r-md); background: var(--primary); color: #fff; display: grid; place-items: center; }
.contact__ic .ic { width: 23px; height: 23px; }
.contact__list strong { display: block; color: var(--ink); margin-bottom: 2px; }
.contact__list a:hover { color: var(--primary-700); }
.contact__map { margin-top: 8px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--sh-md); }
.contact__map iframe { width: 100%; height: 240px; border: 0; }

/* ---------- forms ---------- */
.bform { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 34px; box-shadow: var(--sh-lg); position: relative; }
.bform--modal { box-shadow: none; border: none; padding: 0; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink-2); margin-bottom: 8px; }
.field__opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg-soft);
  border: 1.5px solid var(--border); transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #b3a894; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(8,36,35,.1); }
.field textarea { resize: vertical; min-height: 96px; }
.field.has-err input, .field.has-err select { border-color: #dc2626; background: #fff5f5; }
.field__err { display: none; color: #dc2626; font-size: .82rem; margin-top: 6px; }
.field.has-err .field__err { display: block; }

.bform__alt { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 14px; }
.bform__alt a { color: var(--primary-700); font-weight: 700; }
.bform__ok { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 18px; margin-top: 16px; }
.bform__ok[hidden] { display: none; }
.bform__ok .ic { width: 30px; height: 30px; color: var(--primary-700); flex: none; }
.bform__ok strong { color: var(--ink); }
.bform__ok p { font-size: .94rem; color: var(--ink-2); }
.btn.is-loading { opacity: .75; pointer-events: none; }
.btn.is-loading .btn__label::after { content: ""; display: inline-block; width: 15px; height: 15px; margin-left: 8px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 80px 0 0; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 40px; position: relative; z-index: 1; }
.footer__brandname { color: #fff; font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.footer__brandname span { color: var(--star); }
.footer__tag { margin-top: 16px; font-size: .94rem; max-width: 300px; color: rgba(255,255,255,.6); }
.footer__col { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.footer__col a { color: rgba(255,255,255,.68); font-size: .94rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__cta { gap: 14px; }
.footer__bottom {
  position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 50px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: rgba(255,255,255,.5);
}
.footer__muted { color: rgba(255,255,255,.5); }
.footer__word {
  position: relative; z-index: 1; text-align: center; overflow: hidden; white-space: nowrap;
  font-size: clamp(5.5rem, 16vw, 13rem); font-weight: 800; letter-spacing: -.04em;
  line-height: .78; margin-top: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  user-select: none; pointer-events: none;
}

/* ---------- fab ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; display: none; place-items: center; box-shadow: var(--sh-lg); animation: floaty 3.5s ease-in-out infinite; }
.fab .ic { width: 25px; height: 25px; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,36,35,.55); backdrop-filter: blur(4px); animation: fade .3s var(--ease); }
.modal__panel { position: relative; background: #fff; border-radius: var(--r-xl); padding: 34px; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; box-shadow: var(--sh-lg); animation: pop .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); color: var(--ink); display: grid; place-items: center; transition: background .2s var(--ease); }
.modal__close:hover { background: var(--border); }
.modal__head { text-align: center; margin-bottom: 24px; }
.modal__head h2 { font-size: 1.5rem; }
.modal__head p { font-size: .94rem; color: var(--muted); margin-top: 6px; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr 1fr; }
  .about__copy { grid-column: 1 / -1; order: -1; padding-bottom: 20px; }
  .about__photo--r { margin-top: 0; }
  .about__photo--c { display: none; }
  .about__stat { position: static; margin-top: 16px; text-align: center; }

  .svc-head { flex-direction: column; align-items: flex-start; }
  .svc-head__side { text-align: left; }
  .svc-head__side .btn { margin-left: 0; }
  .svc-grid { grid-template-columns: 1fr; gap: 22px; }
  .svc-cat__rail { display: none; }
  .svc-grid > .svc-card:nth-child(odd), .svc-grid > .svc-card:nth-child(even) { margin: 0; }

  .panel { padding: 44px 32px; }
  .works { grid-template-columns: 1fr; gap: 36px; }
  .works__photos { grid-template-columns: 1fr 1fr; }

  .doctor { grid-template-columns: 1fr; gap: 30px; }
  .doctor__photo img { height: 300px; }

  .faq__wrap, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  /* full navbar stays on phone (no hamburger) — two rows: logo + Call Now on
     top at full readable size, links pill full-width below (swipeable) */
  .nav__inner { padding-inline: 16px; gap: 10px; row-gap: 10px; flex-wrap: wrap; }
  .nav__brand { font-size: 1.05rem; flex: none; order: 1; }
  .btn--callnow { flex: none; order: 2; margin-left: auto; padding: 9px 15px; font-size: .84rem; gap: 7px; }
  .btn--callnow .ic { width: 15px; height: 15px; }
  .nav__links {
    order: 3; flex-basis: 100%; margin-inline: 0; min-width: 0;
    display: flex; gap: 6px; padding: 4px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { flex: none; padding: 10px 16px; font-size: .88rem; white-space: nowrap; }

  html { scroll-padding-top: 120px; }
  .hero { min-height: 58vh; min-height: 58dvh; padding-top: 130px; }
  .hero__content { margin-top: 0; padding-top: 22px; padding-bottom: 36px; }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(246,251,250,.6) 0%, rgba(246,251,250,.48) 50%, rgba(246,251,250,.16) 78%, rgba(246,251,250,0) 100%);
  }
  .hero__lede { margin-top: 12px; text-shadow: 0 1px 14px rgba(246,251,250,.65); }
  .hero__cta { margin-top: 18px; }
  .hero__cta .btn { --by: 12px; --bx: 20px; font-size: .9rem; }
  .footer__word { font-size: clamp(2.6rem, 12vw, 6.5rem); }

  .section { padding: 44px 0; }
  .about { padding-bottom: 20px; }
  .doctor { margin-bottom: 24px; }
  .fab { display: grid; }
  .tt { flex-basis: 84%; }
}

@media (max-width: 520px) {
  .container { padding-inline: 16px; }
  .panel { padding: 32px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .bform { padding: 24px 20px; }
  .bform--modal { padding: 0; }

  .doctor__statrow { gap: 10px; flex-wrap: wrap; }
  .doctor__thumb { width: 68px; height: 68px; }

  /* keep the desktop bento/collage identity instead of stacking to 1 column —
     most traffic is phone, so the compact multi-column layouts ARE the primary view */
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .svc-grid > .svc-card:nth-child(odd) { margin-right: 7px; }
  .svc-grid > .svc-card:nth-child(even) { margin-left: 7px; }
  .svc-cat__rail { display: flex; }
  .svc-cat__rail span { font-size: .56rem; letter-spacing: .09em; padding: 8px 0; }
  .svc-card { padding: 16px 14px 14px; border-radius: var(--r-lg); }
  .svc-card__top { margin-bottom: 18px; }
  .svc-card__ic { width: 34px; height: 34px; border-radius: var(--r-sm); }
  .svc-card__ic .ic { width: 18px; height: 18px; }
  .svc-card h3 { font-size: .84rem; line-height: 1.2; }
  .svc-card p { font-size: .7rem; margin-top: 5px; }
  .svc-card__more { font-size: .7rem; margin-top: 12px; gap: 5px; }
  .svc-card__more .ic { width: 12px; height: 12px; }

  .works__photo img { height: 132px; }

  .footer__grid { gap: 20px; }
  /* address links + CTA buttons need full width — buttons are white-space:nowrap
     pills that overflow a half-width column */
  .footer__grid > .footer__col:nth-child(3), .footer__cta { grid-column: 1 / -1; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  /* loading intro + hero reveal are one deliberate brand moment — plays in full for every visitor */
  .preloader { transition-duration: .6s !important; }
  .preloader__texts span { animation-duration: 1.5s, .8s !important; }
  .hero__bg, .hero__scrim { transition-duration: 1.1s !important; }
}
