/* =========================================================
   AVERRA BUILD
   services.css
   ========================================================= */

.services-page {
    background: var(--off-white);
    color: var(--charcoal);
}

/* ---------- HEADER ---------- */

.services-page .site-header {
    color: var(--blue);
}

.services-page .site-header.scrolled {
    background: rgba(237, 233, 230, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-dark);
}

.services-page .desktop-nav a {
    color: var(--blue);
}

.services-page .desktop-nav a[aria-current="page"]::after {
    width: 100%;
}

.services-page .menu-button span {
    background: var(--blue);
}

.services-page .menu-button.open span {
    background: var(--off-white);
}

/* ---------- HERO ---------- */

.services-hero {
    padding:
        calc(var(--header-height) + clamp(110px, 13vw, 200px))
        0
        clamp(110px, 12vw, 180px);
    background: var(--off-white);
}

.services-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: clamp(70px, 10vw, 170px);
    align-items: end;
}

.services-hero .eyebrow {
    color: var(--blue);
}

.services-hero h1 {
    max-width: 950px;
    margin-bottom: 0;
    color: var(--charcoal);
    font-size: clamp(4rem, 7vw, 7.8rem);
    line-height: 0.94;
}

.services-hero-copy {
    max-width: 560px;
}

.services-hero-copy p {
    color: rgba(25, 24, 23, 0.72);
}

.services-hero-copy p:last-child {
    margin-bottom: 0;
}

/* ---------- SERVICE SECTIONS ---------- */

.service-section {
    padding-block: clamp(90px, 10vw, 150px);
    border-top: 1px solid var(--border-dark);
    background: var(--off-white);
}

.service-section-alt {
    background: #e5e0dc;
}

.service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: clamp(60px, 9vw, 150px);
    align-items: center;
}

.service-layout-reverse .service-image {
    order: 2;
}

.service-layout-reverse .service-content {
    order: 1;
}

/* ---------- IMAGES ---------- */

.service-image {
    overflow: hidden;
    
    background: #d8d3cf;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-image:hover img {
    transform: scale(1.025);
}

/* ---------- SERVICE COPY ---------- */

.service-content {
    max-width: 570px;
}

.service-number {
    display: block;
    margin-bottom: 55px;
    color: rgba(25, 24, 23, 0.42);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
}

.service-content .eyebrow {
    margin-bottom: 25px;
    color: var(--blue);
    font-size: 1.2em;
}

.service-content h2 {
    margin-bottom: 37px;
    color: var(--charcoal);
    font-size: clamp(2.5rem, 4.2vw, 4.8rem);
    line-height: 1;
}

.service-content p {
    color: rgba(25, 24, 23, 0.72);
}

.new-build-section {
    padding-bottom: clamp(120px, 14vw, 210px);
}

/* ---------- CONTACT CTA ---------- */

.services-contact {
    background: var(--blue);
    color: var(--off-white);
}

.services-contact-inner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: clamp(60px, 9vw, 140px);
    align-items: end;
}

.services-contact .eyebrow {
    color: var(--blue-light);
}

.services-contact h2 {
    margin-bottom: 0;
}

.services-contact-copy {
    max-width: 460px;
}

.services-contact-copy p {
    margin-bottom: 32px;
    color: rgba(237, 233, 230, 0.78);
}

.services-contact .button {
    border-color: var(--blue-light);
}

.services-contact .button:hover {
    background: var(--blue-light);
    color: var(--charcoal);
}

/* ---------- FOOTER ---------- */

.services-page .site-footer {
    background: var(--charcoal);
    color: var(--off-white);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1000px) {
    .services-hero-grid,
    .service-layout,
    .services-contact-inner {
        grid-template-columns: 1fr;
    }

    .services-hero-grid,
    .service-layout {
        gap: 55px;
    }

    .service-layout-reverse .service-image,
    .service-layout-reverse .service-content {
        order: initial;
    }

    .service-content {
        max-width: 720px;
    }

    .service-image {
        aspect-ratio: 16 / 10;
    }

    .service-number {
        margin-bottom: 35px;
    }
}

@media (max-width: 750px) {
    .services-hero {
        padding-top: calc(var(--header-height) + 85px);
        padding-bottom: 90px;
    }

    .services-hero h1 {
        font-size: clamp(3.5rem, 15vw, 5.5rem);
    }

    .service-section {
        padding-block: 75px;
    }

    .service-layout {
        gap: 42px;
    }

    .service-image {
        aspect-ratio: 4 / 3;
    }

    .service-content h2 {
        margin-bottom: 25px;
        font-size: clamp(2.5rem, 11vw, 4rem);
    }

    .service-number {
        margin-bottom: 28px;
    }
}
