/* Savvy Dental Clinics
   Arabic-first, RTL by default. Layout uses CSS logical properties only, so the
   same rules mirror correctly when <html dir> flips to ltr.
   Letter-spacing is applied to English only (it breaks Arabic joining). */

:root {
  --navy: #2E4F8A;
  --navy-faded: #7F92B8;   /* plan value #8497BC measured 2.9:1 on white, nudged to 3.1:1 */
  --ink: #0A111C;
  --slate: #56657E;
  --mist: #F4F8FB;
  --line: #E4E8EE;
  --star: #FFC53D;
  --paper: #FFFFFF;
  --open: #1F9D55;

  --font-sans: "Hanken Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-accent: "Instrument Serif", "Amiri", Georgia, serif;

  --maxw: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-gap: clamp(80px, 12vw, 160px);

  /* Arabic values by default, English overrides below */
  --lh-body: 1.8;
  --lh-h1: 1.3;
  --lh-statement: 1.45;
  --lh-svc: 1.4;
  --lh-quote: 1.6;
  --track-h1: 0;
  --track-statement: 0;
  --track-svc: 0;
  --em-size: 1em;

  --fs-h1: clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem);
  --fs-statement: clamp(1.75rem, 1rem + 3.2vw, 3.75rem);
  --fs-svc: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --fs-quote: clamp(1.35rem, 1rem + 1.4vw, 2.25rem);
  --fs-panel: clamp(1.15rem, 0.55rem + 1.15vw, 1.9rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;
}

:root:lang(en) {
  --lh-body: 1.6;
  --lh-h1: 1.02;
  --lh-statement: 1.1;
  --lh-svc: 1.1;
  --lh-quote: 1.25;
  --track-h1: -0.04em;
  --track-statement: -0.03em;
  --track-svc: -0.03em;
  --em-size: 1.08em;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-block-start: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.is-locked { overflow: hidden; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-weight: 400; color: var(--navy); text-wrap: balance; }

em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: var(--em-size);
}
/* Arabic has no true italic: emphasis is the switch to upright Naskh, not a slant */
:lang(ar) em {
  font-family: "Amiri", var(--font-accent);
  font-style: normal;
  font-size: 1.1em;
}

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.arrow { display: inline-block; line-height: 1; }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ---------- Shared bits ---------- */

.wordmark {
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--navy);
  font-weight: 500;
  white-space: nowrap;
}
:root:lang(en) .wordmark { letter-spacing: -0.03em; }

.circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--paper);
  transition: background-color .2s;
}
.circle:hover { background: var(--mist); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-block-size: 48px;
  padding-inline: 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  transition: background-color .2s;
}
.btn:hover { background: var(--navy); }
.btn--sm { min-block-size: 44px; padding-inline: 16px; font-size: 0.9375rem; white-space: nowrap; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 32px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: var(--fs-small);
  line-height: 1.4;
}
.pill--white { background: var(--paper); min-block-size: 44px; padding-inline: 20px; font-weight: 500; }

.section {
  max-inline-size: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block-start: var(--section-gap);
  box-sizing: content-box;
}
.section > * { max-inline-size: 100%; }

.rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-end: 16px;
  border-block-end: 1px solid var(--line);
  margin-block-end: clamp(32px, 5vw, 64px);
}
.count {
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  color: var(--slate);
}

/* Reveal on scroll (only when JS is running and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .7s ease, transform .7s ease;
  }
  html.js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Compact bar ---------- */

.bar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 40;
  block-size: 64px;
  background: var(--paper);
  border-block-end: 1px solid var(--line);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .35s ease, visibility 0s linear .35s;
}
.bar.is-on {
  transform: none;
  visibility: visible;
  transition: transform .35s ease, visibility 0s;
}
.bar__in {
  max-inline-size: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  block-size: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bar__end { display: flex; align-items: center; gap: 10px; }
@media (prefers-reduced-motion: reduce) {
  .bar, .bar.is-on { transition: none; }
}

/* ---------- Hero ----------
   Editorial: a very large sentence with two photo "pills" set inside it, then a wide
   bright clinic band carrying the live hours card. No split card, no backdrop. */

.hero {
  max-inline-size: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 16px 0;
  box-sizing: content-box;
}

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-block-size: 64px;
}
.hero__links { display: none; }
.hero__tools { display: flex; align-items: center; gap: 10px; }
.hero__navbook { display: none; }

.hero__title {
  margin-block-start: clamp(40px, 7vw, 96px);
  font-size: clamp(2.5rem, 0.9rem + 6.2vw, 7.25rem);
  line-height: 1.28;
  font-weight: 400;
  text-wrap: balance;
}
:root:lang(en) .hero__title { line-height: 1; letter-spacing: -0.045em; }
:root:lang(en) .hero__title em { letter-spacing: -0.01em; }

/* Photo pill inside the headline */
.hp {
  display: inline-block;
  inline-size: 1.7em;
  block-size: 0.74em;
  margin-inline: 0.04em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: baseline;
  background: var(--mist);
}
:root:lang(ar) .hp { block-size: 0.8em; vertical-align: -0.12em; }
.hp img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.hp--1 img { object-position: 50% 50%; }
.hp--2 img { object-position: 50% 30%; }

.hero__meta {
  display: grid;
  gap: 28px;
  margin-block-start: clamp(28px, 4vw, 56px);
}
.hero__sub { max-inline-size: 38ch; color: var(--slate); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); }
.hero__actions { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 16px; }

.hero__addr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  font-size: var(--fs-small);
  color: var(--slate);
}
.hero__addr:hover span { text-decoration: underline; text-underline-offset: 4px; }
.hero__addr svg { color: var(--navy); flex: none; }

.hero__band {
  position: relative;
  margin-block-start: clamp(32px, 5vw, 64px);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mist);
}
.hero__band img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 45% 60%;
}

/* Hours card (window chrome), sits on the band */
.hc {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-end: 16px;
  inline-size: min(230px, calc(100% - 32px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.hc__strip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-block-end: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--slate);
  line-height: 1.2;
}
.hc__strip i { inline-size: 7px; block-size: 7px; border-radius: 50%; display: block; }
.hc__strip i:nth-child(1) { background: #FF5F57; }
.hc__strip i:nth-child(2) { background: #FEBC2E; }
.hc__strip i:nth-child(3) { background: #28C840; }
.hc__strip span { margin-inline-start: auto; }
.hc__body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.hc__status { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-small); line-height: 1.4; color: var(--slate); }
.dot { flex: none; inline-size: 8px; block-size: 8px; margin-block-start: 0.45em; border-radius: 50%; background: var(--navy-faded); }
.dot.is-open { background: var(--open); }
.hc__hours { font-size: 1.125rem; line-height: 1.3; color: var(--navy); font-weight: 500; }
html:not(.js) .hc__body { display: none; }

@media (min-width: 768px) {
  .hero__navbook { display: inline-flex; }
  .hero__meta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
  }
  .hero__actions { flex-direction: row; align-items: center; gap: 28px; }
  .hero__band { aspect-ratio: 16 / 8; border-radius: 28px; }
  .hc { inset-inline-start: 28px; inset-block-end: 28px; }
}

@media (min-width: 1024px) {
  .hero__nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .hero__nav .wordmark { justify-self: start; }
  .hero__links { display: flex; gap: 36px; }
  .hero__links a {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    font-size: 0.9375rem;
    color: var(--slate);
    transition: color .2s;
  }
  .hero__links a:hover { color: var(--navy); }
  .hero__tools { justify-self: end; }
  .hero__menubtn { display: none; }
  .hero__band { aspect-ratio: 16 / 7; }
}

/* Hero load sequence: text rises, then the pills open inside the sentence */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
  .hp { animation: pill .9s cubic-bezier(.65, 0, .25, 1) both; }
  .hp--1 { animation-delay: .55s; }
  .hp--2 { animation-delay: .75s; }
  .hp img { animation: settle 1.4s ease-out both; animation-delay: inherit; }
  .hero__band { animation: fade .9s ease .5s both; }
  .hero__band img { animation: settle 1.6s ease-out .5s both; }
  .hc { animation: rise .7s cubic-bezier(.2, .7, .2, 1) 1.2s both; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
  @keyframes pill { from { inline-size: 0; margin-inline: 0; } }
}

/* ---------- Intro loader ----------
   English over Arabic on white; a hairline draws between them, then the screen splits along
   it: the top half leaves upwards, the bottom half downwards. Timed in site.js
   (initLoader). The hero's own sequence is held by html.is-loading until the split. */

.loader { display: none; }
html.has-loader .loader {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
html.has-loader { overflow: hidden; scrollbar-gutter: stable; }

.loader__half {
  position: absolute;
  inset-inline: 0;
  block-size: 50%;
  display: flex;
  justify-content: center;
  background: var(--paper);
  will-change: transform;
}
.loader__half--top { inset-block-start: 0; align-items: flex-end; padding-block-end: 14px; }
.loader__half--bottom { inset-block-start: 50%; align-items: flex-start; padding-block-start: 14px; }

.loader__word {
  font-size: clamp(2.75rem, 1.6rem + 4.4vw, 5rem);
  line-height: 1.2;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  opacity: 0;
}
.loader__word:lang(en) { letter-spacing: -0.03em; }

.loader__line {
  position: absolute;
  inset-block-start: 50%;
  inset-inline: 0;
  margin-inline: auto;
  inline-size: min(360px, 70vw);
  block-size: 1px;
  background: var(--navy);
  opacity: 0.35;
  transform: scaleX(0);
}

html.is-loading .rise,
html.is-loading .hp,
html.is-loading .hp img,
html.is-loading .hero__band,
html.is-loading .hero__band img,
html.is-loading .hc { animation-play-state: paused; }

/* ---------- Menu sheet ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  transition: visibility 0s linear .35s;
}
.menu.is-open { visibility: visible; transition: visibility 0s; }
.menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 28, 0.35);
  opacity: 0;
  transition: opacity .3s ease;
}
.menu.is-open .menu__scrim { opacity: 1; }
.menu__sheet {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  inline-size: min(420px, 100%);
  background: var(--paper);
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s ease;
}
[dir="rtl"] .menu__sheet { transform: translateX(-100%); }
.menu.is-open .menu__sheet { transform: none; }
.menu__close { align-self: flex-end; }
.menu__links li { border-block-end: 1px solid var(--line); }
.menu__links li:first-child { border-block-start: 1px solid var(--line); }
.menu__links a {
  display: flex;
  align-items: center;
  min-block-size: 64px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.3;
  color: var(--navy);
}
:root:lang(en) .menu__links a { letter-spacing: -0.03em; }
.menu__foot { margin-block-start: auto; display: grid; gap: 20px; justify-items: start; }
@media (prefers-reduced-motion: reduce) {
  .menu__sheet, .menu__scrim, .menu { transition: none; }
}

.phones { display: grid; gap: 0; }
.phones a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.phones a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about__statement {
  grid-column: 1 / -1;
  font-size: var(--fs-statement);
  line-height: var(--lh-statement);
  color: var(--navy);
  text-wrap: pretty;
  margin-block-end: 16px;
}
:root:lang(en) .about__statement { letter-spacing: var(--track-statement); }

.tile { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--mist); }
.tile img { inline-size: 100%; block-size: 100%; object-fit: cover; }

.rating {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  justify-items: start;
  margin-block-start: 24px;
  min-block-size: 44px;
}
.rating__label { font-size: var(--fs-small); color: var(--slate); }
.rating__row { display: flex; align-items: center; gap: 16px; }
.rating__num {
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  line-height: 1;
  font-weight: 300;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
:root:lang(en) .rating__num { letter-spacing: -0.03em; }
.rating__num small { font-size: 1rem; font-weight: 400; color: var(--slate); margin-inline-start: 4px; letter-spacing: 0; }
.rating__date { font-size: 0.8125rem; color: var(--slate); }
.rating:hover .rating__num { color: var(--ink); }

.stars { position: relative; display: inline-block; line-height: 0; }
.stars__bg, .stars__fg { display: flex; }
.stars svg { inline-size: 20px; block-size: 20px; flex: none; }
.stars__bg { color: var(--line); }
.stars__fg {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: calc(var(--v, 0) * 20%);
  overflow: hidden;
  color: var(--star);
}
.stars svg use { fill: currentColor; }

.circle-lg {
  grid-column: 1 / -1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 96px;
  block-size: 96px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy);
  font-size: 1.75rem;
  margin-block-start: 8px;
  transition: background-color .2s, color .2s;
}
.circle-lg:hover { background: var(--navy); color: #fff; }

@media (min-width: 1024px) {
  .about {
    grid-template-columns: 35% minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0;
    row-gap: 0;
    position: relative;
  }
  .about__statement {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 2;
    margin-inline-end: 128px;
    padding-block-end: 40px;
    margin-block-end: 0;
  }
  .tile--a {
    position: absolute;
    z-index: 1;
    inset-block-start: 12px;
    inset-inline-start: calc(35% - 172px);
    inline-size: 200px;
    block-size: 220px;
    aspect-ratio: auto;
  }
  /* keep the white edge of the smile photo under the start of the text */
  .tile--a img { object-position: 30% 50%; }
  [dir="ltr"] .tile--a img { transform: scaleX(-1); }
  .tile--b {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    position: relative;
    z-index: 1;
    inline-size: 320px;
    block-size: 240px;
    aspect-ratio: auto;
    margin-block-start: -24px;
  }
  .rating {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin-block-start: 0;
  }
  .circle-lg {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-end: 0;
    grid-column: auto;
    margin: 0;
    z-index: 3;
  }
}

/* ---------- Services ---------- */

.svc { display: grid; gap: 32px; }

.acc__item { border-block-start: 1px solid var(--line); }
.acc__item:first-child { border-block-start: 0; }
.acc__item:last-child { border-block-end: 1px solid var(--line); }
.acc__btn {
  inline-size: 100%;
  min-block-size: 64px;
  padding-block: 18px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  text-align: start;
}
.acc__title {
  font-size: var(--fs-svc);
  line-height: var(--lh-svc);
  color: var(--navy-faded);
  transition: color .3s;
}
:root:lang(en) .acc__title { letter-spacing: var(--track-svc); }
.acc__item.is-open .acc__title { color: var(--navy); }
.acc__btn:hover .acc__title { color: var(--navy); }

.acc__sign {
  position: relative;
  flex: none;
  inline-size: 44px;
  block-size: 44px;
  margin-block-end: -8px;
}
.acc__sign::before, .acc__sign::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: 14px;
  block-size: 1.5px;
  margin-inline-start: -7px;
  margin-block-start: -0.75px;
  background: var(--navy);
}
[dir="rtl"] .acc__sign::before, [dir="rtl"] .acc__sign::after { margin-inline-start: 0; margin-inline-end: -7px; inset-inline-start: auto; inset-inline-end: 50%; }
.acc__sign::after { transform: rotate(90deg); transition: transform .25s ease, opacity .25s ease; }
.acc__item.is-open .acc__sign::after { transform: rotate(0); opacity: 0; }

.acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.acc__item.is-open .acc__body { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; min-block-size: 0; }
.acc__detail { font-size: var(--fs-small); color: var(--slate); padding-block-end: 20px; }
.acc__media { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; margin-block-end: 16px; }
.acc__st { font-size: 1.125rem; line-height: var(--lh-quote); color: var(--navy); padding-block-end: 24px; }
@media (prefers-reduced-motion: reduce) {
  .acc__body, .acc__title, .acc__sign::after { transition: none; }
}

.svc__imgs { display: none; }
.svc__sts { display: none; }

.svc__panel {
  background: var(--mist);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.svc__docs {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatars { display: flex; flex: none; }
.avatars span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 48px;
  block-size: 48px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
}
.avatars span + span { margin-inline-start: -12px; }
.svc__docs-label { font-size: 0.8125rem; color: var(--slate); line-height: 1.4; }
.svc__docs-names { color: var(--navy); font-weight: 500; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.svc__cta { align-self: flex-end; }

@media (min-width: 1024px) {
  .svc {
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
  }
  .acc { align-self: start; }
  .acc__media, .acc__st { display: none; }
  .acc__btn { min-block-size: 96px; }

  .svc__imgs {
    display: grid;
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    overflow: hidden;
    background: var(--mist);
  }
  .svc__img {
    grid-area: 1 / 1;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    inset: 0;
  }
  .svc__img.is-active { opacity: 1; }

  .svc__panel { padding: 28px; gap: 24px; border-radius: 24px; }
  .svc__sts { display: grid; }
  .svc__st {
    grid-area: 1 / 1;
    font-size: var(--fs-panel);
    line-height: var(--lh-quote);
    color: var(--navy);
    opacity: 0;
    visibility: hidden;
  }
  .svc__st.is-active { opacity: 1; visibility: visible; }
  .svc__docs {
    padding-block-start: 20px;
    border-block-start: 1px solid var(--line);
    margin-block-start: auto;
    flex-wrap: wrap;
  }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .svc__img { transition: opacity .3s ease; }
  .svc__st { transition: opacity .3s ease, visibility .3s; }
}

/* ---------- Reviews ---------- */

.stack { display: grid; }
.stack > * {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
}
.stack > .is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .stack > * { transition: opacity .3s ease, visibility .3s; }
}

.rev { display: grid; gap: 28px; }
.rev__small { display: none; }
.rev__large {
  aspect-ratio: 4 / 5;
  inline-size: 100%;
  max-inline-size: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--mist);
}
.rev__large img, .rev__small img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.rev__large img { object-position: 50% 25%; }
.rev__large img[data-slide="2"] { object-position: 78% 40%; }
.rev__col { display: flex; flex-direction: column; gap: 32px; }

.rev figure { margin: 0; }
.rev blockquote {
  font-size: var(--fs-quote);
  line-height: var(--lh-quote);
  color: var(--navy);
  text-wrap: pretty;
}
.rev blockquote::before {
  content: "";
  display: inline-block;
  inline-size: 2px;
  block-size: 40px;
  background: var(--navy);
  margin-inline-end: 16px;
  vertical-align: -0.55em;
}
.rev figcaption { margin-block-start: 20px; text-align: end; color: var(--navy); font-weight: 500; }

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-block-start: clamp(32px, 5vw, 56px);
  padding-block-start: 12px;
  border-block-start: 1px solid var(--line);
}
.pager__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: 44px;
  color: var(--navy);
  font-weight: 500;
}
.pager__btn--prev { justify-self: start; }
.pager__btn--next { justify-self: end; }
.pager__btn:hover span:not(.arrow) { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 1024px) {
  .rev {
    grid-template-columns: clamp(120px, 15vw, 200px) clamp(260px, 32vw, 415px) minmax(0, 1fr);
    column-gap: 32px;
    align-items: end;
  }
  .rev__small {
    display: grid;
    aspect-ratio: 200 / 245;
    border-radius: 20px;
    overflow: hidden;
    background: var(--mist);
  }
  .rev__large { aspect-ratio: 415 / 545; max-inline-size: none; }
  .rev__col { align-self: stretch; justify-content: space-between; padding-block-start: 8px; }
}

/* ---------- Contact ---------- */

.contact { display: grid; gap: 40px; }
.contact__main { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.contact__h {
  font-size: var(--fs-svc);
  line-height: var(--lh-svc);
  text-wrap: balance;
  max-inline-size: 18ch;
}
:root:lang(en) .contact__h { letter-spacing: var(--track-svc); max-inline-size: 16ch; }
.phones--lg a { font-size: 1.25rem; }
.social { display: flex; gap: 24px; flex-wrap: wrap; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  font-size: var(--fs-small);
  color: var(--slate);
}
.social a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

.contact__panel {
  background: var(--mist);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.label { font-size: var(--fs-small); color: var(--slate); }
.hours { inline-size: 100%; border-collapse: collapse; }
.hours th, .hours td {
  padding-block: 10px;
  font-weight: 400;
  color: var(--slate);
  border-block-end: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.hours th { text-align: start; }
.hours td { text-align: end; }
.hours tr:last-child th, .hours tr:last-child td { border-block-end: 0; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--navy); font-weight: 500; }
.contact__panel hr { border: 0; border-block-start: 1px solid var(--line); inline-size: 100%; margin-block: 8px; }
.contact__addr { color: var(--ink); }
.textlink { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; color: var(--navy); font-weight: 500; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 1024px) {
  .contact { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .contact__panel { padding: 36px; }
}

/* ---------- Footer ---------- */

.foot {
  max-inline-size: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-block-start: clamp(64px, 8vw, 112px);
  box-sizing: content-box;
}
.foot__in {
  border-block-start: 1px solid var(--line);
  padding-block: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: var(--fs-small);
}
.foot__in .wordmark { font-size: 1.125rem; }
