/* =========================================================
   SHARED NON-HOME HERO PRESENTATION
   Full-width image, clean surface and readable foreground.
========================================================= */

.about-hero-background-image,
.safety-hero-image,
.contact-hero-image,
.pc-index-image-hero .pc-hero-image,
.gallery-image-hero .gallery-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #06182b;
    transform: none;
    filter: saturate(.92) contrast(1.02);
}

.about-hero-overlay,
.safety-hero-overlay,
.contact-hero-overlay,
.pc-index-image-hero .pc-hero-overlay,
.gallery-image-hero .gallery-hero-overlay {
    background:
        linear-gradient(90deg,
            rgba(3, 19, 32, .97) 0%,
            rgba(4, 28, 45, .91) 35%,
            rgba(5, 38, 57, .64) 62%,
            rgba(5, 36, 54, .24) 100%),
        linear-gradient(to top, rgba(3, 18, 30, .72), transparent 56%),
        linear-gradient(to bottom, rgba(3, 19, 31, .16), transparent 30%);
}

/* Remove the square grids and decorative line/ring layers. */
.about-hero-grid,
.about-hero-lines,
.about-hero-shape,
.safety-hero-grid,
.safety-hero-glow,
.safety-hero-lines,
.safety-hero-rings,
.contact-hero-grid,
.contact-hero-glow,
.contact-hero-lines,
.gallery-image-hero .gallery-grid-bg {
    display: none !important;
}

.pc-index-image-hero::before,
.pc-project-hero::after {
    display: none !important;
}

.about-hero-title,
.safety-hero-title,
.contact-hero-title,
.pc-index-image-hero h1,
.gallery-image-hero h1 {
    color: #fff;
    text-shadow: 0 5px 28px rgba(0, 0, 0, .34);
}

.safety-hero-title,
.contact-hero-title {
    font-size: clamp(3.75rem, 5vw, 4.75rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.about-hero-description,
.safety-hero-description,
.contact-hero-description,
.pc-index-image-hero p,
.gallery-image-hero p {
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .52);
}

.about-breadcrumb,
.safety-breadcrumb,
.contact-breadcrumb,
.pc-index-image-hero .pc-crumb {
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

/* Hero copy must be available immediately, including while page animations load. */
.about-hero .about-hero-reveal,
.about-hero .about-hero-side-reveal,
.safety-hero .safety-hero-reveal,
.safety-hero .safety-hero-visual-reveal,
.contact-hero .contact-hero-reveal,
.contact-hero .contact-hero-visual-reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Decorative shapes on the About page must never create a horizontal scroll. */
.about-overview,
.about-technology,
.about-final-cta {
    overflow: hidden;
}

/* Catalog-style pages use the same generous hero proportions. */
.pc-index-image-hero,
.gallery-image-hero {
    display: flex;
    min-height: clamp(650px, calc(100vh - 126px), 760px);
    align-items: flex-start;
    padding: 74px 0 90px;
    background: #06182b;
}

.pc-index-image-hero .container,
.gallery-image-hero .container {
    width: 100%;
}

.pc-index-image-hero h1,
.gallery-image-hero h1 {
    max-width: 1050px;
    font-size: clamp(3.4rem, 5.5vw, 6.2rem);
    line-height: .99;
    letter-spacing: -.052em;
}

.pc-index-image-hero p,
.gallery-image-hero p {
    max-width: 760px;
    font-size: clamp(1.05rem, 1.35vw, 1.22rem);
    line-height: 1.75;
}

.about-hero-side-card,
.safety-hero-card,
.safety-hero-floating-card,
.safety-hero-rotating-badge,
.contact-hero-card,
.contact-floating-card {
    background: rgba(4, 22, 38, .78);
    border-color: rgba(255, 255, 255, .17);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
}

@media (max-width: 991px) {
    .about-hero-overlay,
    .safety-hero-overlay,
    .contact-hero-overlay,
    .pc-index-image-hero .pc-hero-overlay,
    .gallery-image-hero .gallery-hero-overlay {
        background:
            linear-gradient(90deg,
                rgba(3, 19, 32, .97) 0%,
                rgba(4, 27, 44, .88) 62%,
                rgba(5, 34, 51, .5) 100%),
            linear-gradient(to top, rgba(3, 18, 30, .68), transparent 58%);
    }

    .pc-index-image-hero,
    .gallery-image-hero {
        min-height: 620px;
        padding: 70px 0 82px;
    }
}

@media (max-width: 640px) {
    .about-hero-background-image,
    .safety-hero-image,
    .contact-hero-image,
    .pc-index-image-hero .pc-hero-image,
    .gallery-image-hero .gallery-hero-image {
        object-position: 58% center;
    }

    .about-hero-overlay,
    .safety-hero-overlay,
    .contact-hero-overlay,
    .pc-index-image-hero .pc-hero-overlay,
    .gallery-image-hero .gallery-hero-overlay {
        background:
            linear-gradient(90deg, rgba(3, 18, 30, .95), rgba(4, 27, 43, .8)),
            linear-gradient(to top, rgba(3, 18, 30, .7), transparent 56%);
    }

    .pc-index-image-hero,
    .gallery-image-hero {
        min-height: 620px;
        padding: 60px 0 72px;
    }

    .pc-index-image-hero h1,
    .gallery-image-hero h1 {
        font-size: clamp(2.65rem, 12vw, 3.55rem);
        line-height: 1.01;
    }

    .pc-index-image-hero p,
    .gallery-image-hero p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .safety-hero-title,
    .contact-hero-title {
        font-size: clamp(2.75rem, 12vw, 3rem);
        line-height: 1.01;
    }

    /* Keep mobile heroes focused on the primary copy and background image. */
    .about-hero-side-card,
    .safety-hero-visual,
    .contact-hero-visual {
        display: none !important;
    }

    .about-hero,
    .safety-hero,
    .contact-hero {
        min-height: auto;
    }

    .about-hero-container,
    .safety-hero-container,
    .contact-hero-container {
        min-height: auto;
        padding-top: 55px;
        padding-bottom: 110px;
    }
}
