/* ==========================================================================
   Onlyou Nairobi — site stylesheet
   One design system for every page. Edit tokens in :root to restyle the site.
   ========================================================================== */

:root {
    --ink: #121417;
    --ink-2: #1c1f24;
    --ink-3: #2a2e35;
    --ivory: #f7f4ee;
    --sand: #efe8dc;
    --paper: #ffffff;
    --gold: #c6a467;
    --gold-light: #dcc293;
    --gold-deep: #8a6a30;
    --text: #2a2d33;
    --muted: #6b6f76;
    --muted-light: rgba(255, 255, 255, .72);
    --line: #e5ddcf;
    --line-dark: rgba(255, 255, 255, .12);

    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 4px;
    --radius-lg: 10px;
    --shadow: 0 18px 40px -22px rgba(18, 20, 23, .35);
    --shadow-lg: 0 30px 60px -30px rgba(18, 20, 23, .5);
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(64px, 9vw, 120px);
    --nav-h: 84px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 56px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 {
    margin: 0 0 .5em;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    color: var(--ink);
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
h4 { font-size: 1.2rem; }
strong { font-weight: 700; color: var(--ink); }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.bg-paper { background: var(--paper); }
.bg-sand { background: var(--sand); }
.bg-ink { background: var(--ink); color: var(--muted-light); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4, .bg-ink strong { color: #fff; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Section heading ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
    font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.bg-ink .eyebrow, .on-dark .eyebrow { color: var(--gold); }
.heading { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.heading.center { margin-left: auto; margin-right: auto; }
.heading.center .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.heading p { font-size: 1.08rem; color: var(--muted); margin: 0; }
.bg-ink .heading p { color: var(--muted-light); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 30px;
    font: 700 .8rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
    border: 1px solid transparent; border-radius: var(--radius);
    cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row, .btn-row.center { justify-content: center; }
.link-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep);
}
.link-arrow i { transition: transform .25s; }
.link-arrow:hover i { transform: translateX(4px); }
.bg-ink .link-arrow { color: var(--gold); }

/* ---------- Navigation ---------- */
.site-nav {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center;
    transition: background .35s, height .35s, box-shadow .35s;
}
.site-nav::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent);
    transition: opacity .35s;
}
.site-nav.is-solid { background: var(--ink); height: 70px; box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .6); }
.site-nav.is-solid::before { opacity: 0; }
.site-nav .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 44px; width: auto; transition: height .35s; }
.site-nav.is-solid .brand img { height: 38px; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active { box-shadow: inset 0 -1px 0 var(--gold); }
.nav-link .fa-chevron-down { font-size: .6rem; transition: transform .25s; }
.nav-cta { margin-left: 12px; padding: 12px 22px; }

.dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%;
    min-width: 260px; padding: 10px;
    background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .25s, transform .25s, visibility .25s;
}
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .fa-chevron-down, .has-dropdown.open .fa-chevron-down { transform: rotate(180deg); }
.dropdown a {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: var(--radius);
    font-size: .92rem; font-weight: 600; color: var(--ink);
}
.dropdown a small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.dropdown a:hover, .dropdown a.active { background: var(--sand); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

.nav-toggle {
    display: none; width: 46px; height: 46px; padding: 0;
    background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius);
    color: #fff; font-size: 1.1rem; cursor: pointer;
}

@media (max-width: 1080px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
    .nav-menu {
        position: fixed; inset: 0; z-index: 1;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: calc(var(--nav-h) + 12px) var(--gutter) 32px;
        background: var(--ink); overflow-y: auto;
        opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    }
    .nav-open .nav-menu { opacity: 1; visibility: visible; }
    .nav-open { overflow: hidden; }
    .nav-menu > li { border-bottom: 1px solid var(--line-dark); }
    .nav-link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: .9rem; }
    .nav-link.active { box-shadow: none; color: var(--gold); }
    .dropdown {
        position: static; transform: none; min-width: 0; padding: 0 0 12px;
        background: transparent; box-shadow: none; display: none; opacity: 1; visibility: visible;
    }
    .has-dropdown:hover .dropdown { transform: none; }
    .has-dropdown.open .dropdown { display: block; transform: none; }
    .dropdown a { color: rgba(255, 255, 255, .8); padding: 10px 12px; }
    .dropdown a small { color: rgba(255, 255, 255, .5); }
    .dropdown a:hover, .dropdown a.active { background: var(--ink-3); color: #fff; }
    .dropdown hr { border-color: var(--line-dark); }
    .nav-menu > li.nav-cta-item { border: 0; margin-top: 24px; }
    .nav-cta { margin: 0; width: 100%; padding: 16px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: flex-end;
    padding: calc(var(--nav-h) + 40px) 0 clamp(64px, 10vh, 120px);
    color: #fff; overflow: hidden; background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { animation: hero-zoom 18s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(to top, rgba(10, 11, 13, .88) 0%, rgba(10, 11, 13, .35) 55%, rgba(10, 11, 13, .55) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 500; }
.hero p.lead { color: rgba(255, 255, 255, .82); max-width: 560px; margin-bottom: 36px; }
.hero .eyebrow { color: var(--gold); }
.hero-meta {
    display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px);
    margin-top: clamp(40px, 7vh, 72px); padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-meta div { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hero-meta strong { display: block; margin-bottom: 4px; font: 600 1.6rem/1.2 var(--font-display); letter-spacing: 0; text-transform: none; color: #fff; }
.scroll-cue {
    position: absolute; right: var(--gutter); bottom: 40px; z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
    writing-mode: vertical-rl;
}
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Inner page hero */
.page-hero { min-height: clamp(420px, 62vh, 620px); align-items: flex-end; padding-bottom: clamp(48px, 8vh, 84px); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 18ch; margin-bottom: 14px; }
.page-hero p.lead { margin-bottom: 0; }
.breadcrumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-bottom: 20px; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs i { font-size: .55rem; color: var(--gold); }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
    .split.reverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Media frame ---------- */
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-tall { aspect-ratio: 4 / 5; }
.frame-wide { aspect-ratio: 16 / 10; }
.frame-accent { position: relative; }
.frame-accent::before {
    content: ""; position: absolute; inset: 28px -28px -28px 28px; z-index: -1;
    border: 1px solid var(--gold); border-radius: var(--radius-lg);
}
@media (max-width: 640px) { .frame-accent::before { inset: 16px -10px -16px 10px; } }
.badge-float {
    position: absolute; left: 24px; bottom: 24px;
    padding: 18px 22px; background: rgba(18, 20, 23, .88); backdrop-filter: blur(8px);
    border-radius: var(--radius); color: #fff;
}
.badge-float strong { display: block; color: var(--gold); font: 600 1.9rem/1 var(--font-display); }
.badge-float span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }

/* ---------- Check list ---------- */
.checks { display: grid; gap: 12px; margin: 24px 0 32px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks i { margin-top: 6px; color: var(--gold-deep); font-size: .8rem; }
.bg-ink .checks i { color: var(--gold); }

/* ---------- Feature cards ---------- */
.feature {
    position: relative; height: 100%;
    padding: clamp(26px, 3vw, 36px);
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature .icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; margin-bottom: 22px;
    border-radius: 50%; background: var(--sand); color: var(--gold-deep); font-size: 1.2rem;
    transition: background .35s, color .35s;
}
.feature:hover .icon { background: var(--ink); color: var(--gold); }
.feature h3 { font-size: 1.4rem; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.feature .num { position: absolute; top: 24px; right: 28px; font: 600 1rem var(--font-display); color: var(--line); }
.bg-ink .feature { background: var(--ink-2); border-color: var(--line-dark); }
.bg-ink .feature h3 { color: #fff; }
.bg-ink .feature p { color: var(--muted-light); }
.bg-ink .feature .icon { background: var(--ink-3); color: var(--gold); }
.bg-ink .feature:hover { border-color: var(--gold); box-shadow: none; }
.bg-ink .feature .num { color: var(--ink-3); }

/* Compact list of features (amenity grid) */
.mini-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.mini-feature { display: flex; gap: 18px; padding: 28px; background: var(--paper); transition: background .3s; }
.mini-feature:hover { background: var(--ivory); }
.mini-feature i { flex: none; width: 24px; margin-top: 4px; color: var(--gold-deep); font-size: 1.1rem; text-align: center; }
.mini-feature h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 4px; letter-spacing: 0; }
.mini-feature p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { padding-top: 28px; border-top: 1px solid var(--line-dark); }
.step-num { display: block; margin-bottom: 18px; font: 500 3rem/1 var(--font-display); color: var(--gold); }
.step h3 { font-size: 1.45rem; color: #fff; }
.step p { margin: 0; color: var(--muted-light); font-size: .96rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 600 clamp(2.4rem, 4vw, 3.4rem)/1 var(--font-display); color: var(--ink); margin-bottom: 10px; }
.stat span { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Unit / property cards ---------- */
.unit-card {
    display: flex; flex-direction: column; height: 100%;
    background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .4s var(--ease), box-shadow .4s;
}
.unit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.unit-card .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.unit-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.unit-card:hover .media img { transform: scale(1.06); }
.unit-card .tag {
    position: absolute; top: 16px; left: 16px;
    padding: 7px 12px; border-radius: 2px;
    background: rgba(18, 20, 23, .82); color: var(--gold-light);
    font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.unit-card .body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 24px; }
.unit-card h3 { margin-bottom: 8px; }
.unit-card p { color: var(--muted); font-size: .95rem; }
.unit-specs { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 20px; font-size: .86rem; color: var(--text); }
.unit-specs i { color: var(--gold-deep); margin-right: 6px; }
.unit-card .foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
}
.price-from { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-from strong { display: block; font: 600 1.35rem/1.2 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ink); }
.unit-card .go {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink);
    transition: background .3s, color .3s, border-color .3s;
}
.unit-card:hover .go { background: var(--ink); border-color: var(--ink); color: var(--gold); }

/* Unit grid: 3 then 2 centred */
.unit-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(20px, 3vw, 30px); }
.unit-grid > * { grid-column: span 2; }
.unit-grid > :nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
@media (max-width: 980px) {
    .unit-grid { grid-template-columns: repeat(2, 1fr); }
    .unit-grid > *, .unit-grid > :nth-last-child(2):nth-child(3n + 1) { grid-column: auto; }
    .unit-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .unit-grid { grid-template-columns: 1fr; } .unit-grid > :last-child:nth-child(odd) { grid-column: auto; } }

/* Project showcase card */
.project {
    display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden;
    background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.project .media { min-height: 420px; position: relative; }
.project .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project .body { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.project .loc { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--muted); font-size: .92rem; }
.project .loc i { color: var(--gold-deep); }
.spec-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 32px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-row strong { display: block; font: 600 1.6rem/1.1 var(--font-display); }
.spec-row span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 880px) { .project { grid-template-columns: 1fr; } .project .media { min-height: 280px; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.cta-band .bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(12, 13, 15, .92) 0%, rgba(12, 13, 15, .6) 100%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .78); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner > div:first-child { max-width: 620px; }

/* ---------- Sub navigation (unit pages) ---------- */
.subnav {
    position: sticky; top: 70px; z-index: 50;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
    display: block; padding: 18px 16px; white-space: nowrap;
    font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
    box-shadow: inset 0 -2px 0 transparent; transition: color .2s, box-shadow .2s;
}
.subnav a:hover, .subnav a.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }

/* ---------- Spec table ---------- */
.spec-card { padding: clamp(26px, 3vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.spec-card h3 { margin-bottom: 18px; }
.spec-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list i { width: 20px; text-align: center; color: var(--gold-deep); }
.spec-list span { color: var(--muted); }
.spec-list b { margin-left: auto; text-align: right; color: var(--ink); font-weight: 700; }
.spec-card .price-from { margin: 20px 0; padding: 18px; background: var(--ivory); border-radius: var(--radius); }
.spec-card .price-from strong { font-size: 1.8rem; }
.sticky-col { position: sticky; top: 150px; }

/* Floor plan */
.plan-frame { padding: clamp(14px, 2vw, 24px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plan-frame a { display: block; cursor: zoom-in; }
.plan-frame img { width: 100%; max-height: 80vh; object-fit: contain; margin: 0 auto; }

/* Pricing table */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 18px 8px; text-align: left; border-bottom: 1px solid var(--line-dark); }
.price-table th { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table td { color: #fff; font-size: 1rem; }
.price-table td:last-child { font: 600 1.3rem var(--font-display); color: var(--gold-light); }
.price-table tr.current td { color: var(--gold-light); }
.price-table a:hover { color: var(--gold); }
.fine { font-size: .82rem; color: rgba(255, 255, 255, .55); margin-top: 18px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery a { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.gallery a:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery a:nth-child(6n + 4) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery a::after {
    content: "\f00e"; font: var(--fa-font-solid); position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem; background: rgba(18, 20, 23, .4); opacity: 0; transition: opacity .3s;
}
.gallery a:hover img { transform: scale(1.06); }
.gallery a:hover::after { opacity: 1; }
@media (max-width: 800px) {
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .gallery a:nth-child(6n + 1) { grid-column: span 2; grid-row: span 1; }
    .gallery a:nth-child(6n + 4) { grid-column: span 1; }
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center; padding: 60px 70px;
    background: rgba(8, 9, 10, .94);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox button {
    position: absolute; display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font-size: 1.05rem; cursor: pointer;
    transition: background .2s, color .2s;
}
.lightbox button:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: .78rem; letter-spacing: .2em; color: rgba(255, 255, 255, .6); }
@media (max-width: 640px) { .lightbox { padding: 70px 12px; } .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }

/* ---------- Location / map ---------- */
.map-card { display: grid; grid-template-columns: 1.6fr 1fr; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.map-card iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.35) contrast(1.05); }
.map-card .body { padding: clamp(28px, 4vw, 48px); }
.contact-lines li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-lines li:last-child { border-bottom: 0; }
.contact-lines i { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sand); color: var(--gold-deep); }
.contact-lines span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-lines a:hover { color: var(--gold-deep); }
@media (max-width: 880px) { .map-card { grid-template-columns: 1fr; } .map-card iframe { min-height: 320px; } }

/* ---------- Forms ---------- */
.form-card { padding: clamp(28px, 4vw, 52px); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.bg-ink .form-card { background: var(--ink-2); box-shadow: none; border: 1px solid var(--line-dark); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
    width: 100%; padding: 15px 16px;
    font: inherit; font-size: .98rem; color: var(--ink);
    background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(198, 164, 103, .18); }
.bg-ink .field label { color: rgba(255, 255, 255, .6); }
.bg-ink .field input, .bg-ink .field textarea, .bg-ink .field select { background: var(--ink); border-color: var(--line-dark); color: #fff; }
.bg-ink .field input:focus, .bg-ink .field textarea:focus { background: var(--ink); }
.alert { padding: 14px 18px; margin-bottom: 22px; border-radius: var(--radius); font-size: .95rem; border: 1px solid; }
.alert ul { padding-left: 18px; list-style: disc; }
.alert-success { background: #ecf6ee; border-color: #b9dcc0; color: #1e5b2b; }
.alert-danger { background: #fbeceb; border-color: #f0c3c0; color: #8a1f17; }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-card .media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 18px; background: var(--sand); }
.team-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); transition: transform .8s var(--ease), filter .4s; }
.team-card:hover img { transform: scale(1.04); filter: none; }
.team-card h3 { font-size: 1.4rem; margin-bottom: 2px; }
.team-card p { margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 20px; background: var(--sand); }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover img { transform: scale(1.05); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-meta i { color: var(--gold-deep); margin-right: 6px; }
.post-card h3 { margin-bottom: 10px; transition: color .2s; }
.post-card:hover h3 { color: var(--gold-deep); }
.post-card p { color: var(--muted); font-size: .96rem; }
.post-card .link-arrow { margin-top: auto; }

.article { font-size: 1.08rem; }
.article h2 { margin-top: 1.6em; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.article p { color: #43464c; }
.article figure { margin: 2em 0; }
.article figure img { width: 100%; border-radius: var(--radius-lg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; }
.tags span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 30px; font-size: .8rem; color: var(--muted); }
.sidebar-box { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 24px; }
.sidebar-box h3 { font-size: 1.35rem; margin-bottom: 16px; }
.recent li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent li:last-child { border: 0; padding-bottom: 0; }
.recent img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); flex: none; }
.recent a { font-weight: 600; font-size: .95rem; line-height: 1.4; color: var(--ink); }
.recent a:hover { color: var(--gold-deep); }
.recent small { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 980px) { .layout-sidebar { grid-template-columns: 1fr; } }

/* ---------- Roads (about) ---------- */
.road { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
.road:first-child { border-top: 1px solid var(--line); }
.road .n { font: 500 1.6rem/1 var(--font-display); color: var(--gold-deep); }
.road h4 { font-size: 1.35rem; margin-bottom: 6px; }
.road p { margin: 0 0 4px; font-size: .95rem; color: var(--muted); }
.road p b { color: var(--text); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding-top: clamp(64px, 8vw, 96px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-grid h4 { font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 300px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact i { margin-top: 6px; color: var(--gold); width: 16px; text-align: center; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0; border-top: 1px solid var(--line-dark); font-size: .82rem; color: rgba(255, 255, 255, .45); }
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom a:hover { color: var(--gold); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp widget ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 150; }
.wa-btn {
    display: flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
    background: #25d366; color: #fff; font-size: 1.75rem;
    box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .7); transition: transform .25s;
}
.wa-btn:hover { transform: scale(1.06); }
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: wa-ring 2.4s infinite; }
@keyframes wa-ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }
.wa-panel {
    position: absolute; right: 0; bottom: 74px; width: min(320px, calc(100vw - 40px));
    background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.wa.open .wa-panel { opacity: 1; visibility: visible; transform: none; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: #075e54; color: #fff; }
.wa-head strong { color: #fff; display: block; line-height: 1.2; }
.wa-head small { color: rgba(255, 255, 255, .75); }
.wa-head button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; }
.wa-body { padding: 20px; font-size: .94rem; }
.wa-body p { padding: 12px 14px; background: #f0f2f5; border-radius: 4px 14px 14px 14px; margin-bottom: 16px; }
.wa-body .btn { background: #25d366; color: #fff; width: 100%; }
.wa-body .btn:hover { background: #1ebe5b; }

/* ---------- Promo modal ---------- */
.promo {
    position: fixed; inset: 0; z-index: 250;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(8, 9, 10, .78); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.promo.open { opacity: 1; visibility: visible; }
.promo-box { position: relative; width: min(380px, 100%); transform: translateY(16px) scale(.98); transition: transform .4s var(--ease); }
.promo.open .promo-box { transform: none; }
.promo-box img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.promo-close {
    position: absolute; top: -14px; right: -14px;
    width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--gold); color: var(--ink); font-size: 1rem; box-shadow: var(--shadow);
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .1s; }
.js .reveal-d2 { transition-delay: .2s; }
.js .reveal-d3 { transition-delay: .3s; }

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

/* ---------- Responsive refinements ---------- */
.brand { position: relative; z-index: 2; }
.hero::after {
    background:
        linear-gradient(90deg, rgba(10, 11, 13, .65) 0%, rgba(10, 11, 13, 0) 65%),
        linear-gradient(to top, rgba(10, 11, 13, .88) 0%, rgba(10, 11, 13, .35) 55%, rgba(10, 11, 13, .55) 100%);
}
.scroll-cue { right: 110px; }
@media (max-width: 1080px) {
    .nav-toggle { order: 3; }
    .scroll-cue { display: none; }
}
@media (max-width: 640px) {
    .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
    .hero-meta strong { font-size: 1.35rem; }
    .hero .btn-row .btn { flex: 1 1 100%; }
}
.nav-open .wa { display: none; }

/* Four cards (other residences on unit pages): one even row */
.unit-grid.four { grid-template-columns: repeat(4, 1fr); }
.unit-grid.four > *, .unit-grid.four > :nth-last-child(2):nth-child(3n + 1) { grid-column: auto; }
@media (max-width: 1080px) { .unit-grid.four { grid-template-columns: repeat(2, 1fr); } .unit-grid.four > :last-child:nth-child(odd) { grid-column: auto; } }
@media (max-width: 640px) { .unit-grid.four { grid-template-columns: 1fr; } }

/* Amenity grid: fixed columns so the last row is always full */
.mini-features { grid-template-columns: repeat(4, 1fr); }
.mini-feature:nth-last-child(2):nth-child(4n + 1), .mini-feature:last-child:nth-child(4n + 2) { grid-column: span 2; }
@media (max-width: 980px) { .mini-features { grid-template-columns: repeat(2, 1fr); } .mini-feature:nth-last-child(2):nth-child(4n + 1), .mini-feature:last-child:nth-child(4n + 2) { grid-column: auto; } }
@media (max-width: 560px) { .mini-features { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .footer-bottom { padding-bottom: 96px; } }
.subnav ul { position: relative; }
