/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    .urgent-contact {
        gap: 2rem;
    }
    
    .stats-grid,
    .success-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        height: auto;
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .goals-grid,
    .services-grid,
    .team-grid,
    .features-grid,
    .mission-grid,
    .certifications-grid,
    .values-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-detail .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid,
    .success-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .urgent-contact {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .logo {
        width: 32px;
        height: 32px;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
    }
    
    .goal-icon,
    .service-icon,
    .feature-icon,
    .mission-icon,
    .cert-icon,
    .value-icon,
    .resource-icon {
        width: 56px;
        height: 56px;
        padding: 14px;
    }
    
    .goal-icon img,
    .service-icon img,
    .feature-icon img,
    .mission-icon img,
    .cert-icon img,
    .value-icon img,
    .resource-icon img {
        width: 28px;
        height: 28px;
    }
    
    .team-avatar,
    .member-photo {
        width: 100px;
        height: 100px;
    }
    
    .team-avatar img,
    .member-photo img {
        width: 50px;
        height: 50px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        padding: 15px;
    }
    
    .stats-grid,
    .success-stats,
    .process-steps,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .business-hours {
        padding: 1.5rem;
    }
    
    .hours-item {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-header {
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content {
        gap: 1rem;
    }
    
    .cookie-buttons {
        gap: 0.5rem;
    }
    
    .cookie-banner .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .modal-content {
        padding: 1rem;
        max-height: 90vh;
    }
    
    .legal-text {
        padding: 2rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
    
    .legal-section ul {
        padding-left: 1.5rem;
    }
    
    .contact-details {
        padding: 1rem;
    }
    
    blockquote {
        font-size: 1.1rem;
    }
    
    .thank-you-content {
        padding: 0 10px;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .service-pricing {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .price {
        font-size: 1.25rem;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .goal-card,
    .service-card,
    .team-card,
    .feature-card,
    .mission-card,
    .cert-card,
    .value-card,
    .team-member,
    .service-detail-card,
    .faq-item,
    .resource-card,
    .step-item {
        padding: 1.5rem;
    }
    
    .contact-form,
    .business-hours {
        padding: 1rem;
    }
    
    .legal-text {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 0.75rem;
    }
    
    .cookie-banner {
        padding: 0.75rem;
    }
    
    .cookie-banner .btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .modal,
    .btn,
    .hamburger {
        display: none !important;
    }
    
    .page-header {
        margin-top: 0;
    }
    
    body {
        color: #000;
        background: white;
        font-size: 12pt;
    }
    
    .section {
        padding: 20px 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    h1, h2, h3 {
        color: #000;
    }
    
    .legal-text {
        box-shadow: none;
        padding: 0;
    }
    
    a {
        text-decoration: underline;
    }
    
    .goal-card,
    .service-card,
    .team-card,
    .feature-card,
    .mission-card,
    .cert-card,
    .value-card,
    .team-member,
    .service-detail-card,
    .faq-item,
    .resource-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .logo,
    .section-icon,
    .goal-icon img,
    .service-icon img,
    .feature-icon img,
    .mission-icon img,
    .cert-icon img,
    .value-icon img,
    .resource-icon img,
    .team-avatar img,
    .member-photo img,
    .contact-icon img,
    .social-links img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 3px solid #2ecc71;
        outline-offset: 2px;
    }
    
    .nav-link.active::after {
        height: 3px;
    }
}

/* Dark Mode Support (for system preference) */
@media (prefers-color-scheme: dark) {
    /* Note: The requirement states no dark mode theme, 
       but we can still respect system preferences for accessibility */
    
    .cookie-banner,
    .modal {
        /* Keep existing styles as requested - no dark mode implementation */
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 80px 0 30px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .modal-content {
        max-height: 70vh;
    }
}

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero p {
        font-size: 1.35rem;
    }
    
    .section {
        padding: 100px 0;
    }
    
    .goals-grid,
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid,
    .success-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}
