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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #D4A017;
    color: #0A1F44;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1F44;
}
::-webkit-scrollbar-thumb {
    background: #D4A017;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E2B32A;
}

/* === Navigation === */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #D4A017;
    transition: width 0.3s ease;
    margin-top: 2px;
}
.nav-link:hover::after {
    width: 100%;
}

/* === Hero Stat Cards === */
.stat-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* === Service Cards === */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4A017, #E2B32A);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* === Gallery === */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 31, 68, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* === Mobile Menu === */
.mobile-link {
    border-left: 3px solid transparent;
    padding-left: 12px;
    margin-left: -12px;
}

.mobile-link:hover {
    border-left-color: #D4A017;
    color: #fff;
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

/* === Focus Styles === */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
}
