/* Boston Translation Services - rebuild (Nov 2026). Logical properties throughout so the
   Arabic build mirrors without overrides. Tokens follow the design plan in build.py. */

:root {
  --ink: #0B1A3A;
  --deep: #102552;
  --navy: #1F3D7B;
  --gold: #F7C800;
  --gold-hi: #FFD633;
  --paper: #F3F5FA;
  --line: #D8DEEB;
  --line-dark: rgba(255, 255, 255, .16);
  --field: #8A94AD;
  --text: #17213D;
  --muted: #4A5675;
  --on-dark: #FFFFFF;
  --on-dark-muted: #BAC5E0;
  --danger: #B42318;
  --warn: #9A3412;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --display: var(--serif);
  --body: var(--sans);

  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --hdr: 84px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sec: clamp(72px, 9vw, 136px);
  interpolate-size: allow-keywords;
}
[lang="ar"] { --display: var(--ar); --body: var(--ar); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; color-scheme: light; }
a, button, select, label, summary, input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; text-rendering: optimizeLegibility;
}
[lang="ar"] body { font-size: 1.125rem; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .2em; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 600; }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .sec--deep :focus-visible, .final :focus-visible, .ftr :focus-visible,
.hdr:not(.is-scrolled) :focus-visible, .mnav :focus-visible, .checklist :focus-visible, .mbar :focus-visible { outline-color: var(--gold); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; top: -80px; inset-inline-start: 16px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 12px 18px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .ico--dir { transform: scaleX(-1); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; display: inline-block; }

/* pending copy ({to confirm}) - visible to the owner, quiet for visitors */
.pending { font-style: italic; font-weight: 400; border-bottom: 1px dashed currentColor; }

/* ---------- type ---------- */
.h1 {
  margin: 0; font-family: var(--display); font-weight: 600; font-optical-sizing: auto;
  font-size: clamp(2.4rem, 1.15rem + 3.5vw, 4.5rem); line-height: 1.04; letter-spacing: -.018em;
}
[lang="ar"] .h1 { font-weight: 700; line-height: 1.32; letter-spacing: 0; font-size: clamp(2rem, 1.1rem + 2.7vw, 3.6rem); }
.h2 {
  margin: 0 0 .5em; color: var(--deep); font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 1.2rem + 1.9vw, 3.1rem); line-height: 1.1; letter-spacing: -.012em;
}
[lang="ar"] .h2 { font-weight: 700; line-height: 1.4; letter-spacing: 0; font-size: clamp(1.65rem, 1.1rem + 1.5vw, 2.5rem); }
.h2--sm { font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); }
[lang="ar"] .h2--sm { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); }
.h3 { margin: 0 0 .5em; font-family: var(--body); font-weight: 600; font-size: 1.1875rem; line-height: 1.35; color: var(--deep); }
[lang="ar"] .h3 { font-size: 1.2rem; line-height: 1.55; }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6; max-width: 60ch; }
[lang="ar"] .lede { line-height: 1.9; }
.sec--deep .h2, .hero .h1, .final .h2, .sec--deep .h3, .checklist .h3 { color: #fff; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8em 1.4em; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font: 600 1rem/1.25 var(--body); text-decoration: none; text-align: center; cursor: pointer;
  transition-property: background-color, color, border-color, transform, box-shadow;
  transition-duration: .18s; transition-timing-function: var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 1.2em; height: 1.2em; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hi); box-shadow: 0 10px 26px -10px rgba(247, 200, 0, .7); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--deep); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn--ghost { color: var(--navy); border-color: var(--field); }
.btn--ghost:hover { border-color: var(--navy); background: var(--paper); }
.btn--wa-line { background: #fff; color: var(--text); border-color: var(--field); font-weight: 500; }
.btn--wa-line .ico { color: #0E7C42; }
.btn--wa-line:hover { border-color: #0E7C42; }
.btn--sm { min-height: 42px; padding: .5em 1em; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding-inline: 1.8em; }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--navy); text-decoration: none; min-height: 44px; }
.link span:not(.sr) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.link .ico { width: 1.1em; height: 1.1em; transition: translate .2s var(--ease); }
.link:hover .ico--dir { translate: 4px 0; }
[dir="rtl"] .link:hover .ico--dir { translate: -4px 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; color: #fff;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.hdr__in { display: flex; align-items: center; gap: 24px; height: var(--hdr); transition: height .3s var(--ease); }
.hdr.is-scrolled, .hdr.is-open {
  background: rgba(255, 255, 255, .97); color: var(--text);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(16, 37, 82, .45);
}
@supports (backdrop-filter: blur(8px)) { .hdr.is-scrolled { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); } }
.hdr.is-scrolled .hdr__in { height: 68px; }
.hdr__logo { position: relative; display: block; width: 132px; flex: none; }
.hdr__logo img { width: 100%; height: auto; transition: opacity .3s var(--ease); }
.hdr__logo-dark { position: absolute; inset: 0; opacity: 0; }
.is-scrolled .hdr__logo-light, .is-open .hdr__logo-light { opacity: 0; }
.is-scrolled .hdr__logo-dark, .is-open .hdr__logo-dark { opacity: 1; }
.hdr__nav { flex: 1; display: flex; justify-content: center; }
.hdr__nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.hdr__nav a {
  position: relative; display: block; padding: 10px 13px; color: inherit; text-decoration: none;
  font-weight: 500; font-size: .96rem; border-radius: var(--r-sm);
}
.hdr__nav a::after {
  content: ""; position: absolute; inset-inline: 13px; bottom: 5px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .25s var(--ease);
}
[dir="rtl"] .hdr__nav a::after { --origin: right; }
.hdr__nav a:hover::after { transform: scaleX(1); }
.hdr__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.hdr__phone {
  display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none;
  font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; min-height: 44px;
}
.hdr__phone .ico { width: 1.1em; height: 1.1em; color: var(--gold); }
.is-scrolled .hdr__phone .ico { color: var(--navy); }
.hdr__lang {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .4); color: inherit; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.hdr__lang[lang="ar"] { font-family: var(--ar); }
.hdr__lang[lang="en"] { font-family: var(--sans); }
.is-scrolled .hdr__lang { border-color: var(--field); }
.hdr__lang:hover { border-color: currentColor; }
.hdr__menu {
  display: none; width: 46px; height: 46px; border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .4);
  background: transparent; color: inherit; place-items: center; cursor: pointer;
}
.is-scrolled .hdr__menu, .is-open .hdr__menu { border-color: var(--field); }
.hdr__menu .ico { width: 22px; height: 22px; grid-area: 1 / 1; }
.hdr__menu .ico--close { opacity: 0; }
.is-open .hdr__menu .ico--close { opacity: 1; }
.is-open .hdr__menu .ico--menu { opacity: 0; }
.mnav { background: #fff; color: var(--text); border-top: 1px solid var(--line); max-height: calc(100svh - 68px); overflow: auto; }
.mnav ul { list-style: none; margin: 0; padding: 8px 0; }
.mnav li a { display: block; padding: 14px 0; font-size: 1.2rem; font-weight: 600; color: var(--deep); text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 0 24px; }
.mnav__foot a { display: inline-flex; gap: 8px; align-items: center; color: var(--navy); font-weight: 600; text-decoration: none; min-height: 44px; }
.mnav .hdr__lang { border-color: var(--field); padding: 0 16px; }

@media (max-width: 1240px) {
  .hdr__phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hdr__phone { width: 44px; justify-content: center; }
  .hdr__nav a { padding-inline: 10px; }
}
@media (max-width: 1023px) {
  .hdr__nav { display: none; }
  .hdr__menu { display: grid; }
  .hdr__actions { margin-inline-start: auto; }
}
@media (max-width: 600px) {
  :root { --hdr: 72px; }
  .hdr__logo { width: 112px; }
  .hdr__cta, .hdr__phone { display: none; }
  .hdr__actions > .hdr__lang { min-height: 46px; }
}

/* ---------- hero: photo behind, copy on the start side, quote card on the end side ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: #fff; padding-block: calc(var(--hdr) + clamp(28px, 5vh, 64px)) clamp(48px, 7vh, 88px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 26, 58, .55), rgba(11, 26, 58, 0) 22%),
    linear-gradient(to var(--fade, right), rgba(11, 26, 58, .97) 0%, rgba(16, 37, 82, .93) 42%, rgba(16, 37, 82, .5) 66%, rgba(16, 37, 82, .22) 100%);
}
[dir="rtl"] .hero__bg::after { --fade: left; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr); column-gap: clamp(40px, 5vw, 72px);
  grid-template-areas: "copy card" "svc card" "trust card"; grid-template-rows: auto auto 1fr; align-items: start;
  min-height: min(calc(100svh - var(--hdr) - 120px), 760px);
}
.hero__copy { grid-area: copy; padding-top: clamp(12px, 4vh, 56px); }
.hero__trust { grid-area: trust; align-self: end; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.hero .qcard { grid-area: card; }
/* desktop: the card stretches to the text column and spreads step 1 evenly, so both columns end together */
@media (min-width: 1024px) {
  .hero .qcard { align-self: stretch; display: flex; flex-direction: column; }
  .hero .qform { flex: 1; display: flex; flex-direction: column; }
  .hero .qstep[data-step="1"] { flex: 1; align-content: space-between; }
  .hero .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; }
  .hero .trust li { font-size: 1rem; }
  .hero .qform__actions .btn { white-space: nowrap; padding-inline: 1em; flex-basis: 150px; }
}
.eyebrow { display: inline-flex; align-items: center; gap: .55em; margin: 0 0 22px; font-size: 1.0625rem; font-weight: 500; color: #E3E9F6; }
.eyebrow .ico { color: var(--gold); }
.hero .lede { color: #D3DBEE; margin: 24px 0 0; font-size: clamp(1.0625rem, .95rem + .35vw, 1.25rem); max-width: 66ch; }
.hero .h1 { font-size: clamp(2.4rem, 1.2rem + 3.5vw, 4.35rem); }
[lang="ar"] .hero .h1 { font-size: clamp(2rem, 1.1rem + 3vw, 4rem); }
.hero__svc { grid-area: svc; margin-top: 30px; }
.hero__svc-label { margin: 0 0 12px; font-size: 1rem; font-weight: 600; color: var(--gold); }
.hero__svc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
.hero__svc a {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: var(--r);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none;
  font-weight: 500; font-size: 1rem; line-height: 1.3; transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.hero__svc a:hover { background: rgba(255, 255, 255, .12); border-color: var(--gold); }
.hero__svc .ico { width: 22px; height: 22px; color: var(--gold); }
@media (max-width: 1023px) { .hero__svc ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hero__svc a { font-size: .98rem; padding: 10px; } }
.hero__links { margin: 22px 0 0; }
.link--light { color: var(--gold); }
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.trust li { display: flex; align-items: baseline; gap: 12px; color: #E6EBF5; font-weight: 500; font-size: 1.0625rem; line-height: 1.45; }
@media (max-width: 1023px) {
  .hero { padding-block: calc(var(--hdr) + 28px) 48px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "card" "svc" "trust"; grid-template-rows: auto; min-height: 0; }
  .hero__svc { margin-top: 32px; }
  .hero__copy { padding-top: 0; }
  .hero .qcard { margin-top: 28px; }
  .hero__bg::after { background: linear-gradient(to bottom, rgba(11, 26, 58, .96), rgba(16, 37, 82, .9) 60%, rgba(16, 37, 82, .97)); }
}
@media (max-width: 600px) {
  .hero { padding-top: calc(var(--hdr) + 14px); }
  .hero .h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 2.3rem); }
  [lang="ar"] .hero .h1 { font-size: clamp(1.75rem, 1.1rem + 3vw, 2.05rem); }
  .qcard__title { font-size: 1.25rem; }
  .qcard__bar { margin: 10px 0 14px; }
  .hero .lede { font-size: 1rem; line-height: 1.55; margin-top: 14px; }
  .eyebrow { font-size: .9rem; margin-bottom: 14px; }
  .trust { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- the 2-step quote card ---------- */
.qcard {
  position: relative; background: #fff; color: var(--text); border-radius: 22px; padding: clamp(22px, 2.6vw, 36px);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .06), 0 40px 80px -30px rgba(0, 0, 0, .6);
  scroll-margin-top: 90px;
}
.qcard:focus { outline: none; }
.qcard:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.qcard__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.qcard__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 1.15rem + .6vw, 1.75rem); line-height: 1.2; color: var(--deep); }
[lang="ar"] .qcard__title { font-weight: 700; line-height: 1.45; }
.qcard__step { margin: 0; flex: none; font-size: 1rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.qcard__bar { height: 4px; margin: 14px 0 16px; border-radius: 4px; background: #E3E8F3; overflow: hidden; }
.qcard__bar span { display: block; height: 100%; width: 50%; border-radius: 4px; background: var(--gold); transition: width .45s var(--ease); }
.qcard.is-step2 .qcard__bar span { width: 100%; }
.qcard__intro { margin: 0 0 18px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.qcard.is-step2 .qcard__intro { display: none; }
@media (max-width: 600px) { .qcard__intro { display: none; } .qcard { border-radius: 16px; } }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: clamp(48px, 6vw, 88px); }
.sec--paper { background: var(--paper); }
.sec--deep { background: var(--deep); color: #fff; }
.sec--deep .sec__intro { color: var(--on-dark-muted); }
.sec__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px clamp(32px, 6vw, 120px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec__head .h2 { margin: 0; }
.sec__intro { margin: 0; color: var(--muted); font-size: 1.0625rem; max-width: 60ch; }
.sec__solo { max-width: 26ch; margin-bottom: clamp(40px, 5vw, 72px); }
.sec__foot { margin-top: 48px; }
@media (max-width: 860px) { .sec__head { grid-template-columns: 1fr; } }

/* authorities band: logos where sourced, name tiles otherwise */
.auth { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px); }
.auth__label { margin: 0 0 28px; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + .9vw, 1.9rem); line-height: 1.25; color: var(--deep); }
[lang="ar"] .auth__label { font-weight: 700; }
.auth__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.auth__tile {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 132px; padding: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
}
.auth__tile--logo { gap: 10px; }
.auth__logo { height: 72px; width: auto; align-self: flex-start; max-width: 100%; object-fit: contain; }
.auth__abbr { font-size: 1rem; font-weight: 700; letter-spacing: .04em; color: var(--navy); }
.auth__name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; color: var(--deep); }
[lang="ar"] .auth__name { font-weight: 700; font-size: 1.15rem; line-height: 1.55; }
.auth__tile--logo .auth__name { font-family: var(--body); font-size: 1rem; }
@media (max-width: 1100px) { .auth__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .auth__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .auth__tile { min-height: 112px; padding: 16px; } .auth__name { font-size: 1.05rem; } }

/* services ledger */
.ledger { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.ledger__row { position: relative; display: flex; flex-direction: column; padding-block: 34px 38px; }
.ledger__row::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); transform-origin: var(--origin, left); transition: transform .9s var(--ease); }
[dir="rtl"] .ledger__row::before { --origin: right; }
.ledger__row p { color: var(--muted); }
.ledger__row .link { margin-top: auto; }
.ledger__ico { width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--navy); display: grid; place-items: center; margin-bottom: 22px; transition: background-color .25s var(--ease), color .25s var(--ease); }
.ledger__ico .ico { width: 24px; height: 24px; }
.ledger__row:hover .ledger__ico { background: var(--gold); color: var(--ink); }
@media (max-width: 1023px) { .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ledger { grid-template-columns: 1fr; } .ledger__row { padding-block: 26px 28px; } }

/* documents */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); }
.docs__col { padding-top: 26px; border-top: 2px solid var(--gold); }
.dots { list-style: none; margin: 0; padding: 0; }
.dots li { position: relative; padding-block: 10px; padding-inline-start: 22px; border-bottom: 1px solid var(--line); }
.sec--deep .dots li { border-color: var(--line-dark); color: #E6EBF5; }
.dots li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.15em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
[lang="ar"] .dots li::before { top: 1.35em; }
.dots--tight li { padding-block: 6px; border: 0; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } }

/* guide tabs */
.guide { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 6.2fr) minmax(250px, 3.3fr); gap: clamp(18px, 2.4vw, 36px); align-items: start; }
.tabs__list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 100px; }
.tabs__tab {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 12px 16px;
  border: 0; border-radius: var(--r); background: transparent; color: var(--text); text-align: start; cursor: pointer;
  font: 500 1rem/1.35 var(--body); transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tabs__tab:hover { background: #E4E9F4; }
.tabs__tab[aria-selected="true"] { background: #fff; color: var(--deep); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 37, 82, .08), 0 10px 24px -14px rgba(16, 37, 82, .35); }
.tabs__tab[aria-selected="true"]::before { content: ""; position: absolute; inset-block: 12px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--gold); }
.tabs__n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--field); display: grid; place-items: center; flex: none; font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s, border-color .2s; }
.tabs__tab[aria-selected="true"] .tabs__n { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 44px); }
.tabs__panel:not([hidden]) { animation: panel-in .35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.tabs__title { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + .8vw, 1.75rem); margin-bottom: 18px; }
.req { margin: 0; }
.req__row { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 8px 24px; padding-block: 20px; border-top: 1px solid var(--line); }
.req__row dt { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--navy); line-height: 1.45; }
.req__row dt .ico { margin-top: 2px; }
.req__row dd { margin: 0; }
.req__row--warn dt { color: var(--warn); }
.checklist { position: sticky; top: 100px; background: var(--deep); color: #fff; border-radius: var(--r-lg); padding: 28px; }
.checklist ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; line-height: 1.5; color: #E6EBF5; }
.checklist li .ico { color: var(--gold); margin-top: 2px; }
.checklist .btn { width: 100%; }
.guide__note { margin: 32px 0 0; max-width: 92ch; padding-inline-start: 16px; border-inline-start: 3px solid var(--gold); color: var(--muted); font-size: 1rem; }
@media (max-width: 1240px) {
  .guide { grid-template-columns: minmax(220px, 3fr) minmax(0, 7fr); }
  .checklist { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; align-items: start; }
  .checklist ul { margin: 0; }
}
@media (max-width: 860px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .tabs__list { position: static; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: thin; }
  .tabs__tab { flex: none; width: auto; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); }
  .tabs__tab[aria-selected="true"]::before { inset-block: auto 0; inset-inline: 14px; width: auto; height: 3px; }
  .req__row { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
}

/* explainer */
.explain__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.explain__media { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 5; background: var(--paper); }
.explain__img { position: absolute; inset: -9% 0 auto; width: 100%; height: 118%; object-fit: cover; object-position: 38% 70%; }
.prose p { color: #2B3654; }
.prose p:first-child { font-size: 1.2rem; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .explain__in { grid-template-columns: 1fr; } .explain__media { aspect-ratio: 16 / 10; } }

/* process */
.steps { position: relative; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 72px); position: relative; }
.steps__line { position: absolute; top: 27px; inset-inline: 28px; height: 2px; background: var(--line); }
.steps__line span { display: block; height: 100%; background: var(--gold); transform-origin: var(--origin, left); }
[dir="rtl"] .steps__line span { --origin: right; }
.steps__n {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; background: var(--deep); color: #fff;
  display: grid; place-items: center; margin-bottom: 24px; box-shadow: 0 0 0 8px #fff;
  font-family: var(--display); font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.sec--paper .steps__n { box-shadow: 0 0 0 8px var(--paper); }
.steps__item p { color: var(--muted); margin: 0; max-width: 42ch; }
@media (max-width: 860px) {
  .steps__list { grid-template-columns: 1fr; gap: 32px; }
  .steps__line { inset-inline-start: 27px; inset-inline-end: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .steps__line span { transform-origin: top; height: 100%; width: 100%; }
  .steps__item { position: relative; padding-inline-start: 84px; min-height: 56px; }
  .steps__item .steps__n { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
}

/* quality: the pinned stamp story */
.quality__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.stages { position: relative; margin-top: 32px; }
.stages__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stages__rail { position: absolute; inset-inline-start: 19px; top: 24px; bottom: 24px; width: 2px; background: rgba(255, 255, 255, .16); }
.stages__rail span { display: block; width: 100%; height: 100%; background: var(--gold); transform-origin: top; }
.stages__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; padding-block: 14px; transition: opacity .35s var(--ease); }
.stages__item p { margin: 0; color: var(--on-dark-muted); max-width: 52ch; }
.stages__item .h3 { margin-bottom: 4px; }
.stages__n {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--deep);
  color: var(--gold); display: grid; place-items: center; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.stages__item.is-active .stages__n { background: var(--gold); color: var(--ink); }
.quality.is-pinned { min-height: 100vh; display: flex; align-items: center; padding-block: 96px 48px; }
.quality.is-pinned .stages__item { opacity: .42; }
.quality.is-pinned .stages__item.is-active { opacity: 1; }
.quality__media { position: relative; margin: 0; }
.quality__img { width: 100%; max-height: 70vh; object-fit: cover; border-radius: var(--r-lg); }
.quality__seal { position: absolute; width: clamp(118px, 11vw, 172px); inset-inline-start: -44px; bottom: -36px; color: var(--gold); filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .4)); }
@media (max-width: 900px) { .quality__in { grid-template-columns: 1fr; } .quality__seal { inset-inline-start: auto; inset-inline-end: 12px; bottom: -28px; width: 110px; } }

/* why + counters */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.stat dt { color: var(--muted); font-size: 1rem; line-height: 1.4; }
.stat__n { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 1.6rem + 2.4vw, 4.1rem); line-height: 1; letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums lining-nums; }
[lang="ar"] .stat__n { font-family: var(--ar); font-weight: 700; letter-spacing: 0; }
.why__pts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 52px; }
.why__pt .h3 { display: flex; align-items: baseline; gap: 12px; }
.why__pt .dot { transform: translateY(-2px); }
.why__pt p { margin: 0; color: var(--muted); padding-inline-start: 20px; }
@media (max-width: 1023px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .why__pts { grid-template-columns: 1fr; gap: 28px; } .stats { gap: 12px; } }

/* languages */
.langs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.langs .btn { margin-top: 28px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: 1.0625rem; }
.chips .chip--muted { background: transparent; border-style: dashed; border-color: var(--field); color: var(--muted); }
@media (max-width: 900px) { .langs { grid-template-columns: 1fr; } }

/* offices */
.offices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.offices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.office { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.office:hover { border-color: #AFBEDD; box-shadow: 0 18px 40px -28px rgba(16, 37, 82, .5); }
.office .h3 { font-family: var(--display); font-size: 1.5rem; margin: 0; }
.office__addr, .office__hours { display: flex; gap: 10px; margin: 0; color: var(--muted); line-height: 1.5; }
.office__addr .ico, .office__hours .ico { color: var(--navy); margin-top: 3px; width: 1.1em; height: 1.1em; }
.office__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0 20px; padding-top: 6px; }
.office--soon { background: transparent; border-style: dashed; border-color: var(--field); }
.office--soon p { margin: 0; color: var(--muted); }
.office__badge { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--ink) !important; font-weight: 600; font-size: .9375rem; }
@media (max-width: 1100px) { .offices, .offices--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .offices, .offices--3 { grid-template-columns: 1fr; } }

/* quote form fields */
.qform { display: grid; gap: 16px; }
.qstep { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.qstep[data-step="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.qstep.is-entering { animation: step-in .45s var(--ease); }
.qstep.is-back { animation: step-back .45s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(calc(32px * var(--dir, 1))); } }
@keyframes step-back { from { opacity: 0; transform: translateX(calc(-32px * var(--dir, 1))); } }
[dir="rtl"] .qstep { --dir: -1; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field__label { font-weight: 500; font-size: 1rem; line-height: 1.4; }
.opt { color: var(--muted); font-weight: 400; font-size: .9375rem; }
.req-mark { color: var(--danger); margin-inline-start: 3px; }
.qform input:not([type="checkbox"]):not([type="file"]), .qform select, .qform textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; color: var(--text); background: #fff;
  border: 1.5px solid var(--field); border-radius: 8px; font-size: 1rem; line-height: 1.4;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.qform textarea { resize: vertical; min-height: 72px; }
.qform select {
  appearance: none; padding-inline-end: 42px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231F3D7B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
[dir="rtl"] .qform select { background-position: left 16px center; }
[dir="rtl"] .qform input[dir="ltr"] { text-align: right; }
.qform input:hover, .qform select:hover, .qform textarea:hover { border-color: #5E6A88; }
.qform input:focus-visible, .qform select:focus-visible, .qform textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(31, 61, 123, .2); }
.qform [aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.field__err { margin: 0; color: var(--danger); font-size: .9375rem; font-weight: 500; }
.field__hint { margin: 0; color: var(--muted); font-size: .9375rem; }
.drop { position: relative; display: grid; place-items: center; min-height: 64px; padding: 10px 14px; border: 1.5px dashed var(--field); border-radius: var(--r); background: var(--paper); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--navy); background: #E7ECF7; }
.drop:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(31, 61, 123, .2); }
.drop__face { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; font-size: 1rem; pointer-events: none; text-align: center; }
.drop__chosen { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; max-width: 100%; font-weight: 500; font-size: .95rem; pointer-events: none; }
.drop__chosen span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__x { pointer-events: auto; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--field); border-radius: 50%; background: #fff; color: var(--text); cursor: pointer; flex: none; }
.drop.has-file .drop__face { display: none; }
.field--check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); cursor: pointer; }
.field--check label { font-weight: 400; font-size: .9375rem; }
.field--check .field__err { grid-column: 2; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.qform__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-top: 4px; }
.qform__actions [data-next], .qform__actions [data-submit] { flex: 1 1 200px; }
.qform__actions .btn--wa-line { flex: 1 1 180px; }
.qform__actions [data-back] { flex: 0 0 auto; }
[dir="rtl"] .ico--back { transform: none; }
.ico--back { transform: scaleX(-1); }
.qform__privacy { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.qform__status { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: #FDEDEA; border: 1px solid #F1B4AC; color: #7A1A12; font-weight: 500; font-size: .95rem; }
.qform__status:focus { outline: 2px solid var(--danger); outline-offset: 2px; }
.qform__status .ico { margin-top: 2px; }
.qform__status { flex-wrap: wrap; }
.qform__status span { flex: 1 1 200px; }
.qform__status-wa { margin-inline-start: 30px; min-height: 40px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid #0E7C42; background: #fff; color: #0B5F33; font: 600 .9rem/1 var(--body); cursor: pointer; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-sending .spinner { display: inline-block; }
.is-sending [data-submit] { cursor: progress; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.qform__done { padding: 28px 4px 8px; text-align: center; }
.qform__done:focus { outline: none; }
.qform__done p { max-width: 42ch; margin: 0 auto 22px; font-size: 1.05rem; }
.qform__done-ico { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); }
.qform__done-ico .ico { width: 30px; height: 30px; }
@media (max-width: 480px) { .qstep[data-step="2"] { grid-template-columns: 1fr; } .qstep[data-step="2"] .field { grid-column: 1 / -1; } }

/* reviews + guides */
.rb { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.rb__reviews, .rb__blog { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pending-slot { margin: 0; padding: 20px; border: 1.5px dashed var(--field); border-radius: var(--r); background: var(--paper); color: var(--muted); font-style: italic; }
.pending-slot .pending { border: 0; }
@media (max-width: 900px) { .rb { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.faq__lead { position: sticky; top: 110px; }
.faq__ask { margin: 0; }
.faq__ask .ico { color: #0E7C42; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.125rem; line-height: 1.45; color: var(--deep); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover span { color: var(--navy); }
.faq__ico { margin-top: 3px; color: var(--navy); transition: transform .25s var(--ease); }
.faq__item[open] .faq__ico { transform: rotate(45deg); }
.faq__a p { margin: 0 0 24px; color: var(--muted); max-width: 70ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
  .faq__item[open]::details-content { block-size: auto; }
}
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq__lead { position: static; } }

/* final CTA */
.final { position: relative; overflow: hidden; background: var(--deep); color: #fff; padding-block: clamp(80px, 10vw, 150px); }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 0% 50%, rgba(31, 61, 123, .7), transparent 70%); }
[dir="rtl"] .final::before { background: radial-gradient(60% 90% at 100% 50%, rgba(31, 61, 123, .7), transparent 70%); }
.final__in { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.final__seal { width: clamp(130px, 16vw, 230px); color: var(--gold); }
.final .h2 { max-width: 22ch; }
.final .lede { color: var(--on-dark-muted); margin-block: 6px 32px; }
.final .ctas { margin-top: 28px; }
.final .lede + .ctas { margin-top: 0; }
@media (max-width: 700px) { .final__in { grid-template-columns: 1fr; } .final__seal { width: 110px; } }

/* office pages */
.details__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.details__grid > div { padding-block: 26px; padding-inline-end: 28px; border-bottom: 1px solid var(--line); }
.details__grid dt { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 600; color: var(--navy); }
.details__grid dd { margin: 0; line-height: 1.6; }
.details__grid dd a:not(.link) { color: var(--text); font-weight: 600; }
.details__areas { grid-column: 1 / -1; }
.details__areas ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.details__areas p { margin: 0; }
@media (max-width: 1023px) { .details__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .details__grid { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.svc-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.svc-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); line-height: 1.45; }
.svc-list .ico { color: var(--navy); margin-top: 2px; }
.local { padding: clamp(24px, 3vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .svc-list { grid-template-columns: 1fr; } }

.map { margin-top: 32px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; background: var(--paper); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3; } }
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tip { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.tip > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.tip p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .tips { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: #C3CDE6; padding-top: clamp(64px, 7vw, 100px); font-size: 1rem; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.6fr) minmax(0, 1.25fr); gap: 40px; }
.ftr__brand img { width: 168px; margin-bottom: 20px; }
.ftr__brand p { max-width: 34ch; }
.ftr__h { margin: 0 0 18px; color: #fff; font: 600 1rem/1.3 var(--body); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ftr a { color: #E3E8F4; text-decoration: none; }
.ftr a:hover { color: var(--gold); text-decoration: underline; }
.ftr__col li > a { display: inline-block; padding-block: 5px; }
.ftr__offices ul { gap: 18px; }
.ftr__offices li { display: grid; gap: 2px; line-height: 1.5; }
.ftr__offices strong { color: #fff; }
.ftr__offices span { color: #B4BFDA; }
.ftr__offices a { color: var(--gold); font-weight: 500; justify-self: start; padding-block: 4px; }
.ftr__contact dl { margin: 0; display: grid; gap: 14px; }
.ftr__contact dt { color: #B4BFDA; font-size: .9375rem; }
.ftr__contact dd { margin: 0; color: #fff; font-weight: 500; }
.ftr__follow { margin: 22px 0 10px; color: #fff; font-weight: 600; }
.ftr .ftr__social { display: flex; gap: 10px; }
.ftr__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.ftr__social a:hover { border-color: var(--gold); color: var(--gold); }
.ftr__social .ico { width: 20px; height: 20px; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .12); color: #B4BFDA; font-size: .9375rem; }
.ftr__base p { margin: 0; }
@media (max-width: 1240px) { .ftr__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__offices, .ftr__contact { grid-column: 1 / -1; } }

/* mobile action bar */
.mbar { display: none; }
@media (max-width: 767px) {
  .mbar {
    position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--ink); box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
  }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; border-radius: 8px; color: #fff; text-decoration: none; font-size: .9375rem; font-weight: 600; }
  .mbar a .ico { width: 20px; height: 20px; }
  .mbar .mbar__quote { background: var(--gold); color: var(--ink); }
  body { padding-bottom: 74px; }
}

/* ---------- motion: initial states only when JS + motion are allowed ---------- */
html.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
html.motion [data-reveal-group] > * { opacity: 0; transform: translateY(16px); }
html.motion [data-hero="svc"], html.motion [data-hero="trust"], html.motion .hero__seal { opacity: 0; }
html.motion .ledger__row::before { transform: scaleX(0); }
html.motion .ledger__row.is-in::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* print: the guide and contact details are what people print */
@media print {
  .hdr, .mbar, .hero__media, .seal, .qcard, .quote, .final { display: none !important; }
  .hero, .sec--deep { background: #fff !important; color: #000 !important; }
  .tabs__panel[hidden] { display: block !important; }
}
