/* ============================================================
   HAVEN HOMES REALTY — Master Stylesheet (rebuild)
   Palette: #0031A6 Haven Blue · light-blue grounds · white surfaces
   Type:    Plus Jakarta Sans
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
    /* Blues */
    --blue:          #0031A6;
    --blue-deep:     #00205C;
    --blue-mid:      #2F62DC;
    --blue-light:    #6E9BF0;
    --blue-wash:     #DCE8FF;
    --blue-wash-2:   #EDF3FF;
    --blue-line:     rgba(0, 49, 166, 0.16);

    /* Neutrals — softened, only a trace of blue */
    --ink:           #10182B;
    --ink-2:         #1E293D;
    --body:          #55607A;
    --meta:          #78819A;
    --white:         #FFFFFF;
    --ground:        #F5F7FC;
    --ground-2:      #FAFBFE;
    --line:          rgba(16, 24, 43, 0.10);
    --line-2:        rgba(16, 24, 43, 0.16);

    /* Legacy aliases — older inline styles in PHP/JS still reference these.
       Mapped onto the new palette so nothing renders an orphaned colour. */
    --crimson:       #0031A6;
    --crimson-deep:  #00205C;
    --crimson-light: #2F62DC;
    --champagne:     #6E9BF0;
    --champagne-deep:#2F62DC;
    --champagne-pale:#DCE8FF;
    --off-white:     #F6F9FF;
    --gray-100:      #F2F6FF;
    --gray-200:      #E3EAF7;
    --gray-300:      #C8D4EA;
    --gray-500:      #6B7A9B;
    --gray-700:      #4A5878;
    --gray-900:      #16233F;
    --black:         #081433;
    --near-black:    #081433;

    /* Glass */
    --glass-bg:      rgba(255, 255, 255, 0.16);
    --glass-border:  rgba(255, 255, 255, 0.34);
    --glass-blur:    blur(16px) saturate(160%);

    /* Elevation — blue-tinted, so depth reads as palette not dirt */
    --sh-xs: 0 1px 3px rgba(8, 20, 51, 0.06);
    --sh-sm: 0 2px 10px -2px rgba(8, 20, 51, 0.08);
    --sh-md: 0 14px 34px -14px rgba(0, 49, 166, 0.22);
    --sh-lg: 0 28px 60px -24px rgba(0, 49, 166, 0.28);
    --sh-xl: 0 40px 90px -30px rgba(0, 49, 166, 0.34);

    /* Type — Outfit sets headings, Assistant carries body copy */
    --font-sans:    'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Outfit', 'Assistant', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-serif:   var(--font-display);
    --font-mono:    ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;

    /* Layout */
    --container-max: 1280px;
    --section-pad:   104px;
    --card-radius:   20px;
    --nav-h:         76px;

    /* Motion */
    --ease:        cubic-bezier(0.22, 0.7, 0.3, 1);
    --ease-luxury: cubic-bezier(0.22, 0.7, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.4, 0.64, 1);
    --transition:  0.35s var(--ease);
}

/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; cursor: pointer; background: none; font: inherit; color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--blue); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground-2); }
::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 6px; border: 2px solid var(--ground-2); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-mid); }

.container { max-width: var(--container-max); margin-inline: auto; padding-inline: 32px; }

/* Cursor glow — subtle on a light ground */
.cursor-glow {
    position: fixed; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 49, 166, 0.05) 0%, transparent 70%);
    pointer-events: none; transform: translate(-50%, -50%); z-index: 0; will-change: transform;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-white, .btn-outline-white, .btn-card, .btn-purchase, .filter-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-sans); font-size: 14px; font-weight: 650;
    letter-spacing: 0.01em; border-radius: 999px; padding: 14px 26px;
    border: 1.5px solid transparent; cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 49, 166, 0.55); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(0, 49, 166, 0.6); }

.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; transform: translateY(-2px); }

.btn-card { padding: 10px 18px; font-size: 13px; background: var(--blue-wash-2); color: var(--blue); }
.btn-card:hover { background: var(--blue); color: #fff; }

.btn-purchase, .filter-btn { background: var(--blue); color: #fff; width: 100%; }
.btn-purchase:hover, .filter-btn:hover { background: var(--blue-deep); }
.filter-btn { width: auto; }

/* ── Header / nav — straight bar, full width ────────────────── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nav-h);
    display: flex; align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom-color: var(--line);
    box-shadow: 0 1px 20px -8px rgba(8, 20, 51, 0.18);
}

.nav-container {
    width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: 32px;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links--right { justify-content: flex-end; }

/* Default is DARK type — correct for every page that starts on a light ground.
   Only .site-header--over-hero (the homepage video) flips to white, and only
   until it scrolls. Getting this backwards makes the nav invisible on every
   internal page, so the light case is the default rather than the exception. */
.nav-link {
    position: relative; font-size: 14px; font-weight: 560; letter-spacing: 0.01em;
    padding: 9px 15px; border-radius: 10px;
    color: var(--body);
    transition: color var(--transition), background var(--transition);
}
.nav-link:hover  { color: var(--blue); background: var(--blue-wash-2); }
.nav-link.active { color: var(--blue); background: var(--blue-wash); }

.site-header--over-hero:not(.scrolled) .nav-link         { color: rgba(255, 255, 255, 0.88); }
.site-header--over-hero:not(.scrolled) .nav-link:hover   { color: #fff; background: rgba(255, 255, 255, 0.14); }
.site-header--over-hero:not(.scrolled) .nav-link.active  { color: #fff; background: rgba(255, 255, 255, 0.2); }

.nav-logo { display: flex; align-items: center; justify-content: center; }
.nav-logo img {
    height: 46px; width: auto; max-width: 210px; object-fit: contain;
    transition: filter var(--transition);
}
.site-header--over-hero:not(.scrolled) .nav-logo img { filter: brightness(0) invert(1); }

.logo-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: 0.04em; color: var(--ink); }
.logo-rule { width: 30px; height: 2px; background: var(--blue); margin: 5px 0; }
.logo-sub  { font-size: 9px; font-weight: 600; letter-spacing: 0.3em; color: var(--meta); }
.site-header--over-hero:not(.scrolled) .logo-name { color: #fff; }
.site-header--over-hero:not(.scrolled) .logo-sub  { color: rgba(255, 255, 255, 0.72); }

/* Pages without a hero need a visible edge from the first paint */
.site-header:not(.site-header--over-hero) {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom-color: var(--line);
}

/* Hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; border-radius: 10px; }
.nav-toggle .bar {
    position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px;
    background: var(--ink); transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.site-header--over-hero:not(.scrolled) .nav-toggle .bar { background: #fff; }
.nav-toggle .bar-top { top: 15px; }
.nav-toggle .bar-mid { top: 21px; }
.nav-toggle .bar-bot { top: 27px; }
.nav-toggle.open .bar { background: var(--ink); }
.nav-toggle.open .bar-top { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .bar-mid { opacity: 0; }
.nav-toggle.open .bar-bot { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile overlay ─────────────────────────────────────────── */
.mobile-backdrop {
    position: fixed; inset: 0; background: rgba(8, 20, 51, 0.5);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity var(--transition); z-index: 1098;
}
.mobile-backdrop.visible { opacity: 1; pointer-events: all; }

.mobile-overlay {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
    background: var(--white); z-index: 1099;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    overflow-y: auto;
    box-shadow: -20px 0 60px -20px rgba(8, 20, 51, 0.3);
}
.mobile-overlay.open { transform: translateX(0); }

.mobile-close {
    position: absolute; top: 20px; right: 20px; width: 42px; height: 42px;
    border-radius: 50%; background: var(--ground); color: var(--ink);
    display: grid; place-items: center; font-size: 16px; z-index: 2;
    transition: background var(--transition);
}
.mobile-close:hover { background: var(--blue-wash); color: var(--blue); }

.mobile-overlay__inner { padding: 92px 36px 40px; display: flex; flex-direction: column; height: 100%; }
.mobile-overlay__eyebrow {
    font-size: 10px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 28px;
}
.mobile-overlay__links { display: flex; flex-direction: column; }
.mobile-overlay__links li {
    opacity: 0; transform: translateX(18px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    border-bottom: 1px solid var(--line);
}
.mobile-overlay.open .mobile-overlay__links li { opacity: 1; transform: none; }
.mobile-overlay.open .mobile-overlay__links li:nth-child(1) { transition-delay: 0.10s; }
.mobile-overlay.open .mobile-overlay__links li:nth-child(2) { transition-delay: 0.16s; }
.mobile-overlay.open .mobile-overlay__links li:nth-child(3) { transition-delay: 0.22s; }
.mobile-overlay.open .mobile-overlay__links li:nth-child(4) { transition-delay: 0.28s; }
.mobile-overlay.open .mobile-overlay__links li:nth-child(5) { transition-delay: 0.34s; }
.mobile-overlay.open .mobile-overlay__links li:nth-child(n+6) { transition-delay: 0.40s; }

.mobile-overlay__links a {
    display: flex; align-items: baseline; gap: 14px; padding: 18px 0;
    transition: padding-left var(--transition), color var(--transition);
}
.mobile-overlay__links a:hover { padding-left: 8px; color: var(--blue); }
.mo-num { font-family: var(--font-mono); font-size: 11px; color: var(--blue-light); font-weight: 600; }
.mo-label { font-size: 22px; font-weight: 650; color: var(--ink); letter-spacing: -0.02em; }
.mobile-overlay__links a:hover .mo-label { color: var(--blue); }
.mobile-overlay__footer { margin-top: auto; padding-top: 32px; }
.mo-footer-text { font-size: 13px; color: var(--meta); }

/* ── HERO — full-bleed cinematic video ──────────────────────── */
.hero {
    position: relative;
    min-height: min(94vh, 900px);
    display: flex; align-items: flex-end;
    overflow: hidden;
    background: #0B1020;
    padding-top: var(--nav-h);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img,
.hero-media video {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: brightness(1.06) saturate(1.04);
}
/* Scrim is weighted to the bottom-left where the type sits, and stays light
   across the top-right so the footage itself is never muddied. */
.hero-scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(to top,
            rgba(8, 13, 28, 0.86) 0%,
            rgba(8, 13, 28, 0.55) 26%,
            rgba(8, 13, 28, 0.24) 52%,
            rgba(8, 13, 28, 0.10) 78%,
            rgba(8, 13, 28, 0.26) 100%),
        linear-gradient(to right, rgba(8, 13, 28, 0.52) 0%, rgba(8, 13, 28, 0.12) 52%, transparent 100%);
}

.hero-container {
    position: relative; z-index: 2; width: 100%;
    max-width: var(--container-max); margin-inline: auto; padding: 0 32px 92px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    font-size: 11px; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase;
    color: #fff; margin-bottom: 26px;
}
.hero-eyebrow i { color: var(--blue-light); font-size: 11px; }

.hero-title {
    font-size: clamp(42px, 6.6vw, 84px);
    font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
    color: #fff; max-width: 15ch;
    text-shadow: 0 2px 30px rgba(8, 13, 28, 0.45);
}
.hero-title em { font-style: italic; font-weight: 600; color: var(--blue-light); }

.hero-subtitle {
    margin-top: 24px; font-size: 17px; line-height: 1.6;
    color: rgba(255, 255, 255, 0.86); max-width: 46ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* Frosted stat chips */
.hero-stats { display: flex; flex-direction: column; gap: 12px; }
.stat-item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 16px 24px; border-radius: 16px; min-width: 196px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: #fff;
    font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat-label {
    font-size: 10.5px; font-weight: 680; letter-spacing: 0.17em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

/* Scroll cue */
.hero-scroll-cue {
    position: absolute; left: 50%; bottom: 26px; z-index: 2; transform: translateX(-50%);
    width: 26px; height: 42px; border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    display: grid; justify-items: center; padding-top: 8px;
}
.hero-scroll-cue span {
    width: 3px; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.9);
    animation: scrollCue 1.9s var(--ease) infinite;
}
@keyframes scrollCue {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* ── Section headers ────────────────────────────────────────── */
.section-eyebrow {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-size: 11px; font-weight: 720; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 18px;
}
.section-eyebrow::before, .section-eyebrow::after {
    content: ''; width: 28px; height: 1px; background: var(--blue); opacity: 0.4;
}
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-title { font-size: clamp(30px, 4.2vw, 50px); font-weight: 780; letter-spacing: -0.032em; }
.section-title em { font-style: italic; font-weight: 600; color: var(--blue); }
.section-subtitle { margin-top: 18px; font-size: 17px; color: var(--body); }

/* ── Property cards ─────────────────────────────────────────── */
.section-featured { padding-block: var(--section-pad); background: var(--ground-2); position: relative; }

.properties-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}

.property-card {
    position: relative; border-radius: var(--card-radius); overflow: hidden;
    background: var(--white); border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.property-card:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); border-color: var(--blue-line); }

.property-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ground); }
/* Descendant selector, not child — edit mode injects .ve-img-wrap between these */
.property-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.property-card:hover .property-card-img img { transform: scale(1.06); }

.property-badge {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    padding: 7px 13px; border-radius: 999px;
    font-size: 9.5px; font-weight: 760; letter-spacing: 0.13em; text-transform: uppercase;
    background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    color: var(--blue); box-shadow: var(--sh-xs);
}

.property-card-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(to top, rgba(8, 20, 51, 0.55), transparent 55%);
    opacity: 0; display: grid; place-items: center;
    transition: opacity var(--transition);
}
.property-card:hover .property-card-overlay { opacity: 1; }
.card-quick-view {
    padding: 11px 22px; border-radius: 999px; font-size: 12.5px; font-weight: 650;
    background: rgba(255, 255, 255, 0.95); color: var(--ink);
    transform: translateY(10px); transition: transform var(--transition);
}
.property-card:hover .card-quick-view { transform: none; }

/* Price breaks out of the photo as a frosted slab */
.property-card-body { padding: 36px 20px 22px; position: relative; }
.property-price {
    position: absolute; top: -24px; left: 20px; z-index: 4;
    display: inline-flex; align-items: baseline; gap: 7px;
    padding: 12px 18px; border-radius: 15px;
    background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: var(--sh-md);
    font-size: 20px; font-weight: 780; letter-spacing: -0.025em; color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.property-price span {
    font-size: 9.5px; font-weight: 650; letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--meta);
}

.property-card-type {
    font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 8px;
}
.property-card-title {
    font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
    line-height: 1.25;
}
.property-card-location {
    display: flex; align-items: center; gap: 7px; margin-top: 7px;
    font-size: 13.5px; color: var(--body);
}
.property-card-location i { color: var(--blue-light); font-size: 12px; }

.property-card-specs {
    display: flex; gap: 18px; margin-top: 16px; padding-top: 15px;
    border-top: 1px solid var(--line);
    font-size: 13px; color: var(--body); font-variant-numeric: tabular-nums;
}
.spec-item { display: flex; align-items: center; gap: 6px; }
.spec-item i { color: var(--blue-light); font-size: 12px; }
.spec-item strong { color: var(--ink); font-weight: 700; }

.property-card-footer {
    display: flex; align-items: center; justify-content: flex-end;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}

/* ── Marquee — thin hairline divider ────────────────────────── */
.marquee-section {
    background: var(--white); border-block: 1px solid var(--line);
    padding-block: 18px; overflow: hidden; position: relative;
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 42s linear infinite; }
.marquee-item {
    display: flex; align-items: center; gap: 12px; white-space: nowrap;
    font-family: var(--font-mono); font-size: 11px; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--meta);
}
.marquee-item::before { content: '◆'; color: var(--blue-light); font-size: 7px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Why Us — editorial split, sticky photograph ────────────── */
.section-features { padding-block: var(--section-pad); background: var(--white); }

.features-wrap {
    display: grid; grid-template-columns: 0.82fr 1fr; gap: 80px; align-items: start;
}

/* Left — the photograph stays put while the claims scroll past it */
.features-media {
    position: sticky; top: calc(var(--nav-h) + 40px);
    border-radius: 28px; overflow: hidden;
    aspect-ratio: 4 / 5; background: var(--ground);
    box-shadow: var(--sh-lg);
}
.features-media img { width: 100%; height: 100%; object-fit: cover; }
.features-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10, 18, 36, 0.78) 0%, rgba(10, 18, 36, 0.12) 46%, transparent 72%);
}

/* Proof card sitting on the photograph */
.features-proof {
    position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    padding: 18px 20px; border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.features-proof div { display: flex; flex-direction: column; gap: 2px; }
.features-proof b {
    font-family: var(--font-display);
    font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: #fff;
    font-variant-numeric: tabular-nums; line-height: 1.1;
}
.features-proof span {
    font-size: 9px; font-weight: 680; letter-spacing: 0.14em;
    text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
}

/* Right — heading sits left-aligned with the claims, not centred above them */
.features-copy .section-header {
    text-align: left; margin: 0 0 14px; max-width: none;
}
.features-copy .section-eyebrow { justify-content: flex-start; }
.features-copy .section-eyebrow::after { display: none; }
.features-copy .section-subtitle { margin-top: 16px; max-width: 52ch; }

.features-grid { display: flex; flex-direction: column; margin-top: 22px; }

.feature-card {
    display: grid; grid-template-columns: auto 1fr; gap: 24px;
    padding: 30px 0; border-top: 1px solid var(--line);
    transition: padding-left var(--transition);
}
.feature-card:hover { padding-left: 10px; }
.feature-card:last-child { border-bottom: 1px solid var(--line); }

.feature-icon {
    width: 48px; height: 48px; border-radius: 14px; flex: none;
    display: grid; place-items: center; font-size: 18px;
    background: var(--blue-wash-2); color: var(--blue);
    transition: background var(--transition), color var(--transition);
}
.feature-card:hover .feature-icon { background: var(--blue); color: #fff; }

.feature-num {
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.18em; color: var(--blue); margin-bottom: 7px;
}
.feature-title { font-size: 20px; font-weight: 760; letter-spacing: -0.025em; }
.feature-text  { margin-top: 9px; font-size: 15.5px; line-height: 1.65; color: var(--body); max-width: 52ch; }

/* ── Testimonials — photographic ground, single large quote ─── */
.section-testimonials {
    position: relative; overflow: hidden;
    padding-block: calc(var(--section-pad) + 16px);
    background: #0A1326;
}
.testimonials-bg { position: absolute; inset: 0; z-index: 0; }
.testimonials-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.testimonials-bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(10, 19, 38, 0.9) 0%, rgba(10, 19, 38, 0.62) 45%, rgba(10, 19, 38, 0.94) 100%),
        radial-gradient(70% 70% at 50% 40%, rgba(0, 49, 166, 0.3), transparent 72%);
}
.section-testimonials > .container { position: relative; z-index: 1; }

.section-testimonials .section-eyebrow { color: var(--blue-light); }
.section-testimonials .section-eyebrow::before,
.section-testimonials .section-eyebrow::after { background: var(--blue-light); }
.section-testimonials .section-title { color: #fff; }
.section-testimonials .section-subtitle { color: rgba(255, 255, 255, 0.72); }

.testimonials-slider-wrap { position: relative; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.testimonial-card {
    position: relative;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-radius: 22px; padding: 36px 32px 30px;
    display: flex; flex-direction: column; gap: 18px;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.24);
}
.testimonial-card::before {
    content: '\201C';
    position: absolute; top: 8px; right: 26px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 86px; line-height: 1; color: rgba(255, 255, 255, 0.13);
}
.testimonial-stars { display: flex; gap: 4px; color: var(--blue-light); font-size: 13px; }
.testimonial-text {
    font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.92); flex: 1;
    position: relative; z-index: 1;
}
.testimonial-author {
    display: flex; align-items: center; gap: 14px;
    padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.testimonial-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex: none; overflow: hidden;
    display: grid; place-items: center; font-size: 16px; font-weight: 780;
    background: var(--blue); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-author-name { font-size: 15px; font-weight: 700; color: #fff; }
.testimonial-author-role { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }

.testimonial-dots { display: none; justify-content: center; gap: 8px; margin-top: 30px; }
.t-dot {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.28);
    transition: width var(--transition), background var(--transition);
}
.t-dot.active { width: 26px; border-radius: 999px; background: var(--blue-light); }

/* ── CTA — closing statement ────────────────────────────────── */
.section-cta {
    padding-block: 128px; position: relative; overflow: hidden;
    background: var(--ground);
}
.section-cta::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(52% 70% at 12% 18%, rgba(0, 49, 166, 0.14), transparent 62%),
        radial-gradient(46% 64% at 88% 82%, rgba(110, 155, 240, 0.18), transparent 64%);
}
.section-cta > .container { position: relative; z-index: 1; }

.cta-inner {
    background: linear-gradient(130deg, var(--blue) 0%, #012072 52%, #0A1326 100%);
    border-radius: 32px; padding: 76px 68px;
    position: relative; overflow: hidden;
    box-shadow: var(--sh-xl);
    display: grid; grid-template-columns: 1.25fr auto; gap: 56px; align-items: center;
}
.cta-inner::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(60% 120% at 88% 0%, rgba(255, 255, 255, 0.17), transparent 66%);
}
.cta-copy { position: relative; z-index: 1; }

.cta-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 15px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.26);
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    color: #fff; margin-bottom: 22px;
}
.cta-title {
    font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -0.035em;
    color: #fff; max-width: 17ch;
}
.cta-title em { font-style: italic; font-weight: 600; color: var(--blue-light); }
.cta-subtitle { margin-top: 18px; max-width: 48ch; font-size: 16.5px; color: rgba(255, 255, 255, 0.8); }
.cta-actions {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 12px; min-width: 232px;
}
.cta-actions a { width: 100%; }

/* ── Property detail ────────────────────────────────────────── */
.detail-hero { padding-top: calc(var(--nav-h) + 24px); background: var(--white); }

/* Breadcrumb */
.pd-crumbs {
    max-width: var(--container-max); margin: 0 auto 16px; padding-inline: 32px;
    display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--meta);
}
.pd-crumbs a { color: var(--blue); }
.pd-crumbs a:hover { text-decoration: underline; }
.pd-crumbs span[aria-hidden] { opacity: 0.5; }

/* Gallery mosaic — one lead frame plus a 2×2 of supporting shots */
.detail-image-gallery {
    position: relative;
    max-width: var(--container-max); margin-inline: auto; padding-inline: 32px;
    display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr);
    gap: 10px; height: clamp(380px, 56vw, 580px);
}
.gallery-main { grid-column: 1; grid-row: 1 / span 2; }
.gallery-main, .gallery-thumb {
    position: relative; border-radius: 16px; overflow: hidden; background: var(--ground);
}
.gallery-main { border-radius: 22px; }
.gallery-aside { display: contents; }
.gallery-main img, .gallery-thumb img {
    width: 100%; height: 100%; object-fit: cover; cursor: zoom-in;
    transition: transform 0.9s var(--ease);
}
.gallery-main:hover img, .gallery-thumb:hover img { transform: scale(1.05); }

.pd-gallery-count {
    position: absolute; right: 48px; bottom: 18px; z-index: 3;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 18px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: var(--sh-md);
    font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer;
    transition: transform var(--transition);
}
.pd-gallery-count:hover { transform: translateY(-2px); }

/* Title block */
.pd-head {
    max-width: var(--container-max); margin-inline: auto; padding: 40px 32px 0;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end;
}
.detail-badge-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.detail-badge, .detail-type-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 999px; font-size: 10px; font-weight: 720;
    letter-spacing: 0.14em; text-transform: uppercase;
}
.detail-badge { background: var(--blue); color: #fff; }
.detail-type-tag { background: var(--blue-wash-2); color: var(--blue); border: 1px solid var(--blue-line); }

.detail-title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; letter-spacing: -0.035em; max-width: 18ch; }
.detail-location { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 16px; color: var(--body); }
.detail-location i { color: var(--blue); }

.pd-price-block { text-align: right; }
.pd-price-label { font-size: 10px; font-weight: 720; letter-spacing: 0.16em; text-transform: uppercase; color: var(--meta); }
.pd-price {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.035em;
    color: var(--ink); line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums;
}
.pd-price-sub { font-size: 13px; color: var(--meta); margin-top: 6px; }

/* Spec strip — editorial numbers divided by hairlines, not boxes */
.detail-specs-row {
    max-width: var(--container-max); margin: 36px auto 0; padding-inline: 32px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid var(--line);
}
.detail-spec-box {
    padding: 26px 24px; display: flex; flex-direction: column; gap: 4px;
    border-left: 1px solid var(--line);
}
.detail-spec-box:first-child { border-left: 0; padding-left: 0; }
.detail-spec-icon { font-size: 14px; color: var(--blue); margin-bottom: 4px; }
.detail-spec-value {
    font-family: var(--font-display);
    font-size: 30px; font-weight: 800; color: var(--ink);
    letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.detail-spec-label { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--meta); }

/* Body */
.detail-content { padding-block: 56px var(--section-pad); background: var(--white); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 68px; align-items: start; }

.pd-section { padding-top: 44px; border-top: 1px solid var(--line); margin-top: 44px; }
.pd-section:first-child { padding-top: 0; border-top: 0; margin-top: 0; }
.detail-description-title, .amenities-title {
    font-size: 24px; font-weight: 780; letter-spacing: -0.028em; margin-bottom: 18px;
}
.detail-description-text { font-size: 16.5px; line-height: 1.85; color: var(--body); max-width: 68ch; }

/* Facts table */
.pd-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 44px; }
.pd-facts div {
    display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
    padding: 14px 0; border-bottom: 1px solid var(--line);
}
.pd-facts dt, .pd-facts .k { font-size: 14px; color: var(--meta); }
.pd-facts dd, .pd-facts .v { font-size: 14.5px; font-weight: 650; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* Amenities — quiet checklist, not a wall of boxes */
.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 32px; }
.amenity-item {
    display: flex; align-items: center; gap: 11px; padding: 11px 0;
    font-size: 14.5px; color: var(--ink-2); border-bottom: 1px solid var(--line);
}
.amenity-item i {
    color: var(--blue); font-size: 11px; flex: none;
    width: 22px; height: 22px; border-radius: 7px;
    display: grid; place-items: center; background: var(--blue-wash-2);
}

/* Sticky enquiry panel */
.detail-right { position: sticky; top: calc(var(--nav-h) + 20px); }
.purchase-panel {
    background: var(--white); border: 1px solid var(--line); border-radius: 22px;
    padding: 28px 26px; box-shadow: var(--sh-lg);
}
.pd-panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.panel-price-label { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--meta); }
.panel-price {
    font-family: var(--font-display);
    font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink);
    margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.panel-price-note { font-size: 12.5px; color: var(--meta); margin-top: 4px; }
.pd-panel-status {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    padding: 7px 13px; border-radius: 999px;
    background: #E8F7EF; border: 1px solid #A8E0C3; color: #0B6B3D;
    font-size: 10px; font-weight: 720; letter-spacing: 0.12em; text-transform: uppercase;
}
.purchase-form { display: flex; flex-direction: column; gap: 14px; }
.panel-trust {
    margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; gap: 9px;
    font-size: 12px; color: var(--meta); text-align: center;
}
.panel-trust i { color: var(--blue); }

/* Secondary actions under the panel */
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pd-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px; border-radius: 14px;
    background: var(--white); border: 1px solid var(--line-2);
    font-size: 13px; font-weight: 620; color: var(--ink); cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.pd-action:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-wash-2); }
.pd-action i { font-size: 13px; }

/* Sticky summary bar that appears once the hero scrolls away */
.pd-bar {
    position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 900;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.pd-bar.visible { transform: none; opacity: 1; pointer-events: auto; }
.pd-bar-inner {
    max-width: var(--container-max); margin-inline: auto; padding: 12px 32px;
    display: flex; align-items: center; gap: 24px;
}
.pd-bar-title { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.pd-bar-meta { font-size: 12.5px; color: var(--meta); font-variant-numeric: tabular-nums; }
.pd-bar-price {
    margin-left: auto; font-family: var(--font-display);
    font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}
.pd-bar .btn-primary { padding: 11px 22px; font-size: 13px; flex: none; }

@media (max-width: 1100px) {
    .detail-image-gallery {
        grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; height: auto;
    }
    .gallery-main { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 9; }
    .gallery-thumb:nth-of-type(n+3) { display: none; }
    .pd-head { grid-template-columns: 1fr; gap: 22px; align-items: start; }
    .pd-price-block { text-align: left; }
    .detail-grid { grid-template-columns: 1fr; gap: 48px; }
    .detail-right { position: static; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-bar-title, .pd-bar-meta { display: none; }
    .pd-bar-price { margin-left: 0; }
}
@media (max-width: 640px) {
    .detail-image-gallery { grid-template-columns: 1fr 1fr; padding-inline: 18px; gap: 8px; }
    .pd-crumbs, .pd-head, .detail-specs-row { padding-inline: 18px; }
    .pd-gallery-count { right: 26px; bottom: 12px; padding: 9px 15px; font-size: 11.5px; }
    .detail-specs-row { grid-template-columns: 1fr 1fr; }
    .detail-spec-box { padding: 20px 16px; }
    .detail-spec-box:nth-child(odd) { border-left: 0; padding-left: 0; }
    .detail-spec-box:nth-child(n+3) { border-top: 1px solid var(--line); }
    .amenities-grid, .pd-facts { grid-template-columns: 1fr; }
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-label { font-size: 11px; font-weight: 680; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.form-control {
    width: 100%; padding: 14px 16px; border-radius: 12px;
    border: 1.5px solid var(--line-2); background: var(--white);
    font-family: var(--font-sans); font-size: 15px; color: var(--ink);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control::placeholder { color: var(--meta); }
.form-control:focus {
    outline: none; border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 49, 166, 0.1);
}
textarea.form-control { resize: vertical; min-height: 110px; }

/* ── Contact ────────────────────────────────────────────────── */
.contact-section { padding-block: calc(var(--nav-h) + 64px) var(--section-pad); background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-detail-item {
    display: flex; gap: 16px; padding: 20px; border-radius: 16px;
    background: var(--ground-2); border: 1px solid var(--line);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.contact-detail-item:hover { background: var(--blue-wash-2); border-color: var(--blue-line); transform: translateX(4px); }
.contact-detail-icon {
    width: 46px; height: 46px; border-radius: 13px; flex: none;
    display: grid; place-items: center; font-size: 17px;
    background: var(--blue); color: #fff;
}
.contact-detail-label { font-size: 10.5px; font-weight: 680; letter-spacing: 0.15em; text-transform: uppercase; color: var(--meta); }
.contact-detail-value { font-size: 15.5px; color: var(--ink); margin-top: 3px; line-height: 1.55; }
.contact-form-wrap {
    background: var(--white); border: 1px solid var(--line); border-radius: 22px;
    padding: 36px 32px; box-shadow: var(--sh-lg);
}
.contact-form-title { font-size: 24px; font-weight: 760; letter-spacing: -0.028em; margin-bottom: 22px; }
.contact-form-wrap form { display: flex; flex-direction: column; gap: 16px; }

/* ── Filter bar ─────────────────────────────────────────────── */
.filter-section { padding-block: calc(var(--nav-h) + 56px) 0; background: var(--white); }
.filter-title { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.035em; }
.filter-subtitle { margin-top: 16px; font-size: 17px; color: var(--body); max-width: 58ch; }

.filter-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    margin-top: 36px; padding: 16px; border-radius: 18px;
    background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-md);
}
.filter-select {
    flex: 1 1 170px; padding: 13px 40px 13px 16px; border-radius: 12px;
    border: 1.5px solid var(--line-2); background: var(--white);
    font-family: var(--font-sans); font-size: 14px; color: var(--ink);
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230031A6' d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 49, 166, 0.1); }
.filter-clear {
    padding: 13px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    color: var(--meta); border: 1.5px solid var(--line-2);
    transition: color var(--transition), border-color var(--transition);
}
.filter-clear:hover { color: var(--blue); border-color: var(--blue); }
.filter-count { margin-top: 22px; font-size: 14px; color: var(--meta); }
.filter-count strong { color: var(--ink); font-weight: 700; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
    display: flex; align-items: flex-start; gap: 11px; padding: 15px 18px;
    border-radius: 13px; font-size: 14px; margin-bottom: 18px; border: 1px solid;
}
.alert-success { background: #E8F7EF; border-color: #A8E0C3; color: #0B6B3D; }
.alert-error   { background: #FDECEC; border-color: #F3B9B9; color: #9B1C1C; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); position: relative; overflow: hidden; }
.footer-glow {
    position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
    width: 70%; height: 80%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(0, 49, 166, 0.5), transparent 72%);
}
.footer-top { position: relative; }
.footer-container {
    position: relative; max-width: var(--container-max); margin-inline: auto;
    padding: 80px 32px 56px;
    display: grid; grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); gap: 44px;
}
.footer-brand { max-width: 38ch; }

/* Equal Housing mark */
.footer-eho {
    display: inline-flex; align-items: center; gap: 11px; margin-top: 24px;
    padding: 10px 16px 10px 12px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: rgba(255, 255, 255, 0.78); line-height: 1.5;
}
.footer-eho .eho-mark {
    width: 30px; height: 30px; border-radius: 8px; flex: none;
    display: grid; place-items: center; font-size: 14px;
    background: rgba(255, 255, 255, 0.12); color: #fff;
}

/* Button styled as a footer link (cookie settings) */
.footer-linkbtn {
    font-size: 14.5px; color: rgba(255, 255, 255, 0.62); text-align: left;
    padding: 0; font-family: inherit;
    transition: color var(--transition), padding-left var(--transition);
}
.footer-linkbtn:hover { color: #fff; padding-left: 5px; }

/* Legal disclosures block */
.footer-legal {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
}
.footer-legal-inner {
    display: block !important;
    padding: 48px 32px 44px !important;
    grid-template-columns: none !important;
}
/* Disclosures spread across the full width rather than stacking down one side */
.footer-legal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 40px;
    margin-bottom: 8px;
}
.footer-legal-inner p {
    font-size: 12.5px; line-height: 1.75;
    color: rgba(255, 255, 255, 0.46);
    margin-bottom: 0;
}
.footer-legal-inner strong { color: rgba(255, 255, 255, 0.76); font-weight: 650; }
.footer-legal-inner a { color: rgba(255, 255, 255, 0.72); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-inner a:hover { color: #fff; }

/* Registered entity facts */
.footer-entity {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1px; margin: 26px 0 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px; overflow: hidden;
}
.footer-entity div {
    background: #0B1426; padding: 16px 18px;
    display: flex; flex-direction: column; gap: 5px;
}
.footer-entity span {
    font-size: 9px; font-weight: 720; letter-spacing: 0.14em;
    text-transform: uppercase; color: rgba(255, 255, 255, 0.42);
}
.footer-entity strong {
    font-size: 13.5px; font-weight: 650; color: rgba(255, 255, 255, 0.88); line-height: 1.5;
}
.footer-verify { font-size: 12px !important; }
.footer-logo-link img { height: 52px; width: auto; max-width: 210px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.footer-tagline { margin-top: 20px; font-size: 19px; font-weight: 650; color: #fff; letter-spacing: -0.02em; }
.footer-desc { margin-top: 10px; font-size: 14.5px; color: rgba(255, 255, 255, 0.6); }
.footer-socials { display: flex; gap: 10px; margin-top: 26px; }
.social-btn {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78); font-size: 15px;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.social-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-3px); }

.footer-col-title {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: #fff; margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14.5px; color: rgba(255, 255, 255, 0.62); transition: color var(--transition), padding-left var(--transition); }
.footer-links a:hover { color: #fff; padding-left: 5px; }

.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-inner {
    max-width: var(--container-max); margin-inline: auto; padding: 26px 32px;
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
    font-size: 13px; color: rgba(255, 255, 255, 0.5);
}
.footer-awards { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.footer-awards i { color: var(--blue-light); }

/* ── Gallery lightbox ───────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 3000; display: none; }
.lb.open { display: block; animation: ccFade 0.3s var(--ease) both; }
.lb-scrim { position: absolute; inset: 0; background: rgba(6, 10, 22, 0.95); }

/* Bottom inset clears the caption, counter and thumbnail strip beneath */
.lb-stage {
    position: absolute; inset: 72px 90px 164px;
    display: grid; place-items: center;
}
.lb-stage img {
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    object-fit: contain; border-radius: 10px;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
    animation: lbIn 0.35s var(--ease) both;
}
@keyframes lbIn { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }

.lb-btn {
    position: absolute; z-index: 2;
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; font-size: 16px;
    background: rgba(255, 255, 255, 0.1); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transition: background var(--transition), transform var(--transition);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.06); }
.lb-btn:disabled { opacity: 0.3; cursor: default; transform: none; }
.lb-close { top: 20px; right: 22px; }
.lb-prev  { left: 22px;  top: 50%; margin-top: -25px; }
.lb-next  { right: 22px; top: 50%; margin-top: -25px; }

.lb-meta {
    position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: rgba(255, 255, 255, 0.72); pointer-events: none;
}
.lb-caption { font-size: 14px; font-weight: 600; color: #fff; }
.lb-count {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}
.lb-strip {
    display: flex; gap: 8px; pointer-events: auto;
    max-width: min(90vw, 620px); overflow-x: auto; padding: 4px;
    scrollbar-width: none;
}
.lb-strip::-webkit-scrollbar { display: none; }
.lb-strip button {
    width: 58px; height: 42px; border-radius: 7px; overflow: hidden; flex: none;
    border: 2px solid transparent; opacity: 0.5;
    transition: opacity var(--transition), border-color var(--transition);
}
.lb-strip button img { width: 100%; height: 100%; object-fit: cover; }
.lb-strip button.active { opacity: 1; border-color: var(--blue-light); }
.lb-strip button:hover { opacity: 1; }

@media (max-width: 760px) {
    .lb-stage { inset: 60px 10px 150px; }
    .lb-prev { left: 8px; } .lb-next { right: 8px; }
    .lb-btn { width: 42px; height: 42px; font-size: 14px; }
    .lb-strip button { width: 48px; height: 36px; }
}

/* ── Cookie consent ─────────────────────────────────────────── */
.cc { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: flex-start; }
.cc[hidden] { display: none; }
.cc-scrim {
    position: absolute; inset: 0;
    background: rgba(8, 13, 28, 0.42);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    animation: ccFade 0.4s var(--ease) both;
}
.cc-panel {
    position: relative; margin: 24px; width: min(480px, calc(100vw - 48px));
    max-height: calc(100vh - 48px); overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 40px 90px -30px rgba(8, 13, 28, 0.55), 0 2px 10px rgba(8, 13, 28, 0.08);
    animation: ccRise 0.55s var(--ease) both;
}
/* Hairline of brand colour across the top edge */
.cc-panel::before {
    content: ''; position: absolute; top: 0; left: 28px; right: 28px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), var(--blue-light), transparent);
}
@keyframes ccFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ccRise {
    from { opacity: 0; transform: translateY(26px) scale(0.985); }
    to   { opacity: 1; transform: none; }
}

.cc-main { padding: 30px 30px 26px; }
.cc-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 13px; border-radius: 999px;
    background: var(--blue-wash-2); border: 1px solid var(--blue-line);
    font-size: 10px; font-weight: 720; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 16px;
}
.cc-title { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.cc-desc { font-size: 14.5px; line-height: 1.65; color: var(--body); }

.cc-options { display: flex; flex-direction: column; gap: 8px; margin: 22px 0; }
.cc-opt {
    display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start;
    padding: 13px 15px; border-radius: 14px;
    background: var(--ground-2); border: 1px solid var(--line);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}
.cc-opt:hover { background: var(--blue-wash-2); border-color: var(--blue-line); }
.cc-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-check {
    width: 22px; height: 22px; border-radius: 7px; flex: none; margin-top: 1px;
    display: grid; place-items: center; font-size: 10px; color: transparent;
    background: var(--white); border: 1.5px solid var(--line-2);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.cc-opt input:checked ~ .cc-check { background: var(--blue); border-color: var(--blue); color: #fff; }
.cc-opt input:focus-visible ~ .cc-check { outline: 2px solid var(--blue); outline-offset: 2px; }
.cc-opt-text { font-size: 13px; line-height: 1.5; color: var(--body); }
.cc-opt-text strong {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 2px;
}
.cc-opt-text em {
    font-style: normal; font-size: 8.5px; font-weight: 720; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--blue);
    background: var(--blue-wash); border-radius: 999px; padding: 3px 8px;
}
.cc-opt--locked { cursor: default; opacity: 0.92; }
.cc-opt--locked:hover { background: var(--ground-2); border-color: var(--line); }

.cc-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.cc-actions .btn-primary, .cc-actions .btn-secondary { flex: 1 1 auto; padding: 12px 20px; font-size: 13.5px; }
.cc-decline {
    flex: 1 1 100%; padding: 9px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--meta);
    transition: color var(--transition);
}
.cc-decline:hover { color: var(--ink); text-decoration: underline; }

.cc-foot { margin-top: 16px; font-size: 12px; color: var(--meta); line-height: 1.6; }
.cc-foot a { color: var(--blue); }
.cc-foot a:hover { text-decoration: underline; }

@media (max-width: 560px) {
    .cc { align-items: flex-end; }
    .cc-panel { margin: 0; width: 100vw; max-height: 88vh; border-radius: 22px 22px 0 0; border-bottom: 0; }
    .cc-main { padding: 24px 20px 22px; }
    .cc-title { font-size: 22px; }
}

/* ── Document / content pages ───────────────────────────────── */
.doc { background: var(--white); }

.doc-hero {
    padding: calc(var(--nav-h) + 64px) 0 52px;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
}
.doc-crumbs {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
    font-size: 13px; color: var(--meta);
}
.doc-crumbs a { color: var(--blue); }
.doc-crumbs a:hover { text-decoration: underline; }
.doc-eyebrow {
    font-size: 11px; font-weight: 720; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.doc-title { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.035em; max-width: 20ch; }
.doc-intro { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--body); max-width: 62ch; }
.doc-updated { margin-top: 18px; font-size: 13px; color: var(--meta); font-variant-numeric: tabular-nums; }

.doc-layout {
    display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 64px;
    padding-block: 64px var(--section-pad);
    align-items: start;
}

/* Sticky table of contents */
.doc-toc { position: sticky; top: calc(var(--nav-h) + 28px); }
.doc-toc-title {
    display: block; font-size: 10.5px; font-weight: 720; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--meta); margin-bottom: 14px;
}
.doc-toc ul { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.doc-toc a {
    display: block; padding: 7px 0 7px 16px; margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: 13.5px; color: var(--body); line-height: 1.4;
    transition: color var(--transition), border-color var(--transition);
}
.doc-toc a:hover { color: var(--blue); border-left-color: var(--blue); }

/* Body copy */
.doc-body { max-width: 74ch; }
.doc-body--wide { max-width: 86ch; grid-column: 1 / -1; }

.doc-body h2 {
    font-size: clamp(22px, 2.4vw, 30px); font-weight: 780; letter-spacing: -0.028em;
    margin: 52px 0 16px; scroll-margin-top: calc(var(--nav-h) + 24px);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 17.5px; font-weight: 740; letter-spacing: -0.018em; margin: 28px 0 10px; }
.doc-body p { font-size: 16.5px; line-height: 1.75; color: var(--body); margin-bottom: 18px; }
.doc-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc-body a:hover { color: var(--blue-deep); }
.doc-body strong { color: var(--ink); font-weight: 700; }
.doc-body code {
    font-family: var(--font-mono); font-size: 13.5px;
    background: var(--blue-wash-2); color: var(--blue);
    padding: 2px 7px; border-radius: 6px;
}

.doc-list { display: flex; flex-direction: column; gap: 11px; margin: 0 0 22px; }
.doc-list li {
    position: relative; padding-left: 26px;
    font-size: 16.5px; line-height: 1.7; color: var(--body);
}
.doc-list li::before {
    content: ''; position: absolute; left: 4px; top: 11px;
    width: 7px; height: 7px; border-radius: 50%; background: var(--blue-light);
}

.doc-steps { counter-reset: step; display: flex; flex-direction: column; gap: 14px; margin: 0 0 22px; }
.doc-steps li {
    counter-increment: step; position: relative; padding-left: 46px;
    font-size: 16.5px; line-height: 1.7; color: var(--body);
}
.doc-steps li::before {
    content: counter(step); position: absolute; left: 0; top: 1px;
    width: 30px; height: 30px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--blue-wash-2); color: var(--blue);
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
}

/* Callouts */
.doc-callout {
    border: 1px solid var(--line); border-left: 3px solid var(--line-2);
    background: var(--ground-2); border-radius: 14px;
    padding: 20px 24px; margin: 26px 0;
    font-size: 15.5px; line-height: 1.7; color: var(--body);
}
.doc-callout strong { color: var(--ink); }
.doc-callout--brand {
    border-color: var(--blue-line); border-left-color: var(--blue);
    background: var(--blue-wash-2);
}

/* Fact / spec lists */
.doc-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
    border-radius: 16px; overflow: hidden; margin: 26px 0;
}
.doc-facts div { background: var(--white); padding: 18px 20px; display: flex; flex-direction: column; gap: 5px; }
.doc-facts span {
    font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--meta);
}
.doc-facts strong { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.45; }

/* Two-up mini cards */
.doc-grid-2 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 16px; margin: 26px 0;
}
.doc-mini {
    background: var(--ground-2); border: 1px solid var(--line);
    border-radius: 16px; padding: 24px 22px;
}
.doc-mini h3 { margin-top: 0; font-size: 15.5px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.doc-mini p { font-size: 15px; margin-bottom: 0; }
.doc-mini p + p { margin-top: 10px; }

.doc-pill {
    font-size: 9px; font-weight: 720; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 999px;
    background: var(--ground); border: 1px solid var(--line-2); color: var(--meta);
}
.doc-pill--on { background: var(--blue-wash); border-color: var(--blue-line); color: var(--blue); }

/* FAQ blocks */
.doc-faq {
    border-top: 1px solid var(--line); padding: 24px 0;
}
.doc-faq h3 { margin: 0 0 8px; font-size: 17px; }
.doc-faq p { margin-bottom: 0; }

/* Role listings */
.doc-role {
    border: 1px solid var(--line); border-radius: 18px;
    padding: 26px 26px 22px; margin: 18px 0;
    background: var(--white); box-shadow: var(--sh-sm);
}
.doc-role-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.doc-role-head h3 { margin: 0; font-size: 19px; }
.doc-role-meta {
    font-size: 12.5px !important; color: var(--meta) !important;
    letter-spacing: 0.02em; margin: 8px 0 14px !important;
}

/* Tables */
.doc-table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 14px; }
.doc-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.doc-table th, .doc-table td {
    text-align: left; padding: 14px 16px; font-size: 14.5px;
    border-bottom: 1px solid var(--line); vertical-align: top;
}
.doc-table th {
    background: var(--ground-2); color: var(--ink);
    font-size: 10.5px; font-weight: 720; letter-spacing: 0.13em; text-transform: uppercase;
}
.doc-table td { color: var(--body); }
.doc-table tr:last-child td { border-bottom: 0; }

.doc-note { font-size: 13.5px !important; color: var(--meta) !important; }
.doc-legalese {
    font-size: 13.5px !important; line-height: 1.75 !important; color: var(--meta) !important;
    background: var(--ground-2); border: 1px solid var(--line);
    border-radius: 12px; padding: 18px 20px;
}

/* Buttons inside prose: `.doc-body a` (0,1,1) outranks `.btn-primary` (0,1,0),
   so colour and underline must be restated here or buttons render as links. */
.doc-body a.btn-primary,
.doc-body a.btn-secondary,
.doc-body a.btn-white,
.doc-body a.btn-outline-white,
.doc-body a.btn-card {
    text-decoration: none;
    margin: 4px 8px 4px 0;
}
.doc-body a.btn-primary        { color: #fff; }
.doc-body a.btn-primary:hover  { color: #fff; }
.doc-body a.btn-secondary      { color: var(--ink); }
.doc-body a.btn-secondary:hover{ color: var(--blue); }
.doc-body a.btn-white          { color: var(--ink); }
.doc-body a.btn-outline-white  { color: #fff; }
.doc-body .btn-primary, .doc-body .btn-secondary { vertical-align: middle; }

@media (max-width: 1000px) {
    .doc-layout { grid-template-columns: 1fr; gap: 0; }
    .doc-toc {
        position: static; margin-bottom: 36px;
        border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
        background: var(--ground-2);
    }
    .doc-toc ul { border-left: 0; }
    .doc-toc a { padding-left: 0; border-left: 0; }
    .doc-body { max-width: none; }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }

.animate-fade-up { animation: fadeInUp 0.8s var(--ease) both; }
.anim-delay-1 { animation-delay: 0.08s; }
.anim-delay-2 { animation-delay: 0.16s; }
.anim-delay-3 { animation-delay: 0.24s; }
.anim-delay-4 { animation-delay: 0.32s; }
.anim-delay-5 { animation-delay: 0.40s; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-80 { margin-top: 80px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
    :root { --section-pad: 84px; }
    .properties-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card, .feature-card:nth-child(even) { grid-template-columns: 1fr; gap: 32px; }
    .feature-card:nth-child(even) .feature-visual { order: 0; }
    .detail-image-gallery { grid-template-columns: 1fr; }
    .gallery-aside { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr; gap: 44px; }
    .detail-right { position: static; }
    .footer-container { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; max-width: 52ch; }
    .footer-legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
    .features-wrap { grid-template-columns: 1fr; gap: 44px; }
    .features-media { position: static; aspect-ratio: 16 / 10; }
    .cta-inner { grid-template-columns: 1fr; gap: 34px; padding: 52px 40px; }
    .cta-actions { min-width: 0; }
}

@media (max-width: 900px) {
    :root { --section-pad: 70px; --nav-h: 66px; }
    .container, .nav-container, .hero-container, .footer-container,
    .detail-image-gallery, .footer-bottom-inner { padding-inline: 22px; }

    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-container { grid-template-columns: 1fr auto; }
    .nav-logo { justify-content: flex-start; }

    .hero { min-height: 80vh; }
    .hero-container { grid-template-columns: 1fr; gap: 32px; padding-bottom: 60px; }
    .hero-stats { flex-direction: row; flex-wrap: wrap; }
    .stat-item { min-width: 0; flex: 1 1 150px; padding: 13px 18px; }
    .stat-number { font-size: 24px; }
    .hero-scroll-cue { display: none; }

    .testimonials-grid {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        gap: 16px; padding-bottom: 8px; scrollbar-width: none;
    }
    .testimonials-grid::-webkit-scrollbar { display: none; }
    .testimonial-card { flex: 0 0 85%; scroll-snap-align: center; }
    .testimonial-dots { display: flex; }

    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .detail-specs-row { grid-template-columns: repeat(2, 1fr); }
    .section-header { margin-bottom: 44px; }
}

@media (max-width: 640px) {
    :root { --section-pad: 56px; }
    .container, .nav-container, .hero-container, .footer-container,
    .detail-image-gallery, .footer-bottom-inner { padding-inline: 18px; }
    .properties-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-entity { grid-template-columns: 1fr; }
    .footer-legal-grid { grid-template-columns: 1fr; gap: 18px; }
    .footer-legal-inner { padding: 36px 18px 32px !important; }
    .cta-inner { padding: 40px 26px; border-radius: 24px; }
    .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
    .hero-actions a, .cta-actions a { justify-content: center; }
    .amenities-grid, .form-row { grid-template-columns: 1fr; }
    .gallery-aside { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .mobile-overlay__inner { padding: 86px 26px 32px; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
    .cursor-glow { display: none; }
}
