/* Inner-page hero banners — About, Products, Contact */

.page-hero {
    position: relative;
    width: 100%;
    height: 46vh;
    min-height: 340px;
    max-height: 480px;
    overflow: hidden;
}

.page-hero .hero-bg {
    position: relative;
    width: 100%;
    height: 100%;
}

.page-hero .hero-bg picture,
.page-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero .hero-bg picture {
    display: block;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(12, 31, 61, 0.35) 0%, rgba(12, 31, 61, 0.72) 100%),
        linear-gradient(
            115deg,
            rgba(0, 42, 92, 0.72) 0%,
            rgba(0, 61, 143, 0.4) 55%,
            rgba(12, 31, 61, 0.65) 100%
        );
    z-index: 2;
}

.page-hero .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 4;
    width: 90%;
    max-width: 900px;
}

.page-hero .hero-content-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.page-hero .hero-brand {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.88);
    animation: fadeInUp 0.8s ease-out;
}

.page-hero .hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 650;
    margin-bottom: 12px;
    line-height: 1.18;
    letter-spacing: -0.025em;
    text-shadow: none;
    animation: fadeInUp 0.8s ease-out 0.08s;
    animation-fill-mode: backwards;
}

.page-hero .hero-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.65;
    opacity: 0.88;
    max-width: 480px;
    margin: 0 auto 22px;
    text-shadow: none;
    animation: fadeInUp 0.8s ease-out 0.18s;
    animation-fill-mode: backwards;
}

.hero-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.28s;
    animation-fill-mode: backwards;
}

.hero-banner-actions .btn {
    min-width: 150px;
}

.hero-banner-actions .btn-primary {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.hero-banner-actions .btn-primary:hover {
    background: transparent;
    color: #fff;
}

.hero-banner-actions .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}

.hero-banner-actions .btn-secondary:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Products page — left-aligned hero with breadcrumb */
.products-hero .hero-content {
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    text-align: left;
    width: min(52%, 620px);
    max-width: 620px;
}

.products-hero .hero-content-wrapper {
    margin: 0;
}

.products-hero .hero-title,
.products-hero .hero-subtitle,
.products-hero .hero-brand {
    color: #fff;
}

.products-hero .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.products-hero .hero-banner-actions {
    justify-content: flex-start;
}

.honeycomb-pattern {
    position: absolute;
    width: 450px;
    height: 450px;
    background-image: url('../images/pattern.webp');
    background-image: image-set(
        url('../images/pattern.webp') type('image/webp'),
        url('../images/pattern.png') type('image/png')
    );
    background-repeat: repeat;
    background-size: 240px;
    pointer-events: none;
    opacity: 0.08;
}

.page-honeycomb {
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    animation: floatPattern 6s ease-in-out infinite;
}

@keyframes floatPattern {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-20px); }
}

.breadcrumb {
    font-size: 0.88rem;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    margin: 0 8px;
    opacity: 0.7;
}

.breadcrumb .current {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-hero {
        height: auto;
        min-height: 300px;
        max-height: none;
        padding: 72px 0 64px;
    }

    .page-hero .hero-bg {
        position: absolute;
        inset: 0;
    }

    .page-hero .hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 0 20px;
    }

    .page-hero .hero-title {
        font-size: 1.85rem;
    }

    .page-hero .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .products-hero .hero-content {
        left: auto;
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .products-hero .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .products-hero .hero-banner-actions {
        justify-content: center;
    }

    .hero-banner-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-banner-actions .btn {
        width: 100%;
        text-align: center;
    }

    .honeycomb-pattern {
        width: 280px;
        right: -100px;
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .page-hero {
        min-height: 280px;
        padding: 64px 0 56px;
    }

    .page-hero .hero-title {
        font-size: 1.55rem;
    }

    .page-hero .hero-subtitle {
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-honeycomb {
        animation: none;
    }
}
