/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ========== NAV ========== */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #9e0f3b;
    border-radius: 1px;
    transition: width 0.2s ease;
}
.nav-link:hover::after { width: 60%; }

/* ========== HERO BADGE ========== */
.hero-badge {
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ========== SERVICE CARDS ========== */
.service-card { transform: translateY(0); }
.service-card:hover { transform: translateY(-4px); }

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card { transform: translateY(0); }
.testimonial-card:hover { transform: translateY(-4px); }

/* ========== SCROLL REVEAL (below fold only) ========== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}

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

/* ========== MOBILE NAV ========== */
#mobile-nav {
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== FOCUS STYLES ========== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #9e0f3b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== FORM INPUTS ========== */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(158, 15, 59, 0.15);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f9fafb; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .font-display { font-size: 1.75rem; }
}
