/**
 * Corporate homepage hero — clean, premium pest-control layout
 */

body.site-professional main#main-content:has(.home-page--corp-hero) {
    padding-top: 0 !important;
}

/* Reset legacy hero styles */
#hero-mesh.corp-hero {
    position: relative;
    isolation: isolate;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #0a1628 !important;
    color: #f1f5f9 !important;
    border: none !important;
}

#hero-mesh.corp-hero::before,
#hero-mesh.corp-hero::after,
#hero-mesh.corp-hero .hero-grid-pattern,
#hero-mesh.corp-hero > .absolute {
    display: none !important;
}

/* Background image */
.corp-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.corp-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
    display: block;
    transform: scale(1.02);
}

@media (max-width: 767px) {
    .corp-hero__bg-img {
        object-position: 68% 35%;
        min-height: 100%;
        transform: none;
    }
}

@media (min-width: 1024px) {
    .corp-hero__bg-img {
        object-position: 70% center;
    }
}

/* Dark overlay — heavier on the left where headline and CTAs sit */
.corp-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            108deg,
            rgba(6, 16, 32, 0.96) 0%,
            rgba(6, 16, 32, 0.9) 32%,
            rgba(6, 16, 32, 0.78) 52%,
            rgba(6, 16, 32, 0.55) 72%,
            rgba(6, 16, 32, 0.45) 100%
        ),
        linear-gradient(180deg, rgba(6, 16, 32, 0.5) 0%, rgba(6, 16, 32, 0.85) 100%);
}

@media (max-width: 767px) {
    .corp-hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(6, 16, 32, 0.93) 0%,
                rgba(6, 16, 32, 0.88) 40%,
                rgba(6, 16, 32, 0.82) 70%,
                rgba(6, 16, 32, 0.9) 100%
            );
    }
}

.corp-hero {
    border-bottom: none;
}

.corp-hero__wrap {
    position: relative;
    z-index: 2;
    padding: calc(5.25rem + 2rem) 1rem 2.75rem;
}

#hero-mesh.corp-hero--has-image {
    min-height: 32rem;
}

@media (min-width: 640px) {
    .corp-hero__wrap {
        padding: calc(5.25rem + 2.5rem) 1.25rem 3.25rem;
    }
}

@media (min-width: 1024px) {
    .corp-hero__wrap {
        padding: calc(5.25rem + 3rem) 1.5rem 3.5rem;
    }
}

/* Main grid */
.corp-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

/* Tablet: centered banner copy */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .corp-hero__bg-img {
        object-position: center center;
    }

    .corp-hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(6, 16, 32, 0.92) 0%,
                rgba(6, 16, 32, 0.88) 45%,
                rgba(6, 16, 32, 0.9) 100%
            );
    }

    .corp-hero__grid {
        justify-items: center;
        gap: 2.25rem;
    }

    .corp-hero__content {
        max-width: 40rem;
        margin-inline: auto;
        text-align: center;
    }

    .corp-hero__eyebrow {
        justify-content: center;
    }

    .corp-hero__lead {
        margin-inline: auto;
    }

    .corp-hero__actions {
        justify-content: center;
    }

    .corp-hero__meta {
        justify-content: center;
    }

    .corp-hero__aside {
        width: 100%;
        max-width: 100%;
        justify-content: stretch;
    }
}

@media (min-width: 1024px) {
    .corp-hero__grid {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2.5rem 2.5rem;
        align-items: center;
    }
}

/* Content */
.corp-hero__content {
    max-width: 36rem;
}

@media (min-width: 1024px) {
    .corp-hero__content {
        max-width: none;
    }
}

.corp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
    color: rgba(226, 232, 240, 0.95);
}

.corp-hero__eyebrow svg {
    color: #7ec8e8;
    flex-shrink: 0;
}

.corp-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.corp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    backdrop-filter: blur(6px);
}

.corp-hero__badge svg {
    color: #7ec8e8;
    flex-shrink: 0;
}

.corp-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.625rem, 4vw, 2.125rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1024px) {
    .corp-hero__title {
        font-size: clamp(1.875rem, 2.4vw, 2.375rem);
    }
}

.corp-hero__location {
    color: #7ec8e8;
}

.corp-hero__lead {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.92);
    max-width: 32rem;
}

@media (min-width: 1024px) {
    .corp-hero__lead {
        font-size: 1.0625rem;
    }
}

/* CTAs */
.corp-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

@media (min-width: 480px) {
    .corp-hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.corp-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.corp-hero__btn--primary {
    color: #fff;
    background: #005588;
    border-color: #005588;
}

.corp-hero__btn--primary:hover {
    background: #004466;
    border-color: #004466;
}

.corp-hero__btn--secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(4px);
}

.corp-hero__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.corp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin: 0;
    font-size: 0.875rem;
}

.corp-hero__meta-link {
    color: #93c5fd;
    font-weight: 500;
    text-decoration: none;
}

.corp-hero__meta-link:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

.corp-hero__meta-sep {
    color: rgba(255, 255, 255, 0.35);
}

/* Form card — width/spacing in ipest-inspection-form.css */

/* Trust row */
.corp-hero__trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .corp-hero__trust {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-top: 2.25rem;
    }
}

.corp-hero__trust-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.corp-hero__trust-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 6px;
    background: rgba(0, 119, 168, 0.35);
    color: #e0f2fe;
}

.corp-hero__trust-title {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: #f8fafc;
}

.corp-hero__trust-text {
    display: block;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #cbd5e1;
}

/* Premium form (biz-hero variant) */
.corp-hero__form-card .biz-form__head {
    padding: 1.375rem 1.5rem 0.5rem;
}

.corp-hero__form-card .biz-form__title {
    margin: 0 0 0.35rem;
    font-size: 1.1875rem;
    font-weight: 700;
    color: #0c1f3d;
}

.corp-hero__form-card .biz-form__subtitle {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.corp-hero__form-card .biz-form__body {
    padding: 0.75rem 1.5rem 1.375rem;
}

.corp-hero__form-card .biz-form__fields {
    gap: 0.875rem;
}

.corp-hero__form-card .biz-form__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.corp-hero__form-card .biz-form__optional {
    font-weight: 400;
    color: #94a3b8;
}

.corp-hero__form-card .biz-form__input {
    min-height: 44px;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid #cfd9e3;
    border-radius: 6px;
    background: #fff;
}

.corp-hero__form-card .biz-form__input:focus {
    border-color: #005588;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 85, 136, 0.12);
}

.corp-hero__form-card .biz-form__input--area {
    min-height: 72px;
}

.corp-hero__form-card .biz-form__submit {
    min-height: 48px;
    font-size: 0.9375rem;
    font-weight: 600;
    background: #005588;
    border-radius: 6px;
}

.corp-hero__form-card .biz-form__submit:hover:not(:disabled) {
    background: #004466;
}

.corp-hero__form-card .biz-form__privacy {
    margin-top: 0.625rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}
