/* Responsive Styles - Mobile & Tablet */

/* iPad / Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Client Carousel - iPad/Tablet specific adjustments */
    .clients-section {
        padding: 3.5rem 0;
    }

    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 80px;
    }

    .carousel-track {
        gap: 2.5rem;
        --carousel-speed: 50s;
    }

    .carousel-item {
        height: 80px;
        padding: 0.75rem 1.25rem;
    }

    .carousel-item img {
        max-height: 80px;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: calc(1rem + 50px + 1rem);
        flex-direction: column;
        background-color: var(--deep-green);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    h2 {
        font-size: 2rem;
    }

    .benefits-grid,
    .solution-grid {
        grid-template-columns: 1fr;
    }

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

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

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

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

    .problem-statement {
        padding: 2rem;
    }

    .investment-box {
        padding: 2rem;
    }

    article.blog-post {
        padding: 2rem 1.5rem;
    }

    article.blog-post h1 {
        font-size: 2rem;
    }

    .blog-post-featured-image {
        height: 250px;
    }

    .featured-case-study {
        padding: 2rem;
    }

    .mission-section {
        padding: 2rem;
    }

    /* Cup Project Images - Tablet adjustments */
    .cup-project-images {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .cup-project-image-container {
        max-width: 500px;
        margin: 0 auto;
    }

    .article-content {
        padding: 0 1.5rem;
    }

    /* Testimonial Cards - Tablet adjustments */
    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-logo img {
        max-width: 200px;
        max-height: 80px;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    /* Client Carousel - Tablet adjustments */
    .clients-section {
        padding: 3rem 0;
    }

    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 60px;
    }

    .carousel-item {
        padding: 0.8rem 1.2rem;
    }

    /* Testimonial Quote - Tablet adjustments */
    .testimonial-quote {
        padding: 2rem;
    }

    .testimonial-quote blockquote {
        font-size: 1.05rem;
        padding-left: 1rem;
    }

    .testimonial-quote::before {
        font-size: 5rem;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 4rem 0;
    }

    .service-card {
        padding: 2rem;
    }

    /* Benefit card header adjustments for mobile */
    .benefit-card-header {
        gap: 0.75rem;
    }

    .benefit-icon {
        width: 48px;
        height: 48px;
    }

    .benefit-card h3 {
        font-size: 1.15rem;
    }

    .testimonial {
        padding: 2rem;
    }

    article.blog-post h1 {
        font-size: 1.7rem;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .blog-post-featured-image {
        height: 200px;
    }

    .social-share-buttons {
        flex-direction: column;
    }

    .investment-box {
        padding: 1.5rem;
    }

    .problem-statement {
        padding: 1.5rem;
    }

    /* Cup Project Images - Mobile adjustments */
    .cup-project-images {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0;
        padding: 1.5rem 1rem;
    }

    .cup-project-image-container {
        max-width: 400px;
        margin: 0 auto;
    }

    .article-content {
        padding: 0 1rem;
    }

    .article-section {
        margin-bottom: 2rem;
    }

    .article-section h2,
    .blog-post .content h2 {
        font-size: 1.6rem;
    }

    .article-cta {
        padding: 2rem 1.5rem;
    }

    /* Testimonial Cards - Mobile adjustments */
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-logo {
        min-height: 60px;
    }

    .testimonial-logo img {
        max-width: 180px;
        max-height: 70px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-title,
    .author-company {
        font-size: 0.9rem;
    }

    /* Client Carousel - Mobile adjustments */
    .clients-section {
        padding: 2.5rem 0;
    }

    /* Narrower fade edges on mobile */
    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 40px;
    }

    /* Override carousel dimensions directly for mobile (not via :root) */
    .carousel-track {
        gap: 2rem;
        --carousel-speed: 45s;
    }

    /* Smaller logo containers on mobile */
    .carousel-item {
        height: 70px;
        padding: 0.6rem 1rem;
    }

    .carousel-item img {
        max-height: 70px;
        max-width: 150px;
    }

    /* Testimonial Quote - Mobile adjustments */
    .testimonial-quote {
        padding: 1.5rem;
    }

    .testimonial-quote blockquote {
        font-size: 1rem;
        padding-left: 0.5rem;
    }

    .testimonial-quote::before {
        font-size: 4rem;
        left: 5px;
        top: -5px;
    }

    .testimonial-quote cite {
        font-size: 0.95rem;
    }

    /* Secondary Button - Mobile adjustments */
    .cta-button,
    .secondary-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}