/* ZEUS. Private Real Estate Advisory - Shared Premium Stylesheet */

/* Custom Smooth Scroll & Selection styling */
html {
    scroll-behavior: smooth;
    background-color: #F2EDE4;
}

body {
    background-color: #F2EDE4;
    color: #1B1A18;
    overflow-x: hidden;
}

/* Custom Scrollbar - Premium, minimal & thin */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #F2EDE4;
}
::-webkit-scrollbar-thumb {
    background: #B4A99B;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6F6258;
}

/* Glassmorphism Panels */
.glass-panel {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-nav {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Parallax backgrounds */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
    transition: none !important;
}

/* Shadow systems */
.editorial-shadow {
    box-shadow: 0 10px 40px -10px rgba(44, 35, 30, 0.08);
}

.premium-shadow {
    box-shadow: 0 20px 50px -15px rgba(27, 26, 24, 0.12);
}

/* Material Symbols configuration */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* Desktop Navigation Hover Effects */
nav a {
    position: relative;
    transition: color 0.4s ease;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
nav a[class*="border-b"]::after {
    display: none;
}

/* Typography micro-animations */
.font-display-lg {
    transition: letter-spacing 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.font-display-lg:hover {
    letter-spacing: 0.04em;
}

/* Premium Buttons transition */
button, .btn-luxury {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
button:hover, .btn-luxury:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -10px rgba(27, 26, 24, 0.2);
}
button:active, .btn-luxury:active {
    transform: translateY(0);
}

/* Animation System: Scroll reveal & hero effects */
.hero-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.hero-fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1), transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.stagger-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Navigation Drawer styles */
#mobile-menu {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
#mobile-menu.translate-x-full {
    transform: translateX(100%);
}
#mobile-menu.translate-x-0 {
    transform: translateX(0);
}

/* Image Galleries & Lightbox for Real Estates */
.scroll-gallery::-webkit-scrollbar {
    height: 4px;
}
.scroll-gallery::-webkit-scrollbar-thumb {
    background: #B4A99B;
    border-radius: 2px;
}

/* Lightbox Styling */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(27, 26, 24, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.active .lightbox-content {
    transform: scale(1);
}

/* Smooth zoom effect on hover */
.img-zoom-hover {
    overflow: hidden;
}
.img-zoom-hover img {
    transition: none !important;
    will-change: transform;
}

/* Property detail pages inspired by the Stitch product page reference */
.property-detail-page {
    background: #F2EDE4;
}

.property-hero-title {
    font-size: clamp(4rem, 8vw, 7.25rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.property-facts-card {
    border-radius: 2px;
}

.property-detail-page img {
    max-width: 100%;
}

@media (max-width: 767px) {
    nav .px-margin-desktop,
    .property-detail-page .px-margin-desktop {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .property-detail-page {
        padding-top: 72px;
    }

    .property-detail-page > section:first-child {
        min-height: calc(100svh - 72px);
    }

    .property-hero-title {
        font-size: clamp(3.75rem, 18vw, 5.5rem);
        line-height: 0.88;
        letter-spacing: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .property-facts-card {
        margin-left: 0;
        padding: 24px;
    }

    .property-facts-card .text-headline-lg {
        font-size: 22px;
        line-height: 1.05;
    }

    .property-detail-page .text-headline-xl {
        font-size: clamp(2.4rem, 11vw, 3.8rem);
        line-height: 0.96;
        letter-spacing: 0;
    }

    .property-detail-page .text-body-lg {
        font-size: 18px;
        line-height: 1.65;
    }
}
