/*
 * Phoenix design layer: an iOS-inspired system loaded last on every page.
 * One type scale, one spacing scale, one radius scale and one colour set,
 * so every page (home, service pages, portal, fleet map) reads the same.
 *
 * Type scale (px): 34 large title · 28 title 1 · 22 title 2 · 20 title 3 ·
 * 17 headline/body · 15 subhead · 13 footnote · 12 caption.
 * Spacing: multiples of 4 (4 8 12 16 20 24 32 48).
 */
:root {
  --ios-bg: #f2f2f7;            /* grouped page background */
  --ios-surface: #ffffff;       /* cards, sheets, fields */
  --ios-fill: #7676801f;        /* quiet controls (iOS tertiary fill) */
  --ios-label: #1c1c1e;
  --ios-label-2: #5c5c63;       /* secondary text (6.4:1 on white, WCAG AA) */
  --ios-label-3: #3c3c434d;     /* placeholders, chevrons */
  --ios-separator: #3c3c4329;
  --ios-navy: #111e38;          /* Phoenix brand navy: hero, footer, headings */
  --ios-tint: #0a6b52;          /* Phoenix green: actions and links (7:1 on white) */
  --ios-tint-pressed: #08533f;
  --ios-tint-soft: #0a6b521a;
  --ios-lime: #c6e886;          /* brand accent, only on navy */
  --ios-danger: #c4271c;
  --ios-radius-s: 10px;
  --ios-radius-m: 14px;
  --ios-radius-l: 22px;
  --ios-ease: cubic-bezier(.2, .8, .2, 1);
  --ios-tabbar-h: 64px;
  --ios-font: -apple-system, BlinkMacSystemFont, "Instrument Sans", "Segoe UI", Roboto, system-ui, sans-serif;
  --ios-font-ar: -apple-system, BlinkMacSystemFont, "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  /* Map the older page variables onto the system so legacy rules follow it. */
  --dark: var(--ios-navy); --text: var(--ios-label); --muted: #5b5b63; --line: #e3e3e8;
  --paper: var(--ios-bg); --ink: var(--ios-label); --focus: #0a6b52;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--ios-bg); }
body {
  font-family: var(--ios-font); font-size: 17px; line-height: 1.5; color: var(--ios-label);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
:root[lang=ar] body, html[lang=ar] { font-family: var(--ios-font-ar); }
:root[lang=ar] body { line-height: 1.65; }
h1, h2, h3, h4 { color: inherit; font-weight: 700; letter-spacing: -.02em; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3, [dir=rtl] h4 { letter-spacing: 0; }
a { color: var(--ios-tint); text-underline-offset: 3px; }
:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 3px solid #0a6b5280; outline-offset: 2px; border-radius: 8px; }

/* ---------- Header: frosted bar with a capsule navigation ---------- */
body > header {
  position: sticky; inset-block-start: 0; z-index: 20;
  background: #ffffffc7; border-bottom: .5px solid var(--ios-separator);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
body > header > .header-inner, body > header > .wrap.header {
  position: static; background: transparent; border: 0;
  display: flex; align-items: center; gap: 16px; min-height: 64px; padding-block: 8px;
}
body > header .brand { margin-inline-end: auto; text-decoration: none; display: flex; align-items: center; }
body > header .brand img, body > header .brand-lockup img { width: 132px; height: auto; display: block; }
body > header .brand-lockup small { font-size: 10px; color: var(--ios-label-2); font-weight: 600; }
body > header nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; padding: 3px; border-radius: 999px; background: var(--ios-fill); }
body > header nav a, body > header .nav-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px;
  border-radius: 999px; color: var(--ios-label); font-size: 15px; font-weight: 500; text-decoration: none;
  white-space: nowrap; background: transparent; box-shadow: none;
  transition: background-color .2s var(--ios-ease), color .2s var(--ios-ease), transform .12s var(--ios-ease);
}
body > header nav a:hover { background: #ffffff99; }
body > header nav a.active, body > header nav a[aria-current=page] {
  background: var(--ios-surface); color: var(--ios-label); font-weight: 600; box-shadow: 0 1px 3px #0000001f, 0 0 0 .5px #0000000a;
}
body > header .language {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 12px;
  border: 0; border-radius: 999px; background: var(--ios-fill); color: var(--ios-label); font-size: 15px; font-weight: 600; text-decoration: none;
}
body > header .language:hover { background: #76768033; }

/* ---------- Buttons: filled, tinted, plain ---------- */
.button, .cta, .consent button, .map-buttons button, .city-results button {
  -webkit-user-select: none; user-select: none;
  transition: background-color .2s var(--ios-ease), transform .12s var(--ios-ease), opacity .2s var(--ios-ease);
}
.button, .cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: var(--ios-radius-m); border: 0;
  font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
}
.button.small { min-height: 36px; padding: 0 14px; font-size: 15px; border-radius: var(--ios-radius-s); }
.button.primary { background: var(--ios-tint); color: #fff; border: 0; }
.button.primary:hover { background: var(--ios-tint-pressed); color: #fff; }
.button.secondary { background: var(--ios-tint-soft); color: var(--ios-tint); border: 0; }
.button.secondary:hover { background: #0a6b522b; }
.button.ghost { background: #ffffff26; color: #fff; border: 0; }
.button.ghost:hover { background: #ffffff38; }
.text-button { color: var(--ios-tint); font-size: 17px; font-weight: 500; border-radius: var(--ios-radius-s); }
.button:active, .cta:active, .text-button:active, body > header nav a:active, .ios-tab:active, .ios-sheet-row:active {
  transform: scale(.97); opacity: .8;
}
/* On the navy hero, the brand lime is the primary action (contrast 12:1). */
.hero .button.primary, .hero .cta, .cta { background: var(--ios-lime); color: var(--ios-navy); }
.hero .button.primary:hover, .hero .cta:hover, .cta:hover { background: #d6f0a4; color: var(--ios-navy); }
.hero .whatsapp-cta, .whatsapp-float, .floating { background: #128c5e; color: #fff; }
.hero .whatsapp-cta:hover, .whatsapp-float:hover, .floating:hover { background: #0e7550; }
.quote-section .button.primary { background: #128c5e; }

/* ---------- Hero ---------- */
.hero { background: var(--ios-navy); color: #fff; }
.hero h1, html[lang="en"] .hero h1 {
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1.12; letter-spacing: -.025em; margin-bottom: 16px;
}
[dir=rtl] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero-copy, .hero p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: #e3e9f4; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--ios-lime); }
.hero-visual, .hero-image { border-radius: var(--ios-radius-l); border: 0; box-shadow: 0 20px 50px #00000040; }
.whatsapp-help { font-size: 15px; color: #c9d4e6; }
.hero-coverage { font-size: 15px; color: #e3e9f4; }
.service-strip { background: #182746; border-top: .5px solid #ffffff1f; }
.service-items strong { font-size: 17px; font-weight: 600; }
.service-items span { font-size: 15px; color: #c9d4e6; }
.service-strip a, .hero a:not(.button):not(.cta), body > footer a { color: #fff; }

/* ---------- Sections, cards, lists ---------- */
.section-heading h1, .section-heading h2, .section h2 {
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; color: var(--ios-label); margin-bottom: 8px;
}
.section-heading h1 { font-size: clamp(28px, 3.6vw, 40px); }
.section-heading p, .section p { color: var(--muted); font-size: 17px; }
.card, .cards .card, .payment-info, .coverage-panel, .service-catalog a, .fleet-item, .request-item, .quote, .assist {
  border: 0; border-radius: var(--ios-radius-l); background: var(--ios-surface);
  box-shadow: 0 1px 2px #0000000d, 0 0 0 .5px #0000000a;
}
.card { padding: 20px; }
.cards .card { padding: 20px; transition: transform .2s var(--ios-ease), box-shadow .2s var(--ios-ease); }
.cards .card:hover, .service-catalog a:hover { background: var(--ios-surface); transform: translateY(-2px); box-shadow: 0 10px 28px #0000001a; }
.service-catalog a { transition: transform .2s var(--ios-ease), box-shadow .2s var(--ios-ease); }
.service-catalog .service-feature { background: var(--ios-navy); }
.service-card-copy h3, .card h3, .cards .card h3 { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ios-label); }
.service-feature .service-card-copy h3 { color: #fff; }
.service-card-copy p, .cards .card p, .card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.service-feature .service-card-copy p { color: #dfe6f2; }
.service-catalog .service-arrow { color: var(--ios-label-3); }
.coverage-panel { background: var(--ios-surface); }
.notice { border: 0; border-radius: var(--ios-radius-m); background: var(--ios-tint-soft); color: #0b4a3a; font-size: 15px; }
.notice .dot { background: var(--ios-tint); }
.pill, .fleet-chip { border-radius: 999px; background: var(--ios-tint-soft); color: var(--ios-tint); font-size: 13px; font-weight: 600; }
.steps li { font-size: 17px; }
.market { border: 0; border-radius: var(--ios-radius-m); background: var(--ios-surface); box-shadow: 0 0 0 .5px #0000001a; font-size: 15px; }
.market[aria-pressed=true], .request-item[aria-pressed=true], .fleet-controls .active {
  background: var(--ios-tint-soft); box-shadow: 0 0 0 2px var(--ios-tint); color: var(--ios-label);
}
.quote-option { border: 0; border-radius: var(--ios-radius-m); box-shadow: 0 0 0 .5px #0000001f; }
.quote-option[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ios-tint); }
.quote-price { color: var(--ios-tint); }
.feedback { color: var(--ios-tint); }
.feedback.error, .fleet-status.error { color: var(--ios-danger); }

/* ---------- Forms: iOS fields (16px+ text avoids zoom on iPhone) ---------- */
label { font-size: 15px; font-weight: 500; color: var(--ios-label); }
input, select, textarea {
  min-height: 48px; padding: 10px 14px; font-size: 17px; color: var(--ios-label);
  background: var(--ios-surface); border: 0; border-radius: var(--ios-radius-s);
  box-shadow: inset 0 0 0 1px #3c3c4333; transition: box-shadow .2s var(--ios-ease);
}
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ios-tint); }
input::placeholder, textarea::placeholder { color: #6e6e73; }
input[type=checkbox], input[type=radio] { min-height: 0; box-shadow: none; accent-color: var(--ios-tint); width: 20px; height: 20px; }
fieldset, .cargo-set, .fleet-form fieldset { border: 0; border-radius: var(--ios-radius-m); background: #f7f7fa; }
select { -webkit-appearance: none; appearance: none; padding-inline-end: 36px;
  background-image: url("./select-chevron.svg"); /* a file, not a data: URI: the portal CSP allows images from 'self' only */
  background-repeat: no-repeat; background-position: right 14px center; }
[dir=rtl] select { background-position: left 14px center; }

/* ---------- Footer, consent, floating WhatsApp ---------- */
.brand-footer, body > footer { background: var(--ios-navy); color: #dfe6f2; }
body > footer a, .brand-footer a { color: #fff; }
body > footer strong { font-size: 17px; }
body > footer p { color: #b9c4d8; font-size: 15px; }
.consent { border: 0; border-radius: var(--ios-radius-l); background: #ffffffeb; box-shadow: 0 10px 40px #00000033;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 16px; }
.consent button { min-height: 44px; border: 0; border-radius: var(--ios-radius-s); padding: 0 16px; background: var(--ios-fill); color: var(--ios-label); font-weight: 600; }
.consent button:first-of-type { background: var(--ios-tint); color: #fff; }
.whatsapp-float, .floating { border: 0; box-shadow: 0 8px 24px #00000040; }
.map-frame { border-radius: var(--ios-radius-l); }
.map-buttons button { border: 0; border-radius: var(--ios-radius-s); background: #ffffffe6; box-shadow: 0 1px 4px #00000026; min-height: 44px; min-width: 44px; font-size: 17px; }

/* ---------- "Ask Phoenix" assistant (phoenix-assistant.js) ---------- */
.ai-chat-button {
  position: fixed; z-index: 12; inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: calc(max(16px, env(safe-area-inset-bottom)) + 62px);
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--ios-navy); color: #fff; font: 600 15px/1 inherit; font-family: inherit; cursor: pointer;
  box-shadow: 0 8px 24px #00000040; transition: transform .12s var(--ios-ease), background-color .2s var(--ios-ease);
}
.ai-chat-button:hover { background: #1c2c4f; }
.ai-chat-button:active { transform: scale(.96); }
.ai-chat-button svg { width: 22px; height: 22px; color: var(--ios-lime); }
.ai-chat {
  position: fixed; z-index: 35; inset-inline-end: 16px; inset-block-end: 136px; width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 170px)); display: flex; flex-direction: column; overflow: hidden;
  background: #ffffffeb; border-radius: var(--ios-radius-l); box-shadow: 0 20px 60px #00000040, 0 0 0 .5px #0000001a;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); animation: ios-pop .2s var(--ios-ease);
}
.ai-chat[hidden] { display: none; }
.ai-chat header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: .5px solid var(--ios-separator); }
.ai-chat header strong { font-size: 17px; }
.ai-chat-close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--ios-fill); color: #6c6c70; display: grid; place-items: center; cursor: pointer; }
.ai-chat-close svg { width: 12px; height: 12px; }
.ai-chat-log { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ai-msg { margin: 0; padding: 9px 13px; border-radius: 18px; max-width: 86%; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-model { align-self: flex-start; background: #e9e9eb; color: var(--ios-label); border-end-start-radius: 6px; }
.ai-user { align-self: flex-end; background: var(--ios-tint); color: #fff; border-end-end-radius: 6px; }
.ai-msg a { color: inherit; font-weight: 600; }
.ai-wait { opacity: .6; }
.ai-chat-note { margin: 0; padding: 0 14px 6px; font-size: 11px; color: var(--ios-label-2); }
.ai-chat-form { display: flex; gap: 8px; padding: 8px 10px 12px; }
.ai-chat-form input { flex: 1; min-height: 40px; border-radius: 999px; padding: 8px 14px; font-size: 16px; }
.ai-chat-send { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--ios-tint); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ai-chat-send svg { width: 20px; height: 20px; }
@media (max-width: 1080px) {
  html.ios-nav-ready .ai-chat-button { inset-block-end: calc(var(--ios-tabbar-h) + env(safe-area-inset-bottom) + 74px); }
  .ai-chat-button { width: 50px; height: 50px; padding: 0; justify-content: center; }
  .ai-chat-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ai-chat { inset-inline: 8px; width: auto; inset-block-end: calc(var(--ios-tabbar-h) + env(safe-area-inset-bottom) + 8px); max-height: 70vh; }
}
/* Google address suggestions (phoenix-places.js) */
label:has(> .maps-list) { position: relative; }
.maps-list {
  position: absolute; z-index: 15; inset-inline: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none;
  background: #fffffff2; border-radius: var(--ios-radius-m); box-shadow: 0 12px 36px #00000029, 0 0 0 .5px #0000001a;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.maps-list[hidden] { display: none; }
.maps-list li[role=option] { display: grid; gap: 1px; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-weight: 400; }
.maps-list li[role=option]:hover, .maps-list li[aria-selected=true] { background: var(--ios-tint-soft); }
.maps-list strong { font-size: 15px; font-weight: 600; color: var(--ios-label); }
.maps-list small { font-size: 13px; color: var(--muted); }
.maps-credit { padding: 4px 12px 0; font-size: 11px; color: #6e6e73; text-align: end; }
.maps-route { margin: -4px 0 4px; padding: 10px 14px; border-radius: var(--ios-radius-s); background: var(--ios-tint-soft); color: #0b4a3a; font-size: 15px; font-weight: 600; }
.maps-route[hidden] { display: none; }

/* Public shipment tracking (/track/) */
.track-form { display: grid; gap: 12px; max-width: 520px; }
.track-card { max-width: 620px; margin-block: 16px; }
.track-steps { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 0; }
.track-steps li { position: relative; display: grid; gap: 2px; padding: 0 0 18px; padding-inline-start: 32px; color: var(--muted); }
.track-steps li::before { content: ""; position: absolute; inset-inline-start: 6px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #d1d1d6; }
.track-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 12px; top: 20px; bottom: 0; width: 2px; background: #e5e5ea; }
.track-steps .track-done { color: var(--ios-label); }
.track-steps .track-done::before { background: var(--ios-tint); }
.track-steps .track-done::after { background: var(--ios-tint); }
.track-steps .track-now { color: var(--ios-label); font-weight: 700; }
.track-steps .track-now::before { background: #fff; box-shadow: inset 0 0 0 4px var(--ios-tint), 0 0 0 4px var(--ios-tint-soft); }
.track-steps small { font-size: 13px; font-weight: 400; color: var(--muted); }
.track-next { padding: 10px 14px; border-radius: var(--ios-radius-s); background: var(--ios-tint-soft); color: #0b4a3a; font-weight: 600; }

/* AI helper boxes in the portal */
.ai-box { border: 0; background: linear-gradient(135deg, #eef6f2, #f2f2f7); }
.ai-box h2, .ai-box legend { display: flex; align-items: center; gap: 8px; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Admin dashboard (portal) ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-block: 8px 16px; }
.admin-stats .card { display: grid; gap: 2px; padding: 16px; }
.admin-stats strong { font-size: 28px; line-height: 1.1; color: var(--ios-tint); }
.admin-stats span { font-size: 13px; color: var(--muted); }
.admin-row { gap: 12px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-actions form { display: inline; margin: 0; }
.admin-thumb { display: block; width: 160px; height: auto; border-radius: var(--ios-radius-s); margin-block: 4px 8px; }
.admin-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.admin-media figure { margin: 0; }
.admin-media img { display: block; width: 100%; height: 90px; object-fit: cover; border-radius: var(--ios-radius-s); }
.admin-media figcaption { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-editor fieldset { display: grid; gap: 12px; margin-block: 12px; padding: 14px; }
.admin-editor textarea { min-height: 80px; }
.portal-page details.card > summary { font-weight: 600; font-size: 17px; }

/* ---------- Enhanced navigation (added by phoenix-nav.js) ---------- */
.ios-cta { min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
.ios-more { position: relative; }
.ios-more > button {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ios-label); font-size: 15px; font-weight: 500; cursor: pointer;
}
.ios-more > button:hover, .ios-more > button[aria-expanded=true] { background: #ffffff99; }
.ios-more > button.active { background: var(--ios-surface); font-weight: 600; box-shadow: 0 1px 3px #0000001f; }
.ios-more svg { width: 12px; height: 12px; transition: transform .2s var(--ios-ease); }
.ios-more > button[aria-expanded=true] svg { transform: rotate(180deg); }
.ios-menu {
  position: absolute; inset-block-start: calc(100% + 10px); inset-inline-end: 0; min-width: 230px; padding: 6px;
  background: #ffffffeb; border-radius: var(--ios-radius-m); box-shadow: 0 12px 40px #0000002e, 0 0 0 .5px #0000001a;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  transform-origin: top; animation: ios-pop .18s var(--ios-ease);
}
.ios-menu a { display: flex !important; justify-content: flex-start !important; width: 100%; border-radius: 8px !important; min-height: 44px !important; }
.ios-tabbar, .ios-sheet, .ios-backdrop { display: none; }
@keyframes ios-pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ios-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ios-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1080px) {
  body > header > .header-inner, body > header > .wrap.header { min-height: 56px; display: flex; padding-block: 6px; }
  body > header .brand img, body > header .brand-lockup img { width: 112px; }
  body > header .brand-lockup small { display: none; }
  html.ios-nav-ready body > header nav, html.ios-nav-ready body > header .ios-cta { display: none !important; }
  html.ios-nav-ready body { padding-bottom: calc(var(--ios-tabbar-h) + env(safe-area-inset-bottom)); }
  html.ios-nav-ready .whatsapp-float, html.ios-nav-ready .floating {
    inset-block-end: calc(var(--ios-tabbar-h) + env(safe-area-inset-bottom) + 12px);
  }
  html.ios-nav-ready .consent { inset-block-end: calc(var(--ios-tabbar-h) + env(safe-area-inset-bottom) + 12px); }

  .ios-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; inset-inline: 0; inset-block-end: 0;
    height: calc(var(--ios-tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #f9f9f9e0; border-top: .5px solid var(--ios-separator);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  }
  .ios-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-width: 0;
    border: 0; background: none; padding: 8px 2px 0; color: #6e6e73; text-decoration: none;
    font-size: 11px; font-weight: 500; line-height: 1.35; font-family: inherit; cursor: pointer; transition: color .2s var(--ios-ease), transform .12s var(--ios-ease);
  }
  .ios-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ios-tab svg { width: 26px; height: 26px; }
  .ios-tab[aria-current=page], .ios-tab.active { color: var(--ios-tint); font-weight: 600; }
  .ios-tab.ios-tab-main svg { width: 26px; height: 26px; color: var(--ios-tint); }

  .ios-backdrop { position: fixed; inset: 0; z-index: 40; background: #00000066; animation: ios-fade .25s var(--ios-ease); }
  .ios-sheet {
    position: fixed; z-index: 41; inset-inline: 0; inset-block-end: 0; max-height: 86vh; overflow: auto;
    padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); background: var(--ios-bg);
    border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px #00000033; animation: ios-up .32s var(--ios-ease);
  }
  .ios-backdrop.open { display: block; }
  .ios-sheet.open { display: block; }
  .ios-grabber { width: 36px; height: 5px; border-radius: 3px; background: #3c3c434d; margin: 0 auto 12px; }
  .ios-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .ios-sheet-head h2 { font-size: 20px; font-weight: 700; margin: 0; }
  .ios-sheet-close { border: 0; background: var(--ios-fill); color: #6c6c70; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
  .ios-sheet-close svg { width: 14px; height: 14px; }
  .ios-group { background: var(--ios-surface); border-radius: var(--ios-radius-m); overflow: hidden; margin-bottom: 20px; }
  .ios-sheet-row {
    display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; color: var(--ios-label);
    text-decoration: none; font-size: 17px; position: relative; transition: background-color .15s;
  }
  .ios-sheet-row:hover { background: #f2f2f7; }
  .ios-sheet-row + .ios-sheet-row::before {
    content: ""; position: absolute; inset-block-start: 0; inset-inline: 60px 0; border-top: .5px solid var(--ios-separator);
  }
  .ios-sheet-row .ios-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
  .ios-sheet-row .ios-icon svg { width: 18px; height: 18px; }
  .ios-tile-coverage { background: #2f7dd1; } .ios-tile-map { background: #0a8f7a; } .ios-tile-quote { background: #e08a1e; }
  .ios-tile-fleet { background: #5e5ce6; } .ios-tile-desk { background: #636366; } .ios-tile-admin { background: #c4271c; } .ios-tile-language { background: #8e8e93; }
  .ios-tile-request, .ios-tile-account { background: #0a6b52; }
  .ios-sheet-row .ios-label { flex: 1; }
  .ios-sheet-row .ios-chevron { width: 8px; height: 14px; color: #c4c4c7; flex: none; }
  [dir=rtl] .ios-sheet-row .ios-chevron { transform: scaleX(-1); }
  .ios-sheet-row[aria-current=page] .ios-label { font-weight: 600; color: var(--ios-tint); }
  .ios-sheet-note { font-size: 13px; color: var(--ios-label-2); padding: 0 16px; margin: -12px 0 16px; }

  .card, .cards .card { padding: 16px; }
  .hero h1, html[lang="en"] .hero h1 { font-size: clamp(30px, 8vw, 40px); }
  .service-items strong { font-size: 13px; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  body > header nav a, body > header .nav-button, .ios-more > button { padding: 0 10px; font-size: 14px; }
  body > header .brand-lockup small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* About & trust page (/about/) and the legal line in the footer */
.about-page > section { margin-block: 20px; }
.about-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin: 0; }
.about-facts div { border-top: 1px solid var(--ios-separator); padding-top: 10px; }
.about-facts dt { font-size: 13px; color: var(--ios-label-2); }
.about-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.about-quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.about-quote-grid figure { margin: 0; }
.about-quote-grid blockquote { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.about-quote-grid blockquote::before { content: "“"; color: var(--ios-tint); font-size: 28px; line-height: 0; margin-inline-end: 4px; }
.about-quote-grid figcaption { font-size: 14px; color: var(--ios-label-2); }
.about-logos { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.about-logos img { width: 140px; height: 70px; object-fit: contain; background: var(--ios-surface); border-radius: var(--ios-radius-s); padding: 8px; }
.footer-legal { font-size: 13px; opacity: .85; }
