/* ==========================================================================
   Villa Mirta — design system
   Palette: Adriatic ink, warm paper, myrtle plum accent, muted gold
   Type: Cormorant Garamond (display) + Manrope (body)
   ========================================================================== */

:root {
    --ink: #16202e;
    --ink-soft: #33415580;
    --ink-2: #33415e;
    --paper: #faf8f4;
    --sand: #f1ebe1;
    --white: #ffffff;
    --plum: #e08fa9;
    --plum-deep: #b25776;
    --plum-pale: #f9e4ec;
    --gold: #b99a6b;
    --line: rgba(22, 32, 46, 0.12);
    --shadow-sm: 0 2px 12px rgba(22, 32, 46, 0.07);
    --shadow-md: 0 12px 40px rgba(22, 32, 46, 0.12);
    --shadow-lg: 0 24px 70px rgba(22, 32, 46, 0.22);
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 84px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- shared type ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
}

.eyebrow::before {
    content: '';
    width: 2.6rem;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: 0.01em;
    color: var(--ink);
}

.section-sub {
    max-width: 640px;
    margin-top: 1rem;
    color: rgba(22, 32, 46, 0.65);
    font-size: 1.02rem;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2.2rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.35s var(--ease-out);
}

.btn-solid {
    background: var(--plum-deep);
    color: #fff;
}

.btn-solid:hover {
    background: var(--plum);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(178, 87, 118, 0.35);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

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

.btn-dark-ghost {
    background: transparent;
    color: var(--ink);
    border-color: rgba(22, 32, 46, 0.35);
}

.btn-dark-ghost:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- navbar ---------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2.2rem;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10, 16, 26, 0.55), rgba(10, 16, 26, 0));
    transition: background 0.45s ease, height 0.45s ease, box-shadow 0.45s ease;
}

.navbar.scrolled,
.navbar.solid {
    background: rgba(13, 19, 29, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    height: 68px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 52px;
    transition: height 0.45s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.navbar.scrolled .logo img,
.navbar.solid .logo img {
    height: 42px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.4rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
}

.nav-links > li > a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--plum);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: #fff;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* dropdown */

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 8px);
    background: rgba(13, 19, 29, 0.96);
    backdrop-filter: blur(14px);
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.6rem 0;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
}

.dropdown::before {
    /* hover bridge so the menu doesn't close crossing the gap */
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 14px;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-content a {
    display: block;
    padding: 0.55rem 1.4rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.dropdown-content a:hover {
    background: rgba(224, 143, 169, 0.16);
    color: #fff;
    padding-left: 1.8rem;
}

/* language switcher */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 3px;
    padding: 0.2rem;
}

.lang-switch button {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.32rem 0.55rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.lang-switch button:hover {
    color: #fff;
}

.lang-switch button.active {
    background: var(--plum-deep);
    color: #fff;
}

/* flags read as muted marks until their language is the active one */
.lang-flag {
    width: 15px;
    height: 11px;
    flex-shrink: 0;
    border-radius: 1.5px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
    opacity: 0.5;
    filter: saturate(0.25);
    transition: opacity 0.28s ease, filter 0.28s ease;
}

.lang-switch button:hover .lang-flag,
.lang-switch button.active .lang-flag {
    opacity: 1;
    filter: none;
}

/* matches the hero copy — 2px stroke behind the fill = 1px outside the glyph */
.nav-links > li > a,
.lang-switch button {
    -webkit-text-stroke: 2px #000;
    paint-order: stroke fill;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.4rem;
}

/* ---------- hero (kept: full-screen slider) ---------- */

.hero {
    height: 100vh;
    height: 100svh;
    position: relative;
    overflow: hidden;
    background: var(--ink);
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* rest state holds the zoomed-in scale so the outgoing slide never
       snaps back to 1 during the crossfade */
    transform: scale(1.08);
    transition: opacity 1.8s ease-in-out;
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1;
    /* duration matches the slider interval so the zoom completes exactly
       at the handoff, then holds via `forwards` (= rest state) */
    animation: kenburns 7s ease-out forwards;
}

@keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-slide.slide1 { background-image: url('images/hero-1.webp'); }
.hero-slide.slide2 { background-image: url('images/hero-2.webp'); }
.hero-slide.slide3 { background-image: url('images/hero-3.webp'); }
.hero-slide.slide4 { background-image: url('images/hero-4.webp'); }
.hero-slide.slide5 { background-image: url('images/hero-5.webp'); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10, 16, 26, 0.42) 0%, rgba(10, 16, 26, 0.16) 45%, rgba(10, 16, 26, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 1.5rem;
}

.hero-eyebrow {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.44em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.4rem;
    opacity: 0;
    animation: heroRise 1.1s var(--ease-out) 0.3s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    animation: heroRise 1.2s var(--ease-out) 0.55s forwards;
}

.hero-tagline {
    max-width: 460px;
    margin-top: 1.1rem;
    font-size: clamp(0.86rem, 1.2vw, 0.98rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.84);
    opacity: 0;
    animation: heroRise 1.2s var(--ease-out) 0.85s forwards;
}

/* black outline so the hero copy holds up over bright photos.
   text-stroke centers on the glyph edge, so 2px painted behind the fill
   (paint-order) leaves exactly 1px visible on the outside, 0 inside */
.hero-eyebrow,
.hero-title,
.hero-tagline {
    -webkit-text-stroke: 2px #000;
    paint-order: stroke fill;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    margin-top: 2.1rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: heroRise 1.2s var(--ease-out) 1.1s forwards;
}

.hero-actions .btn {
    padding: 0.72rem 1.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(34px); }
    to { opacity: 1; transform: translateY(0); }
}

/* scroll-linked fade (driven by script.js) */
.hero-slider,
.hero-content {
    will-change: opacity;
}

.hero-dots {
    position: absolute;
    bottom: 2.2rem;
    right: 2.6rem;
    z-index: 3;
    display: flex;
    gap: 0.6rem;
}

.hero-dots button {
    width: 34px;
    height: 3px;
    border: none;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-dots button.active {
    background: #fff;
}

.hero-scroll {
    position: absolute;
    bottom: 3.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    text-shadow: 0 2px 16px rgba(10, 16, 26, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.55); opacity: 0.5; }
}

/* ---------- reveal on scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }
.reveal-d4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-slide { transform: none; }
    .hero-slide.active { animation: none; }
    .hero-eyebrow, .hero-title, .hero-tagline, .hero-actions { animation: none; opacity: 1; }
    html { scroll-behavior: auto; }
}

/* ---------- about section ---------- */

.about {
    position: relative;
    z-index: 3;
    margin-top: 0;
    background: var(--paper);
    padding: clamp(4rem, 8vw, 7rem) 2rem 0;
}

.about-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}

.about-text p {
    color: rgba(22, 32, 46, 0.72);
    margin-top: 1.25rem;
    font-size: 0.98rem;
}

.about-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
}

.collage-item:nth-child(1) { transform: translateY(1.6rem); }
.collage-item:nth-child(3) { transform: translateY(1.6rem); }

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.collage-item:hover img {
    transform: scale(1.07);
}

.collage-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(22, 32, 46, 0);
    transition: background 0.4s ease;
}

.collage-item:hover::after {
    background: rgba(22, 32, 46, 0.14);
}

/* stats strip */

.stats {
    max-width: 1280px;
    margin: clamp(4rem, 8vw, 6.5rem) auto 0;
    padding: 2.8rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 500;
    color: var(--plum-deep);
    line-height: 1;
}

.stat-label {
    margin-top: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(22, 32, 46, 0.55);
}

/* ---------- discover (dark editorial band) ---------- */

.discover {
    margin-top: clamp(5rem, 10vw, 8.5rem);
    background: var(--ink);
    color: #fff;
    padding: clamp(5rem, 9vw, 7.5rem) 2rem;
    position: relative;
    overflow: hidden;
}

.discover::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 143, 169, 0.16), transparent 70%);
    pointer-events: none;
}

.discover-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}

.discover .section-title {
    color: #fff;
}

.discover-text p {
    color: rgba(255, 255, 255, 0.72);
    margin-top: 1.25rem;
    font-size: 0.98rem;
}

.discover-images {
    display: grid;
    gap: 1.1rem;
}

.discover-images .img-main {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-lg);
}

.discover-images .img-main img,
.discover-images .img-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.discover-images .img-sub {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    box-shadow: var(--shadow-lg);
}

.discover-images div:hover img {
    transform: scale(1.06);
}

/* ---------- amenities ---------- */

.amenities {
    padding: clamp(5rem, 10vw, 8.5rem) 2rem;
    background: var(--sand);
}

.amenities-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.amenities-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.amenities-head .section-sub {
    margin-left: auto;
    margin-right: auto;
}

.amenities-head .eyebrow::after {
    content: '';
    width: 2.6rem;
    height: 1px;
    background: var(--gold);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.amenity-item {
    background: var(--white);
    padding: 2.4rem 1.8rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.45s var(--ease-out);
}

.amenity-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--plum-pale);
}

.amenity-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.3rem;
    border-radius: 50%;
    background: var(--plum-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum-deep);
    transition: all 0.45s var(--ease-out);
}

.amenity-item:hover .amenity-icon {
    background: var(--plum-deep);
    color: #fff;
    transform: scale(1.08);
}

.amenity-icon svg {
    width: 28px;
    height: 28px;
}

.amenity-item h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.amenity-item p {
    font-size: 0.88rem;
    color: rgba(22, 32, 46, 0.62);
}

/* ---------- apartments preview ---------- */

.apartments {
    padding: clamp(5rem, 10vw, 8.5rem) 2rem;
}

.apartments-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.apartments-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: clamp(2.6rem, 5vw, 4rem);
    flex-wrap: wrap;
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.apt-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s var(--ease-out);
}

.apt-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.apt-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--sand);
}

.apt-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out);
}

.apt-card:hover .apt-card-img img {
    transform: scale(1.08);
}

.apt-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 32, 46, 0.35), transparent 45%);
}

.apt-card-size {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(13, 19, 29, 0.72);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
}

.apt-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #e6dced, #f1ebe1 60%, #e3d9c9);
    color: var(--plum-deep);
}

.apt-placeholder svg {
    width: 44px;
    height: 44px;
    opacity: 0.65;
}

.apt-placeholder span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.75;
}

.apt-card-body {
    padding: 1.6rem 1.7rem 1.8rem;
}

.apt-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.1;
}

.apt-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    margin: 0.8rem 0 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(22, 32, 46, 0.6);
}

.apt-card-specs span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.apt-card-specs svg {
    width: 15px;
    height: 15px;
    color: var(--plum);
}

.apt-card-blurb {
    font-size: 0.88rem;
    color: rgba(22, 32, 46, 0.62);
    margin-bottom: 1.2rem;
}

.apt-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--plum-deep);
    transition: gap 0.35s var(--ease-out);
}

.apt-card:hover .apt-card-link {
    gap: 1rem;
}

.apt-card-link svg {
    width: 16px;
    height: 16px;
}

/* ---------- CTA band ---------- */

.cta-band {
    position: relative;
    padding: clamp(6rem, 12vw, 9.5rem) 2rem;
    background-image: url('images/hero-3.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 19, 29, 0.62);
}

.cta-band-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.cta-band .section-title {
    color: #fff;
}

.cta-band p {
    margin: 1.2rem auto 2.4rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
}

@media (max-width: 1024px) {
    .cta-band {
        background-attachment: scroll;
    }
}

/* ---------- apartment page ---------- */

.apt-hero {
    position: relative;
    height: 62vh;
    min-height: 440px;
    background-size: cover;
    background-position: center;
    background-color: var(--ink);
    display: flex;
    align-items: flex-end;
}

.apt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 16, 26, 0.5) 0%, rgba(10, 16, 26, 0.08) 45%, rgba(10, 16, 26, 0.72) 100%);
}

.apt-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 3.2rem;
    color: #fff;
}

.apt-breadcrumb {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.9rem;
}

.apt-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.25s ease;
}

.apt-breadcrumb a:hover {
    color: #fff;
}

.apt-hero-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.05;
    opacity: 0;
    animation: heroRise 1s var(--ease-out) 0.2s forwards;
}

.apt-hero-sub {
    margin-top: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    opacity: 0;
    animation: heroRise 1s var(--ease-out) 0.4s forwards;
}

/* spec bar */

.apt-specbar {
    background: var(--ink);
    color: #fff;
    padding: 0 2rem;
}

.apt-specbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.apt-spec {
    padding: 1.6rem 1.8rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.apt-spec svg {
    width: 30px;
    height: 30px;
    color: var(--plum);
    flex-shrink: 0;
}

.apt-spec-label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.apt-spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

/* apartment body */

.apt-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 6.5rem) 2rem;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: start;
}

.apt-desc p {
    color: rgba(22, 32, 46, 0.72);
    margin-top: 1.25rem;
    font-size: 0.98rem;
}

.apt-desc .btn {
    margin-top: 2.2rem;
}

.apt-amenities {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.2rem 2.2rem 2.4rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(68px + 1.5rem);
}

.apt-amenities h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.3rem;
}

.apt-amenities ul {
    list-style: none;
}

.apt-amenities li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.55rem 0;
    font-size: 0.9rem;
    color: rgba(22, 32, 46, 0.75);
    border-bottom: 1px solid rgba(22, 32, 46, 0.06);
}

.apt-amenities li:last-child {
    border-bottom: none;
}

.apt-amenities li svg {
    width: 17px;
    height: 17px;
    color: var(--plum-deep);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* gallery */

.apt-gallery {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem clamp(4rem, 8vw, 6.5rem);
}

.apt-gallery-head {
    margin-bottom: 2.2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--sand);
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(22, 32, 46, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(22, 32, 46, 0.16);
}

.gallery-item:nth-child(6n + 1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--plum-deep);
    background: linear-gradient(135deg, #e6dced, #f1ebe1 60%, #e3d9c9);
    cursor: default;
}

.gallery-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.6;
}

.gallery-placeholder span {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.75;
}

/* prev / next apartment */

.apt-pager {
    border-top: 1px solid var(--line);
    background: var(--white);
}

.apt-pager-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.apt-pager a {
    padding: 2.2rem 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: background 0.3s ease;
}

.apt-pager a:hover {
    background: var(--sand);
}

.apt-pager a.next {
    text-align: right;
    border-left: 1px solid var(--line);
}

.apt-pager-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(22, 32, 46, 0.5);
}

.apt-pager-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
}

/* ---------- lightbox modal ---------- */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(10, 14, 22, 0.94);
    backdrop-filter: blur(8px);
}

.modal.open {
    display: block;
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: min(92vw, 1400px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.modal-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 30px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    background: none;
    border: none;
    font-family: var(--font-body);
}

.close-modal:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: white;
    font-size: 20px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2001;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.08);
}

.modal-nav.prev { left: 24px; }
.modal-nav.next { right: 24px; }

/* ---------- contact page ---------- */

.contact-page-body {
    background-image: url('images/hero-2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.contact-page-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(13, 19, 29, 0.55);
    backdrop-filter: blur(6px);
    z-index: -1;
}

.contact-form-section {
    padding: calc(var(--nav-h) + 3rem) 2rem 4.5rem;
    max-width: 860px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    color: #fff;
    margin-bottom: 2.4rem;
}

.contact-intro .eyebrow {
    color: var(--gold);
}

.contact-intro .eyebrow::before,
.contact-intro .eyebrow::after {
    content: '';
    width: 2.6rem;
    height: 1px;
    background: var(--gold);
}

.contact-intro .section-title {
    color: #fff;
}

.contact-intro p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin: 0.8rem auto 0;
    font-size: 0.95rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.97);
    padding: clamp(1.8rem, 4vw, 3rem);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group > label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(22, 32, 46, 0.18);
    border-radius: 3px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--plum);
    box-shadow: 0 0 0 3px rgba(224, 143, 169, 0.22);
}

.form-row {
    display: flex;
    gap: 1.2rem;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    gap: 0.6rem 1.4rem;
    flex-wrap: wrap;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item label,
.radio-item label {
    font-size: 0.92rem;
    color: rgba(22, 32, 46, 0.8);
}

.checkbox-item input,
.radio-item input {
    width: auto;
    accent-color: var(--plum-deep);
}

.radio-group {
    display: flex;
    gap: 2rem;
}

.submit-btn {
    background: var(--plum-deep);
    color: white;
    padding: 1.05rem 2rem;
    border: none;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    width: 100%;
}

.submit-btn:hover {
    background: var(--plum);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(178, 87, 118, 0.4);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.error-message {
    color: #c0392b;
    font-size: 0.82rem;
    margin-top: 0.3rem;
    display: none;
}

.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2e7d32;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    z-index: 10000;
    animation: slideInRight 0.35s var(--ease-out);
    font-size: 0.92rem;
}

@keyframes slideInRight {
    from { transform: translateX(110%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ---------- footer (kept structure) ---------- */

.footer {
    background: #0d131d;
    color: white;
    padding: 4rem 2rem 1.6rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--plum), transparent);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto 2.4rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.footer-section h3 {
    margin-bottom: 1.2rem;
    color: #fff;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.footer-section:first-child .contact-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 0.5rem;
    align-items: center;
}

.contact-content p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.contact-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--plum);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.contact-content p:hover .contact-icon {
    stroke: var(--plum-pale);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    text-align: center;
    font-size: 0.92rem;
}

.footer-section a:hover {
    color: var(--plum);
}

.video-container,
.map-container {
    width: 100%;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe,
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ---------- a11y ---------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--plum);
    outline-offset: 2px;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apartments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apt-specbar-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .apt-spec {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .apt-body {
        grid-template-columns: 1fr;
    }

    .apt-amenities {
        position: static;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .about-inner,
    .discover-inner {
        grid-template-columns: 1fr;
    }

    .discover-inner {
        gap: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(6n + 1) {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16 / 8;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .navbar {
        padding: 0 1.2rem;
        background: rgba(13, 19, 29, 0.5);
    }

    .nav-right {
        gap: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 19, 29, 0.97);
        backdrop-filter: blur(14px);
        flex-direction: column;
        padding: 1.4rem;
        gap: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        align-items: flex-start;
    }

    .nav-links.active {
        display: flex;
        animation: modalFade 0.25s ease;
    }

    .dropdown-content {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        min-width: 0;
        padding: 0.4rem 0 0 1rem;
        display: none;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .dropdown::before {
        display: none;
    }

    .hero-dots {
        right: 50%;
        transform: translateX(50%);
        bottom: 8.5rem;
    }

    .apartments-grid {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .amenity-item {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1.3rem;
        padding: 1.4rem 1.5rem;
    }

    .amenity-icon {
        margin: 0;
        flex-shrink: 0;
        width: 56px;
        height: 56px;
    }

    .about-collage {
        gap: 0.8rem;
    }

    .collage-item:nth-child(1),
    .collage-item:nth-child(3) {
        transform: none;
    }

    .stats {
        gap: 1.6rem 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .checkbox-group,
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .footer-section {
        min-height: 0;
    }

    .apt-pager-inner {
        grid-template-columns: 1fr;
    }

    .apt-pager a.next {
        border-left: none;
        border-top: 1px solid var(--line);
    }

    .apt-specbar-inner {
        grid-template-columns: 1fr;
        border-left: none;
    }

    .apt-spec {
        border-right: none;
        padding: 1.1rem 0.4rem;
    }

    .modal-nav {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .modal-nav.prev { left: 10px; }
    .modal-nav.next { right: 10px; }

    .success-message {
        top: 10px;
        right: 10px;
        left: 10px;
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(6n + 1) {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* Booking form — honeypot, privacy note, error toast */
.botcheck {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-privacy {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(22, 32, 46, 0.62);
    margin: 0 0 1rem;
    max-width: 60ch;
}

.success-message.error-toast {
    background: #c0392b;
    max-width: min(28rem, calc(100vw - 40px));
}
