/* HERO */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6rem 6vw 4rem;
    color: #ffffff;
    overflow: hidden;
}

/* background layers */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform; /* for parallax */
}

/* Sharp initial image */
.hero-bg--sharp {
    background-image: url("../Data/Logo_Short.png");
    opacity: 1;
    animation: hero-bg-sharp-fade 2.2s ease-out forwards;
}

/* Blurred image, fades in as sharp fades out */
.hero-bg--blur {
    background-image: url("../Data/Blur 30.png");
    opacity: 0;
    animation: hero-bg-blur-fade 2.2s ease-out forwards;
    animation-delay: 0.4s;
}

/* gradient overlay over both images */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(11, 11, 11, 0.8), rgba(11, 11, 11, 0.25)),
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.06), transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 1;
    opacity: 0;
    transform: translateY(24px);
    animation: hero-text-in 1.4s ease-out forwards;
    animation-delay: 1.0s;
}

.hero h1 {
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h2 {
    margin-top: 0.7rem;
    font-size: clamp(1.2rem, 2.1vw, 1.7rem);
    font-weight: 400;
    color: var(--gold-soft);
}

.hero p {
    margin-top: 1.4rem;
    font-size: 1rem;
    color: #f5f5f5;
}

.hero-button {
    display: inline-block;
    margin-top: 2.2rem;
    padding: 0.85rem 2.1rem;
    border-radius: 999px;
    border: none;
    background: var(--gold);
    color: #111;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.2s ease-out,
        transform 0.15s ease-out,
        box-shadow 0.15s ease-out;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.hero-button:hover,
.hero-button:focus-visible {
    background: #b48f3b;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

/* Scroll indicator (if present) */

.hero-scroll-indicator {
    margin-top: 2.5rem;
}

.hero-scroll-indicator a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-scroll-text {
    font-weight: 500;
}

.hero-scroll-icon {
    font-size: 1.2rem;
    animation: hero-scroll-bounce 1.4s ease-in-out infinite;
}

/* HERO KEYFRAMES */

@keyframes hero-bg-sharp-fade {
    0% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes hero-bg-blur-fade {
    0% {
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

@keyframes hero-text-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-scroll-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

/* Compact hero variant for inner pages */
.hero.hero--compact {
    min-height: 60vh;
    align-items: flex-end;
    padding-top: 6rem;
    padding-bottom: 3.5rem;
}

/* ===========================
   Responsive hero
   =========================== */

/* Tablets / small laptops */
@media (max-width: 1024px) {
    .hero {
        padding: 5rem 6vw 3.5rem;
        align-items: center;
    }

    .hero-content {
        max-width: 520px;
    }

    .hero.hero--compact {
        min-height: 55vh;
        padding-top: 5.5rem;
        padding-bottom: 3rem;
    }
}

/* Phones / small tablets */
@media (max-width: 720px) {
    .hero {
        padding: 5rem 6vw 3rem;
        justify-content: center;
        align-items: flex-end;
    }

    .hero-content {
        max-width: 100%;
    }

    /* Make the sharp image slightly wider to show the centre more clearly */
    .hero-bg--sharp {
        background-size: 140% auto;        /* wider than viewport */
        background-position: center center; /* keep centre readable */
        background-color: #111111;
    }

    .hero-bg--blur {
        background-size: cover;
        background-position: center center;
    }

    .hero-scroll-indicator {
        margin-top: 1.8rem;
    }

    .hero.hero--compact {
        min-height: 50vh;
        padding-top: 4.5rem;
        padding-bottom: 2.7rem;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .hero {
        padding: 4.2rem 6vw 2.7rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        letter-spacing: 0.14em;
    }
}