/* ==========================================
   SHARED HERO SYSTEM
========================================== */

.hero {
    position: relative;

    height: 100vh;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, var(--hero-overlay, 0));

    pointer-events: none;
    z-index: 1;
}

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

    overflow: hidden;

    z-index: 0;

    will-change: transform;
}

.hero-image {
    width: 100%;
    height: 100%;

    background-image:
        linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
        url("../images/hero/hero-seoul-autumn.jpg");
    background-size: cover;
    background-position: 58% center;
    background-repeat: no-repeat;

    will-change: transform, filter;

    animation: heroZoom 35s ease-in-out forwards;
}

/* The global .container supplies the shared horizontal alignment. */
.hero .container {
    position: relative;
    z-index: 2;
}

/* A common content block gives every hero the same upper starting point. */
.hero-content {
    width: 100%;
    max-width: 650px;
    min-height: 560px;

    color: #fff;

    will-change: opacity, transform;
}

.hero .hero-content {
    margin: 0;
    max-width: 650px;
}

.hero-label,
.contact-label {
    display: inline-block;

    margin-bottom: 18px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.85);

    opacity: 0;
    transform: translateY(10px);

    animation: heroLabel 0.7s cubic-bezier(.22, .61, .36, 1) forwards;
    animation-delay: 0.15s;
}

.hero h1 {
    margin-bottom: 28px;

    font-size: 68px;
    font-weight: 800;
    line-height: 1.1;

    color: #fff;

    opacity: 0;
    filter: blur(8px);
    transform: translateY(26px);

    animation: heroHeadline 0.95s cubic-bezier(.22, .61, .36, 1) forwards;
    animation-delay: 0.35s;
}

.hero p {
    max-width: 620px;
    margin-bottom: 56px;

    font-size: 20px;
    font-weight: 500;
    line-height: 1.8;

    color: rgba(255, 255, 255, 0.92);

    opacity: 0;
    filter: blur(6px);
    transform: translateY(18px);

    animation: heroText 0.8s cubic-bezier(.22, .61, .36, 1) forwards;
    animation-delay: 0.65s;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 52px;
    padding: 0 30px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;

    background: transparent !important;
    background-color: transparent !important;

    color: #fff;
    font-weight: 600;

    opacity: 0;
    transform: translateY(18px);

    transition: color 0.25s ease;

    animation: heroButton 0.7s cubic-bezier(.22, .61, .36, 1) forwards;
    animation-delay: 1.45s;
}
.hero-button:hover {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-button:focus,
.hero-button:focus-visible,
.hero-button:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;

    color: rgba(255, 255, 255, 0.65);
}

/* Page-specific image treatments retain each page's existing artwork. */
.fashion-hero .hero-image {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
        url("../images/hero/hero-fashion.jpg");
    background-position: center;
}

.beauty-hero .hero-image {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url("../images/hero/hero-beauty.jpg");
    background-position: center;
}

.blog-hero .hero-image,
.shop-hero .hero-image,
.about-hero .hero-image {
    background-position: center;
}

.blog-hero .hero-image {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)),
        url("../images/hero/hero-blog.jpg");
}

.shop-hero .hero-image {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)),
        url("../images/hero/hero-shop.jpg");
}

.about-hero .hero-image {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)),
        url("../images/hero/hero-about.jpg");
}

.contact-hero .hero-image {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url("../images/hero/hero-contact.jpg");
    background-position: center;
}

.imprint-hero .hero-image {
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.35) 45%,
            rgba(0, 0, 0, 0.20) 100%
        ),
        url("../images/hero/hero-imprint.jpg");
    background-position: center;
}

@keyframes heroZoom {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.03) translate(-20px, -10px);
    }
}

@keyframes heroLabel {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroHeadline {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes heroText {
    from {
        opacity: 0;
        filter: blur(6px);
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes heroButton {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
