/* ===========================================================
   IL CAZAR — Park Sight | Landing Page Styles
   Palette: Charcoal black + Ivory + Neon Emerald glow + Gold
   RTL / Mobile-first
   =========================================================== */

:root {
    --black: #0B0B0C;
    --black-soft: #141417;
    --black-card: #18181C;
    --ivory: #F5F2EC;
    --muted: #9A988F;
    --line: rgba(245, 242, 236, 0.10);

    --neon: #39FFB0;
    --neon-dim: #1FD392;
    --gold: #C9A96A;

    --glow: 0 0 14px rgba(57, 255, 176, 0.55), 0 0 36px rgba(57, 255, 176, 0.25);
    --radius: 16px;
    --maxw: 1180px;

    --font-head: 'El Messiri', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    --font-en: 'Cinzel', serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--ivory);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

.en { font-family: var(--font-en); letter-spacing: 1px; }

/* ---------- Neon highlight utility ---------- */
.neon {
    color: var(--neon);
    text-shadow: var(--glow);
}
.neon-box {
    border: 1px solid rgba(57, 255, 176, 0.45);
    box-shadow: var(--glow), inset 0 0 18px rgba(57, 255, 176, 0.06);
    border-radius: var(--radius);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    line-height: 1;
}
.btn-neon {
    background: var(--neon);
    color: #04150E;
    box-shadow: var(--glow);
}
.btn-neon:hover { transform: translateY(-3px); box-shadow: 0 0 22px rgba(57,255,176,.85), 0 0 60px rgba(57,255,176,.35); }
.btn-ghost {
    background: transparent;
    color: var(--ivory);
    border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background .35s ease, backdrop-filter .35s ease, padding .35s ease;
    padding: 18px 0;
}
.header.scrolled {
    background: rgba(11, 11, 12, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.header .logo img { height: 34px; filter: invert(1) brightness(2); }
.header .btn { padding: 11px 22px; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 60px;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    z-index: 0;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, var(--black) 4%, rgba(11,11,12,.55) 45%, rgba(11,11,12,.75) 100%);
}
.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 50px;
    align-items: center;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 18px;
    text-transform: uppercase;
}
.hero__eyebrow::before {
    content: '';
    width: 34px; height: 1px; background: var(--gold);
}
.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.1;
    margin-bottom: 8px;
}
.hero h1 .en { display: block; font-size: clamp(1.3rem, 3vw, 2rem); color: var(--muted); font-weight: 600; }
.hero__sub { font-size: 1.15rem; color: var(--ivory); opacity: .9; max-width: 520px; margin: 16px 0 26px; }
.hero__location {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 1rem; color: var(--ivory); margin-bottom: 22px;
}
.hero__price {
    font-family: var(--font-head);
    font-size: 1.05rem; color: var(--muted);
    margin-top: 6px;
}
.hero__price b {
    display: block;
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-top: 2px;
}

/* ---------- Hero inline form card ---------- */
.lead-card {
    background: rgba(20, 20, 23, 0.72);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 30px 26px;
    box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.lead-card h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 6px; }
.lead-card p { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 7px; }
.field input {
    width: 100%;
    background: var(--black-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--ivory);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(57,255,176,.15);
}
.field input::placeholder { color: #5d5c57; }

.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 12px; }
.form-msg { font-size: .95rem; text-align: center; margin-top: 14px; min-height: 1em; }
.form-msg.ok { color: var(--neon); }
.form-msg.err { color: #ff6b6b; }

/* ---------- Stats bar ---------- */
.stats {
    background: var(--black-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 30px 0;
}
.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat__value {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--neon);
    text-shadow: var(--glow);
    line-height: 1.1;
}
.stat__unit { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.stat + .stat { border-right: 1px solid var(--line); }

/* ---------- Section base ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--black-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head .eyebrow {
    color: var(--gold); letter-spacing: 3px; font-size: .85rem;
    text-transform: uppercase; display: block; margin-bottom: 12px;
}
.section-head h2 {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.2;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }

/* ---------- About ---------- */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about__img { border-radius: var(--radius); overflow: hidden; position: relative; }
.about__img img { width: 100%; height: 460px; object-fit: cover; }
.about__text h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.about__text p { color: #cfccc3; font-size: 1.1rem; margin-bottom: 16px; }
.about__text .badge {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 10px; padding: 10px 18px;
    border-radius: 50px; font-family: var(--font-head);
}

/* ---------- Amenities ---------- */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.amenity {
    background: var(--black-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.amenity:hover {
    transform: translateY(-6px);
    border-color: rgba(57,255,176,.5);
    box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.amenity__icon {
    width: 58px; height: 58px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(57,255,176,.08);
    border: 1px solid rgba(57,255,176,.3);
}
.amenity__icon svg { width: 28px; height: 28px; stroke: var(--neon); fill: none; stroke-width: 1.8; }
.amenity h4 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }

/* ---------- Units ---------- */
.units-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.unit {
    background: var(--black-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 26px;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease;
}
.unit::before {
    content: '';
    position: absolute; inset: 0 auto 0 0; width: 3px;
    background: linear-gradient(var(--neon), transparent);
    opacity: .6;
}
.unit:hover { transform: translateY(-6px); border-color: rgba(57,255,176,.4); }
.unit h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 14px; }
.unit__area {
    font-family: var(--font-head);
    font-size: 2.6rem;
    color: var(--neon);
    text-shadow: var(--glow);
    line-height: 1;
}
.unit__area span { font-size: 1rem; color: var(--muted); text-shadow: none; }
.unit p { color: var(--muted); margin: 16px 0 22px; }

/* ---------- Payment ---------- */
.payment { text-align: center; }
.payment-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    max-width: 920px; margin: 0 auto;
}
.pay-card {
    padding: 40px 24px;
    border-radius: var(--radius);
}
.pay-card .num {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--neon);
    text-shadow: var(--glow);
    line-height: 1;
}
.pay-card .lbl { color: var(--ivory); margin-top: 12px; font-size: 1.1rem; }
.payment .price-line {
    margin-top: 40px;
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 4vw, 2rem);
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 14px;
}
.gallery-grid figure {
    overflow: hidden; border-radius: 12px; position: relative;
}
.gallery-grid img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figure:nth-child(1),
.gallery-grid figure:nth-child(6) { grid-row: span 2; }

/* ---------- Final CTA / Form ---------- */
.cta-section {
    position: relative;
    padding: 100px 0;
    background:
        linear-gradient(rgba(11,11,12,.85), rgba(11,11,12,.92));
    background-size: cover;
    background-position: center;
}
.cta-wrap { max-width: 620px; margin: 0 auto; text-align: center; }
.cta-wrap h2 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.cta-wrap > p { color: var(--muted); font-size: 1.1rem; margin-bottom: 30px; }
.cta-form .lead-card { text-align: right; }

/* ---------- Footer ---------- */
.footer {
    background: var(--black-soft);
    border-top: 1px solid var(--line);
    padding: 56px 0 30px;
}
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .logo img { height: 38px; filter: invert(1) brightness(2); margin-bottom: 16px; }
.footer p { color: var(--muted); }
.footer h5 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 16px; color: var(--ivory); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.footer ul li a:hover { color: var(--neon); }
.footer .socials { display: flex; gap: 12px; margin-top: 6px; }
.footer .socials a {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    transition: all .25s ease;
}
.footer .socials a:hover { border-color: var(--neon); color: var(--neon); box-shadow: var(--glow); }
.footer .socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom {
    text-align: center; color: var(--muted); font-size: .85rem;
    margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
    position: fixed;
    bottom: 22px; left: 22px;
    width: 60px; height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 90;
    box-shadow: 0 8px 26px rgba(37,211,102,.5);
    animation: wa-pulse 2.4s infinite;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes wa-pulse {
    0%   { box-shadow: 0 8px 26px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.5); }
    70%  { box-shadow: 0 8px 26px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 8px 26px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; gap: 36px; }
    .about .container { grid-template-columns: 1fr; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .units-grid { grid-template-columns: 1fr; }
    .payment-grid { grid-template-columns: 1fr; max-width: 460px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .section { padding: 64px 0; }
    .header .logo img { height: 28px; }
    .header .btn { padding: 9px 16px; font-size: .82rem; }
    .hero { padding: 110px 0 50px; }
    .stats .container { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
    .stat + .stat { border-right: none; }
    .stat:nth-child(odd) { border-left: 1px solid var(--line); }
    .amenities-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid figure:nth-child(1),
    .gallery-grid figure:nth-child(6) { grid-row: span 1; }
    .footer .container { grid-template-columns: 1fr; gap: 28px; }
    .lead-card { padding: 24px 18px; }
    .about__img img { height: 320px; }
    .wa-float { width: 54px; height: 54px; bottom: 16px; left: 16px; }
    .wa-float svg { width: 28px; height: 28px; }
}

@media (max-width: 360px) {
    .amenities-grid { grid-template-columns: 1fr; }
}
