/* =========================================================
   MARINA SIDI RAHAL — Design 2025
   Modern · Responsive · Animated
   ========================================================= */

:root {
    /* Palette */
    --bg: oklch(0.985 0.008 85);
    --bg-alt: oklch(0.965 0.014 82);
    --surface: oklch(1 0 0);
    --fg: oklch(0.22 0.045 255);
    --fg-muted: oklch(0.48 0.03 250);
    --primary: oklch(0.22 0.06 255);
    --primary-hover: oklch(0.17 0.05 255);
    --gold: oklch(0.76 0.11 80);
    --gold-light: oklch(0.86 0.09 85);
    --gold-dark: oklch(0.65 0.13 70);
    --accent: oklch(0.55 0.11 235);
    --border: oklch(0.9 0.015 80);
    --sand: oklch(0.93 0.03 80);
    --white: oklch(1 0 0);

    /* Gradients */
    --grad-gold: linear-gradient(135deg, oklch(0.82 0.10 85), oklch(0.68 0.13 70));
    --grad-gold-hover: linear-gradient(135deg, oklch(0.86 0.11 88), oklch(0.72 0.14 72));
    --grad-navy: linear-gradient(135deg, oklch(0.22 0.06 255), oklch(0.32 0.08 245));
    --grad-hero: linear-gradient(180deg, oklch(0.15 0.04 255 / 0.30) 0%, oklch(0.15 0.04 255 / 0.70) 55%, oklch(0.15 0.04 255 / 0.96) 100%);
    --grad-glass: linear-gradient(135deg, oklch(1 0 0 / 0.14), oklch(1 0 0 / 0.06));

    /* Shadows */
    --shadow-sm: 0 2px 8px oklch(0.22 0.045 255 / 0.06);
    --shadow-md: 0 8px 24px oklch(0.22 0.045 255 / 0.10);
    --shadow-lg: 0 20px 50px -15px oklch(0.22 0.045 255 / 0.25);
    --shadow-xl: 0 30px 70px -20px oklch(0.22 0.045 255 / 0.35);
    --shadow-gold: 0 15px 40px -15px oklch(0.7 0.12 75 / 0.5);

    /* Layout */
    --gutter: 20px;
    --header-h: 88px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    /* Timing */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (min-width: 768px)  { :root { --gutter: 24px; --header-h: 96px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; --header-h: 104px; } }

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: clamp(14px, 0.4vw + 12px, 16px);
    line-height: 1.65;
    color: var(--fg);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--gold); color: var(--primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================ TYPOGRAPHY ============================ */
h1, h2, h3, h4, .serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--fg);
    margin: 0 0 0.5em;
}

.msr-container {
    width: 100%;
    max-width: 1280px;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    margin-inline: auto;
}
@media (min-width: 1440px) { .msr-container { max-width: 1340px; } }

.section { padding: clamp(60px, 8vw, 128px) 0; position: relative; }

.skip-link {
    position: absolute; top: 8px; left: 8px; z-index: 2000;
    background: var(--gold); color: var(--primary);
    padding: 8px 14px; border-radius: 999px;
    transform: translateY(-200%);
    transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* Section labels */
.section-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: clamp(10px, 0.9vw, 12px);
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--fg-muted); font-weight: 600;
    margin-bottom: 14px;
}
.section-label.center { justify-content: center; }
.section-label.light { color: oklch(0.92 0.02 80); }
.gold-rule {
    display: inline-block; width: 28px; height: 2px;
    background: var(--grad-gold); flex-shrink: 0;
    border-radius: 2px;
}
@media (min-width: 768px) { .gold-rule { width: 36px; } }

/* Section titles */
.section-title {
    font-size: clamp(28px, 5vw, 60px);
    margin: 0 0 18px;
    max-width: 900px;
    line-height: 1.1;
}

.lead-text {
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--fg-muted);
    margin-bottom: 16px;
}

.text-light { color: oklch(0.98 0.01 85) !important; }
.text-light-soft { color: oklch(0.92 0.02 80); }
.text-muted-soft { color: oklch(0.78 0.02 80); }
.gold-em {
    font-style: italic;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    padding-right: 4px;
}

/* ============================ BUTTONS ============================ */
.btn {
    --btn-h: 48px;
    font-family: 'Manrope', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0 26px;
    height: var(--btn-h);
    min-height: var(--btn-h);
    border: none;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), color .3s, background .3s;
    -webkit-tap-highlight-color: transparent;
}
.btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, oklch(1 0 0 / 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s var(--ease-out);
    z-index: -1;
}
.btn:hover::before { transform: translateX(120%); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
@media (min-width: 768px) { .btn { --btn-h: 52px; font-size: 12px; padding: 0 32px; } }

.btn-gold {
    background: var(--grad-gold);
    color: var(--primary);
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover { box-shadow: 0 20px 50px -15px oklch(0.7 0.12 75 / 0.7); }

.btn-navy {
    background: var(--primary);
    color: var(--white);
}
.btn-navy:hover { background: var(--primary-hover); }

.btn-outline-navy {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline-navy:hover { background: var(--primary); color: var(--white); }

.btn-glass {
    background: var(--grad-glass);
    color: var(--white);
    border: 1px solid oklch(1 0 0 / 0.35);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.btn-glass:hover { background: oklch(1 0 0 / 0.22); }

/* ============================ HEADER ============================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out);
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0%;
    background: var(--grad-gold);
    z-index: 1100;
    transition: width .1s linear;
    box-shadow: 0 0 12px var(--gold);
}

.header-top {
    background: oklch(0.15 0.04 255 / 0.92);
    color: oklch(0.94 0.015 80);
    font-size: 11px;
    overflow: hidden;
    max-height: 48px;
    transition: max-height .5s var(--ease-out), opacity .4s, padding .4s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.site-header.scrolled .header-top { max-height: 0; opacity: 0; }
.header-top-inner {
    display: flex; justify-content: center; align-items: center;
    gap: 12px; padding: 9px var(--gutter);
    flex-wrap: wrap; row-gap: 4px;
}
@media (min-width: 768px) {
    .header-top-inner { justify-content: flex-end; gap: 22px; }
    .header-top { font-size: 12px; }
}
.header-top-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.header-top-item i { color: var(--gold); }
.header-top-item:nth-child(2) { display: none; }
@media (min-width: 768px) { .header-top-item:nth-child(2) { display: inline-flex; } }

.header-main {
    background: transparent;
    transition: background .5s var(--ease-out), backdrop-filter .5s, box-shadow .5s;
}
.site-header.scrolled .header-main {
    background: oklch(0.15 0.04 255 / 0.9);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 12px 40px -20px oklch(0.15 0.04 255 / 0.6);
}
.header-main-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding-block: 12px; gap: 16px;
}
@media (min-width: 992px) { .header-main-inner { padding-block: 16px; gap: 24px; } }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo {
    height: 54px; width: auto; object-fit: contain;
    transition: height .4s var(--ease-out);
    filter: drop-shadow(0 2px 8px oklch(0 0 0 / 0.3));
}
@media (min-width: 480px) { .brand-logo { height: 62px; } }
@media (min-width: 992px) { .brand-logo { height: 72px; } }
@media (min-width: 1200px) { .brand-logo { height: 78px; } }
.site-header.scrolled .brand-logo { height: 52px; }
@media (min-width: 992px) { .site-header.scrolled .brand-logo { height: 62px; } }

.msr-nav { gap: 26px; align-items: center; }
@media (min-width: 1200px) { .msr-nav { gap: 34px; } }
.msr-nav a {
    position: relative;
    color: oklch(0.97 0.01 80);
    text-decoration: none;
    font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    font-weight: 500; padding: 6px 0;
    transition: color .3s;
    white-space: nowrap;
}
@media (min-width: 1200px) { .msr-nav a { font-size: 13px; } }
.msr-nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    height: 2px; width: 0; background: var(--grad-gold);
    border-radius: 2px;
    transition: width .35s var(--ease-out);
}
.msr-nav a:hover, .msr-nav a:focus-visible { color: var(--gold); outline: none; }
.msr-nav a:hover::after, .msr-nav a:focus-visible::after { width: 100%; }

.msr-menu-btn {
    color: var(--white);
    background: oklch(1 0 0 / 0.1);
    border: 1px solid oklch(1 0 0 / 0.3);
    border-radius: 999px;
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; font-size: 22px;
    flex-shrink: 0; cursor: pointer;
    transition: all .3s;
}
.msr-menu-btn:hover { color: var(--gold); border-color: var(--gold); background: oklch(1 0 0 / 0.2); }
@media (min-width: 992px) { .msr-menu-btn { display: none !important; } }

.header-cta-desktop { display: none; }
@media (min-width: 992px) { .header-cta-desktop { display: inline-flex; } }

/* Offcanvas */
.msr-offcanvas {
    background: oklch(0.15 0.04 255);
    color: var(--white);
    width: min(420px, 92vw) !important;
}
.msr-offcanvas .offcanvas-header {
    padding: 20px; border-bottom: 1px solid oklch(1 0 0 / 0.1);
}
.offcanvas-logo { height: 70px; width: auto; object-fit: contain; }
@media (min-width: 768px) { .offcanvas-logo { height: 92px; } }
.msr-offcanvas .offcanvas-body { padding: 24px; display: flex; flex-direction: column; }
.msr-nav-mobile { display: flex; flex-direction: column; gap: 2px; }
.msr-nav-mobile a {
    color: var(--white); text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 4vw, 28px);
    padding: 14px 0;
    border-bottom: 1px solid oklch(1 0 0 / 0.08);
    transition: color .3s, padding-left .3s, border-color .3s;
    line-height: 1.2;
}
.msr-nav-mobile a:hover, .msr-nav-mobile a:focus-visible {
    color: var(--gold); padding-left: 12px; border-color: var(--gold); outline: none;
}
.offcanvas-phone {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--white); text-decoration: none;
    font-size: 15px; letter-spacing: 0.06em;
}
.offcanvas-phone i { color: var(--gold); }

/* ============================ HERO ============================ */
.hero {
    position: relative;
    min-height: 100vh; min-height: 100svh; min-height: 100dvh;
    display: flex; align-items: flex-end;
    overflow: hidden;
    padding: calc(var(--header-h) + 40px) 0 56px;
    color: var(--white);
    isolation: isolate;
}
@media (min-width: 768px)  { .hero { padding: calc(var(--header-h) + 60px) 0 80px; } }
@media (min-width: 992px)  { .hero { padding: calc(var(--header-h) + 80px) 0 100px; } }

.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    animation: heroZoom 16s var(--ease-out) forwards;
    transform-origin: center;
    z-index: -2;
    will-change: transform;
}
@keyframes heroZoom { from { transform: scale(1.15); } to { transform: scale(1); } }

.hero-overlay {
    position: absolute; inset: 0;
    background: var(--grad-hero);
    z-index: -1;
}

.hero-content { position: relative; width: 100%; }
.hero-label {
    color: var(--gold-light);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    margin: 0 0 16px;
}
@media (min-width: 768px) { .hero-label { font-size: 12px; margin-bottom: 24px; } }

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 7.5vw, 96px);
    line-height: 1.04;
    color: var(--white);
    margin: 0 0 14px;
    max-width: 900px;
    font-weight: 500;
    text-shadow: 0 4px 30px oklch(0 0 0 / 0.35);
}
.hero-sub {
    font-size: clamp(15px, 1.8vw, 20px);
    color: oklch(0.96 0.015 80);
    margin: 0 0 10px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}
.hero-text {
    font-size: clamp(13px, 1.2vw, 16px);
    max-width: 640px;
    color: oklch(0.92 0.02 80);
    margin: 0 0 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Glass panel */
.glass-panel {
    background: var(--grad-glass);
    border: 1px solid oklch(1 0 0 / 0.22);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: var(--white);
    box-shadow: var(--shadow-xl), inset 0 1px 0 oklch(1 0 0 / 0.15);
}
@media (min-width: 768px) { .glass-panel { padding: 32px; border-radius: var(--radius-xl); } }

.hero-price { box-shadow: var(--shadow-xl); }
.badge-gold {
    display: inline-block;
    padding: 6px 14px;
    background: var(--grad-gold);
    color: var(--primary);
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 16px;
}
@media (min-width: 768px) { .badge-gold { font-size: 11px; padding: 7px 16px; } }

.price-label {
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    margin: 0 0 4px; color: oklch(0.92 0.02 80);
}
.price-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 600;
    color: var(--gold);
    margin: 0; line-height: 1.05;
}
.hero-price hr { border: none; border-top: 1px solid oklch(1 0 0 / 0.22); margin: 18px 0; }
.price-specs { display: flex; justify-content: space-between; gap: 12px; }
.spec-val {
    display: block; font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2vw, 22px); color: var(--white);
}
.spec-lbl { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.85 0.02 80); }
@media (min-width: 768px) { .spec-lbl { font-size: 11px; } }

/* ============================ INTRO ============================ */
.intro-photos { position: relative; margin-top: 24px; }
@media (min-width: 992px) { .intro-photos { margin-top: 0; } }
.intro-photo-large {
    border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-xl);
    background: var(--sand);
}
@media (min-width: 768px) { .intro-photo-large { border-radius: var(--radius-xl); } }
.intro-photo-large img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro-photo-small {
    display: none;
    position: absolute; bottom: -40px; left: -40px;
    width: 200px; aspect-ratio: 1 / 1;
    border-radius: var(--radius-md); overflow: hidden;
    border: 6px solid var(--bg);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}
@media (min-width: 1200px) { .intro-photo-small { display: block; width: 220px; } }
.intro-photo-small img { width: 100%; height: 100%; object-fit: cover; }

.visit-panel {
    background: var(--sand);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-top: 26px;
    box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .visit-panel { padding: 30px; border-radius: var(--radius-lg); } }
.visit-panel-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2vw, 24px);
    margin: 0 0 14px;
}
.visit-panel-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.visit-panel-phones { margin: 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px 15px; }
.visit-panel-phones a { color: var(--primary); text-decoration: none; font-weight: 600; transition: color .3s; }
.visit-panel-phones a:hover { color: var(--gold-dark); }

/* ============================ SERVICES ============================ */
.services { background: var(--surface); }

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    height: 100%;
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
@media (min-width: 768px) { .service-card { border-radius: var(--radius-lg); } }
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: var(--gold);
    }
}
.service-image-wrap {
    width: 100%; height: 200px;
    position: relative; overflow: hidden;
    background: var(--sand);
    flex-shrink: 0;
}
@media (min-width: 768px) { .service-image-wrap { height: 220px; } }
.service-image {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-out);
}
@media (hover: hover) {
    .service-card:hover .service-image { transform: scale(1.08); }
}
.service-image-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, oklch(0.15 0.04 255 / 0.2) 100%);
    opacity: 0; transition: opacity .4s;
    pointer-events: none;
}
.service-card:hover .service-image-wrap::after { opacity: 1; }

.service-title {
    font-size: clamp(17px, 1.8vw, 20px);
    margin: 18px 20px 8px;
    line-height: 1.2;
}
.service-text {
    font-size: clamp(13px, 1vw, 14px);
    color: var(--fg-muted);
    margin: 0; line-height: 1.6;
    padding: 0 20px 20px;
    flex-grow: 1;
}

/* ============================ ATOUTS ============================ */
.atouts { background: var(--bg-alt); }
.atout-row + .atout-row { margin-top: 48px; }
@media (min-width: 768px) { .atout-row + .atout-row { margin-top: 64px; } }
@media (min-width: 992px) {
    .atout-row + .atout-row { margin-top: 88px; }
    .atout-row-reverse { flex-direction: row-reverse; }
}
.atout-photo {
    border-radius: var(--radius-md); overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}
@media (min-width: 768px) { .atout-photo { border-radius: var(--radius-lg); } }
.atout-photo img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1s var(--ease-out);
}
@media (hover: hover) { .atout-photo:hover img { transform: scale(1.06); } }

.atout-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 3vw, 38px);
    background: var(--grad-gold);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px; letter-spacing: 0.05em; font-weight: 600;
}
.atout-title { font-size: clamp(22px, 2.5vw, 34px); margin: 0 0 12px; }
.atout-text { color: var(--fg-muted); font-size: clamp(14px, 1.2vw, 16px); margin: 0; max-width: 540px; }

/* ============================ LAUNCH ============================ */
.launch { color: var(--white); overflow: hidden; isolation: isolate; }
.launch-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.launch-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, oklch(0.15 0.04 255 / 0.92), oklch(0.22 0.06 255 / 0.85));
    z-index: -1;
}
.launch .section-title { color: var(--white); margin-inline: auto; max-width: 900px; }

/* ============================ APARTMENTS ============================ */
.apartments { background: var(--surface); }
.apartment-specs {
    list-style: none; padding: 0; margin: 22px 0 14px;
    display: grid; grid-template-columns: 1fr; gap: 12px 20px;
}
@media (min-width: 480px) { .apartment-specs { grid-template-columns: 1fr 1fr; gap: 14px 24px; } }
.apartment-specs li {
    display: flex; align-items: center; gap: 12px;
    color: var(--fg); font-size: 14px;
}
@media (min-width: 768px) { .apartment-specs li { font-size: 15px; } }
.apartment-specs i {
    color: var(--gold-dark); font-size: 18px; flex-shrink: 0;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sand); border-radius: 10px;
}
.availability { font-size: 12px; color: var(--fg-muted); margin: 0; font-style: italic; }

.apartment-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    aspect-ratio: 1 / 1;
    margin-top: 24px;
}
@media (min-width: 768px) { .apartment-collage { gap: 16px; } }
@media (min-width: 992px) { .apartment-collage { margin-top: 0; } }
.collage-main {
    grid-row: 1 / span 2; grid-column: 1;
    border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-md);
}
.collage-kit, .collage-kid { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) {
    .collage-main { border-radius: var(--radius-lg); }
    .collage-kit, .collage-kid { border-radius: var(--radius-md); }
}
.apartment-collage img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.apartment-collage img:hover { transform: scale(1.05); }

/* ============================ PLANS ============================ */
.plans { background: var(--bg-alt); }

.plan-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-bottom: 28px;
}
@media (min-width: 768px) { .plan-tabs { gap: 10px; margin-bottom: 36px; } }

.plan-tab {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--fg);
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .3s var(--ease-out);
    white-space: nowrap;
}
@media (min-width: 768px) { .plan-tab { font-size: 12px; padding: 13px 24px; } }
.plan-tab:hover {
    border-color: var(--gold); color: var(--gold-dark);
    transform: translateY(-2px);
}
.plan-tab.is-active {
    background: var(--primary); color: var(--white);
    border-color: var(--primary); box-shadow: var(--shadow-md);
}
.plan-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.plan-panel { display: none; }
.plan-panel.is-active { display: block; animation: fadeSlideIn .5s var(--ease-out); }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.plan-image-wrap {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
@media (min-width: 768px) { .plan-image-wrap { border-radius: var(--radius-lg); } }
.plan-image { width: 100%; height: auto; display: block; }

.plan-expand {
    position: absolute; top: 14px; right: 14px;
    background: var(--white); border: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--primary); cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform .3s var(--ease-out), background .3s, color .3s;
    font-size: 18px;
}
.plan-expand:hover { transform: scale(1.1); background: var(--gold); color: var(--primary); }

.plan-details {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
@media (min-width: 768px) { .plan-details { padding: 28px; border-radius: var(--radius-lg); } }
.plan-details-title {
    font-size: clamp(20px, 2.2vw, 26px);
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.plan-apts { list-style: none; padding: 0; margin: 0 0 16px; }
.plan-apts li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}
.plan-apts li:last-child { border-bottom: none; }
.plan-apts strong { color: var(--gold-dark); font-weight: 600; }
.plan-note { font-size: 12px; color: var(--fg-muted); margin: 0 0 16px; font-style: italic; }
.plan-original {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--fg-muted); text-decoration: none;
    transition: color .3s;
}
.plan-original:hover { color: var(--gold-dark); }
.plan-cta {
    display: inline-flex; align-items: center; justify-content: space-between;
    width: 100%; margin-top: 16px;
    background: var(--primary); color: var(--white);
    text-decoration: none; padding: 14px 20px;
    border-radius: 999px; font-size: 12px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    transition: background .3s, transform .3s var(--ease-out);
}
.plan-cta:hover { background: var(--gold); color: var(--primary); transform: translateY(-2px); }

/* ============================ INVEST ============================ */
.invest {
    background: var(--grad-navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.invest::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 20%, oklch(0.4 0.1 240 / 0.3), transparent 50%),
                radial-gradient(circle at 80% 80%, oklch(0.76 0.11 80 / 0.15), transparent 50%);
    z-index: -1;
}
.price-card { border: 1px solid oklch(1 0 0 / 0.18); }

/* ============================ LOCATION ============================ */
.map-wrap {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-height: 340px;
}
.map-wrap iframe { width: 100%; height: 400px; border: none; }
.map-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; min-height: 340px;
    background: linear-gradient(135deg, var(--sand), var(--bg-alt));
    color: var(--fg);
    gap: 8px;
    text-align: center;
    padding: 24px;
}
.map-placeholder i { font-size: 42px; color: var(--gold-dark); }
.map-placeholder p { margin: 0; font-size: 16px; font-weight: 600; }
.map-placeholder a {
    color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600;
    border-bottom: 1px solid currentColor; transition: opacity .3s;
}
.map-placeholder a:hover { opacity: 0.75; }

.address {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--primary); font-weight: 600;
    margin: 0 0 22px;
}
.distance-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; margin-bottom: 20px;
}
.distance-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
    transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.distance-item:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}
.distance-val {
    display: block; font-family: 'Cormorant Garamond', serif;
    font-size: clamp(20px, 2.4vw, 26px);
    color: var(--gold-dark); font-weight: 600; line-height: 1.1;
}
.distance-lbl { display: block; font-size: 11px; color: var(--fg-muted); margin-top: 4px; line-height: 1.3; }

/* ============================ GALLERY ============================ */
.gallery { background: var(--surface); }

.gallery-filters {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-bottom: 32px;
}
.gallery-filter {
    background: transparent; border: 1px solid var(--border);
    padding: 10px 20px; border-radius: 999px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--fg-muted); cursor: pointer;
    transition: all .3s var(--ease-out);
}
.gallery-filter:hover { color: var(--gold-dark); border-color: var(--gold); }
.gallery-filter.is-active {
    background: var(--primary); color: var(--white); border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 576px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 992px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.gallery-grid.is-animating { animation: galleryPulse .5s var(--ease-out); }
@keyframes galleryPulse {
    0%   { opacity: 0.5; transform: scale(0.99); }
    100% { opacity: 1;   transform: scale(1); }
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: none; padding: 0; cursor: pointer;
    background: var(--sand);
    transition: transform .5s var(--ease-out), box-shadow .4s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, oklch(0.15 0.04 255 / 0.9) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 14px;
    opacity: 0; transform: translateY(10px);
    transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
    text-align: left;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
    opacity: 1; transform: translateY(0);
}
.gallery-cat {
    font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gold-light); font-weight: 700; margin-bottom: 2px;
}
.gallery-caption {
    color: var(--white); font-size: 12px; line-height: 1.3;
    font-weight: 500;
}

/* ============================ LIFESTYLE ============================ */
.lifestyle {
    position: relative; overflow: hidden; isolation: isolate;
    color: var(--white);
}
.lifestyle-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    z-index: -2;
    will-change: transform;
}
.lifestyle-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, oklch(0.15 0.04 255 / 0.9), oklch(0.15 0.04 255 / 0.5));
    z-index: -1;
}

/* ============================ VISIT CTA ============================ */
.visit-panel-cta {
    background: var(--grad-navy);
    border-radius: var(--radius-lg);
    padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 60px);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.visit-panel-cta::before {
    content: '';
    position: absolute; top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, oklch(0.76 0.11 80 / 0.15), transparent 70%);
    z-index: -1;
}

/* ============================ CONTACT ============================ */
.contact { background: var(--bg-alt); }

.contact-group { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.contact-item {
    display: flex; gap: 16px; align-items: flex-start;
}
.contact-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: var(--primary); color: var(--gold);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    transition: transform .3s var(--ease-out), background .3s;
}
.contact-item:hover .contact-icon { transform: scale(1.06) rotate(-4deg); background: var(--gold); color: var(--primary); }
.contact-title {
    margin: 0 0 4px;
    font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--fg-muted); font-weight: 600;
}
.contact-item a, .contact-item p {
    color: var(--fg); text-decoration: none;
    display: block; font-size: 14px; line-height: 1.55;
    transition: color .3s;
}
.contact-item a:hover { color: var(--gold-dark); }

.contact-form-wrap {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-label {
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--fg-muted); margin-bottom: 6px;
}
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 14px;
    background: var(--bg-alt);
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px oklch(0.76 0.11 80 / 0.15);
    background: var(--surface);
    outline: none;
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-label { font-size: 13px; color: var(--fg-muted); }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert { border-radius: var(--radius-sm); border: none; font-size: 14px; padding: 16px 20px; }
.alert-success { background: oklch(0.94 0.06 145); color: oklch(0.28 0.08 145); }
.alert-danger  { background: oklch(0.95 0.04 25); color: oklch(0.42 0.15 25); }

/* ============================ FOOTER ============================ */
.site-footer {
    background: oklch(0.15 0.04 255);
    color: oklch(0.85 0.02 80);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) { .site-footer { padding-top: 80px; } }
.site-footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad-gold);
}
.footer-logo { height: 70px; width: auto; object-fit: contain; margin-bottom: 20px; }
.footer-desc {
    font-size: 14px; line-height: 1.65;
    color: oklch(0.78 0.02 80);
    max-width: 380px;
}
.footer-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--white);
    margin: 0 0 18px;
    font-weight: 500;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links li { font-size: 13px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.footer-links i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-links a {
    color: oklch(0.85 0.02 80); text-decoration: none;
    transition: color .3s, padding-left .3s;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-copy {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid oklch(1 0 0 / 0.08);
    text-align: center;
    font-size: 12px;
    color: oklch(0.7 0.02 80);
    letter-spacing: 0.06em;
}

/* Floating buttons */
.whatsapp-fab, .back-to-top {
    position: fixed;
    right: 20px;
    z-index: 900;
    width: 54px; height: 54px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: transform .35s var(--ease-out), box-shadow .35s;
    text-decoration: none;
}
.whatsapp-fab {
    bottom: 20px;
    background: #25D366;
    animation: floatY 3s ease-in-out infinite;
}
.back-to-top {
    bottom: 84px;
    background: var(--primary);
    border: none;
    cursor: pointer;
    opacity: 0; pointer-events: none;
    transform: translateY(10px);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.whatsapp-fab:hover, .back-to-top:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 40px -10px oklch(0 0 0 / 0.4);
}
@media (min-width: 768px) {
    .whatsapp-fab, .back-to-top { right: 28px; width: 58px; height: 58px; font-size: 26px; }
    .whatsapp-fab { bottom: 28px; }
    .back-to-top { bottom: 100px; }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ============================ LIGHTBOX ============================ */
.lightbox {
    position: fixed; inset: 0;
    background: oklch(0.1 0.02 255 / 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .35s var(--ease-out);
    padding: 20px;
}
.lightbox.is-open { opacity: 1; }
.lightbox-content {
    max-width: 95vw; max-height: 90vh;
    display: flex; flex-direction: column; align-items: center;
    transform: scale(0.95);
    transition: transform .4s var(--ease-out);
}
.lightbox.is-open .lightbox-content { transform: scale(1); }
.lightbox-img {
    max-width: 100%; max-height: 80vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 30px 80px -20px oklch(0 0 0 / 0.6);
    animation: lbImgIn .5s var(--ease-out);
}
@keyframes lbImgIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
.lightbox-caption {
    margin: 16px 0 0;
    color: var(--white);
    font-size: 14px;
    text-align: center;
    max-width: 700px;
    letter-spacing: 0.03em;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: oklch(1 0 0 / 0.12);
    border: 1px solid oklch(1 0 0 / 0.2);
    color: var(--white);
    width: 52px; height: 52px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 22px;
    backdrop-filter: blur(10px);
    transition: background .3s, transform .3s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: var(--gold); color: var(--primary); transform: scale(1.1);
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { top: 50%; left: 20px; transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: 20px; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

/* ============================ MODAL ============================ */
.plan-modal-content {
    background: oklch(0.15 0.04 255);
    color: var(--white);
    border: 1px solid oklch(1 0 0 / 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.plan-modal-content .modal-header {
    border-bottom-color: oklch(1 0 0 / 0.1);
    padding: 20px 24px;
}
.plan-modal-content .modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
}
.plan-modal-image { max-height: 70vh; margin: auto; }
.plan-modal-content .modal-footer {
    border-top-color: oklch(1 0 0 / 0.1);
    padding: 16px 24px;
}

/* ============================ REVEAL ANIMATIONS ============================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================ ACCESSIBILITY ============================ */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-bg { animation: none; }
    .whatsapp-fab { animation: none; }
}

/* ============================ RESPONSIVE POLISH ============================ */
@media (max-width: 575px) {
    .btn { --btn-h: 44px; font-size: 10px; padding: 0 20px; }
    .distance-row { grid-template-columns: 1fr; }
    .visit-panel-actions { flex-direction: column; }
    .visit-panel-actions .btn { width: 100%; }
    .plan-tab { font-size: 10px; padding: 10px 14px; }
    .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 18px; }
    .lightbox-close { width: 44px; height: 44px; font-size: 18px; }
}