/* ─── Base & Utilities ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ─── Scroll Reveal (progressive enhancement) ─── */
.js-enabled .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);
}
.js-enabled .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.js-enabled .reveal-delay-1 { transition-delay: 0.1s; }
.js-enabled .reveal-delay-2 { transition-delay: 0.2s; }
.js-enabled .reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Nav ─── */
#nav.scrolled {
    background: rgba(3, 9, 20, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}
#mobile-menu.open .mobile-link {
    animation: fadeDown 0.3s ease forwards;
}
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Menu Button Animation ─── */
.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-btn.active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ─── Service Cards ─── */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover {
    border-color: rgba(200, 164, 78, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(200, 164, 78, 0.05);
}

/* ─── Gold shimmer on CTA buttons ─── */
button[type="submit"]:hover,
a[href="tel:+14102253838"]:hover {
    box-shadow: 0 10px 40px rgba(200, 164, 78, 0.2) !important;
}

/* ─── Input focus states ─── */
input:focus, select:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.07) !important;
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #030914; }
::-webkit-scrollbar-thumb { background: rgba(200, 164, 78, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200, 164, 78, 0.5); }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .js-enabled .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .font-serif { line-height: 1.15; }
}
