/* AR Travel — shared look. Colours from the logo: amber "A" + slate "R" on white. */
:root {
  --bg: #F4F5F7; --card: #FFFFFF; --line: #E3E6EB; --ink: #1F2430; --soft: #4A5262; --muted: #6B7280;
  --slate: #3F4757; --slate-2: #2B313D; --amber: #E2A033; --amber-2: #B9781A; --amber-bg: #FFF4E0;
  --ok: #1F8A5B; --ok-bg: #E6F5EE; --info: #2F6FB3; --info-bg: #E8F1FB; --bad: #C2412D; --bad-bg: #FDECE8;
  --f-body: 'Tajawal', system-ui, sans-serif; --f-head: 'El Messiri', 'Tajawal', serif; --f-brand: 'Montserrat', system-ui, sans-serif;
  --line2: #CDD2DA; --chip: #EEF0F4; --tabs: #E7EAEF; --surface: #F7F8FA; --slate-ink: #3F4757; --info-ink: #1F4E80;
  color-scheme: light;
}
/* Dark mode: follows the phone setting, or the 🌙/☀️ switch in the header (saved per device). */
:root[data-theme="dark"] {
  --bg: #11141A; --card: #1A1F28; --line: #2A313D; --line2: #3A4352; --ink: #E9ECF1; --soft: #C3C9D3; --muted: #8E97A5;
  --slate: #3A4356; --slate-2: #4A5468; --slate-ink: #D5DAE3; --amber-2: #F0B451; --amber-bg: #3A2E17;
  --ok: #4CC38A; --ok-bg: #15302A; --info: #7DB3EE; --info-bg: #182A40; --info-ink: #BFD8F5; --bad: #F08C7E; --bad-bg: #3A1F1B;
  --chip: #252B36; --tabs: #232934; --surface: #161A22;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11141A; --card: #1A1F28; --line: #2A313D; --line2: #3A4352; --ink: #E9ECF1; --soft: #C3C9D3; --muted: #8E97A5;
    --slate: #3A4356; --slate-2: #4A5468; --slate-ink: #D5DAE3; --amber-2: #F0B451; --amber-bg: #3A2E17;
    --ok: #4CC38A; --ok-bg: #15302A; --info: #7DB3EE; --info-bg: #182A40; --info-ink: #BFD8F5; --bad: #F08C7E; --bad-bg: #3A1F1B;
    --chip: #252B36; --tabs: #232934; --surface: #161A22;
    color-scheme: dark;
  }
}
.theme-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.top-actions { display: flex; align-items: center; gap: 8px; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--info); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-head); margin: 0; line-height: 1.3; text-wrap: balance; }
.wrap { max-width: 560px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.sp { justify-content: space-between; }
.muted { color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
main { padding-block: 8px 40px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand b { display: block; font-family: var(--f-brand); font-weight: 800; letter-spacing: 1px; color: var(--slate-ink); font-size: 17px; line-height: 1.1; }
.brand small { display: block; font-family: var(--f-brand); font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.langs { display: flex; background: var(--amber-bg); border-radius: 999px; padding: 3px; }
.langs button { min-height: 34px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--amber-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--amber); color: #fff; }

/* cards & buttons */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--amber); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--amber-2); color: #fff; }
.btn.slate { background: var(--slate); }
.btn.slate:hover { background: var(--slate-2); }
.btn.ghost { background: transparent; border: 1.5px solid var(--slate-ink); color: var(--slate-ink); }
.btn.ghost:hover { background: var(--chip); }
.btn.wa { background: #1F9D55; }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.amber { background: var(--amber-bg); color: var(--amber-2); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--amber-bg); color: var(--amber-2); }
.ic.s { background: var(--chip); color: var(--slate-ink); }
.ic svg { width: 24px; height: 24px; }

/* hero */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; background: linear-gradient(135deg, #3F4757, #232833); color: #fff; display: flex; flex-direction: column; gap: 10px; }
.hero::after { content: ""; position: absolute; inset-inline-start: -60px; top: -40px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid rgba(226,160,51,.22); }
.hero > * { position: relative; z-index: 1; }
.hero .pill { align-self: flex-start; background: var(--amber-bg); color: var(--amber-2); }
.hero h1 { font-size: clamp(26px, 7vw, 34px); }
.hero p { margin: 0; color: #D5D9E0; }

/* grids */
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; }
.sec-title h2 { font-size: 22px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 112px; padding: 12px 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.35; cursor: pointer; }
.tile:hover { border-color: var(--amber); }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tiles.four .tile { min-height: 96px; font-size: 13px; }
.tiles.four .ic { width: 40px; height: 40px; }
.tiles:not(.four) > .tile:last-child:nth-child(3n+1) { grid-column: 1 / -1; flex-direction: row; min-height: 72px; gap: 12px; }
@media (max-width: 340px) { .tiles.four { grid-template-columns: repeat(2, 1fr); } }

/* offers */
.offer { display: flex; gap: 12px; align-items: stretch; }
.offer .ph { width: 104px; flex-shrink: 0; border-radius: 14px; background: linear-gradient(160deg, #5B86B2, #2F4F78); color: #fff; display: flex; align-items: flex-end; padding: 8px; font-family: var(--f-brand); font-weight: 800; font-size: 12px; overflow: hidden; position: relative; }
.offer .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.offer h3 { font-size: 17px; }
.offer p { margin: 0; color: var(--muted); font-size: 14px; }
.price { font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--amber-2); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--soft); font-weight: 500; }
.field label .req { color: var(--bad); }
.input { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); width: 100%; }
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px var(--amber-bg); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msg { padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.msg.bad { background: var(--bad-bg); color: var(--bad); }
.msg.ok { background: var(--ok-bg); color: var(--ok); }

/* price list */
.plist { display: flex; flex-direction: column; }
.plist div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.plist div:first-child { border-top: 0; }
.plist b { color: var(--amber-2); white-space: nowrap; direction: ltr; }

/* modal & toast */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20,24,32,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal .box { width: 100%; max-width: 440px; max-height: 100%; overflow: auto; background: var(--card); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal .x { align-self: flex-end; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 26px; cursor: pointer; }
.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--slate); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 16px; }
footer { padding: 20px 0 32px; text-align: center; color: var(--muted); font-size: 13px; }
[dir="ltr"] .rtl-only { display: none; }

/* phone defaults for the wrappers used by the computer layout */
.cols, .reqs, .offers { display: flex; flex-direction: column; gap: 14px; }
.hero-logo { display: none; }

/* ---------- computer & tablet ---------- */
@media (min-width: 900px) {
  .wrap { max-width: 1120px; padding-inline: 32px; }
  .top { padding-block: 22px; }
  .brand img { width: 56px; height: 56px; }
  .brand b { font-size: 21px; }
  main { padding-bottom: 64px; }
  main.stack { gap: 20px; }

  .hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 56px; border-radius: 28px; }
  .hero::after { width: 380px; height: 380px; border-width: 40px; inset-inline-start: -90px; top: -90px; }
  .hero-text { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
  .hero h1 { font-size: 46px; }
  .hero p { font-size: 19px; }
  .hero-logo { display: block; width: 200px; height: 200px; flex-shrink: 0; background: #fff; border-radius: 32px; padding: 18px; object-fit: contain; box-shadow: 0 20px 50px rgba(0,0,0,.25); }

  .sec-title { margin-top: 20px; }
  .sec-title h2 { font-size: 28px; }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .tiles .tile { min-height: 150px; font-size: 17px; border-radius: 20px; transition: transform .15s, box-shadow .15s, border-color .15s; }
  .tiles .tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31,36,48,.08); }
  .tiles .ic { width: 58px; height: 58px; border-radius: 16px; }
  .tiles .ic svg { width: 30px; height: 30px; }
  .tiles:not(.four) > .tile:last-child:nth-child(3n+1) { grid-column: auto; flex-direction: column; min-height: 150px; }
  .tiles:not(.four) > .tile:last-child:nth-child(4n+3) { grid-column: span 2; flex-direction: row; gap: 16px; } /* 7 services: fill the second row */
  .tiles.four .tile { min-height: 110px; flex-direction: row; gap: 12px; font-size: 16px; }

  .offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .offer { padding: 18px; }
  .offer .ph { width: 140px; }
  .offer h3 { font-size: 19px; }
  .wide-auto { width: auto; align-self: center; padding-inline: 40px; }

  .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .cols > .side { position: sticky; top: 20px; }
  .reqs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
  .modal .box { padding: 28px; }
}
@media (min-width: 1100px) { .offers { grid-template-columns: repeat(3, 1fr); } .offer { flex-direction: column; } .offer .ph { width: 100%; height: 150px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* small phones: keep the header on one line */
@media (max-width: 420px) {
  .brand { gap: 8px; } .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 15px; white-space: nowrap; } .brand small { font-size: 8px; letter-spacing: 1.2px; white-space: nowrap; }
  .langs button { min-width: 34px; padding: 0 8px; } .theme-btn { width: 36px; height: 36px; font-size: 16px; }
}
