/* Responsive Styles */

/* Tablet Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small Tablet and Large Mobile */
@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    /* Keep brand text visible on mobile */
    .brand-text {
        font-size: 1.1rem;
    }

    /* Adjust logo size for mobile */
    .nav-logo {
        height: 40px;
    }

    /* Ensure nav-brand fits well on mobile */
    .nav-brand a {
        gap: 0.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 1.5rem;
        box-shadow: -5px 0 15px var(--shadow);
        transition: right 0.3s ease;
    }

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

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

    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-image {
        order: -1;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

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

    .services-grid {
        gap: 1.5rem;
    }

    .client-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    /* Typography */
    body {
        font-size: 14px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Padding Adjustments */
    .hero {
        padding: 80px 0 40px;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    /* Components */
    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-number {
        font-size: 2rem;
    }

    .commitment-icon {
        font-size: 2.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .submit-button {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }

    /* Client Carousel */
    .carousel-track {
        animation-duration: 20s;
    }

    .client-logo {
        width: 120px;
        height: 50px;
    }

    /* Footer */
    .main-footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .client-grid {
        grid-template-columns: 1fr;
    }

    .placeholder-box {
        padding: 60px 30px;
    }

    .logo-placeholder p {
        padding: 20px 40px;
        font-size: 0.875rem;
    }
}

/* Hover Effects for Touch Devices */
@media (hover: none) {
    .service-card:hover,
    .stat-card:hover,
    .tree-element:hover,
    .commitment-card:hover,
    .client-logo-static:hover {
        transform: none;
        box-shadow: none;
    }

    .cta-button:hover,
    .submit-button:hover {
        transform: none;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .main-header,
    .client-carousel,
    .contact-form {
        box-shadow: 0 1px 3px var(--shadow);
    }
    
    .service-card,
    .stat-card,
    .tree-element,
    .commitment-card {
        box-shadow: 0 2px 4px var(--shadow);
    }
}

/* Print Styles */
@media print {
    .main-header,
    .client-carousel,
    .nav-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    .hero {
        padding-top: 0;
        min-height: auto;
    }

    .cta-button,
    .submit-button {
        border: 2px solid #000;
        color: #000;
        background: transparent;
    }

    .contact-form {
        border: 1px solid #000;
        box-shadow: none;
    }
}