/* =====================================================================
   River District – Nile Developments
   Luxury real-estate landing page (Arabic / RTL)
   ===================================================================== */

:root {
    --navy:        #0E1A2B;
    --navy-2:      #142943;
    --navy-soft:   #1c3553;
    --gold:        #C9A24B;
    --gold-2:      #E3C879;
    --gold-soft:   rgba(201, 162, 75, .15);
    --cream:       #F6F2EA;
    --cream-2:     #ECE4D3;
    --ink:         #0E1A2B;
    --neon:        #3FE0D0;
    --neon-glow:   rgba(63, 224, 208, .55);
    --white:       #ffffff;
    --muted:       #8294aa;

    --maxw: 1180px;
    --radius: 18px;
    --shadow: 0 24px 60px -24px rgba(8, 18, 32, .55);
    --shadow-sm: 0 12px 30px -16px rgba(8, 18, 32, .45);

    --font-head: 'El Messiri', system-ui, sans-serif;
    --font-body: 'Tajawal', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.75;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; font-weight: 700; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

section { position: relative; }

/* ---------- shared bits ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: .82rem; font-weight: 700; letter-spacing: .5px;
    color: var(--gold); text-transform: uppercase;
    margin-bottom: 14px;
}
.eyebrow::before {
    content: ""; width: 34px; height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
    font-size: clamp(1.7rem, 4.5vw, 2.7rem);
    color: var(--navy);
    margin-bottom: 14px;
}
.section-title .accent { color: var(--gold); }

.section-sub { color: #4a5a6e; font-size: 1.02rem; max-width: 620px; }

.section-pad { padding: clamp(56px, 9vw, 110px) 0; }

.center { text-align: center; margin-inline: auto; }
.center .section-sub { margin-inline: auto; }

/* neon highlight – elegant, soft glow */
.neon {
    color: #073b37;
    background: linear-gradient(180deg, #eafffb, #c8fff5);
    padding: .02em .34em;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: 0 0 0 1px rgba(63,224,208,.45), 0 0 18px var(--neon-glow);
    white-space: nowrap;
}
.neon-text {
    color: var(--neon);
    text-shadow: 0 0 8px var(--neon-glow), 0 0 22px rgba(63,224,208,.35);
    font-weight: 800;
}

.btn {
    --bg: var(--gold);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--bg); color: var(--navy);
    font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
    padding: 15px 30px; border-radius: 60px; border: 0; cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: 0 14px 30px -12px rgba(201,162,75,.7);
    position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(201,162,75,.85); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 18px 40px; font-size: 1.15rem; }
.btn--ghost {
    background: transparent; color: var(--white);
    border: 1.5px solid rgba(255,255,255,.45); box-shadow: none;
}
.btn--ghost:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.btn--block { width: 100%; }

/* shine sweep on primary button */
.btn--gold::after {
    content: ""; position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.6), transparent);
    transform: skewX(-20deg);
    animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 60% { left: -120%; } 100% { left: 160%; } }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    padding: 16px 0;
    transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
    background: rgba(246,242,234,.92);
    backdrop-filter: blur(12px);
    padding: 9px 0;
    box-shadow: 0 8px 30px -18px rgba(8,18,32,.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 40px; width: auto; transition: filter .3s ease, height .3s ease; }
/* logo is black; invert to white when on the transparent (over-hero) state */
.site-header:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; color: var(--white); font-size: .98rem;
}
.site-header.scrolled .header-phone { color: var(--navy); }
.header-phone svg { width: 18px; height: 18px; }
.header-cta { padding: 11px 24px; font-size: .95rem; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: center;
    color: var(--white);
    padding: 120px 0 60px;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(14,26,43,.55) 0%, rgba(14,26,43,.35) 40%, rgba(14,26,43,.9) 100%),
        linear-gradient(90deg, rgba(14,26,43,.7), rgba(14,26,43,.15));
}
.hero-content { max-width: 720px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(6px);
    padding: 8px 18px; border-radius: 50px;
    font-size: .9rem; font-weight: 600; margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon-glow); }
.hero h1 {
    font-size: clamp(2.6rem, 8vw, 5rem);
    line-height: 1.05; margin-bottom: 10px; letter-spacing: -.5px;
}
.hero h1 .sub { display: block; font-size: clamp(1.1rem, 3.5vw, 1.7rem); color: var(--gold-2); font-weight: 600; margin-top: 6px; }
.hero-tagline { font-size: clamp(1.05rem, 2.6vw, 1.4rem); color: #dfe7f0; max-width: 560px; margin-bottom: 16px; }
.hero-hook {
    font-size: clamp(1rem, 2.5vw, 1.2rem); margin-bottom: 30px; color: #eef3f8;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    margin-top: 46px; max-width: 640px;
}
.hero-stat { }
.hero-stat .num { font-family: var(--font-head); font-size: clamp(1.2rem, 4vw, 1.9rem); font-weight: 700; color: var(--gold-2); }
.hero-stat .lbl { font-size: .82rem; color: #c3cedb; }

.scroll-cue {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.6); font-size: .8rem;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* =====================================================================
   NEON STATS BAR
   ===================================================================== */
.statbar { background: var(--navy); padding: 0; }
.statbar-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,.06);
}
.statbar-item {
    padding: 30px 18px; text-align: center; color: var(--white);
    border-inline-start: 1px solid rgba(255,255,255,.07);
}
.statbar-item:first-child { border-inline-start: 0; }
.statbar-item .val { font-family: var(--font-head); font-size: clamp(1.25rem, 4vw, 2rem); font-weight: 700; }
.statbar-item .val .cur { font-size: .6em; color: var(--gold-2); }
.statbar-item .cap { font-size: .85rem; color: #aebccd; margin-top: 4px; }

/* =====================================================================
   ABOUT / LOCATION
   ===================================================================== */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-media .float-tag {
    position: absolute; bottom: -18px; inset-inline-start: -18px;
    background: var(--navy); color: var(--white); border-radius: 14px;
    padding: 16px 22px; box-shadow: var(--shadow-sm);
    border: 1px solid rgba(201,162,75,.35);
}
.about-media .float-tag .big { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold-2); }
.about-media .float-tag .sm { font-size: .82rem; color: #c3cedb; }

.feature-list { display: grid; gap: 16px; margin-top: 26px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item .ico {
    flex: none; width: 42px; height: 42px; border-radius: 12px;
    background: var(--gold-soft); color: var(--gold);
    display: grid; place-items: center;
}
.feature-item .ico svg { width: 22px; height: 22px; }
.feature-item h4 { font-size: 1.08rem; color: var(--navy); margin-bottom: 2px; }
.feature-item p { font-size: .95rem; color: #5c6b7d; }

/* =====================================================================
   UNIT TYPES
   ===================================================================== */
.units { background: var(--navy); color: var(--white); }
.units .section-title { color: var(--white); }
.units .section-sub { color: #b6c3d3; }
.units-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 46px; }
.unit-card {
    background: linear-gradient(180deg, var(--navy-2), var(--navy));
    border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
    overflow: hidden; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.unit-card:hover { transform: translateY(-8px); border-color: rgba(201,162,75,.5); box-shadow: 0 30px 50px -28px rgba(0,0,0,.7); }
.unit-card .pic { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.unit-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.unit-card:hover .pic img { transform: scale(1.08); }
.unit-card .pic::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(14,26,43,.85)); }
.unit-card .body { padding: 20px 22px 24px; }
.unit-card h3 { font-size: 1.25rem; color: var(--white); margin-bottom: 6px; }
.unit-card .area { display:inline-block; font-size: .85rem; color: var(--gold-2); border:1px solid rgba(201,162,75,.4); border-radius: 50px; padding: 3px 14px; }

/* =====================================================================
   PAYMENT PLANS
   ===================================================================== */
.plans { background: var(--cream); }
.plans-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 46px; }
.plan-card {
    background: var(--white); border: 1px solid var(--cream-2); border-radius: var(--radius);
    padding: 26px 18px; text-align: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    position: relative;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: rgba(201,162,75,.45); }
.plan-card .down { font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; color: var(--navy); line-height: 1; }
.plan-card .down small { font-size: .9rem; color: var(--muted); }
.plan-card .lbl { font-size: .9rem; color: #5c6b7d; margin: 8px 0 14px; }
.plan-card .years { display:inline-block; font-family: var(--font-head); font-weight:700; color: var(--gold); border-top: 1px dashed var(--cream-2); padding-top: 14px; width: 100%; }
.plan-card .years b { font-size: 1.5rem; }

.offers-note {
    margin-top: 28px; display: grid; grid-template-columns: repeat(2,1fr); gap: 16px;
}
.offer-pill {
    display: flex; align-items: center; gap: 14px;
    background: var(--white); border: 1px solid var(--cream-2); border-radius: 16px; padding: 18px 22px;
}
.offer-pill .ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.offer-pill .ico svg { width: 24px; height: 24px; }
.offer-pill h4 { color: var(--navy); font-size: 1.05rem; }
.offer-pill p { font-size: .9rem; color: #5c6b7d; }

/* =====================================================================
   EXCLUSIVE OFFER
   ===================================================================== */
.exclusive {
    background:
        linear-gradient(rgba(14,26,43,.92), rgba(14,26,43,.96)) center/cover;
    color: var(--white); text-align: center;
}
.exclusive .badge-fire {
    display:inline-flex; align-items:center; gap:8px;
    background: rgba(63,224,208,.12); border:1px solid rgba(63,224,208,.4);
    color: var(--neon); padding: 7px 18px; border-radius: 50px; font-weight: 700; font-size: .9rem; margin-bottom: 18px;
}
.exclusive h2 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 12px; }
.exclusive .monthly { margin: 18px 0 28px; font-size: clamp(1.1rem,3vw,1.4rem); color:#dfe7f0; }
.exclusive .monthly b { font-size: clamp(2.2rem, 7vw, 3.6rem); }

/* =====================================================================
   GALLERY
   ===================================================================== */
.gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 40px; grid-auto-flow: dense; }
.gallery-grid figure { border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid figure::after { content:""; position:absolute; inset:0; background: rgba(14,26,43,0); transition: background .3s ease; }
.gallery-grid figure:hover::after { background: rgba(14,26,43,.18); }
.g-wide { grid-column: span 3; aspect-ratio: 16/10; }
.g-tall { grid-column: span 3; aspect-ratio: 16/10; }
.g-sq   { grid-column: span 2; aspect-ratio: 4/3; }

/* lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 200; display: none;
    background: rgba(8,14,24,.92); align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox .close { position: absolute; top: 20px; inset-inline-end: 24px; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* =====================================================================
   LEAD FORM
   ===================================================================== */
.lead { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.lead::before {
    content:""; position:absolute; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(63,224,208,.16), transparent 70%);
    top: -180px; inset-inline-start: -120px;
}
.lead::after {
    content:""; position:absolute; width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,75,.16), transparent 70%);
    bottom: -160px; inset-inline-end: -120px;
}
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.lead-copy .section-title { color: var(--white); }
.lead-copy .section-title .accent { color: var(--gold-2); }
.lead-points { display: grid; gap: 14px; margin-top: 26px; }
.lead-points li { display: flex; gap: 12px; align-items: center; color: #d7e0ea; font-size: 1.02rem; }
.lead-points .ck { flex:none; width: 26px; height: 26px; border-radius: 50%; background: rgba(63,224,208,.16); color: var(--neon); display: grid; place-items: center; }
.lead-points .ck svg { width: 15px; height: 15px; }

.lead-card {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(6px);
    border-radius: 22px; padding: clamp(26px, 4vw, 40px);
    box-shadow: var(--shadow);
}
.lead-card h3 { font-size: 1.6rem; margin-bottom: 6px; }
.lead-card .hint { color: #aebccd; font-size: .95rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; margin-bottom: 7px; color: #c7d2de; font-weight: 600; }
.field input {
    width: 100%; padding: 15px 18px; border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
    color: var(--white); font-family: var(--font-body); font-size: 1.05rem;
    transition: border-color .25s ease, background .25s ease;
}
.field input::placeholder { color: rgba(255,255,255,.4); }
.field input:focus { outline: none; border-color: var(--neon); background: rgba(63,224,208,.06); }
.field.error input { border-color: #ff6b6b; }
.field .err-msg { color: #ff9a9a; font-size: .82rem; margin-top: 6px; display: none; }
.field.error .err-msg { display: block; }
/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-note { font-size: .8rem; color: #8294aa; margin-top: 12px; text-align: center; }
.form-msg { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-weight: 600; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(63,224,208,.12); border: 1px solid rgba(63,224,208,.4); color: #bff8ef; }
.form-msg.bad { background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.4); color: #ffc9c9; }

.btn .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(14,26,43,.3); border-top-color: var(--navy); border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: #0a131f; color: #93a3b6; padding: 56px 0 30px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-brand img { height: 42px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: .92rem; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact a, .footer-contact span { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .82rem; color: #6c7c90; }

/* =====================================================================
   أزرار عائمة: واتساب + اتصال
   ===================================================================== */
.fab-group {
    position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 90;
    display: flex; flex-direction: column; gap: 12px;
}
.fab {
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    box-shadow: 0 12px 30px -8px rgba(8, 18, 32, .45);
    transition: transform .25s ease;
    position: relative;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; }

.fab-wa {
    background: #25D366; color: #fff;
    box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
}
.fab-wa::after {
    content:""; position:absolute; inset:0; border-radius:50%;
    box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

.fab-call {
    background: var(--navy); color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: 0 12px 30px -8px rgba(201,162,75,.45);
}

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
/* content is always visible by default; only hidden when JS is active to animate in */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .units-grid { grid-template-columns: repeat(2, 1fr); }
    .plans-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid, .lead-grid { grid-template-columns: 1fr; gap: 38px; }
    .about-media .float-tag { inset-inline-start: auto; inset-inline-end: -8px; }
}

@media (max-width: 720px) {
    .header-phone, .header-cta { display: none; }
    .hero { min-height: 92svh; padding-top: 100px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
    .statbar-grid { grid-template-columns: repeat(2, 1fr); }
    .statbar-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.07); }
    .statbar-item:nth-child(odd) { border-inline-start: 0; }
    .units-grid { grid-template-columns: 1fr; }
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
    .offers-note { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .g-wide, .g-tall, .g-sq { grid-column: span 2; aspect-ratio: 16/10; }
    .fab-group { bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: 16px; gap: 10px; }
    .fab { width: 52px; height: 52px; }
    .fab svg { width: 24px; height: 24px; }
    .scroll-cue { display: none; }
}

@media (max-width: 400px) {
    .plans-grid { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
}
