/* ========================================
   MOOSEHEAD DRIVING SCHOOL — STYLES
   Classic & Elegant · Emerald + Cream
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* --- Selection --- */
::selection {
    background-color: #D4A853;
    color: #01140e;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FBF7ED;
}
::-webkit-scrollbar-thumb {
    background: #064E3B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #03291f;
}

/* --- Navbar --- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #D4A853;
    transition: width 0.3s ease;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(254, 252, 247, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

.navbar-scrolled .nav-link {
    color: #154d39;
}

.navbar-scrolled .font-serif,
.navbar-scrolled .font-sans {
    color: #064E3B !important;
}

/* --- Mobile Menu --- */
.mobile-link {
    position: relative;
}

/* --- Service Cards --- */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(6, 78, 59, 0.1);
}

/* --- Process Steps --- */
.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

.process-step .rounded-full {
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.process-step:hover .rounded-full {
    border-color: #D4A853;
    background-color: #FEFCF7;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(6, 78, 59, 0.08);
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* When JS is available, initially hide below-fold elements for animation */
.js .reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Stagger delays */
.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; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal,
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .service-card:hover,
    .process-step:hover,
    .testimonial-card:hover {
        transform: none;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

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

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet adjustments */
}
