/* ==========================================================================
   רונן שאער, עורך דין — דף נחיתה
   שנהב, זהב ודיו כחולה (צבעי הלוגו), עם אזורים בכחול כהה
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ivory: #f1e8d8;   /* the page: a soft warm beige, like heavy writing paper */
  --paper: #faf6ee;   /* lighter cards that sit on the beige */
  --sand: #eee6d6;
  --white: #ffffff;

  --ink: #14203d;
  --ink-2: #444c5e;
  --ink-3: #5f6676;
  --line: #dacdb4;
  --line-strong: #c8b896;

  --gold: #b38b45;
  --gold-deep: #9c7634;
  --gold-ink: #7c5d25;
  --gold-lt: #d8b675;
  --gold-hi: #ead39f;

  --navy: #0f1a33;
  --navy-800: #16264a;
  --navy-950: #0a1224;

  --on-navy: #f4efe6;
  --on-navy-2: rgba(244, 239, 230, .76);
  --on-navy-3: rgba(244, 239, 230, .62);
  --rule-navy: rgba(216, 182, 117, .32);
  --rule-navy-soft: rgba(244, 239, 230, .13);

  /* a faint warm paper grain, like the stock the logo is printed on */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --font-display: "Bellefair", "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --font-sans: "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-hebrew: "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --col-gap: clamp(16px, 2vw, 32px);
  --header-h: 84px;
  --section-y: clamp(72px, 8vw, 124px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--sand);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background-color: var(--ivory);
  background-image: var(--grain);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
p, dd, li { text-wrap: pretty; }
h1, h2, h3, .t-statement { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[lang="ar"] { font-family: var(--font-arabic); }
[lang="he"] { font-family: var(--font-hebrew); }

::selection { background: var(--gold-lt); color: var(--navy-950); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
[data-theme="dark"] :focus-visible, .a11y :focus-visible, .mobile-bar :focus-visible { outline-color: var(--gold-lt); }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; right: 12px; z-index: 300;
  padding: 10px 18px; background: var(--navy); color: var(--on-navy);
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Type ---------- */
.label {
  font-family: var(--font-sans); font-size: .8125rem; font-weight: 500;
  letter-spacing: .07em; line-height: 1.5; color: var(--gold-ink);
}
[data-theme="dark"] .label { color: var(--gold-lt); }

.t-statement {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.22; letter-spacing: 0; color: var(--ink);
}
[data-theme="dark"] .t-statement { color: var(--on-navy); }

.line { display: block; overflow: hidden; padding-block: .12em .18em; margin-block: -.12em -.18em; }
.line > span { display: inline-block; }
.ch { display: inline-block; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .1em .16em; margin-block: -.1em -.16em; }
.wm__i { display: inline-block; }

.link { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.link::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: -2px; height: 1px;
  background: currentColor; opacity: .35; transition: opacity .3s;
}
.link:hover::after { opacity: 1; }
.link .icon { width: 15px; height: 15px; }

.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars .icon { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 58px; padding: 0 30px;
  font-size: 1rem; font-weight: 500; line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .7s var(--ease);
}
.btn:hover::before { transform: scaleX(1); }

.btn--navy { background: var(--navy); color: var(--on-navy); }
.btn--navy .icon { color: var(--gold-lt); transition: color .5s var(--ease); }
.btn--navy::before { background: var(--gold-lt); }
.btn--navy:hover { color: var(--navy-950); }
.btn--navy:hover .icon { color: var(--navy-950); }

.btn--gold { background: var(--gold-lt); color: var(--navy-950); }
.btn--gold::before { background: var(--on-navy); }

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

.btn--outline { background: transparent; color: var(--on-navy); border-color: var(--rule-navy); }
.btn--outline::before { background: var(--gold-lt); }
.btn--outline:hover { color: var(--navy-950); border-color: var(--gold-lt); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
}
.header.is-solid { background-color: rgba(241, 232, 216, .97); border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-101%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.wordmark { display: flex; align-items: center; gap: 14px; line-height: 1; }
.wordmark__logo { width: auto; height: 42px; flex: none; }
.wordmark__text { display: flex; flex-direction: column; gap: 5px; }
.wordmark__name { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; white-space: nowrap; color: var(--ink); }
.wordmark__role { font-size: .75rem; letter-spacing: .04em; color: var(--ink-3); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.nav__link { position: relative; padding: 4px 0; font-size: .9375rem; color: var(--ink-2); white-space: nowrap; transition: color .3s; }
.nav__link::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right center; transition: transform .5s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 24px; }
.header__phone { font-size: .9375rem; font-weight: 500; font-feature-settings: "tnum" 1; color: var(--ink); white-space: nowrap; transition: color .3s; }
.header__phone:hover { color: var(--gold-ink); }
.header__cta { height: 44px; padding: 0 18px; font-size: .9375rem; gap: 10px; }

/* language switch (Hebrew and Arabic versions of every page) */
.lang-switch {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 1rem; font-weight: 500; line-height: 1; white-space: nowrap; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 7px;
  transition: color .3s, text-decoration-color .3s;
}
.lang-switch:hover { color: var(--gold-ink); text-decoration-color: currentColor; }
.lang-switch[lang="ar"] { font-family: var(--font-arabic); font-size: 1.0625rem; }
.lang-switch[lang="he"] { font-family: var(--font-hebrew); }

.menu-btn { display: none; position: relative; width: 44px; height: 44px; }
.menu-btn span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.menu-open .header { background-color: var(--ivory); border-bottom-color: var(--line); transform: none; }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 95;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 16px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background-color: var(--ivory); background-image: var(--grain); color: var(--ink);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s .5s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.menu__links a {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.4rem); line-height: 1.15; color: var(--ink);
}
.menu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.menu__foot .btn { width: 100%; }

/* ---------- Ornament (guilloche) ---------- */
.guilloche {
  width: 100%; height: 100%; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: .6;
}
/* the engraving fades out towards its rim instead of ending on a hard circle */
.hero__ornament, .medical__ornament, .reviews__ornament, .contact__ornament, .lp-hero__ornament, .lp-portrait__ornament {
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  pointer-events: none;
}
.guilloche use { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(16px, 4vh, 56px));
  padding-bottom: clamp(24px, 4vh, 44px);
}
.hero__grid { align-items: center; row-gap: 48px; flex: 1; }
.hero__text { grid-column: 1 / 7; }
.hero__title { font-weight: 400; }
.hero__kicker {
  display: block;
  font-size: .875rem; font-weight: 500; letter-spacing: .08em; color: var(--gold-ink);
}
.hero__name {
  display: block; margin-top: 10px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.4rem, min(7.6vw, 12.5vh), 8.2rem); line-height: .98; letter-spacing: -.005em;
  color: var(--ink);
}
/* the title before the name: smaller and in gold, on the same baseline */
.hero__name .hero__honor { font-size: .4em; color: var(--gold-deep); }
.hero__latin {
  margin-top: 14px;
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-ink); text-align: right;
}
.hero__lead { margin-top: 24px; max-width: 34em; font-size: 1.125rem; line-height: 1.8; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-top: 32px; }
.hero__call { display: inline-flex; flex-direction: column; gap: 4px; }
.hero__call-label { font-size: .8125rem; color: var(--ink-3); }
.hero__call-num {
  font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--ink);
  transition: color .3s;
}
.hero__call:hover .hero__call-num { color: var(--gold-ink); }

.hero__media { grid-column: 8 / 13; position: relative; justify-self: center; width: 100%; }
.hero__ornament {
  position: absolute; z-index: 0; top: 50%; left: 50%;
  width: 165%; aspect-ratio: 1; transform: translate(-50%, -50%);
  color: var(--gold); opacity: .34;
}
.hero__plate { position: relative; z-index: 1; width: fit-content; max-width: 100%; margin-inline: auto; }
/* the gold hairline sits outside the photo, like a picture frame, so it never crosses it */
.hero__plate::before, .about__plate::before {
  content: ""; position: absolute; inset: -12px; pointer-events: none;
  border: 1px solid rgba(179, 139, 69, .55);
}
/* 2:3 is the photo's own shape, so it is shown from above the head to below the shoes */
.hero__frame {
  position: relative; z-index: 1; overflow: hidden;
  height: min(68vh, 680px); aspect-ratio: 2 / 3; max-width: 100%;
  background: #6b4a2c;
  box-shadow: 0 50px 80px -50px rgba(20, 32, 61, .55);
}
.hero__frame img {
  position: absolute; top: -5%; left: 0; width: 100%; height: 110%;
  object-fit: cover; object-position: 50% 50%;
}

.hero__facts {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(32px, 5vh, 56px); padding-top: 20px;
}
.hero__facts::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 1px; background: var(--line-strong);
  transform: scaleX(var(--rule, 1)); transform-origin: right center;
}
.hero__facts > div { padding-inline-end: 12px; }
.hero__facts > div + div { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.hero__facts dt { font-size: .8125rem; color: var(--ink-3); }
.hero__facts dd {
  margin-top: 6px; font-family: var(--font-display); font-size: clamp(1.4rem, 1.9vw, 1.9rem); line-height: 1.1;
  color: var(--ink); font-feature-settings: "lnum" 1;
}
.hero__facts dd [lang="ar"] { font-size: .8em; }
.hero__facts small { display: block; margin-top: 6px; font-family: var(--font-sans); font-size: .8125rem; line-height: 1.4; color: var(--ink-3); }
.hero__rating { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); transition: color .3s; }
.hero__rating:hover { color: var(--gold-ink); }

/* ---------- A personal word ---------- */
.credo {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(84px, 10vw, 156px);
  background:
    radial-gradient(56% 90% at 50% 0%, rgba(37, 62, 116, .62) 0%, rgba(29, 50, 96, .2) 52%, rgba(15, 26, 51, 0) 82%),
    var(--navy);
  color: var(--on-navy);
  text-align: center;
}
.credo__inner { display: flex; flex-direction: column; align-items: center; }
.credo__rule { width: 1px; height: clamp(52px, 6vw, 88px); background: var(--gold-lt); transform-origin: center top; }
.credo__figure { max-width: 1060px; margin-top: clamp(30px, 3.4vw, 46px); }
.credo__quote p {
  --fill-from: #6f7790; /* 3.9:1 on the navy, so the text stays readable at every point of the fill */
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.05rem, 4.4vw, 4.3rem); line-height: 1.24; color: var(--on-navy);
}
.credo__line { display: block; text-wrap: balance; }
.credo__by { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: clamp(30px, 3.2vw, 44px); }
.credo__name { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--gold-lt); }
.credo__role { font-size: .8125rem; letter-spacing: .08em; color: var(--on-navy-3); }

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: var(--section-y); }
.sec-head { position: relative; padding-top: 26px; row-gap: 20px; }
.sec-head::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 1px; background: var(--line-strong);
  transform: scaleX(var(--rule, 1)); transform-origin: right center;
}
.sec-head > .label { grid-column: 1 / 4; padding-top: .7em; }
.sec-head > :not(.label) { grid-column: 4 / 13; }
[data-theme="dark"] .sec-head::before { background: var(--rule-navy); }

/* ---------- Practice areas ---------- */
.practice {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 6vw, 88px) clamp(32px, 5vw, 80px);
  margin-top: clamp(56px, 7vw, 100px);
}
.practice__group { position: relative; padding-top: 26px; border-top: 1px solid var(--ink); }
.practice__title {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 2.7vw, 2.6rem); line-height: 1.1; color: var(--ink);
}
/* each group's emblem: a thin gold line drawing inside a thin gold ring, like a seal */
.practice__icon {
  flex: none; display: grid; place-items: center;
  width: 64px; height: 64px; border: 1px solid rgba(179, 139, 69, .65); border-radius: 50%;
  color: var(--gold-deep);
}
.practice__icon svg { width: 32px; height: 32px; }
.practice__list { margin-top: 18px; }
/* each service: its name, and under it a short plain explanation */
.practice__list li { position: relative; padding: 18px 0; border-bottom: 1px solid var(--line); }
.practice__list h4 { font-size: 1.125rem; font-weight: 500; line-height: 1.45; color: var(--ink); transition: color .4s; }
.practice__list p { margin-top: 6px; max-width: 44em; font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
/* a gold hairline draws under the entry the pointer rests on */
@media (hover: hover) and (min-width: 768px) {
  .practice__list li::after {
    content: ""; position: absolute; right: 0; left: 0; bottom: -1px; height: 1px; background: var(--gold-deep);
    transform: scaleX(0); transform-origin: right center; transition: transform .8s var(--ease);
  }
  .practice__list li:hover::after { transform: scaleX(1); }
  .practice__list li:hover h4 { color: var(--gold-ink); }
}
.practice__group--feature { border-top-color: var(--gold-deep); }
.practice__group--feature::after {
  content: ""; position: absolute; top: -1px; right: 0; width: 120px; height: 3px; background: var(--gold-deep);
}
.practice__more { margin-top: 22px; font-weight: 500; color: var(--ink); }

/* quick contact, right after the practice areas, so nobody has to scroll to the bottom to leave details */
.quick {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 20px 56px; align-items: end;
  margin-top: clamp(56px, 6vw, 88px); padding: clamp(28px, 3.4vw, 44px);
  background-color: var(--paper); background-image: var(--grain);
  border: 1px solid var(--line-strong);
}
.quick__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.1; color: var(--ink); }
.quick__text p { margin-top: 10px; color: var(--ink-2); }
.quick__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0 24px; align-items: end; }
.quick__form .field { margin-bottom: 0; }
.quick__form .btn { height: 52px; }
.quick__form .form__status { grid-column: 1 / -1; color: var(--gold-ink); }
.quick__note { grid-column: 1 / -1; font-size: .8125rem; line-height: 1.6; color: var(--ink-3); }
.quick__note .link { color: var(--ink); }
.quick .req { color: var(--gold-ink); }
.quick .field label { color: var(--ink-3); }
/* field lines dark enough (over 3:1) to show where to type */
.quick .field input { color: var(--ink); border-bottom-color: var(--ink-3); }
.quick .field input:focus { border-bottom-color: var(--navy); box-shadow: 0 1px 0 0 var(--navy); }
.quick .field.has-error input { border-bottom-color: #a4231b; }
.quick .field__error { color: #a4231b; }

/* ---------- What happened: one tap from a situation to its topic page ---------- */
/* same language as the topic-page facts: a hairline with a short gold bar that runs the full width on hover */
.situations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 4.5vw, 64px); }
.situation {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 16px;
  height: 100%; padding: 22px 0 30px; border-top: 1px solid var(--line-strong); color: var(--ink);
}
.situation::before {
  content: ""; position: absolute; top: -1px; right: 0; width: 64px; height: 2px; background: var(--gold-deep);
  transition: width .7s var(--ease);
}
.situation__label { grid-column: 1 / -1; font-size: .8125rem; font-weight: 500; letter-spacing: .04em; color: var(--gold-ink); }
.situation__text { margin-top: 10px; font-family: var(--font-display); font-size: clamp(1.45rem, 1.9vw, 1.75rem); line-height: 1.25; }
.situation .icon { width: 22px; height: 22px; margin-bottom: .35em; color: var(--gold-deep); transition: transform .5s var(--ease); }
.situation:focus-visible::before { width: 100%; }
@media (hover: hover) {
  .situation:hover::before { width: 100%; }
  .situation:hover .icon { transform: translateX(-6px); }
}
@media (max-width: 1023px) { .situations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .situations { grid-template-columns: 1fr; margin-top: 28px; }
  .situation { padding: 18px 0 20px; }
  .situation__text { font-size: 1.4rem; }
}
html[lang="ar"] .situation__text { line-height: 1.5; }

/* ---------- Page not found (404.html, ar/404.html) ---------- */
.notfound .situations { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
.notfound__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
.notfound__other { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 767px) { .notfound .situations { grid-template-columns: 1fr; } }

/* ---------- Medical institute and the appeals committee ---------- */
.medical {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: var(--section-y);
  background:
    radial-gradient(42% 58% at 24% 58%, rgba(37, 62, 116, .85) 0%, rgba(29, 50, 96, .32) 48%, rgba(15, 26, 51, 0) 78%),
    linear-gradient(180deg, #111e3b 0%, var(--navy) 60%, #0b1429 100%);
  color: var(--on-navy);
}
/* the head lines up with the heading; the lower body fades out (a gradient in the SVG mask),
   so the figure doesn't have to reach the bottom of the section */
.medical__figure {
  position: absolute; z-index: 0; top: var(--section-y);
  left: max(2vw, calc(50vw - 690px));
  height: min(1000px, calc(100% - var(--section-y))); aspect-ratio: 2 / 3;
}
.medical__portrait { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.medical__ornament {
  position: absolute; z-index: 0; left: 50%; top: 36%;
  width: 165%; aspect-ratio: 1; transform: translate(-50%, -50%);
  color: var(--gold-lt); opacity: .17;
}
.medical__content { position: relative; z-index: 1; }
.medical__text { width: 56%; }
.medical__title {
  margin-top: 18px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 5rem); line-height: 1.04; color: var(--on-navy);
}
.medical__intro { margin-top: 26px; max-width: 36em; font-size: 1.125rem; line-height: 1.8; color: var(--on-navy-2); }

.route { position: relative; margin-top: clamp(48px, 6vw, 76px); }
.route::before, .route::after {
  content: ""; position: absolute; top: 10px; bottom: 44px; right: 7px; width: 1px;
}
.route::before { background: var(--rule-navy-soft); }
.route::after { background: var(--gold-lt); transform: scaleY(var(--draw, 1)); transform-origin: center top; }
.route__step { position: relative; padding-inline-start: 50px; padding-bottom: 38px; }
.route__dot {
  position: absolute; top: 8px; right: 0; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--gold-lt); background: var(--navy);
  transition: background-color .5s var(--ease);
}
.route__step.is-on .route__dot { background: var(--gold-lt); }
.route__when { display: flex; align-items: baseline; gap: 8px; font-size: .9375rem; font-weight: 500; letter-spacing: .03em; color: var(--gold-lt); }
.route__num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-weight: 400; font-feature-settings: "lnum" 1; }
.route__step h3 {
  margin-top: 6px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.1; color: var(--on-navy);
}
.route__step p:not(.route__when) { margin-top: 10px; max-width: 36em; color: var(--on-navy-2); }
.medical__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 8px; }
.medical__cta p { max-width: 26em; font-size: .875rem; line-height: 1.6; color: var(--on-navy-3); }

/* ---------- About ---------- */
/* the photo starts level with the heading: its gold frame (12px outside the photo) sits on the top rule */
.about__grid { align-items: start; row-gap: 56px; }
.about__plate { grid-column: 9 / 13; grid-row: 1; position: relative; margin-top: 12px; }
.about__media {
  position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #4a4a4c;
  box-shadow: 0 50px 80px -50px rgba(20, 32, 61, .5);
}
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.about__text { grid-column: 1 / 8; grid-row: 1; }
.about__head { position: relative; padding-top: 26px; }
.about__head::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 1px; background: var(--line-strong);
  transform: scaleX(var(--rule, 1)); transform-origin: right center;
}
.about__head .t-statement { margin-top: 18px; font-size: clamp(1.9rem, 2.9vw, 2.75rem); }
.about__body { display: grid; gap: 18px; margin-top: 36px; }
.about__body p { font-size: 1.0625rem; color: var(--ink-2); }
.about__body .about__ar { color: var(--ink); font-size: 1.125rem; }
/* how it works, folded into the about section */
.about__steps { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ink); }
.about__steps-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.1; color: var(--ink); }
.mini-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 6px; }
.mini-step { position: relative; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mini-step::after {
  content: ""; position: absolute; top: -1px; right: 0; width: 100%; height: 2px; background: var(--gold-deep);
  transform: scaleX(var(--p, 0)); transform-origin: right center;
}
.mini-step__ord { font-size: .8125rem; font-weight: 500; letter-spacing: .04em; color: var(--gold-ink); }
.mini-step h4 { margin-top: 4px; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; color: var(--ink); }
.mini-step p { margin-top: 4px; font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }

/* ---------- Reviews ---------- */
.reviews { overflow: hidden; background: var(--navy); color: var(--on-navy); }
.reviews > .container { position: relative; z-index: 1; }
.reviews__ornament {
  position: absolute; z-index: 0; top: 50%; left: 0;
  width: min(110vh, 1000px); aspect-ratio: 1;
  transform: translate(-46%, -50%);
  color: var(--gold-lt); opacity: .13;
}
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 56px; }
.reviews__score { display: flex; align-items: center; gap: 22px; }
.score {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4.4rem, 6.4vw, 6rem); line-height: .84; letter-spacing: -.01em;
  color: var(--gold-lt); font-feature-settings: "lnum" 1;
}
.score__meta { display: grid; gap: 6px; }
.score__stars .stars { color: var(--gold-lt); gap: 4px; }
.score__stars .icon { width: 17px; height: 17px; }
.score__caption { font-size: .875rem; color: var(--on-navy-2); }
.score__link { font-size: .875rem; font-weight: 500; color: var(--gold-hi); }

.reviews__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  margin-top: clamp(44px, 5vw, 72px);
}
.reviews__list:focus-visible { outline-offset: 6px; }
.review {
  display: flex; flex-direction: column;
  padding: 28px 28px 24px; background: var(--navy-800);
  border-top: 1px solid var(--gold-lt);
}
.review--feature { grid-row: span 2; }
.review__stars { color: var(--gold-lt); }
.review__stars .icon { width: 13px; height: 13px; }
.review__text { margin-top: 16px; }
.review__text p { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5; color: var(--on-navy); }
.review--feature .review__text p { font-size: clamp(1.55rem, 2.1vw, 2rem); line-height: 1.38; }
.review__text[lang="ar"] p { font-family: var(--font-arabic); font-size: 1.0625rem; line-height: 1.85; }
.review__by { margin-top: auto; padding-top: 20px; font-size: .875rem; font-weight: 500; letter-spacing: .03em; color: var(--gold-lt); }
.review__note { display: block; margin-top: 4px; font-size: .8125rem; font-weight: 400; color: var(--on-navy-3); }
.reviews__source { margin-top: 22px; font-size: .8125rem; color: var(--on-navy-3); }

/* ---------- FAQ ---------- */
.faq__list { grid-column: 4 / 13; margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 24px;
  padding: 20px 0; text-align: right; color: var(--ink);
  font-family: var(--font-display); font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.35;
  transition: color .3s;
}
.faq__q:hover { color: var(--gold-ink); }
.faq__icon { position: relative; width: 16px; height: 16px; justify-self: end; color: var(--gold-ink); }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; margin-top: -.75px;
  background: currentColor; transition: transform .5s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq__a > div { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s .6s; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > div { visibility: visible; transition-delay: 0s; }
.faq__a p { max-width: 46em; padding-bottom: 28px; color: var(--ink-2); }
.faq__a p + p { margin-top: -14px; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; background: var(--navy); color: var(--on-navy); }
.contact > .container { position: relative; z-index: 1; }
.contact__ornament {
  position: absolute; z-index: 0; left: 0; bottom: 0;
  width: min(110vh, 1000px); aspect-ratio: 1;
  transform: translate(-48%, 44%);
  color: var(--gold-lt); opacity: .14;
}
.contact__grid { margin-top: clamp(52px, 6vw, 92px); row-gap: 56px; align-items: start; }
.contact__main { grid-column: 1 / 7; }
.contact__phone {
  display: inline-block;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 5.4vw, 6rem);
  line-height: 1; color: var(--on-navy); font-feature-settings: "lnum" 1;
  transition: color .4s;
}
.contact__phone:hover { color: var(--gold-hi); }
.contact__rows { margin-top: 36px; border-top: 1px solid var(--gold-lt); }
.contact__rows > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--rule-navy-soft); }
.contact__rows dt { font-size: .875rem; color: var(--on-navy-3); }
.contact__rows dd { font-size: 1rem; overflow-wrap: anywhere; }
.contact__rows .link { color: var(--on-navy); }

.form { grid-column: 8 / 13; }
.form__title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.1; color: var(--on-navy); }
.form__sub { margin: 10px 0 30px; font-size: .9375rem; color: var(--on-navy-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { position: relative; margin-bottom: 22px; }
.field label { display: block; font-size: .8125rem; color: var(--on-navy-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(244, 239, 230, .45); border-radius: 0;
  background: transparent; color: var(--on-navy); font-size: 1.0625rem; outline: none;
  appearance: none; -webkit-appearance: none; transition: border-color .3s;
}
.field input[dir="ltr"] { text-align: right; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--gold-lt); }
/* in focus the line under the field doubles to 2px, so focus never shows by colour alone */
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 1px 0 0 var(--gold-lt); }
.field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.field select { cursor: pointer; }
.field select option { color: var(--ink); background: var(--white); }
.field--select::after {
  content: ""; position: absolute; left: 4px; bottom: 21px; width: 7px; height: 7px; pointer-events: none;
  border-left: 1.5px solid var(--gold-lt); border-bottom: 1.5px solid var(--gold-lt);
  transform: rotate(-45deg);
}
.field.has-error input { border-bottom-color: #e58b8b; }
.field__error { display: block; margin-top: 8px; font-size: .8125rem; color: #f0a3a3; }
.field__error:empty { display: none; }
.form .btn { width: 100%; margin-top: 8px; }
.form__note { margin-top: 14px; font-size: .8125rem; line-height: 1.6; color: var(--on-navy-3); }
.form__note .link { color: var(--on-navy); }
.req { color: var(--gold-lt); }
.form__status { margin-top: 12px; font-size: .9375rem; color: var(--gold-hi); }
.form__status:empty { display: none; }

/* ---------- Footer ---------- */
/* the bottom padding keeps the last line clear of the accessibility button in the corner */
.footer { background: var(--navy-950); color: var(--on-navy); padding-block: 0 96px; }
.footer__top { row-gap: 40px; padding-top: 60px; border-top: 1px solid var(--rule-navy); }
.footer__brand { grid-column: 1 / 4; }
.footer__logo { width: 190px; height: auto; }
.footer__text { margin-top: 22px; max-width: 26em; font-size: .9375rem; color: var(--on-navy-2); }
.footer__lang { margin-top: 12px; font-size: 1rem; }
.footer__lang a { color: var(--gold-hi); text-decoration: underline; text-decoration-color: var(--rule-navy); text-underline-offset: 5px; transition: color .3s; }
.footer__lang a:hover { color: var(--on-navy); }
.footer__col { grid-column: span 2; }
.footer__col--wide { grid-column: span 3; }
.footer h3 { margin-bottom: 14px; font-size: .8125rem; font-weight: 500; letter-spacing: .05em; color: var(--gold-lt); }
.footer__links { display: grid; gap: 8px; font-size: .9375rem; }
.footer__links a { color: var(--on-navy-2); transition: color .3s; }
.footer__links a:hover { color: var(--on-navy); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--rule-navy-soft);
  font-size: .8125rem; color: var(--on-navy-3);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__legal a {
  color: var(--on-navy-2); text-decoration: underline; text-decoration-color: var(--rule-navy);
  text-underline-offset: 4px; transition: color .3s;
}
.footer__legal a:hover { color: var(--on-navy); }
.menu__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; font-size: .875rem; }
.menu__legal a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

/* ---------- Legal pages (accessibility, privacy, terms) ---------- */
.legal-header { background-color: var(--ivory); color: var(--ink); border-bottom: 1px solid var(--line); }
.legal-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-header__actions { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.legal-header__back { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--ink); transition: color .3s; }
.legal-header__back:hover { color: var(--gold-ink); }
.legal-header__back .icon { transform: scaleX(-1); }
/* narrow phones: the logo alone (it links home), so the back link stays on one line */
@media (max-width: 480px) {
  .legal-header .wordmark__text { display: none; }
  .legal-header__back { white-space: nowrap; }
}

.legal { padding-block: clamp(56px, 8vw, 112px) var(--section-y); }
.legal__inner { max-width: 860px; }
.legal__title {
  margin-top: 14px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1.05; color: var(--ink);
}
.legal__updated { margin-top: 18px; font-size: .9375rem; color: var(--ink-3); }
.legal__intro { margin-top: 30px; font-size: 1.1875rem; line-height: 1.75; color: var(--ink); }
.legal__body { margin-top: 48px; border-top: 1px solid var(--ink); }
.legal__body section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.legal__body h2 {
  margin-bottom: 14px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.65rem, 2.4vw, 2.05rem); line-height: 1.2; color: var(--ink);
}
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p, .legal__body p + dl, .legal__body dl + p { margin-top: 14px; }
.legal__body ul { display: grid; gap: 10px; }
.legal__body li { position: relative; padding-inline-start: 22px; }
.legal__body li::before {
  content: ""; position: absolute; top: .82em; inset-inline-start: 0; width: 9px; height: 1px; background: var(--gold-ink);
}
.legal__body a, .legal__intro a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal__body strong { color: var(--ink); font-weight: 500; }
.legal__contact { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 28px; }
.legal__contact dt { font-size: .9375rem; color: var(--ink-3); }
.legal__contact dd { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.legal__ar { color: var(--ink); }
.legal-footer .footer__bottom { margin-top: 0; border-top: 0; padding-top: 28px; }

/* ---------- Floating contact ---------- */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold-lt); border: 1px solid var(--rule-navy);
  box-shadow: 0 10px 30px -12px rgba(10, 18, 36, .5);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .4s, transform .6s var(--ease), background-color .3s, color .3s;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: var(--gold-lt); color: var(--navy-950); }
.fab .icon { width: 25px; height: 25px; }

.mobile-bar { display: none; }

/* ---------- Accessibility menu ---------- */
/* bottom-left: clear of the hero's facts row, which starts at the right edge */
.a11y { position: fixed; z-index: 110; left: 24px; bottom: 24px; }
.a11y__toggle {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold-lt); border: 1px solid var(--rule-navy);
  box-shadow: 0 10px 30px -12px rgba(10, 18, 36, .5);
  transition: background-color .3s, color .3s, border-color .3s;
}
.a11y__toggle:hover, .a11y__toggle[aria-expanded="true"] { background: var(--navy-800); color: var(--gold-hi); border-color: var(--gold-lt); }
.a11y__toggle .icon { width: 28px; height: 28px; }
.a11y__panel {
  position: absolute; left: 0; bottom: calc(100% + 10px);
  width: 296px; padding: 20px 22px 18px;
  background: var(--navy-950); color: var(--on-navy); border: 1px solid var(--rule-navy);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
}
.a11y__panel[hidden] { display: none; }
.a11y__title { margin-bottom: 12px; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; color: var(--on-navy); }
.a11y__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--rule-navy-soft); font-size: .9375rem;
}
.a11y__stepper { display: flex; align-items: center; gap: 6px; }
.a11y__stepper button {
  width: 40px; height: 40px; border: 1px solid var(--rule-navy); color: var(--on-navy);
  font-size: 1rem; font-weight: 500; transition: border-color .3s, color .3s;
}
.a11y__stepper button:hover { border-color: var(--gold-lt); color: var(--gold-hi); }
.a11y__size { min-width: 52px; text-align: center; font-feature-settings: "tnum" 1; }
.a11y__opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 0; border-top: 1px solid var(--rule-navy-soft);
  text-align: right; font-size: .9375rem; color: var(--on-navy);
}
.a11y__opt::after {
  content: ""; flex: none; width: 16px; height: 16px; border: 1px solid var(--gold-lt);
  transition: background-color .2s;
}
.a11y__opt[aria-pressed="true"]::after { background: var(--gold-lt); box-shadow: inset 0 0 0 3px var(--navy-950); }
.a11y__opt:hover { color: var(--white); }
.a11y__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--rule-navy-soft); font-size: .875rem;
}
.a11y__foot a, .a11y__reset { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 4px; }
.a11y__reset { color: var(--on-navy-2); }

/* Accessibility modes (set on <html> by the menu) */
html.a11y-contrast {
  --ink-2: #14203d;
  --ink-3: #14203d;
  --line: #6f6556;
  --line-strong: #14203d;
  --gold: #5a4310;
  --gold-deep: #5a4310;
  --gold-ink: #5a4310;
  --on-navy-2: #ffffff;
  --on-navy-3: #ffffff;
  --rule-navy: rgba(255, 255, 255, .6);
  --rule-navy-soft: rgba(255, 255, 255, .45);
  --gold-lt: #ecca85;
  --gold-hi: #f5e0af;
  --grain: none;
}
html.a11y-contrast .hero__ornament, html.a11y-contrast .medical__ornament,
html.a11y-contrast .reviews__ornament, html.a11y-contrast .contact__ornament { display: none; }
html.a11y-contrast .medical, html.a11y-contrast .credo { background: var(--navy-950); }
html.a11y-contrast [data-fill] .w { color: inherit !important; }

html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px !important; }
html.a11y-links .link::after { display: none; }

@media (min-width: 1024px) and (max-width: 1279px) {
  html.a11y-size-2 .nav, html.a11y-size-3 .nav { display: none; }
  html.a11y-size-2 .menu-btn, html.a11y-size-3 .menu-btn { display: block; }
}

html.a11y-font { --font-display: var(--font-sans); }
html.a11y-font .hero__latin { letter-spacing: .08em; }

html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}

/* ---------- Topic pages (one page per subject: administrative suspension, drunk driving, medical institute) ---------- */
.lp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(36px, 7vh, 84px)) 0 clamp(48px, 6vw, 80px);
}
.lp-hero__ornament {
  position: absolute; z-index: -1; top: 52%; left: 0;
  width: min(110vh, 980px); aspect-ratio: 1; transform: translate(-38%, -50%);
  color: var(--gold); opacity: .26;
}
.lp-hero__grid { align-items: center; row-gap: 48px; }
.lp-hero__text { grid-column: 1 / 7; }
.lp-hero__kicker { font-size: .875rem; font-weight: 500; letter-spacing: .08em; color: var(--gold-ink); }
.lp-hero__title {
  margin-top: 16px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.9rem, 5.6vw, 5.4rem); line-height: 1.04; color: var(--ink);
}
.lp-hero__lead { margin-top: 24px; max-width: 32em; font-size: 1.1875rem; line-height: 1.8; color: var(--ink-2); }
.lp-hero .hero__actions { margin-top: 30px; }
.lp-trust {
  display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 34px; padding-top: 20px;
  border-top: 1px solid var(--line-strong); font-size: .9375rem; color: var(--ink-2);
}
.lp-trust li { display: inline-flex; align-items: center; gap: 10px; }
.lp-trust a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); transition: color .3s; }
.lp-trust a:hover { color: var(--gold-ink); }
.lp-trust strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--ink); }

/* the portrait: standing, on a navy panel with a soft light behind it, in a gold frame line like the other photos */
.lp-portrait {
  grid-column: 8 / 13; position: relative; overflow: hidden;
  height: min(70vh, 640px);
  background:
    radial-gradient(58% 52% at 50% 42%, rgba(37, 62, 116, .9) 0%, rgba(29, 50, 96, .32) 55%, rgba(15, 26, 51, 0) 82%),
    var(--navy);
  outline: 1px solid rgba(179, 139, 69, .55); outline-offset: 12px;
  box-shadow: 0 50px 80px -50px rgba(20, 32, 61, .6);
}
.lp-portrait__ornament {
  position: absolute; z-index: 0; top: 40%; left: 50%;
  width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
  color: var(--gold-lt); opacity: .18;
}
.lp-portrait__img {
  position: absolute; z-index: 1; bottom: 0; left: 50%;
  height: 94%; aspect-ratio: 2 / 3; transform: translateX(-50%); overflow: visible;
}
.lp-quick { padding-bottom: clamp(8px, 2vw, 24px); }
.lp-quick .quick { margin-top: 0; }

/* "important to know": three facts with a gold rule above each */
.lp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 48px); margin-top: clamp(44px, 5vw, 72px); }
.lp-fact { position: relative; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.lp-fact::before { content: ""; position: absolute; top: -1px; right: 0; width: 64px; height: 2px; background: var(--gold-deep); }
.lp-fact h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 1.9vw, 1.75rem); line-height: 1.25; color: var(--ink); }
.lp-fact p { margin-top: 10px; color: var(--ink-2); }
.lp-fact a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.lp-steps-wrap { margin-top: clamp(48px, 6vw, 80px); }
.lp-steps-wrap .about__steps-title { margin-bottom: 4px; }
.mini-steps.lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* navy band with the route (medical page) or the closing call to action */
.lp-dark { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); }
.lp-dark > .container { position: relative; z-index: 1; }
.lp-dark .route { max-width: 760px; }
.lp-cta { text-align: center; }
.lp-cta__inner { display: flex; flex-direction: column; align-items: center; }
.lp-cta .t-statement { max-width: 20em; }
.lp-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; margin-top: 36px; }
.lp-cta__actions .hero__call-label { color: var(--on-navy-3); }
.lp-cta__actions .hero__call-num { color: var(--on-navy); }
.lp-cta__actions .hero__call:hover .hero__call-num { color: var(--gold-hi); }
.lp-cta__note { margin-top: 26px; max-width: 34em; font-size: .875rem; color: var(--on-navy-3); }
.lp-back { margin-top: 18px; font-size: .9375rem; }
.lp-back .link { color: var(--gold-hi); }

/* "what to do now": the visitor's first steps, numbered in gold on a navy band */
.lp-guide {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px);
  margin-top: clamp(40px, 5vw, 64px);
}
.lp-guide__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start;
  padding: 28px 0; border-top: 1px solid var(--rule-navy);
}
.lp-guide__num {
  min-width: 1.1ch; font-family: "Bellefair", var(--font-display); font-size: clamp(2.6rem, 3.6vw, 3.4rem);
  line-height: .9; color: var(--gold-lt); font-feature-settings: "lnum" 1;
}
.lp-guide__item h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 1.9vw, 1.75rem); line-height: 1.25; color: var(--on-navy); }
.lp-guide__item p { margin-top: 8px; max-width: 34em; color: var(--on-navy-2); }
@media (max-width: 767px) { .lp-guide { grid-template-columns: 1fr; } .lp-guide__item { padding: 22px 0; gap: 16px; } }
html[lang="ar"] .lp-guide__item h3 { line-height: 1.5; }

/* the topic page links on the home page, under the matching service */
.practice__page { margin-top: 8px; font-size: .9375rem; font-weight: 500; color: var(--ink); }

/* the hero blocks start hidden and fade in on load; if the script never runs they appear on their own */
.js .lp-hero [data-reveal] { opacity: 0; animation: intro-failsafe .01s 3.5s forwards; }
.js.intro-ready .lp-hero [data-reveal] { animation: none; }

@media (max-width: 1023px) {
  .lp-hero__text, .lp-portrait { grid-column: 1 / -1; }
  .lp-portrait { height: min(62svh, 560px); }
  .lp-facts { grid-template-columns: 1fr; }
  .mini-steps.lp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .lp-hero { padding-top: calc(var(--header-h) + 28px); }
  .lp-hero__lead { font-size: 1.0625rem; }
  .lp-portrait { margin-inline: 4px; outline-offset: 8px; height: min(58svh, 500px); }
  .lp-cta__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .lp-cta__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js .lp-hero [data-reveal] { opacity: 1; }
}
html[lang="ar"] .lp-hero__title { line-height: 1.35; font-size: clamp(2.5rem, 4.8vw, 4.6rem); }
html[lang="ar"] .lp-fact h3 { line-height: 1.45; }
html[lang="ar"] .lp-hero__kicker { font-size: .9375rem; }

/* ---------- Arabic version (the pages in ar/) ---------- */
/* Arabic text in IBM Plex Sans Arabic; digits and Latin letters in display text stay in Bellefair.
   Arabic letters join, so they get no letter-spacing, and taller lines for the dots and descenders. */
html[lang="ar"] {
  --font-sans: var(--font-arabic);
  --font-display: "Bellefair", var(--font-arabic);
}
:lang(ar) { letter-spacing: 0 !important; }
html[lang="ar"] body { font-size: 1.125rem; line-height: 1.85; }
html[lang="ar"] .line { padding-block: .22em .42em; margin-block: -.22em -.42em; }
html[lang="ar"] .wm { padding-block: .2em .36em; margin-block: -.2em -.36em; }
html[lang="ar"] .hero__kicker { font-size: .9375rem; }
html[lang="ar"] .hero__name { font-weight: 500; font-size: clamp(3rem, min(6.4vw, 11vh), 6.8rem); line-height: 1.28; }
html[lang="ar"] .hero__lead { font-size: 1.1875rem; line-height: 1.9; }
html[lang="ar"] .t-statement { font-size: clamp(1.75rem, 2.9vw, 2.7rem); line-height: 1.55; }
html[lang="ar"] .about__head .t-statement { font-size: clamp(1.65rem, 2.5vw, 2.35rem); }
html[lang="ar"] .credo__quote p { font-size: clamp(1.8rem, 3.7vw, 3.5rem); line-height: 1.6; }
html[lang="ar"] .medical__title { font-size: clamp(2.3rem, 4.1vw, 4.1rem); line-height: 1.4; }
html[lang="ar"] .practice__title, html[lang="ar"] .quick__title, html[lang="ar"] .route__step h3,
html[lang="ar"] .about__steps-title, html[lang="ar"] .form__title, html[lang="ar"] .legal__title,
html[lang="ar"] .legal__body h2, html[lang="ar"] .menu__links a { line-height: 1.45; }
html[lang="ar"] .practice__list h4, html[lang="ar"] .mini-step h4 { line-height: 1.55; }
html[lang="ar"] .faq__q { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.6; }
html[lang="ar"] .review__text p { font-family: var(--font-arabic); font-size: 1.0625rem; line-height: 1.9; }
html[lang="ar"] .review--feature .review__text p { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.85; }
html[lang="ar"] .wordmark__name { font-size: 1.35rem; font-weight: 500; }
html[lang="ar"] .label, html[lang="ar"] .wordmark__role { font-size: .875rem; }

/* ---------- Intro states (JS only) ---------- */
.js .wordmark__logo, .js .wordmark__text, .js .nav, .js .header__actions, .js [data-intro] { opacity: 0; }
.js .hero__name .line > span { transform: translateY(115%); }
.js .hero__frame { clip-path: inset(100% 0 0 0); }
.js .wordmark__logo, .js .wordmark__text, .js .nav, .js .header__actions, .js [data-intro],
.js .hero__name .line > span, .js .hero__frame {
  animation: intro-failsafe .01s 3.5s forwards;
}
.js.intro-ready .wordmark__logo, .js.intro-ready .wordmark__text, .js.intro-ready .nav,
.js.intro-ready .header__actions, .js.intro-ready [data-intro],
.js.intro-ready .hero__name .line > span, .js.intro-ready .hero__frame { animation: none; }
@keyframes intro-failsafe { to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }

/* ---------- Opening (first visit only; the script in <head> adds html.with-opening) ---------- */
/* The full logo on a navy curtain. The lettering fades, the monogram travels into the header and the curtain lifts.
   If the page script never runs, the curtain fades away on its own. */
.opening { display: none; }
html.with-opening .opening {
  display: block; position: fixed; inset: 0; z-index: 200;
  animation: opening-failsafe .6s 4.5s forwards;
}
html.with-opening.intro-ready .opening { animation: none; }
.opening__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(46% 42% at 50% 48%, rgba(37, 62, 116, .9) 0%, rgba(29, 50, 96, .34) 55%, rgba(15, 26, 51, 0) 82%),
    var(--navy-950);
}
.opening__logo {
  --w: clamp(176px, 16vw, 236px);
  position: absolute; top: 50%; left: 50%; width: var(--w);
  display: grid; row-gap: calc(var(--w) * .0318); /* the original spacing between monogram and lettering */
  transform: translate(-50%, -50%);
}
.opening__logo img { width: 100%; height: auto; opacity: 0; }
@keyframes opening-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .header__phone { display: none; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .nav { gap: 16px; }
  .nav__link { font-size: .875rem; }
  .wordmark__role { display: none; }
}

@media (min-width: 1024px) and (max-height: 820px) {
  .hero__lead { margin-top: 18px; font-size: 1.0625rem; }
  .hero__actions { margin-top: 24px; }
  .hero__facts { margin-top: 24px; padding-top: 16px; }
  .hero__frame { height: min(65vh, 620px); }
}

@media (max-width: 1023px) {
  :root { --header-h: 70px; }
  .nav, .header__cta { display: none; }
  .menu-btn { display: block; }
  .wordmark__logo { height: 36px; }
  .wordmark__name { font-size: 1.4rem; }

  .hero { min-height: 0; padding-top: calc(var(--header-h) + 28px); }
  .hero__grid { row-gap: 48px; }
  .hero__text, .hero__media { grid-column: 1 / -1; }
  /* on tablets and phones the hero opens with the photo */
  .hero__media { order: -1; }
  .hero__plate { width: min(100%, 480px); }
  .hero__frame { height: auto; width: 100%; }
  .hero__ornament { width: 150%; opacity: .26; }
  .guilloche { stroke-width: .8; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .hero__facts > div:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }

  .sec-head > .label, .sec-head > :not(.label) { grid-column: 1 / -1; }
  .sec-head > .label { padding-top: 0; }

  .practice { grid-template-columns: 1fr; }

  .medical { padding-top: 0; }
  .medical__figure {
    position: relative; top: auto; left: auto; bottom: auto;
    width: min(64vw, 360px); height: auto; margin: 0 auto;
    padding-top: 36px;
  }
  .medical__figure::after {
    /* full-width fade, so its side edges never show against the lit background */
    content: ""; position: absolute; z-index: 2; right: -100vw; left: -100vw; bottom: -1px; height: 50%;
    background: linear-gradient(to top, var(--navy) 14%, rgba(15, 26, 51, .8) 38%, rgba(15, 26, 51, 0));
  }
  .medical__portrait { height: auto; aspect-ratio: 2 / 3; }
  .medical__ornament { top: 40%; width: 150%; }
  .medical__content { margin-top: -70px; }
  .medical__text { width: 100%; }

  .about__grid { row-gap: 40px; }
  .about__plate { grid-column: 1 / -1; grid-row: 1; width: min(72vw, 340px); justify-self: center; }
  .about__text { grid-column: 1 / -1; grid-row: 2; }

  .quick { grid-template-columns: 1fr; }

  .reviews__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review--feature { grid-row: auto; grid-column: 1 / -1; }

  .faq__list { grid-column: 1 / -1; }
  .contact__main, .form { grid-column: 1 / -1; }

  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col--wide { grid-column: span 4; }
}

@media (max-width: 767px) {
  body { font-size: 1rem; }
  .hero__name { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero__latin { font-size: .875rem; letter-spacing: .2em; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__call { align-items: center; }

  .practice { row-gap: 36px; margin-top: 44px; }
  .practice__group { padding-top: 18px; }
  .practice__title { font-size: 1.75rem; gap: 14px; }
  .practice__icon { width: 52px; height: 52px; }
  .practice__icon svg { width: 26px; height: 26px; }
  .practice__list { margin-top: 8px; }
  .practice__list li { padding: 14px 0; }
  .practice__list h4 { font-size: 1.0625rem; line-height: 1.4; }
  .practice__list p { margin-top: 4px; font-size: .9375rem; line-height: 1.65; }
  .practice__more { margin-top: 16px; }
  /* phones: the photo runs edge to edge right under the header, without a frame line */
  .hero { padding-top: var(--header-h); }
  .hero__grid { row-gap: 30px; }
  .hero__media { justify-self: stretch; width: auto; margin-inline: calc(-1 * var(--gutter)); }
  .hero__ornament { display: none; }
  .hero__plate { width: auto; }
  .hero__plate::before { display: none; }
  .hero__frame { width: 100%; height: min(65svh, 590px); aspect-ratio: auto; box-shadow: none; }
  .hero__frame img { object-position: 50% 0%; }
  .credo__rule { height: 48px; }
  .credo__name { font-size: 1.5rem; }
  .about__plate { width: min(62vw, 270px); }
  .about__plate::before { inset: -9px; }
  .quick { padding: 24px 20px; }
  .quick__form { grid-template-columns: 1fr; gap: 16px; }
  .quick__form .btn { width: 100%; }

  .route__num { font-size: 2.2rem; }
  .route__step { padding-bottom: 28px; }
  .medical__cta .btn { width: 100%; }

  .mini-steps { grid-template-columns: 1fr; }
  .mini-step { padding: 14px 0; }

  /* reviews scroll sideways on phones, so five of them don't add five screens of scrolling */
  .reviews__list {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px;
    scrollbar-width: none;
  }
  .reviews__list::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 84%; scroll-snap-align: center; padding: 24px 22px 20px; }
  .review--feature .review__text p { font-size: 1.3rem; line-height: 1.5; }

  .form__row { grid-template-columns: 1fr; }
  .contact__rows > div { grid-template-columns: 84px minmax(0, 1fr); }
  .footer__logo { width: 140px; }
  .footer__top { padding-top: 44px; row-gap: 32px; }
  .footer__col { grid-column: span 6; order: 1; }
  .footer__col--wide { grid-column: 1 / -1; order: 2; }
  .footer__bottom { margin-top: 40px; }

  .fab { display: none; }
  .mobile-bar {
    position: fixed; inset: auto 0 0 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--navy-950); color: var(--on-navy); border-top: 1px solid var(--rule-navy);
    transform: translateY(100%); transition: transform .6s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 58px; font-weight: 500; }
  .mobile-bar a:first-child { background: var(--gold-lt); color: var(--navy-950); }
  .a11y { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  body:has(.mobile-bar) .a11y { bottom: calc(58px + 12px + env(safe-area-inset-bottom)); }
  .a11y__toggle { width: 48px; height: 48px; }
  .a11y__panel { width: min(296px, calc(100vw - 24px)); }
  .footer { padding-bottom: calc(58px + 76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .wordmark__role { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .wordmark__logo, .js .wordmark__text, .js .nav, .js .header__actions, .js [data-intro] { opacity: 1; }
  html.with-opening .opening { display: none; }
  .js .hero__name .line > span { transform: none; }
  .js .hero__frame { clip-path: none; }
}
