/* ==========================================================================
   NACS Show 2026 - Card Grid Component
   (Eyebrow + Heading + Up to 4 Square Cards with Image Overlay)
   Tokens: NACSShow2026Tokens.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Card Grid Container
   -------------------------------------------------------------------------- */
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 56px;
    align-items: flex-start;
    padding: 56px 80px 88px 80px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Section Header (Eyebrow + Heading)
   -------------------------------------------------------------------------- */
.card-grid__header {
    display: flex;
    flex-direction: column;
    gap: var(--nacs-padding-32, 32px);
    align-items: flex-start;
    width: 100%;
}

/* Eyebrow */
.card-grid__eyebrow {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.card-grid__eyebrow-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #78BE20, #00A82D);
    flex-shrink: 0;
}

.card-grid__eyebrow-text {
    font-family: var(--nacs-font-gotham);
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--nacs-color-navy, #00205B);
    text-align: center;
}

/* Heading */
.card-grid__heading {
    font-family: var(--nacs-font-gotham);
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0;
    text-transform: capitalize;
    color: var(--nacs-color-navy, #00205B);
    margin: 0;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Cards Container (Desktop: up to 4 across, evenly spaced)
   -------------------------------------------------------------------------- */
.card-grid__cards {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Individual Card (Square)
   -------------------------------------------------------------------------- */
.card-grid__card {
    position: relative;
    flex: 1;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    justify-content: center;
    padding: 32px 19px;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.card-grid__card:hover {
    transform: scale(1.02);
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.16);
    text-decoration: none;
}

/* Background Image */
.card-grid__card-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 4px;
}

.card-grid__card-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Dark Gradient Overlay - improves title legibility over any image */
.card-grid__card-overlay {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.50) 50%,
        rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
}

/* Yellow Arrow Circle */
.card-grid__arrow {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.card-grid__arrow svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Card Title */
.card-grid__card-title {
    position: relative;
    z-index: 1;
    font-family: var(--nacs-font-gotham);
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0;
    text-transform: capitalize;
    color: var(--nacs-color-white, #FFFFFF);
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    margin: 0;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Mobile Styles (max-width: 768px)
   Cards stacked vertically, full-width
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .card-grid {
        gap: 48px;
        padding: 40px 20px 64px 20px;
    }

    .card-grid__header {
        gap: var(--nacs-padding-24, 24px);
    }

    /* Mobile eyebrow style */
    .card-grid__eyebrow {
        gap: 16px;
        align-items: flex-start;
    }

    .card-grid__eyebrow-text {
        font-family: var(--nacs-font-gotham);
        font-weight: 500;
        font-size: 16px;
        line-height: normal;
        color: var(--nacs-color-grey-dark, #425563);
    }

    .card-grid__heading {
        font-size: 24px;
        line-height: 32px;
    }

    /* Cards: stacked vertically */
    .card-grid__cards {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
        justify-content: center;
    }

    .card-grid__card {
        width: 100%;
        flex: none;
    }

    .card-grid__card-title {
        font-size: 24px;
        line-height: 32px;
    }
}

