/* ==========================================================
   SCL SOLUTION HOME RESPONSIVE

   Purpose:
   - Keep homepage responsive overrides separate from component base CSS.

   Dependencies:
   - about.css
   - projects.css
   - contact.css
========================================================== */

/* ==========================================================
   TABLET / SMALL DESKTOP
========================================================== */

@media (max-width: 1100px) {
    .hero {
        min-height: auto;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
        padding: 120px 6% 70px;
    }

    .hero-content {
        max-width: 820px;
        text-align: center;
    }

    .hero h1 {
        align-items: center;
        font-size: clamp(3.4rem, 7vw, 5rem);
    }

    .hero h2 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-graphic {
        width: min(70%, 620px);
    }

    .service-container {
        grid-template-columns: repeat(2, minmax(220px, 260px));
    }

    .team-stage {
        width: min(1000px, calc(100vw - 48px));
    }

    .team-slot {
        width: min(340px, 42vw);
    }

    .team-arrow-prev {
        left: 8px;
    }

    .team-arrow-next {
        right: 8px;
    }

    .about-main {
        grid-template-columns: 1fr;
    }

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

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

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

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 768px) {
    .hero {
        gap: 35px;
        padding: 105px 6% 60px;
    }

    .hero-content {
        max-width: 680px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 10vw, 4.2rem);
    }

    .hero h2 {
        height: auto;
        min-height: 42px;
        margin-top: 16px;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-buttons {
        margin-top: 30px;
        gap: 14px;
    }

    .hero .btn {
        padding: 14px 28px;
    }

    .hero-graphic {
        width: min(82%, 560px);
    }

    .team-carousel {
        height: 400px;
    }

    .team-stage {
        width: 100%;
    }

    .team-slot {
        width: min(320px, 70vw);
        height: 250px;
    }

    .team-card {
        padding: 24px;
    }

    .left,
    .right {
        opacity: .18;
    }

    .team-arrow {
        width: 46px;
        height: 46px;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 576px) {
    .hero {
        gap: 25px;
        padding: 95px 5% 50px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.4rem);
        line-height: 1.05;
    }

    .hero h2 {
        font-size: 1.35rem;
        min-height: 34px;
    }

    .hero p {
        font-size: .95rem;
        line-height: 1.65;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: min(100%, 320px);
        margin-left: auto;
        margin-right: auto;
    }

    .hero .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .hero-graphic {
        width: 92%;
        display: none;
    }

    .service-container {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 360px);
        margin-left: auto;
        margin-right: auto;
    }

    .service-card {
        width: 100%;
    }

    .team-carousel {
        height: 360px;
    }

    .team-slot {
        width: min(290px, calc(100vw - 80px));
        height: 230px;
    }

    .team-slot.left,
    .team-slot.right {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .team-card {
        padding: 20px;
    }

    .team-avatar-placeholder {
        width: 90px;
        height: 90px;
    }

    .team-arrow-prev {
        left: 0;
    }

    .team-arrow-next {
        right: 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 28px 22px;
    }

    #contactForm button {
        width: 100%;
        min-width: 0;
    }
}
