/* HATRA AV website — Brand Book V2.1 colors. Green is only for "delivered / verified". */
@font-face { font-family: "Rabar"; src: url("/fonts/Rabar.ttf") format("truetype"); font-display: swap; }

:root {
  --navy: #062A4A; --blue: #0D3B66; --aqua: #00A8E8; --water: #EAF8FD;
  --soft: #F5F7F9; --slate: #64748B; --green: #16A36A; --ink: #10243A;
  --line: #DCE6EE; --mist: #C9DCEA; --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font-size: 17px; line-height: 1.8; }
.l-kmr body { font-family: "Rabar", "Noto Sans Arabic", Tahoma, sans-serif; }
.l-ar body { font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif; }
.l-en body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.65; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.l-en h1, .l-en h2 { letter-spacing: -0.02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gap { margin-top: 28px; }

/* ---------- Header ---------- */
.top { position: relative; z-index: 5; background: var(--navy); color: #fff; }
.bar { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.brand img { display: block; height: 44px; padding: 5px 8px; border-radius: 12px; background: #fff; }
.links { display: flex; gap: 20px; margin-inline-start: auto; font-size: 15px; }
.links a { padding: 4px 0; color: var(--mist); text-decoration: none; border-bottom: 2px solid transparent; }
.links a:hover { color: #fff; }
.links a[aria-current="page"] { color: #fff; border-bottom-color: var(--aqua); }
.langs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); }
.langs a { padding: 3px 11px; border-radius: 999px; color: var(--mist); font-size: 14px; text-decoration: none; }
.langs a.on { background: #fff; color: var(--navy); font-weight: 700; }
.menu { display: none; position: relative; }
.menu summary { display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; }
.menu nav { position: absolute; top: 54px; inset-inline-end: 0; display: grid; min-width: 220px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(6,42,74,.3); }
.menu nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.menu nav a[aria-current="page"] { background: var(--water); color: var(--blue); font-weight: 700; }

/* ---------- Navy bands (hero + page heads) ---------- */
.band { background: var(--navy); color: #fff; }
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; padding-top: 40px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 700; }
.lead { max-width: 34em; margin: 18px 0 28px; color: var(--mist); font-size: clamp(18px, 2vw, 21px); }
.pagehead { padding-top: 32px; padding-bottom: 64px; }
.pagehead h1 { max-width: 16em; font-size: clamp(36px, 5.5vw, 62px); }
.pagehead .lead { margin-bottom: 0; }
.pagehead .actions { margin-top: 28px; }
.hint { margin: 16px 0 0; color: var(--mist); font-size: 15px; }
.back { display: inline-block; margin-bottom: 14px; color: var(--mist); font-size: 15px; text-decoration: none; }
.back::before { content: "→ "; }
[dir="ltr"] .back::before { content: "← "; }
.back:hover { color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-size: 16px; font-weight: 700; text-decoration: none; }
.btn-aqua { background: var(--aqua); color: var(--navy); }
.btn-aqua:hover { background: #33BAED; }
.btn-line { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.btn-line:hover { border-color: #fff; }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }
.btn[aria-disabled="true"]:hover { background: var(--aqua); }
.btn-line[aria-disabled="true"]:hover { border-color: rgba(255,255,255,.4); background: none; }

.proof-card { padding: 28px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.proof-card .tag { color: var(--green); font-size: 14px; font-weight: 700; }
.proof-card .qty { margin: 10px 0 2px; color: var(--navy); font-size: 38px; font-weight: 700; line-height: 1.2; }
.proof-card .place { color: var(--slate); font-size: 18px; }
.proof-card .done { color: var(--aqua); font-size: 22px; font-weight: 700; }
.proof-card small { color: var(--slate); }
.mini { display: flex; align-items: center; margin: 24px 0 14px; }
.mini i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--aqua); }
.mini span { flex: 1; height: 3px; background: var(--aqua); }
.mini b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-size: 16px; }

/* ---------- The brand Flow Line: one aqua line through the page, ending in a green check ---------- */
.sec.alt { background: var(--soft); }
.sec.dark { background: var(--navy); color: #fff; }
.rail { position: relative; padding-top: 72px; padding-bottom: 72px; padding-inline-start: 72px; }
.rail::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 29px; width: 3px; background: var(--aqua); }
.rail.first::before { top: 88px; }
.rail.end::before { bottom: auto; height: 80px; }
.dot { position: absolute; top: 80px; inset-inline-start: 21px; width: 19px; height: 19px; border: 4px solid var(--aqua); border-radius: 50%; background: #fff; }
.sec.alt .dot { background: var(--soft); }
.endcheck { position: absolute; top: 74px; inset-inline-start: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-size: 20px; font-weight: 700; }
h2 { max-width: 20em; color: var(--navy); font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
h2.h3 { margin-bottom: 18px; font-size: 24px; }
.sec.dark h2 { color: #fff; }
.sub { max-width: 38em; margin: 14px 0 0; color: var(--slate); font-size: 18px; }
.sec.dark .sub { color: var(--mist); }
.textlink { color: var(--blue); font-weight: 700; text-decoration-color: var(--aqua); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.textlink:hover { color: var(--aqua); }
.note { margin: 22px 0 0; color: var(--slate); font-size: 15px; }
.empty { margin-top: 24px; color: var(--slate); }

/* Steps: a real sequence, so it is numbered and ends in the green check */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 44px 0 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-top: 36px; padding-inline-end: 24px; }
.steps li::before { content: ""; position: absolute; top: 8px; inset-inline: 0; height: 3px; background: var(--aqua); }
.steps li::after { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 19px; height: 19px; border: 4px solid var(--aqua); border-radius: 50%; background: #fff; box-sizing: border-box; }
.sec.alt .steps li::after { background: var(--soft); }
.steps li:last-child::before { display: none; }
.steps li:last-child::after { content: "✓"; top: -5px; display: grid; place-items: center; width: 30px; height: 30px; border-color: var(--green); background: var(--green); color: #fff; font-size: 15px; line-height: 1; }
.steps .n { color: var(--aqua); font-size: 14px; font-weight: 700; }
.steps h3 { margin: 4px 0 8px; color: var(--navy); font-size: 22px; }
.steps p { margin: 0; color: var(--slate); font-size: 16px; }

/* Journey (8 statuses) */
.journey { margin: 0; padding: 0; list-style: none; counter-reset: st; }
.journey li { position: relative; padding: 0 0 22px; padding-inline-start: 40px; font-size: 18px; font-weight: 600; color: var(--navy); counter-increment: st; }
.journey li::before { content: ""; position: absolute; top: 12px; bottom: -12px; inset-inline-start: 8px; width: 3px; background: var(--aqua); }
.journey li::after { content: ""; position: absolute; top: 6px; inset-inline-start: 0; width: 19px; height: 19px; border: 4px solid var(--aqua); border-radius: 50%; background: var(--soft); box-sizing: border-box; }
.journey li.final { padding-bottom: 0; color: var(--green); }
.journey li.final::before { display: none; }
.journey li.final::after { content: "✓"; top: 2px; inset-inline-start: -5px; display: grid; place-items: center; width: 29px; height: 29px; border-color: var(--green); background: var(--green); color: #fff; font-size: 14px; }

/* Rows: places, deliveries */
.rows { max-width: 820px; margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row-link { display: grid; gap: 2px; min-width: 0; text-decoration: none; }
a.row-link:hover .name { color: var(--blue); text-decoration: underline; text-decoration-color: var(--aqua); text-underline-offset: 4px; }
.rows .name { font-size: 19px; font-weight: 600; }
.rows .meta { color: var(--slate); font-size: 14px; }
.need { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.need.high { background: var(--aqua); color: var(--navy); }
.need.medium { background: var(--water); color: var(--blue); }
.need.low { border: 1px solid var(--line); color: var(--slate); background: #fff; }
.band .need { margin-inline-start: 10px; vertical-align: middle; }
.band .need.low { border-color: rgba(255,255,255,.3); background: transparent; color: var(--mist); }
.verified { color: var(--green); font-weight: 700; white-space: nowrap; }

/* Places filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 15px; text-decoration: none; }
.pills a:hover { border-color: var(--aqua); }
.pills a[aria-current="true"] { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 700; }
.search { display: flex; gap: 8px; }
.search input { width: 240px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; }
.search input::placeholder { color: #94A3B8; }
.search input:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(0,168,232,.2); }
.search button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.count { margin: 24px 0 0; color: var(--slate); font-size: 15px; }

/* Proof checks, features, values */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checks { display: grid; gap: 16px; margin: 6px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 14px; font-size: 18px; }
.checks li::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: .65em; border-radius: 50%; background: var(--aqua); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; max-width: 980px; margin: 32px 0 0; }
.features div { padding: 20px 0; border-top: 1px solid var(--line); }
.features dt { color: var(--navy); font-size: 20px; font-weight: 700; }
.features dd { margin: 4px 0 0; color: var(--slate); }
.values { display: grid; max-width: 760px; margin: 28px 0 0; padding: 0; list-style: none; }
.values li { display: grid; grid-template-columns: 16px 170px 1fr; gap: 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.values li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--aqua); align-self: center; }
.values li.final::before { background: var(--green); }
.values strong { color: var(--navy); font-size: 20px; }
.values span { color: var(--slate); }
.kicker { margin: 0 0 8px; color: var(--aqua); font-weight: 700; }
.quote { max-width: 18em; margin: 0; color: var(--navy); font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.25; }

/* Numbers + bars */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 860px; margin: 32px 0 0; }
.rail.first > .stats:first-of-type { margin-top: 0; }
.stats.two-stats { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
.stats b { display: block; color: var(--navy); font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.stats span { display: block; margin-top: 10px; color: var(--slate); }
.bars { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 110px 1fr 64px; gap: 12px; align-items: center; }
.bars .label { color: var(--ink); font-size: 15px; }
.bars .track { height: 12px; border-radius: 999px; background: #E3ECF2; overflow: hidden; }
.bars .fill { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: var(--aqua); }
.bars .value { color: var(--navy); font-weight: 700; text-align: end; }

/* FAQ + legal text */
.faq { max-width: 820px; margin-top: 24px; }
.faq details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { color: var(--navy); font-size: 18px; font-weight: 700; cursor: pointer; }
.faq summary::marker { color: var(--aqua); }
.faq p { margin: 10px 0 0; color: var(--slate); }
.prose { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.prose h2 { margin: 40px 0 10px; font-size: 24px; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--blue); text-decoration-color: var(--aqua); }

/* ---------- Footer ---------- */
footer { padding: 44px 0 28px; background: var(--soft); color: var(--slate); font-size: 15px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot-brand img { display: block; height: 48px; }
.foot-brand p { margin: 10px 0 0; color: var(--navy); font-weight: 700; }
.foot-links { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 40px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--blue); }
.copy { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .links { display: none; }
  .langs { margin-inline-start: auto; }
  .menu { display: block; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 64px; }
  .two { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding-top: 0; padding-inline-start: 40px; padding-inline-end: 0; }
  .steps li::before { top: 22px; bottom: -28px; inset-inline-start: 8px; inset-inline-end: auto; width: 3px; height: auto; }
  .steps li::after { top: 4px; }
  .steps li:last-child::after { top: 0; inset-inline-start: -5px; }
  .stats { grid-template-columns: 1fr; }
  .stats.two-stats { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .foot-links { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .bar { gap: 10px; }
  .brand img { height: 38px; }
  .langs a { padding: 3px 8px; font-size: 13px; }
  .rail { padding-top: 56px; padding-bottom: 56px; padding-inline-start: 46px; }
  .rail::before { inset-inline-start: 15px; }
  .rail.first::before { top: 72px; }
  .rail.end::before { height: 64px; }
  .dot { top: 64px; inset-inline-start: 7px; }
  .endcheck { top: 58px; inset-inline-start: -2px; }
  .search { width: 100%; }
  .search input { flex: 1; width: auto; }
  .values li { grid-template-columns: 16px 1fr; }
  .values li span { grid-column: 2; }
  .bars li { grid-template-columns: 84px 1fr 52px; }
  .foot-links { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
}
