/* Mobile First Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    .newsletter-content {
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 100%);
        background-color: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: top 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        top: 100%;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 2rem;
    }
    
    .nav-list li {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-list a {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* SVG responsiveness */
    .hero-svg, .about-svg {
        max-width: 100%;
        height: auto;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Newsletter */
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form input {
        min-width: auto;
        width: 100%;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .cookie-buttons .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Thank You Page */
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .next-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Legal Pages */
    .legal-content {
        padding: 0 1rem;
    }
    
    .cookie-table {
        font-size: 0.875rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 8px 12px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 12px;
    }
    
    /* Typography */
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    /* Header */
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .nav-brand .tagline {
        font-size: 0.75rem;
    }
    
    /* Hero */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Mobile SVG adjustments */
    .hero-svg, .about-svg {
        max-width: 100%;
        margin: 1rem 0;
        transform: none !important;
    }
    
    .hero-svg:hover, .about-svg:hover {
        transform: none !important;
    }
    
    /* Sections */
    .services,
    .about,
    .reviews,
    .contact {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* Services */
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    /* Stats */
    .stats {
        padding: 40px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Newsletter */
    .newsletter {
        padding: 40px 0;
    }
    
    .newsletter-text h2 {
        font-size: 1.5rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 1rem 0;
    }
    
    .cookie-content {
        padding: 0 12px;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        min-width: 0;
        padding: 10px 8px;
        font-size: 12px;
    }
    
    /* Cookie Modal */
    .cookie-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }
    
    .cookie-toggle {
        font-size: 0.875rem;
    }
    
    .cookie-toggle .slider {
        width: 40px;
        height: 20px;
    }
    
    .cookie-toggle .slider::after {
        width: 16px;
        height: 16px;
        top: 2px;
        left: 2px;
    }
    
    .cookie-toggle input:checked + .slider::after {
        transform: translateX(20px);
    }
    
    /* Thank You Page */
    .thank-you {
        padding: 90px 0 60px;
    }
    
    .thank-you h1 {
        font-size: 2rem;
    }
    
    .thank-you-details {
        text-align: center;
    }
    
    .detail-item {
        justify-content: center;
        text-align: center;
    }
    
    .whats-next {
        padding: 60px 0;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    /* Legal Pages */
    .legal-page {
        padding: 90px 0 60px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .cookie-preferences-section {
        padding: 1.5rem;
    }
}

/* Extra Small Mobile Phones */
@media (max-width: 320px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .service-card,
    .review-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .newsletter-form input {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .cookie-buttons .btn {
        font-size: 11px;
        padding: 8px 6px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .image-placeholder {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .cookie-content {
        flex-direction: row;
        align-items: center;
    }
    
    .cookie-buttons {
        flex-direction: row;
        justify-content: flex-end;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cookie-modal-content {
        background: #1f2937;
        color: white;
    }
    
    .cookie-modal-header {
        border-bottom-color: #374151;
    }
    
    .cookie-category {
        border-bottom-color: #374151;
    }
    
    .cookie-modal-footer {
        border-top-color: #374151;
    }
    
    .close-btn {
        color: #9ca3af;
    }
    
    .close-btn:hover {
        color: white;
    }
}

/* Print Styles for Mobile */
@media print and (max-width: 768px) {
    .legal-content {
        padding: 0;
        font-size: 12px;
        line-height: 1.4;
    }
    
    .legal-section {
        margin-bottom: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 16px;
        page-break-after: avoid;
    }
    
    .legal-section h3 {
        font-size: 14px;
        page-break-after: avoid;
    }
}
