/* Mobile Responsive CSS - Consistent across all devices */

/* Base mobile styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(24px, 5vw, 40px);
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: clamp(16px, 3vw, 24px);
        line-height: 1.3;
    }
    
    /* Tablet spacing adjustments */
    .py-\[60px\] {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    .py-\[80px\] {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .py-\[100px\] {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

@media (max-width: 768px) {
    /* Mobile typography */
    .hero-title {
        font-size: clamp(20px, 6vw, 32px);
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        font-size: clamp(14px, 4vw, 20px);
        line-height: 1.2;
    }
    
    /* Mobile spacing improvements */
    .py-\[60px\] {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .py-\[80px\] {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    .py-\[100px\] {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Mobile grid improvements */
    .grid-cols-1.md\\:grid-cols-2 {
        gap: 1.5rem;
    }
    .grid-cols-1.md\\:grid-cols-3 {
        gap: 1rem;
    }
    
    /* Mobile card improvements */
    .p-8 {
        padding: 1.5rem;
    }
    .rounded-\[24px\] {
        border-radius: 1rem;
    }
    
    /* Mobile button improvements */
    .px-\[30px\] {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .py-3 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    /* Mobile text improvements */
    .banner-section-info p {
        font-size: 14px;
        line-height: 1.4;
    }
    .trust-card {
        padding: 8px 12px;
        text-align: center;
    }
    .trust-card h4 {
        font-size: 16px;
    }
    .trust-card p {
        font-size: 10px;
    }
}

@media (max-width: 640px) {
    /* Small mobile typography */
    .hero-title {
        font-size: clamp(18px, 7vw, 28px);
        line-height: 1.1;
    }
    .hero-subtitle {
        font-size: clamp(12px, 5vw, 18px);
        line-height: 1.2;
    }
    
    /* Small mobile spacing */
    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .gap-\[40px\] {
        gap: 1rem;
    }
    .gap-\[60px\] {
        gap: 1.5rem;
    }
    
    /* Small mobile cards */
    .p-8 {
        padding: 1rem;
    }
    .rounded-\[24px\] {
        border-radius: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile typography */
    .hero-title {
        font-size: clamp(16px, 8vw, 24px);
        line-height: 1.1;
    }
    .hero-subtitle {
        font-size: clamp(10px, 6vw, 16px);
        line-height: 1.2;
    }
    
    /* Extra small mobile spacing */
    .px-6 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .gap-\[40px\] {
        gap: 0.75rem;
    }
    .gap-\[60px\] {
        gap: 1rem;
    }
    
    /* Extra small mobile text */
    .banner-section-info p {
        font-size: 13px;
    }
    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Extra small mobile cards */
    .p-8 {
        padding: 0.75rem;
    }
    .rounded-\[24px\] {
        border-radius: 0.5rem;
    }
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
    .mobile-nav {
        z-index: 9999 !important;
    }
    
    .menu-button {
        z-index: 60;
        position: relative;
    }
    
    .services-dropdown-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .services-dropdown-content:not(.hidden) {
        max-height: 500px;
    }
}

/* Mobile overflow fixes */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .grid > div {
        max-width: 100%;
    }
    
    .absolute.-top-3,
    .absolute.-bottom-3 {
        font-size: 10px;
        width: 32px;
        height: 32px;
    }
}

/* Mobile container improvements */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Mobile header improvements */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }
    
    .header img {
        height: 50px;
    }
}

/* Mobile footer improvements */
@media (max-width: 768px) {
    .footer-glass {
        padding: 1rem;
    }
    
    .footer-glass img {
        height: 60px;
    }
}

/* Mobile form improvements */
@media (max-width: 768px) {
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

/* Mobile animation improvements */
@media (max-width: 768px) {
    [data-aos] {
        animation-duration: 0.6s !important;
    }
}

/* Mobile image improvements */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .hero-image-container img {
        max-height: 300px;
    }
}

/* Mobile button improvements */
@media (max-width: 640px) {
    .btn, .button, button {
        min-height: 44px; /* Touch target size */
        min-width: 44px;
    }
    
    .contact-button {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile text improvements */
@media (max-width: 768px) {
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.2;
    }
    
    p {
        line-height: 1.5;
    }
    
    .text-lg {
        font-size: 1rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
}

/* Mobile list improvements */
@media (max-width: 768px) {
    ul, ol {
        padding-left: 1rem;
    }
    
    li {
        margin-bottom: 0.5rem;
    }
}

/* Mobile table improvements */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

/* Mobile modal improvements */
@media (max-width: 768px) {
    .modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-content {
        padding: 1rem;
    }
}

/* Mobile tooltip improvements */
@media (max-width: 768px) {
    .tooltip {
        font-size: 0.75rem;
        max-width: 200px;
    }
}

/* Mobile scroll improvements */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(1, 245, 215, 0.5);
        border-radius: 2px;
    }
}

/* Mobile focus improvements */
@media (max-width: 768px) {
    *:focus {
        outline: 2px solid #01F5D7;
        outline-offset: 2px;
    }
}

/* Mobile loading improvements */
@media (max-width: 768px) {
    .loading {
        font-size: 0.875rem;
    }
    
    .spinner {
        width: 24px;
        height: 24px;
    }
}
