/* ==================== Michamvi Landing Page Styles ==================== */
/* These styles are specifically for landing.html, building upon style.css variables */

/* Landing Page Base Resets */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

.landing-body {
    background-color: #FAF9F6;
    color: #2c3539;
}

.landing-wrapper {
    position: relative;
    width: 100%;
    z-index: 1;
}

/* Typography Resets for Landing */
.text-dark {
    color: #1a1a1a;
    font-weight: 500;
}

.text-muted {
    color: rgba(44, 53, 57, 0.6);
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.italic {
    font-style: italic;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.border-top {
    border-top: 1px solid var(--color-border);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


.cta-section {
    padding: 100px 0;
    text-align: center;
}

.landing-section {
    padding: 6rem 0;
    position: relative;
}

.dark-bg {
    background-color: #FAF9F6;
    /* Originally dark section, now Pearl White */
}

.light-bg {
    background-color: #f7f9fa;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title.large {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--color-accent);
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.text-highlight {
    background: linear-gradient(90deg, #38b6ff, #1a8ccd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding: 0 10px;
    border-radius: 4px;
    font-weight: 700;
}

.landing-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(44, 53, 57, 0.85);
    margin-bottom: 1.5rem;
}

.landing-section .light-bg p,
.light-bg p {
    color: #2c3539;
    font-weight: 400;
}

.highlight-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-accent);
}

.highlight-text.large {
    font-size: 1.8rem;
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.landing-nav.scrolled {
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.landing-nav.scrolled .nav-links a {
    color: #2c3539;
}

.landing-nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-logo {
    height: 80px;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.landing-nav.scrolled .nav-logo {
    height: 55px;
    filter: brightness(0) opacity(0.8);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-cta {
    background: var(--color-accent);
    color: #000 !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(68, 217, 230, 0.3);
}

.nav-cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    transition: color 0.3s ease;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.landing-nav.scrolled .mobile-menu-btn {
    color: #2c3539;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.landing-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: #000;
}

.hero-fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 1s ease;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    /* Instead of forcing 'cover' which heavily zooms 16:9 on ultrawide, 
       we constrain it to prevent pixelation */
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    /* Hidden initially, faded in via JS when ready */
    transition: opacity 1.5s ease;
    max-width: 100vw;
}

/* Specific media query for super wide screens to prevent aggressive video zoom */
@media (min-aspect-ratio: 16/9) {

    .hero-video-bg video,
    .hero-fallback-img {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 16/9) {

    .hero-video-bg video,
    .hero-fallback-img {
        width: auto;
        height: 100%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.main-hero-logo {
    max-width: 600px;
    width: 90%;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.scroll-indicator {
    position: absolute;
    bottom: -15vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.blink {
    animation: bounceFade 2s infinite;
}

@keyframes bounceFade {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

/* Layouts */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.layout-grid-reverse {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.rounded-image {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.shadow-img {
    box-shadow: var(--shadow-lg);
}

/* Masonry mimics */
.image-grid.masonry-2 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-grid.masonry-2-reverse {
    display: flex;
    flex-direction: column-reverse;
    gap: 1.5rem;
}

.tall-img {
    height: 400px;
}

.short-img {
    height: 250px;
}

/* Specs Grid */
.specs-grid-dark {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.spec-item-dark {
    background: rgba(0, 0, 0, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.spec-value-dark {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.spec-label-dark {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.amenity-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.amenity-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    text-align: left;
}

.card-overlay h4 {
    color: white;
    font-size: 1.4rem;
    font-weight: 500;
}

.amenity-card:hover img {
    transform: scale(1.05);
}

/* Investment Section */
.dark-overlay-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Restored black overlay */
}

.opacity-80 {
    background: rgba(0, 0, 0, 0.7);
}

.investment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 3rem;
}

.investment-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.clean-list {
    list-style: none;
    padding: 0;
}

.clean-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 1rem;
    color: rgba(44, 53, 57, 0.85);
    line-height: 1.6;
}

.clean-list li::before {
    content: '•';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.clean-list li strong {
    color: #1a1a1a;
}

/* Force specific colors for textual contrast on dark media overlays */
.cta-section {
    color: #ffffff;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .section-title {
    color: #ffffff;
}

.cta-section .section-subtitle {
    color: var(--color-accent);
}

/* Developer Section */
.accent-line {
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

.stats-glass-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.stats-list {
    list-style: none;
}

.stats-list li {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.text-accent {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
}

.cta-icon {
    width: 150px;
    height: 150px;
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--color-accent);
    color: #000;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(68, 217, 230, 0.3);
}

.btn-primary-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(68, 217, 230, 0.5);
    background: #FFD700;
}

/* Animations (To be triggered by GSAP) */
/* Initially hide elements that will be animated by GSAP to prevent flashes */
.gsap-fade-up,
.gsap-amenity-unique,
.gsap-clip-reveal {
    opacity: 0;
}

.gsap-amenity-unique {
    /* Setup 3D transform origin for a unique flip-up effect */
    transform-origin: 50% 100%;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.clip-reveal-container {
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    height: 100%;
}

.clip-reveal-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    /* GSAP will scale this down to 1 */
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .landing-section {
        padding: 4rem 0;
        /* Tighter padding for mobile */
    }

    .layout-grid,
    .layout-grid-reverse,
    .specs-grid-dark {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .landing-nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: #FAF9F6;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        display: flex;
        z-index: 1000;
    }

    .landing-nav .nav-links.active {
        right: 0;
    }

    .landing-nav .nav-links a {
        color: #2c3539 !important;
        font-size: 1.3rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .landing-nav {
        padding: 15px 5%;
    }

    .landing-nav.scrolled {
        padding: 10px 5%;
    }

    .nav-logo,
    .landing-nav.scrolled .nav-logo {
        height: 50px;
        /* Force smaller logo on tablet/mobile */
    }

    .investment-grid {
        gap: 2rem;
    }

    .tall-img,
    .short-img {
        height: auto;
        max-height: 400px;
    }

    .glass-card,
    .stats-glass-card {
        padding: 2rem !important;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .specs-grid-dark {
        grid-template-columns: 1fr;
        /* Single column specs for very small screens */
        gap: 1rem;
    }

    .glass-card,
    .stats-glass-card {
        padding: 1.5rem !important;
    }

    .btn-primary-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* ============================================================
   MOBILE FIXES - Paste these into landing.css
   (Replace or append at the bottom of the file)
   ============================================================ */

/* ── Fix 1: Hero full-height on mobile (no gaps) ──────────── */

/* Remove the aspect-ratio media queries that cause portrait gaps */
/* DELETE or comment out these existing rules in landing.css:
   @media (min-aspect-ratio: 16/9) { ... }
   @media (max-aspect-ratio: 16/9) { ... }
   and REPLACE with the block below: */

.hero-video-bg video,
.hero-fallback-img {
    /* Always cover the full container regardless of aspect ratio */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Ensure the hero itself is truly full-viewport on mobile */
.landing-hero {
    height: 100svh;
    /* svh = small viewport height, avoids mobile browser chrome gap */
    min-height: 100vh;
    /* fallback for browsers without svh support */
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    /* shorthand for top/right/bottom/left: 0 */
    width: 100%;
    height: 100%;
    overflow: hidden;
}


/* ── Fix 2: Touch scrolling on mobile ─────────────────────── */

/* style.css sets overflow: hidden on body/html which blocks touch scroll.
   Override it specifically for the landing page. */

.landing-body,
html:has(.landing-body) {
    overflow-x: hidden;
    overflow-y: auto;
    /* re-enable vertical scroll */
    height: auto;
    /* don't lock to viewport height */
    overscroll-behavior-y: auto;
}

/* Lenis smooth scroll already disables itself on touch (smoothTouch: false),
   so native momentum scroll takes over on mobile — but only if overflow is not hidden */

/* Also ensure the landing wrapper doesn't accidentally clip */
.landing-wrapper {
    overflow: visible;
    min-height: 100vh;
}

/* Prevent any accidental touch-action blocking */
.landing-hero,
.landing-section,
.hero-video-bg {
    touch-action: pan-y;
    /* allow vertical swipe/scroll */
}

.cta-section {
    padding: 80px 20px;
    overflow: hidden;
}

.dark-overlay-full {
    position: absolute;
    inset: 0;
}

@media (max-width: 768px) {
    .cta-section {
        background-size: auto !important;
        background-repeat: no-repeat !important;
    }
}

/* ==================== Location Map (add to landing.css) ==================== */

.location-map-wrapper {
    margin-top: 1.5rem;
}

.location-map-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.location-map-label i {
    font-size: 0.9rem;
}

.location-map-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(68, 217, 230, 0.2);
}

.location-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
    border-radius: 20px;
}

.location-map-frame:hover .location-map-img {
    transform: scale(1.03);
}

/* Pulsing pin overlay — positions roughly center; adjust as needed */
/* .map-pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.map-pin-dot {
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(68, 217, 230, 0.4);
    position: relative;
    z-index: 2;
} */

/* .map-pin-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--color-accent);
    animation: mapPulse 2s ease-out infinite;
    z-index: 1;
}

@keyframes mapPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
} */


/* ==================== Contact Section (add to landing.css) ==================== */

.contact-field-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-field label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: #f7f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    -webkit-appearance: none;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(68, 217, 230, 0.15);
    background: #fff;
}

.contact-field textarea {
    resize: vertical;
    min-height: 110px;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(68, 217, 230, 0.3);
    margin-top: 0.5rem;
}

.contact-submit-btn:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: rgba(68, 217, 230, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 2px;
}

.contact-info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
}

a.contact-info-value:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .contact-field-row {
        grid-template-columns: 1fr;
    }
}