/* ============================================
   Quick Leads — Custom Styles
   Deep Navy + Warm Gold | Fresh & Airy
   ============================================ */

/* --- Custom properties --- */
:root {
    --color-navy-900: #0A1628;
    --color-navy-800: #111F3C;
    --color-navy-700: #1A2D50;
    --color-gold-500: #C9A227;
    --color-gold-400: #D4B44A;
    --color-cream-50: #FDFBF7;
    --color-cream-100: #FAF6EE;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(201, 162, 39, 0.2);
    color: var(--color-navy-900);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-cream-50);
}
::-webkit-scrollbar-thumb {
    background: rgba(17, 31, 60, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(17, 31, 60, 0.4);
}

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

#navbar.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.nav-link {
    color: rgba(10, 22, 40, 0.65);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-gold-500);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-navy-900);
}

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

/* --- Mobile menu button --- */
#menu-btn {
    color: var(--color-navy-800);
}

#menu-btn.active #menu-icon-1 {
    transform: rotate(45deg) translate(0, 0);
}
#menu-btn.active #menu-icon-2 {
    opacity: 0;
}
#menu-btn.active #menu-icon-3 {
    transform: rotate(-45deg) translate(0, 0);
    width: 1.25rem;
}

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

.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    transform: translateY(-2px);
}

/* --- Reveal animations (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

    .reveal:nth-child(2) { transition-delay: 0.08s; }
    .reveal:nth-child(3) { transition-delay: 0.16s; }
    .reveal:nth-child(4) { transition-delay: 0.24s; }
    .reveal:nth-child(5) { transition-delay: 0.32s; }
}

/* --- Hero stagger --- */
.hero-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .hero-reveal {
        opacity: 0;
        transform: translateY(32px);
    }

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

    .hero-reveal:nth-of-type(1) { transition-delay: 0.1s; }
    .hero-reveal:nth-of-type(2) { transition-delay: 0.2s; }
    .hero-reveal:nth-of-type(3) { transition-delay: 0.3s; }
    .hero-reveal:nth-of-type(4) { transition-delay: 0.4s; }
    .hero-reveal:nth-of-type(5) { transition-delay: 0.5s; }
}

/* --- Service cards --- */
.service-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

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

/* --- Button hover glow --- */
.btn-glow:hover {
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

/* --- Input focus --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Form select arrow --- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* --- Smooth image loading --- */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* --- Print styles --- */
@media print {
    nav, #contact-form, .reveal { display: none; }
    body { background: white; color: black; }
}
