/* Layout: white sticky header, full-bleed photo heroes with a navy veil, calm light sections, red reserved for primary actions. */
:root {
  --paper: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #EEF1F5;
  --ink: #111C2E;
  --ink-2: #33405A;
  --muted: #5B6679;
  --line: #E1E5EC;
  --navy: #0F2342;
  --navy-2: #1C3A66;
  --on-navy: #F4F6FA;
  --on-navy-muted: #C3CDDC;
  --signal: #D23C26;
  --signal-ink: #FFFFFF;
  --good: #1D7A57;
  --link: #1C4F9C;
  --warn-bg: #FCEDEA;
  --warn-ink: #8A2414;
  --info-bg: #EDF2FA;
  --tbd-bg: #FFF1C4;
  --tbd-ink: #5A4300;
  --shadow-sm: 0 1px 2px rgba(15, 35, 66, 0.06), 0 2px 8px rgba(15, 35, 66, 0.05);
  --shadow: 0 20px 50px -20px rgba(15, 35, 66, 0.35);
  --font-display: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C121C; --surface: #131B28; --surface-2: #1A2433; --ink: #E9EDF3; --ink-2: #C9D1DD; --muted: #9AA5B6; --line: #253145;
    --navy: #0A1830; --navy-2: #16305A; --on-navy: #F4F6FA; --on-navy-muted: #B4C0D2;
    --signal: #E9573F; --good: #4BB98E; --link: #8DB6F2; --warn-bg: #351A15; --warn-ink: #FFC6BA; --info-bg: #17233A;
    --tbd-bg: #463810; --tbd-ink: #FFE39A; --shadow-sm: 0 1px 2px rgba(0,0,0,0.4); --shadow: 0 20px 50px -20px rgba(0,0,0,0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0C121C; --surface: #131B28; --surface-2: #1A2433; --ink: #E9EDF3; --ink-2: #C9D1DD; --muted: #9AA5B6; --line: #253145;
  --navy: #0A1830; --navy-2: #16305A; --on-navy: #F4F6FA; --on-navy-muted: #B4C0D2;
  --signal: #E9573F; --good: #4BB98E; --link: #8DB6F2; --warn-bg: #351A15; --warn-ink: #FFC6BA; --info-bg: #17233A;
  --tbd-bg: #463810; --tbd-ink: #FFE39A; --shadow-sm: 0 1px 2px rgba(0,0,0,0.4); --shadow: 0 20px 50px -20px rgba(0,0,0,0.8);
  color-scheme: dark;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
@media (max-width: 600px) { body { font-size: 16px; } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 860px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: inherit; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; }
h3 { font-size: 1.14rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
main a:not(.btn):not(.card-link):not(.soc):not(.photo-card) { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: 8px; transform: translateY(-200%); z-index: 50; background: var(--signal); color: var(--signal-ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { transform: none; }
.eyebrow { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); font-weight: 700; }
.lede { color: var(--muted); max-width: 62ch; font-size: 1.1rem; line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.prose { display: grid; gap: 14px; max-width: 68ch; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.tbd { background: var(--tbd-bg); color: var(--tbd-ink); border-radius: 4px; padding: 0 0.3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hide-tbd .tbd { background: transparent; color: inherit; padding: 0; }
.tabular { font-variant-numeric: tabular-nums; }

/* Preview bar */
.preview-bar { background: var(--tbd-bg); color: var(--tbd-ink); font-size: 0.82rem; }
.preview-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; padding-block: 7px; }
.preview-bar button { font: inherit; font-weight: 600; color: inherit; background: transparent; border: 1.5px solid currentColor; border-radius: 999px; padding: 2px 12px; cursor: pointer; }

/* Header */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); color: var(--ink); border-bottom: 1px solid var(--line); }
header.site .bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; color: var(--ink); }
.brand svg { flex: none; width: 36px; height: 36px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--signal); }
nav.main { display: flex; gap: 2px; margin-left: auto; font-size: 0.96rem; font-weight: 600; white-space: nowrap; }
nav.main a { text-decoration: none; color: var(--ink-2); padding: 10px 12px; border-radius: 8px; }
nav.main a:hover { background: var(--surface-2); color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }
.head-actions { display: flex; align-items: center; gap: 12px; }
.call { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; text-decoration: none; color: var(--ink); }
.call small { color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.call strong { font-weight: 700; font-size: 0.98rem; font-variant-numeric: tabular-nums; }
.menu-btn { font: inherit; font-weight: 600; font-size: 0.92rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.lang { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.92rem; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; font-family: "IBM Plex Sans Arabic", var(--font-body); }
.lang:hover { border-color: var(--ink-2); }
.mobile-nav { display: none; }
.mobile-nav:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px; padding-block: 8px 18px; border-top: 1px solid var(--line); }
.mobile-nav a { text-decoration: none; color: var(--ink); padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
@media (max-width: 1100px) { .call small { display: none; } }
@media (max-width: 960px) { nav.main { display: none; } .head-actions { margin-left: auto; } }
@media (max-width: 600px) { header.site .bar { gap: 12px; min-height: 64px; } .brand-name { font-size: 1rem; } .head-actions .btn, .call { display: none; } .brand svg { width: 32px; height: 32px; } }

/* Buttons */
.btn { font: inherit; font-family: var(--font-body); font-weight: 700; font-size: 1rem; border: 0; border-radius: 10px; padding: 14px 22px; cursor: pointer; background: var(--signal); color: var(--signal-ink); text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; line-height: 1.2; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Photo heroes */
.hero, .page-hero { position: relative; color: var(--on-navy); background: var(--navy); isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero::after, .page-hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 20, 40, 0.86) 0%, rgba(9, 20, 40, 0.62) 50%, rgba(9, 20, 40, 0.25) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding-block: 80px 88px; align-items: center; }
.hero .copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.hero h1 .mark { color: #FF8A73; }
.hero .lede, .page-hero .lede { color: var(--on-navy-muted); }
.hero .eyebrow, .page-hero .eyebrow { color: #FFB4A6; }
.page-hero .wrap { display: grid; gap: 16px; padding-block: 72px 76px; }
.page-hero h1 { max-width: 20ch; }
.crumbs { font-size: 0.85rem; color: var(--on-navy-muted); }
.hero a:not(.btn), .page-hero a:not(.btn), .cta a:not(.btn) { color: var(--on-navy) !important; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 56px; gap: 32px; } .hero::after, .page-hero.has-photo::after { background: linear-gradient(180deg, rgba(9, 20, 40, 0.82), rgba(9, 20, 40, 0.7)); } .page-hero .wrap { padding-block: 52px 56px; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; font-weight: 500; }
.ticks.one { grid-template-columns: 1fr; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 13px; height: 7px; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg) translateY(-3px); }
.hero .ticks li::before { border-color: #7FD8B1; }
@media (max-width: 460px) { .ticks { grid-template-columns: 1fr; } }

/* Trust strip */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 22px; }
.trust div { display: grid; gap: 2px; }
.trust strong { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.trust span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { .trust .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sections */
section.band { padding-block: 88px; }
section.band.tight { padding-block: 56px; }
section.band.alt { background: var(--surface); border-block: 1px solid var(--line); }
@media (max-width: 600px) { section.band { padding-block: 60px; } section.band.tight { padding-block: 40px; } }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.sec-head.split { grid-template-columns: 1fr auto; align-items: end; max-width: none; }
@media (max-width: 760px) { .sec-head.split { grid-template-columns: 1fr; } .sec-head { margin-bottom: 28px; } }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow-sm); }
.card p { color: var(--muted); }
a.card-link { text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card .more { font-weight: 700; color: var(--signal); font-size: 0.94rem; margin-top: 4px; }
.card .eyebrow { font-size: 0.74rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.tiles > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 6px; align-content: start; }
.tiles p { color: var(--muted); font-size: 0.97rem; }

/* Photo cards */
.photo-card { color: #fff !important; position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; display: grid; align-content: end; color: #fff; text-decoration: none; isolation: isolate; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.photo-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,20,40,0.05) 25%, rgba(9,20,40,0.92) 100%); }
.photo-card:hover img { transform: scale(1.04); }
.photo-card .pc-body { padding: 24px; display: grid; gap: 6px; }
.photo-card h3 { font-size: 1.35rem; }
.photo-card p { color: rgba(255,255,255,0.85); font-size: 0.96rem; }
.photo-card .more { font-weight: 700; color: #fff; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.steps li::before { content: counter(step); width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; margin-bottom: 6px; }
.steps .when { font-size: 0.85rem; font-weight: 600; color: var(--signal); }
.steps p { color: var(--muted); }
@media (max-width: 960px) { .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .steps, .steps.four { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { list-style: none; margin: 0 0 0 8px; padding: 0; display: grid; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--signal); }
.timeline .day { font-size: 0.82rem; font-weight: 700; color: var(--signal); }
.timeline p { color: var(--muted); max-width: 64ch; }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table.data { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.97rem; }
.data th, .data td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data thead th { font-family: var(--font-display); font-weight: 700; background: var(--surface-2); }
.data thead th.us { background: var(--navy); color: var(--on-navy); }
.data td.us { font-weight: 600; background: color-mix(in srgb, var(--good) 7%, var(--surface)); }
.data tbody th { font-weight: 600; color: var(--ink-2); width: 24%; }
.data tr:last-child > * { border-bottom: 0; }
.data td.num, .data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Notices */
.notice { border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 6px; background: var(--info-bg); border: 1px solid var(--line); }
.notice p { color: var(--ink-2); }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.notice.warn p { color: var(--warn-ink); }
.notice strong { font-family: var(--font-display); font-size: 1.05rem; }

/* Forms */
.form-card { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; min-width: 0; border: 1px solid var(--line); }
.form-card h2 { font-size: 1.5rem; }
.form-card legend { padding: 0; margin-bottom: 4px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; min-width: 0; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-2); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy-2) 15%, transparent); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.field input.invalid { border-color: var(--signal); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.check input { margin-top: 2px; flex: none; width: 18px; height: 18px; accent-color: var(--navy-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 0.92rem; cursor: pointer; background: var(--surface); }
.chips input { accent-color: var(--navy-2); }
.chips label:has(input:checked) { border-color: var(--navy-2); background: var(--info-bg); }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } .form-card { padding: 22px; } }
.fineprint { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.form-done { display: grid; gap: 10px; padding: 8px 0; }
.form-done strong { font-family: var(--font-display); font-size: 1.4rem; }
.stepper { display: flex; gap: 6px; }
.stepper span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.stepper span.on { background: var(--signal); }

/* Calculators */
.calc { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.calc > * { min-width: 0; }
.calc .inputs { padding: 28px; display: grid; gap: 16px; align-content: start; }
.calc .result { padding: 28px; background: var(--navy); color: var(--on-navy); display: grid; gap: 16px; align-content: start; }
.calc .result .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 2.9rem); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc .result .label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-navy-muted); }
.calc .rows { display: grid; font-size: 0.94rem; }
.calc .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-variant-numeric: tabular-nums; }
.calc .rows div span:first-child { color: var(--on-navy-muted); }
.calc .rows div.total { border-bottom: 0; font-weight: 600; }
.calc .rows div.total span:first-child { color: var(--on-navy); }
.calc .note { font-size: 0.82rem; color: var(--on-navy-muted); }
.bar-split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,0.1); }
.bar-split span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; color: var(--on-navy-muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; }
.tabs button { font: inherit; font-weight: 600; font-size: 0.94rem; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 16px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Listings */
.search-bar { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 12px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); }
@media (max-width: 960px) { .search-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .search-bar .field:first-child { grid-column: 1 / -1; } }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin: 24px 0 16px; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.listing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; min-width: 0; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.listing:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.listing .pic { position: relative; aspect-ratio: 16 / 10; max-width: 100%; background: var(--surface-2); }
.listing .pic img { width: 100%; height: 100%; object-fit: cover; }
.listing .badge { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,0.95); color: #111C2E; font-size: 0.76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.listing .badge.cash { background: var(--signal); color: #fff; }
.listing .save { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.95); color: #111C2E; cursor: pointer; display: grid; place-items: center; }
.listing .save[aria-pressed="true"] { color: var(--signal); }
.listing .save svg { width: 18px; height: 18px; }
.listing .body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.listing .price { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.listing .facts { font-size: 0.95rem; color: var(--ink-2); font-weight: 500; }
.listing .addr { font-size: 0.93rem; color: var(--muted); }
.listing .est { font-size: 0.84rem; color: var(--muted); }
.listing button.details { justify-self: start; margin-top: 8px; }
dialog { border: 0; border-radius: 18px; padding: 0; max-width: min(760px, calc(100vw - 32px)); width: 100%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(8, 16, 30, 0.6); }
dialog .pic img { width: 100%; height: 100%; object-fit: cover; }
.dlg-body { padding: 24px; display: grid; gap: 14px; }
.dlg-close { position: absolute; right: 12px; top: 12px; z-index: 2; }

/* Glossary */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.glossary div { padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 4px 0 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; max-width: 860px; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; font-size: 1.04rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.5rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div, .faq details > p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* Offer sheet */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sheet-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 22px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; font-size: 0.97rem; }
.sheet-row span:last-child { text-align: right; font-weight: 600; }
.sheet-row.zero span:last-child { color: var(--good); }
.sheet-total { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; background: var(--navy); color: var(--on-navy); font-size: 1.08rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet-note { padding: 12px 22px; color: var(--muted); font-size: 0.8rem; }

.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.promise > div { display: grid; gap: 8px; align-content: start; }
.promise .big { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--signal); line-height: 1; }
.promise p { color: var(--muted); }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; gap: 24px; } }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.photo-frame { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; box-shadow: var(--shadow); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { text-decoration: none; font-size: 0.9rem; font-weight: 600; border: 1.5px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 7px 14px; background: rgba(255,255,255,0.06); }
.toc a:hover { background: rgba(255,255,255,0.16); }

/* Realtor */
.realtor-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); }
.realtor-strip > * { min-width: 0; }
.portrait { width: 132px; aspect-ratio: 1; max-width: 100%; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #C3CDDC 0 22%, transparent 23%), radial-gradient(ellipse at 50% 100%, #C3CDDC 0 46%, transparent 47%), var(--navy-2); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); position: relative; overflow: hidden; }
.portrait span { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--tbd-bg); color: var(--tbd-ink); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.portrait.lg { width: 240px; }
.chiplist { display: flex; flex-wrap: wrap; gap: 6px; }
.chiplist span { font-size: 0.82rem; font-weight: 600; border-radius: 999px; padding: 4px 11px; background: var(--surface-2); color: var(--ink-2); }
.stars { color: #E8A317; letter-spacing: 2px; }
@media (max-width: 760px) { .realtor-strip { grid-template-columns: 1fr; } }

/* Social links */
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.soc { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; border: 1.5px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 6px 12px 6px 8px; font-size: 0.8rem; font-weight: 600; color: var(--on-navy) !important; }
.soc:hover { border-color: #fff; }
.soc svg { width: 18px; height: 18px; }
.social.light .soc { border-color: var(--line); color: var(--ink) !important; background: var(--surface); }

/* CTA + footer */
.cta { position: relative; background: var(--navy); color: var(--on-navy); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-block: 64px; }
.cta h2 { max-width: 22ch; }
footer.site { background: #0A182E; color: #B4C0D2; font-size: 0.9rem; }
footer.site .cols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding-block: 56px 36px; }
footer.site .cols > * { min-width: 0; display: grid; gap: 9px; align-content: start; }
footer.site .cols span, footer.site .cols a, footer.site .cols strong { overflow-wrap: anywhere; min-width: 0; }
footer.site strong { color: #F4F6FA; font-weight: 700; }
footer.site a { color: #B4C0D2; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .soc { color: #F4F6FA !important; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,0.1); padding-block: 24px 32px; display: grid; gap: 10px; font-size: 0.8rem; line-height: 1.6; }
footer.site .tbd { color: var(--tbd-ink); }
.eho { display: inline-flex; align-items: center; gap: 8px; color: #F4F6FA; font-weight: 600; }
.eho svg { width: 28px; height: 28px; }
@media (max-width: 960px) { footer.site .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer.site .cols > :first-child { grid-column: 1 / -1; } }

.hero .form-card a, .hero .form-card a:not(.btn) { color: var(--link) !important; }
.realtor-photo { width: 132px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.realtor-photo { width: 132px; height: 132px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); background: #fff; }
.realtor-photo.lg { width: 260px; height: 260px; box-shadow: 0 0 0 4px rgba(255,255,255,0.25), var(--shadow); }

/* Language drop-down */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 0.92rem; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; user-select: none; white-space: nowrap; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-inline-start: 2px; }
.lang-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.lang-menu > summary:hover, .lang-menu[open] > summary { border-color: var(--ink-2); }
.lang-menu > summary svg { width: 18px; height: 18px; flex: none; }
.lang-list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 170px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lang-list a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; }
.lang-list a[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font-body); text-align: right; }
.lang-list a:hover { background: var(--surface-2); }
.lang-list a[aria-current] { font-weight: 700; background: var(--surface-2); }
.lang-list a[aria-current]::after { content: " ✓"; color: var(--signal); }
@media (max-width: 600px) { .lang-menu > summary span { display: none; } .lang-menu > summary { padding: 7px 10px; } }

/* Header fit: never let the brand, menu and buttons overlap */
.brand { flex: none; }
nav.main { min-width: 0; overflow: hidden; }
@media (max-width: 1240px) { nav.main { display: none; } .head-actions { margin-left: auto; } }
h1 { line-height: 1.15; letter-spacing: -0.015em; }
h2 { line-height: 1.22; letter-spacing: -0.01em; }
.lang-menu > summary span { display: inline !important; }
@media (max-width: 600px) { .lang-menu > summary { padding: 6px 10px; } .lang-menu > summary svg { display: none; } }
/* Desktop: menu links on their own row under the logo, so nothing can collide */
@media (min-width: 961px) {
  header.site .bar { flex-wrap: wrap; row-gap: 0; }
  nav.main { display: flex !important; order: 3; flex: 1 0 100%; margin: 0 !important; overflow: visible; border-top: 1px solid var(--line); padding-block: 4px; gap: 4px; }
  nav.main a { padding: 10px 14px; }
  .head-actions { margin-inline-start: auto; margin-left: auto; }
}
@media (max-width: 600px) {
  header.site .bar { gap: 8px; }
  .head-actions { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 0.95rem; }
  .menu-btn { padding-inline: 12px; }
}
@media (max-width: 380px) { .brand-name { font-size: 0.85rem; } .brand svg { width: 28px; height: 28px; } }
@media (max-width: 430px) {
  .brand-name { font-size: 0.88rem; }
  .brand svg { width: 28px; height: 28px; }
  .lang-menu > summary { font-size: 0.85rem; padding: 5px 9px; gap: 4px; }
  .menu-btn { font-size: 0.85rem; padding: 6px 10px; }
}
[data-phone] { white-space: nowrap; unicode-bidi: isolate; }
@media (min-width: 961px) { header.site .bar { padding-top: 10px; } nav.main { margin-top: 10px !important; } }

/* Review fixes */
.ticks li { display: block; position: relative; padding-inline-start: 23px; }
.ticks li::before { position: absolute; inset-inline-start: 0; top: 0.55em; }
@media (min-width: 961px) { .menu-btn, .mobile-nav { display: none !important; } nav.main { flex-wrap: wrap; } }
@media (min-width: 961px) and (max-width: 1200px) { nav.main a { padding: 10px 9px; font-size: 0.92rem; } }
.sheet-row span:last-child, .sheet-total span:last-child { white-space: nowrap; flex: none; }
.photo-card::after { background: linear-gradient(180deg, rgba(9,20,40,0.15) 0%, rgba(9,20,40,0.6) 40%, rgba(9,20,40,0.94) 100%); }
.photo-card .pc-body { text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
footer.site [data-email] { overflow-wrap: normal; word-break: normal; }
@media (max-width: 600px) { footer.site .cols { grid-template-columns: 1fr; } }
.nowrap { white-space: nowrap; }
.lang-list a[lang="ar"] { text-align: start; }
main[lang="es"] .hero h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.2; }
dialog .data th { width: 45%; }
.dlg-close { position: sticky; top: 12px; float: right; z-index: 2; }
