/* -----------------------------------------
   HERO COMPONENT (Unified + Mobile‑Safe)
----------------------------------------- */

.hero {
    position: relative;
    padding: var(--space-16) var(--container-padding);
    color: var(--text-inverse);
    overflow: hidden;
    background: var(--color-primary-900);
}

/* -----------------------------------------
   BACKGROUND IMAGE + OVERLAY WRAPPER
----------------------------------------- */
.hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* base layer for image + overlay */
}

/* Background image (layer 1) */
.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: 55% center;
    opacity: var(--hero-image-opacity, 0.85);
    z-index: 1;
    pointer-events: none;
}

/* Polygon overlay (layer 2) */
.hero__overlay--polygon {
    position: absolute;
    inset: 0;
    background-image: var(--hero-overlay);
    background-size: cover;
    background-position: center;
    opacity: var(--hero-overlay-opacity, 0.55);
    mix-blend-mode: normal;
    pointer-events: none;
    z-index: 2;
}

/* -----------------------------------------
   CONTENT (layer 3)
----------------------------------------- */
.hero__content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding-top: var(--space-8);
}

.hero__title {
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
}

.hero__subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
}

.hero__buttons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

.hero__button {
    display: inline-block;
}

.hero__button.btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.85);
}

.hero__button.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

/* -----------------------------------------
   RESPONSIVE BEHAVIOR
----------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    .hero {
        padding: var(--space-14) var(--container-padding);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero {
        padding: var(--space-12) var(--space-4);
    }

    .hero__content {
        padding-top: var(--space-4);
    }

    .hero__title {
        font-size: var(--text-2xl);
    }
}