/* /css/hero.css
 *
 * Home page hero section.
 * Fullscreen background with overlay and centered content.
 * Used on the homepage to create a strong visual impact.
 */

.hero {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

/* Background */
.hero-visual-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    will-change: opacity, transform;
}

.hero-ken-burns {
    position: absolute;
    inset: 0;

    background: url("../assets/img/hero.jpg") center / cover no-repeat;
    animation: ken-burns 25s linear infinite;
}

/* Overlays */
.hero-overlay {
    position: absolute;
    inset: 0;

    background: var(--hero-overlay);
    z-index: 1;
}

.hero-bottom-mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;

    background: linear-gradient(to bottom, transparent, var(--bg-main));
    z-index: 2;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    padding-inline: 1.5rem;
    max-width: 900px;
}

/* Masked title */
.video-title-container {
  width: min(1000px, calc(100vw - 3rem));
  max-width: none;
  margin-bottom: 1.5rem;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.video-title-svg {
    width: 100%;
    height: auto;
}

.mask-text {
    font-size: clamp(4rem, 12vw, 9rem);


    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    fill: white;

    stroke: rgba(0, 0, 0, 0.75);
    stroke-width: 6px;
    paint-order: stroke fill;
}

.video-wrapper,
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-title-video {
    width: 100%;
    aspect-ratio: 1500 / 300;
    -webkit-mask-image: url("../assets/img/main/title-mask.svg");
    mask-image: url("../assets/img/main/title-mask.svg");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
.video-title-video {
    display: none;
}

body.is-safari .video-title-svg {
    display: none;
}

body.is-safari .video-title-video {
    display: block;
}

.video-title-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Subtitle */
.hero-subtitle {
    margin-top: -2.5rem;
    margin-bottom: 2.5rem;

    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    color: var(--text-bright);
    opacity: 0.95;
}


/* Responsive */
@media (max-width: 600px) {
    .hero-subtitle {
        font-size: var(--text-md);
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 12rem;
}

.hero-actions .btn {
    margin-top: 0;
}
