:root {
    --ink: #14161b;
    --ink-2: #1e2229;
    --text: #2b2e35;
    --muted: #6d717b;
    --ivory: #faf8f4;
    --sand: #f2ede5;
    --line: #e7e1d7;
    --white: #ffffff;
    --red: #c8102e;
    --red-dark: #a00c24;
    --red-soft: #fbe9ec;
    --whatsapp: #25d366;
    --whatsapp-dark: #1da851;

    --font-display: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif;
    --font-body: 'IBM Plex Sans Arabic', 'Alexandria', sans-serif;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 10px rgba(20, 22, 27, .06);
    --shadow: 0 18px 40px -18px rgba(20, 22, 27, .25);
    --shadow-lg: 0 30px 60px -25px rgba(20, 22, 27, .35);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    padding: .8em 1.6em;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .95rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .65em 1.2em; font-size: .88rem; }
.btn-lg { padding: 1em 2em; font-size: 1rem; }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 12px 24px -12px rgba(200, 16, 46, .7); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--sand); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-text { background: none; color: var(--muted); border: 0; padding: .6em 1em; }
.btn-text:hover { color: var(--ink); transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .5em;
    font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--red);
}
.link-arrow i { transition: transform .25s var(--ease); font-size: .8em; }
.link-arrow:hover i { transform: translateX(-5px); }

.icon-btn {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--sand); color: var(--ink); font-size: 1.15rem;
    transition: background-color .25s, color .25s;
}
.icon-btn:hover { background: var(--whatsapp); color: var(--white); }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .6em;
    font-family: var(--font-display); font-size: .82rem; font-weight: 500;
    letter-spacing: .02em; color: var(--red); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: rgba(255, 255, 255, .85); }
.eyebrow-light::before { background: var(--red); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-sub { color: var(--muted); max-width: 560px; margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-tinted { background: var(--sand); }
.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .eyebrow::after { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.accent { color: var(--red); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--header-h);
    transition: background-color .35s, box-shadow .35s, height .35s;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
    --header-h: 72px;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
    flex-shrink: 0;
    background: var(--white);
    border-radius: 14px;
    padding: 4px 12px;
    box-shadow: var(--shadow-sm);
}
.brand img { height: 48px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
    position: relative;
    padding: 8px 14px;
    font-family: var(--font-display); font-size: .92rem; font-weight: 400;
    color: rgba(255, 255, 255, .88);
    border-radius: 999px;
    transition: color .25s, background-color .25s;
}
.main-nav a:not(.btn):hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.main-nav a.is-active { color: var(--white); font-weight: 500; }
.main-nav a.is-active::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 5px; height: 5px; border-radius: 50%; background: var(--red);
}
.is-scrolled .main-nav a:not(.btn) { color: var(--text); }
.is-scrolled .main-nav a:not(.btn):hover { color: var(--ink); background: var(--sand); }
.is-scrolled .main-nav a.is-active { color: var(--ink); }
.nav-mobile-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: .9rem; color: var(--white);
    transition: color .25s;
}
.header-phone i {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .35); font-size: .8rem;
}
.is-scrolled .header-phone { color: var(--ink); }
.is-scrolled .header-phone i { border-color: var(--line); color: var(--red); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.is-scrolled .nav-toggle { background: var(--sand); border-color: var(--line); }
.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    color: var(--white);
    overflow: hidden;
    padding-top: var(--header-h);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.08);
    transition: opacity 1.4s ease, transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(to top, rgba(14, 15, 19, .92) 0%, rgba(14, 15, 19, .55) 45%, rgba(14, 15, 19, .25) 100%),
        linear-gradient(to left, rgba(14, 15, 19, .55), transparent 70%);
}
.hero-content { position: relative; padding: 60px 0 48px; max-width: 760px; margin-inline-end: auto; }
.hero h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5.4vw, 4rem);
    font-weight: 700; line-height: 1.25; margin-bottom: 20px;
}
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .82); max-width: 600px; margin-bottom: 34px; }

.hero-projects {
    position: relative;
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .18);
    margin-bottom: 0;
}
.hero-project {
    position: relative;
    display: grid; grid-template-columns: auto 1fr; column-gap: 14px;
    padding: 22px 18px 26px;
    color: rgba(255, 255, 255, .6);
    transition: color .3s, background-color .3s;
}
.hero-project::before {
    content: ''; position: absolute; top: -1px; right: 0; height: 2px; width: 0;
    background: var(--red); transition: width .4s var(--ease);
}
.hero-project.is-active, .hero-project:hover { color: var(--white); }
.hero-project.is-active::before { width: 100%; transition: width 6s linear; }
.hero-project:hover { background: rgba(255, 255, 255, .05); }
.hero-project-index { grid-row: span 2; font-family: var(--font-display); font-size: .8rem; padding-top: 4px; color: var(--red); }
.hero-project-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.hero-project-loc { font-size: .85rem; opacity: .8; }

/* ---------- Stats ---------- */
.stats-bar { background: var(--ink); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 34px 12px; border-inline-start: 1px solid rgba(255, 255, 255, .08); }
.stat:first-child { border-inline-start: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1.2; }
.stat span { font-size: .9rem; color: rgba(255, 255, 255, .6); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-media { position: relative; padding-bottom: 70px; padding-inline-start: 60px; }
.about-img-main { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-img-sub {
    position: absolute; bottom: 0; left: 0;
    width: 52%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius); border: 8px solid var(--ivory); box-shadow: var(--shadow-lg);
}
.about-badge {
    position: absolute; top: 34px; right: -18px;
    background: var(--red); color: var(--white);
    padding: 18px 22px; border-radius: var(--radius);
    box-shadow: 0 20px 40px -16px rgba(200, 16, 46, .6);
    text-align: center; line-height: 1.3;
}
.about-badge strong { display: block; font-family: var(--font-display); font-size: 1.9rem; }
.about-badge span { font-size: .82rem; }
.about-text p { color: var(--muted); font-size: 1.02rem; }
.about-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; }
.about-points li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 999px;
    background: var(--white); border: 1px solid var(--line);
    font-size: .9rem; color: var(--ink);
}
.about-points i { color: var(--red); font-size: .8rem; }

/* ---------- Project cards ---------- */
.projects { background: var(--sand); }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-card-media img { transform: scale(1.06); }
.chip {
    position: absolute; top: 18px; right: 18px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
    font-family: var(--font-display); font-size: .8rem; color: var(--ink);
}
.chip i { color: var(--red); }
.project-card-body { padding: 28px 30px 26px; display: flex; flex-direction: column; flex: 1; }
.project-card-body h3 { font-size: 1.4rem; margin-bottom: 10px; }
.project-card-body h3 a:hover { color: var(--red); }
.project-card-body > p { color: var(--muted); font-size: .95rem; }
.project-facts {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px;
    margin: 6px 0 22px; padding: 18px 0; border-block: 1px solid var(--line);
}
.project-facts dt { font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.project-facts dt i { color: var(--red); margin-inline-end: 4px; }
.project-facts dd { margin: 0; font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: .92rem; line-height: 1.6; }
.project-card-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }
.gallery-item, .project-gallery-item {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--radius); background: var(--sand);
}
.gallery-item img, .project-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item::after, .project-gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20, 22, 27, .55), transparent 55%);
    opacity: 0; transition: opacity .35s;
}
.gallery-zoom {
    position: absolute; bottom: 16px; left: 16px; z-index: 1;
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--white); color: var(--ink); font-size: .85rem;
    opacity: 0; transform: translateY(8px);
    transition: opacity .35s, transform .35s var(--ease);
}
.gallery-item:hover img, .project-gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after, .project-gallery-item:hover::after,
.gallery-item:hover .gallery-zoom, .project-gallery-item:hover .gallery-zoom { opacity: 1; transform: none; }

/* ---------- Brochure ---------- */
.brochure { padding: 0 0 clamp(70px, 9vw, 120px); }
.brochure-card {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    padding: clamp(36px, 5vw, 64px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 10% 120%, rgba(200, 16, 46, .45), transparent 45%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .06), transparent 40%),
        var(--ink);
    color: rgba(255, 255, 255, .78);
}
.brochure-card::after {
    content: ''; position: absolute; left: -60px; top: -60px;
    width: 220px; height: 220px;
    border: 2px solid rgba(255, 255, 255, .06); border-radius: 50%;
}
.brochure-text { max-width: 620px; position: relative; z-index: 1; }
.brochure-text h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.brochure-text p:last-child { margin-bottom: 0; }
.brochure-text strong { color: var(--white); }
.brochure-actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }

/* ---------- Project page ---------- */
.project-hero {
    position: relative;
    min-height: 82vh;
    display: flex; align-items: flex-end;
    background-size: cover; background-position: center;
    color: var(--white);
    padding: calc(var(--header-h) + 60px) 0 90px;
}
.project-hero-content { position: relative; max-width: 780px; margin-inline-end: auto; }
.project-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; margin-bottom: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: .6rem; }
.breadcrumb span { color: var(--white); }

.facts-bar { position: relative; z-index: 2; margin-top: -50px; }
.facts-grid {
    display: grid; grid-template-columns: 1fr 1fr 1.5fr;
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.fact { display: flex; align-items: center; gap: 16px; padding: 26px 28px; border-inline-start: 1px solid var(--line); }
.fact:first-child { border-inline-start: 0; }
.fact-icon {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px;
    display: grid; place-items: center;
    background: var(--red-soft); color: var(--red); font-size: 1.1rem;
}
.fact-label { display: block; font-size: .8rem; color: var(--muted); }
.fact strong { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; line-height: 1.5; }

.overview-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.overview-text p { color: var(--muted); font-size: 1.05rem; }
.payment-card {
    display: flex; gap: 18px; align-items: flex-start;
    margin-top: 30px; padding: 24px;
    background: var(--ink); color: rgba(255, 255, 255, .78);
    border-radius: var(--radius);
}
.payment-card h4 { color: var(--white); margin-bottom: 4px; font-size: 1.05rem; }
.payment-card p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .98rem; }
.payment-icon {
    flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px;
    display: grid; place-items: center; background: var(--red); color: var(--white); font-size: 1.15rem;
}

.project-gallery {
    display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 14px;
}
.project-gallery-item:first-child { grid-column: span 2; grid-row: span 2; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.service {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px;
    background: var(--white); border-radius: var(--radius); border: 1px solid transparent;
    font-family: var(--font-display); font-size: .93rem; color: var(--ink); line-height: 1.6;
    transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.service:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; background: var(--red-soft); color: var(--red);
}

.units-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.unit {
    position: relative; overflow: hidden;
    padding: 38px 32px 32px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.unit::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 4px;
    background: var(--red); transform: scaleX(0); transform-origin: right;
    transition: transform .5s var(--ease);
}
.unit:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.unit:hover::before { transform: scaleX(1); }
.unit-icon {
    width: 64px; height: 64px; border-radius: 20px;
    display: grid; place-items: center;
    background: var(--ink); color: var(--white); font-size: 1.5rem; margin-bottom: 22px;
}
.unit h3 { font-size: 1.3rem; margin-bottom: 2px; direction: ltr; text-align: right; }
.unit p { color: var(--muted); margin-bottom: 18px; }

.cta-band {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, .12), transparent 40%),
        linear-gradient(120deg, var(--red-dark), var(--red));
    color: rgba(255, 255, 255, .85);
    padding: 64px 0;
}
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.cta-band p { margin: 0; }

.other-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.other-project {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 4 / 3.2; border-radius: var(--radius-lg);
}
.other-project img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.other-project::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(14, 15, 19, .85), transparent 60%);
}
.other-project:hover img { transform: scale(1.06); }
.other-project-info { position: absolute; inset: auto 0 0; z-index: 1; padding: 24px 26px; color: rgba(255, 255, 255, .8); }
.other-project-info span { font-size: .85rem; }
.other-project-info i { color: var(--red); }
.other-project-info h3 { color: var(--white); font-size: 1.25rem; margin: 2px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding: 80px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer-logo { display: inline-block; background: var(--white); border-radius: 16px; padding: 6px 16px; margin-bottom: 20px; }
.footer-logo img { height: 64px; width: auto; }
.footer-brand p { max-width: 360px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { transition: color .25s; }
.footer-col a:hover { color: var(--white); }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--white); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Floating contact ---------- */
.floating-contact { position: fixed; bottom: 24px; left: 24px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    color: var(--white); font-size: 1.35rem;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .4);
    transition: transform .3s var(--ease);
}
.float-btn:hover { transform: scale(1.08); }
.float-whatsapp { background: var(--whatsapp); font-size: 1.6rem; position: relative; }
.float-whatsapp::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: var(--whatsapp); z-index: -1;
    animation: pulse 2.4s ease-out infinite;
}
.float-phone { background: var(--red); }
@keyframes pulse {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Lightbox & dialog ---------- */
.lightbox, .dialog {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.lightbox { background: rgba(10, 11, 14, .94); }
.dialog { background: rgba(10, 11, 14, .6); backdrop-filter: blur(6px); padding: 20px; }
.lightbox.is-open, .dialog.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { margin: 0; max-width: min(1100px, 88vw); text-align: center; }
.lightbox-figure img { max-height: 80vh; margin: 0 auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-figure figcaption { color: rgba(255, 255, 255, .7); margin-top: 14px; font-size: .9rem; }
.lightbox-close, .lightbox-nav {
    position: absolute;
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: var(--white); border: 0; font-size: 1.1rem;
    transition: background-color .25s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--red); }
.lightbox-close { top: 24px; left: 24px; }
.lightbox-prev { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { left: 24px; top: 50%; transform: translateY(-50%); }

.dialog-box {
    width: min(440px, 100%);
    background: var(--white); border-radius: var(--radius-lg);
    padding: 40px 34px 30px; text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(16px) scale(.97); transition: transform .35s var(--ease);
}
.dialog.is-open .dialog-box { transform: none; }
.dialog-box h3 { font-size: 1.25rem; margin-bottom: 8px; }
.dialog-box p { color: var(--muted); }
.dialog-box .btn-whatsapp { width: 100%; margin-bottom: 6px; }
.dialog-icon {
    width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--red-soft); color: var(--red); font-size: 1.6rem;
}
.dialog-icon-warn { background: #fff4e0; color: #d48806; }
.progress { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; margin: 22px 0 14px; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--red-dark), var(--red)); border-radius: inherit; }
.dialog.is-loading .progress-fill { animation: fill 2s ease-in-out forwards; }
@keyframes fill { to { width: 85%; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .header-phone span { display: none; }
    .header-phone i { width: 40px; height: 40px; }
    .main-nav a:not(.btn) { padding: 8px 10px; }
}

@media (max-width: 900px) {
    :root { --header-h: 72px; }
    .nav-toggle { display: flex; }
    .header-cta { display: none; }
    /* backdrop-filter would turn the header into the containing block of the fixed menu */
    .site-header.is-scrolled { backdrop-filter: none; background: var(--white); }
    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(320px, 84vw);
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: calc(var(--header-h) + 20px) 22px 30px;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        z-index: -1;
    }
    .nav-open .main-nav { transform: none; }
    .main-nav a:not(.btn), .is-scrolled .main-nav a:not(.btn) { color: var(--text); padding: 14px 16px; border-radius: 12px; font-size: 1rem; }
    .main-nav a.is-active { background: var(--sand); color: var(--ink) !important; }
    .main-nav a.is-active::after { left: 18px; right: auto; top: 50%; bottom: auto; transform: translateY(-50%); }
    .nav-mobile-cta { display: inline-flex; margin-top: 16px; }
    .nav-open .site-header .header-phone { color: var(--ink); }
    .nav-open .nav-toggle { background: var(--sand); border-color: var(--line); }
    .nav-open .nav-toggle span { background: var(--ink); }
    body.nav-open::after {
        content: ''; position: fixed; inset: 0; z-index: 99;
        background: rgba(10, 11, 14, .45);
    }

    .hero-projects { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-inline-start: 0; }
    .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .08); }

    .about-grid, .overview-grid { grid-template-columns: 1fr; }
    .about-media { max-width: 560px; margin-inline: auto; width: 100%; }
    .projects-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .gallery-item:nth-child(6) { grid-column: auto; }
    .brochure-card { flex-direction: column; align-items: flex-start; }
    .brochure-actions { flex-direction: row; flex-wrap: wrap; }

    .facts-grid { grid-template-columns: 1fr; }
    .fact { border-inline-start: 0; border-top: 1px solid var(--line); }
    .fact:first-child { border-top: 0; }
    .units-grid, .other-projects { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .container { width: calc(100% - 36px); }
    body { font-size: 15px; }
    .brand img { height: 40px; }
    .header-actions { gap: 10px; }
    .hero-content { padding: 40px 0 30px; }
    .btn-row .btn { flex: 1 1 100%; }
    .hero-project { padding: 16px 10px 18px; }
    .hero-project-name { font-size: .98rem; }
    .about-media { padding-inline-start: 0; padding-bottom: 50px; }
    .about-badge { right: 12px; top: 12px; padding: 12px 16px; }
    .about-badge strong { font-size: 1.5rem; }
    .project-card-body { padding: 22px 20px; }
    .project-facts { grid-template-columns: 1fr; gap: 12px; }
    .gallery-grid { grid-auto-rows: 140px; gap: 10px; }
    .project-gallery { grid-auto-rows: 130px; gap: 10px; }
    .units-grid, .other-projects { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .service { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; font-size: .86rem; }
    .project-hero { min-height: 88vh; padding-bottom: 80px; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .floating-contact { bottom: 16px; left: 16px; }
    .float-btn { width: 50px; height: 50px; }
    .lightbox-nav { top: auto; bottom: 24px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
