:root {
    --ink: #171717;
    --ink-soft: #282828;
    --brand: #ff4713;
    --brand-dark: #d93408;
    --sand: #c9a961;
    --paper: #f6f4ef;
    --white: #fff;
    --muted: #6f6b65;
    --line: #dedbd4;
    --whatsapp: #25d366;
    --container: 1240px;
    --shadow: 0 24px 70px rgba(23, 23, 23, .12);
    --ease: .3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Cairo", sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section-space { padding: 110px 0; }
.section-label, .eyebrow {
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 16px;
}
.section-heading { margin-bottom: 48px; }
.section-heading h2, .intro-grid h2 {
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.25;
}

/* Header */
.header {
    background: rgba(23, 23, 23, .96);
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: var(--white);
    inset: 0 0 auto;
    position: fixed;
    transition: var(--ease);
    z-index: 1000;
}
.header.scrolled { box-shadow: 0 12px 35px rgba(0,0,0,.14); }
.header-container {
    align-items: center;
    display: flex;
    height: 88px;
    justify-content: space-between;
    margin: auto;
    max-width: 1400px;
    padding: 0 32px;
}
.brand { align-items: center; display: inline-flex; gap: 14px; }
.brand img { height: 58px; object-fit: contain; width: 58px; }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { color: var(--white); font-size: 1.05rem; }
.brand small { color: rgba(255,255,255,.5); font-size: .68rem; letter-spacing: .08em; }
nav { display: flex; gap: 34px; }
nav a { color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 600; position: relative; }
nav a::after {
    background: var(--brand);
    bottom: -10px;
    content: "";
    height: 2px;
    position: absolute;
    right: 0;
    transition: var(--ease);
    width: 0;
}
nav a:hover, nav a.active { color: var(--white); }
nav a:hover::after, nav a.active::after { width: 100%; }
.header-actions { align-items: center; display: flex; gap: 12px; }
.icon-link {
    align-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    display: flex;
    height: 42px;
    justify-content: center;
    transition: var(--ease);
    width: 42px;
}
.icon-link:hover { border-color: var(--brand); color: var(--brand); }
.menu-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: none;
    height: 44px;
    width: 44px;
}

/* Buttons */
.btn {
    align-items: center;
    border: 1px solid transparent;
    display: inline-flex;
    gap: 9px;
    justify-content: center;
    min-height: 48px;
    padding: 12px 23px;
    transition: var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-brand, .btn-primary { background: var(--brand); color: var(--white); }
.btn-brand:hover, .btn-primary:hover { background: var(--brand-dark); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #20b858; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-outline { border-color: currentColor; color: inherit; }
.btn-large { min-height: 56px; padding: 15px 28px; }
.header-whatsapp { font-size: .82rem; min-height: 42px; padding: 8px 17px; }

/* Home hero */
main { padding-top: 88px; }
.hero {
    background: var(--ink);
    color: var(--white);
    min-height: calc(100svh - 88px);
}
.hero-content {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    max-width: 980px;
    min-height: calc(100svh - 88px);
    padding: clamp(48px, 7vw, 110px) 32px;
}
.hero-content h1 {
    font-size: clamp(3rem, 6vw, 6.4rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.04;
    margin-bottom: 28px;
}
.hero-content h1 span { color: var(--sand); }
.hero-content > p { color: rgba(255,255,255,.68); font-size: 1.08rem; max-width: 590px; }
.hero-stats {
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    gap: 32px;
    margin-top: 42px;
    padding-top: 28px;
    width: 100%;
}
.hero .stat-box { flex: 1; }
.hero .stat-box h3 { color: var(--white); font-size: 1.25rem; }
.hero .stat-box p { color: rgba(255,255,255,.5); font-size: .72rem; }
.hero-btns, .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Home sections */
.section { padding: 110px max(24px, calc((100vw - var(--container)) / 2)); }
.section-header { margin-bottom: 52px; max-width: 760px; }
.section-title { font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.2; }
.section-subtitle { color: var(--muted); margin-top: 14px; }
#projects { background: var(--white); }
.projects-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.project-card { min-height: 510px; overflow: hidden; position: relative; }
.project-card.is-launch {
    border: 1px solid rgba(255,71,19,.4);
    box-shadow: 0 18px 48px rgba(23,23,23,.12);
}
.project-card.is-launch .project-badge {
    animation: pulse-badge 1.8s ease-in-out infinite;
    box-shadow: 0 8px 24px rgba(255,71,19,.35);
}
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
.project-img { height: 100%; min-height: 510px; position: relative; }
.project-img::after {
    background: linear-gradient(0deg, rgba(10,10,10,.94), rgba(10,10,10,.06) 74%);
    content: "";
    inset: 0;
    position: absolute;
}
.project-img > img { filter: saturate(.8); height: 100%; object-fit: cover; transition: .7s ease; width: 100%; }
.project-card:hover .project-img > img { filter: saturate(1); transform: scale(1.04); }
.project-badge, .project-location { color: var(--white); position: absolute; top: 26px; z-index: 2; }
.project-badge { background: var(--brand); font-size: .75rem; font-weight: 700; padding: 7px 13px; right: 26px; }
.project-location { display: flex; font-size: .8rem; gap: 7px; left: 26px; }
.project-body { bottom: 0; color: var(--white); padding: 34px; position: absolute; width: 100%; z-index: 2; }
.project-body h3 { font-size: 2rem; line-height: 1.3; }
.project-info { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 16px; }
.info-item { color: rgba(255,255,255,.72); font-size: .8rem; }
.info-item i { color: var(--sand); margin-left: 5px; }
.project-units { display: flex; flex-wrap: wrap; gap: 7px; }
.unit-tag { border: 1px solid rgba(201,169,97,.7); color: var(--sand); display: inline-flex; font-size: .75rem; padding: 5px 12px; }
.project-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.project-btns .btn { font-size: .78rem; min-height: 42px; padding: 8px 15px; }

#about { background: var(--ink); color: var(--white); }
.about-content { display: grid; gap: 80px; grid-template-columns: .8fr 1.2fr; }
.about-text h2 { color: var(--sand); font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.25; }
.about-text p { color: rgba(255,255,255,.66); margin-top: 20px; }
.features-grid { display: grid; gap: 34px; grid-template-columns: repeat(2, 1fr); }
.feature-box { border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; }
.feature-box i { color: var(--brand); font-size: 1.7rem; }
.feature-box h4 { font-size: 1.15rem; margin: 14px 0 6px; }
.feature-box p { color: rgba(255,255,255,.55); font-size: .87rem; }
.cta-section { background: var(--sand); padding: 100px 24px; text-align: center; }
.cta-section h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
.cta-section p { margin-top: 10px; }
.cta-section .hero-btns { justify-content: center; }
.cta-section .btn-outline { color: var(--ink); }

/* Project pages */
.project-page { padding-top: 88px; }
.project-hero {
    align-items: flex-end;
    color: var(--white);
    display: flex;
    min-height: 720px;
    overflow: hidden;
    position: relative;
}
.project-hero > img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.project-hero-overlay {
    background: linear-gradient(90deg, rgba(15,15,15,.92), rgba(15,15,15,.18)), linear-gradient(0deg, rgba(15,15,15,.7), transparent 55%);
    inset: 0;
    position: absolute;
}
.project-hero-content { padding-bottom: 90px; position: relative; z-index: 1; }
.project-kicker { color: var(--sand); font-size: .85rem; font-weight: 700; }
.project-hero h1 { font-size: clamp(3.8rem, 9vw, 8rem); letter-spacing: -.04em; line-height: 1.05; margin: 8px 0 18px; }
.project-tagline { color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 650px; }
.project-location-badge { align-items: center; display: flex; gap: 9px; margin-top: 20px; }
.project-overview { background: var(--white); }
.intro-grid { align-items: end; display: grid; gap: 80px; grid-template-columns: 1fr 1fr; }
.intro-grid > p { color: var(--muted); font-size: 1.06rem; }
.detail-grid { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin-top: 70px; background: var(--line); }
.detail-card { background: var(--paper); display: flex; flex-direction: column; min-height: 190px; padding: 30px; }
.detail-card i { color: var(--brand); font-size: 1.5rem; margin-bottom: 26px; }
.detail-card span { color: var(--muted); font-size: .75rem; }
.detail-card strong { font-size: 1.05rem; margin-top: 5px; }
.project-features { background: var(--paper); }
.amenities-grid { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); background: var(--line); }
.amenity-item { align-items: center; background: var(--white); display: flex; gap: 17px; min-height: 100px; padding: 24px; transition: var(--ease); }
.amenity-item:hover { background: var(--ink); color: var(--white); }
.amenity-item i { color: var(--brand); font-size: 1.35rem; width: 28px; }
.units-row { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 60px; padding-top: 30px; }
.units-row > div { display: flex; flex-wrap: wrap; gap: 8px; }
.units-row .unit-tag { color: var(--ink); }
.gallery-section { background: var(--ink); color: var(--white); }
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(12, 1fr); }
.gallery-item {
    background: var(--ink-soft);
    border: 0;
    cursor: zoom-in;
    grid-column: span 4;
    height: 310px;
    overflow: hidden;
    padding: 0;
}
.gallery-item:first-child { grid-column: span 8; height: 520px; }
.gallery-item:nth-child(2) { grid-column: span 4; height: 520px; }
.gallery-item img { filter: saturate(.85); height: 100%; object-fit: cover; transition: .6s ease; width: 100%; }
.gallery-item:hover img { filter: saturate(1); transform: scale(1.035); }
.project-cta { background: var(--sand); padding: 85px 0; }
.project-cta .container { align-items: center; display: flex; justify-content: space-between; }
.project-cta h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.25; }
.project-cta .section-label { color: var(--ink); }
.project-cta .hero-actions { margin-top: 0; }

/* Bloomfields launch */
.launch-section { background: var(--ink); color: var(--white); padding: 105px 0; }
.launch-heading { max-width: 760px; }
.launch-heading h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.2; }
.launch-heading p { color: rgba(255,255,255,.6); margin-top: 15px; }
.pricing-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 50px; }
.pricing-card { border: 1px solid rgba(255,255,255,.14); padding: 28px; }
.pricing-card h3 { border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 18px; }
.pricing-card p { display: flex; justify-content: space-between; padding-top: 18px; }
.pricing-card p span { color: rgba(255,255,255,.55); font-size: .8rem; }
.pricing-card p strong { color: var(--sand); }
.launch-action { align-items: center; display: flex; justify-content: space-between; margin-top: 35px; }
.launch-action p { color: rgba(255,255,255,.65); }

/* Error pages */
.error-page {
    align-items: center;
    background: var(--ink);
    color: var(--white);
    display: flex;
    min-height: 72vh;
    text-align: center;
}
.error-page .container { align-items: center; display: flex; flex-direction: column; }
.error-page span { color: var(--brand); font-size: clamp(5rem, 14vw, 11rem); font-weight: 800; line-height: 1; }
.error-page h1 { font-size: clamp(2rem, 5vw, 4rem); }
.error-page p { color: rgba(255,255,255,.6); margin-top: 10px; }

/* Footer */
.footer { background: #111; color: var(--white); padding: 85px 0 28px; }
.footer-content { display: grid; gap: 55px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer-about > p { color: rgba(255,255,255,.52); font-size: .84rem; margin-top: 22px; max-width: 460px; }
.footer h4 { color: var(--sand); font-size: .95rem; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.62); font-size: .84rem; transition: var(--ease); }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact { align-items: flex-start; display: flex; flex-direction: column; gap: 10px; }
.footer-contact h4 { margin-bottom: 10px; }
.footer-contact i { color: var(--brand); margin-left: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); font-size: .75rem; margin-top: 60px; padding-top: 25px; }
.floating-btns { bottom: 24px; display: flex; flex-direction: column; gap: 10px; left: 24px; position: fixed; z-index: 900; }
.floating-btn { align-items: center; border-radius: 50%; box-shadow: 0 10px 28px rgba(0,0,0,.18); color: var(--white); display: flex; height: 50px; justify-content: center; transition: var(--ease); width: 50px; }
.floating-btn:hover { transform: translateY(-3px); }
.floating-btn.whatsapp { background: var(--whatsapp); }
.floating-btn.phone { background: var(--brand); }

/* Lightbox and motion */
.lightbox { align-items: center; background: rgba(0,0,0,.95); display: flex; inset: 0; justify-content: center; padding: 28px; position: fixed; z-index: 2000; }
.lightbox img { max-height: 90vh; max-width: 92vw; object-fit: contain; }
.lightbox-close { background: var(--white); border: 0; border-radius: 50%; cursor: pointer; font-size: 1rem; height: 44px; left: 24px; position: absolute; top: 24px; width: 44px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
    .header-container { height: 86px; padding: 0 22px; }
    main, .project-page { padding-top: 86px; }
    .brand img { height: 56px; width: 56px; }
    nav {
        background: var(--ink);
        border-top: 1px solid rgba(255,255,255,.1);
        display: none;
        flex-direction: column;
        gap: 0;
        inset: 86px 0 auto;
        padding: 18px 24px 28px;
        position: fixed;
    }
    nav.active { display: flex; }
    nav a {
        border-bottom: 1px solid rgba(255,255,255,.08);
        font-size: 1.05rem;
        padding: 16px 0;
    }
    nav a::after { display: none; }
    .menu-toggle { display: block; }
    .hero-content h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
    .about-content, .intro-grid { gap: 45px; grid-template-columns: 1fr; }
    .project-hero h1 { font-size: clamp(2.6rem, 8vw, 4.8rem); }
    .footer-content { grid-template-columns: 1.7fr 1fr 1fr; }
    .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    html { font-size: 15px; scroll-padding-top: 84px; }
    body { line-height: 1.7; }
    .container { width: min(calc(100% - 28px), var(--container)); }
    .section-space, .section { padding-bottom: 64px; padding-top: 64px; }
    .section-label, .eyebrow { font-size: .72rem; margin-bottom: 12px; }
    .section-heading { margin-bottom: 32px; }
    .section-heading h2,
    .intro-grid h2,
    .section-title {
        font-size: clamp(1.75rem, 7vw, 2.35rem);
        line-height: 1.3;
    }
    .section-subtitle,
    .intro-grid > p,
    .about-text p,
    .project-tagline {
        font-size: .95rem;
        line-height: 1.75;
    }

    .header-container { height: 78px; padding: 0 14px; }
    main, .project-page { padding-top: 78px; }
    nav { top: 78px; padding: 14px 18px 24px; }
    .brand { gap: 10px; }
    .brand img { height: 54px; width: 54px; }
    .brand span { display: flex; }
    .brand strong { font-size: .95rem; }
    .brand small { display: none; }
    .header-whatsapp { display: none; }
    .icon-link,
    .menu-toggle {
        height: 44px;
        width: 44px;
    }

    .btn {
        font-size: .92rem;
        min-height: 48px;
        padding: 12px 18px;
    }
    .btn-large {
        font-size: .95rem;
        min-height: 52px;
        width: 100%;
    }

    .hero { min-height: auto; }
    .hero-content {
        min-height: auto;
        padding: 42px 20px 48px;
    }
    .hero-content h1 {
        font-size: clamp(2.15rem, 10vw, 2.8rem);
        letter-spacing: -.02em;
        line-height: 1.15;
        margin-bottom: 18px;
    }
    .hero-content > p {
        font-size: .95rem;
        line-height: 1.7;
        margin-bottom: 0;
    }
    .hero-stats {
        display: grid;
        gap: 18px 12px;
        grid-template-columns: 1fr 1fr;
        margin-top: 28px;
        padding-top: 22px;
    }
    .hero .stat-box:last-child { grid-column: 1 / -1; }
    .hero .stat-box h3 { font-size: 1.05rem; line-height: 1.35; }
    .hero .stat-box p { font-size: .78rem; line-height: 1.45; }
    .hero-btns, .hero-actions {
        gap: 10px;
        margin-top: 26px;
        width: 100%;
    }
    .hero-btns .btn,
    .hero-actions .btn { width: 100%; }
    .projects-grid { grid-template-columns: 1fr; gap: 16px; }
    .project-card, .project-img { min-height: 460px; }
    .project-badge, .project-location { top: 18px; }
    .project-badge { font-size: .7rem; padding: 6px 11px; right: 18px; }
    .project-location { font-size: .75rem; left: 18px; }
    .project-body { padding: 22px; }
    .project-body h3 { font-size: 1.45rem; }
    .info-item { font-size: .78rem; }
    .unit-tag { font-size: .72rem; padding: 5px 10px; }
    .project-btns { gap: 8px; }
    .project-btns .btn {
        flex: 1 1 calc(50% - 4px);
        font-size: .78rem;
        min-height: 44px;
        padding: 10px 12px;
    }

    .about-text h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .features-grid { gap: 22px; grid-template-columns: 1fr; }
    .feature-box i { font-size: 1.45rem; }
    .feature-box h4 { font-size: 1.05rem; }
    .feature-box p { font-size: .88rem; }

    .cta-section { padding: 72px 20px; }
    .cta-section h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); line-height: 1.3; }
    .cta-section p { font-size: .95rem; }

    .project-hero { min-height: 560px; }
    .project-hero-content { padding-bottom: 42px; }
    .project-hero-overlay { background: linear-gradient(0deg, rgba(15,15,15,.93), rgba(15,15,15,.2)); }
    .project-kicker { font-size: .78rem; }
    .project-hero h1 {
        font-size: clamp(2.3rem, 11vw, 3.2rem);
        letter-spacing: -.02em;
        line-height: 1.12;
        margin: 6px 0 14px;
    }
    .detail-grid, .amenities-grid, .pricing-grid { grid-template-columns: 1fr; }
    .detail-grid { margin-top: 36px; }
    .detail-card { min-height: 140px; padding: 22px; }
    .detail-card i { font-size: 1.3rem; margin-bottom: 16px; }
    .detail-card span { font-size: .72rem; }
    .detail-card strong { font-size: 1rem; }
    .amenity-item { gap: 14px; min-height: 84px; padding: 18px; }
    .amenity-item i { font-size: 1.2rem; }
    .amenity-item span { font-size: .95rem; }
    .units-row,
    .project-cta .container,
    .launch-action {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
    .units-row { margin-top: 36px; padding-top: 22px; }
    .gallery-item,
    .gallery-item:first-child,
    .gallery-item:nth-child(2) {
        grid-column: 1 / -1;
        height: 280px;
    }
    .project-cta { padding: 64px 0; }
    .project-cta h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
    .launch-section { padding: 72px 0; }
    .launch-heading h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .launch-heading p { font-size: .95rem; }
    .pricing-card { padding: 22px; }
    .pricing-card h3 { font-size: 1.15rem; }
    .pricing-card p strong { font-size: 1rem; }

    .footer { padding: 64px 0 24px; }
    .footer-content { gap: 32px; grid-template-columns: 1fr 1fr; }
    .footer-about, .footer-contact { grid-column: 1 / -1; }
    .footer-about > p { font-size: .88rem; }
    .footer h4 { font-size: .92rem; margin-bottom: 14px; }
    .footer-links a, .footer-contact a { font-size: .88rem; }
    .footer-bottom { font-size: .72rem; margin-top: 40px; padding-top: 20px; }
    .floating-btns { bottom: 14px; left: 14px; }
    .floating-btn { height: 48px; width: 48px; }
}

@media (max-width: 420px) {
    .brand strong { font-size: .88rem; }
    .brand img { height: 50px; width: 50px; }
    .hero-content h1 { font-size: 2rem; }
    .project-hero h1 { font-size: 2.1rem; }
    .project-btns .btn { flex: 1 1 100%; }
    .hero-stats { grid-template-columns: 1fr; }
    .hero .stat-box:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
