*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: content always visible if JS is disabled */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 31, 63, 0.08);
}

.navbar-transparent .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-transparent .nav-link:hover {
    color: #D4A843;
}

.navbar-transparent .brand-text {
    color: #fff;
}

/* Hero gradient overlay for text readability */
.hero-dark-overlay {
    position: relative;
}

.hero-dark-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 31, 63, 0.7) 0%, rgba(10, 31, 63, 0.3) 100%);
    border-radius: inherit;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f4f9;
}

::-webkit-scrollbar-thumb {
    background: #b3c4db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #88a5c8;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background-color: #d9e1ed;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

/* Subtle pattern for gallery section */
.gallery-pattern {
    background-image: radial-gradient(circle, rgba(212, 168, 67, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}
