/*
 * P0 launch typography, contrast and responsive rules.
 * Loaded after the shared V8 stylesheet on all public templates.
 */

:root {
    --hd-p0-navy: #061e33;
    --hd-p0-copy: #263b4d;
    --hd-p0-light-copy: #d8e5ef;
    --hd-p0-orange: #c74700;
    --hd-p0-orange-hover: #b93f00;
}

body {
    color: var(--hd-p0-copy);
}

.v8-home h1,
.v8-content-page h1,
.contact-page h1,
.error-404 h1 {
    font-size: clamp(40px, 3.7vw, 54px);
    line-height: 1.04;
    font-weight: 800;
}

.v8-home h2,
.v8-content-page h2,
.contact-page h2,
.error-404 h2 {
    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.08;
    font-weight: 800;
}

.contact-form-card h2 {
    font-size: clamp(28px, 2.4vw, 36px);
}

.site-nav a,
.nav-dropdown > a,
.nav-dropdown > button {
    font-size: 13.5px;
}

.button,
button,
input[type="submit"] {
    min-height: 48px;
    font-size: 15px;
}

.button-orange,
button[type="submit"],
input[type="submit"] {
    background: var(--hd-p0-orange);
    border-color: var(--hd-p0-orange);
    color: #fff;
}

.button-orange:hover,
.button-orange:focus-visible,
button[type="submit"]:hover,
button[type="submit"]:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
    background: var(--hd-p0-orange-hover);
    border-color: var(--hd-p0-orange-hover);
    color: #fff;
}

.content-section.tinted.home-company {
    background: var(--hd-p0-navy);
    color: #fff;
}

.content-section.tinted.home-company h2,
.content-section.tinted.home-company h3 {
    color: #fff;
}

.content-section.tinted.home-company p,
.content-section.tinted.home-company figcaption {
    color: var(--hd-p0-light-copy);
}

.content-section.tinted.home-company .button-outline {
    border-color: #a8c3d5;
    color: #fff;
}

.content-section.tinted.home-company .button-outline:hover,
.content-section.tinted.home-company .button-outline:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--hd-p0-navy);
}

.content-section.tinted.home-company .proof-gallery figcaption span {
    color: #fff;
}

.v8-home .section-heading h2,
.v8-content-page .section-heading h2 {
    max-width: 22ch;
    text-wrap: balance;
}

.v8-home .section-heading > p,
.v8-home .section-heading > div > p,
.v8-content-page .section-heading > p,
.v8-content-page .section-heading > div > p {
    color: #334e63;
}

.inner-hero .hero-copy h1 {
    max-width: 20ch;
    text-wrap: balance;
}

.form-section h2,
.closing-cta h2,
.dark-section h2 {
    color: #fff;
}

.form-section p,
.closing-cta p,
.dark-section p {
    color: var(--hd-p0-light-copy);
}

img {
    height: auto;
}

.configuration-table-wrap {
    width: 100%;
    margin-top: 32px;
    overflow-x: auto;
    border: 1px solid #cbd8e2;
    border-radius: 16px;
    background: #fff;
}

.configuration-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    color: #20384a;
    font-size: 14px;
    line-height: 1.55;
}

.configuration-table th,
.configuration-table td {
    padding: 16px;
    border-right: 1px solid #dbe4eb;
    border-bottom: 1px solid #dbe4eb;
    text-align: left;
    vertical-align: top;
}

.configuration-table thead th {
    background: #0b2c45;
    color: #fff;
    font-weight: 800;
}

.configuration-table tbody th {
    min-width: 180px;
    color: #09263c;
    font-weight: 800;
}

.configuration-table tr:last-child th,
.configuration-table tr:last-child td {
    border-bottom: 0;
}

.configuration-table th:last-child,
.configuration-table td:last-child {
    border-right: 0;
}

.configuration-table a {
    display: block;
    margin-top: 8px;
    color: #a83800;
    font-weight: 800;
}

@media (min-width: 1025px) {
    .v8-home h1,
    .v8-content-page h1,
    .contact-page h1 {
        max-height: 2.08em;
        overflow: hidden;
    }

    .v8-home h2,
    .v8-content-page h2,
    .contact-page h2 {
        max-height: 3.24em;
        overflow: hidden;
    }
}

@media (max-width: 1024px) {
    .home-hero-grid,
    .inner-hero-grid,
    .complete-line-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .home-hero .hero-copy,
    .home-hero .hero-visual-proof {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .v8-home h1,
    .v8-content-page h1,
    .contact-page h1,
    .error-404 h1 {
        font-size: clamp(34px, 9.5vw, 40px);
        line-height: 1.05;
        max-height: 3.15em;
        overflow: hidden;
    }

    .v8-home h2,
    .v8-content-page h2,
    .contact-page h2,
    .error-404 h2 {
        font-size: clamp(30px, 8vw, 36px);
        line-height: 1.08;
        max-height: 3.24em;
        overflow: hidden;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-actions .button,
    .center-action .button {
        width: 100%;
    }

    .solution-grid,
    .proof-gallery,
    .delivery-grid,
    .content-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    html,
    body,
    .v8-home,
    .v8-content-page {
        max-width: 100%;
        overflow-x: clip;
    }
}
