/* === Base & Typography === */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(200, 168, 78, 0.3);
    color: #fff;
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible even if JS is disabled */
@supports not (animation-timeline: scroll()) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* === Hero entrance animations (only below the fold after initial load) === */
@media (prefers-reduced-motion: no-preference) {
    #hero-subtitle {
        animation: fadeUp 0.8s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    #hero-headline {
        animation: fadeUp 0.8s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    #hero-desc {
        animation: fadeUp 0.8s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    #hero-cta {
        animation: fadeUp 0.8s 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
}

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

/* === Navbar === */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Mobile Menu === */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* === Menu hover lines === */
#menu .group::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: rgba(200, 168, 78, 0.4);
    transition: width 0.3s ease;
    margin-top: 2px;
}

#menu .group:hover::after {
    width: 100%;
}

/* === Form focus styles === */
input:focus,
textarea:focus {
    border-image: linear-gradient(to right, #c8a84e, #d4b85e) 1;
}

input,
textarea {
    border-image: none;
}

/* === Subtle gradient overlays for sections === */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
}

/* === Image hover zoom === */
.aspect-\[4\/5\] img,
.aspect-\[4\/3\] img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.aspect-\[4\/5\]:hover img {
    transform: scale(1.03);
}

/* === Button ripple effect === */
button[type="submit"]:active {
    transform: scale(0.98);
}

/* === Map container fix === */
iframe {
    border-radius: 0;
}

/* === Utility === */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* === Print styles === */
@media print {
    nav, #contact-form, button {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
