/* ============================================
   Town & Country Driving School — Custom Styles
   ============================================ */

/* Base & Typography */
body {
    font-family: 'Montserrat', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', Georgia, serif;
}

/* Hero floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card-1 { animation: float 4s ease-in-out infinite; }
.floating-card-2 { animation: float 4s ease-in-out 0.5s infinite; }
.floating-card-3 { animation: float 4s ease-in-out 1s infinite; }
.floating-card-4 { animation: float 4s ease-in-out 1.5s infinite; }

/* Scroll reveal base (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s 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; }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 248, 246, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(122, 29, 29, 0.08);
}

.nav-scrolled .font-serif,
.nav-scrolled .text-burgundy-800 {
    color: #7a1d1d !important;
}

.nav-scrolled .text-burgundy-500 {
    color: #c43b3b !important;
}

.nav-scrolled a:not(.bg-burgundy-700):not(.bg-blush-400) {
    color: #7a1d1d !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Service card hover */
.service-card {
    transform: translateY(0);
}

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

/* Process step connector lines */
.process-step::after {
    content: '';
}

/* Testimonial card */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: 'Lora', Georgia, serif;
    font-size: 6rem;
    color: rgba(196, 59, 59, 0.08);
    position: absolute;
    top: -10px;
    left: 16px;
    line-height: 1;
    pointer-events: none;
}

/* Smooth focus outlines */
*:focus-visible {
    outline: 2px solid #c43b3b;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(196, 59, 59, 0.15);
    color: #541616;
}

/* Print styles */
@media print {
    nav, #contact-form, #form-success, .floating-card-1,
    .floating-card-2, .floating-card-3, .floating-card-4 {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
