/* Structured About, Testing and Rentals pages. */

.es-content-page {
    background: #ffffff;
    color: #34383d;
    overflow: hidden;
}

.es-content-hero {
    background:
        radial-gradient(circle at 88% 15%, rgba(181, 36, 36, 0.11), transparent 28%),
        linear-gradient(135deg, #f7f8f9 0%, #eef1f3 100%);
    border-bottom: 1px solid #dfe3e7;
    padding: 68px 0 64px;
    position: relative;
}

.es-content-hero::after {
    background: #b52424;
    bottom: -1px;
    content: "";
    height: 4px;
    left: max(24px, calc((100vw - 1170px) / 2));
    position: absolute;
    width: 78px;
}

.es-content-hero-inner {
    max-width: 880px;
}

.es-content-hero h1 {
    color: #171717;
    font-size: clamp(42px, 5.4vw, 68px);
    font-weight: 850;
    letter-spacing: -0.05em;
    line-height: 1;
    margin: 0 0 22px;
}

.es-content-hero-copy {
    color: #565f68;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.65;
    margin: 0;
    max-width: 800px;
}

.es-content-section {
    padding: 76px 0 84px;
}

.es-content-section--soft {
    background: #f5f6f7;
    border-bottom: 1px solid #e1e4e8;
    border-top: 1px solid #e1e4e8;
}

.es-content-prose-card {
    background: #ffffff;
    border: 1px solid #dfe3e7;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(23, 23, 23, 0.07);
    margin: 0 auto;
    max-width: 970px;
    padding: clamp(30px, 6vw, 68px);
    position: relative;
}

.es-content-prose-card::before {
    background: #b52424;
    border-radius: 8px;
    content: "";
    height: 62px;
    left: 0;
    position: absolute;
    top: 42px;
    width: 5px;
}

.es-content-prose-card h2,
.es-service-copy h2,
.es-rental-panel h2 {
    color: #171717;
    font-size: clamp(30px, 4vw, 45px);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 0 0 22px;
}

.es-content-copy {
    color: #4f5861;
    font-size: 17px;
    line-height: 1.82;
}

.es-content-copy--lead {
    color: #343a40;
    font-size: 19px;
    line-height: 1.75;
}

.es-preserve-lines {
    white-space: pre-line;
}

.es-content-copy p:last-child,
.es-content-copy > :last-child {
    margin-bottom: 0;
}

.es-service-list {
    display: grid;
    gap: 34px;
}

.es-service-card {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #dfe3e7;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(23, 23, 23, 0.055);
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    min-width: 0;
    overflow: hidden;
}

.es-service-card:nth-child(even) {
    grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
}

.es-service-card:nth-child(even) .es-service-media {
    order: 2;
}

.es-service-media {
    align-items: center;
    background: #eef1f3;
    display: flex;
    justify-content: center;
    min-height: 390px;
    overflow: hidden;
    padding: 34px;
}

.es-service-media img {
    height: 100%;
    max-height: 430px;
    object-fit: contain;
    width: 100%;
}

.es-service-copy {
    align-self: center;
    padding: clamp(30px, 5vw, 58px);
}

.es-service-copy .es-content-copy {
    font-size: 16px;
    line-height: 1.75;
}

.es-feature-list {
    display: grid;
    gap: 11px;
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.es-feature-list li {
    color: #343a40;
    line-height: 1.5;
    padding-left: 29px;
    position: relative;
}

.es-feature-list li::before {
    align-items: center;
    background: #f7e7e7;
    border-radius: 50%;
    color: #9f2020;
    content: "\2713";
    display: flex;
    font-size: 11px;
    font-weight: 900;
    height: 20px;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 2px;
    width: 20px;
}

.es-rental-layout {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.es-rental-panel,
.es-rental-aside {
    border-radius: 16px;
    min-width: 0;
    padding: clamp(31px, 5vw, 58px);
}

.es-rental-panel {
    background: #ffffff;
    border: 1px solid #dfe3e7;
    box-shadow: 0 18px 48px rgba(23, 23, 23, 0.07);
}

.es-rental-panel .es-content-copy {
    margin-bottom: 30px;
}

.es-rental-aside {
    background: #22272d;
    color: rgba(255, 255, 255, 0.77);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.es-rental-aside h2 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 14px;
}

.es-rental-aside p {
    line-height: 1.7;
    margin: 0 0 25px;
}

.es-rental-aside .es-button {
    align-self: flex-start;
}

/* Legal pages */
.es-legal-eyebrow,
.es-legal-effective {
    color: #98251f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.es-legal-effective {
    color: #59616a;
    letter-spacing: 0.08em;
    margin: 24px 0 0;
}

.es-legal-layout {
    align-items: start;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(240px, 0.32fr) minmax(0, 1fr);
}

.es-legal-summary {
    background: #22272d;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    position: sticky;
    top: 24px;
}

.es-legal-summary h2 {
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    margin: 0 0 18px;
}

.es-legal-summary ul {
    margin: 0 0 28px;
    padding-left: 20px;
}

.es-legal-summary li {
    line-height: 1.6;
    margin-bottom: 12px;
}

.es-site-shell .es-legal-summary a.es-button--secondary {
    background: #fff;
    border-color: #fff;
    color: #22272d;
}

.es-site-shell .es-legal-summary a.es-button--secondary:hover,
.es-site-shell .es-legal-summary a.es-button--secondary:focus {
    background: #e9edf0;
    border-color: #e9edf0;
    color: #171a1e;
}

.es-legal-card {
    background: #fff;
    border: 1px solid #dfe3e7;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(23, 23, 23, 0.07);
    min-width: 0;
    padding: clamp(30px, 5vw, 62px);
}

.es-legal-toc {
    background: #f5f6f7;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    display: grid;
    gap: 8px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 48px;
    padding: 24px;
}

.es-legal-toc strong {
    color: #171717;
    grid-column: 1 / -1;
    margin-bottom: 5px;
}

.es-legal-toc a,
.es-legal-card a {
    overflow-wrap: anywhere;
}

.es-legal-section {
    color: #4f5861;
    font-size: 16px;
    line-height: 1.78;
    scroll-margin-top: 20px;
}

.es-legal-section + .es-legal-section {
    border-top: 1px solid #e5e8eb;
    margin-top: 38px;
    padding-top: 38px;
}

.es-legal-section h2 {
    color: #171717;
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin: 0 0 20px;
}

.es-legal-section h3 {
    color: #262b30;
    font-size: 20px;
    font-weight: 800;
    margin: 28px 0 12px;
}

.es-legal-section p,
.es-legal-section ul {
    margin-bottom: 18px;
}

.es-legal-section li {
    margin-bottom: 8px;
}

.es-legal-callout {
    background: #fff8e8;
    border: 1px solid #e9d9a8 !important;
    border-radius: 12px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 30px 20px !important;
}

.es-legal-contact {
    background: #f5f6f7;
    border-radius: 12px;
    padding: 30px !important;
}

.es-legal-contact address {
    color: #343a40;
    font-style: normal;
    line-height: 1.75;
}

@media (max-width: 991px) {
    .es-content-hero {
        padding: 56px 0 54px;
    }

    .es-content-section {
        padding: 58px 0 66px;
    }

    .es-service-card,
    .es-service-card:nth-child(even) {
        grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    }

    .es-service-card:nth-child(even) .es-service-media {
        order: 0;
    }

    .es-service-media {
        min-height: 340px;
        padding: 26px;
    }

    .es-rental-layout {
        grid-template-columns: 1fr;
    }

    .es-legal-layout {
        grid-template-columns: 1fr;
    }

    .es-legal-summary {
        position: static;
    }
}

@media (max-width: 767px) {
    .es-content-hero {
        padding: 45px 0 46px;
    }

    .es-content-hero h1 {
        font-size: clamp(38px, 12vw, 52px);
    }

    .es-content-hero-copy {
        font-size: 17px;
    }

    .es-content-section {
        padding: 44px 0 52px;
    }

    .es-content-prose-card {
        border-radius: 12px;
        padding: 31px 25px;
    }

    .es-content-prose-card::before {
        height: 44px;
        top: 32px;
        width: 4px;
    }

    .es-content-copy,
    .es-content-copy--lead {
        font-size: 16px;
        line-height: 1.72;
    }

    .es-service-list {
        gap: 24px;
    }

    .es-service-card,
    .es-service-card:nth-child(even) {
        border-radius: 12px;
        grid-template-columns: 1fr;
    }

    .es-service-card:nth-child(even) .es-service-media {
        order: 0;
    }

    .es-service-media {
        min-height: 255px;
        padding: 24px;
    }

    .es-service-copy {
        padding: 30px 25px 34px;
    }

    .es-rental-panel,
    .es-rental-aside {
        border-radius: 12px;
        padding: 31px 25px;
    }

    .es-legal-card {
        border-radius: 12px;
        padding: 30px 24px;
    }

    .es-legal-toc {
        grid-template-columns: 1fr;
        margin-bottom: 34px;
        padding: 20px;
    }

    .es-legal-callout {
        margin-left: -10px;
        margin-right: -10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .es-content-page *,
    .es-content-page *::before,
    .es-content-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
