/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Navigation scroll effect */
.nav-scrolled {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero parallax-like subtle effect */
.hero {
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.97) 0%, rgba(13, 27, 42, 0.85) 50%, rgba(13, 27, 42, 0.7) 100%);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

/* Gold accent line animations */
@keyframes drawLine {
    from { width: 0; }
    to { width: 4rem; }
}

/* Button hover lift effect */
button, a {
    transition: all 0.2s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8da4d1;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding: 1rem 0;
}

/* Print styles */
@media print {
    nav, .hero::before, #contactForm, #formSuccess {
        display: none !important;
    }

    body {
        color: #0d1b2a;
        background: white;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
}
