/* =========================================================
   CAPITOL LITTLE LEAGUE
   wwwroot/css/cll.css
========================================================= */


/* ---------------------------------------------------------
   PAGE
--------------------------------------------------------- */

.cll-page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 16px 20px 70px;
}


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

.cll-hero {
    position: relative;
    overflow: hidden;

    min-height: 390px;

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

    padding: 70px 30px;

    border: 1px solid var(--lb-color-border);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(109, 190, 69, 0.12),
            rgba(255, 255, 255, 0.96) 52%,
            rgba(123, 75, 163, 0.10)
        );
}


/*
   Faint baseball stitching in the hero.
*/

.cll-hero::before {
    content: "";

    position: absolute;
    inset: -10%;

    background-image:
        url("/images/sponsorships/baseball-stitches.png");

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    opacity: 0.055;

    mix-blend-mode: multiply;

    pointer-events: none;
}


/*
   Soft center fade keeps the text easy to read.
*/

.cll-hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.76) 0%,
            rgba(255, 255, 255, 0.38) 48%,
            rgba(255, 255, 255, 0.04) 100%
        );

    pointer-events: none;
}


.cll-hero-content {
    position: relative;
    z-index: 2;

    max-width: 760px;

    text-align: center;
}


.cll-eyebrow {
    display: inline-block;

    margin: 0 0 18px;
    padding: 8px 16px;

    border-radius: 999px;

    background: rgba(109, 190, 69, 0.14);

    color: #4c8c2e;

    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;

    letter-spacing: 0.04em;
}


.cll-title {
    margin: 0 0 18px;

    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;

    color: var(--lb-color-text);
}


.cll-hero-text {
    max-width: 700px;
    margin: 0 auto;

    font-size: 1.2rem;
    line-height: 1.7;

    color: var(--lb-color-muted);
}


/*
   Left over from the original experimental HTML.
   We aren't using the CSS-drawn seams anymore.
*/

.cll-hero-seam {
    display: none;
}


/* =========================================================
   SPECIAL OFFER
========================================================= */

.cll-offer {
    position: relative;
    z-index: 4;

    max-width: 760px;

    margin: -45px auto 80px;
    padding: 34px 28px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fff4
        );

    border: 2px solid var(--lb-color-brand);
    border-radius: 18px;

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.08);
}


.cll-offer-eyebrow {
    margin: 0;

    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.12em;

    color: var(--lb-color-brand);
}


.cll-offer-title {
    margin: 10px 0 6px;

    font-family: 'Quicksand', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;

    color: var(--lb-color-text);
}


.cll-offer-discount {
    margin: 12px 0 8px;

    font-family: 'Quicksand', sans-serif;
    font-size: clamp(3.6rem, 9vw, 6.2rem);
    font-weight: 700;
    line-height: 1;

    color: var(--lb-color-brand);
}


.cll-offer-text {
    margin: 0;

    font-size: 1.25rem;
    font-weight: 600;

    color: var(--lb-color-text);
}


.cll-offer-expiration {
    margin: 16px 0 0;

    font-size: 0.9rem;

    color: var(--lb-color-muted);
}


/* =========================================================
   STANDARD CONTENT SECTION
========================================================= */

.cll-section {
    margin: 0 auto 80px;

    text-align: center;
}


.cll-section-title {
    margin: 0;

    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;

    color: var(--lb-color-text);
}


.cll-section-text {
    max-width: 760px;

    margin: 0 auto 36px;

    font-size: 1.08rem;
    line-height: 1.75;

    color: var(--lb-color-muted);
}


.cll-separator {
    width: 120px;
    height: 3px;

    margin: 16px auto 24px;

    border-radius: 999px;

    background: var(--lb-color-brand);
}


/* =========================================================
   VISIT / AFTER THE GAME
========================================================= */

.cll-visit {
    margin: 70px 0;

    padding: 54px 30px;

    text-align: center;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(123, 75, 163, 0.08),
            rgba(109, 190, 69, 0.11)
        );
}


.cll-visit-eyebrow {
    margin: 0 0 10px;

    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.10em;

    color: #7B4BA3;
}


.cll-visit .cll-section-text {
    margin-top: 18px;
    margin-bottom: 30px;
}


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

.cll-button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 14px;

    margin-top: 26px;
}


.cll-button {
    display: inline-block;

    padding: 14px 26px;

    border: 2px solid var(--lb-color-brand);
    border-radius: 10px;

    background: var(--lb-color-brand);

    color: #222;

    font-family: 'Quicksand', sans-serif;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


.cll-button:hover {
    transform: translateY(-2px);

    background: #5da83b;

    color: #ffffff;

    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.10);
}


/*
   Both buttons intentionally use the same treatment.
*/

.cll-button-primary,
.cll-button-secondary {
    background: var(--lb-color-brand);
    color: #222;
    border-color: var(--lb-color-brand);
}


.cll-button-primary:hover,
.cll-button-secondary:hover {
    background: #5da83b;
    color: #ffffff;
}


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

.cll-footer-message {
    max-width: 760px;

    margin: 80px auto 0;

    text-align: center;
}


.cll-footer-baseball {
    margin-bottom: 10px;

    font-size: 2.6rem;
}


.cll-footer-message h2 {
    margin: 0 0 14px;

    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    font-weight: 700;

    color: var(--lb-color-text);
}


.cll-footer-message p {
    margin: 0;

    font-size: 1.05rem;
    line-height: 1.7;

    color: var(--lb-color-muted);
}


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

@media screen and (max-width: 820px) {

    .cll-card-grid {
        grid-template-columns: 1fr;
    }


    .cll-flip-card {
        max-width: 520px;
        width: 100%;

        margin: 0 auto;
    }


    .cll-flip-card-front::before {
        background-size: 520px auto;
    }

}


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

@media screen and (max-width: 600px) {

    .cll-page {
        padding-left: 12px;
        padding-right: 12px;
    }


    .cll-hero {
        min-height: 340px;

        padding: 50px 20px;

        border-radius: 16px;
    }


    .cll-hero::before {
        inset: -5%;

        background-size: auto 115%;
    }


    .cll-hero-text {
        font-size: 1.05rem;
    }


    .cll-offer {
        margin-top: -30px;
        margin-bottom: 65px;

        padding: 28px 18px;
    }


    .cll-section {
        margin-bottom: 65px;
    }


    .cll-flip-card {
        min-height: 280px;
    }


    .cll-flip-card-front {
        min-height: 280px;

        padding: 28px 20px;
    }


    .cll-flip-card-front::before {
        background-size: 440px auto;

        opacity: 0.13;
    }


    .cll-visit {
        margin: 60px 0;

        padding: 42px 20px;
    }


    .cll-button-group {
        flex-direction: column;
        align-items: center;
    }


    .cll-button {
        width: 100%;
        max-width: 340px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

    .cll-button {
        transition: none;
    }

}