/* Bideva Real Estate — bideva.ae
   Night navy and brass, from the Bideva mark. The one bold element is the mashrabiya window in the hero;
   everything else stays quiet. */
:root {
  --ink: #101e25;        /* night navy */
  --harbour: #1d3340;    /* lighter navy for panels */
  --brass: #b39453;      /* brand gold */
  --brass-l: #e7d3a4;    /* pale brass, on navy */
  --stone: #eef0ec;      /* cool limestone page */
  --white: #ffffff;
  --text: #1b262c;
  --muted: #5f6a6f;
  --line: #d9ddd6;
  --display: "Marcellus", "Times New Roman", serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}
[lang="ar"] {
  --display: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--stone); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: .01em; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { font-weight: 500; letter-spacing: 0; line-height: 1.3; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: 19px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 2px;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-l); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(179,148,83,.12); }
.btn-wa { background: #1e8b4c; color: #fff; }
.btn-wa:hover { background: #18723e; }

/* Header */
.top { position: absolute; inset: 0 0 auto; z-index: 5; color: var(--white); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand b { font: 400 21px/1 "Marcellus", serif; letter-spacing: .32em; }
.brand small { display: block; color: var(--brass-l); font: 500 10px/1 var(--body); letter-spacing: .38em; margin-top: 5px; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 15px; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--brass-l); }
.tools { display: flex; gap: 8px; align-items: center; }
.tools button, .tools select { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.35); border-radius: 2px; height: 36px; padding: 0 12px; font: 500 14px var(--body); cursor: pointer; }
.tools select option { color: var(--text); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; inset: 84px 0 auto; flex-direction: column; gap: 0; background: var(--ink); padding: 8px 20px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu-btn { display: inline-flex; margin-inline-start: auto; }
  .tools { margin-inline-start: 0; }
}

/* Hero: the mashrabiya window */
.hero { background: var(--ink); color: var(--white); padding: 140px 0 90px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 78px); }
.hero p { color: #c8d0d3; font-size: 19px; margin: 22px 0 32px; max-width: 44ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .stat { margin-top: 44px; display: flex; gap: 40px; flex-wrap: wrap; color: #c8d0d3; font-size: 15px; }
.hero .stat b { display: block; color: var(--brass-l); font: 400 30px/1.1 var(--display); }
.window { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 520px; justify-self: center; }
.window .roof { position: absolute; inset: 0 0 auto; width: 100%; height: auto; overflow: visible; }
.lattice { position: absolute; left: 50%; top: 58%; width: 72%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9%; }
.pane { position: relative; overflow: hidden; border: 2px solid var(--brass); border-radius: 4px; background: var(--harbour); }
.pane i { position: absolute; width: 141.5%; height: 141.5%; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg); background: center / cover no-repeat; }
.pane.lit { background: var(--brass); box-shadow: 0 0 60px rgba(231,211,164,.45); }
.pane.lit i { opacity: .18; }
@media (prefers-reduced-motion: no-preference) {
  .pane { animation: pane-in .9s both; }
  .pane:nth-child(1) { animation-delay: .1s } .pane:nth-child(2) { animation-delay: .25s } .pane:nth-child(4) { animation-delay: .4s }
  .pane:nth-child(3) { animation-delay: .55s } .pane:nth-child(7) { animation-delay: .7s } .pane:nth-child(6) { animation-delay: .85s }
  .pane:nth-child(8) { animation-delay: 1s } .pane:nth-child(9) { animation-delay: 1.15s } .pane.lit { animation: pane-in .9s 1.45s both, glow 1.4s 2.2s both; }
  @keyframes pane-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes glow { from { box-shadow: 0 0 0 rgba(231,211,164,0); } to { box-shadow: 0 0 60px rgba(231,211,164,.45); } }
}
@media (max-width: 900px) {
  .hero { padding: 120px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .window { max-width: 340px; order: -1; }
}

/* Finder */
.finder { background: var(--white); border-bottom: 1px solid var(--line); }
.finder form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; padding: 26px 0; align-items: end; }
label span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input, select, textarea { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--white);
  font: 400 16px var(--body); color: var(--text); }
textarea { height: auto; padding: 12px 14px; resize: vertical; }
@media (max-width: 760px) { .finder form { grid-template-columns: 1fr 1fr; } .finder form .btn { grid-column: 1 / -1; } }

/* Sections */
.sec { padding: 96px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head p { margin: 10px 0 0; }

/* Project feature */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--white); border: 1px solid var(--line); }
.feature .ph { min-height: 420px; background: center / cover no-repeat; }
.feature .tx { padding: 40px; display: flex; flex-direction: column; }
.feature .where { color: var(--muted); font-size: 15px; margin: 8px 0 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 6px 0 26px; padding: 18px 0; border-block: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.price { font: 400 30px/1.1 var(--display); color: var(--ink); }
.feature .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.empty { padding: 40px; background: var(--white); border: 1px dashed var(--line); color: var(--muted); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature .ph { min-height: 260px; } .feature .tx { padding: 26px 22px; } }

/* Golden visa band */
.visa { background: var(--harbour); color: var(--white); }
.visa .wrap { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.visa .big { font: 400 clamp(64px, 9vw, 120px)/.9 var(--display); color: var(--brass-l); }
.visa p { color: #c8d0d3; }
.visa small { color: #9fb0b7; font-size: 13px; }
@media (max-width: 760px) { .visa .wrap { grid-template-columns: 1fr; gap: 12px; } }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 26px 26px 6px 0; border-top: 2px solid var(--brass); counter-increment: s; }
[dir="rtl"] .steps li { padding: 26px 0 6px 26px; }
.steps li::before { content: counter(s); font: 400 34px/1 var(--display); color: var(--brass); display: block; margin-bottom: 14px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 24px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--ink); color: var(--white); }
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.contact p { color: #c8d0d3; }
.contact label span { color: #a9b5ba; }
.contact input, .contact select, .contact textarea { background: var(--harbour); border-color: #2f4856; color: var(--white); }
.contact .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact .full { grid-column: 1 / -1; }
.direct { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.direct a { text-decoration: none; display: flex; gap: 12px; align-items: center; color: var(--brass-l); font-size: 18px; }
.direct svg { width: 22px; height: 22px; }
.note { font-size: 13px; color: #9fb0b7; margin-top: 10px; }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .contact .grid { grid-template-columns: 1fr; } }

footer { background: #0b161b; color: #8fa0a7; font-size: 14px; padding: 30px 0; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Project page */
.p-hero { background: var(--ink); color: var(--white); padding: 120px 0 0; }
.p-hero .head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; }
.p-hero h1 { font-size: clamp(40px, 6vw, 72px); }
.p-hero .where { color: #c8d0d3; margin-top: 10px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 160px); gap: 6px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img:first-child { grid-row: span 3; }
.gallery .more { position: relative; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 120px; } .gallery img:first-child { grid-column: span 2; grid-row: auto; } .gallery img:nth-child(4) { display: none; } }
.p-body { display: grid; grid-template-columns: 1.4fr .9fr; gap: 56px; padding: 64px 0 96px; }
.p-body aside { position: sticky; top: 24px; align-self: start; background: var(--white); border: 1px solid var(--line); padding: 28px; }
@media (max-width: 960px) { .p-body { grid-template-columns: 1fr; } .p-body aside { position: static; } }
.hl { list-style: none; padding: 0; margin: 0 0 8px; }
.hl li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; }
[dir="rtl"] .hl li { padding: 12px 28px 12px 0; }
.hl li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 19px; width: 10px; height: 10px; border: 2px solid var(--brass); transform: rotate(45deg); }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.type { background: var(--white); border: 1px solid var(--line); }
.type video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.type div { padding: 18px 20px; }
.type .price { font-size: 24px; margin-top: 6px; }
@media (max-width: 640px) { .types { grid-template-columns: 1fr; } }
.calc-sec { margin-top: 56px; }
.seg { display: inline-flex; border: 1px solid var(--line); background: var(--white); margin: 14px 0 6px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 11px 18px; font: 500 15px var(--body); cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
table { width: 100%; border-collapse: collapse; margin-top: 14px; background: var(--white); border: 1px solid var(--line); font-size: 16px; }
th, td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); }
th { font-size: 13px; color: var(--muted); font-weight: 500; }
td.n, th.n { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; background: #f6f4ee; }
.tobook { margin-top: 14px; padding: 16px 18px; background: var(--ink); color: var(--white); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.tobook b { font: 400 26px var(--display); color: var(--brass-l); }
.fine { font-size: 13px; color: var(--muted); margin-top: 10px; }
aside h3 { margin-bottom: 6px; }
aside form { display: grid; gap: 12px; margin-top: 16px; }
.sent { background: #e8f2ec; color: #1e5b39; padding: 12px 14px; font-size: 15px; display: none; }
.sent.show { display: block; }
.p-body > * { min-width: 0; }
.tablewrap { overflow-x: auto; }
@media (max-width: 560px) {
  .top .wrap { gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .brand b { font-size: 17px; letter-spacing: .22em; }
  .brand small { display: none; }
  .tools select { padding: 0 6px; min-width: 66px; }
  .tools button { padding: 0 10px; }
  th, td { padding: 10px 8px; font-size: 15px; }
  .facts { grid-template-columns: 1fr 1fr !important; }
}
