/*
 * WCAG AA Color Contrast Verification (A11Y-08):
 *
 * Card text (#fff white) on gradient overlay darkest point rgba(0,17,34,0.8):
 * Effective background on #F0F3F6 page bg: approx #334050
 * Contrast ratio: ~7:1 (exceeds WCAG AA 4.5:1 threshold)
 *
 * Card text (#fff) on no-image background (#10182B):
 * Contrast ratio: ~16:1 (exceeds WCAG AA 4.5:1 threshold)
 */

/* ==========================================================================
   1. Section layout
   ========================================================================== */

/* Full-bleed wrapper: alignfull (set in PHP) removes the WP max-width
   constraint; background-color is applied via inline style. */
.lue-fc-wrap {
    margin: 0;
    padding: 0;
}

.lue-fc {
    padding: 80px 0;
    margin-bottom: 0;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.lue-fc__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
}

/* ==========================================================================
   2. Skip-link (A11Y-09)
   ========================================================================== */

.lue-fc__skip-link-wrapper {
    margin: 0;
    padding: 0;
}

.lue-fc__skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100;
    padding: 8px 16px;
    background: #000811;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.lue-fc__skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    display: inline-block;
    margin-bottom: 8px;
}

/* ==========================================================================
   3. Header row
   ========================================================================== */

.lue-fc__meta-label {
    font-size: 12px;
    line-height: 19px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0022CF;
    margin: 0 0 16px 0;
}

.lue-fc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.lue-fc__headline {
    font-size: 48px;
    font-weight: 300;
    color: #000811;
    margin: 0;
    line-height: 53px;
}

.lue-fc__header-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #001122;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   4. Header link arrow (same 38x38 circle style as nav arrows — LOCKED)
   ========================================================================== */

.lue-fc__header-link .lue-fc__header-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

/* Hover for header link arrow — same as nav arrows (LOCKED) */
@media (hover: hover) and (pointer: fine) {
    .lue-fc__header-link:hover .lue-fc__header-arrow circle {
        fill: rgba(0, 17, 34, 0.05);
    }
}

/* ==========================================================================
   5. Card base styles
   ========================================================================== */

.lue-fc__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 480px;
    border-radius: 0;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lue-fc__card--no-image {
    background-color: #10182B;
}

.lue-fc__card-badge {
    position: absolute;
    top: 23px;
    left: 32px;
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    text-transform: uppercase;
    color: #fff;
    background: rgba(240, 243, 246, 0.3);
    padding: 6px 12px;
    border-radius: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
}

.lue-fc__card-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    padding: 32px;
    transition: background 0.3s ease;
}

.lue-fc__card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lue-fc__card-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 33px;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer: price/date left, CTA right — single row */
.lue-fc__card-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.lue-fc__card-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2px;
    flex: 1;
    min-width: 0;
    min-height: 46px; /* 26px price + 2px gap + 18px tax — prevents CTA jump */
}

.lue-fc__card-price {
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    color: #F8C853;
}

.lue-fc__card-date {
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    color: #F8C853;
}

.lue-fc__card-tax {
    font-size: 12px;
    line-height: 19px;
    color: #fff;
}

.lue-fc__card-cta {
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   6. Card hover effects — desktop only (LOCKED values)
   ========================================================================== */

/* RESP-05: Hover effects on pointer devices only */
@media (hover: hover) and (pointer: fine) {
    .lue-fc__card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    /* Gradient overlay 10% darker on hover (LOCKED) */
    .lue-fc__card--has-image:hover .lue-fc__card-overlay {
        background: linear-gradient(to bottom, rgba(0, 17, 34, 0.1) 0%, rgba(0, 17, 34, 0.9) 70%) !important;
    }
}

/* ==========================================================================
   7. Grab cursor for drag (Splide integration)
   ========================================================================== */

.lue-fc.splide .splide__list {
    cursor: grab;
}

.lue-fc.is-dragging .splide__list {
    cursor: grabbing;
}

/* ==========================================================================
   8. Navigation arrows (LOCKED values)
   ========================================================================== */

.lue-fc__nav {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    align-items: center;
}

.lue-fc__nav-prev,
.lue-fc__nav-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s ease;
}

/* Arrow hover: background fill (LOCKED) */
@media (hover: hover) and (pointer: fine) {
    .lue-fc__nav-prev:hover svg circle,
    .lue-fc__nav-next:hover svg circle {
        fill: rgba(0, 17, 34, 0.05);
    }
}

/* Disabled state: opacity 0.3 (LOCKED), no pointer events */
.lue-fc__nav-prev:disabled,
.lue-fc__nav-next:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ==========================================================================
   9. Focus-visible (A11Y-02)
   ========================================================================== */

.lue-fc__card:focus-visible,
.lue-fc__nav-prev:focus-visible,
.lue-fc__nav-next:focus-visible,
.lue-fc__header-link:focus-visible {
    outline: 2px solid #000811;
    outline-offset: 2px;
}

/* Remove default Splide focus styles to use our own */
.lue-fc.splide:focus-visible {
    outline: none;
}

/* ==========================================================================
   10. Responsive — tablet (RESP-02)
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .lue-fc__headline {
        font-size: 24px;
    }
}

/* ==========================================================================
   11. Responsive — mobile (RESP-03, RESP-04)
   ========================================================================== */

@media screen and (max-width: 768px) {
    .lue-fc {
        padding: 32px 0;
    }

    .lue-fc__container {
        padding: 0 16px;
    }

    .lue-fc__headline {
        font-size: 20px;
    }

    .lue-fc__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .lue-fc__card {
        min-height: 420px;
    }

    /* RESP-04: Arrows hidden on mobile (LOCKED) */
    .lue-fc__nav {
        display: none;
    }
}

/* ==========================================================================
   12. Reduced motion (A11Y-03)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .lue-fc__card,
    .lue-fc__card-overlay,
    .lue-fc__nav-prev,
    .lue-fc__nav-next,
    .lue-fc__header-link,
    .lue-fc__header-link .lue-fc__header-arrow {
        transition: none !important;
    }

    /* Also prevent the hover transform from animating */
    .lue-fc__card:hover {
        transition: none !important;
    }
}

/* ==========================================================================
   13. Splide overrides (prevent built-in Splide styles from conflicting)
   ========================================================================== */

/* Hide any Splide-injected arrows (we use custom arrows) */
.lue-fc .splide__arrows {
    display: none;
}

/* Hide Splide pagination (we don't use dots) */
.lue-fc .splide__pagination {
    display: none;
}
