/* ==========================================================================
   Boabat Alufuq Altqnya - main stylesheet
   Mobile-first. Logical properties (inline/block, start/end) are used throughout so the
   Arabic (RTL) layout mirrors automatically; the few directional icons are flipped explicitly.
   Sections: 1 Fonts · 2 Tokens · 3 Base · 4 Layout · 5 Components · 6 Header/Footer · 7 Pages · 8 Motion · 9 Larger screens
   ========================================================================== */

/* 1. Fonts (self-hosted Cairo variable font, SIL OFL) ---------------------- */
@font-face {
  font-family: "Cairo";
  src: url("/fonts/cairo-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cairo";
  src: url("/fonts/cairo-arabic-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* 2. Design tokens ---------------------------------------------------------
   Palette: primary dark #1F2D38, accent gold #A49161, white, plus tints/shades of those.
   Contrast of every text/background pair is verified in tests/contrast.test.js (WCAG AA).
   The one functional exception is a deep red used only for form error text. */
:root {
  --enter: 7%;
  --navy: #1f2d38;
  --navy-deep: #141e26;
  --navy-mid: #293b48;
  --navy-soft: #364b5a;
  --gold: #a49161;
  --gold-hi: #b9a875;
  --gold-light: #d3c7a5;
  --gold-ink: #7a6a41; /* gold for text on light backgrounds */
  --gold-tint: #f3efe4;
  --white: #ffffff;
  --tint: #f4f6f7;
  --line: #dfe4e8;
  --ink: var(--navy);
  --ink-muted: #4b5c69;
  --on-dark: #ffffff;
  --on-dark-muted: #c3ccd3;
  --on-dark-soft: #aab5be;
  --field-border: #6f7e8a;
  --error: #a4262c;
  --error-tint: #fbeeee;
  --focus: var(--navy);

  --font: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", "Tahoma", sans-serif;
  --radius: 0.5rem;
  --radius-sm: 0.35rem;
  --container: 72rem;
  --gutter: 1.25rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { line-height: 1.85; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 0.6em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
::selection { background: var(--gold); color: var(--navy); }
bdi[dir="ltr"] { unicode-bidi: isolate; }

.sr-only { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprite { position: absolute; }
.skip-link {
  position: fixed; inset-block-start: -6rem; inset-inline-start: 0.5rem; z-index: 200;
  padding: 0.7rem 1rem; background: var(--gold); color: var(--navy); font-weight: 700; border-radius: var(--radius-sm);
}
.skip-link:focus { inset-block-start: 0.5rem; }

/* Icons */
.icon { inline-size: 1.25em; block-size: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .i-dir { transform: scaleX(-1); }
[dir="rtl"] { --enter: -7%; }

/* Placeholders that still need real content (clearly marked, easy to find) */
mark.ph {
  background: var(--gold-tint); color: var(--navy); padding: 0 0.3em; border-radius: 0.2em; font-weight: 600;
  outline: 1px dashed var(--gold); outline-offset: 0;
}
/* Missing image placeholder */
.img-missing {
  display: grid; place-items: center; min-height: 12rem; padding: 1rem; text-align: center; font-weight: 700; color: var(--navy);
  background: repeating-linear-gradient(45deg, var(--gold-tint), var(--gold-tint) 12px, #fff 12px, #fff 24px); border: 3px dashed var(--gold);
}

/* 4. Layout ---------------------------------------------------------------- */
.container { inline-size: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section-more { margin-block-start: 2rem; margin-block-end: 0; }
.fine-print { font-size: 0.9rem; color: var(--ink-muted); margin-block: 1rem 0; }



.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 1.75rem; }
.btn-row--stack { flex-direction: column; }

/* 5. Components ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-block-size: 3rem; padding: 0.65rem 1.45rem; border: 2px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { min-block-size: 2.6rem; padding: 0.4rem 1.1rem; font-size: 0.95rem; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--gold-ink); text-decoration: none; border-block-end: 2px solid var(--gold); padding-block-end: 0.1rem; }
.link-arrow:hover { color: var(--navy); border-color: var(--navy); }


.tag {
  display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; border: 1px solid transparent;
}
.tag--confirm { background: transparent; border: 1px dashed var(--gold); }

.panel-title { font-size: 1.15rem; margin-block-end: 1rem; }


/* Alerts and forms */
.alert { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1rem 1.25rem; margin-block-end: 1.5rem; border-radius: var(--radius-sm); border: 1px solid; }
.alert[hidden] { display: none; }
.alert p { margin: 0.2rem 0 0; }
.alert--ok { background: var(--gold-tint); border-color: var(--gold); }
.alert--ok .icon { color: var(--gold-ink); margin-block-start: 0.2rem; }
.alert--error { background: var(--error-tint); border-color: var(--error); color: var(--error); font-weight: 600; }

.form { display: grid; gap: 1.15rem; }
.field-row { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.35rem; align-content: start; }
.field label { font-weight: 600; font-size: 0.98rem; }
.req { color: var(--gold-ink); }
.field input, .field select, .field textarea {
  inline-size: 100%; min-block-size: 3rem; padding: 0.65rem 0.9rem; font: inherit; font-size: 1rem; color: var(--navy);
  background: #fff; border: 1.5px solid var(--field-border); border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 1.35rem, calc(100% - 0.8rem) 1.35rem; background-size: 0.4rem 0.4rem; background-repeat: no-repeat; padding-inline-end: 2.4rem; }
[dir="rtl"] .field select { background-position: 0.8rem 1.35rem, 1.15rem 1.35rem; padding-inline-end: 0.9rem; padding-inline-start: 2.4rem; }
.field textarea { resize: vertical; min-block-size: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--gold-light); }
.field input[dir="ltr"] { text-align: start; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field-hint { margin: 0; font-size: 0.875rem; color: var(--ink-muted); }
.field-error { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error select { border-color: var(--error); border-width: 2px; }
.form-foot { display: grid; gap: 0.75rem; justify-items: start; }
.form-foot .fine-print { margin: 0; }
.hp { position: absolute; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; overflow: hidden; }

/* 6. Header, footer, mobile bar ------------------------------------------- */
.site-header { position: sticky; inset-block-start: 0; z-index: 100; background: var(--navy); color: #fff; border-block-end: 1px solid rgba(255, 255, 255, 0.1); --focus: var(--gold-light); }
.header-inner { display: flex; align-items: center; gap: 0.75rem; min-block-size: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.75rem; margin-inline-end: auto; text-decoration: none; color: #fff; min-inline-size: 0; }
.brand-mark { block-size: 2.6rem; inline-size: auto; }
.brand-text { line-height: 1.1; font-size: 1.15rem; white-space: nowrap; }
.brand-name { font-weight: 800; letter-spacing: 0.02em; }
.brand-sub { font-weight: 400; color: var(--gold-light); }

.lang-switch { display: inline-flex; align-items: center; gap: 0.4rem; min-block-size: 2.75rem; padding: 0.3rem 0.9rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.lang-switch:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.nav-toggle { display: inline-grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius-sm); cursor: pointer; }
.nav-toggle .icon { inline-size: 1.5rem; block-size: 1.5rem; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

.site-nav { display: none; position: absolute; inset-inline: 0; inset-block-start: 100%; padding: 0.5rem var(--gutter) 1.5rem; background: var(--navy); border-block-end: 3px solid var(--gold); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35); max-block-size: calc(100dvh - var(--header-h)); overflow-y: auto; }
.site-nav.is-open { display: block; }
.nav-list a { display: block; padding: 0.85rem 0.25rem; color: #fff; text-decoration: none; font-weight: 600; border-block-end: 1px solid rgba(255, 255, 255, 0.1); }
.nav-list a:hover { color: var(--gold-light); }
.nav-list a[aria-current="page"] { color: var(--gold-light); box-shadow: inset 3px 0 0 var(--gold); padding-inline-start: 0.9rem; }
[dir="rtl"] .nav-list a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--gold); }
.nav-cta { margin-block-start: 1.1rem; inline-size: 100%; }

.site-footer { background: var(--navy); color: var(--on-dark-muted); border-block-start: 4px solid var(--gold); --focus: var(--gold-light); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 7vw, 4.5rem); }
.footer-logo { inline-size: 15rem; max-inline-size: 100%; block-size: auto; margin-block-end: 1rem; }
.footer-blurb { max-inline-size: 22rem; margin: 0; }
.footer-h { margin: 0 0 1rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .footer-h { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.footer-list { display: grid; gap: 0.55rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.site-footer a:hover { color: var(--gold-light); text-decoration-color: currentColor; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-block-start: 0.3rem; }
.reg-ar { margin: 0 0 0.25rem; font-size: 1.5rem; font-weight: 700; line-height: 1.4; color: var(--gold-light); }
.reg-lat { margin: 0; color: #fff; }
.footer-bottom { padding-block: 1.25rem; border-block-start: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.9rem; color: var(--on-dark-soft); }
.footer-bottom p { margin: 0; }

.mobile-bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.5fr; background: var(--navy-deep); border-block-start: 2px solid var(--gold); padding-block-end: env(safe-area-inset-bottom); --focus: var(--gold-light); }
.mb-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; min-block-size: 3.6rem; padding: 0.4rem; color: #fff; text-decoration: none; font-size: 0.8rem; font-weight: 700; }
.mb-btn + .mb-btn { border-inline-start: 1px solid rgba(255, 255, 255, 0.12); }
.mb-primary { background: var(--gold); color: var(--navy); }
body { padding-block-end: calc(3.75rem + env(safe-area-inset-bottom)); }

/* 7. Pages ----------------------------------------------------------------- */
/* Home hero: the truck stands on the page's own ground line (the top edge of the trust strip),
   in front of the gateway arch from the company mark. */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(52rem 30rem at 84% 6%, rgba(164, 145, 97, 0.2), transparent 62%), linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); --focus: var(--gold-light); }
.hero-grid { display: grid; gap: 0.6rem; padding-block: 0.75rem 0; align-items: end; }
.hero-copy { padding-block: 0.25rem 1.5rem; }
.hero h1 { margin-block-end: 0.5em; max-inline-size: 13em; }
.hero h1 .h1-line { display: block; }
.hero h1 .h1-line + .h1-line { margin-block-start: 0.3em; font-size: 0.6em; font-weight: 600; line-height: 1.3; color: var(--gold-light); letter-spacing: 0; }
html[lang="ar"] .hero h1 .h1-line + .h1-line { line-height: 1.5; }
.hero-text { max-inline-size: 32rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--on-dark-muted); }
.hero-licence { display: inline-flex; align-items: center; gap: 0.6rem; margin-block: 0.25rem 0; color: var(--gold-light); font-weight: 600; text-decoration: none; padding-block-end: 0.2rem; border-block-end: 1px solid rgba(211, 199, 165, 0.45); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.hero-licence:hover { color: #fff; border-color: currentColor; }
.hero-licence .icon { flex: none; }
.hero-licence span { text-wrap: balance; }
.hero-copy .btn-row { margin-block-start: 1.1rem; }

.hero-visual { position: relative; isolation: isolate; order: -1; margin-inline: 0.4rem; padding-block-end: 0.15rem; border-block-end: 1px solid rgba(164, 145, 97, 0.65); }
.hero-photo { display: block; inline-size: 100%; block-size: auto; }
.hero-arch { position: absolute; z-index: -1; left: -4%; bottom: 0; inline-size: 84%; block-size: auto; overflow: visible; }
/* Contact shadow where the tyres meet the ground line */
.hero-visual--scene::after { content: ""; position: absolute; z-index: -1; inset-inline: 4% 2%; inset-block-end: -0.6rem; block-size: 1.9rem; border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 70%); filter: blur(3px); }
.hero-visual--scene .hero-photo { position: relative; z-index: 1; }

/* Fallbacks: a supplied photo without a cut-out sits on a matching panel; with no image, the SVG drawing */
.hero-stage { position: relative; overflow: hidden; margin-inline: var(--gutter); border-radius: 1rem; background: #f8f8f8; border-block-end: 4px solid var(--gold); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.hero-truck { position: relative; inline-size: 100%; max-inline-size: 38rem; margin-inline: auto; block-size: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.35)); }

/* The trust strip is the ground: a gold hairline for the road edge, darker below it */
.trust-strip { position: relative; z-index: 2; border-block-start: 1px solid rgba(164, 145, 97, 0.7); background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.2)); }
.trust-list { display: grid; gap: 0.6rem 2rem; padding-block: 1.15rem; }
.trust-list li { display: flex; align-items: center; gap: 0.6rem; color: var(--on-dark-muted); font-size: 0.98rem; }
.trust-list .icon { color: var(--gold); }

/* Inner page header */

/* How it works: a route line with numbered stops */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding-inline-start: 4.25rem; padding-block-end: 2.25rem; }
.step:last-child { padding-block-end: 0; }
.step::before { content: ""; position: absolute; inset-block: 3.25rem 0.25rem; inset-inline-start: 1.5rem; border-inline-start: 2px dashed var(--gold); }
.step:last-child::before { display: none; }
.step-num { position: absolute; inset-block-start: 0; inset-inline-start: 0; display: grid; place-items: center; inline-size: 3rem; block-size: 3rem; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-weight: 800; border: 2px solid var(--gold); font-variant-numeric: tabular-nums; }
.step h3 { margin-block: 0.3rem 0.35em; }
.step p { margin: 0; color: var(--ink-muted); max-inline-size: 26rem; }

/* TIR highlight */
.tir-grid { display: grid; gap: 2.5rem; align-items: center; }
.tir-highlight { --focus: var(--gold-light); background: radial-gradient(40rem 22rem at 100% 100%, rgba(164, 145, 97, 0.18), transparent 60%), var(--navy); }
.tir-thumb { display: block; max-inline-size: 30rem; margin-inline: auto; padding: 0.6rem; background: #fff; border-radius: 0.4rem; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4); transform: rotate(-1.5deg); transition: transform 0.4s var(--ease); }
[dir="rtl"] .tir-thumb { transform: rotate(1.5deg); }
.tir-thumb:hover { transform: rotate(0); }
.tir-thumb-img { inline-size: 100%; block-size: auto; border-radius: 0.2rem; }

/* CTA band */
.cta-band { background: var(--navy-mid); color: #fff; border-block-start: 4px solid var(--gold); padding-block: clamp(2.5rem, 6vw, 4rem); --focus: var(--gold-light); }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { margin-block-end: 0.3em; font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.cta-band p { margin: 0; color: var(--on-dark-muted); max-inline-size: 36rem; }
.cta-band .btn-row { margin: 0; }

/* Services page */

.border-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.border-item { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.border-item.is-primary { border-color: var(--gold); }

/* Certificates */
.cert-gallery { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
.cert-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cert-open { position: relative; display: block; padding: 0.75rem; background: var(--tint); cursor: zoom-in; text-decoration: none; }
.cert-img { inline-size: 100%; block-size: auto; background: #fff; border: 1px solid var(--line); }
.cert-zoom { position: absolute; inset-block-end: 1.25rem; inset-inline-end: 1.25rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; background: var(--navy); color: #fff; border-radius: 999px; font-size: 0.85rem; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.cert-zoom .icon { color: var(--gold-light); }
.cert-meta { padding: 1.25rem 1.5rem 1.6rem; }
.cert-meta h3 { margin-block: 0.6rem 0.35em; font-size: 1.15rem; }
.cert-meta p { margin: 0; color: var(--ink-muted); }

.lightbox { inline-size: 100vw; block-size: 100dvh; max-inline-size: none; max-block-size: none; margin: 0; padding: 0; border: 0; background: rgba(10, 16, 21, 0.97); color: #fff; --focus: var(--gold-light); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(10, 16, 21, 0.9); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 1rem; background: var(--navy); border-block-end: 2px solid var(--gold); }
.lb-title { margin: 0; font-weight: 700; font-size: 0.95rem; line-height: 1.35; }
.lb-actions { display: flex; gap: 0.4rem; flex: none; }
.lb-btn { display: inline-grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.12); }
.lb-btn[data-lb="close"] { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.lb-flip { transform: scaleX(-1); }
[dir="rtl"] .icon.lb-flip { transform: none; }
.lb-ico-out { display: none; }
[aria-pressed="true"] .lb-ico-in { display: none; }
[aria-pressed="true"] .lb-ico-out { display: block; }
.lb-stage { flex: 1; min-block-size: 0; overflow: auto; display: grid; place-items: center; padding: 1rem; -webkit-overflow-scrolling: touch; }
.lb-img { max-inline-size: 100%; max-block-size: calc(100dvh - 6rem); inline-size: auto; block-size: auto; background: #fff; cursor: zoom-in; }
.lb-stage.is-zoomed { place-items: start; }
.lb-stage.is-zoomed .lb-img { max-inline-size: none; max-block-size: none; inline-size: max(180vw, 1500px); cursor: zoom-out; }

/* Contact */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-main > h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.contact-list { display: grid; gap: 1rem; margin-block-end: 1.5rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list .icon { color: var(--gold-ink); margin-block-start: 0.35rem; }
.contact-list a { font-weight: 600; }
.cl-label { display: block; font-size: 0.85rem; color: var(--ink-muted); }
.map-card { margin-block-start: 1.25rem; display: grid; gap: 0.75rem; }
.map { inline-size: 100%; block-size: 18rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
.map-card .link-arrow { justify-self: start; }

/* Scroll reveal (only applied by JS to below-the-fold elements) */
.rv { opacity: 0; transform: translateY(14px); }
.rv.rv-in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

/* 8. Motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.7s var(--ease) both; }
  .hero-visual--scene .hero-photo { animation: arrive 1.15s var(--ease) both; }
  .hero-arch { animation: fade-in 1.4s 0.1s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
}
@keyframes arrive { from { opacity: 0; transform: translateX(var(--enter, 7%)); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Small phones: keep brand, language switch and menu button on one line */
@media (max-width: 30rem) {
  .header-inner { gap: 0.5rem; }
  .brand { gap: 0.5rem; }
  .brand-mark { block-size: 2.25rem; }
  .brand-text { font-size: 1rem; }
  .lang-switch { padding-inline: 0.7rem; }
  .lang-switch .icon { display: none; }
  .hero-badge { font-size: 0.9rem; }
}
@media (max-width: 22.5rem) {
  .brand-sub { display: none; }
}

/* 9. Larger screens -------------------------------------------------------- */
@media (min-width: 640px) {
  :root { --gutter: 1.75rem; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-list { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 0.6rem 2.5rem; padding-block: 1.35rem; }
  .trust-list li { white-space: nowrap; }
}

@media (min-width: 768px) {
  .mobile-bar { display: none; }
  body { padding-block-end: 0; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(1.5rem, 4vw, 3.5rem); padding-block-start: clamp(2.25rem, 5vw, 4.5rem); }
  .hero-copy { align-self: center; padding-block: 0 3.5rem; }
  .hero-text { max-inline-size: 30rem; }
  /* Sized so the whole truck and its ground line fit in the first screen: header, top space and trust strip are about 14.5rem */
  .hero-visual { inline-size: min(46vw, 40rem, calc((100svh - 14.5rem) * 1.049)); order: 0; margin-inline: 0; padding-block-end: 0; border-block-end: 0; }
  .hero-stage { margin-inline: 0; }
  .hero-arch { left: -5%; inline-size: 78%; }
  .tir-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
  .cta-inner { grid-template-columns: 1fr auto; gap: 3rem; }
  .cert-gallery { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1.35fr 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 0.9fr 1.5fr 1.1fr; gap: 2.5rem; }

  /* Steps become a horizontal route */
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .step { padding-inline-start: 0; padding-block: 4.25rem 0; }
  .step::before { inset-block: 1.5rem auto; inset-inline: 3.5rem -1.5rem; border-inline-start: 0; border-block-start: 2px dashed var(--gold); }
  .step-num { inset-inline-start: 0; }
  .step p { max-inline-size: 15rem; }

  /* Corridor becomes horizontal */
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .header-inner { gap: 1.5rem; }
  .site-nav { display: flex; align-items: center; gap: 1.25rem; position: static; order: 2; margin-inline-start: auto; padding: 0; background: none; border: 0; box-shadow: none; max-block-size: none; overflow: visible; }
  .brand { margin-inline-end: 0; }
  .lang-switch { order: 3; }
  .nav-list { display: flex; gap: 0.25rem; }
  .nav-list a { white-space: nowrap; padding: 0.5rem 0.75rem; border: 0; border-radius: var(--radius-sm); font-size: 0.98rem; box-shadow: none !important; position: relative; }
  .nav-list a[aria-current="page"] { padding-inline-start: 0.75rem; }
  .nav-list a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0.75rem; inset-block-end: 0.15rem; block-size: 2px; background: var(--gold); }
  .nav-cta { margin: 0; inline-size: auto; white-space: nowrap; }
}

@media (min-width: 1280px) {
  .hero-visual { margin-inline-end: -2.5rem; }
}

/* Between 960 and 1180px the header is tight: the hero and every page already carry the quote button */
@media (min-width: 960px) and (max-width: 1179px) {
  .nav-cta { display: none; }
  .nav-list a { padding-inline: 0.55rem; font-size: 0.94rem; }
}


/* 10. Rooms: dark, lit pages with frosted glass cut to the logo's pointed arch (About, Services) --------------
   Glass only ever sits over a lit or patterned backdrop (the gold glows and the giant arch and ring behind it),
   so the blur has something to soften. Panels are never glass on a flat white page. */
:root {
  --arch-cap-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100C0 76 15 60 33 40C43 29 48 14 50 0C52 14 57 29 67 40C85 60 100 76 100 100Z'/%3E%3C/svg%3E");
  --arch-cap-stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100C0 76 15 60 33 40C43 29 48 14 50 0C52 14 57 29 67 40C85 60 100 76 100 100' fill='none' stroke='%23D3C7A5' stroke-opacity='.55' stroke-width='1.3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055) 55%, rgba(255, 255, 255, 0.04));
  --glass-line: rgba(211, 199, 165, 0.42);
}

.room { position: relative; overflow: hidden; color: #fff; padding-block: clamp(3.5rem, 9vw, 7rem); background: radial-gradient(36rem 26rem at 8% 60%, rgba(164, 145, 97, 0.2), transparent 64%), radial-gradient(34rem 24rem at 94% 30%, rgba(164, 145, 97, 0.14), transparent 64%), var(--navy); --focus: var(--gold-light); }
.room + .room { border-block-start: 1px solid rgba(164, 145, 97, 0.16); }
.room > .container { position: relative; z-index: 1; }
.room--head { background: radial-gradient(46rem 28rem at 86% 4%, rgba(164, 145, 97, 0.26), transparent 62%), radial-gradient(30rem 20rem at 4% 100%, rgba(164, 145, 97, 0.1), transparent 62%), var(--navy); padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 7rem); }
.room-scene { position: absolute; z-index: 0; inset-block-start: -14%; inset-inline-end: -10%; inline-size: min(46rem, 92vw); block-size: auto; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 80%); mask-image: linear-gradient(to bottom, #000 35%, transparent 80%); }
.room-scene--b { inset-block: auto -4rem; inset-inline: -16% auto; inline-size: min(40rem, 90vw); -webkit-mask-image: linear-gradient(to bottom, transparent 6%, #000 38%, #000 58%, transparent 90%); mask-image: linear-gradient(to bottom, transparent 6%, #000 38%, #000 58%, transparent 90%); }
.room-scene--c { inset-block-start: -8%; inset-inline: auto; left: 50%; transform: translateX(-50%); inline-size: min(58rem, 120vw); -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 82%); mask-image: linear-gradient(to bottom, #000 40%, transparent 82%); }

.room h1 { color: #fff; margin: 0 0 0.45em; }
.room-head { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.room-head-copy { max-inline-size: 36rem; }
.room-lead { max-inline-size: 32rem; margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--on-dark-muted); }
.room-title { margin: 0 0 clamp(1.25rem, 3vw, 2rem); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.room-note { max-inline-size: 26rem; margin: 0; color: var(--on-dark-muted); }

/* The arch: a glass window cut to the logo's pointed arch, with a gold hairline and a crest at the apex */
.arch { --cap: clamp(6.5rem, 30vw, 10.5rem); position: relative; isolation: isolate; min-inline-size: 0; color: #fff; padding: calc(var(--cap) + 1.1rem) clamp(1.5rem, 3.2vw, 2.75rem) clamp(2rem, 3.6vw, 3rem); }
.arch::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glass-fill);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  -webkit-mask: var(--arch-cap-mask) top / 100% var(--cap) no-repeat, linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--cap) + 1px) no-repeat;
  mask: var(--arch-cap-mask) top / 100% var(--cap) no-repeat, linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--cap) + 1px) no-repeat;
}
.arch::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    var(--arch-cap-stroke) top / 100% var(--cap) no-repeat,
    linear-gradient(var(--glass-line), var(--glass-line)) left bottom / 1px calc(100% - var(--cap)) no-repeat,
    linear-gradient(var(--glass-line), var(--glass-line)) right bottom / 1px calc(100% - var(--cap)) no-repeat,
    linear-gradient(var(--glass-line), var(--glass-line)) left bottom / 100% 1px no-repeat;
}
.arch-crest { position: absolute; left: 50%; inset-block-start: calc(var(--cap) * 0.44); transform: translateX(-50%); display: grid; place-items: center; inline-size: 3.25rem; block-size: 3.25rem; border-radius: 50%; color: var(--gold-light); border: 1px solid rgba(211, 199, 165, 0.6); background: rgba(255, 255, 255, 0.07); }
.arch-crest .icon { inline-size: 1.45rem; block-size: 1.45rem; }
.arch-crest picture, .arch-crest .crest-mark { inline-size: 1.7rem; block-size: auto; }
.arch h2, .arch h3 { margin: 0 0 0.55em; line-height: 1.3; }
.arch h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.arch p { margin: 0 0 1em; color: var(--on-dark-muted); max-inline-size: 34rem; }
.arch p:last-child { margin-block-end: 0; }

/* Flat frosted glass for wide panels */
.glass {
  position: relative; padding: clamp(1.5rem, 3.4vw, 2.75rem); color: #fff; border-radius: 0.25rem; background: var(--glass-fill); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.glass h2 { margin: 0 0 0.5em; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; }
.glass p { color: var(--on-dark-muted); max-inline-size: 34rem; margin: 0; }

/* About */
.story { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.story-who p { font-size: 1.125rem; line-height: 1.75; }
.arch p.statement { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; line-height: 1.5; color: #fff; }
.story-focus { display: grid; gap: 2rem; align-items: center; }
.story-focus p { font-size: 1.05rem; line-height: 1.75; }
.mini-lane { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.8rem; }
.ml-node { padding: 0.55rem 0.85rem; font-size: 0.92rem; font-weight: 700; white-space: nowrap; border: 1px solid rgba(211, 199, 165, 0.6); border-radius: 0.6rem; background: rgba(255, 255, 255, 0.06); }
.ml-road { position: relative; block-size: 3px; min-inline-size: 2.5rem; background: repeating-linear-gradient(to right, var(--gold) 0 10px, transparent 10px 20px); }
.ml-truck { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; inline-size: 2.4rem; block-size: 2.4rem; border-radius: 50%; background: var(--gold); color: var(--navy); }

/* Services */
.colonnade { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.arch--svc, .story-who, .story-mission { max-inline-size: 28rem; inline-size: 100%; }
.colonnade > li:nth-child(2) { justify-self: end; }
.colonnade > li:nth-child(1), .colonnade > li:nth-child(3) { justify-self: start; }
.arch--svc h3 { font-size: 1.3rem; }
/* The truck stands on the bottom edge of the Services header, like the home hero's ground line */
.room--head-solo { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(3.5rem, 9vw, 7rem); }
.room--head-solo::after { content: ""; position: absolute; z-index: 2; inset-inline: 0; inset-block-end: 0; block-size: 1px; background: linear-gradient(90deg, transparent, rgba(164, 145, 97, 0.7) 8%, rgba(164, 145, 97, 0.7) 92%, transparent); }
.room-head-visual { position: relative; isolation: isolate; max-inline-size: 30rem; margin-inline: auto;  margin-block-end: calc(-1 * clamp(3.5rem, 9vw, 7rem)); }
.room-head-visual::after { content: ""; position: absolute; z-index: -1; inset-inline: 4% 2%; inset-block-end: -0.5rem; block-size: 1.7rem; border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 70%); filter: blur(3px); }
.room-truck { display: block; inline-size: 100%; block-size: auto; }
.ground { block-size: 1px; background: linear-gradient(90deg, transparent, rgba(164, 145, 97, 0.8) 10%, rgba(164, 145, 97, 0.8) 90%, transparent); }
.room--core { padding-block-end: clamp(2.5rem, 6vw, 4.5rem); }

.room .tag { background: transparent; color: var(--gold-light); }
.room .tag--confirm { border: 1px dashed rgba(211, 199, 165, 0.7); }

/* Panels rise once as they come into view (transform only: opacity would switch the blur off while they move) */
.lift { transform: translateY(26px); }
.lift.lift-in { transform: none; transition: transform 0.9s var(--ease); }

/* If the browser cannot blur, or the visitor asks for less transparency, the glass becomes a solid, still-legible panel */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .arch::before { background: rgba(44, 62, 76, 0.96); }
  .glass { background: rgba(44, 62, 76, 0.96); }
}
@media (prefers-reduced-transparency: reduce) {
  .arch::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(44, 62, 76, 0.97); }
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(44, 62, 76, 0.97); }
}
@media (prefers-reduced-motion: reduce) { .lift { transform: none; } }

@media (min-width: 640px) {
}
@media (min-width: 900px) {
  .room-head { grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); }
  .room--head-solo .room-head { grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem); }
  .room--head-solo .room-head-visual { align-self: end; margin-inline: 0; max-inline-size: none; }
  .story { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .story-who { grid-column: 1 / span 6; }
  .story-mission { grid-column: 8 / span 5; margin-block-start: clamp(3rem, 6vw, 5.5rem); }
  .story-focus { grid-column: 1 / -1; }
  .story-focus { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; }
  .colonnade { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .arch--svc, .story-who, .story-mission { max-inline-size: none; }
  .colonnade > li:nth-child(n) { justify-self: stretch; }
  .arch--svc { min-block-size: 22rem; }
  .colonnade > li:nth-child(2) { min-block-size: 27rem; }
}
@media (max-width: 30rem) {
  .ml-node { font-size: 0.82rem; padding-inline: 0.6rem; }
  .mini-lane { gap: 0.5rem; }
}


/* 11. Glass on the remaining pages (Routes, TIR Certificates, Contact, 404) ---------------------------------
   Same rooms as About and Services. Controls that sit on glass are re-coloured for a dark ground. */
.room--head-simple { padding-block: clamp(3rem, 7vw, 5.5rem); }
.room--head-simple .room-head { grid-template-columns: minmax(0, 1fr); }
.room--notfound { min-block-size: 60vh; display: grid; align-content: center; }
.room-note--tight { margin-block: -1rem 2rem; }
.room .fine-print { color: var(--on-dark-muted); }
.room .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.room .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.room .link-arrow { color: var(--gold-light); border-color: var(--gold); }
.room .link-arrow:hover { color: #fff; border-color: #fff; }

/* Routes */
.borders-panel .room-note { margin-block-end: 1.5rem; }
.border-item { background: rgba(255, 255, 255, 0.07); border-color: rgba(211, 199, 165, 0.35); color: #fff; }
.border-item.is-primary { border-color: var(--gold); background: rgba(164, 145, 97, 0.18); }
.borders-panel .btn-row { margin-block-start: 1.5rem; }

/* TIR Certificates */
.cert-card.glass { padding: 0; overflow: hidden; }
.cert-open { background: rgba(0, 0, 0, 0.2); padding: 1rem; }
.cert-meta h3 { color: #fff; }
.cert-meta p { color: var(--on-dark-muted); }
.what-layout { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.what-copy p { font-size: 1.05rem; line-height: 1.75; max-inline-size: 42rem; margin-block-end: 1em; }
.what-copy p:last-child { margin-block-end: 0; }
.what-arch { max-inline-size: 22rem; inline-size: 100%; }
@media (min-width: 900px) {
  .what-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .what-arch { justify-self: end; margin-block-start: clamp(2rem, 5vw, 4rem); }
}

/* Contact: fields stay light for legibility; everything around them goes dark */
.contact-main.glass { padding: clamp(1.5rem, 3.6vw, 2.75rem); }
.contact-main > h2 { margin-block-end: 1.25rem; }
.contact-card + .map-card { margin-block-start: 1.25rem; }
.contact-card .panel-title { color: #fff; }
.room .req { color: var(--gold-light); }
.room .field-hint, .room .cl-label { color: var(--on-dark-muted); }
.room .contact-list .icon { color: var(--gold-light); }
.room .contact-list a { color: #fff; }
.room .field-error { color: #ffc9c9; }
.room .field.has-error input, .room .field.has-error select { border-color: #ff8a8a; }
.room .alert--error { background: rgba(255, 120, 120, 0.14); border-color: #ff8a8a; color: #ffd6d6; }
.room .alert--ok { background: rgba(211, 199, 165, 0.14); border-color: var(--gold); color: #fff; }
.room .alert--ok .icon { color: var(--gold-light); }
.map-card.glass { padding: 1rem; }
.map-card .map { border-color: rgba(255, 255, 255, 0.18); border-radius: 0.25rem; }


/* 12. Home page below the hero: the same glass rooms as the other pages ------------------------------------ */
.room-note--wide { max-inline-size: 40rem; margin-block: -1rem 2rem; }
.tir-highlight .room-note--wide { margin-block: 0; font-size: 1.1rem; }
.ring-icon { display: grid; place-items: center; inline-size: 3rem; block-size: 3rem; border-radius: 50%; color: var(--gold-light); border: 1px solid rgba(211, 199, 165, 0.55); background: rgba(255, 255, 255, 0.06); flex: none; }
.ring-icon .icon { inline-size: 1.4rem; block-size: 1.4rem; }
.trio, .how-panel, .why-panel { padding: clamp(1.75rem, 4vw, 3.25rem); }
.trio-list, .why-grid { display: grid; gap: 0; }
.trio-list > li, .why-grid > li { padding-block: 1.75rem; border-block-end: 1px solid rgba(255, 255, 255, 0.12); }
.trio-list > li:first-child, .why-grid > li:first-child { padding-block-start: 0; }
.trio-list > li:last-child, .why-grid > li:last-child { padding-block-end: 0; border-block-end: 0; }
.trio-list h3, .why-grid h3 { margin: 1.1rem 0 0.4em; font-size: 1.25rem; }
.trio-list p, .why-grid p { margin: 0; color: var(--on-dark-muted); max-inline-size: 26rem; }
.room .section-more { margin-block-start: 2rem; }
.how-panel .step p { color: var(--on-dark-muted); }
.how-panel .step::before { border-color: rgba(211, 199, 165, 0.6); }
.tir-highlight { padding-block: clamp(3.5rem, 9vw, 7rem); }
.tir-highlight h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
@media (min-width: 900px) {
  .trio-list { grid-template-columns: repeat(3, 1fr); }
  .trio-list > li { padding: 0 clamp(1.25rem, 2.5vw, 2.5rem); border-block-end: 0; border-inline-end: 1px solid rgba(255, 255, 255, 0.12); }
  .trio-list > li:first-child { padding-inline-start: 0; }
  .trio-list > li:last-child { padding-inline-end: 0; border-inline-end: 0; }
  .why-grid { grid-template-columns: repeat(3, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); }
  .why-grid > li, .why-grid > li:first-child, .why-grid > li:last-child { padding-block: 1.75rem; }
  .why-grid > li:nth-child(-n+3) { padding-block-start: 0; }
  .why-grid > li:nth-last-child(-n+3) { padding-block-end: 0; border-block-end: 0; }
}

/* About: the first arch holds the logo alone */
.arch--logo { --cap: clamp(7rem, 32vw, 11rem); inline-size: min(100%, 22rem); justify-self: center; padding: calc(var(--cap) * 0.42) 2.5rem clamp(2.25rem, 4vw, 3rem); }
.arch--logo picture { display: grid; justify-items: center; }
.plate-logo { inline-size: clamp(13rem, 24vw, 16rem); block-size: auto; max-inline-size: 100%; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35)); }


/* 13. Routes: animated route map ----------------------------------------------------------------------------
   One truck travels the path from a border gate to the next; the line draws behind it and each gate pulses as it is
   reached. The wide and tall layouts share one timeline. Art is mirrored for Arabic; labels are HTML. */
.route-figure { margin: 0; }
.route-figure figcaption { margin-block-start: 1rem; font-size: 0.9rem; color: var(--on-dark-muted); }
.route.glass { padding: clamp(1rem, 3vw, 2.25rem); overflow: hidden; }
.rm { --rm-dur: 9s; --rm-ease: cubic-bezier(0.45, 0.05, 0.3, 1); position: relative; inline-size: min(100%, 23rem); aspect-ratio: 320 / 560; margin-inline: auto; background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px); background-size: 22px 22px; border-radius: 0.25rem; }
.rm-art { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }
.rm-art--h { display: none; }
[dir="rtl"] .rm-art { transform: scaleX(-1); }
.rm-base { fill: none; stroke: var(--gold-light); stroke-opacity: 0.5; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 11; }
.rm-draw { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 7px rgba(164, 145, 97, 0.85)); }
.rm-gate { fill: rgba(255, 255, 255, 0.08); stroke: var(--gold-light); stroke-opacity: 0.85; stroke-width: 1.6; }
.rm-gate-in { fill: none; stroke: var(--gold-light); stroke-opacity: 0.35; stroke-width: 1.2; }
.rm-ring { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rm-truck-bg { fill: var(--gold); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }

/* labels: positioned by percentage of the map, mirrored through logical properties */
.rm-label { --tx0: -50%; --ty0: -50%; --tx: var(--tx0); position: absolute; inset-inline-start: var(--x); top: var(--y); transform: translate(var(--tx), var(--ty0)); display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.8rem; font-size: 0.85rem; font-weight: 700; line-height: 1.3; white-space: nowrap; color: #fff; background: rgba(31, 45, 56, 0.78); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; }
[dir="rtl"] .rm-label { --tx: calc(var(--tx0) * -1); }
.rm-label .icon { inline-size: 1em; block-size: 1em; color: var(--gold-light); }
.rm-label--start, .rm-label--end { border-color: var(--gold); background: rgba(31, 45, 56, 0.9); font-size: 0.92rem; }
.rm-dot { inline-size: 0.6rem; block-size: 0.6rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(164, 145, 97, 0.28); }
.rm-label--onward { color: var(--gold-light); font-weight: 600; }
/* tall layout (phones) */
.rm-label--start { --x: 62%; --y: 7%; --tx0: 0%; }
.rm-label--end { --x: 62%; --y: 92%; --tx0: 0%; }
.rm-label--mid { --x: 3%; --y: 50%; --tx0: 0%; }
.rm-label--seal { --x: 97%; --y: 40%; --tx0: -100%; }
.rm-label--onward { --x: 3%; --y: 84%; --tx0: 0%; }
.rm-label--start, .rm-label--end { white-space: normal; max-inline-size: 36%; border-radius: 1rem; }
.rm-label--onward { white-space: normal; max-inline-size: 38%; border-radius: 1rem; }
[dir="rtl"] .rm-label--seal { --tx: 100%; }

@supports (offset-path: path("M0 0")) {
  .rm-truck { transform: none; offset-rotate: 0deg; }
  .rm-art--v .rm-truck { offset-path: path("M160 92C70 160 250 210 160 290S70 410 160 500"); }
  .rm-art--h .rm-truck { offset-path: path("M110 214C270 214 310 92 500 120S760 214 890 110"); }
}
@media (prefers-reduced-motion: no-preference) {
  .rm-draw { animation: rm-draw var(--rm-dur) var(--rm-ease) infinite; }
  .rm-ring--start { animation: rm-ping-start var(--rm-dur) ease-out infinite; }
  .rm-ring--end { animation: rm-ping-end var(--rm-dur) ease-out infinite; }
  @supports (offset-path: path("M0 0")) { .rm-truck { animation: rm-truck var(--rm-dur) var(--rm-ease) infinite; } }
}
@media (prefers-reduced-motion: reduce) {
  @supports (offset-path: path("M0 0")) { .rm-truck { offset-distance: 50%; } }
  .rm-ring { opacity: 0.45; transform: scale(1.1); }
}
@keyframes rm-truck { 0% { offset-distance: 0%; opacity: 0; } 5% { opacity: 1; } 14% { offset-distance: 0%; } 82% { offset-distance: 100%; opacity: 1; } 92% { offset-distance: 100%; opacity: 0; } 100% { offset-distance: 0%; opacity: 0; } }
@keyframes rm-draw { 0%, 14% { stroke-dashoffset: 1; opacity: 1; } 82% { stroke-dashoffset: 0; opacity: 1; } 92% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }
@keyframes rm-ping-start { 0% { opacity: 0; transform: scale(0.6); } 4% { opacity: 0.85; } 15% { opacity: 0; transform: scale(1.5); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes rm-ping-end { 0%, 80% { opacity: 0; transform: scale(0.6); } 83% { opacity: 0.85; } 97% { opacity: 0; transform: scale(1.5); } 100% { opacity: 0; transform: scale(1.5); } }

@media (min-width: 720px) {
  .rm { inline-size: 100%; aspect-ratio: 1000 / 300; }
  .rm-art--h { display: block; }
  .rm-art--v { display: none; }
  .rm-label--start { --x: 11%; --y: 85%; --tx0: -50%; }
  .rm-label--end { --x: 89%; --y: 64%; --tx0: -50%; }
  .rm-label--mid { --x: 50%; --y: 28%; --tx0: -50%; }
  .rm-label--seal { --x: 50%; --y: 66%; --tx0: -50%; }
  [dir="rtl"] .rm-label--seal { --tx: 50%; }
  .rm-label--onward { --x: 79%; --y: 17%; --tx0: -50%; }
  .rm-label--start, .rm-label--end, .rm-label--onward { white-space: nowrap; max-inline-size: none; border-radius: 999px; }
}
.borders-panel .room-note { margin-block-end: 1.5rem; }

/* 14. UI/UX pass (ui-ux-pro-max checklist): touch targets, tap delay, focus not hidden by fixed bars ----------- */
a, button, summary, select, label[for] { touch-action: manipulation; }
.footer-list { gap: 0.1rem; }
.footer-list a, .footer-contact a { display: inline-block; padding-block: 0.55rem; }
.footer-contact li { align-items: center; }
.footer-contact li .icon { margin-block-start: 0; }
.link-arrow, .hero-licence { min-block-size: 2.75rem; align-items: center; }
.lb-btn, .nav-toggle, .lang-switch { min-inline-size: 2.75rem; min-block-size: 2.75rem; }
@media (max-width: 767.98px) {
  html { scroll-padding-bottom: 5.5rem; }
  main { padding-block-end: 0.5rem; }
}
@media (max-width: 359.98px) { .rm-label--onward { display: none; } }

@media (min-width: 1100px) { .trust-list { justify-content: space-between; } }

/* Footer: the fourth column is just the name, lined up with the first row of the other columns */
.footer-name { padding-block-start: 0.2rem; }
@media (min-width: 900px) { .footer-name { padding-block-start: 2.05rem; } }

/* Phone numbers: stacked, one consistent format; the footer pairs each number with its own round WhatsApp button */
.num-stack { display: grid; gap: 0.1rem; justify-items: start; }
.num-stack a { display: inline-block; padding-block: 0.15rem; font-variant-numeric: tabular-nums; }
.footer-contact .num-row { display: flex; align-items: center; gap: 0.7rem; }
.footer-contact .num-row > a:first-of-type { font-variant-numeric: tabular-nums; }
.footer-list .wa-pill, .footer-contact .wa-pill { display: inline-flex; align-items: center; justify-content: center; inline-size: 2.75rem; block-size: 2.75rem; padding: 0; margin-block: -0.3rem; color: #fff; text-decoration: none; border: 1px solid rgba(211, 199, 165, 0.45); border-radius: 50%; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.wa-pill .icon { inline-size: 1.2rem; block-size: 1.2rem; color: var(--gold-light); margin: 0; }
.wa-pill:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold-light); }

/* The CTA "Call" button jumps to the footer's contact column; its numbers glow briefly so the visitor sees where they landed */
#contact-numbers:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  #contact-numbers:target .num-row { animation: land 2.2s var(--ease) 1; border-radius: 0.5rem; }
}
@keyframes land { 0%, 25% { background: rgba(164, 145, 97, 0.3); box-shadow: 0 0 0 0.4rem rgba(164, 145, 97, 0.3); } 100% { background: transparent; box-shadow: 0 0 0 0.4rem transparent; } }

/* Contact card: each number once, with a small round WhatsApp button, exactly like the footer */
.num-stack .num-line { display: flex; align-items: center; gap: 0.7rem; }
.num-line a.wa-pill { display: inline-flex; align-items: center; justify-content: center; inline-size: 2.75rem; block-size: 2.75rem; padding: 0; margin-block: -0.3rem; font-weight: 400; color: #fff; text-decoration: none; border: 1px solid rgba(211, 199, 165, 0.45); border-radius: 50%; }
.num-line a.wa-pill:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold-light); }
.num-line a.wa-pill .icon { inline-size: 1.2rem; block-size: 1.2rem; margin: 0; color: var(--gold-light); }
.contact-list .num-line > a:first-child { font-variant-numeric: tabular-nums; }
.contact-list .num-stack { gap: 0.55rem; }
