.hero {
    display: flex;
    align-items: flex-end;
    min-height: var(--hero-height);
    padding: 50px;
    background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), var(--image-hero);
    background-position: center;
    background-size: cover;
    color: var(--color-white);
}

.hero-content {
    max-width: 60%;
}

.hero h1 {
    margin-bottom: var(--space-large);
    font-size: var(--text-hero);
    font-weight: 500;
    line-height: 1;
}

.hero p {
    font-size: 1.3125rem;
    line-height: 1.4;
}

.split-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-small);
    padding: var(--space-small);
}

.text-card {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: calc(5% + 10px);
    border-radius: var(--radius-card);
}

.card-copy {
    width: 100%;
    min-width: 0;
}

.card-copy > * + * {
    margin-top: var(--space-medium);
}

.card-copy h2 {
    max-width: 95%;
}

.card-copy > p:not(.eyebrow) {
    text-align: justify;
}

.text-card-dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.text-card-light {
    background: var(--color-light);
}

.feature-photo {
    width: 100%;
    height: 100%;
    aspect-ratio: 1024 / 683;
    object-fit: cover;
    border-radius: var(--radius-card);
}

.products {
    padding: 2% 30px 30px;
    color: var(--color-black);
    text-align: center;
}

.products > h2 {
    max-width: 60%;
    margin: 10px auto 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.product-card {
    min-width: 0;
}

.product-card img {
    width: 100%;
    border-radius: var(--radius-image);
}

.product-card h3 {
    margin-top: var(--space-medium);
    font-size: var(--text-product);
    font-weight: 700;
    line-height: 1;
}

.product-card p {
    margin-top: 5px;
    line-height: 1.4;
}

.quality-row .text-card {
    min-height: 426px;
}

.certifications-card {
    padding-left: 5%;
}

.certifications-link {
    margin-top: var(--space-large);
    font-size: 0.75rem;
    font-weight: 500;
}

.clients-card {
    background: var(--color-clients);
    color: var(--color-dark);
}

.clients-card .eyebrow {
    color: var(--color-text);
}

.inspection-card {
    background: var(--color-inspection);
    color: var(--color-dark);
}

.video-panel {
    position: relative;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--color-black);
}

.video-cover {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--color-black);
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 3px solid var(--color-white);
    border-radius: 50%;
    background: rgb(0 0 0 / 20%);
    transform: translate(-50%, -50%);
}

.play-symbol::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 19px solid var(--color-white);
}

.video-panel iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-fallback {
    position: absolute;
    bottom: var(--space-medium);
    left: var(--space-medium);
    color: var(--color-white);
}

.contact-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 40px;
    padding: calc(8% + 20px) calc(2% + 20px);
    background-image: linear-gradient(var(--contact-overlay), var(--contact-overlay)), var(--image-contact);
    background-position: left top;
    color: var(--color-white);
}

.contact-copy {
    min-width: 0;
}

.contact-copy .eyebrow {
    margin-bottom: var(--space-medium);
    color: var(--color-accent);
}

.contact-copy h2 {
    max-width: 90%;
    margin-bottom: var(--space-medium);
}

.contact-copy > p:last-child {
    max-width: 90%;
    text-align: justify;
}

@media (max-width: 1024px) {
    .hero-content {
        max-width: 75%;
    }

    .text-card {
        padding: var(--space-large);
    }

    .quality-row .text-card {
        min-height: 0;
    }

    .products > h2 {
        max-width: 85%;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 580px;
        padding: 40px 28px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        line-height: 1.08;
    }

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

    .split-row,
    .product-grid,
    .contact-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .text-card {
        padding: 38px 28px;
    }

    .card-copy h2 {
        max-width: 100%;
    }

    .card-copy > p:not(.eyebrow) {
        text-align: left;
    }

    .feature-photo {
        height: auto;
    }

    .products {
        padding: 40px 28px 28px;
    }

    .products > h2 {
        max-width: 100%;
        margin-top: 0;
    }

    .product-grid {
        gap: 36px;
    }

    .quality-row .text-card {
        min-height: 0;
    }

    .video-panel {
        min-height: 200px;
    }

    .contact-section {
        gap: 40px;
        padding: 60px 28px;
        background-size: cover;
    }

    .contact-copy h2,
    .contact-copy > p:last-child {
        max-width: 100%;
    }

    .contact-copy > p:last-child {
        text-align: left;
    }
}

