/* SOBHA OneWorld enquiry page. Hand-written, no framework, no external fonts. */

:root {
  --night: #0d1822;
  --night-2: #16242f;
  --cream: #f5efe6;
  --paper: #fffdf9;
  --ink: #1d1a16;
  --ink-soft: #5d554b;
  --line: #ddd3c4;
  --brass: #b8894a;
  --brass-dark: #8f6630;
  --brick: #7a3b25;
  --ok: #2f6b4f;
  --err: #a4321f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
input, button, textarea { -webkit-appearance: none; appearance: none; font-family: inherit; }
input[type=checkbox] { -webkit-appearance: checkbox; appearance: auto; }
button, .btn, .chip, a { -webkit-tap-highlight-color: rgba(184, 137, 74, .25); touch-action: manipulation; }
td, th, p, li, dd, .rera li { word-break: break-word; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* dev banner (hidden automatically once config is filled) */
.draft { background: #fff1b8; color: #4a3a00; font-size: 13px; text-align: center; padding: 7px 12px; }

/* header */
.top { background: #fff; color: var(--ink); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.top .btn.small { background: transparent; color: var(--ink); border: 1px solid var(--ink); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; }
.top .btn.small:hover { background: var(--ink); color: #fff; }
.brand img { height: 40px; width: auto; display: block; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; letter-spacing: 0.01em; text-decoration: none; }
.brand-icon { flex: none; color: var(--brass); }
.disclose { margin: 0; padding: 7px 16px; background: var(--cream); color: var(--ink-soft); font-size: 12px; line-height: 1.4; text-align: center; border-bottom: 1px solid var(--line); }
.brand b { color: var(--brass); font-weight: 600; }
.brand small { display: block; font: 400 11px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #a9b3ba; margin-top: 1px; }
.top nav { display: none; gap: 26px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12.5px; }
.top nav a:hover { color: var(--ink); border-color: var(--brass); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1px solid var(--brass); background: var(--brass); color: #1a1206; font: 600 15px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; border-radius: 2px; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: #c99b5b; }
.btn.ghost { background: transparent; color: var(--cream); border-color: #8b7a61; }
.btn.ghost:hover { border-color: var(--brass); color: #fff; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.dark { background: var(--night); border-color: var(--night); color: var(--cream); }
.btn.dark:hover { background: var(--night-2); }

/* hero */
.hero { background: var(--night); color: var(--cream); padding: 34px 0 0; overflow: hidden; }
.hero .wrap { display: grid; gap: 30px; }
.eyebrow { font: 600 12px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 7.4vw, 58px); color: #fff; margin-bottom: 14px; }
.hero .sub { font-size: 18px; color: #cdd5da; max-width: 34em; margin-bottom: 26px; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #2c3d4a; border-bottom: 1px solid #2c3d4a; margin-bottom: 26px; }
.figures div { padding: 14px 10px 14px 0; }
.figures div + div { padding-left: 14px; border-left: 1px solid #2c3d4a; }
.figures b { display: block; font: 600 clamp(17px, 4.6vw, 24px)/1.2 var(--serif); color: #fff; }
.figures span { display: block; font-size: 12px; color: #9fb0ba; margin-top: 4px; line-height: 1.35; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img { position: relative; margin: 0 -16px; }
.hero-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 40%; max-height: 520px; }
.hero-img figcaption { position: absolute; left: 16px; bottom: 10px; font-size: 12px; letter-spacing: 0.06em; color: #c6cfd4; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

/* proof strip */
.proof { background: var(--night-2); color: #cfd6da; }
.proof .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.proof div { padding: 18px 8px 18px 0; font-size: 13px; line-height: 1.35; }
.proof b { display: block; font: 600 22px/1.2 var(--serif); color: var(--cream); }
.proof p.src { grid-column: 1 / -1; font-size: 11.5px; color: #8b9ba5; margin: 0 0 14px; }

/* sections */
section { padding: 60px 0; }
section.tint { background: var(--cream); }
.head { max-width: 40em; margin-bottom: 30px; }
.head .eyebrow { color: var(--brick); }
.head h2 { font-size: clamp(28px, 6vw, 42px); margin-bottom: 12px; }
.head p { color: var(--ink-soft); font-size: 17px; }
.note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

/* facts list */
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; }

/* homes table */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 13px 8px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 600 12px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.tbl td:first-child { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; margin: 30px -16px 0; scrollbar-width: thin; }
.strip figure { flex: 0 0 74%; scroll-snap-align: start; margin: 0; }
.strip img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
figcaption.cap { font-size: 13px; color: var(--ink-soft); padding-top: 8px; }

/* zones */
.zones { display: grid; gap: 34px 22px; }
.zone img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.zone h3 { font-size: 22px; margin: 14px 0 6px; }
.zone p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.club { display: grid; gap: 26px; margin-top: 54px; padding-top: 40px; border-top: 1px solid var(--line); }
.club ul { columns: 2; column-gap: 24px; padding: 0; margin: 0; list-style: none; font-size: 15px; }
.club li { padding: 5px 0 5px 16px; position: relative; break-inside: avoid; }
.club li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 7px; height: 1px; background: var(--brass-dark); }
.club h3 { font-size: 26px; margin-bottom: 8px; }

/* location */
.loc { display: grid; gap: 34px; }
.loc h3 { font: 600 12px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brick); margin-bottom: 8px; }
.loc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.loc td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.loc td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 12px; }
.infra { margin-top: 40px; padding: 22px; background: var(--night); color: #d6dde1; }
.infra h3 { color: #fff; font-size: 22px; margin-bottom: 12px; }
.infra ul { margin: 0 0 12px; padding-left: 18px; }
.infra li { margin-bottom: 8px; }
.infra .note { color: #97a7b1; }

/* timeline + rera */
.two { display: grid; gap: 34px; }
.rera { font: 13px/1.6 ui-monospace, Consolas, monospace; word-break: break-all; margin: 0; padding: 0; list-style: none; }
.rera li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.check { margin-top: 26px; padding: 20px; border: 1px solid var(--line); background: var(--paper); }
.check h3 { font-size: 20px; margin-bottom: 10px; }
.check ol { margin: 0; padding-left: 20px; }
.check li { margin-bottom: 6px; }

/* form */
.enquire { background: var(--night); color: var(--cream); }
.enquire .head .eyebrow { color: var(--brass); }
.enquire .head h2 { color: #fff; }
.enquire .head p { color: #b7c3ca; }
.form-shell { display: grid; gap: 34px; }
form { background: var(--paper); color: var(--ink); padding: 22px 18px; }
label.f { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
label.f:first-child { margin-top: 0; }
input[type=text], input[type=tel], input[type=email] { width: 100%; height: 48px; font-size: 16px; padding: 0 12px; border: 1px solid #b9ad9b; border-radius: 2px; font: inherit; background: #fff; color: var(--ink); }
input:focus { border-color: var(--brass-dark); }
fieldset { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; top: 0; left: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 10px 14px; border: 1px solid #b9ad9b; border-radius: 2px; font-size: 14px; background: #fff; }
.chip input:checked + span { background: var(--night); color: #fff; border-color: var(--night); }
.chip input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 6px; font-size: 13.5px; color: var(--ink-soft); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.err { color: var(--err); font-size: 14px; min-height: 22px; margin: 10px 0 4px; }
.why { display: grid; gap: 16px; align-content: start; }
.why div { border-left: 2px solid var(--brass); padding-left: 14px; }
.why b { display: block; color: #fff; font-family: var(--serif); font-size: 18px; margin-bottom: 2px; }
.why span { color: #b7c3ca; font-size: 15px; }
#testBox { display: none; margin-top: 14px; }
#testBox textarea { width: 100%; min-height: 200px; padding: 10px; font: 13px/1.4 ui-monospace, Consolas, monospace; border: 1px dashed #8b7a61; background: #faf6ee; color: var(--ink); }

/* footer */
footer { background: #0a1219; color: #98a6af; padding: 40px 0 110px; font-size: 13px; line-height: 1.6; }
footer .wrap { display: grid; gap: 22px; }
footer b { color: #d3dade; }
footer a { color: #d3dade; }
.ph { background: #fff1b8; color: #4a3a00; padding: 0 5px; border-radius: 2px; }

/* mobile sticky bar */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--night); border-top: 1px solid #2c3d4a; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; transform: translateY(0); transition: transform .2s; }
.sticky.hide { transform: translateY(110%); }
.sticky .btn { flex: 1; }

@media (min-width: 640px) {
  .strip figure { flex-basis: 44%; }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .proof .wrap { grid-template-columns: repeat(4, 1fr); }
  .proof p.src { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  section { padding: 92px 0; }
  .top nav { display: flex; }
  .hero { padding: 0; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; align-items: stretch; gap: 56px; }
  .hero-copy { padding: 74px 0 74px; align-self: center; }
  .hero-img { margin: 0; align-self: end; }
  .hero-img img { max-height: none; height: 100%; min-height: 560px; aspect-ratio: auto; }
  .figures b { font-size: 24px; }
  .two { grid-template-columns: 1fr 1fr; gap: 64px; }
  .loc { grid-template-columns: repeat(2, 1fr); gap: 38px 64px; }
  .zones { grid-template-columns: repeat(3, 1fr); }
  .club { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .form-shell { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
  form { padding: 34px; }
  .strip { margin-inline: 0; padding-inline: 0; }
  .strip figure { flex-basis: 31%; }
  footer .wrap { grid-template-columns: 1.3fr 1fr; gap: 56px; }
  .sticky { display: none; }
  footer { padding-bottom: 50px; }
}

/* privacy page */
.legal { max-width: 720px; padding: 40px 0 70px; }
.legal h1 { font-size: clamp(30px, 6vw, 42px); margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 30px 0 8px; }
.legal ul { padding-left: 20px; } .legal li { margin-bottom: 6px; }
.legal a { color: var(--brick); }

/* homes: configuration list and pricing card */
.configs { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.configs li { padding: 10px 16px; border: 1px solid var(--line); background: var(--paper); font-family: var(--serif); font-size: 17px; border-radius: 2px; }
.price-card { display: grid; gap: 18px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brass); align-items: center; }
.price-card .price { display: block; font: 600 clamp(26px, 6vw, 36px)/1.15 var(--serif); margin-bottom: 6px; }
.price-card span { color: var(--ink-soft); font-size: 15px; }
@media (min-width: 900px) { .price-card { grid-template-columns: 1fr auto; padding: 28px 32px; } }

/* film, video tiles, plan links, map */
.film { background: var(--night); color: var(--cream); padding: 56px 0; }
.film .head h2 { color: #fff; } .film .head p { color: #b7c3ca; } .film .head .eyebrow { color: var(--brass); } .film .note { color: #8b9ba5; margin-top: 10px; }
.vid { position: relative; background: #000; overflow: hidden; }
.vid img, .vid video { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.vid-wide img, .vid-wide video { aspect-ratio: 16 / 9; object-position: center 40%; }
.vid video { background: #000; }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--night); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .15s; }
.play span { margin-left: 4px; }
.play:hover { transform: scale(1.06); }
.vid-msg { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: rgba(0,0,0,.75); color: #fff; font-size: 13px; }
.plan-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.plan-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); text-decoration: none; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 2px; }
.plan-links a:hover { background: var(--ink); color: #fff; }
.plan-links .pi { font-size: 16px; line-height: 1; }
.mapbox { position: relative; margin-bottom: 34px; border: 1px solid var(--line); background: #e8e2d8; }
.mapbox iframe { display: block; width: 100%; height: 340px; border: 0; }
.maplink { position: absolute; right: 10px; bottom: 10px; background: #fff; color: var(--ink); padding: 9px 14px; font-size: 13px; text-decoration: none; border: 1px solid var(--line); border-radius: 2px; }
@media (min-width: 900px) { .mapbox iframe { height: 420px; } .film { padding: 80px 0; } }

/* ===== THEME: sobha.com-style (white and black, gold accent, Inter-like sans). Remove this block to go back to the earlier serif/navy look. ===== */
:root {
  --night: #111111; --night-2: #1c1c1c; --cream: #f6f5f2; --paper: #ffffff;
  --ink: #343434; --ink-soft: #6a6a6a; --line: #e2e2e2;
  --brass: #b79a4d; --brass-dark: #8d7432; --brick: #8d7432;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { color: var(--ink); }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.005em; }
.hero h1 { font-weight: 400; letter-spacing: -0.01em; }
.figures b, .proof b, .price-card .price, .zone h3, .configs li, .tbl td:first-child, .check h3, .club h3, .infra h3, .why b { font-weight: 500; }
.btn { background: #000; border-color: #000; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 600; border-radius: 3px; }
.btn:hover { background: #2b2b2b; }
.hero .btn:not(.ghost), .sticky .btn { background: var(--brass); border-color: var(--brass); color: #111; }
.hero .btn:not(.ghost):hover, .sticky .btn:hover { background: #c7ab5c; }
.btn.ghost { background: transparent; color: #fff; border-color: #777; }
.btn.ghost:hover { background: #fff; color: #111; border-color: #fff; }
.btn.dark { background: #000; border-color: #000; color: #fff; }
.hero .figures { border-color: #333; } .figures div + div { border-left-color: #333; }
.figures span { color: #a8a8a8; } .hero .sub { color: #d6d6d6; }
.proof { background: var(--night-2); color: #cfcfcf; } .proof p.src { color: #8a8a8a; }
.film .head p { color: #bdbdbd; } .film .note { color: #8a8a8a; }
.infra { background: #111; color: #d9d9d9; } .infra .note { color: #999; }
.enquire .head p, .why span { color: #bdbdbd; }
footer { background: #0b0b0b; color: #9a9a9a; } footer b, footer a { color: #dddddd; }
.sticky { background: #111; border-top-color: #333; }
.disclose { background: #f6f5f2; }
input[type=text], input[type=tel], input[type=email], .chip span, #testBox textarea { border-color: #bdbdbd; }
.chip input:checked + span { background: #111; border-color: #111; }
.brand-icon, .brand b { color: var(--brass); }

/* hero film: sits over the photo and fades in once it is actually playing */
.hero-img video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0; transition: opacity .6s; background: #000; }
.hero-img.playing video { opacity: 1; }
.hero-img figcaption { z-index: 2; }
.film-img { margin: 0; }
.film-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 40%; }
.film-img .cap { color: #8b9ba5; }

.hero-lines { display: none; }
/* phone hero, closer to sobha.com: photo first, then centred text on white with a black button */
@media (max-width: 899px) {
  .hero { background: #fff; color: var(--ink); padding: 0 0 34px; }
  .hero .wrap { gap: 0; }
  .hero-img { order: -1; margin: 0 -16px 28px; }
  .hero-img img { aspect-ratio: 390 / 422; max-height: none; height: auto; width: 100%; object-fit: cover; object-position: center 35%; }
  .hero-copy { text-align: center; }
  /* same stacked lines as sobha.com's phone hero: 18px, 24px apart, black, centred */
  .hero-lines { display: block; }
  .hero-lines p { margin: 0; font-size: 18px; line-height: 24px; color: #000; font-weight: 400; }
  .hero-lines .price { margin-top: 24px; margin-bottom: 22px; }
  .hero .eyebrow, .hero-copy .sub, .hero .figures, .hero .btn.ghost { display: none; }
  .hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero .btn:not(.ghost) { min-width: 223px; min-height: 48px; font-size: 16px; font-weight: 500; letter-spacing: 0; }
  .head { text-align: center; }
  .head .eyebrow { display: none; }
  .head h2 { font-size: 26px; }
  .hero .eyebrow { color: var(--brass-dark); }
  .hero h1 { color: var(--ink); font-size: clamp(26px, 7.4vw, 36px); font-weight: 500; }
  .hero .sub { color: var(--ink-soft); font-size: 17px; margin-left: auto; margin-right: auto; }
  .hero .figures { border-color: var(--line); text-align: center; }
  .hero .figures div + div { border-left-color: var(--line); }
  .hero .figures b { color: var(--ink); } .hero .figures span { color: var(--ink-soft); }
  .hero .cta-row { justify-content: center; }
  .hero .btn:not(.ghost) { background: #000; border-color: #000; color: #fff; }
  .hero .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
  .hero .note { color: var(--ink-soft) !important; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* keep section headings clear of the sticky header when jumping to an anchor */
section[id], #top { scroll-margin-top: 72px; }

/* mobile menu */
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: 8px; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 3px; cursor: pointer; position: relative; flex: none; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); content: ""; transition: transform .18s, top .18s, opacity .18s; }
.menu-toggle span { top: 21px; }
.menu-toggle span::before { top: -7px; left: 0; right: 0; }
.menu-toggle span::after { top: 7px; left: 0; right: 0; }
.top.open .menu-toggle span { background: transparent; }
.top.open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.top.open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 899px) {
  .menu-toggle { display: block; }
  .top .wrap { gap: 8px; }
  .top .btn.small { padding: 0 12px; margin-left: auto; }
  .top.open nav { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.12); padding: 6px 16px 14px; }
  .top.open nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
  .top.open nav a:last-child { border-bottom: 0; }
}

/* ===== Lead form v2: simpler fields, inline errors, pop-up, floating WhatsApp ===== */
form.lead { background: #fff; color: #111; padding: 22px 20px 20px; border-radius: 3px; }
form.lead .fld { margin-top: 16px; } form.lead .fld:first-child { margin-top: 0; }
form.lead .fl { display: block; } form.lead .fl > .f { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
form.lead fieldset { margin: 0; }
form.lead input[type=text], form.lead input[type=tel] { height: 50px; border-color: #bdbdbd; border-radius: 3px; }
form.lead input:focus { border-color: #111; outline: 2px solid rgba(183,154,77,.45); outline-offset: 0; }
form.lead .phone { display: flex; align-items: stretch; }
form.lead .cc { display: flex; align-items: center; padding: 0 12px; border: 1px solid #bdbdbd; border-right: 0; border-radius: 3px 0 0 3px; background: #f4f4f4; font-size: 16px; color: #333; }
form.lead .phone input { border-radius: 0 3px 3px 0; min-width: 0; }
form.lead .ccw { position: relative; display: flex; flex: 0 0 auto; }
form.lead button.cc { display: flex; align-items: center; gap: 8px; height: 50px; margin: 0; padding: 0 12px; cursor: pointer; font-family: inherit; }
form.lead .car { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #555; }
form.lead .cclist { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30; margin: 0; padding: 4px 0; list-style: none; min-width: 230px; max-height: min(230px, 36vh); overflow-y: auto; background: #fff; border: 1px solid #bdbdbd; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.2); -webkit-overflow-scrolling: touch; }
form.lead .cclist[hidden] { display: none; }
form.lead .cclist li { display: flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 16px; color: #111; cursor: pointer; }
form.lead .cclist li[aria-selected=true] { background: #f4efe4; font-weight: 600; }
form.lead .chip span { min-height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 3px; border-color: #bdbdbd; }
form.lead .chips { gap: 8px; }
form.lead .consent { margin: 18px 0 0; }
form.lead .fe { color: #b3261e; font-size: 13px; margin: 6px 0 0; min-height: 0; } form.lead .fe:empty { display: none; }
form.lead [aria-invalid=true] { border-color: #b3261e; }
form.lead .submit { margin-top: 18px; min-height: 52px; font-size: 15px; }
form.lead .submit:disabled { opacity: .7; }
form.lead .submit.wa-state { background: #25d366; border-color: #25d366; color: #06310f; }
form.lead .done { margin: 12px 0 0; padding: 10px 12px; border-radius: 6px; background: #eaf6ee; color: #14532d; font-size: 14px; line-height: 1.4; text-align: center; }
form.lead .done.bad { background: #fdecea; color: #8a1c14; }
form.lead .done[hidden] { display: none; }
form.lead .help { margin: 12px 0 0; text-align: center; font-size: 15px; color: #444; }
form.lead .help a { color: #0b6b3a; font-weight: 600; text-decoration: underline; }
form.lead .help[hidden] { display: none; }
form.lead .after { margin: 10px 0 0; text-align: center; font-size: 13px; color: #666; }
form.lead .testBox { display: none; margin-top: 14px; }
form.lead .testBox textarea { width: 100%; min-height: 180px; padding: 10px; font: 13px/1.4 ui-monospace, Consolas, monospace; border: 1px dashed #8b7a61; background: #faf6ee; color: #111; }
#formSlot { max-width: 520px; }

.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.m-back { position: absolute; inset: 0; background: rgba(0,0,0,.62); opacity: 0; transition: opacity .24s ease-out; }
.m-panel { position: relative; background: #fff; color: #111; width: min(460px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 4px; padding: 26px 22px 8px; box-shadow: 0 20px 60px rgba(0,0,0,.35); opacity: 0; transform: translateY(14px); transition: transform .26s cubic-bezier(.22,.8,.3,1), opacity .2s ease-out; }
@keyframes mIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.m-panel h2 { margin: 0 34px 4px 0; font-size: 22px; font-weight: 500; line-height: 1.25; color: #111; }
.m-sub { margin: 0 0 16px; color: #555; font-size: 14px; }
.m-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; color: #333; cursor: pointer; }
.m-panel form.lead { padding: 0 0 18px; }
html.modal-open { overflow: hidden; }
.modal { transition: top .22s ease-out, height .22s ease-out; }        /* the keyboard resizes the pop-up: glide, do not snap */
.modal.is-open .m-back { opacity: 1; }
.modal.is-open .m-panel { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .modal { align-items: flex-end; padding: 0; }
  .m-panel { width: 100%; max-height: 94%; border-radius: 12px 12px 0 0; padding: 22px 18px 6px; opacity: 1; transform: translateY(100%); transition: transform .3s cubic-bezier(.22,.8,.3,1); }
  @keyframes mUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .m-panel { animation: none; } }

.wa-float { position: fixed; right: 16px; bottom: 82px; z-index: 70; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: bottom .25s ease, transform .15s ease; }
.wa-float:hover { transform: scale(1.06); } .wa-float[hidden] { display: none; }
.wa-float.low { bottom: 18px; }
html.modal-open .wa-float { display: none; }
@media (min-width: 900px) { .wa-float { bottom: 22px; right: 24px; width: 60px; height: 60px; } }

form.lead .agree { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: #666; text-align: center; }
form.lead .agree a { color: #444; text-decoration: underline; }

@media (min-width: 900px) { .form-shell { grid-template-columns: 1fr; } }

details.more { margin-top: 8px; } details.more summary { cursor: pointer; font-weight: 600; padding: 10px 0; } details.more .rera { margin: 6px 0 4px; }

/* WhatsApp icon inside the sticky bar: hidden unless full.css switches it on (the main page on phones); /short keeps the floating bubble */
.wa-bar { display: none; }

/* thank-you card after a saved lead (one lead per visit) */
.lead-done { text-align: center; padding: 8px 4px 4px; }
.lead-done h3 { margin: 0 0 6px; font-size: 20px; }
.lead-done p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; }
.lead-done .btn { max-width: 380px; margin: 0 auto; }
.fab-book { transition: opacity .25s ease, transform .25s ease, background .15s; }
.fab-book.fab-wait { opacity: 0; transform: translateY(10px); pointer-events: none; }      /* hidden on the first screen so it never covers the hero's Enquire button (main.js fabWatch) */
.lead-done .btn:not(.book) { color: #fff; }      /* the pop-up sits inside .sx, whose ".sx a { color: inherit }" made this button's text dark on black */
#leadModal .lead-done h3 { display: none; }

/* book-a-call option (thank-you card, and the came-back-from-WhatsApp prompt on pages without chat.css) */
.lead-done .book-line { margin: 16px 0 6px; font-size: 14px; color: var(--ink-soft); }
.lead-done .btn.book { background: transparent; color: var(--ink); border: 1px solid var(--ink); max-width: 380px; margin: 0 auto; }
.wa-back { position: fixed; left: 12px; right: 12px; bottom: 88px; z-index: 80; background: #0d1822; color: #fff; border: 1px solid #2c3d4a; border-radius: 10px; padding: 14px 16px; box-shadow: 0 8px 28px rgba(0,0,0,.35); max-width: 520px; margin: 0 auto; }
.wa-back p { margin: 0 0 10px; font-size: 15px; line-height: 1.45; }
.wa-back .row { display: flex; gap: 8px; flex-wrap: wrap; }
.wa-back .btn { text-transform: none; letter-spacing: 0; }
.wa-back .btn.alt { background: transparent; color: #fff; border-color: #6b7a86; }
@media (min-width: 900px) { .wa-back { bottom: 24px; left: auto; right: 90px; } }

/* WhatsApp trust dialog */
.wad { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 16px; }
.wad[hidden] { display: none; }
.wad-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.wad-box { position: relative; background: #fff; color: #1d1a16; border-radius: 18px; padding: 24px; width: min(540px, 100%); max-height: 100%; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); font-family: var(--sans); }
.wad-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: #1d1a16; }
.wad-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #3d453f; }
.wad-dot { width: 14px; height: 14px; border-radius: 50%; background: #25d366; display: inline-block; }
.wad-box h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; font-weight: 600; }
.wad-list { list-style: none; margin: 0 0 14px; padding: 0; font-size: 15px; }
.wad-list li { padding: 3px 0 3px 24px; position: relative; }
.wad-list li::before { content: "\2713"; position: absolute; left: 0; color: #0f7a40; font-weight: 700; }
.wad-num { display: flex; align-items: center; gap: 10px; background: #eef7f1; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; font-size: 15px; }
.wad-num b { white-space: nowrap; }
.wad-tick { width: 24px; height: 24px; border-radius: 50%; background: #0f7a40; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.wad-msg { background: #f6f6f4; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
.wad-msg small { color: #6a6a66; }
.wad-msg span { display: block; margin-top: 6px; white-space: pre-line; color: #3a3a37; }
.wad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wad-col { border: 1px solid #dcdcd8; border-radius: 14px; padding: 14px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.wad-h { margin: 0 0 10px; font-size: 13px; color: #55554f; text-align: left; }
.wad-qr { width: 150px; max-width: 100%; margin: 0 auto; }
.wad-qr svg { width: 100%; height: auto; display: block; }
.wad-s { margin: 8px 0 0; font-size: 13px; color: #55554f; }
.wad .btn.wa { background: #0f7a40; border-color: #0f7a40; color: #fff; text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; border-radius: 8px; min-height: 52px; }
.wad-mobile .wad-qrcol { display: none; }
.wad-mobile .wad-grid { grid-template-columns: 1fr; }
.wad-mobile .wad-col { border: 0; padding: 0; }
.wad-mobile .wad-col .wad-h { display: none; }
html.wad-open { overflow: hidden; }
@media (max-width: 700px) { .wad { align-items: flex-end; padding: 0; } .wad-box { border-radius: 18px 18px 0 0; padding: 22px 18px 24px; } }

/* booking entry points */
.book-link { display: inline-block; margin-top: 2px; padding: 12px 6px; font-size: 15px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.enq-book { margin: 10px 0 0; font-size: 15px; }
.enq-book a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* quick quiz under the thank-you card (budget, timeline, profession, loan): small, calm motion; reduced-motion turns it all off */
.quiz { margin: 20px auto 4px; max-width: 380px; padding: 16px 14px 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #fffdf8, #fff); text-align: left; box-shadow: 0 12px 30px -20px rgba(0,0,0,.4); animation: qzRise .6s cubic-bezier(.2,.8,.2,1) both; }
.qz-kicker { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--brass-dark); font-weight: 600; text-align: left; }
.qz-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.qz-bar i { flex: 1; height: 4px; border-radius: 2px; background: #e8e1d4; position: relative; overflow: hidden; }
.qz-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brass), #e3c27f); transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.qz-bar i.on::after { transform: scaleX(1); }
.qz-stage { min-height: 250px; }
.qz-stage.in { animation: qzIn .38s cubic-bezier(.2,.8,.2,1) both; }
.qz-stage.out { animation: qzOut .23s ease both; }
.qz-q { margin: 0 0 12px; font-size: 17px; line-height: 1.3; font-weight: 500; color: var(--ink); text-align: left; }
.qz-opts { display: grid; gap: 8px; }
.qz-opt { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 500 15px/1.2 var(--sans); text-align: left; cursor: pointer; animation: qzPop .45s cubic-bezier(.2,.9,.3,1.15) both; animation-delay: calc(var(--i) * 70ms); transition: border-color .15s, background .2s, transform .15s; }
.qz-opt:hover { border-color: var(--brass); }
.qz-opt:active { transform: scale(.985); }
.qz-opt::after { content: ""; position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: rgba(184,154,77,.4); transform: scale(0); opacity: 0; pointer-events: none; }
.qz-opt.sel { border-color: var(--brass); background: #fbf4e3; }
.qz-opt.sel::after { animation: qzRipple .65s ease-out; }
.qz-opt .tick { position: relative; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--line); border-radius: 50%; transition: background .2s, border-color .2s; }
.qz-opt.sel .tick { background: var(--brass); border-color: var(--brass); animation: qzTick .4s cubic-bezier(.2,.9,.3,1.4); }
.qz-opt.sel .tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.qz-skip { margin-top: 8px; padding: 8px 2px; border: 0; background: none; color: var(--ink-soft); font: 500 13px var(--sans); text-decoration: underline; cursor: pointer; }
.qz-end { position: relative; text-align: center; padding: 14px 0 0; }
.qz-check { display: block; width: 66px; height: 66px; margin: 0 auto 10px; }
.qz-check circle { stroke: var(--brass); stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; animation: qzDraw .6s ease forwards; }
.qz-check path { stroke: var(--brass-dark); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: qzDraw .4s .45s ease forwards; }
.qz-end h4 { margin: 0 0 4px; font-size: 18px; font-weight: 500; animation: qzIn .5s .6s both; }
.qz-end p { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); animation: qzIn .5s .7s both; }
.qz-spark { position: absolute; left: 50%; top: 47px; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--brass); opacity: 0; animation: qzSpark .95s .5s ease-out forwards; }
@keyframes qzRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes qzIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes qzOut { to { opacity: 0; transform: translateX(-18px); } }
@keyframes qzPop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes qzRipple { 0% { opacity: .9; transform: scale(0); } 100% { opacity: 0; transform: scale(34); } }
@keyframes qzTick { 0% { transform: scale(.5); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes qzDraw { to { stroke-dashoffset: 0; } }
@keyframes qzSpark { 0% { opacity: 1; transform: rotate(var(--a)) translateX(12px) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(56px) scale(.3); } }
@media (prefers-reduced-motion: reduce) { .qz-check circle, .qz-check path { stroke-dashoffset: 0; } .qz-spark { display: none; } .qz-bar i::after { transition: none; } }

/* quiz first: while the questions show, the name and number fields wait; they slide in after the last answer */
form.lead.qz-gating > :not(.quiz):not(.help):not(.agree) { display: none; }
.qz-last { margin: 0 0 12px; font-size: 14px; letter-spacing: .02em; color: var(--ink-soft); animation: qzIn .4s cubic-bezier(.2,.8,.2,1) both; }
form.lead.qz-open .fld, form.lead.qz-open .submit { animation: qzPop .45s cubic-bezier(.2,.9,.3,1.15) both; }
html.qz-gate-modal #leadModal .m-sub { display: none; }
form.lead.qz-open .fld + .fld { animation-delay: .08s; }
form.lead.qz-open .submit { animation-delay: .16s; }
