/* ============================================
   VBL Roadways — Production Styles
   ============================================ */

/* ----- Scrollbar ----- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #0B1D3A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1A3563; }

/* ----- Selection ----- */
::selection { background: #F59E0B; color: #0B1D3A; }

/* ----- Smooth Scroll (respect OS) ----- */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .loader-truck, .loader-bar-fill, .coverage-dot, .wa-icon-wrap { animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ----- Focus (WCAG AA) ----- */
:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
    border-radius: 4px;
}
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
    outline: none;
}
.form-input.error:focus-visible,
.form-select.error:focus-visible,
.form-textarea.error:focus-visible {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* ----- Loader ----- */
.loader-truck {
    animation: truckBounce 0.8s ease-in-out infinite alternate;
}
@keyframes truckBounce {
    from { transform: translateY(-10px); }
    to { transform: translateY(10px); }
}
.loader-bar-fill {
    animation: loaderFill 2s ease-in-out forwards;
}
@keyframes loaderFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ----- Navigation ----- */
.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E293B;
    border-radius: 0.75rem;
    transition: background 0.3s, color 0.3s;
    display: block;
}
.nav-link:hover,
.nav-link.active {
    background: #F59E0B;
    color: #0B1D3A;
}
#mobile-menu .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
}

/* ----- Section label ----- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

/* ----- Buttons ----- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover {
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: 2px solid #F59E0B;
    color: #F59E0B;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    background: transparent;
    text-decoration: none;
}
.btn-outline:hover {
    background: #F59E0B;
    color: white;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

/* ----- Card hover ----- */
.service-card { transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s; }
.service-card:hover { transform: translateY(-8px); }
.fleet-card:hover { transform: translateY(-8px); }
.testimonial-card { transition: transform 0.3s, box-shadow 0.3s; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.why-icon { transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.why-card:hover .why-icon { transform: scale(1.1) rotate(-5deg); }

/* ----- Coverage pulse dots ----- */
.coverage-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #F59E0B;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    animation: coveragePulse 2s infinite;
}
@keyframes coveragePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.8); }
}

/* ----- FAQ ----- */
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-question {
    cursor: pointer;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: #0B1D3A;
    transition: color 0.3s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.faq-question:hover { color: #F59E0B; }
.faq-question i { transition: transform 0.3s; font-size: 0.875rem; color: #F59E0B; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.25rem;
}
.faq-answer p { color: #64748B; line-height: 1.8; }

/* ----- Forms ----- */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    color: #1E293B;
    background: white;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input.error, .form-select.error, .form-textarea.error {
    border-color: #ef4444;
}
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: #1E293B; margin-bottom: 0.5rem; }
.form-label .required { color: #ef4444; }

/* ----- Page Hero ----- */
.page-hero {
    background: linear-gradient(135deg, #0B1D3A 0%, #1A3563 100%);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* ----- Breadcrumb ----- */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.breadcrumb a:hover { color: #F59E0B; }
.breadcrumb .separator { color: rgba(255,255,255,0.3); }
.breadcrumb .current { color: #F59E0B; }

/* ===== FLOATING WHATSAPP PREMIUM ===== */
.whatsapp-float {
    opacity: 0;
    animation: waFadeIn 0.5s ease 3s forwards;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(37, 211, 102, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.2);
}
.whatsapp-float .wa-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    animation: waBounce 3s ease-in-out infinite;
}
@keyframes waBounce {
    0%, 88%, 100% { transform: translateY(0); }
    90% { transform: translateY(-5px); }
    92% { transform: translateY(0); }
    94% { transform: translateY(-3px); }
}
@keyframes waFadeIn {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}
.whatsapp-float .wa-tooltip {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.875rem;
    font-weight: 600;
    color: #075E54;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.whatsapp-float .wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid rgba(255, 255, 255, 0.96);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.whatsapp-float.hidden-by-footer {
    opacity: 1;
    pointer-events: auto;
}

/* ===== NETWORK PAGE: MAP ===== */
.network-map-container {
    border: 1px solid rgba(245, 158, 11, 0.1);
    position: relative;
}
.network-map-center {
    border: 2px dashed rgba(245, 158, 11, 0.3);
    animation: mapPulse 3s ease-in-out infinite;
}
@keyframes mapPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 0 20px rgba(245, 158, 11, 0); }
}

/* ===== NETWORK PAGE: FILTER BUTTONS ===== */
.network-filter-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}
.network-filter-btn:hover {
    border-color: #F59E0B;
    color: #d97706;
    background: #fffbeb;
}
.network-filter-btn.active {
    background: #F59E0B;
    border-color: #F59E0B;
    color: #0B1D3A;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

/* ===== NETWORK PAGE: STATE CARDS ===== */
.state-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s, opacity 0.4s, transform 0.4s;
}
.state-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.state-card.hidden {
    display: none;
}
.state-card-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
}
.state-card-body {
    padding: 1.25rem;
}
.state-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0B1D3A;
    margin-bottom: 0.5rem;
}
.state-cities {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
}
.state-cards-grid {
    min-height: 200px;
}

/* ===== MOBILE STICKY CALL BAR ===== */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 16px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
    gap: 12px;
}
.mobile-sticky-bar .bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}
.mobile-sticky-bar .bar-btn:active {
    transform: scale(0.97);
}
.mobile-sticky-bar .bar-call {
    background: linear-gradient(135deg, #F59E0B, #F97316);
    color: white;
}
.mobile-sticky-bar .bar-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}
@media (max-width: 1023px) {
    .mobile-sticky-bar { display: flex; }
    body { padding-bottom: 72px; }
}
@media (min-width: 1024px) {
    .mobile-sticky-bar { display: none !important; }
}

/* ===== TRUSTED CLIENTS ===== */
.trusted-card {
    padding: 1.75rem 1rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #0B1D3A;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}
.trusted-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: #F59E0B;
    color: #d97706;
}

/* ===== REQUEST CALLBACK BUTTON ===== */
.btn-callback {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: #F59E0B;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    border: 2px solid #F59E0B;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn-callback:hover {
    background: #F59E0B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}


/* ----- Stats counter gradient ----- */
.stat-number {
    background: linear-gradient(135deg, #F59E0B, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Gradient CTA ----- */
.gradient-cta {
    background: linear-gradient(135deg, #0B1D3A 0%, #1A3563 50%, #0B1D3A 100%);
}

/* ----- Wave BG (reusable, replaces inline SVGs) ----- */
.wave-bg {
    position: relative;
    overflow: hidden;
}
.wave-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,181.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}
.wave-bg-strong::before {
    opacity: 0.1;
}
.wave-bg-light::before {
    opacity: 0.05;
}

/* ----- Mobile nav animation ----- */
#mobile-menu.open {
    display: block;
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----- No-JS fallback: content always visible when JavaScript is off ----- */
.no-js #loader { display: none !important; }
.no-js .reveal,
.no-js .reveal-hero {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ----- Scroll reveal (fallback for no-JS, enhanced by GSAP) ----- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Mobile adjustments ----- */
@media (max-width: 640px) {
    .stat-number { font-size: 2.25rem; }
    .btn-primary, .btn-outline { font-size: 0.8rem; padding: 0.75rem 1.5rem; }

}

@media (max-width: 380px) {
    .hero-title { font-size: 1.75rem; }
}

/* ----- Print ----- */
@media print {
    .whatsapp-float, .mobile-sticky-bar, #back-to-top, .top-bar, .loader { display: none !important; }
}
