/* Mobile First Responsive Design */

/* Tablet and Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-7px, 7px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Hero Section Responsive */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Page Header Responsive */
@media screen and (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }
}

/* Typography Responsive */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
    }
}

/* Grid Layout Responsive */
@media screen and (max-width: 768px) {
    .info-grid,
    .benefits-grid,
    .services-grid,
    .achievements-grid,
    .contact-grid,
    .mission-grid,
    .reviews-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .next-steps {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }
}

/* Form Responsive */
@media screen and (max-width: 768px) {
    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form-icon {
        width: 150px;
        height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .newsletter-form {
        max-width: 100%;
    }
}

/* Story Content Responsive */
@media screen and (max-width: 768px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-icon {
        width: 150px;
        height: 150px;
    }
}

/* Choose Content Responsive */
@media screen and (max-width: 768px) {
    .choose-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .choose-icon {
        align-self: center;
    }
}

/* Cookie Banner Responsive */
@media screen and (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-buttons .btn {
        width: 100%;
    }
}

/* Footer Responsive */
@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul {
        text-align: center;
    }
}

/* Button Responsive */
@media screen and (max-width: 768px) {
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media screen and (max-width: 480px) {
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .hero-buttons .btn,
    .cta-buttons .btn,
    .thank-you-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Card Responsive */
@media screen and (max-width: 768px) {
    .info-card,
    .service-card,
    .mission-item,
    .service-detailed,
    .pricing-category,
    .review-card {
        padding: 1.5rem;
    }

    .info-icon,
    .service-icon,
    .mission-icon {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 480px) {
    .info-card,
    .service-card,
    .mission-item,
    .service-detailed,
    .pricing-category,
    .review-card {
        padding: 1.25rem;
    }

    .info-icon,
    .service-icon,
    .mission-icon {
        width: 40px;
        height: 40px;
    }
}

/* Pricing Table Responsive */
@media screen and (max-width: 480px) {
    .pricing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .service-price {
        font-size: 1.1rem;
    }
}

/* Business Hours Responsive */
@media screen and (max-width: 480px) {
    .hours-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .time {
        font-size: 1.1rem;
    }
}

/* Thank You Page Responsive */
@media screen and (max-width: 768px) {
    .thank-you-section {
        padding: 100px 0 60px;
    }

    .thank-you-icon {
        width: 80px;
        height: 80px;
    }

    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }

    .thank-you-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media screen and (max-width: 480px) {
    .thank-you-message {
        font-size: 1.1rem;
    }

    .urgent-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .phone-link {
        font-size: 1.1rem;
    }
}

/* Legal Content Responsive */
@media screen and (max-width: 768px) {
    .content-wrapper {
        padding: 0 1rem;
    }

    .legal-content {
        padding: 40px 0;
    }
}

/* Achievement Numbers Responsive */
@media screen and (max-width: 480px) {
    .achievement-number {
        font-size: 2rem;
    }
}

/* Modal Responsive */
@media screen and (max-width: 480px) {
    .cookie-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .cookie-modal-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-modal-buttons .btn {
        width: 100%;
    }
}

/* Utility Responsive Classes */
@media screen and (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }

    .mobile-visible {
        display: block;
    }

    .mobile-center {
        text-align: center;
    }

    .mobile-full-width {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .small-hidden {
        display: none;
    }

    .small-visible {
        display: block;
    }

    .small-center {
        text-align: center;
    }

    .small-full-width {
        width: 100%;
    }
}

/* Improve touch targets on mobile */
@media screen and (max-width: 768px) {
    .btn,
    .nav-link,
    .social-link,
    .footer-section a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Smooth scrolling offset for mobile */
@media screen and (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
}

/* Landscape phone specific adjustments */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
    }

    .page-header {
        padding: 100px 0 50px;
    }

    section {
        padding: 50px 0;
    }
}

/* High DPI display adjustments */
@media screen and (min-resolution: 2dppx) {
    .hero-bg-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility improvements for mobile */
@media screen and (max-width: 768px) {
    .btn:focus,
    .nav-link:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 2px solid #08cfaa;
        outline-offset: 2px;
    }

    /* Ensure sufficient contrast in reduced motion */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}
