/* =====================================
   HOMEPAGE HERO
   Overrides the shared hero from layout.css
===================================== */

.hero {
    position: relative;
    width: 100%;
    min-height: max(680px, 100svh);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 110px var(--page-padding) 60px;
    text-align: center;
    overflow: hidden;
    /*
     * This remains visible after the intro
     * video fades away.
     */
    background-image: url("/images/herotitle.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* =====================================
   HOMEPAGE HERO CONTENT
===================================== */

.hero-content {
    position: relative;
    z-index: 3;
    width: min(900px, 100%);
    margin-inline: auto;
    opacity: 0;
    animation: titleFade 2s ease forwards;
    animation-delay: 4s;
}


.hero h1 {
    margin: 0 0 20px;
    font-family: var(--title-font);
    font-size: clamp(46px, 8vw, 90px);
    line-height: 1.05;
    color: var(--gold-light);
    text-shadow: 0 5px 20px black;
}


.hero h2 {
    margin: 0 0 20px;
    font-size: clamp(22px, 3.4vw, 35px);
    font-weight: normal;
    color: white;
}


.hero p {
    max-width: 700px;
    margin: 30px auto;
    font-size: clamp(19px, 2.5vw, 26px);
    line-height: 1.6;
    color: rgba(255,255,255,.95);
}


/* =====================================
   HERO INTRO ANIMATION
===================================== */

@keyframes titleFade {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

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


/* =====================================
   HERO VIDEO
===================================== */

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: videoFade 5s forwards;
}


.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient( rgba(0,0,0,.45), rgba(0,0,0,.65) );
}


@keyframes videoFade {

    0% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


/* =====================================
   HERO BUTTONS
===================================== */

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}


.button {
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    overflow: hidden;
    border-radius: 50px;
    background: var(--gold);
    color: var(--dark-leather);
    font-family: var(--title-font);
    font-size: 20px;
    transition: var(--transition);
}


    .button:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(212,175,55,.4);
    }


    .button.outline {
        background: transparent;
        border: 2px solid var(--gold);
        color: white;
    }


/* =====================================
   BUTTON SHIMMER
===================================== */

.button,
.small-button {
    position: relative;
    overflow: hidden;
}


    .button::after,
    .small-button::after {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 80%;
        height: 100%;
        background: rgba(255,255,255,.3);
        transform: skewX(-25deg);
        transition: left .6s ease;
    }


    .button:hover::after,
    .small-button:hover::after {
        left: 130%;
    }


    .button::after {
        background: linear-gradient( 120deg, transparent, rgba(244,212,124,.7), transparent );
    }


/* =====================================
   HOMEPAGE WORLD ARCHIVE PREVIEW
===================================== */

.archive-section {
    width: 100%;
    padding: var(--section-space) var(--page-padding);
    background: linear-gradient( 135deg, #1b120d, #302015 );
    color: white;
}


    .archive-section .section-title h2 {
        color: var(--gold-light);
        text-shadow: 0 3px 12px rgba(0,0,0,.5);
    }


    .archive-section .section-title p {
        color: rgba(255,255,255,.86);
    }


    /* =====================================
   ARCHIVE PREVIEW GRID
===================================== */

    .archive-section .archive-grid {
        width: min(1100px, 100%);
        margin: 0 auto;
        padding: 0;
        display: grid;
        grid-template-columns: repeat( 4, minmax(0, 1fr) );
        gap: 24px;
    }


    /* =====================================
   ARCHIVE CARDS
===================================== */

    .archive-section .archive-card {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 0;
        min-height: 250px;
        padding: 32px 24px;
        text-align: center;
        text-decoration: none;
        color: white;
        background: linear-gradient( 145deg, rgba(255,255,255,.10), rgba(255,255,255,.04) );
        border: 2px solid rgba(244,212,124,.45);
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 12px 30px rgba(0,0,0,.2);
        transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
    }


        .archive-section .archive-card:hover {
            transform: translateY(-8px);
            border-color: var(--gold-light);
            background: linear-gradient( 145deg, rgba(255,255,255,.15), rgba(255,255,255,.07) );
            box-shadow: 0 20px 40px rgba(0,0,0,.35);
        }


        /* =====================================
   ARCHIVE ICON
===================================== */

        .archive-section .archive-card .icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 72px;
            height: 72px;
            margin-bottom: 22px;
            border-radius: 50%;
            font-size: 36px;
            background: radial-gradient( circle, #f5d77f, #b98329 );
            border: 2px solid #f4d47c;
            box-shadow: 0 7px 20px rgba(0,0,0,.28);
        }


        /* =====================================
   ARCHIVE TEXT
===================================== */

        .archive-section .archive-card h3 {
            margin: 0 0 12px;
            font-family: var(--title-font);
            font-size: clamp(22px, 2.2vw, 28px);
            color: var(--gold-light);
        }


        .archive-section .archive-card p {
            margin: 0;
            font-size: 18px;
            line-height: 1.55;
            color: rgba(255,255,255,.84);
        }


/* =====================================
   ARCHIVE TABLET
===================================== */

@media(max-width: 1000px) {

    .archive-section .archive-grid {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
        max-width: 760px;
    }
}


/* =====================================
   HOMEPAGE TABLET
===================================== */

@media(max-width: 900px) {

    .hero {
        padding: 120px 22px 55px;
    }
}


/* =====================================
   HOMEPAGE PHONE
===================================== */

@media(max-width: 650px) {

    .hero {
        min-height: 100svh;
        padding: 145px 18px 45px;
    }


        .hero h1 {
            font-size: clamp( 42px, 14vw, 64px );
        }


        .hero h2 {
            font-size: 20px;
        }


        .hero p {
            font-size: 18px;
        }


            .hero p br {
                display: none;
            }


    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }


        .hero-buttons .button {
            width: min(300px, 100%);
            text-align: center;
        }
}


/* =====================================
   ARCHIVE PHONE
===================================== */

@media(max-width: 600px) {

    .archive-section {
        padding: 55px 18px;
    }


        .archive-section .archive-grid {
            grid-template-columns: 1fr;
            gap: 18px;
        }


        .archive-section .archive-card {
            min-height: 0;
            padding: 26px 22px;
        }


            .archive-section .archive-card .icon {
                width: 62px;
                height: 62px;
                font-size: 30px;
            }


            .archive-section .archive-card p {
                font-size: 17px;
            }
}


