/* ==========================================================================
   STM — Luxury theme
   ========================================================================== */

:root {
    --navy: #0b1726;
    --navy-2: #12233a;
    --navy-3: #1b3150;
    --gold: #c6a467;
    --gold-2: #e2cc9c;
    --gold-3: #a8864a;
    --cream: #f8f5ef;
    --sand: #efe8dc;
    --ink: #161b22;
    --text: #3b4350;
    --muted: #7b828e;
    --line: rgba(198, 164, 103, .28);
    --white: #fff;
    --wa: #25d366;

    --f-head: 'Cormorant Garamond', 'Times New Roman', serif;
    --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --header-h: 86px;
    --radius: 4px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --shadow: 0 30px 60px -30px rgba(11, 23, 38, .45);
}

.lang-ar {
    --f-head: 'El Messiri', 'Tajawal', serif;
    --f-body: 'Tajawal', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 60px); }

body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.lang-ar body, body.lang-ar { font-size: 17px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0 0 1.1em; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .icon-arrow, [dir="rtl"] .icon-chev-l, [dir="rtl"] .icon-chev-r { transform: scaleX(-1); }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; }

.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section.soft { background: var(--sand); }
.section.dark { background: var(--navy); color: rgba(255, 255, 255, .72); }
.section.dark h2, .section.dark h3 { color: var(--white); }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold-3);
    margin-bottom: 22px;
}
.lang-ar .kicker { letter-spacing: 0; font-size: 15px; font-weight: 500; }
.kicker::before { content: ''; width: 42px; height: 1px; background: currentColor; }
.center .kicker::after, .section-head.center .kicker::after { content: ''; width: 42px; height: 1px; background: currentColor; }
.dark .kicker, .hero .kicker, .page-hero .kicker, .project-hero .kicker, .cta-band .kicker { color: var(--gold-2); }

.section-title { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.01em; margin-bottom: 26px; }
.lang-ar .section-title { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.35; letter-spacing: 0; }
.section-sub { font-size: 18px; color: var(--muted); max-width: 640px; margin-inline: auto; }
.dark .section-sub { color: rgba(255, 255, 255, .6); }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.lead { font-size: 19px; color: var(--ink); opacity: .82; }
.dark .lead { color: rgba(255, 255, 255, .8); }
.note { font-size: 14px; color: var(--muted); margin-top: 32px; }

/* Buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.lang-ar .btn { letter-spacing: 0; font-size: 16px; font-weight: 500; }
.btn:hover { transform: translateY(-2px); }
.btn .icon-arrow { transition: transform .4s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .icon-arrow { transform: scaleX(-1) translateX(4px); }

.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: var(--navy); box-shadow: 0 14px 30px -14px rgba(198, 164, 103, .8); }
.btn-gold:hover { box-shadow: 0 20px 40px -14px rgba(198, 164, 103, .95); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-3); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: var(--white); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 14px 30px -14px rgba(37, 211, 102, .8); }
.btn-whatsapp:hover { background: #1ebe5a; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gold);
    transition: gap .4s var(--ease), color .3s;
}
.link-arrow:hover { gap: 18px; color: var(--gold-3); }

/* Preloader ------------------------------------------------------------- */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--navy);
    display: grid; place-items: center;
    transition: opacity .8s var(--ease), visibility .8s;
}
.preloader-inner { display: grid; justify-items: center; gap: 22px; }
.preloader-logo { width: 110px; color: var(--gold); animation: pre-pulse 1.6s var(--ease) infinite alternate; }
.preloader-line { width: 140px; height: 1px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; }
.preloader-line::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: translateX(-100%); animation: pre-line 1.4s var(--ease) infinite; }
body.is-loaded .preloader, html:not(.js) .preloader { opacity: 0; visibility: hidden; }
@keyframes pre-pulse { from { opacity: .45; } to { opacity: 1; } }
@keyframes pre-line { to { transform: translateX(100%); } }

/* Header ---------------------------------------------------------------- */
.site-header {
    position: fixed; inset-inline: 0; top: 0; z-index: 100;
    height: var(--header-h);
    transition: background .5s var(--ease), height .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.site-header.is-scrolled {
    --header-h: 72px;
    background: rgba(11, 23, 38, .9);
    backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 1px 0 rgba(198, 164, 103, .18);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--white); }
.logo-mark { width: 84px; height: auto; color: var(--white); }
.brand-tag {
    font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2);
    padding-inline-start: 14px; border-inline-start: 1px solid rgba(255, 255, 255, .25); line-height: 1.2;
}
.lang-ar .brand-tag { letter-spacing: 0; font-size: 14px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
    display: block; padding: 10px 18px; color: rgba(255, 255, 255, .82);
    font-size: 14px; font-weight: 500; letter-spacing: .06em; position: relative; transition: color .3s;
}
.lang-ar .main-nav a { font-size: 16px; letter-spacing: 0; }
.main-nav a::after {
    content: ''; position: absolute; inset-inline: 18px; bottom: 4px; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .5s var(--ease);
}
[dir="rtl"] .main-nav a::after { --origin: right; }
.main-nav a:hover, .main-nav a.is-active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch, .header-call {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 16px; border-radius: 999px;
    font-size: 14px; font-weight: 600; color: var(--white);
    border: 1px solid rgba(255, 255, 255, .25); transition: all .35s var(--ease);
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold-2); }
.header-call { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.header-call:hover { background: var(--gold-2); }
.header-call span { direction: ltr; }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.nav-toggle span { position: absolute; inset-inline-start: 12px; width: 18px; height: 1.5px; background: var(--white); transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; width: 12px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; width: 18px; transform: rotate(-45deg); }

/* Hero ------------------------------------------------------------------ */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--navy);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

.hero-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(11, 23, 38, .7) 0%, rgba(11, 23, 38, .15) 30%, rgba(11, 23, 38, .25) 60%, rgba(11, 23, 38, .9) 100%),
        linear-gradient(90deg, rgba(11, 23, 38, .55) 0%, rgba(11, 23, 38, 0) 65%);
}
[dir="rtl"] .hero-overlay {
    background:
        linear-gradient(180deg, rgba(11, 23, 38, .7) 0%, rgba(11, 23, 38, .15) 30%, rgba(11, 23, 38, .25) 60%, rgba(11, 23, 38, .9) 100%),
        linear-gradient(270deg, rgba(11, 23, 38, .55) 0%, rgba(11, 23, 38, 0) 65%);
}

.hero-content { position: relative; z-index: 2; padding-top: var(--header-h); padding-bottom: 140px; }
.hero-title {
    font-size: clamp(48px, 8.4vw, 120px); color: var(--white); font-weight: 400;
    line-height: 1; letter-spacing: -.02em; max-width: 11ch; margin-bottom: 30px;
}
.lang-ar .hero-title { font-size: clamp(48px, 7.5vw, 104px); line-height: 1.2; letter-spacing: 0; }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, .82); max-width: 560px; margin-bottom: 42px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-footer {
    position: absolute; inset-inline: 0; bottom: 42px; z-index: 3;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
}
.hero-caption { position: relative; min-height: 56px; min-width: 280px; }
.hero-caption-item {
    position: absolute; inset-inline-start: 0; bottom: 0; display: grid; gap: 2px;
    opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease);
    pointer-events: none; padding-inline-start: 18px; border-inline-start: 1px solid var(--gold);
}
.hero-caption-item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hc-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.lang-ar .hc-label { letter-spacing: 0; font-size: 14px; }
.hc-name { font-family: var(--f-head); font-size: 26px; color: var(--white); }

.scroll-cue {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 3;
    width: 26px; height: 42px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 20px;
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 2px; height: 8px; margin-left: -1px; background: var(--gold-2); border-radius: 2px; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Intro ----------------------------------------------------------------- */
.intro-grid, .story-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro-media, .story-media { position: relative; }
.frame { position: relative; }
.frame::before {
    content: ''; position: absolute; inset: -22px; inset-inline-start: 22px; inset-block-end: 22px;
    border: 1px solid var(--gold); z-index: 0;
}
.frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.2); }
.intro-badge {
    position: absolute; z-index: 2; inset-inline-end: -36px; bottom: 48px;
    background: var(--navy); color: var(--gold-2); padding: 28px 30px; display: grid; gap: 10px; box-shadow: var(--shadow);
}
.intro-badge .logo-mark { width: 70px; color: var(--gold); }
.intro-badge span { font-family: var(--f-head); font-size: 20px; color: var(--white); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.stat { padding: 26px 18px 0; border-inline-end: 1px solid var(--line); }
.stat:first-child { padding-inline-start: 0; }
.stat:last-child { border: 0; }
.stat strong { display: block; font-family: var(--f-head); font-size: clamp(34px, 3.4vw, 50px); font-weight: 500; color: var(--ink); line-height: 1; margin-bottom: 10px; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }

/* Project cards --------------------------------------------------------- */
.projects-showcase { background: var(--white); }
.project-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-cards.two { grid-template-columns: repeat(2, 1fr); }
.project-card {
    position: relative; display: block; min-height: 640px; overflow: hidden; color: var(--white);
    background: var(--navy); isolation: isolate;
}
.project-cards.two .project-card { min-height: 460px; }
.pc-media { position: absolute; inset: 0; z-index: -1; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease-out), filter 1s; }
.pc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 23, 38, 0) 25%, rgba(11, 23, 38, .55) 55%, rgba(11, 23, 38, .96) 100%); transition: opacity .8s; }
.project-card:hover .pc-media img { transform: scale(1.12); }
.pc-index { position: absolute; top: 28px; inset-inline-start: 30px; font-family: var(--f-head); font-size: 20px; color: var(--gold-2); }
.pc-index::after { content: ''; display: inline-block; width: 40px; height: 1px; background: currentColor; vertical-align: middle; margin-inline-start: 14px; }
.pc-body { position: absolute; inset-inline: 0; bottom: 0; padding: 34px 30px; }
.pc-loc { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gold-2); margin-bottom: 14px; letter-spacing: .04em; }
.pc-body h3 { color: var(--white); font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 14px; }
.lang-ar .pc-body h3 { line-height: 1.4; }
.pc-body p {
    color: rgba(255, 255, 255, .75); font-size: 15px;
    max-height: 0; opacity: 0; overflow: hidden; margin: 0;
    transition: max-height .8s var(--ease), opacity .6s var(--ease), margin .6s var(--ease);
}
.project-card:hover .pc-body p { max-height: 140px; opacity: 1; margin-bottom: 18px; }
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.pc-price { font-family: var(--f-head); font-size: 22px; color: var(--white); }
.pc-price small { display: block; font-family: var(--f-body); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.lang-ar .pc-price small { letter-spacing: 0; font-size: 13px; }
.pc-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gold-2); white-space: nowrap; }
.project-card::after {
    content: ''; position: absolute; inset: 14px; border: 1px solid rgba(226, 204, 156, .0); pointer-events: none;
    transition: border-color .8s var(--ease), inset .8s var(--ease);
}
.project-card:hover::after { inset: 18px; border-color: rgba(226, 204, 156, .45); }

/* New launch highlight -------------------------------------------------- */
.launch-badge {
    position: relative; display: inline-flex; align-items: center; gap: 9px; overflow: hidden;
    padding: 8px 16px; border-radius: 40px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--navy); background: linear-gradient(135deg, #f1dfb4, var(--gold) 55%, #b48e4c);
    box-shadow: 0 8px 24px rgba(198, 164, 103, .35);
}
.lang-ar .launch-badge { letter-spacing: 0; font-size: 14px; }
.launch-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); flex: none; animation: launch-dot 1.6s ease-in-out infinite; }
.launch-badge::after {
    content: ''; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    animation: launch-shine 3.2s ease-in-out infinite;
}
@keyframes launch-dot { 50% { transform: scale(.55); opacity: .5; } }
@keyframes launch-shine { 60%, 100% { transform: translateX(120%); } }

.launch-pill {
    display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; padding: 6px 18px 6px 6px;
    border: 1px solid rgba(226, 204, 156, .45); border-radius: 50px; background: rgba(11, 23, 38, .45);
    color: var(--white); font-size: 15px; transition: background .4s var(--ease), border-color .4s var(--ease);
}
[dir="rtl"] .launch-pill { padding: 6px 6px 6px 18px; }
.launch-pill svg { width: 16px; height: 16px; color: var(--gold-2); transition: transform .4s var(--ease); }
[dir="rtl"] .launch-pill svg { transform: scaleX(-1); }
.launch-pill:hover { background: rgba(11, 23, 38, .7); border-color: var(--gold-2); }

.pc-badge, .pr-badge { position: absolute; top: 24px; inset-inline-end: 24px; z-index: 2; }
.project-card.is-featured::after { border-color: rgba(226, 204, 156, .55); }
.project-card.is-featured .pc-body p { max-height: 140px; opacity: 1; margin-bottom: 18px; }
.project-card.is-featured .pc-body h3 { font-size: clamp(32px, 3.4vw, 50px); }
.project-cards.has-featured { grid-template-columns: 1.45fr 1fr; grid-auto-rows: minmax(330px, auto); }
.project-cards.has-featured .project-card { min-height: 330px; }
.project-cards.has-featured .is-featured { grid-row: span 2; min-height: 690px; }
.project-row.is-featured .pr-media { box-shadow: 0 0 0 1px rgba(198, 164, 103, .6), 0 30px 70px rgba(198, 164, 103, .28); }
.new-tag { font-style: normal; font-size: 11px; font-weight: 700; color: var(--navy); background: var(--gold); padding: 2px 8px; border-radius: 20px; margin-inline-start: 6px; vertical-align: middle; }

/* Marquee --------------------------------------------------------------- */
/* Why ------------------------------------------------------------------- */
.why { overflow: hidden; }
.why-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .12; filter: grayscale(1); }
.why .container { position: relative; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(198, 164, 103, .2); border-inline-start: 1px solid rgba(198, 164, 103, .2); }
.why-item { padding: 46px 40px; border-inline-end: 1px solid rgba(198, 164, 103, .2); border-bottom: 1px solid rgba(198, 164, 103, .2); transition: background .6s var(--ease); }
.why-item:hover { background: rgba(198, 164, 103, .06); }
.why-icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); margin-bottom: 26px; transition: background .5s, color .5s; }
.why-icon .icon { width: 26px; height: 26px; }
.why-item:hover .why-icon { background: var(--gold); color: var(--navy); }
.why-item h3 { font-size: 26px; margin-bottom: 10px; }
.why-item p { margin: 0; font-size: 15px; }

/* Facilities management ------------------------------------------------- */
.fm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.fm-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.fm-list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.fm-list .icon { color: var(--gold-3); width: 22px; height: 22px; }
.fm-media { position: relative; min-height: 560px; }
.fm-img-1 { position: absolute; inset-inline-end: 0; top: 0; width: 78%; height: 78%; object-fit: cover; box-shadow: var(--shadow); }
.fm-img-2 { position: absolute; inset-inline-start: 0; bottom: 0; width: 46%; height: 52%; object-fit: cover; border: 10px solid var(--cream); box-shadow: var(--shadow); }
.soft .fm-img-2 { border-color: var(--sand); }

/* CTA band -------------------------------------------------------------- */
.cta-band { position: relative; padding: clamp(110px, 14vw, 180px) 0; overflow: hidden; color: var(--white); text-align: center; background: var(--navy); }
.cta-bg { position: absolute; inset: -15% 0; background-size: cover; background-position: center; will-change: transform; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(11, 23, 38, .65), rgba(11, 23, 38, .9)); }
.cta-inner { position: relative; z-index: 2; max-width: 820px; }
.cta-inner .kicker::after { content: ''; width: 42px; height: 1px; background: currentColor; }
.cta-band h2 { color: var(--white); }
.cta-band p { font-size: 19px; color: rgba(255, 255, 255, .8); margin-bottom: 40px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Footer ---------------------------------------------------------------- */
.site-footer { position: relative; background: #07111d; color: rgba(255, 255, 255, .6); padding: 100px 0 36px; overflow: hidden; }
.footer-glow { position: absolute; width: 600px; height: 600px; top: -300px; inset-inline-end: -200px; background: radial-gradient(circle, rgba(198, 164, 103, .14), transparent 65%); }
.footer-top { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.5fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand .logo-mark { width: 100px; color: var(--gold); margin-bottom: 26px; }
.footer-brand p { max-width: 340px; font-size: 15px; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .15); transition: all .35s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.footer-col h4 { color: var(--white); font-size: 20px; margin-bottom: 24px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { transition: color .3s; font-size: 15px; }
.footer-col a:hover { color: var(--gold-2); }
.footer-contact a { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 5px; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-top: 30px; font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-disclaimer { opacity: .6; }
.footer-marketer { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; font-size: 12.5px; opacity: .55; }

/* Floating contact ------------------------------------------------------ */
.floating-contact { position: fixed; z-index: 90; inset-inline-end: 24px; bottom: 24px; display: grid; gap: 14px; }
.fab {
    position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .4s var(--ease), box-shadow .4s;
}
.fab .icon { width: 28px; height: 28px; position: relative; z-index: 1; }
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab-whatsapp { background: var(--wa); }
.fab-phone { background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-3)); color: var(--navy); }
.fab-phone .icon { width: 24px; height: 24px; animation: ring 3.5s ease-in-out infinite; }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-16deg); } 90% { transform: rotate(14deg); } 92% { transform: rotate(-10deg); } 94% { transform: rotate(8deg); } }
.fab-pulse, .fab-pulse::after { position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: pulse 2.4s var(--ease) infinite; }
.fab-pulse::after { content: ''; animation-delay: 1.2s; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.75); opacity: 0; } }
.fab-label {
    position: absolute; inset-inline-end: calc(100% + 14px); top: 50%; transform: translate(10px, -50%);
    white-space: nowrap; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600;
    padding: 9px 16px; border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3);
    opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
}
[dir="rtl"] .fab-label { transform: translate(-10px, -50%); }
.fab:hover .fab-label { opacity: 1; transform: translate(0, -50%); }

.to-top {
    position: fixed; z-index: 90; inset-inline-start: 24px; bottom: 24px; width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; background: var(--navy); color: var(--gold-2);
    opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .4s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top > .icon { width: 20px; height: 20px; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 138.2; stroke-dashoffset: var(--progress, 138.2); transition: stroke-dashoffset .15s linear; }

/* Lightbox -------------------------------------------------------------- */
.lightbox {
    position: fixed; inset: 0; z-index: 1000; background: rgba(7, 17, 29, .96);
    display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-stage { margin: 0; max-width: 92vw; max-height: 86vh; display: grid; gap: 14px; justify-items: center; }
.lb-stage img { max-width: 92vw; max-height: 80vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: scale(.96); transition: transform .5s var(--ease), opacity .3s; }
.lightbox.is-open .lb-stage img { transform: none; }
.lb-stage figcaption { color: rgba(255, 255, 255, .75); font-size: 15px; }
.lb-close, .lb-prev, .lb-next {
    position: absolute; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    color: var(--white); border: 1px solid rgba(255, 255, 255, .2); transition: all .3s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.lb-close { top: 24px; inset-inline-end: 24px; }
.lb-prev { inset-inline-start: 24px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 24px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; color: var(--gold-2); font-size: 14px; letter-spacing: .2em; direction: ltr; }

/* Page hero ------------------------------------------------------------- */
.page-hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--navy); }
.page-hero-bg, .project-hero-bg { position: absolute; inset: -12% 0; background-size: cover; background-position: center; will-change: transform; }
.page-hero-content { position: relative; z-index: 2; padding: calc(var(--header-h) + 80px) 0 90px; }
.page-title { font-size: clamp(44px, 7vw, 100px); color: var(--white); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; margin-bottom: 24px; }
.lang-ar .page-title { line-height: 1.3; letter-spacing: 0; font-size: clamp(40px, 6vw, 84px); }

/* Projects list --------------------------------------------------------- */
.project-rows .container { display: grid; gap: clamp(80px, 10vw, 140px); }
.project-row { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.project-row.is-flipped .pr-media { order: 2; }
.pr-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; display: block; box-shadow: var(--shadow); }
.pr-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.pr-media:hover img { transform: scale(1.06); }
.pr-index { position: absolute; top: 24px; inset-inline-start: 24px; width: 64px; height: 64px; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font-family: var(--f-head); font-size: 22px; }
.pr-body .pc-loc { color: var(--gold-3); }
.pr-facts { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.pr-facts li { padding: 20px 0; display: grid; gap: 4px; }
.pr-facts li + li { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.pr-facts strong { font-family: var(--f-head); font-size: 34px; font-weight: 500; color: var(--ink); line-height: 1; }
.pr-facts span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.pr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.tag { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); background: rgba(255, 255, 255, .6); }
.pr-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pr-foot .pc-price { color: var(--ink); font-size: 28px; }
.pr-foot .pc-price small { color: var(--muted); }

/* Project hero ---------------------------------------------------------- */
.project-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); overflow: hidden; background: var(--navy); }
.project-hero-content { position: relative; z-index: 2; padding: calc(var(--header-h) + 60px) 0 60px; }
.crumb { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 28px; transition: color .3s; }
.crumb .icon { transform: scaleX(-1); }
[dir="rtl"] .crumb .icon { transform: none; }
.crumb:hover { color: var(--gold-2); }
.project-hero-bar { position: relative; z-index: 2; background: rgba(11, 23, 38, .55); backdrop-filter: blur(16px); border-top: 1px solid rgba(198, 164, 103, .25); }
.phb-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.phb-item { padding: 26px 26px; border-inline-end: 1px solid rgba(255, 255, 255, .1); }
.phb-item:first-child { padding-inline-start: 0; }
.phb-item:last-child { border: 0; }
.phb-item small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 6px; }
.lang-ar .phb-item small { letter-spacing: 0; font-size: 14px; }
.phb-item strong { font-family: var(--f-head); font-size: 24px; font-weight: 500; color: var(--white); }

/* Sub navigation -------------------------------------------------------- */
.subnav { position: sticky; top: 72px; z-index: 50; background: rgba(248, 245, 239, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; height: 62px; }
.subnav-title { font-family: var(--f-head); font-size: 20px; color: var(--ink); white-space: nowrap; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 8px 14px; font-size: 14px; color: var(--muted); white-space: nowrap; border-radius: 999px; transition: all .3s; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { background: var(--navy); color: var(--gold-2); }

/* Overview -------------------------------------------------------------- */
.overview-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fact { background: var(--cream); padding: 40px 30px; transition: background .5s; }
.fact:hover { background: var(--white); }
.fact strong { display: block; font-family: var(--f-head); font-size: clamp(40px, 4.4vw, 64px); font-weight: 500; color: var(--ink); line-height: 1; margin-bottom: 12px; }
.fact span { font-size: 14px; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 80px; }
.badge-card { display: flex; gap: 20px; align-items: flex-start; padding: 30px; background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.badge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.badge-icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold-2); }
.badge-icon .icon { width: 24px; height: 24px; }
.badge-card small { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 4px; }
.lang-ar .badge-card small { letter-spacing: 0; font-size: 14px; }
.badge-card strong { display: block; font-family: var(--f-head); font-size: 26px; font-weight: 500; color: var(--ink); line-height: 1.2; }
.badge-card span { font-size: 14px; color: var(--muted); }

/* Prices ---------------------------------------------------------------- */
.price-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 26px; }
.price-group { background: var(--navy-2); border: 1px solid rgba(198, 164, 103, .22); padding: 36px; position: relative; overflow: hidden; }
.price-group::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.pg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pg-head h3 { font-size: 30px; }
.pg-count { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-2); font-size: 14px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th { text-align: start; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); padding: 12px 0; border-bottom: 1px solid rgba(198, 164, 103, .3); }
.lang-ar .price-table th { letter-spacing: 0; font-size: 14px; }
.price-table th:last-child, .price-table td:last-child { text-align: end; }
.price-table td { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .75); }
.price-table td strong { color: var(--white); font-size: 18px; font-weight: 600; }
.price-table tr { transition: background .3s; }
.price-table tbody tr:hover td { color: var(--white); }
.pt-price { font-family: var(--f-head); font-size: 22px; color: var(--gold-2) !important; }
.prices .btn { margin-top: 10px; }

/* Amenities ------------------------------------------------------------- */
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.amenity { display: flex; align-items: center; gap: 18px; padding: 24px 22px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 500; transition: all .5s var(--ease); }
.amenity:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(11, 23, 38, .35); }
.amenity-icon { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--gold-3); transition: all .5s; }
.amenity-icon .icon { width: 24px; height: 24px; }
.amenity:hover .amenity-icon { background: var(--navy); color: var(--gold-2); }

/* Location -------------------------------------------------------------- */
.location-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.distances { list-style: none; padding: 0; margin: 34px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.distances li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); }
.distances strong { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font-family: var(--f-head); font-size: 22px; font-weight: 500; }
.distances span { display: grid; font-size: 15px; color: var(--ink); line-height: 1.35; }
.distances small { font-size: 12px; color: var(--muted); }
.address { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.address .icon { color: var(--gold-3); margin-top: 6px; }
.location-map { display: block; overflow: hidden; box-shadow: var(--shadow); border: 10px solid var(--white); }
.location-map img { width: 100%; transition: transform 1.2s var(--ease-out); }
.location-map:hover img { transform: scale(1.04); }

/* Master plan ----------------------------------------------------------- */
.masterplan { background: var(--white); }
.masterplan-wrap { display: grid; gap: 26px; }
.masterplan-wrap.has-extra { grid-template-columns: 1fr 1fr; }
.masterplan-img { display: block; overflow: hidden; background: var(--sand); padding: clamp(14px, 3vw, 40px); border: 1px solid var(--line); }
.masterplan-img img { width: 100%; max-height: 760px; object-fit: contain; margin-inline: auto; transition: transform 1.2s var(--ease-out); }
.masterplan-img:hover img { transform: scale(1.03); }

/* Tabs / floor plans ---------------------------------------------------- */
.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.tab { padding: 12px 26px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--ink); transition: all .35s var(--ease); }
.lang-ar .tab { letter-spacing: 0; font-size: 16px; }
.tab:hover { border-color: var(--gold); }
.tab.is-active { background: var(--navy); border-color: var(--navy); color: var(--gold-2); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade-up .7s var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.fp-desc { text-align: center; color: var(--muted); margin-bottom: 30px; }
.fp-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fp-images.fp-count-3 { grid-template-columns: repeat(3, 1fr); }
.fp-images.fp-count-4 { grid-template-columns: repeat(2, 1fr); }
.fp-item { display: grid; gap: 14px; background: var(--white); padding: 24px; border: 1px solid var(--line); transition: box-shadow .5s, transform .5s var(--ease); }
.fp-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.fp-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.fp-item span { font-family: var(--f-head); font-size: 20px; color: var(--ink); text-align: center; }

/* Gallery --------------------------------------------------------------- */
.masonry { columns: 3 300px; column-gap: 18px; }
.masonry-item { display: block; margin-bottom: 18px; overflow: hidden; break-inside: avoid; position: relative; }
.masonry-item img { width: 100%; transition: transform 1.2s var(--ease-out), filter .6s; }
.masonry-item::after { content: ''; position: absolute; inset: 0; background: rgba(11, 23, 38, .35); opacity: 0; transition: opacity .5s; }
.masonry-item::before {
    content: '+'; position: absolute; z-index: 1; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
    border-radius: 50%; border: 1px solid var(--white); color: var(--white); display: grid; place-items: center; font-size: 26px; font-weight: 300;
    opacity: 0; transform: scale(.7); transition: all .5s var(--ease);
}
.masonry-item:hover img { transform: scale(1.06); }
.masonry-item:hover::after, .masonry-item:hover::before { opacity: 1; transform: none; }

.other-projects { background: var(--white); padding-top: 100px; }
.other-projects .section-head { margin-bottom: 40px; }

/* About ----------------------------------------------------------------- */
.story-text p:not(.lead) { color: var(--text); }
.sector-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.sector { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 36px 14px; border: 1px solid rgba(198, 164, 103, .22); transition: all .5s var(--ease); color: var(--white); }
.sector .icon { width: 36px; height: 36px; color: var(--gold-2); }
.sector:hover { background: rgba(198, 164, 103, .08); transform: translateY(-4px); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv-card { position: relative; padding: clamp(36px, 5vw, 64px); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.mv-num { position: absolute; top: 10px; inset-inline-end: 26px; font-family: var(--f-head); font-size: 120px; line-height: 1; color: rgba(198, 164, 103, .14); }
.mv-card h3 { font-size: 36px; margin-bottom: 18px; position: relative; }
.mv-card p { margin: 0; font-size: 17px; position: relative; }
.brands .container { display: grid; gap: clamp(70px, 9vw, 120px); }
.brand-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.brand-row.is-flipped .br-media { order: 2; }
.br-media { overflow: hidden; box-shadow: var(--shadow); }
.br-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.br-media:hover img { transform: scale(1.05); }
.br-links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; }

/* Contact --------------------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: -170px; position: relative; z-index: 3; }
.contact-card { display: grid; gap: 6px; padding: 40px 34px; background: var(--white); box-shadow: var(--shadow); border-top: 2px solid var(--gold); transition: transform .5s var(--ease); }
.contact-card:hover { transform: translateY(-6px); }
.cc-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); margin-bottom: 16px; }
.cc-icon .icon { width: 26px; height: 26px; }
.contact-card.is-whatsapp { border-top-color: var(--wa); }
.contact-card.is-whatsapp .cc-icon { background: var(--wa); color: #fff; }
.contact-card small { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lang-ar .contact-card small { letter-spacing: 0; font-size: 14px; }
.contact-card strong { font-family: var(--f-head); font-size: 28px; font-weight: 500; color: var(--ink); word-break: break-word; }
.cc-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--gold-3); }
.contact-projects { max-width: 760px; margin: clamp(60px, 8vw, 100px) auto 0; }
.office-projects h4 { font-size: 22px; margin-bottom: 14px; }
.op-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.op-row a:first-child:hover { color: var(--gold-3); }
.op-wa { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(37, 211, 102, .12); color: #1ea952; transition: all .3s; }
.op-wa:hover { background: var(--wa); color: #fff; }

.notfound { padding-top: calc(var(--header-h) + 140px); }
.page-inner .site-header { background: var(--navy); }

/* Reveal ---------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1180px) {
    .header-call span { display: none; }
    .header-call { width: 42px; padding: 0; justify-content: center; }
    .amenity-grid { grid-template-columns: repeat(3, 1fr); }
    .sector-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .project-card { min-height: 560px; }
}

@media (max-width: 980px) {
    :root { --header-h: 74px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; inset: 0; z-index: -1; background: var(--navy);
        display: flex; flex-direction: column; justify-content: center; padding: 100px 32px 40px;
        opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { opacity: 0; transform: translateY(20px); transition: all .6s var(--ease-out); }
    .nav-open .main-nav li { opacity: 1; transform: none; }
    .nav-open .main-nav li:nth-child(2) { transition-delay: .06s; }
    .nav-open .main-nav li:nth-child(3) { transition-delay: .12s; }
    .nav-open .main-nav li:nth-child(4) { transition-delay: .18s; }
    .main-nav a { font-family: var(--f-head); font-size: 40px !important; padding: 12px 0; color: var(--white); }
    .main-nav a::after { inset-inline: 0; }
    .nav-mobile-extra { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
    .nav-mobile-extra .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .3); }
    body.nav-open { overflow: hidden; }

    .intro-grid, .story-grid, .fm-grid, .overview-grid, .location-grid, .project-row, .brand-row { grid-template-columns: 1fr; }
    .project-row.is-flipped .pr-media, .brand-row.is-flipped .br-media { order: 0; }
    .intro-media { max-width: 520px; }
    .intro-badge { inset-inline-end: -10px; }
    .project-cards, .project-cards.two, .project-cards.has-featured { grid-template-columns: 1fr; }
    .project-card, .project-cards.has-featured .project-card { min-height: 520px; }
    .project-cards.has-featured .is-featured { grid-row: auto; min-height: 600px; }
    .pc-body p { max-height: none; opacity: 1; margin-bottom: 18px; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .fm-media { min-height: 460px; }
    .badges { grid-template-columns: 1fr; margin-top: 50px; }
    .masterplan-wrap.has-extra { grid-template-columns: 1fr; }
    .fp-images.fp-count-3 { grid-template-columns: 1fr 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; margin-top: -120px; }
    .subnav-title { display: none; }
    .subnav { top: 74px; }
    .hero-caption { display: none; }
    .hero-footer { justify-content: center; }
    .scroll-cue { display: none; }

    /* Lighter rendering on phones/tablets: no blur, no parallax layers */
    .site-header.is-scrolled, .btn-ghost-light, .project-hero-bar, .subnav { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .site-header.is-scrolled { background: rgba(11, 23, 38, .97); }
    .project-hero-bar { background: rgba(11, 23, 38, .85); }
    .subnav { background: var(--cream); }
    .cta-bg, .page-hero-bg, .project-hero-bg { inset: 0; will-change: auto; transform: none !important; }
}

@media (max-width: 800px) {
    [style*="--bg-sm"] { background-image: var(--bg-sm) !important; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 36px); }
    .brand-tag { display: none; }
    .lang-switch { padding: 0 12px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { padding: 22px 14px; border-bottom: 1px solid var(--line); }
    .stat:nth-child(2n) { border-inline-end: 0; }
    .stat:nth-child(odd) { padding-inline-start: 0; }
    .why-grid, .amenity-grid, .distances, .fm-list, .fp-images, .fp-images.fp-count-3, .fp-images.fp-count-4 { grid-template-columns: 1fr; }
    .why-item { padding: 34px 26px; }
    .sector-grid { grid-template-columns: 1fr 1fr; }
    .facts-grid .fact { padding: 28px 20px; }
    .pr-facts strong { font-size: 26px; }
    .price-groups { grid-template-columns: 1fr; }
    .price-group { padding: 26px 20px; }
    .phb-inner { grid-template-columns: 1fr 1fr; }
    .phb-item { padding: 18px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .phb-item:nth-child(odd) { padding-inline-start: 0; }
    .phb-item:nth-child(2n) { border-inline-end: 0; }
    .phb-item strong { font-size: 19px; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; justify-content: center; }
    .floating-contact { inset-inline-end: 16px; bottom: 16px; }
    .to-top { display: none; }
    .fab { width: 54px; height: 54px; }
    .fab-label { display: none; }
    .fm-media { min-height: 360px; }
    .intro-badge { position: relative; inset: auto; margin-top: -40px; margin-inline-start: auto; width: max-content; }
    .frame img { aspect-ratio: 4 / 3; }
    .frame::before { inset: -12px; inset-inline-start: 12px; inset-block-end: 12px; }
    .masonry { columns: 2 140px; column-gap: 10px; }
    .masonry-item { margin-bottom: 10px; }
}
