/* === Base & Typography === */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: #c9a84c;
    color: #102a38;
}

/* === Navbar Transition === */
.nav-text {
    color: #102a38;
}

.nav-link {
    color: #102a38;
}

.nav-cta {
    color: #ffffff;
}

/* Dark navbar state */
header.dark .nav-text {
    color: #ffffff;
}

header.dark .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

header.dark .nav-link:hover {
    color: #c9a84c;
}

header.dark .nav-cta {
    background-color: #c9a84c;
    color: #102a38;
}

header.dark .nav-cta:hover {
    background-color: #e4bb42;
}

header.dark #bar1,
header.dark #bar2,
header.dark #bar3 {
    background-color: #ffffff;
}

/* === Service Cards === */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        transition: transform 0.5s ease, background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
    }
}

.service-card:hover {
    transform: translateY(-4px);
}

/* === Gallery Items === */
.gallery-item {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .gallery-item {
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Mobile link animations */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .mobile-link {
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
    }
}

/* === Scroll Reveal (progressive enhancement) === */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* === Form Focus States === */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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

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

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

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

/* === Smooth anchor scrolling offset for fixed header === */
section[id] {
    scroll-margin-top: 80px;
}

/* === Print Styles === */
@media print {
    header, #contact, .gallery-item img {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
