/* =========================================================
   AVERRA BUILD
   home.css
   ========================================================= */


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

.hero {
    position: relative;

    display: flex;
    align-items: flex-end;

    width: 100%;
    min-height: 100svh;

    overflow: hidden;

    background: var(--charcoal);
}

.hero-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.7;
}

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(25, 24, 23, 0.85) 0%,
            rgba(25, 24, 23, 0.28) 55%,
            rgba(25, 24, 23, 0.12) 100%
        ),
        linear-gradient(
            0deg,
            rgba(25, 24, 23, 0.7) 0%,
            transparent 80%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1050px;

    padding:
        calc(var(--header-height) + 80px)
        var(--page-padding)
        clamp(70px, 9vw, 130px);
}

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

.hero h1 {
    margin-bottom: 30px;
opacity: 89%;
    max-width: 900px;
}

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

    margin-bottom: 38px;

    color: var(--text-light);

    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}


/* ---------- INTRO ---------- */

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

.intro-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.5fr;

    gap: clamp(50px, 8vw, 140px);

    align-items: start;
}

.intro-heading {
    max-width: 880px;
}

.intro-copy {
    max-width: 670px;
}

.intro-copy p {
    color: rgba(25, 24, 23, 0.75);
}

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


/* ---------- PROJECTS ---------- */

.featured-projects {
    background: var(--charcoal);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: clamp(50px, 7vw, 90px);
}

.section-header h2 {
    margin-bottom: 0;
}

.text-link {
    display: inline-flex;

    padding-bottom: 5px;

    border-bottom: 1px solid var(--copper);

    color: var(--off-white);

    font-size: 0.72rem;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.projects-grid {
    display: grid;

    grid-template-columns: repeat(12, 1fr);

    gap: clamp(18px, 2vw, 32px);
}

.project-card {
    position: relative;

    display: block;

    overflow: hidden;
}

.project-card:nth-child(1) {
    grid-column: span 7;
}

.project-card:nth-child(2) {
    grid-column: span 5;

    margin-top: 120px;
}

.project-card:nth-child(3) {
    grid-column: 4 / span 7;

    margin-top: 40px;
}

.project-image {
    aspect-ratio: 4 / 3;

    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover img {
    transform: scale(1.035);
}

.project-info {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding-top: 18px;
}

.project-name {
    margin: 0;

    font-size: clamp(1.15rem, 1.8vw, 1.65rem);
    font-weight: 400;
}

.project-type {
    color: var(--text-muted);

    font-size: 0.75rem;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* ---------- SERVICES ---------- */

.services {
    background: var(--blue);
}

.services .eyebrow {
    color: var(--off-white);
}

.services-header {
    max-width: 850px;

    margin-bottom: clamp(60px, 8vw, 110px);
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid rgba(237, 233, 230, 0.35);
}

.service {
    min-height: 300px;

    padding:
        clamp(28px, 3vw, 45px)
        clamp(20px, 2.5vw, 35px);

    border-right: 1px solid rgba(237, 233, 230, 0.35);
}

.service:last-child {
    border-right: 0;
}

.service-number {
    display: block;

    margin-bottom: 70px;

    color: rgba(237, 233, 230, 0.55);

    font-size: 0.7rem;

    letter-spacing: 0.15em;
}

.service h3 {
    margin-bottom: 16px;
}

.service p {
    color: rgba(237, 233, 230, 0.75);

    font-size: 0.95rem;
}


/* ---------- ABOUT CTA ---------- */

.about-preview {
    background: var(--off-white);
    color: var(--charcoal);
}

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: clamp(50px, 8vw, 120px);

    align-items: center;
}

.about-image {
    min-height: 650px;

    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;

    min-height: 650px;

    object-fit: cover;
}

.about-content {
    max-width: 650px;
}

.about-content .eyebrow {
    color: var(--copper);
}

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

.about-content .button {
    margin-top: 22px;

    color: var(--charcoal);
}


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

.contact-cta {
    position: relative;

    overflow: hidden;

    background: var(--charcoal);
}

.contact-cta-inner {
    display: grid;

    grid-template-columns: 1.4fr 0.6fr;

    gap: 50px;

    align-items: end;
}

.contact-cta h2 {
    max-width: 950px;
}

.contact-cta p {
    max-width: 420px;

    color: var(--text-muted);
}


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

@media (max-width: 1000px) {

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

    .service:nth-child(2) {
        border-right: 0;
    }

    .service:nth-child(-n+2) {
        border-bottom: 1px solid rgba(237, 233, 230, 0.35);
    }

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

    .about-image,
    .about-image img {
        min-height: 500px;
    }
}


@media (max-width: 750px) {

    .hero-content {
        padding-bottom: 55px;
    }

    .intro-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .section-header {
        display: block;
    }

    .section-header .text-link {
        margin-top: 25px;
    }

    .projects-grid {
        display: block;
    }

    .project-card {
        margin: 0 0 55px !important;
    }

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

    .services-grid {
        display: block;

        border-top: 1px solid rgba(237, 233, 230, 0.35);
    }

    .service {
        min-height: auto;

        border-right: 0;
        border-bottom: 1px solid rgba(237, 233, 230, 0.35);
    }

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

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