/* ============================================
   NAVARRO TRAFFIC SCHOOL — CUSTOM STYLES
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #E8622B;
    color: white;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF9F0;
}

::-webkit-scrollbar-thumb {
    background: #D4D1C8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A8A398;
}

/* --- Navigation --- */
#navbar {
    background: rgba(253, 249, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 209, 200, 0.5);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* --- Hero Animations --- */
.hero-subtitle {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-title {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero-description {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Floating Card --- */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    animation: fadeInUp 1s ease 1.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* --- Section Labels & Titles --- */
.section-label {
    letter-spacing: 0.3em;
}

.section-title {
    letter-spacing: -0.02em;
}

/* --- Service Cards --- */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.service-card:hover .w-12 {
    transform: scale(1.1);
}

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

.process-step:hover {
    border-top-color: #E8622B;
}

.process-step:hover .process-number {
    color: #E8622B;
}

/* --- Testimonial Slider --- */
.testimonial-track {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: #E8622B;
    transform: scale(1.3);
}

/* --- Form Styles --- */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #E8622B !important;
}

input::placeholder,
textarea::placeholder {
    color: #D4D1C8;
}

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='%23A8A398' 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 0 center;
    padding-right: 2rem;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(40px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Menu --- */
.mobile-link {
    transition: all 0.3s ease;
}

.mobile-link:hover {
    transform: translateX(8px);
}

/* --- Button Hover Effects --- */
a[href^="tel:"],
a[href^="mailto:"] {
    text-decoration: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title br {
        display: none;
    }
    
    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .process-number {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* --- Print Styles --- */
@media print {
    #navbar,
    .scroll-indicator,
    .testimonial-slider {
        display: none;
    }
    
    body {
        color: #1A1816;
        background: white;
    }
    
    .bg-warmgray-900 {
        background: white !important;
        color: #1A1816 !important;
    }
}
