/* ==========================================
   MOBILE OPTIMIZATIONS - COMPREHENSIVE
   ========================================== */

/* === MOBILE: SMALL PHONES (up to 480px) === */
@media (max-width: 480px) {

    /* Typography scaling */
    html {
        font-size: 14px;
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Section padding */
    .section {
        padding: 2.5rem 0;
    }

    /* Header adjustments */
    .header {
        padding: 0.75rem 0;
    }

    .logo span {
        font-size: 1rem !important;
    }

    .logo img {
        height: 60px !important;
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding: 100px 1rem 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1rem !important;
    }

    .hero-image {
        max-width: 100%;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

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

    /* Cards mobile */
    .grid-cards {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Partners mobile */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .partner-card:first-child .partner-logo-container {
        height: 160px;
    }

    .partner-card:first-child .partner-logo-container img {
        max-height: 90px;
    }

    /* Section headers mobile */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.75rem !important;
    }

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

    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    /* Contact section mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container {
        height: 300px;
    }

    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    /* WhatsApp float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 1.75rem;
    }

    /* Buttons mobile */
    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* === MOBILE: PHONES (481px to 768px) === */
@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 120px 1.5rem 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .grid-cards {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* === TABLET (769px to 992px) === */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-content {
        gap: 3rem;
    }

    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* === MOBILE MENU === */
@media (max-width: 900px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        align-items: flex-start;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border: none;
        margin-top: 1rem;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .nav-menu .btn {
        width: 100%;
        text-align: center;
    }

    /* Mobile overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* === TOUCH OPTIMIZATIONS === */
@media (hover: none) and (pointer: coarse) {

    /* Larger tap targets for touch */
    .btn {
        min-height: 48px;
        padding: 1rem 2rem;
    }

    .nav-link {
        min-height: 44px;
    }

    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }
}

/* === LANDSCAPE MOBILE === */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 1rem 2rem;
    }

    .visual-break-section div[style*="height: 500px"] {
        height: 250px !important;
    }
}