/* Shared UX styles across all pages */

:root {
    --gold: #c5a059;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.site-loader-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    letter-spacing: 0.35em;
    color: #f5f5f5;
    text-transform: uppercase;
}

.site-loader-logo span {
    color: #c5a059;
}

#site-header {
    height: 80px;
}

@media (min-width: 768px) {
    #site-header {
        height: 96px;
    }
}

/* Unified nav scroll state */
.site-nav {
    min-height: 80px;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

@media (min-width: 768px) {
    .site-nav {
        min-height: 96px;
    }
}

.site-nav.scrolled {
    background: rgba(10, 10, 10, 0.88) !important;
    border-bottom-color: rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(16px);
}

/* Shared mobile menu behavior */
.site-mobile-menu {
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.site-mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Shared scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section heading emphasis */
section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-transform: uppercase;
}

section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.05;
}

section h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

section .serif {
    font-weight: 700;
}

section p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.7;
}

/* Keep existing utility styles */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

.text-gradient {
    background: linear-gradient(135deg, #c5a059, #f5f5f5, #c5a059);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.shimmer {
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 60%);
    background-size: 800px 104px;
    animation: shimmer 2s infinite;
}

.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item {
    opacity: 0.3;
    transition: all 0.5s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: scale(1.05);
}

.masonry-grid {
    column-count: 3;
    column-gap: 1rem;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
}

@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .masonry-grid {
        column-count: 1;
    }
}

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    #site-header {
        height: 72px;
    }

    .site-nav {
        min-height: 72px;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    section h2 {
        font-size: 0.85rem;
        letter-spacing: 0.35em;
    }

    section h3 {
        font-size: 1.9rem;
        line-height: 1.1;
    }

    section p {
        font-size: 0.98rem;
    }

    footer .grid,
    footer .flex {
        gap: 1.25rem;
    }

    .site-loader-logo {
        font-size: 1.2rem;
        letter-spacing: 0.25em;
    }
}