/* Responsive Design - Mobile First Approach */

/* Tablet Styles */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    /* Container padding */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: 0.5rem 0;
    }
    
    /* Hero section */
    .hero {
        height: 60vh;
        padding: 2rem 0;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Page header */
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    /* Section padding */
    .section-padding {
        padding: 60px 0;
    }
    
    /* Grid adjustments */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .success-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .confirmation-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Content grids */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-icon {
        width: 150px;
        height: 150px;
    }
    
    /* Team detailed cards */
    .team-detailed-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .team-avatar-large {
        width: 120px;
        height: 120px;
    }
    
    .team-avatar-large img {
        width: 60px;
        height: 60px;
    }
    
    /* Form adjustments */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .legal-document {
        padding: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cookie banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Button adjustments */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .urgent-contact {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Newsletter */
    .newsletter-input {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Timeline adjustments */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-year::after {
        right: -46px;
    }
    
    .timeline-content {
        margin-left: 1rem;
    }
    
    /* Goals timeline */
    .goal-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .goal-period {
        padding: 0.8rem 0.5rem;
        font-size: 1rem;
    }
    
    /* Award cards */
    .award-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .award-year {
        font-size: 1.5rem;
    }
    
    /* Stats overview */
    .stats-overview .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Step items */
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Confirmation items */
    .confirmation-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Container */
    .container {
        padding: 0 10px;
    }
    
    /* Section padding */
    .section-padding {
        padding: 40px 0;
    }
    
    /* Hero */
    .hero {
        height: 50vh;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Page header */
    .page-header {
        padding: 90px 0 50px;
    }
    
    /* Cards padding */
    .service-card,
    .goal-card,
    .stat-card,
    .team-card,
    .project-card,
    .award-card,
    .metric-card,
    .value-card,
    .contact-card,
    .hours-card,
    .faq-item,
    .social-card,
    .related-card {
        padding: 1.5rem;
    }
    
    /* Success stats single column */
    .success-stats {
        grid-template-columns: 1fr;
    }
    
    /* Metrics grid single column */
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form adjustments */
    .contact-form {
        padding: 1rem;
    }
    
    .legal-document {
        padding: 1.5rem;
    }
    
    /* Button sizes */
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    /* Icons */
    .service-icon,
    .value-icon,
    .contact-icon,
    .related-icon,
    .social-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon img,
    .value-icon img,
    .contact-icon img,
    .related-icon img,
    .social-icon img {
        width: 30px;
        height: 30px;
    }
    
    /* Team avatars */
    .team-avatar {
        width: 80px;
        height: 80px;
    }
    
    .team-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .team-avatar-large {
        width: 100px;
        height: 100px;
    }
    
    .team-avatar-large img {
        width: 50px;
        height: 50px;
    }
    
    /* Thank you icon */
    .thank-you-icon {
        width: 100px;
        height: 100px;
    }
    
    .thank-you-icon img {
        width: 50px;
        height: 50px;
    }
    
    /* Stats overview icons */
    .stats-overview .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stats-overview .stat-icon img {
        width: 25px;
        height: 25px;
    }
    
    /* Project images */
    .project-image {
        height: 150px;
    }
    
    .project-image img {
        width: 50px;
        height: 50px;
    }
    
    /* Timeline */
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    /* Goals timeline */
    .goal-item {
        grid-template-columns: 70px 1fr;
        gap: 0.8rem;
    }
    
    .goal-period {
        padding: 0.6rem 0.3rem;
        font-size: 0.9rem;
    }
    
    .goal-content {
        padding: 1rem;
    }
    
    /* Form elements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Cookie banner */
    .cookie-banner {
        padding: 0.8rem;
    }
    
    .cookie-buttons {
        gap: 0.5rem;
    }
    
    .cookie-buttons .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* Project stats */
    .project-stats {
        gap: 0.5rem;
    }
    
    .project-stat {
        font-size: 11px;
        padding: 0.2rem 0.6rem;
    }
    
    /* Expertise tags */
    .expertise-tag {
        font-size: 11px;
        padding: 0.2rem 0.6rem;
        margin-right: 0.3rem;
        margin-bottom: 0.3rem;
    }
    
    /* Step numbers */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Contact items */
    .contact-item img {
        width: 16px;
        height: 16px;
    }
    
    /* Social links */
    .social-links a {
        width: 35px;
        height: 35px;
    }
    
    .social-links img {
        width: 18px;
        height: 18px;
    }
    
    /* Stat numbers */
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Award year */
    .award-year {
        font-size: 1.3rem;
    }
    
    /* Growth percentage */
    .growth-percentage {
        font-size: 1rem;
    }
    
    /* Newsletter */
    .newsletter-content {
        padding: 0 1rem;
    }
    
    /* Legal sections */
    .legal-intro {
        padding: 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .page-header h1 {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
    }
    
    .services-grid,
    .goals-grid,
    .projects-grid,
    .awards-grid,
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .success-stats,
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner {
        display: none;
    }
    
    .hero {
        margin-top: 0;
    }
    
    .page-header {
        margin-top: 0;
        background: none !important;
        color: #333 !important;
    }
    
    .page-header h1 {
        color: #333 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .service-card,
    .goal-card,
    .team-card,
    .project-card {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .btn {
        display: none;
    }
    
    a {
        color: #333;
        text-decoration: underline;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    body {
        background-color: #fff;
        color: #000;
    }
    
    .hero,
    .page-header,
    .newsletter-signup {
        background: #000 !important;
        color: #fff !important;
    }
    
    .btn-primary {
        background-color: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-outline {
        background-color: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .service-card,
    .goal-card,
    .stat-card,
    .team-card {
        border: 2px solid #000;
    }
}

/* 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;
    }
    
    .hero {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}
