/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c9a227;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(15, 31, 61, 0.08);
}

#navbar.scrolled .nav-link {
    color: #1a2d4a;
}

#navbar.scrolled .font-serif {
    color: #1a2d4a;
}

#navbar.scrolled .text-navy-600 {
    color: #6b7280;
}

/* Hero Animations */
.hero-fade {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-fade:nth-child(1) { animation-delay: 0.1s; }
.hero-fade:nth-child(2) { animation-delay: 0.3s; }
.hero-fade:nth-child(3) { animation-delay: 0.5s; }
.hero-fade:nth-child(4) { animation-delay: 0.7s; }
.hero-fade:nth-child(5) { animation-delay: 0.9s; }

.hero-image {
    opacity: 0;
    transform: translateX(40px);
    animation: heroImageIn 1s ease 0.4s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Reveal */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger children */
.reveal-up:nth-child(1) { transition-delay: 0.1s; }
.reveal-up:nth-child(2) { transition-delay: 0.2s; }
.reveal-up:nth-child(3) { transition-delay: 0.3s; }
.reveal-up:nth-child(4) { transition-delay: 0.4s; }

/* Mobile Menu */
#mobile-menu {
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

#mobile-menu.open {
    opacity: 1;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a227;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Image Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Button Focus States */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #0f1f3d;
}

/* Print */
@media print {
    #navbar, #contact-form, #menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
