/**
 * Hero Section Styles
 * FungusHead Theme — full-bleed background, bottom-left content
 */

.hero.hero--fullbleed {
    --hero-min-height: 525px;
    min-height: var(--hero-min-height);
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #1a1a1a;
    background-image: var(--hero-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.hero.hero--fullbleed .hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        15deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.45) 42%,
        rgba(0, 0, 0, 0.28) 100%
    );
}

.hero.hero--fullbleed.hero--has-image .hero__overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.hero.hero--fullbleed .hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero.hero--fullbleed .hero-wrapper {
    display: block;
    max-width: none;
    margin: 0;
    text-align: left;
    align-items: flex-start;
}

.hero.hero--fullbleed .hero-content {
    margin-bottom: 0;
    max-width: 100rem;
}

.hero.hero--fullbleed .hero-title {
    color: #fff;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.hero.hero--fullbleed .hero-description {
    color: rgba(255, 255, 255, 0.92);
    margin-left: 0;
    margin-right: 0;
    max-width: 65rem;
}

.hero.hero--fullbleed .button-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

@media (max-width: 639px) {
    .hero.hero--fullbleed .button-container {
        flex-direction: column;
        align-items: stretch;
    }
}

/* front-page.css sets .btn { width: 100% }; allow side-by-side CTAs on larger viewports */
.hero.hero--fullbleed .button-container .btn {
    width: auto;
    min-width: 10rem;
}

@media (max-width: 639px) {
    .hero.hero--fullbleed .button-container .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .hero.hero--fullbleed {
        --hero-min-height: min(525px, 92vh);
    }

    .hero.hero--fullbleed .hero-title {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 118px;
    }
}

/* Legacy .hero rules (non–full-bleed) */
.hero:not(.hero--fullbleed) {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero:not(.hero--fullbleed) .hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero:not(.hero--fullbleed) .hero-content {
    margin-bottom: 40px;
    z-index: 2;
}

.hero:not(.hero--fullbleed) .hero-title {
    font-family: "bebas-neue", sans-serif;
    font-size: 60px;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: black;
}

@media (min-width: 768px) {
    .hero:not(.hero--fullbleed) .hero-title {
        font-size: 92px;
    }
}

.hero:not(.hero--fullbleed) .hero-description {
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 10px;
    color: #333;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 640px) {
    .hero:not(.hero--fullbleed) .button-container {
        flex-direction: row;
        justify-content: center;
    }
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    padding: 12px 24px;
    font-size: 16px;
    border: 4px solid #000;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 0;
}

.btn-primary {
    background-color: #ff69b4;
    color: #fff;
    border-color: #ff69b4;
}

.btn-primary:hover {
    background-color: #ff5ba7;
    transform: translateY(-3px);
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
    text-decoration: none;
}

.btn-secondary {
    background-color: #fff;
    color: #000;
    border-color: #000;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
    text-decoration: none;
}

.hero-image-container {
    width: 800px;
    height: 800px;
    margin: 0 auto;
    border: 4px solid #000;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 1);
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border-radius: 0;
}

@media (max-width: 840px) {
    .hero-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    color: #999;
    font-size: 18px;
    font-weight: 500;
}
