/* Modon Ras El Hekma LP — sand ground, deep-sea ink, sea-glass accents */
:root {
    --ink: oklch(0.24 0.045 240);
    --ink-deep: oklch(0.17 0.04 245);
    --ink-soft: oklch(0.38 0.04 235);
    --sand: oklch(0.965 0.012 85);
    --sand-2: oklch(0.93 0.018 85);
    --sand-3: oklch(0.885 0.022 85);
    --sea: oklch(0.62 0.105 210);
    --sea-deep: oklch(0.46 0.09 218);
    --foam: oklch(0.9 0.045 200);
    --wa: #23b558;
    --wa-deep: #1a9648;
    --radius: 14px;
    --shadow: 0 10px 40px oklch(0.24 0.045 240 / 0.16);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { transition: none !important; transform: none !important; opacity: 1 !important; }
}

body {
    margin: 0;
    font-family: 'Alexandria', system-ui, sans-serif;
    font-weight: 300;
    color: var(--ink);
    background: var(--sand);
    line-height: 1.75;
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.06rem);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--sea-deep); }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }

.skip {
    position: absolute; inset-inline-start: -999px; top: 0;
    background: var(--ink); color: var(--sand); padding: 0.6rem 1.2rem; z-index: 99;
}
.skip:focus { inset-inline-start: 0; }

.hp-field { position: absolute; inset-inline-start: -5000px; width: 1px; height: 1px; opacity: 0; }

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.72rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer;
    font: 600 0.95rem/1.2 'Alexandria', sans-serif; text-decoration: none;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sea { background: var(--sea-deep); color: oklch(0.98 0.008 85); box-shadow: 0 6px 22px oklch(0.46 0.09 218 / 0.35); }
.btn-sea:hover { background: var(--sea); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 22px rgb(35 181 88 / 0.35); }
.btn-wa:hover { background: var(--wa-deep); }
.btn-wa::before { content: ''; width: 1.15em; height: 1.15em; flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a10 10 0 0 0-8.5 15.3L2 22l4.9-1.4A10 10 0 1 0 12 2Zm5.5 14.1c-.24.66-1.37 1.26-1.9 1.3-.5.05-1.13.24-3.8-.8-3.2-1.26-5.24-4.55-5.4-4.76-.16-.21-1.3-1.73-1.3-3.3 0-1.57.82-2.34 1.11-2.66.3-.32.64-.4.85-.4h.61c.2 0 .46-.07.72.55.27.64.9 2.2.98 2.36.08.16.13.35.03.56-.1.21-.16.34-.31.53-.16.18-.33.41-.47.55-.16.16-.32.33-.14.64.18.32.8 1.32 1.72 2.13 1.18 1.05 2.17 1.38 2.48 1.53.31.16.5.13.68-.08.18-.2.78-.9.98-1.22.2-.31.41-.26.7-.16.28.11 1.8.85 2.1 1 .31.16.51.24.59.37.07.13.07.76-.17 1.42Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.05rem; width: 100%; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ── Header ──────────────────────────────── */
.top {
    position: absolute; inset-inline: 0; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
}
.brand { width: clamp(118px, 15vw, 144px); height: auto; filter: drop-shadow(0 2px 10px oklch(0.15 0.04 245 / 0.6)); }
.top-actions { display: flex; align-items: center; gap: 1rem; }
.top-phone { color: oklch(0.94 0.02 200); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.lang { color: oklch(0.94 0.02 200); text-decoration: none; font-size: 0.88rem; border-bottom: 1px solid oklch(0.94 0.02 200 / 0.5); padding-bottom: 1px; }
@media (max-width: 640px) { .top-phone { display: none; } }

/* ── Hero ────────────────────────────────── */
.hero { position: relative; min-height: min(94vh, 900px); display: flex; align-items: flex-end; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, oklch(0.17 0.04 245 / 0.94) 0%, oklch(0.17 0.04 245 / 0.55) 45%, oklch(0.17 0.04 245 / 0.18) 75%, oklch(0.17 0.04 245 / 0.35) 100%);
}
.hero-grid {
    width: 100%; max-width: 1180px; margin-inline: auto;
    padding: clamp(5.5rem, 12vh, 8rem) clamp(1rem, 4vw, 2.5rem) clamp(1.6rem, 4vh, 3rem);
    display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: 1.25fr 0.9fr; align-items: end;
}
.hero-copy { color: oklch(0.97 0.01 85); }
.eyebrow { color: var(--foam); font-weight: 600; letter-spacing: 0.06em; font-size: 0.88rem; margin: 0 0 0.4rem; }
.hero h1 { font-size: clamp(2.5rem, 7.2vw, 4.6rem); font-weight: 900; line-height: 1.14; margin: 0 0 0.5rem; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.25rem); font-weight: 300; max-width: 34ch; margin: 0 0 1.2rem; color: oklch(0.93 0.015 85); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 1.4rem; }
.chips li {
    background: oklch(0.9 0.045 200 / 0.14); border: 1px solid oklch(0.9 0.045 200 / 0.4);
    color: var(--foam); border-radius: 999px; padding: 0.32rem 0.95rem; font-size: 0.86rem; font-weight: 400;
}
.hero-price { margin: 0 0 1.4rem; font-size: 1.02rem; color: oklch(0.9 0.02 85); }
.hero-price strong { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-inline-start: 0.4rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero .hero-ctas .btn-ghost { color: oklch(0.95 0.015 85); }
.final .btn-ghost { color: var(--ink); }

.hero-form {
    background: var(--sand); border-radius: calc(var(--radius) + 4px); padding: 1.5rem 1.4rem 1.2rem;
    box-shadow: var(--shadow);
}
.hero-form h2 { margin: 0 0 0.3rem; font-size: 1.3rem; font-weight: 800; }
.hero-form > p { margin: 0 0 1rem; font-size: 0.9rem; color: var(--ink-soft); }

/* ── Form ────────────────────────────────── */
.lead-form .ff { margin-bottom: 0.85rem; }
.lead-form label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 0.3rem; }
.lead-form input[type="text"], .lead-form input[type="tel"] {
    width: 100%; padding: 0.78rem 1rem; border-radius: 10px; font: 400 1rem 'Alexandria', sans-serif;
    border: 1.5px solid var(--sand-3); background: #fff; color: var(--ink); transition: border-color 0.2s;
}
.lead-form input:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px oklch(0.62 0.105 210 / 0.2); }
.lead-form input[dir="ltr"] { text-align: start; }
[dir="rtl"] .lead-form input[dir="ltr"] { text-align: right; }
[dir="rtl"] .lead-form input[dir="ltr"]::placeholder { text-align: right; }
.lead-form .invalid { border-color: oklch(0.55 0.19 25) !important; }
.form-err { color: oklch(0.5 0.19 25); font-size: 0.86rem; margin: 0 0 0.6rem; font-weight: 600; }
.privacy { font-size: 0.78rem; color: var(--ink-soft); text-align: center; margin: 0.7rem 0 0; }

/* ── Sections ────────────────────────────── */
section { padding-block: clamp(2.8rem, 7vw, 5rem); }
.sec-title { font-size: clamp(1.55rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.3; margin: 0 0 0.7rem; }
.sec-body { max-width: 62ch; color: var(--ink-soft); font-weight: 300; margin: 0; }

.about-grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: 1fr 1fr; align-items: start; }
.about-points { list-style: none; margin: 0; padding: 0; }
.about-points li {
    padding: 0.7rem 0; border-bottom: 1px solid var(--sand-3); font-weight: 400; font-size: 0.97rem;
    display: flex; gap: 0.7rem; align-items: baseline;
}
.about-points li::before { content: '◆'; color: var(--sea); font-size: 0.6rem; flex: none; }
.about-points li:last-child { border-bottom: 0; }

/* City scale + ownership: cinematic image + navy overlay */
.scale { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 7rem); color: oklch(0.96 0.012 200); text-align: right; }
.scale-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.scale::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(290deg, oklch(0.16 0.04 245 / 0.45) 0%, oklch(0.15 0.04 245 / 0.8) 52%, oklch(0.13 0.035 245 / 0.95) 100%); }
.scale-inner { position: relative; z-index: 2; }
.scale-title { font-size: clamp(1.7rem, 4.2vw, 2.7rem); font-weight: 900; color: oklch(0.98 0.01 200); margin: 0 0 clamp(1.1rem, 3vw, 1.7rem); text-shadow: 0 2px 22px oklch(0.13 0.04 245 / 0.65); }
.scale-lead { margin: 0 0 clamp(1rem, 2.6vw, 1.5rem); display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.scale-lead strong { font-size: clamp(3rem, 8.5vw, 5.6rem); font-weight: 900; color: oklch(0.87 0.11 200); line-height: 0.92; letter-spacing: -0.015em; text-shadow: 0 4px 30px oklch(0.13 0.04 245 / 0.5); }
.scale-lead span { font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 300; color: oklch(0.93 0.02 205); }
.scale-facts { list-style: none; margin: 0 0 clamp(1.5rem, 4vw, 2.3rem); padding: clamp(1.1rem, 2.8vw, 1.7rem) 0 0; display: flex; flex-wrap: wrap; gap: clamp(0.7rem, 2.2vw, 1.3rem) clamp(1.5rem, 4vw, 3rem); border-top: 1px solid oklch(0.85 0.03 205 / 0.28); }
.scale-facts li { display: flex; align-items: baseline; gap: 0.5rem; }
.scale-facts strong { font-size: clamp(1.5rem, 3.1vw, 2.2rem); font-weight: 900; color: oklch(0.83 0.1 202); line-height: 1; }
.scale-facts span { font-size: clamp(0.85rem, 1.7vw, 1rem); font-weight: 300; color: oklch(0.91 0.02 205); }
.scale-own { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.55rem clamp(1rem, 3vw, 2rem); margin-bottom: clamp(1.3rem, 3vw, 1.8rem); padding: clamp(0.95rem, 2.3vw, 1.3rem) clamp(1.1rem, 2.6vw, 1.6rem); border-radius: var(--radius); background: oklch(0.15 0.04 245 / 0.55); border: 1px solid oklch(0.72 0.08 205 / 0.32); }
.scale-own-label { font-weight: 800; color: oklch(0.9 0.03 205); font-size: clamp(0.95rem, 2vw, 1.05rem); }
.scale-own-fact { font-size: 0.9rem; font-weight: 300; color: oklch(0.9 0.02 205); }
.scale-own-fact strong { font-size: clamp(1.1rem, 2.2vw, 1.25rem); font-weight: 900; color: oklch(0.85 0.1 200); margin-inline-end: 0.2rem; }
.scale .btn { width: auto; }
@media (max-width: 640px) { .scale .btn { width: 100%; } }

/* Phases rail */
.phases { overflow: hidden; }
.rail {
    --railpad: clamp(1rem, calc((100vw - 1180px) / 2 + 2.5rem), 50vw);
    display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-block: 1.6rem 1.2rem;
    scroll-padding-inline: var(--railpad);
    scrollbar-width: thin; scrollbar-color: var(--sand-3) transparent;
}
.phase:first-child { margin-inline-start: var(--railpad); }
.phase:last-child { margin-inline-end: var(--railpad); }
.phase {
    flex: 0 0 min(78vw, 330px); scroll-snap-align: start; background: #fff;
    border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 22px oklch(0.24 0.045 240 / 0.09);
    display: flex; flex-direction: column;
}
.phase.featured { flex-basis: min(88vw, 430px); }
.ph-media { position: relative; }
.ph-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.phase.featured .ph-media img { aspect-ratio: 16/8; }
.ph-n {
    position: absolute; top: 0.7rem; inset-inline-start: 0.7rem;
    background: var(--ink-deep); color: var(--foam);
    border-radius: 8px; padding: 0.15rem 0.6rem; font-weight: 800; font-size: 0.95rem;
}
.ph-del {
    position: absolute; bottom: 0.7rem; inset-inline-end: 0.7rem;
    background: oklch(0.965 0.012 85 / 0.92); color: var(--ink); border-radius: 999px;
    padding: 0.15rem 0.7rem; font-size: 0.78rem; font-weight: 600;
}
.ph-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.ph-body h3 { margin: 0; font-size: 1.18rem; font-weight: 800; }
.ph-units { margin: 0; font-size: 0.87rem; font-weight: 600; color: var(--sea-deep); }
.ph-note { margin: 0; font-size: 0.85rem; color: var(--ink-soft); flex: 1; }
.ph-price { margin: 0.3rem 0 0.6rem; font-size: 0.9rem; color: var(--ink-soft); }
.ph-price strong { font-size: 1.5rem; font-weight: 900; color: var(--ink); margin-inline: 0.25rem; }
.ph-price .ask { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.phase .btn { align-self: start; }

/* Gallery mosaic */
.gallery { padding-block-end: 0; }
.mosaic {
    margin-top: 1.6rem; display: grid; gap: 6px;
    grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(120px, 22vw, 260px);
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .m1 { grid-column: span 2; grid-row: span 2; }
.mosaic .m4 { grid-column: span 2; }
.mosaic .m6 { grid-column: span 2; }
@media (max-width: 640px) {
    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 34vw; }
    .mosaic .m1 { grid-column: span 2; }
    .mosaic .m4, .mosaic .m6 { grid-column: span 1; }
}



/* Location */
.loc-grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: 1fr 1.1fr; align-items: center; }
.loc-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 1.5rem 0 0; }
.loc-points dt { font-size: 1.45rem; font-weight: 900; color: var(--sea-deep); }
[dir="rtl"] .loc-points dt { text-align: right; }
.loc-points dd { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.master { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; }
.master span {
    position: absolute; bottom: 0.8rem; inset-inline-start: 0.8rem;
    background: var(--ink-deep); color: var(--foam); padding: 0.35rem 0.9rem;
    border-radius: 999px; font-size: 0.84rem; font-weight: 600;
}

/* Developer */
.dev { background: var(--ink-deep); color: var(--sand); }
.dev-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.dev-logo { width: clamp(170px, 20vw, 224px); height: auto; }
.dev .sec-body { color: oklch(0.85 0.02 210); }
.dev-rate { margin: 0.9rem 0 0; }
.dev-rate strong { font-size: 1.3rem; font-weight: 900; color: oklch(0.78 0.1 205); }
.dev-rate span { font-size: 0.85rem; color: oklch(0.8 0.02 210); margin-inline-start: 0.4rem; }
@media (max-width: 560px) { .dev-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--sand-3); }
.faq summary {
    cursor: pointer; padding: 1rem 0.2rem; font-weight: 600; font-size: 1.02rem; list-style: none;
    display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--sea-deep); transition: rotate 0.3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 1.1rem; color: var(--ink-soft); max-width: 68ch; }

/* Final CTA */
.final { background: var(--sand-2); }
.final-grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.final h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; margin: 0 0 0.5rem; }
.final p { color: var(--ink-soft); margin: 0 0 1.3rem; }
.final-form { background: var(--sand); border-radius: calc(var(--radius) + 4px); padding: 1.5rem 1.4rem 1.2rem; box-shadow: var(--shadow); }

/* Footer */
.foot { background: var(--ink-deep); color: oklch(0.72 0.02 210); font-size: 0.82rem; padding-block: 2rem 6.5rem; }
.foot a { color: oklch(0.85 0.04 205); }
.foot p { margin: 0.3rem 0; max-width: 75ch; }
@media (min-width: 761px) { .foot { padding-block: 2.2rem; } }

/* Sticky mobile bar */
.stickybar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px;
    padding: 10px max(12px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom));
    background: oklch(0.965 0.012 85 / 0.96); backdrop-filter: blur(8px);
    box-shadow: 0 -6px 24px oklch(0.24 0.045 240 / 0.14);
}
.stickybar a {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.75rem 0.5rem; border-radius: 12px; text-decoration: none;
    font-weight: 700; font-size: 0.95rem;
}
.sb-call { border: 1.5px solid var(--ink); color: var(--ink); }
.sb-wa { background: var(--wa); color: #fff; }
.sb-wa::before { content: ''; width: 1.1em; height: 1.1em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a10 10 0 0 0-8.5 15.3L2 22l4.9-1.4A10 10 0 1 0 12 2Zm5.5 14.1c-.24.66-1.37 1.26-1.9 1.3-.5.05-1.13.24-3.8-.8-3.2-1.26-5.24-4.55-5.4-4.76-.16-.21-1.3-1.73-1.3-3.3 0-1.57.82-2.34 1.11-2.66.3-.32.64-.4.85-.4h.61c.2 0 .46-.07.72.55.27.64.9 2.2.98 2.36.08.16.13.35.03.56-.1.21-.16.34-.31.53-.16.18-.33.41-.47.55-.16.16-.32.33-.14.64.18.32.8 1.32 1.72 2.13 1.18 1.05 2.17 1.38 2.48 1.53.31.16.5.13.68-.08.18-.2.78-.9.98-1.22.2-.31.41-.26.7-.16.28.11 1.8.85 2.1 1 .31.16.51.24.59.37.07.13.07.76-.17 1.42Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.sb-form { background: var(--sea-deep); color: #fff; }
@media (min-width: 761px) { .stickybar { display: none; } }

/* Thank-you page */
.thanks-page { background: var(--ink-deep); color: var(--sand); min-height: 100vh; display: grid; place-items: center; }
.thanks { text-align: center; padding: 3rem 1.5rem; max-width: 560px; }
.thanks .brand-dark { margin: 0 auto 1.6rem; width: clamp(150px, 42vw, 190px); height: auto; }
.check {
    width: 74px; height: 74px; margin: 0 auto 1.4rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 2.1rem; font-weight: 900;
    background: oklch(0.62 0.105 210 / 0.18); border: 2px solid var(--sea); color: oklch(0.78 0.1 205);
}
.thanks h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 900; margin: 0 0 0.7rem; }
.thanks p { color: oklch(0.85 0.02 210); margin: 0 0 1.6rem; }
.thanks-actions { display: grid; gap: 0.8rem; max-width: 340px; margin: 0 auto 1.4rem; }
.thanks .btn-ghost { color: var(--sand); }
.thanks-call a { color: oklch(0.85 0.04 205); font-weight: 700; text-decoration: none; font-size: 1.05rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Mobile layout */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; align-items: start; }
    .about-grid, .loc-grid, .final-grid { grid-template-columns: 1fr; }
    
}

.master img { max-height: 560px; object-fit: cover; width: 100%; }
