/* Modern public catalog, product-detail and inquiry layouts. */

.es-catalog,
.es-product-detail,
.es-contact-page {
    background: #ffffff;
    color: #34383d;
}

.es-catalog-hero,
.es-form-page-hero,
.es-product-hero {
    background: #f4f5f6;
    border-bottom: 1px solid #e1e4e8;
    padding: 52px 0 50px;
}

.es-catalog-hero-inner,
.es-form-page-hero-inner,
.es-product-hero-inner {
    max-width: 850px;
}

.es-page-kicker {
    color: #b52424;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.es-catalog-hero h1,
.es-form-page-hero h1,
.es-product-hero h1 {
    color: #171717;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 850;
    letter-spacing: -0.045em;
    line-height: 1.02;
    margin: 0 0 18px;
}

.es-catalog-hero p:last-child,
.es-form-page-hero p:last-child,
.es-product-hero p:last-child {
    color: #555c64;
    font-size: 18px;
    line-height: 1.65;
    margin: 0;
    max-width: 740px;
}

.es-catalog-body {
    padding: 58px 0 74px;
}

.es-catalog-intro {
    align-items: end;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.es-catalog-intro h2 {
    color: #171717;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 0 0 7px;
}

.es-catalog-intro p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.es-catalog-support-link {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

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

.es-product-card {
    background: #ffffff;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    position: relative;
    transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.es-product-card:hover,
.es-product-card:focus-within {
    border-color: #b7bec5;
    box-shadow: 0 16px 34px rgba(23, 23, 23, 0.09);
    transform: translateY(-3px);
}

.es-product-card-media {
    align-items: center;
    aspect-ratio: 4 / 3;
    background: #f5f6f7;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 22px;
}

.es-product-card-media img {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 220ms ease;
    width: 100%;
}

.es-product-card:hover .es-product-card-media img {
    transform: scale(1.025);
}

.es-product-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.es-product-card-title {
    color: #171717;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.16;
    margin: 0 0 8px;
}

.es-product-card-title a {
    color: inherit;
}

.es-product-card-title a::after {
    content: "";
    inset: 0;
    position: absolute;
}

.es-product-card-title a:focus-visible {
    outline: 0;
}

.es-product-card-title a:focus-visible::after {
    border-radius: 12px;
    box-shadow: inset 0 0 0 3px #b52424;
}

.es-product-card-subtitle {
    color: #5b626a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 13px;
}

.es-product-card-description {
    color: #555c64;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 22px;
}

.es-product-card-link {
    align-items: center;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0.05em;
    margin-top: auto;
    text-transform: uppercase;
}

.es-product-card-link::after {
    content: "\2192";
    font-size: 17px;
}

.es-catalog-empty {
    background: #f5f6f7;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    padding: 34px;
    text-align: center;
}

/* Contact and quote forms */
.es-form-layout {
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    padding: 56px 0 72px;
}

.es-form-card,
.es-contact-panel,
.es-quote-card {
    background: #ffffff;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(23, 23, 23, 0.06);
    padding: clamp(25px, 4vw, 42px);
}

.es-form-card h2,
.es-contact-panel h2,
.es-quote-card h2 {
    color: #171717;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}

.es-form-intro {
    color: #59616a;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 28px;
}

.es-form-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.es-form-field {
    margin: 0;
    min-width: 0;
}

.es-form-field--full {
    grid-column: 1 / -1;
}

.es-form-field label,
.es-form-field .es-label {
    color: #22262a;
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 8px;
}

.es-required {
    color: #a72121;
}

.es-form-field .form-control,
.es-form-field input[type="text"],
.es-form-field input[type="email"],
.es-form-field input[type="tel"],
.es-form-field select,
.es-form-field textarea {
    background: #ffffff;
    border: 1px solid #bfc6cd;
    border-radius: 9px;
    box-shadow: none;
    color: #171717;
    font: inherit;
    font-size: 16px;
    height: 54px;
    padding: 13px 15px;
    width: 100%;
}

.es-form-field textarea.form-control,
.es-form-field textarea {
    height: auto;
    min-height: 160px;
    resize: vertical;
}

.es-form-field .form-control:focus,
.es-form-field input:focus,
.es-form-field select:focus,
.es-form-field textarea:focus {
    border-color: #b52424;
    box-shadow: 0 0 0 4px rgba(181, 36, 36, 0.12);
}

.es-field-hint {
    color: #6a7179;
    display: block;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 7px;
}

.es-field-error {
    color: #a72121;
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 8px;
}

.es-form-actions {
    align-items: center;
    display: flex;
    gap: 18px;
    grid-column: 1 / -1;
    margin-top: 5px;
}

.es-form-submit {
    align-items: center;
    background: #b52424 !important;
    border: 1px solid #b52424 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    display: inline-flex;
    font-size: 15px !important;
    font-weight: 800 !important;
    justify-content: center;
    min-height: 52px;
    padding: 13px 24px !important;
    text-decoration: none !important;
}

.es-form-submit:hover {
    background: #8a1c1c !important;
    border-color: #8a1c1c !important;
}

.es-form-status {
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 24px;
    padding: 17px 19px;
}

.es-form-status--success {
    background: #eaf7ee;
    border: 1px solid #9bd2aa;
    color: #155d2c;
}

.es-form-status--error {
    background: #fff0f0;
    border: 1px solid #e7a5a5;
    color: #8a1c1c;
}

.es-contact-panel {
    align-self: start;
    background: #20252b;
    border-color: #20252b;
    color: #ffffff;
    box-shadow: none;
}

.es-contact-panel h2,
.es-contact-panel h3 {
    color: #ffffff;
}

.es-contact-panel p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.65;
}

.es-contact-details {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.es-contact-details li {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    padding: 17px 0;
}

.es-contact-details span {
    color: rgba(255, 255, 255, 0.58);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.es-contact-details a,
.es-contact-details strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.es-contact-map {
    border-top: 1px solid #e1e4e8;
    background: #f4f5f6;
    padding: 50px 0;
}

.es-contact-map-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dde1e5;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(18, 25, 33, 0.08);
    display: flex;
    gap: 36px;
    justify-content: space-between;
    padding: 32px 36px;
}

.es-contact-map-card h2 {
    color: #20252b;
    font-size: 28px;
    margin: 4px 0 8px;
}

.es-contact-map-card p:last-child {
    color: #626c76;
    margin: 0;
    max-width: 690px;
}

.es-contact-map-card .es-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Product detail */
.es-product-detail-body {
    padding: 58px 0 78px;
}

.es-product-overview {
    display: grid;
    gap: 52px;
    grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.45fr);
}

.es-product-image-card {
    align-items: center;
    align-self: start;
    background: #f5f6f7;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    min-height: 360px;
    padding: 30px;
}

.es-product-image-card img {
    max-height: 430px;
    object-fit: contain;
    width: 100%;
}

.es-product-copy h2 {
    color: #171717;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin: 0 0 18px;
}

.es-product-meta {
    background: #f5f6f7;
    border-left: 4px solid #b52424;
    color: #34383d;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 26px;
    padding: 15px 18px;
}

.es-product-description {
    font-size: 16px;
    line-height: 1.7;
}

.es-product-description img,
.es-product-description table {
    max-width: 100%;
}

.es-product-download {
    align-items: center;
    background: #f5f6f7;
    border-radius: 10px;
    display: flex;
    font-size: 15px;
    gap: 14px;
    margin-top: 28px;
    padding: 17px;
}

.es-product-download img {
    width: 38px;
}

.es-quote-section {
    background: #f4f5f6;
    border-top: 1px solid #dfe3e7;
    margin-top: 58px;
    padding: 58px 0;
}

.es-quote-heading {
    margin-bottom: 28px;
    max-width: 760px;
}

.es-quote-heading h2 {
    color: #171717;
    font-size: clamp(30px, 4vw, 45px);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0 0 10px;
}

.es-quote-heading p {
    color: #59616a;
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}

.es-quote-card {
    box-shadow: none;
    max-width: 980px;
}

.es-open-callout {
    background: #20252b;
    border-radius: 10px;
    color: #ffffff;
    margin: 0 0 24px;
    padding: 18px 20px;
}

.es-open-callout a {
    color: #ffffff;
    font-weight: 800;
}

@media (max-width: 991px) {
    .es-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .es-form-layout,
    .es-product-overview {
        grid-template-columns: 1fr;
    }

    .es-product-image-card {
        max-width: 560px;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .es-catalog-hero,
    .es-form-page-hero,
    .es-product-hero {
        padding: 38px 0 36px;
    }

    .es-catalog-hero h1,
    .es-form-page-hero h1,
    .es-product-hero h1 {
        font-size: 37px;
    }

    .es-catalog-body,
    .es-form-layout,
    .es-product-detail-body {
        padding-bottom: 52px;
        padding-top: 42px;
    }

    .es-catalog-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .es-product-grid,
    .es-form-grid {
        grid-template-columns: 1fr;
    }

    .es-form-field--full,
    .es-form-actions {
        grid-column: auto;
    }

    .es-product-card-content {
        padding: 22px;
    }

    .es-form-card,
    .es-contact-panel,
    .es-quote-card {
        border-radius: 10px;
        padding: 24px 20px;
    }

    .es-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .es-form-submit {
        width: 100%;
    }

    .es-contact-map {
        padding: 30px 0;
    }

    .es-contact-map-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        padding: 25px 22px;
    }

    .es-contact-map-card .es-button {
        text-align: center;
        width: 100%;
    }

    .es-product-image-card {
        min-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .es-product-card,
    .es-product-card-media img {
        transition: none;
    }
}
