
/* =========================================
   LEGACYQR — MAIN STYLESHEET
   Based on Yorkton History original design
   ========================================= */

:root {
    --primary: #081522;
    --secondary: #f8f6f1;
    --accent: #c9a96e;

    --white: #ffffff;
    --text: #1c2733;
    --text-light: #5d6975;

    --heading: "Cinzel", serif;
    --body: "Poppins", sans-serif;

    --radius: 20px;
    --transition: 0.35s ease;
    --container: 1200px;
}

/* RESET */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    background: var(--secondary);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(92%, var(--container));
    margin: auto;
}


/* =========================================
   HEADER AND NAVIGATION
   ========================================= */

header {
    position: fixed;
    z-index: 10;
    top: 0;
    width: 100%;
    padding: 22px 0;

    display: flex;
    justify-content: center;
}

.navbar {
    width: min(92%, var(--container));
    padding: 14px 38px;

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

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(8, 21, 34, 0.9);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Official LegacyQR logo */

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: 220px;
    height: auto;
    max-height: 65px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;

    color: var(--white);
    font-size: 0.94rem;
}

.nav-links a {
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--accent);
}

.menu-btn {
    display: none;

    border: 0;
    background: none;
    color: var(--white);

    font-size: 2rem;
    cursor: pointer;
}


/* =========================================
   HERO SECTION
   ========================================= */

.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 20px 60px;

    display: grid;
    place-items: center;

    overflow: hidden;

    color: var(--white);
    text-align: center;

    background:
        linear-gradient(
            to bottom,
            rgba(4, 10, 20, 0.42),
            rgba(4, 10, 20, 0.25) 45%,
            rgba(4, 10, 20, 0.82)
        ),
        url("../images/legacy-hero.jpg")
        center center / cover no-repeat,
        linear-gradient(145deg, #172d38, #081522);
}

.hero-content {
    position: relative;
    width: min(90%, 850px);
}

.eyebrow {
    margin-bottom: 18px;

    color: var(--accent);

    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
}

.hero h1 {
    margin-bottom: 28px;

    color: var(--white);
    font-family: var(--heading);

    font-size: clamp(3.1rem, 7vw, 5rem);
    line-height: 1.1;
}

.hero-content > p:not(.eyebrow) {
    max-width: 560px;
    margin: 0 auto 42px;

    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
}

.button {
    display: inline-block;
    padding: 17px 40px;

    border: 2px solid var(--accent);
    border-radius: 999px;

    color: var(--white);
    font-weight: 500;

    transition: var(--transition);
}

.button:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-4px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;

    color: var(--white);
    font-size: 2rem;

    animation: bounce 2s infinite;
}


/* =========================================
   HOMEPAGE COLLECTIONS
   Original Yorkton History card styling
   ========================================= */

.collections {
    padding: 120px 20px;
}

.intro {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: end;

    max-width: 1050px;
    margin: 0 auto 55px;
}

.intro h2 {
    font-family: var(--heading);
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 1.1;
}

.intro > p {
    color: var(--text-light);
}

/* Exact original three-column layout */

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Original Yorkton History cards */

.collection-card {
    min-height: 285px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    color: var(--white);

    background: linear-gradient(
        145deg,
        #172d38,
        #081522
    );

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);

    box-shadow: 0 12px 35px rgba(8, 21, 34, 0.13);

    transition: var(--transition);
}

.collection-card:hover {
    border-color: var(--accent);

    box-shadow: 0 20px 45px rgba(8, 21, 34, 0.22);

    transform: translateY(-7px);
}

/* Same active card gradient as Yorkton History */

.collection-card--active {
    background: linear-gradient(
        145deg,
        #566c52,
        #132d34
    );
}

.collection-card h3 {
    margin: 25px 0 12px;

    color: var(--white);
    font-family: var(--heading);

    font-size: 1.45rem;
    line-height: 1.1;
}

.collection-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.collection-card strong {
    margin-top: 18px;

    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Original hover behaviour */

a.collection-card--active[data-animate].animate:hover,
a.collection-card--active[data-animate].animate:focus-visible {
    border-color: var(--accent);

    box-shadow: 0 22px 42px rgba(8, 21, 34, 0.28);

    filter: brightness(1.08);
    transform: translateY(-7px);
}

.collection-card--active strong {
    transition: color .3s ease;
}

.collection-card--active:hover strong {
    color: #f0ce87;
}


/* =========================================
   LEGACYQR DIGITAL MEMORIAL FEATURE
   ========================================= */

.legacy-feature {
    position: relative;
    isolation: isolate;

    min-height: 620px;
    width: 100%;

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

    padding: 105px 24px;

    overflow: hidden;
    text-align: center;

    background: #15232b;
}

.legacy-feature__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
    z-index: 0;

    filter: brightness(0.95);
}

.legacy-feature::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(6, 17, 24, 0.65),
        rgba(6, 17, 24, 0.49),
        rgba(6, 17, 24, 0.65)
    );

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

.legacy-feature__content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.legacy-feature .legacy-feature__eyebrow {
    font-family: var(--body);

    color: #E6BB78;

    font-size: 16px;
    font-weight: 600;

    letter-spacing: 5px;
    line-height: 1.5;

    margin: 0 0 30px;
}

.legacy-feature h2 {
    font-family: var(--heading);

    font-size: clamp(48px, 5.8vw, 88px);
    font-weight: 600;

    line-height: 1.18;
    letter-spacing: -1px;

    color: #FFFFFF;

    margin: 0 auto 28px;
    max-width: 1050px;

    text-shadow: 0 3px 18px rgba(0,0,0,0.28);
}

.legacy-feature h2 span {
    display: block;
    color: #E6BC7A;
}

.legacy-feature .legacy-feature__description {
    font-family: var(--body);

    font-size: 18px;
    font-weight: 400;

    line-height: 1.9;
    color: #F1ECE4;

    max-width: 780px;
    margin: 0 auto 37px;

    text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Feature button */

.legacy-feature .legacy-feature__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;
    gap: 20px;

    min-height: 58px;
    padding: 18px 38px;

    background: #D8AE70;
    color: #182327;

    border: 1px solid #D8AE70;
    border-radius: 50px;

    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1.4px;
    text-decoration: none;

    box-shadow: 0 8px 28px rgba(0,0,0,.22);

    transition:
        background .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.legacy-feature .legacy-feature__button:hover {
    background: #E9C590;
    color: #182327;

    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.legacy-feature .legacy-feature__button:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 5px;
}

.legacy-feature__button span {
    font-size: 21px;
    line-height: 1;
}

.legacy-feature .legacy-feature__note {
    font-family: var(--body);

    color: #F0D1A1;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 3px;

    margin: 28px 0 0;
}


/* =========================================
   HOW IT WORKS
   ========================================= */

.legacy-process {
    padding: 120px 20px;
    background: var(--secondary);
}

.legacy-process__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;

    max-width: 1050px;
    margin: 55px auto 0;
}

.legacy-process__grid article {
    padding: 30px;
    text-align: center;
}

.legacy-process__grid article > span {
    display: block;

    color: var(--accent);
    font-family: var(--heading);
    font-size: 2.5rem;

    margin-bottom: 15px;
}

.legacy-process__grid h3 {
    font-family: var(--heading);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.legacy-process__grid p {
    color: var(--text-light);
    font-size: 0.92rem;
}


/* =========================================
   CONTACT SECTION
   ========================================= */

.legacy-contact {
    position: relative;

    padding: 110px 20px;

    background: var(--primary);
    color: var(--white);

    text-align: center;
}

.legacy-contact__content {
    max-width: 850px;
    margin: auto;
}

.legacy-contact h2 {
    font-family: var(--heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);

    line-height: 1.2;
    margin-bottom: 25px;
}

.legacy-contact__content > p:not(.eyebrow) {
    color: rgba(255,255,255,.78);
    margin-bottom: 35px;
}

.legacy-contact__button {
    display: inline-block;

    padding: 17px 40px;

    border: 2px solid var(--accent);
    border-radius: 999px;

    color: var(--white);
    font-size: .9rem;
    font-weight: 500;

    transition: var(--transition);
}

.legacy-contact__button:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-4px);
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    padding: 32px 20px;

    background: #050d15;
    color: var(--accent);

    font-family: var(--heading);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-align: center;
}

.footer-brand {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-brand span {
    color: var(--white);
}

footer p {
    color: rgba(255, 255, 255, 0.65);

    font-family: var(--body);
    font-size: 0.78rem;
    letter-spacing: 0;
}

footer .footer-copyright {
    margin-top: 18px;
}


/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes bounce {
    50% {
        transform: translateY(10px);
    }
}


/* =========================================
   TABLET RESPONSIVE
   ========================================= */

@media (max-width: 992px) {

    .nav-links {
        display: none;
    }

    .nav-links.is-open {
        position: absolute;
        top: 78px;
        right: 0;

        width: 100%;
        padding: 25px;

        display: flex;
        flex-direction: column;
        gap: 18px;

        background: rgba(8, 21, 34, 0.97);
        border-radius: 18px;
    }

    .menu-btn {
        display: block;
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro {
        gap: 35px;
    }

    .legacy-feature {
        min-height: 550px;
        padding: 85px 24px;
    }

    .legacy-feature h2 {
        font-size: clamp(44px, 7vw, 66px);
    }

    .legacy-feature .legacy-feature__description {
        font-size: 16px;
    }
}


/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 700px) {

    .navbar {
        padding: 13px 22px;
    }

    .logo img {
        width: 175px;
        max-height: 55px;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .collections,
    .legacy-process {
        padding: 85px 20px;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .legacy-process__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .legacy-feature {
        min-height: 550px;
        padding: 75px 20px;
    }

    .legacy-feature__image {
        object-position: center;
    }

    .legacy-feature::after {
        background: rgba(6,17,24,.67);
    }

    .legacy-feature .legacy-feature__eyebrow {
        font-size: 13px;
        letter-spacing: 3px;
        margin-bottom: 22px;
    }

    .legacy-feature h2 {
        font-size: clamp(38px, 10vw, 54px);
        line-height: 1.2;
        letter-spacing: 0;
        margin-bottom: 22px;
    }

    .legacy-feature .legacy-feature__description {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 30px;
    }

    .legacy-feature .legacy-feature__button {
        width: 100%;
        max-width: 340px;
        padding: 17px 20px;
        font-size: 12px;
    }

    .legacy-feature .legacy-feature__note {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .legacy-contact {
        padding: 80px 20px;
    }

    footer {
        padding: 30px 20px;
    }
}


/* =========================================
   ACCESSIBILITY
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

}
