/* ==========================================================================
   NACS Show 2026 - Gradient Card Component
   Square image with NACS dark-blue gradient overlay + container with title,
   intro paragraph, and yellow angled arrow link.
   Tokens: NACSShow2026Tokens.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Widget Wrapper
   -------------------------------------------------------------------------- */
.grc {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Card Wrapper (clickable when LinkUrl present)
   -------------------------------------------------------------------------- */
.grc__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.grc__card:hover,
a.grc__card:focus {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.16);
}

/* --------------------------------------------------------------------------
   Image (square, with gradient fade-into-container at bottom)
   -------------------------------------------------------------------------- */
.grc__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.grc__image-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}

/* Gradient overlay fading from transparent (top) to NACS navy (bottom)
   so the image visually melts into the gradient container below */
.grc__image-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70%;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 12, 35, 0) 0%,
        rgba(0, 32, 91, 0.6) 65%,
        #00205B 100%
    );
}

/* --------------------------------------------------------------------------
   Container (NACS gradient: navy -> blue)
   -------------------------------------------------------------------------- */
.grc__container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    padding: 40px 32px;
    box-sizing: border-box;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background: linear-gradient(180deg, #00205B 0%, #0044C1 100%);
}

/* --------------------------------------------------------------------------
   Title (Heading 2 on desktop)
   -------------------------------------------------------------------------- */
.grc__title {
    font-family: var(--nacs-font-gotham);
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    letter-spacing: 0;
    text-transform: capitalize;
    color: var(--nacs-color-white, #FFFFFF);
    margin: 0;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* --------------------------------------------------------------------------
   Description + Arrow Row
   -------------------------------------------------------------------------- */
.grc__row {
    display: flex;
    align-items: center;
    gap: 27px;
    width: 100%;
}

.grc__desc {
    flex: 1 0 0;
    min-width: 0;
    font-family: var(--nacs-font-gotham);
    font-weight: 325;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0;
    color: var(--nacs-color-white, #FFFFFF);
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* --------------------------------------------------------------------------
   Arrow (yellow circle, 80px desktop)
   -------------------------------------------------------------------------- */
.grc__arrow {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.grc__arrow svg {
    display: block;
    width: 80px;
    height: 80px;
}

.grc__arrow-circle {
    fill: var(--nacs-color-yellow, #FAE100);
}

/* --------------------------------------------------------------------------
   Mobile Styles (max-width: 768px)
   - Card max-width 353px (per Figma 9586:30935)
   - Heading 3 (32/40), Intro 18/24, 64px arrow
   - Container 32px vertical / 20px horizontal padding, 24px gap
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .grc__card {
        max-width: 353px;
    }

    .grc__container {
        gap: 24px;
        padding: 32px 20px;
    }

    .grc__title {
        font-size: 32px;
        line-height: 40px;
    }

    .grc__desc {
        font-size: 18px;
        line-height: 24px;
    }

    .grc__row {
        gap: 16px;
    }

    .grc__arrow,
    .grc__arrow svg {
        width: 64px;
        height: 64px;
    }
}
