/* Mobile-specific styles and optimizations */

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Touch-friendly button sizes */
@media (max-width: 768px) {
    .btn, .cta-button, .service-link {
        min-height: 44px; /* iOS minimum touch target */
        min-width: 44px;
    }

    /* Improve form usability on mobile */
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        border-radius: 8px;
    }

    /* Better spacing for mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Improve card readability */
    .feature-card, .service-card, .story-card {
        margin-bottom: 1.5rem;
    }

    /* Better navigation spacing */
    .nav-links a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    /* Improve modal usability */
    .modal-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Better table responsiveness */
    table {
        font-size: 0.9rem;
    }

    /* Improve image responsiveness */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Partner logos mobile optimization */
    .partner-item {
        padding: 1.5rem;
        min-height: 100px;
    }
    
    .partner-content svg {
        width: 60px;
        height: 60px;
    }

    /* Better list spacing */
    ul, ol {
        padding-left: 1.5rem;
    }

    /* Improve heading hierarchy */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .btn, .cta-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Stack buttons vertically */
    .cta-buttons, .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-buttons .btn,
    .form-actions .btn {
        width: 100%;
    }

    /* Improve form layout */
    .form-group {
        margin-bottom: 1rem;
    }

    /* Better spacing for small screens */
    .section {
        padding: 2rem 0;
    }

    .hero {
        padding: 3rem 0;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
        padding: 2rem 0;
    }

    .nav-links {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image, .partner-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .partner-logo-inner svg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* Print styles */
@media print {
    .header, .footer, .nav-links, .cta-section {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        padding: 0;
    }
} 