/**
 * Global Responsive CSS for Gatwan Transport Logistics
 * Mobile-First Responsive Design
 */

/* ===== BREADCRUMB / PAGE HEADER RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-header {
        padding: 5rem 1.5rem 2.5rem !important;
    }
    
    .page-header h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .page-header p {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
    }
    
    .page-header nav,
    .page-header .flex.gap-2 {
        font-size: 0.8rem !important;
    }
    
    .page-header .flex.gap-2 {
        gap: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 4rem 1rem 2rem !important;
    }
    
    .page-header h1 {
        font-size: 1.5rem !important;
    }
    
    .page-header p {
        font-size: 0.875rem !important;
    }
}

/* ===== HERO SECTIONS RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section,
    section[class*="hero"] {
        min-height: 60vh !important;
    }
    
    .hero-content {
        padding: 4rem 1.5rem 2rem !important;
    }
}

/* ===== CONTAINER & GRID RESPONSIVE ===== */
@media (max-width: 1024px) {
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .grid.lg\\:grid-cols-2,
    .grid.lg\\:grid-cols-3,
    .grid.lg\\:grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .grid.md\\:grid-cols-2,
    .grid.md\\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-4xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Force all grids to single column on mobile */
    .grid:not(.grid-cols-1) {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* ===== CARDS RESPONSIVE ===== */
@media (max-width: 768px) {
    .service-card,
    .feature-card,
    .testimonial-card,
    .contact-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card,
    .contact-card {
        padding: 1.5rem !important;
    }
    
    .service-image,
    .card-image {
        height: 200px !important;
    }
}

/* ===== BUTTONS RESPONSIVE ===== */
@media (max-width: 768px) {
    .btn,
    .button,
    [class*="btn-"] {
        width: 100%;
        justify-content: center !important;
        padding: 1rem 2rem !important;
        font-size: 0.95rem !important;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 1rem 2rem !important;
    }
}

/* ===== FORMS RESPONSIVE ===== */
@media (max-width: 768px) {
    .form-input,
    .form-textarea,
    .form-select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    .form-grid,
    .grid.gap-6 {
        gap: 1rem !important;
    }
}

/* ===== TYPOGRAPHY RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    h4 {
        font-size: 1.25rem !important;
    }
    
    p, .text-lg {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .text-xl {
        font-size: 1.125rem !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
}

/* ===== SPACING RESPONSIVE ===== */
@media (max-width: 768px) {
    .py-20,
    .py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .px-8,
    .px-6 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .gap-12,
    .gap-10,
    .gap-8 {
        gap: 2rem !important;
    }
    
    .gap-6 {
        gap: 1.5rem !important;
    }
    
    .mb-12,
    .mb-10,
    .mb-8 {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 480px) {
    .py-20,
    .py-16 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .px-6,
    .px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* ===== IMAGES RESPONSIVE ===== */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto !important;
    }
    
    .max-h-\\[600px\\],
    .max-h-\\[500px\\] {
        max-height: 400px !important;
    }
    
    .max-h-\\[400px\\] {
        max-height: 300px !important;
    }
}

/* ===== TABLE RESPONSIVE ===== */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    th, td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.875rem !important;
    }
}

/* ===== MODAL RESPONSIVE ===== */
@media (max-width: 768px) {
    .modal,
    .fixed.inset-0 {
        padding: 1rem !important;
    }
    
    .modal-content,
    .bg-white.rounded-2xl {
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem 1rem !important;
    }
}

/* ===== NAVIGATION RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        transition: left 0.3s ease;
        z-index: 9999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem !important;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 768px) {
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    footer .text-center {
        text-align: left !important;
    }
}

/* ===== STATS/COUNTER RESPONSIVE ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .stat-item::after {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
}

/* ===== VIDEO RESPONSIVE ===== */
@media (max-width: 768px) {
    .video-container {
        border-radius: 16px !important;
        height: 300px !important;
        max-height: 300px !important;
    }
    
    .video-container video {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* ===== FAQ RESPONSIVE ===== */
@media (max-width: 768px) {
    .faq-question {
        font-size: 1rem !important;
        padding: 1.25rem 1.5rem !important;
    }
    
    .faq-answer-content {
        padding: 0 1.5rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
}

/* ===== CTA SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 1.5rem !important;
    }
    
    .cta-title {
        font-size: 1.75rem !important;
    }
    
    .cta-subtitle {
        font-size: 1rem !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* ===== SERVICES PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr !important;
    }
    
    .service-detail-image {
        height: 250px !important;
    }
    
    .service-features {
        grid-template-columns: 1fr !important;
    }
}

/* ===== ABOUT PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr !important;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== CONTACT PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .map-container {
        height: 300px !important;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== GALLERY RESPONSIVE ===== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== TESTIMONIALS PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .testimonial-card {
        padding: 2rem !important;
    }
}

/* ===== UTILITY CLASSES RESPONSIVE ===== */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .flex-col-mobile {
        flex-direction: column !important;
    }
}

/* ===== OVERFLOW FIX ===== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    
    * {
        max-width: 100vw;
    }
}

/* ===== TOUCH IMPROVEMENTS ===== */
@media (hover: none) and (pointer: coarse) {
    button,
    a,
    [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ===== LANDSCAPE MODE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh !important;
    }
    
    .page-header {
        padding: 4rem 1.5rem 2rem !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print,
    nav,
    footer,
    .btn,
    button {
        display: none !important;
    }
    
    * {
        color: #000 !important;
        background: #fff !important;
    }
}

