/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    /* Services */

    .services-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 55px;
    }

    .service-item {
        grid-template-columns: 60px 1fr 45px;
        gap: 20px;
    }

    .service-image {
        right: 75px;
        width: 300px;
        height: 160px;
    }


    /* Projects */

    .projects-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
        margin-bottom: 55px;
    }

    .projects-intro {
        max-width: 500px;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-featured {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .project-featured .project-image {
        height: 500px;
    }

    .project-card .project-image {
        height: 260px;
    }


    /* About */

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-heading h2 {
        max-width: 850px;
    }

    .about-copy {
        max-width: 650px;
        margin-left: auto;
    }


    /* Contact */

    .contact-content {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .contact-details {
        max-width: 600px;
        margin-left: auto;
        width: 100%;
    }


    /* Footer */

    .footer-main {
        gap: 50px;
    }

    .footer-links {
        gap: 45px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .navbar {
    position: relative;
    z-index: 1000;
}

.nav-links {
    z-index: 1001;
}

.hero h1 {
    font-size: clamp(42px, 10vw, 62px);
    max-width: 100%;
}

    /* Mobile navigation */

.navbar {
    height: 75px;
}

.nav-cta {
    display: none;
}

.menu-toggle {
    display: flex;
}

.nav-links {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 0;

    padding: 10px 20px 25px;

    background: #0a0a0a;
    border-bottom: 1px solid #292929;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}

.nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-links a {
    padding: 18px 5px;
    border-bottom: 1px solid #222;

    color: var(--white);
    font-size: 14px;
}

.nav-links a:last-child {
    border-bottom: none;
}

    /* General */

    .section-heading h2 {
        font-size: 42px;
    }


    /* Hero */

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        min-height: auto;
        padding: 120px 30px 80px;
    }

    .hero-image {
        min-height: 60vh;
        background-position: 58%;
    }


    /* Trust */

    .trust-strip {
        width: calc(100% - 40px);
        grid-template-columns: 1fr;
        padding: 10px 0;
    }

    .trust-item {
        padding: 22px 10px;
    }

    .trust-item + .trust-item {
        border-left: none;
        border-top: 1px solid #252525;
    }


    /* Services */

    .services {
        padding-top: 100px;
    }

    .services-header {
        margin-bottom: 45px;
    }

    .service-item {
        min-height: 120px;
        grid-template-columns: 35px 1fr 40px;
        gap: 12px;
        padding: 25px 0;
    }

    .service-item:hover {
        padding-left: 0;
        padding-right: 0;
    }

    .service-content h3 {
        font-size: 20px;
    }

    .service-content p {
        font-size: 13px;
    }

    /*
       Images are hidden on mobile.
       Hover does not exist reliably on touch screens.
    */

    .service-image {
        display: none;
    }

    .service-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }


    /* Projects */

    .projects {
        padding-top: 100px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .project-featured {
        grid-column: auto;
    }

    .project-featured .project-image,
    .project-card .project-image {
        height: 280px;
    }

    .project-featured .project-info h3 {
        font-size: 23px;
    }


    /* About */

    .about {
        width: calc(100% - 40px);
        padding: 110px 0 130px;
    }

    .about-label {
        margin-bottom: 45px;
    }

    .about-content {
        gap: 55px;
    }

    .about-heading h2 {
        font-size: clamp(42px, 11vw, 65px);
        letter-spacing: -2px;
    }

    .about-copy {
        margin-left: 0;
    }

    .about-copy p {
        font-size: 14px;
    }

    .about-values {
        gap: 15px 20px;
        margin-top: 35px;
    }


    /* Contact */

    .contact {
        width: calc(100% - 40px);
        padding: 110px 0 100px;
    }

    .contact-label {
        margin-bottom: 45px;
    }

    .contact-content {
        gap: 60px;
    }

    .contact-heading h2 {
        font-size: clamp(48px, 12vw, 70px);
        letter-spacing: -2px;
    }

    .contact-detail a,
    .contact-detail p {
        font-size: 17px;
    }


    /* Footer */

    .footer {
        width: calc(100% - 40px);
        padding: 65px 0 25px;
    }

    .footer-main {
        flex-direction: column;
        gap: 55px;
        padding-bottom: 60px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom-links {
        gap: 20px;
        flex-wrap: wrap;
    }

    .footer-top {
        justify-self: start;
    }
}

.reveal {
    transform: translateY(20px);
}

.page-loaded .hero-image {
    transform: scale(1);
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 420px) {

    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .trust-strip,
    .about,
    .contact,
    .footer {
        width: calc(100% - 30px);
    }

    .service-item {
        grid-template-columns: 28px 1fr 36px;
    }

    .service-number {
        font-size: 10px;
    }

    .service-content h3 {
        font-size: 18px;
        letter-spacing: -0.5px;
    }

    .service-content p {
        font-size: 12px;
    }

    .project-featured .project-image,
    .project-card .project-image {
        height: 230px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}