/* We Buy Only Houses — cash home buyer site. Light theme by default, dark theme via [data-theme="dark"]. */
:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #eef1ec;
  --surface-3: #e4e9e3;
  --ink: #0f1a16;
  --ink-2: #44514b;
  --ink-3: #66736d;
  --line: #dde3dc;
  --brand: #0a7d55;
  --brand-hover: #086a48;
  --on-brand: #ffffff;
  --brand-soft: #def3e8;
  --brand-ink: #075e40;
  --gold: #f2b33d;
  --gold-soft: #fff3d6;
  --gold-ink: #7a5200;
  --danger: #c2410c;
  --shadow-sm: 0 1px 2px rgba(15, 26, 22, .06), 0 1px 1px rgba(15, 26, 22, .04);
  --shadow: 0 10px 30px -12px rgba(15, 26, 22, .18), 0 2px 6px rgba(15, 26, 22, .05);
  --shadow-lg: 0 30px 60px -24px rgba(15, 26, 22, .28), 0 8px 20px -8px rgba(15, 26, 22, .10);
  --glass: rgba(255, 255, 255, .82);
  --header-bg: rgba(246, 247, 244, .86);
  --radius: 18px;
  --radius-lg: 26px;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0c1110;
  --surface: #131a18;
  --surface-2: #101614;
  --surface-3: #1b2421;
  --ink: #eef3f0;
  --ink-2: #b4c0ba;
  --ink-3: #8d9a94;
  --line: #26322e;
  --brand: #34d399;
  --brand-hover: #5ee0ae;
  --on-brand: #04241a;
  --brand-soft: rgba(52, 211, 153, .13);
  --brand-ink: #6ee7b7;
  --gold: #f5c25b;
  --gold-soft: rgba(245, 194, 91, .14);
  --gold-ink: #f5c25b;
  --danger: #fb923c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
  --glass: rgba(19, 26, 24, .84);
  --header-bg: rgba(12, 17, 16, .82);
  color-scheme: dark;
}
html[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", "Plus Jakarta Sans", Tahoma, Arial, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Inter", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.45; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .ic-arrow { transform: scaleX(-1); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 18px; } }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
bdi, [dir="ltr"] { unicode-bidi: isolate; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid var(--b);
  background: var(--b); color: var(--on-brand); font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--brand) 70%, transparent);
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink-3); color: var(--ink); background: var(--surface); }
.btn.light { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.light:hover { border-color: var(--ink-3); color: var(--ink); }
.btn.sm { min-height: 42px; padding: 9px 18px; font-size: .95rem; }
.btn.lg { min-height: 58px; padding: 14px 30px; font-size: 1.08rem; }
.btn.block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0;
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--ink-3); }
.icon-btn .ic { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--brand-ink); }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .ic { transform: scaleX(-1) translateX(3px); }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
header.site.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .35); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand .logo { width: 38px; height: 38px; }
.brand-name { font: 800 1.12rem/1 "Plus Jakarta Sans", "Inter", Arial, sans-serif; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
.brand-name em { font-style: normal; color: var(--brand); }
nav.main { display: flex; gap: 2px; margin-inline-start: 12px; }
nav.main a { padding: 9px 13px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .97rem; white-space: nowrap; }
nav.main a:hover { color: var(--ink); background: var(--surface-2); }
nav.main a[aria-current] { color: var(--ink); background: var(--surface-2); font-weight: 600; }
.actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.call { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding-inline-end: 6px; }
.call > .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); }
.call-txt { display: grid; line-height: 1.15; }
.call small { color: var(--ink-3); font-size: .76rem; font-weight: 500; }
.call strong { font: 700 1rem/1.2 "Inter", Arial, sans-serif; white-space: nowrap; }
.call:hover strong { color: var(--brand-ink); }
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; font-size: .95rem; color: var(--ink); user-select: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::after { content: ""; width: 7px; height: 7px; border-inline-end: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-inline-start: 2px; opacity: .6; }
.lang-menu[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.lang-menu > summary .ic { width: 18px; height: 18px; color: var(--ink-2); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; z-index: 60; }
.lang-list a { padding: 10px 14px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 500; }
.lang-list a:hover { background: var(--surface-2); }
.lang-list a[lang="ar"] { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; text-align: right; }
.lang-list a:not([lang="ar"]) { font-family: "Inter", Arial, sans-serif; }
.theme-btn .ic-sun { display: none; }
[data-theme="dark"] .theme-btn .ic-sun { display: block; }
[data-theme="dark"] .theme-btn .ic-moon { display: none; }
.menu-btn { display: none; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
.menu-btn[aria-expanded="true"] .ic-menu { display: none; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav .wrap { display: grid; gap: 4px; padding-block: 12px 20px; }
.mobile-nav a:not(.btn) { padding: 13px 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.06rem; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 10px; }
.mobile-nav .btn + .btn { margin-top: 2px; }
@media (max-width: 1559px) { .call-txt { display: none; } .call { padding: 0; } }
@media (max-width: 1279px) {
  nav.main { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 760px) {
  .bar { gap: 8px; min-height: 64px; }
  .head-actions, .head-cta, .call { display: none; }
  .actions { gap: 6px; }
  .brand .logo { width: 34px; height: 34px; }
  .brand-name { font-size: 1rem; }
  .lang-menu > summary { padding: 0; width: 42px; justify-content: center; }
  .lang-menu > summary .lang-word, .lang-menu > summary::after { display: none; }
  .lang-menu > summary .ic { width: 20px; height: 20px; color: var(--ink); }
}
@media (max-width: 350px) { .brand-name { font-size: .92rem; } .brand { gap: 7px; } }

/* ---------- Common sections ---------- */
.band { padding-block: clamp(64px, 9vw, 112px); }
.band.tight { padding-block: clamp(44px, 6vw, 72px); }
.band.alt { background: var(--surface-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.sec-head .lede { font-size: 1.1rem; color: var(--ink-2); }
.sec-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-row .sec-head { margin-bottom: 0; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); line-height: 1.6; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
[dir="rtl"] .pill { padding: 7px 8px 7px 14px; }
.pill .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.pill .dot .ic { width: 15px; height: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 50% at 85% 30%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%), radial-gradient(36% 40% at 10% 10%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
html[lang="ar"] .hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.hero .lede { max-width: 560px; }
.addr-form { width: 100%; max-width: 580px; display: flex; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.addr-form .field-wrap { flex: 1; display: flex; align-items: center; gap: 10px; padding-inline: 14px 4px; min-width: 0; }
.addr-form .field-wrap .ic { color: var(--ink-3); }
.addr-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 1.02rem var(--font-body); color: var(--ink); padding: 10px 0; }
.addr-form input::placeholder { color: var(--ink-3); }
.addr-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); font-size: .97rem; }
.ticks .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); stroke-width: 2.6; }
.hero-alt { font-size: .95rem; color: var(--ink-3); }
.hero-alt a { font-weight: 600; }
.hero-media { position: relative; }
.hero-media .photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; }
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px 16px; display: grid; gap: 4px; }
.float small { font-size: .78rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .float small { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.float strong { font: 800 1.5rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.float .row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.float .ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); flex: none; }
.float .ok .ic { width: 17px; height: 17px; stroke-width: 2.6; }
.float.offer { inset-inline-start: -28px; bottom: 36px; min-width: 236px; }
.float.offer .tag { justify-self: start; margin-top: 4px; font-size: .76rem; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; }
.float.days { inset-inline-end: -18px; top: 28px; }
.float .ex { font-size: .72rem; color: var(--ink-3); font-weight: 500; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; width: 100%; justify-self: center; margin-top: 8px; }
  .hero-media .photo { aspect-ratio: 16 / 11; }
  .float.offer { inset-inline-start: 12px; bottom: 14px; }
  .float.days { inset-inline-end: 12px; top: 14px; }
}
@media (max-width: 560px) {
  .addr-form { flex-direction: column; border-radius: 20px; padding: 8px; }
  .addr-form .field-wrap { padding: 6px 10px; }
  .addr-form .btn { width: 100%; }
  .float { padding: 10px 12px; border-radius: 14px; }
  .float strong { font-size: 1.2rem; }
  .float.offer { min-width: 0; }
  .float.days .row { font-size: .85rem; }
  .ticks { gap: 8px 16px; }
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.stats > div { padding: 26px 26px; display: grid; gap: 4px; align-content: start; }
.stats > div + div { border-inline-start: 1px solid var(--line); }
.stats strong { font: 800 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
html[lang="ar"] .stats strong { letter-spacing: 0; }
.stats strong em { font-style: normal; color: var(--brand); }
.stats span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-inline-start: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats > div { padding: 20px; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; counter-increment: s; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font: 800 1.15rem/1 var(--font-display); margin-bottom: 8px; }
.steps .when { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--brand-ink); }
.steps .when .ic { width: 16px; height: 16px; }
.steps p { color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Bento benefits ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.card p { color: var(--ink-2); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 6px; }
.card .icon .ic { width: 24px; height: 24px; }
.card .icon.gold { background: var(--gold-soft); color: var(--gold-ink); }
.bento .card { grid-column: span 2; }
.bento .card.wide { grid-column: span 3; }
.bento .card.feature { grid-column: span 3; grid-row: span 2; background: linear-gradient(160deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #0a3d2c) 100%); color: var(--on-brand); border-color: transparent; padding: 34px; gap: 14px; }
.bento .card.feature h3 { color: var(--on-brand); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
.bento .card.feature p { color: color-mix(in srgb, var(--on-brand) 85%, transparent); font-size: 1.05rem; }
.bento .card.feature .icon { background: rgba(255, 255, 255, .16); color: var(--on-brand); }
[data-theme="dark"] .bento .card.feature .icon { background: rgba(4, 36, 26, .16); }
.bento .card.feature .big { font: 800 clamp(3rem, 6vw, 4.6rem)/1 var(--font-display); letter-spacing: -0.04em; margin-top: auto; }
.bento .card.feature .big small { font-size: .35em; letter-spacing: 0; font-weight: 700; margin-inline-start: 8px; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .bento .card, .bento .card.wide { grid-column: span 1; } .bento .card.feature { grid-column: span 2; grid-row: auto; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .bento .card.feature { grid-column: span 1; } }

/* ---------- Compare table ---------- */
.compare { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 17px 22px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 700 1rem/1.3 var(--font-display); background: var(--surface-2); }
.compare thead th.us { background: var(--brand); color: var(--on-brand); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.compare td { color: var(--ink-2); }
.compare td.us { background: color-mix(in srgb, var(--brand) 6%, var(--surface)); color: var(--ink); font-weight: 600; }
.compare td.us .ic { color: var(--brand); width: 18px; height: 18px; vertical-align: -3px; margin-inline-end: 6px; stroke-width: 2.6; }
@media (max-width: 680px) {
  .compare thead { display: none; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare tbody th { grid-column: 1 / -1; width: auto; border-bottom: 0; padding: 16px 16px 6px; }
  .compare td { border-bottom: 0; padding: 6px 16px 16px; font-size: .93rem; }
  .compare td::before { content: attr(data-h); display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 3px; }
  html[lang="ar"] .compare td::before { text-transform: none; letter-spacing: 0; font-size: .82rem; }
  .compare td.us { border-radius: 10px; margin: 0 8px 10px; }
}

/* ---------- Situations tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.tile:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); color: inherit; transform: translateY(-2px); }
.tile .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.tile .icon .ic { width: 22px; height: 22px; }
.tile h3 { font-size: 1.08rem; margin-bottom: 4px; }
.tile p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 960px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Split + offer sheet ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }
.split .prose { display: grid; gap: 18px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list li strong { color: var(--ink); }
.check-list .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); stroke-width: 2.6; margin-top: 2px; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; display: grid; gap: 2px; position: relative; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); }
.sheet-head strong { font: 700 1.1rem var(--font-display); }
.sheet-head .badge { font-size: .78rem; font-weight: 700; color: var(--gold-ink); background: var(--gold-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.sheet-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.sheet-row span:last-child { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; text-align: end; }
.sheet-row.zero span:last-child { color: var(--brand-ink); }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; font: 800 1.35rem/1.2 var(--font-display); }
.sheet-total span:last-child { color: var(--brand); font-variant-numeric: tabular-nums; }
.sheet-note { margin-top: 10px; font-size: .82rem; color: var(--ink-3); }
.photo-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq.center { margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; padding-inline-end: 60px; font: 700 1.06rem/1.4 var(--font-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); font: 500 1.3rem/1 var(--font-body); transition: transform .25s, background-color .2s; }
.faq details[open] summary::after { content: "−"; background: var(--brand); color: var(--on-brand); }
.faq .ans { padding: 0 22px 22px; color: var(--ink-2); display: grid; gap: 10px; }
.faq-group { display: grid; gap: 14px; margin-bottom: 44px; }
.faq-group > h2 { font-size: 1.4rem; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(40px, 6vw, 72px); }
.cta-box { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(36px, 6vw, 72px); background: linear-gradient(135deg, #0a7d55 0%, #075a3e 60%, #06442f 100%); color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
[data-theme="dark"] .cta-box { background: linear-gradient(135deg, #0f3b2c 0%, #0b2c21 60%, #091f18 100%); border: 1px solid var(--line); }
.cta-box::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; inset-inline-end: -160px; top: -220px; background: radial-gradient(circle, rgba(242, 179, 61, .35), transparent 65%); pointer-events: none; }
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; margin-top: 12px; }
.cta-box .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }
.cta-box .btn { --b: #ffffff; color: #06442f; box-shadow: none; }
.cta-box .btn:hover { background: #f1f5f2; border-color: #f1f5f2; color: #06442f; }
.cta-box .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-box .btn.ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; } .cta-box .btns { justify-content: flex-start; } }
@media (max-width: 480px) { .cta-box .btns .btn { width: 100%; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 70% at 90% 0%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%), radial-gradient(30% 60% at 0% 100%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 70%); }
.page-hero .wrap { display: grid; gap: 18px; justify-items: start; }
.page-hero .lede { max-width: 700px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 900px; }
.crumbs { font-size: .9rem; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand-ink); text-decoration: underline; }
.page-hero .btn-row { margin-top: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 880px; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 31px; top: 60px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .num { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.timeline .num .ic { width: 28px; height: 28px; }
.timeline .body { display: grid; gap: 8px; padding-top: 6px; }
.timeline .when { font-size: .85rem; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .timeline .when { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.timeline .body p { color: var(--ink-2); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 48px 1fr; gap: 14px; } .timeline .num { width: 48px; height: 48px; border-radius: 14px; } .timeline .num .ic { width: 22px; height: 22px; } .timeline li::before { inset-inline-start: 23px; top: 50px; } }

/* ---------- Offer form ---------- */
.offer-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .offer-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(22px, 4vw, 40px); }
.progress { display: grid; gap: 10px; margin-bottom: 26px; }
.progress-top { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.progress-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--gold))); border-radius: inherit; transition: width .4s ease; }
[dir="rtl"] .progress-bar span { background: linear-gradient(270deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--gold))); }
.step { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
.step legend { padding: 0; margin-bottom: 4px; }
.step legend h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.step .hint { color: var(--ink-2); margin-top: -8px; }
.js .step:not(.active) { display: none; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 15px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font: 500 1rem/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s, background-color .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 42px; }
[dir="rtl"] .field select { background-position: 16px 23px, 22px 23px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.field input.invalid, .field select.invalid { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .86rem; font-weight: 500; display: none; }
.field input.invalid ~ .err { display: block; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .choice-grid.three { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 14px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; font-size: .96rem; transition: border-color .15s, background-color .15s, box-shadow .15s; line-height: 1.3; }
.choice span .ic { width: 20px; height: 20px; color: var(--ink-3); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.choice input:checked + span .ic { color: var(--brand-ink); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-size: .92rem; font-weight: 500; }
.chip input:checked + span { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); line-height: 1.55; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 6px; }
.form-nav .btn:only-child { margin-inline-start: auto; }
@media (max-width: 480px) { .form-nav { flex-direction: column-reverse; } .form-nav .btn { width: 100%; } }
.fineprint { font-size: .84rem; color: var(--ink-3); }
.done { display: grid; gap: 16px; text-align: center; justify-items: center; padding-block: 10px; }
.js .done[hidden] { display: none; }
.done .big-ok { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.done .big-ok .ic { width: 38px; height: 38px; stroke-width: 2.4; }
.done .summary { width: 100%; text-align: start; background: var(--surface-2); border-radius: 14px; padding: 16px 18px; font-size: .92rem; color: var(--ink-2); white-space: pre-line; max-height: 240px; overflow: auto; }
.done .btn-row { justify-content: center; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 16px; }
.side-card h2 { font-size: 1.25rem; }
.side-stack { display: grid; gap: 18px; position: sticky; top: 96px; }
.side-call { background: var(--brand-soft); border-color: transparent; }
.side-call .phone-big { font: 800 1.6rem/1.1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
@media (max-width: 960px) { .side-stack { position: static; } }

/* ---------- Prose (legal, about) ---------- */
.prose-page { max-width: 820px; display: grid; gap: 16px; }
.prose-page h2 { font-size: 1.5rem; margin-top: 28px; }
.prose-page h3 { margin-top: 12px; }
.prose-page p, .prose-page li { color: var(--ink-2); }
.prose-page ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; }
.toc a:hover { border-color: var(--brand); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .card strong { font: 800 1.35rem/1.2 var(--font-display); }
.contact-grid .card a.big { font: 800 1.35rem/1.2 var(--font-display); color: var(--ink); text-decoration: none; }
.contact-grid .card a.big:hover { color: var(--brand-ink); }

/* Situations detail */
.sit-list { display: grid; gap: 18px; }
.sit { display: grid; grid-template-columns: 56px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; scroll-margin-top: 96px; }
.sit .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.sit .icon .ic { width: 26px; height: 26px; }
.sit h2 { font-size: 1.35rem; margin-bottom: 8px; }
.sit p { color: var(--ink-2); }
.sit ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sit li { display: flex; gap: 10px; color: var(--ink-2); }
.sit li .ic { color: var(--brand); width: 20px; height: 20px; margin-top: 3px; stroke-width: 2.4; }
.sit .note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--ink); font-size: .93rem; border-inline-start: 3px solid var(--gold); }
@media (max-width: 560px) { .sit { grid-template-columns: 1fr; gap: 12px; padding: 22px; } .sit .icon { width: 48px; height: 48px; } }

/* ---------- Footer ---------- */
footer.site { background: var(--surface); border-top: 1px solid var(--line); padding-block: 60px 32px; margin-top: 0; }
.f-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 36px; }
.f-brand { display: grid; gap: 14px; align-content: start; }
.f-brand p { color: var(--ink-2); max-width: 340px; }
.f-area { display: flex; gap: 8px; align-items: center; font-size: .94rem; }
.f-area .ic { color: var(--brand); }
.f-col { display: grid; gap: 10px; align-content: start; }
.f-col h2 { font: 700 .82rem/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
html[lang="ar"] .f-col h2 { letter-spacing: 0; font-size: .95rem; }
.f-col h2.f-lang { margin-top: 14px; }
.f-col a { color: var(--ink); text-decoration: none; font-weight: 500; }
.f-col a:hover { color: var(--brand-ink); text-decoration: underline; }
.f-col a.f-phone { font: 800 1.2rem/1.2 var(--font-display); }
.f-col a[lang="ar"] { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; }
.f-legal { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 16px; font-size: .86rem; color: var(--ink-3); }
.f-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.f-bottom a { color: var(--ink-2); }
.eho { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.eho svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .f-top { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .f-top { grid-template-columns: 1fr; gap: 28px; } }

/* Mobile sticky action bar */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s ease; }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { min-height: 48px; padding-inline: 14px; }
  .mobile-cta .btn.ghost { background: var(--surface); }
  body { padding-bottom: 76px; }
  body.page-cash-offer .mobile-cta { display: none; }
  body.page-cash-offer { padding-bottom: 0; }
}

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* 404 */
.nf { min-height: 50vh; display: grid; place-items: center; text-align: center; }
.nf .wrap { display: grid; gap: 18px; justify-items: center; }
.nf .code { font: 800 clamp(4rem, 12vw, 8rem)/1 var(--font-display); color: var(--brand); letter-spacing: -0.05em; }
.f-col a { justify-self: start; }
.step legend { margin-bottom: 10px; }
[data-theme="dark"] .bento .card.feature { background: linear-gradient(160deg, #17664a 0%, #0e3d2d 100%); color: #eafff5; border-color: #1f6b50; }
[data-theme="dark"] .bento .card.feature h3, [data-theme="dark"] .bento .card.feature .big { color: #fff; }
[data-theme="dark"] .bento .card.feature p { color: rgba(234, 255, 245, .82); }
[data-theme="dark"] .bento .card.feature .icon { background: rgba(255, 255, 255, .12); color: #6ee7b7; }
@media (max-width: 960px) { .offer-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.lang-menu > summary::after { border-inline-end: 0; border-right: 1.8px solid currentColor; }
.stats-band { padding-bottom: 0 !important; }
.hero-copy > * { max-width: 100%; }
.addr-form input { width: 100%; }
span[dir="ltr"], bdi[dir="ltr"] { white-space: nowrap; }
.actions { flex: none; }
[data-theme="dark"] .cta-box::after { background: radial-gradient(circle, rgba(52, 211, 153, .18), transparent 65%); }
[hidden] { display: none !important; }
@media (max-width: 380px) {
  .icon-btn, .lang-menu > summary { width: 38px; height: 38px; border-radius: 10px; }
  .actions { gap: 4px; }
  .brand { gap: 7px; }
  .brand .logo { width: 30px; height: 30px; }
  .brand-name { font-size: .9rem; }
}
.done:focus { outline: none; }
/* Header: never let items shrink into each other */
header.site .brand, header.site nav.main, header.site .actions, header.site .call, header.site .lang-menu, header.site .head-cta { flex: none; }
@media (min-width: 1280px) { header.site > .wrap.bar { max-width: 1400px; } }
@media (max-width: 345px) {
  .icon-btn, .lang-menu > summary { width: 36px; height: 36px; }
  .brand-name { font-size: .84rem; }
  .brand .logo { width: 28px; height: 28px; }
  .bar { gap: 6px; }
}
.sheet-row span[dir="ltr"] { white-space: normal; }
.sheet { min-width: 0; }
@media (max-width: 420px) { .sheet { padding: 20px; } }
/* ===== Warm, friendly style (approved 2026-12-03) ===== */
:root:not([data-theme="dark"]) {
  --bg: #fbf7f1; --surface-2: #f5eee4; --surface-3: #ece3d6; --line: #ebe2d4;
  --header-bg: rgba(251, 247, 241, .88); --gold: #f4a940; --gold-soft: #fff0d9;
  --radius: 22px; --radius-lg: 32px;
}
@media (min-width: 1600px) { .wrap { max-width: 1320px; } header.site > .wrap.bar { max-width: 1320px; } html { font-size: 17.5px; } }
.hero::before { background: radial-gradient(45% 55% at 85% 35%, rgba(244, 169, 64, .22), transparent 70%), radial-gradient(40% 45% at 5% 5%, rgba(10, 125, 85, .10), transparent 70%); }
.hero h1 .hl { background: none; }
.hero h1 .hl::after { content: ""; position: absolute; inset-inline: 0; bottom: -.08em; height: .28em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 50 4, 120 4, 197 10' fill='none' stroke='%23f4a940' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; z-index: -1; }
.hero h1 .hl { z-index: 0; }
.hero-media .photo { border-radius: 32px; aspect-ratio: 4 / 4.2; box-shadow: 0 40px 80px -30px rgba(80, 50, 10, .35); }
.hero-media::before { content: ""; position: absolute; width: 70%; height: 70%; inset-inline-end: -26px; top: -26px; border-radius: 40px; background: #ffe2b3; z-index: -1; }
.hero-media { isolation: isolate; }
/* badges sit fully inside the photo */
.float { border-radius: 18px; background: rgba(255, 255, 255, .94); border: 0; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .3); }
.float.days { inset-inline-end: 18px; top: 18px; padding: 10px 14px 10px 10px; border-radius: 999px; }
.float.offer { inset-inline-start: 18px; bottom: 18px; inset-inline-end: auto; min-width: 0; padding: 16px 18px; }
.float.offer .row { font-size: .9rem; }
/* friendlier stats: soft chips, no hard grid */
.stats { background: transparent; border: 0; box-shadow: none; gap: 14px; }
.stats > div { background: var(--surface); border-radius: 22px; border: 1px solid var(--line) !important; }
.btn { box-shadow: 0 10px 24px -10px rgba(10, 125, 85, .6); }
.hero-media::before { display: none; }
@media (max-width: 560px) {
  .float.offer { padding: 10px 14px; inset-inline-start: 12px; bottom: 12px; }
  .float.offer strong { font-size: 1.15rem; }
  .float.offer .tag { display: none; }
  .float.offer small { font-size: .68rem; }
  .float.offer .row { font-size: .82rem; }
  .float.days { top: 12px; inset-inline-end: 12px; }
  .hero .pill { font-size: .82rem; }
}
[data-theme="dark"] .float { background: rgba(19, 26, 24, .94); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); }
[data-theme="dark"] .hero::before { background: radial-gradient(45% 55% at 85% 35%, rgba(244, 169, 64, .10), transparent 70%), radial-gradient(40% 45% at 5% 5%, rgba(52, 211, 153, .08), transparent 70%); }
[data-theme="dark"] .hero-media .photo { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.card, .tile, .steps li, .sit, .side-card, .faq details, .compare, .sheet, .form-card { border-radius: var(--radius); }
.sheet, .form-card, .compare { border-radius: var(--radius-lg); }
@media (max-width: 560px) { .pill-area { display: none; } }
:root { --radius: 22px; --radius-lg: 32px; }
.stats strong { line-height: 1.2; }
.stats > div { gap: 6px; }
.nf .code { line-height: 1.15; }
.page-hero::before { background: radial-gradient(50% 90% at 92% 0%, rgba(244, 169, 64, .16), transparent 70%), radial-gradient(40% 80% at 0% 0%, rgba(10, 125, 85, .07), transparent 70%); }
[data-theme="dark"] .page-hero::before { background: radial-gradient(50% 90% at 92% 0%, rgba(244, 169, 64, .08), transparent 70%), radial-gradient(40% 80% at 0% 0%, rgba(52, 211, 153, .06), transparent 70%); }

/* ---------- Service area: ZIP / city check with map ---------- */
@supports (overflow: clip) { .hero { overflow-x: clip; overflow-y: visible; } .hero::before { clip-path: inset(16.667% 0 0 0); } }
.area-band { padding-top: clamp(24px, 4vw, 48px); }
.area { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-areas: "head map" "out map"; column-gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.area-head { grid-area: head; min-width: 0; align-self: end; }
.area-out { grid-area: out; min-width: 0; }
.area-map { grid-area: map; align-self: center; }
.area-head .sec-head { margin-bottom: 24px; }
.zip-form { max-width: 560px; }
.zip-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: .92rem; color: var(--ink-3); }
.q-chip { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem var(--font-body); cursor: pointer; transition: border-color .15s, background-color .15s; }
.q-chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.q-chip:focus-visible { outline: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.area-result { margin-top: 20px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow); max-width: 560px; }
.area-result:empty { display: none; }
.area-result.yes { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.area-result .res-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.area-result .res-ic .ic { width: 22px; height: 22px; }
.area-result.no .res-ic, .area-result.nf .res-ic { background: var(--gold-soft); color: var(--gold-ink); }
.area-result.busy .res-ic { background: var(--surface-2); }
.area-result .res-body { display: grid; gap: 6px; min-width: 0; }
.area-result .res-t { font: 700 1.12rem/1.35 var(--font-display); color: var(--ink); margin: 0; padding-top: 8px; }
.area-result.yes .res-t, .area-result.no .res-t { padding-top: 0; }
.area-result .res-sub { font-size: .88rem; font-weight: 600; color: var(--brand-ink); margin: 0; }
.area-result p { margin: 0; color: var(--ink-2); }
.res-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.res-btns .btn { min-height: 46px; padding: 10px 20px; font-size: .98rem; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.legend { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: .93rem; color: var(--ink-2); max-width: 560px; }
.legend li { display: flex; gap: 10px; align-items: flex-start; }
.legend .sw { flex: none; width: 18px; height: 18px; border-radius: 5px; margin-top: 2px; }
.legend .sw.core { background: color-mix(in srgb, var(--brand) 35%, transparent); border: 2.5px solid var(--brand); }
.legend .sw.more { background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1.5px dashed var(--brand); }
.area-map { min-width: 0; }
.map { position: relative; isolation: isolate; z-index: 0; height: clamp(360px, 44vw, 540px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface-2); }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: .95rem; }
.map.ready .map-loading { display: none; }
@media (max-width: 960px) {
  .area { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "map" "out"; }
  .area-map { margin-top: 22px; }
  .map { height: clamp(300px, 70vw, 440px); }
}

/* Leaflet look, matched to the site (both themes). Scoped + more specific than leaflet.css, which loads later. */
:is(.map, .mini-map).leaflet-container { font: inherit; background: var(--surface-2); }
:is(.map, .mini-map).leaflet-container .leaflet-control a { color: var(--brand-ink); }
:is(.map, .mini-map).leaflet-container .leaflet-bar { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; overflow: hidden; }
:is(.map, .mini-map).leaflet-container .leaflet-bar a { width: 38px; height: 38px; line-height: 36px; font-size: 20px; background: var(--surface); color: var(--ink); border-bottom-color: var(--line); }
:is(.map, .mini-map).leaflet-container .leaflet-bar a:hover, :is(.map, .mini-map).leaflet-container .leaflet-bar a:focus-visible { background: var(--surface-2); color: var(--ink); }
:is(.map, .mini-map).leaflet-container .leaflet-bar a.leaflet-disabled { background: var(--surface); color: var(--ink-3); opacity: .6; }
:is(.map, .mini-map).leaflet-container .leaflet-control-attribution { background: var(--glass); color: var(--ink-3); font-size: 11px; border-radius: 8px; padding: 2px 8px; }
:is(.map, .mini-map).leaflet-container .leaflet-control-attribution a { color: var(--ink-2); }
:is(.map, .mini-map).leaflet-container .leaflet-bottom.leaflet-right { margin: 0 12px 8px 0; }
.leaflet-tooltip.leaflet-tooltip { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; font-size: .86rem; padding: 6px 10px; }
.leaflet-tooltip.leaflet-tooltip-top::before { border-top-color: var(--surface); }
[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.55); }
.map-pin span { position: absolute; top: 0; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: var(--brand); border: 3px solid #fff; transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .3); left: 0; }
.map-pin span::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; background: #fff; }

/* Address suggestions drop-down */
.ac-host { position: relative; }
.ac-list { position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 6px; text-align: start; }
.ac-list[hidden] { display: none; }
.ac-list ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
.ac-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.ac-item:hover, .ac-item[aria-selected="true"] { background: var(--surface-2); }
.ac-item .ic { flex: none; width: 20px; height: 20px; color: var(--brand); }
.ac-txt { min-width: 0; display: grid; }
.ac-txt .m { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-txt .s { font-size: .86rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="rtl"] .ac-txt > span { text-align: right; }
.ac-empty { padding: 12px; color: var(--ink-3); font-size: .92rem; }
.ac-foot { margin: 4px 6px 2px; font-size: .72rem; color: var(--ink-3); text-align: end; }
.addr-form.ac-host .ac-list { top: calc(100% + 10px); }

/* "Is this the house?" map on the offer form */
.addr-confirm { display: grid; gap: 8px; margin-top: 6px; }
.addr-confirm[hidden] { display: none; }
.mini-map { height: 200px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); isolation: isolate; z-index: 0; position: relative; }
.addr-confirm p { margin: 0; font-size: .9rem; color: var(--ink-3); }
.addr-confirm strong { color: var(--ink); }

/* ---------- Homes page and one home's page (filled by the worker from Bero's admin) ---------- */
a[data-homes-link][hidden] { display: none !important; }
.h-band { padding-top: clamp(8px, 2vw, 24px); }
.h-tabs { display: flex; width: fit-content; max-width: 100%; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 28px; }
.h-tabs button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; background: none; font: 600 1rem/1.2 var(--font-body); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.h-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.h-tabs b { font-weight: 700; color: var(--brand-ink); }
.h-tabs button:focus-visible, .h-ba button:focus-visible, .hd-th:focus-visible, .hd-video:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
@media (max-width: 480px) { .h-tabs { width: 100%; } .h-tabs button { flex: 1 1 0; min-width: 0; padding: 8px 8px; font-size: .92rem; white-space: normal; line-height: 1.2; text-align: center; } }
html:not(.js) .h-tabs { display: none; }
.js .h-tabs ~ .h-panel:not(.on) { display: none; }
.js .h-tabs ~ .h-panel .h-ph { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-panel:focus { outline: none; }
.h-panel + .h-panel { margin-top: 48px; }
.h-ph { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0 0 18px; }
.h-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 22px; }
.h-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.h-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.h-card:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.h-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-3); overflow: hidden; }
.h-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-img > img.h-before { z-index: 1; }
.h-img > img[hidden] { display: none; }
.h-badge { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; background: rgba(255, 255, 255, .95); color: #14201b; font-weight: 700; font-size: .82rem; line-height: 1.2; padding: 6px 10px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.h-badge.sale { background: #0a7d55; color: #fff; }
.h-badge.sale.pending { background: #7a5200; }
.h-badge.sale.sold { background: #14201b; }
.h-play { position: absolute; z-index: 2; bottom: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(15, 26, 22, .78); color: #fff; font-size: .82rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.h-play svg { width: 13px; height: 13px; }
.h-ba { position: absolute; z-index: 3; bottom: 12px; inset-inline-start: 12px; display: flex; gap: 4px; }
.h-ba button { min-height: 32px; border: 0; cursor: pointer; font: 600 .8rem/1 var(--font-body); background: rgba(15, 26, 22, .78); color: #fff; padding: 6px 11px; border-radius: 999px; }
.h-ba button[aria-pressed="true"] { background: #fff; color: #14201b; }
.h-body { padding: 16px 18px 18px; display: grid; gap: 4px; align-content: start; flex: 1; }
.h-city { font-size: 1.12rem; margin: 0; line-height: 1.3; }
.h-link { color: var(--ink); text-decoration: none; }
.h-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.h-link:focus-visible { outline: none; }
.h-meta { color: var(--ink-2); margin: 0 0 4px; font-size: .95rem; }
.h-q { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.h-q b { color: var(--ink); font-weight: 600; }
.h-price { font: 800 1.3rem/1.2 var(--font-display); margin: 0; color: var(--ink); }
.h-card.is-sold .h-price { color: var(--ink-3); text-decoration: line-through; }
.h-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: var(--radius); background: var(--brand-soft); }
.h-cta p { margin: 0; font: 700 1.15rem/1.35 var(--font-display); color: var(--brand-ink); }
.h-cta[hidden] { display: none; }
@media (max-width: 480px) { .h-cta .btn { width: 100%; } }
.h-empty { display: grid; justify-items: center; text-align: center; gap: 12px; max-width: 560px; margin: 0 auto; padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.h-empty h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0; }
.h-empty p { margin: 0; color: var(--ink-2); }
.h-empty .btn { margin-top: 6px; }
.h-empty-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.h-empty-ic .ic { width: 30px; height: 30px; }

.hd-hero .wrap { justify-items: stretch; }
.hd { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .hd { grid-template-columns: 1fr; } }
.hd-media { display: grid; gap: 10px; min-width: 0; }
.hd-main { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow-lg); }
.hd-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-thumbs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; scrollbar-width: thin; }
.hd-th { flex: none; width: 88px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; scroll-snap-align: start; border: 2px solid transparent; opacity: .78; transition: opacity .15s; }
.hd-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-th:hover, .hd-th[aria-current="true"] { opacity: 1; }
.hd-th[aria-current="true"] { border-color: var(--brand); }
.hd-info { display: grid; gap: 12px; align-content: start; min-width: 0; }
.hd-info h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.hd-price { margin: 0; font: 800 clamp(1.6rem, 3vw, 2rem)/1.1 var(--font-display); color: var(--brand-ink); }
.hd-meta { margin: 0; color: var(--ink-2); font-size: 1.08rem; }
.hd-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hd-facts li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.hd-facts svg { width: 26px; height: 26px; padding: 5px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); }
.hd-note { margin: 0; color: var(--ink-2); line-height: 1.65; }
.hd-q { margin: 4px 0 0; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); }
.hd-q p { margin: 0; font-size: 1.08rem; line-height: 1.55; color: var(--ink); }
.hd-q footer { margin-top: 8px; color: var(--ink-2); }
.hd-q b { font-weight: 600; }
.hd-cta { margin-top: 6px; padding: 18px; border-radius: var(--radius); background: var(--brand-soft); display: grid; gap: 12px; }
.hd-cta p { margin: 0; color: var(--brand-ink); }
.hd-cta p b { display: block; font: 700 1.15rem/1.35 var(--font-display); }
.hd-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hd-btns .btn { flex: 1 1 auto; }
.band.tight.hd-more { padding-top: 8px; }
.hd-sec + .hd-sec { margin-top: clamp(32px, 5vw, 56px); }
.hd-sec h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0 0 16px; }
.hd-video { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 820px; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.hd-video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; display: block; }
.hd-playbtn { position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: rgba(15, 26, 22, .82); color: #fff; font-weight: 700; }
.hd-playbtn svg { width: 20px; height: 20px; }
.hd-video:hover .hd-playbtn { background: #0a7d55; }
.hd-frame { display: block; width: 100%; max-width: 820px; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); background: #000; }
.hd-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .hd-ba { grid-template-columns: 1fr; } }
.hd-ba figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); }
.hd-ba img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-ba figcaption { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(255, 255, 255, .95); color: #14201b; font-weight: 700; font-size: .85rem; padding: 6px 11px; border-radius: 999px; }
.hd-all { padding-block: 8px clamp(48px, 7vw, 80px); margin-block: 0; }
