/* ============================================
   NAUGACHIA TAXI SERVICE - Responsive Styles
   ============================================ */

/* ============ LARGE SCREENS (1200px+) ============ */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
    
    .hero-title {
        font-size: 3.8rem;
    }
}

/* ============ LAPTOP / SMALL DESKTOP ============ */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-content {
        gap: 40px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 30px;
    }
}

/* ============ TABLET LANDSCAPE ============ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    /* Navigation - Mobile Drawer */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(105%);
        visibility: hidden;
        width: 310px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 40px 24px 30px;
        gap: 8px;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.16);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
        border-left: 4px solid var(--yellow-500);
        display: flex;
    }

    /* Brand Header inside Drawer */
    .nav-links::before {
        content: 'Naugachia Taxi';
        display: block;
        font-family: var(--font-primary);
        font-weight: 800;
        font-size: 1.25rem;
        color: var(--dark-800);
        letter-spacing: 0.5px;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid var(--gray-100);
        text-transform: uppercase;
        margin-top: 40px; /* Space for the hamburger button */
    }

    /* Contact Info Shortcut at bottom of Drawer */
    .nav-links::after {
        content: '📞 Call 24/7: 6201588728';
        display: block;
        font-family: var(--font-primary);
        font-weight: 700;
        font-size: 0.95rem;
        color: var(--yellow-800);
        background: var(--yellow-50);
        border: 1.5px dashed var(--yellow-300);
        padding: 14px;
        border-radius: var(--radius-md);
        text-align: center;
        margin-top: 30px;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        display: block;
        list-style: none;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 12px 18px;
        font-size: 1rem;
        font-weight: 600;
        color: var(--dark-700);
        border-radius: var(--radius-md);
        border: 1px solid transparent;
        transition: all 0.25s ease;
        box-sizing: border-box;
        text-align: left; /* Explicitly align text to left */
    }

    .nav-link:hover {
        background: var(--yellow-50);
        border-color: var(--yellow-100);
        color: var(--yellow-800);
        padding-left: 22px; /* Smooth slide-in micro-animation */
    }

    .nav-link.active {
        background: var(--yellow-500);
        border-color: var(--yellow-500);
        color: var(--dark-800);
        box-shadow: 0 4px 15px rgba(255, 210, 0, 0.25);
    }

    .nav-link::after {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .nav-cta {
        display: none;
    }

    /* Ensure header sits above body overlay when active */
    body.no-scroll .header {
        z-index: 1002;
    }

    /* Dark overlay behind the drawer */
    body.no-scroll::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1000;
        animation: fadeInOverlay 0.3s ease;
    }

    @keyframes fadeInOverlay {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        display: inline-flex;
        margin: 0 auto;
    }

    .hero-visual {
        order: -1;
    }

    .hero-car-wrapper {
        max-width: 400px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Why Us */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Fleet */
    .fleet-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fleet-card.featured {
        transform: scale(1);
    }

    .fleet-card.featured:hover {
        transform: translateY(-8px);
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content {
        text-align: center;
    }

    .about-features {
        max-width: 400px;
        margin: 28px auto 32px;
    }

    .about-content .btn {
        margin: 0 auto;
    }

    .about-card-visual {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ============ TABLET PORTRAIT ============ */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
    }

    .stat-divider {
        display: none;
    }

    .hero-wave svg {
        height: 50px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Why Grid */
    .why-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Fleet */
    .fleet-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Pricing */
    .pricing-table {
        min-width: auto;
    }

    .pricing-table thead {
        display: none;
    }

    .pricing-table tbody tr {
        display: block;
        padding: 16px;
        margin-bottom: 12px;
        border: 1px solid var(--gray-100);
        border-radius: var(--radius-md);
        background: var(--white);
    }

    .pricing-table td {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .pricing-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--dark-800);
    }

    .pricing-table td:last-child {
        border-bottom: none;
    }

    .pricing-table-wrap {
        box-shadow: none;
        border: none;
    }

    /* About */
    .about-features {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 32px 24px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* ============ MOBILE ============ */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
        --container-padding: 0 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .hero-stats {
        width: 100%;
    }

    .stat-item {
        flex: 1;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Buttons */
    .btn-lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* Service cards */
    .service-card {
        padding: 28px 22px;
    }

    /* Why cards */
    .why-card {
        padding: 28px 22px;
    }

    /* Fleet cards */
    .fleet-card {
        padding: 28px 22px;
    }

    /* Contact form */
    .contact-form-wrapper {
        padding: 24px 20px;
    }

    /* CTA */
    .cta-banner {
        padding: 50px 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    /* Floating CTA */
    .floating-cta {
        bottom: 16px;
        right: 16px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
    }

    .back-to-top {
        bottom: 85px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    /* About experience badge */
    .about-exp-badge {
        bottom: -10px;
        right: 0;
        padding: 14px;
    }

    .exp-number {
        font-size: 1.6rem;
    }

    /* Map */
    .map-wrapper iframe {
        height: 250px;
    }
}

/* ============ VERY SMALL SCREENS ============ */
@media (max-width: 350px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .logo-name {
        font-size: 1rem;
    }

    .hero-stats {
        padding: 16px;
        gap: 12px;
    }

    .stat-number {
        font-size: 1.3rem;
    }
}

/* ============ PRINT STYLES ============ */
@media print {
    .header,
    .floating-cta,
    .back-to-top,
    .preloader,
    .hero-bg-shapes {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 20px 0;
    }

    body {
        color: #000;
        background: #fff;
    }

    .section {
        padding: 20px 0;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}

/* ============ HIGH CONTRAST MODE ============ */
@media (prefers-contrast: high) {
    :root {
        --yellow-500: #E6B800;
        --gray-400: #666;
    }

    .service-card,
    .fleet-card,
    .why-card {
        border-width: 2px;
    }
}
