/**
 * Fleet Solutions - Component-level CSS
 * Version: 3.0 - Migration to canonical system classes
 * Date: 2026-01-21
 *
 * Governance:
 * - Uses .site-container and .jac-section from jac-components.css
 * - All spacing uses design tokens (no hardcoded values)
 * - Cards use canonical .jac-card system
 * - Backgrounds use .jac-surface-* utility classes
 */

/* ============================================================================
   LAYOUT - Fleet wrapper (minimal scoping)
   ============================================================================ */

.fleet-solutions-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Grid overflow protection */
.fleet-solutions-wrapper .fleet-benefits__grid > *,
.fleet-solutions-wrapper .fleet-segments__grid > *,
.fleet-solutions-wrapper .fleet-resources__grid > * {
    min-width: 0;
}

/* Section headers - centered layout */
.fleet-solutions-wrapper .section-title {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-tight);
    margin: 0 0 var(--space-16);
    text-align: center;
}

.fleet-solutions-wrapper .section-title + .section-subtitle,
.fleet-solutions-wrapper .section-title + .fleet-value__intro {
    margin-top: 0;
}

/* ============================================================================
   LAYOUT - Fleet Resource pages (archive + single)
   Note: Container classes handled by canonical .site-container
   ============================================================================ */

/* Resource grid overflow protection */
.fleet-resources__grid,
.resources-grid {
    width: 100%;
}

.fleet-resource-card,
.fleet-resource-card * {
    min-width: 0;
}

/* ============================================================================
   ICONS - Inline SVG, currentColor-driven
   ============================================================================ */

.fleet-benefit-card__icon,
.fleet-segment-card__icon {
    width: var(--icon-holder-size);
    height: var(--icon-holder-size);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-holder-color);
    background: var(--icon-holder-bg);
    border: 1px solid var(--icon-holder-border);
    border-radius: var(--icon-holder-radius);
    margin-bottom: var(--space-16);
}

.fleet-benefit-card__icon {
    margin-left: auto;
    margin-right: auto;
}

.fleet-segment-card__icon {
    margin-left: 0;
    margin-right: 0;
}

.fleet-benefit-card__icon svg,
.fleet-segment-card__icon svg {
    width: var(--icon-size-trust);
    height: var(--icon-size-trust);
    stroke: currentColor;
    fill: none;
}

.fleet-benefit-card.has-no-icon .fleet-benefit-card__title,
.fleet-segment-card.has-no-icon .fleet-segment-card__label {
    margin-top: 0;
}


/* ============================================================================
   MODAL STYLING
   ============================================================================ */

.fleet-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-16);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fleet-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.fleet-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay-bg); /* var(--jac-true-black-a80) */
    backdrop-filter: blur(var(--modal-overlay-blur)); /* 8px for consistent modal overlays */
}

.fleet-modal__container {
    position: relative;
    background: var(--jac-white);
    border-radius: var(--radius-xl); /* 16px for modals */
    max-width: 800px;
    width: 100%;
    max-height: calc(100vh - var(--space-32));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-modal);
    z-index: 1;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fleet-modal__close {
    position: absolute;
    top: var(--space-16);
    right: var(--space-16);
    background: var(--jac-true-black-a05);
    border: none;
    border-radius: var(--radius-pill);
    width: var(--space-40);
    height: var(--space-40);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.fleet-modal__close:hover {
    background: var(--jac-true-black-a10);
    transform: rotate(90deg);
}

.fleet-modal__close svg {
    width: var(--space-24);
    height: var(--space-24);
    color: var(--jac-ink);
}

.fleet-modal__content {
    padding: var(--space-32) var(--space-40) var(--space-40);
    flex: 1 1 auto;
    overflow-y: auto;
}

.fleet-modal__title {
    font-size: var(--font-size-h2); /* 2rem / 32px */
    font-weight: 700;
    color: var(--jac-red);
    margin-bottom: var(--space-8);
}

.fleet-modal__subtitle {
    font-size: var(--font-size-body);
    color: var(--jac-red);
    margin-bottom: var(--space-32);
}

/* Form inside modal */
.fleet-modal .fluentform {
    background: transparent !important;
    box-shadow: none !important;
}

/* Fleet-specific buttons */
.fleet-quote-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fleet-segment-card__cta,
.fleet-resource-card__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
}

.fleet-segment-card__cta {
    margin-top: auto;
    align-self: flex-start;
}

/* ============================================================================
   RESOURCES SECTION STYLING
   Note: Section backgrounds handled by .jac-surface utilities
   ============================================================================ */

.fleet-resources .section-subtitle {
    font-size: var(--font-size-body);
    color: var(--jac-grey-600);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-32);
}

.fleet-resources__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-32);
    margin-bottom: var(--space-32);
}

.fleet-benefits__intro {
    max-width: 820px;
    margin: 0 auto var(--space-24);
    color: var(--jac-grey-600);
    text-align: center;
}
.fleet-value__intro {
    color: var(--jac-grey-700);
    font-size: var(--font-size-body);
    line-height: var(--line-height-relaxed);
    margin: var(--space-16) 0 var(--space-24);
}

.fleet-benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-24);
    margin-top: var(--space-24);
}

.fleet-benefit-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: var(--card-gap);
}

.fleet-benefit-card__title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--jac-black);
    margin: 0;
    text-align: center;
}

.fleet-benefit-card__body {
    color: var(--jac-grey-600);
    font-size: var(--font-size-body);
    line-height: var(--line-height-relaxed);
}

.fleet-benefit-card__body p {
    margin: 0 0 var(--space-8);
}

.fleet-segments__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-24);
}

.fleet-segment-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: var(--space-8);
}

.fleet-segment-card__label {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--jac-black);
    margin: 0;
}

.fleet-segment-card__models {
    margin: 0;
    color: var(--jac-ink);
    font-weight: 600;
}

.fleet-segment-card__models strong {
    font-weight: 700;
    margin-right: var(--space-4);
}

.fleet-segment-card__description {
    color: var(--jac-grey-600);
    font-size: var(--font-size-body);
    line-height: var(--line-height-relaxed);
}

.fleet-segment-card__description p {
    margin: 0;
}

.fleet-lineup__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-24);
}

.fleet-lineup__item {
    height: 100%;
}

.fleet-lineup__model {
    margin: 0 0 var(--space-8);
    font-size: var(--font-size-body);
    font-weight: 700;
    color: var(--jac-black);
}

.fleet-lineup__model a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fleet-lineup__model a:hover,
.fleet-lineup__model a:focus-visible {
    color: var(--jac-red);
}

.fleet-lineup__summary {
    margin: 0;
    color: var(--jac-grey-600);
    font-size: var(--font-size-small);
    line-height: var(--line-height-relaxed);
}

.fleet-contact__intro {
    color: var(--jac-grey-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-16);
}

.fleet-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.fleet-contact__title {
    margin: 0;
    font-size: var(--font-size-h2);
    line-height: var(--line-height-tight);
}

.fleet-contact__item {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    color: var(--jac-ink);
    font-weight: var(--font-weight-medium, 500);
}

.fleet-contact__item a {
    color: inherit;
    text-decoration: none;
}

.fleet-contact__item a:hover,
.fleet-contact__item a:focus-visible {
    color: var(--jac-red);
}

.fleet-contact__hours h3 {
    margin: 0 0 var(--space-8);
    font-size: var(--font-size-body);
}

.fleet-contact__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12);
}

.fleet-contact__buttons .jac-btn {
    flex: 1 1 auto;
    justify-content: center;
}

.fleet-contact__cta-wrap {
    margin-top: var(--space-24);
}

.fleet-contact__cta {
    width: auto;
}

.fleet-resource-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    --card-padding-y: 0;
    --card-padding-x: 0;
    --card-radius: var(--radius-lg);
    --card-shadow: var(--shadow-card);
}

.fleet-resource-card__type {
    margin-bottom: var(--space-16);
    align-self: flex-start;
}

.fleet-resource-card__title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--jac-black);
    margin-bottom: var(--space-12);
    line-height: var(--line-height-tight);
}

.fleet-resource-card__desc,
.fleet-resource-card__excerpt {
    font-size: var(--font-size-body);
    color: var(--jac-grey-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-24);
    flex-grow: 1;
}

.fleet-resource-card__cta {
    margin-top: 0;
}

.fleet-resources__cta {
    text-align: center;
}

/* ============================================================================
   FLEET QUOTE FORM LAYOUT
   Note: Uses canonical .jac-card for contact box
   ============================================================================ */

.page-template-page-fleet .fleet-enquiry__wrapper {
    display: grid;
    gap: var(--space-32);
    align-items: flex-start;
}

.page-template-page-fleet .fleet-form {
    width: 100%;
    max-width: 780px;
    margin-left: auto;
}

.page-template-page-fleet .fleet-form > * + * {
    margin-top: var(--space-16);
}

.page-template-page-fleet .fleet-form .fluentform {
    width: 100%;
    max-width: 720px;
    margin-top: var(--space-12);
    display: grid;
    gap: var(--space-16);
}

@media (min-width: 992px) {
    .page-template-page-fleet .fleet-enquiry__wrapper {
        grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.1fr);
    }

    .page-template-page-fleet .fleet-form {
        margin-right: 0;
    }

    .page-template-page-fleet .fleet-form .fluentform {
        gap: var(--space-24);
    }
}

/* ============================================================================
   FLEET CTA SECTION - Centered layout
   ============================================================================ */

.fleet-cta__content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-16);
}

.fleet-cta__content h2 {
    margin: 0;
    font-size: var(--font-size-h2);
    line-height: var(--line-height-tight);
    color: var(--jac-ink);
}

.fleet-cta__content p {
    margin: 0;
    color: var(--jac-grey-600);
    line-height: var(--line-height-relaxed);
}

/* ============================================================================
   TABLET RESPONSIVENESS
   ============================================================================ */

@media (max-width: 1024px) {
    .fleet-resources__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================================
   MOBILE RESPONSIVENESS
   ============================================================================ */

@media (max-width: 768px) {
    .fleet-modal__content {
        padding: var(--space-40) var(--space-24) var(--space-24);
    }

    .fleet-modal__title {
        font-size: var(--font-size-h3); /* 1.5rem / 24px - mobile */
    }

    .fleet-benefit-card__icon,
    .fleet-segment-card__icon {
        width: calc(var(--icon-holder-size) - var(--space-8));
        height: calc(var(--icon-holder-size) - var(--space-8));
    }

    .fleet-benefit-card__icon svg,
    .fleet-segment-card__icon svg {
        width: var(--space-24);
        height: var(--space-24);
    }

    .fleet-benefits__grid,
    .fleet-segments__grid,
    .fleet-lineup__grid {
        grid-template-columns: 1fr;
    }

    .fleet-resources__grid {
        grid-template-columns: 1fr;
        gap: var(--space-24);
    }

    .fleet-form-cta {
        padding: var(--space-32) var(--space-24);
        margin-top: var(--space-32);
    }

    .fleet-enquiry__wrapper {
        flex-direction: column;
    }

    .fleet-hero__actions {
        width: 100%;
    }

    .fleet-hero__actions .jac-btn {
        width: 100%;
        justify-content: center;
    }

    .page-template-page-fleet .jac-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   ACCESSIBILITY & FOCUS STATES
   ============================================================================ */

/* Use :focus-visible instead of :focus */
.fleet-quote-trigger:focus-visible,
.fleet-modal__close:focus-visible {
    outline: var(--space-2) solid var(--jac-red);
    outline-offset: var(--space-2);
    box-shadow: 0 0 0 var(--space-4) var(--jac-red-a20);
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .fleet-modal,
    .fleet-quote-trigger,
    .page-template-page-fleet .jac-btn {
        display: none !important;
    }
}

/* ============================================================================
   ARCHIVE FILTER BAR & UTILITIES
   ============================================================================ */

.resources-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12);
    justify-content: center;
    margin-bottom: calc(var(--space-32) + var(--space-16));
}

.filter-btn {
    --btn-height: var(--btn-height-sm);
    --btn-padding-x: var(--btn-padding-sm);
    --btn-font-size: var(--btn-font-size-sm);
    --btn-radius: var(--radius-pill);
    background: var(--jac-white);
    border-color: var(--jac-border);
    color: var(--jac-grey-600);
    font-weight: var(--font-weight-medium, 500);
}

.filter-btn:hover,
.filter-btn:focus-visible {
    border-color: var(--jac-red);
    color: var(--jac-red);
    background: var(--jac-red-a05);
}

.filter-btn.active {
    background: var(--jac-red);
    border-color: var(--jac-red);
    color: var(--jac-white);
    box-shadow: var(--shadow-soft);
}

.filter-btn.active:hover,
.filter-btn.active:focus-visible {
    background: var(--jac-red-a85);
    border-color: var(--jac-red-a85);
    color: var(--jac-white);
}

/* Utility class for JS filtering */
/* FIX: Added specificity for .fleet-resource-card to hide correctly */
.resource-card.is-hidden,
.fleet-resource-card.is-hidden {
    display: none !important;
}

/* Fix Empty State */
.no-resources {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-64) var(--space-32);
    background: var(--jac-surface-muted);
    border-radius: var(--radius-lg); /* 12px for cards */
    text-align: center;
    display: none; /* Initial state, JS toggles this */
}

.no-resources h3 {
    margin-top: var(--space-24);
    margin-bottom: var(--space-8);
    color: var(--jac-ink);
    font-size: var(--font-size-h3);
    font-weight: 600;
}

.no-resources p {
    color: var(--jac-grey-500);
    margin-bottom: var(--space-32);
}

.no-resources .jac-btn {
    min-width: 200px;
}

/*
 * HERO SYSTEM V1 MIGRATION (Bundle P3):
 * - Single Fleet Resource now uses .jac-hero--split from jac-components.css
 * - Old .fleet-resource-header styles removed (~70 lines)
 * - Canonical hero system provides all hero styling
 * - Eyebrow shows resource type (Brochure, TCO Tool, etc.)
 * - Hero actions include download/view + quote buttons
 */

/* ============================================================================
   FLEET PAGE LAYOUT FIXES (Jan 2026)
   Higher specificity to override Kadence theme styles
   ============================================================================ */

/* Fleet Resources Archive - Page wrapper background */
#inner-wrap .fleet-resources-archive-page,
main.fleet-resources-archive-page {
    background: var(--jac-surface-muted);
}

/* Fleet Resources Archive - Hero spacing */
#inner-wrap .fleet-resources-archive-page .jac-hero--split,
.fleet-resources-archive-page .jac-hero--split {
    margin-bottom: 0;
}

/* Fleet Resources Archive - Section backgrounds (match fleet solutions) */
#inner-wrap .fleet-resources-archive-page .fleet-resource-nav.jac-section,
.fleet-resources-archive-page .fleet-resource-nav.jac-section {
    padding-top: var(--space-16) !important;
    padding-bottom: var(--space-16) !important;
    background: var(--jac-surface-soft);
}

/* Override content-container and site-container padding inside nav section */
.fleet-resources-archive-page .fleet-resource-nav .content-container,
.fleet-resources-archive-page .fleet-resource-nav .site-container,
#inner-wrap .fleet-resources-archive-page .fleet-resource-nav .content-container,
#inner-wrap .fleet-resources-archive-page .fleet-resource-nav .site-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#inner-wrap .fleet-resources-archive-page .jac-section.jac-surface,
.fleet-resources-archive-page .jac-section.jac-surface {
    background: var(--jac-white);
    padding-top: var(--space-64);
    padding-bottom: var(--space-64);
}

/* Fleet Resources Archive - Section border */
#inner-wrap .fleet-resources-archive-page .fleet-resource-nav + .jac-section,
.fleet-resources-archive-page .fleet-resource-nav + .jac-section {
    border-top: 1px solid var(--jac-border-subtle);
}

/* 1. Reduce hero-to-content spacing */
#inner-wrap .fleet-page .jac-hero--split,
.fleet-page .jac-hero--split {
    margin-bottom: 0;
}

#inner-wrap .fleet-page .jac-hero--split + .jac-section,
.fleet-page .jac-hero--split + .jac-section {
    padding-top: var(--space-40);
}

/* Entry content section should have no extra top padding */
#inner-wrap .fleet-page .jac-section:first-of-type .entry-content,
.fleet-page .jac-section:first-of-type .entry-content {
    padding-top: 0;
}

/* 2. Section background banding (mirrors homepage pattern) */
#inner-wrap .fleet-page,
main.fleet-page {
    background: var(--jac-surface-1);
}

/* Alternating surface pattern - matches homepage */
#inner-wrap .fleet-page #fleet-benefits,
#inner-wrap .fleet-page .fleet-resources,
#inner-wrap .fleet-page section:has(.fleet-lineup__grid),
#inner-wrap .fleet-page section:has(.fleet-cta__content),
.fleet-page #fleet-benefits,
.fleet-page .fleet-resources,
.fleet-page section:has(.fleet-lineup__grid),
.fleet-page section:has(.fleet-cta__content) {
    background: var(--jac-surface-1);
}

#inner-wrap .fleet-page section.jac-surface-soft,
#inner-wrap .fleet-page section:has(.fleet-segments__grid),
#inner-wrap .fleet-page section:has(.fleet-faq__items),
#inner-wrap .fleet-page #fleet-enquiry,
.fleet-page section.jac-surface-soft,
.fleet-page section:has(.fleet-segments__grid),
.fleet-page section:has(.fleet-faq__items),
.fleet-page #fleet-enquiry {
    background: var(--jac-surface-2);
}

/* Section spacing consistency */
#inner-wrap .fleet-page .jac-section,
.fleet-page .jac-section {
    padding-top: var(--space-64);
    padding-bottom: var(--space-64);
}

/* Add subtle border between sections like homepage */
#inner-wrap .fleet-page .jac-section + .jac-section,
.fleet-page .jac-section + .jac-section {
    border-top: 1px solid var(--jac-border-subtle);
}

/* ============================================================================
   3. MODAL STYLING - Match Single Offer modals
   ============================================================================ */

/* Fleet modal - match offer modal styling */
.fleet-modal__container {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Modal header with red gradient - matches VDP/offer modals */
.fleet-modal__header {
    background: linear-gradient(135deg, var(--jac-red) 0%, var(--jac-red-a80) 100%);
    padding: var(--space-32) var(--space-40) var(--space-24);
    text-align: center;
    color: var(--jac-white);
    flex-shrink: 0;
}

.fleet-modal__header .fleet-modal__title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--jac-white);
    margin: 0 0 var(--space-8);
}

.fleet-modal__header .fleet-modal__subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--jac-white);
    opacity: 0.95;
    margin: 0;
}

/* Modal close button - white on red header */
.fleet-modal__header + .fleet-modal__close,
.fleet-modal .fleet-modal__close {
    background: var(--jac-white-a20);
    color: var(--jac-white);
}

.fleet-modal .fleet-modal__close:hover {
    background: var(--jac-white-a30);
}

.fleet-modal .fleet-modal__close svg {
    color: var(--jac-white);
}

/* Modal content area */
.fleet-modal__content {
    padding: var(--space-32) var(--space-40) var(--space-40);
    background: var(--jac-white);
}

/* Form styling inside fleet modal */
.fleet-modal__content .fluentform {
    max-width: 100%;
}

.fleet-modal__content .ff-el-group {
    margin-bottom: var(--space-24);
}

.fleet-modal__content .ff-el-form-control {
    width: 100%;
    padding: var(--space-12) var(--space-16);
    font-size: 1rem;
    border: 1px solid var(--jac-border);
    border-radius: var(--radius-sm);
    background: var(--jac-white);
    transition: border-color 0.2s ease;
}

.fleet-modal__content .ff-el-form-control:focus {
    border-color: var(--jac-red);
    outline: none;
    box-shadow: 0 0 0 3px var(--jac-red-a10);
}

.fleet-modal__content .ff-btn-submit {
    background: var(--jac-red);
    color: var(--jac-white);
    border: none;
    padding: var(--space-16) var(--space-32);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    display: inline-block;
}

.fleet-modal__content .ff-btn-submit:hover {
    background: var(--jac-graphite);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

/* ============================================================================
   4. HELPFUL TOOLS & RESOURCES CARDS
   ============================================================================ */

/* Resource cards - premium styling */
.fleet-resources__grid .fleet-resource-card {
    background: var(--jac-white);
    border: 1px solid var(--jac-border);
    border-radius: var(--radius-lg);
    padding: var(--space-24);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fleet-resources__grid .fleet-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

/* Resource card type badge */
/* Resource card title */
.fleet-resources__grid .fleet-resource-card__title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--jac-black);
    margin: 0 0 var(--space-12);
    line-height: var(--line-height-tight);
}

/* Resource card excerpt/description */
.fleet-resources__grid .fleet-resource-card__excerpt {
    font-size: var(--font-size-body);
    color: var(--jac-grey-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-24);
    flex-grow: 1;
}

/* Resource card CTA button */
.fleet-resources__grid .fleet-resource-card__cta {
    margin-top: auto;
    align-self: flex-start;
}

/* Section subtitle styling */
.fleet-resources .section-subtitle {
    font-size: var(--font-size-body);
    color: var(--jac-grey-600);
    text-align: center;
    max-width: 700px;
    margin: var(--space-8) auto var(--space-40);
}

.fleet-resource-footer .jac-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
}

#fleet-resource-single .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-8);
    font-size: var(--font-size-small);
    color: var(--jac-grey-600);
    margin-bottom: var(--space-24);
}

#fleet-resource-single .breadcrumbs a {
    color: var(--jac-grey-600);
    text-decoration: none;
}

#fleet-resource-single .breadcrumbs a:hover,
#fleet-resource-single .breadcrumbs a:focus-visible {
    color: var(--jac-red);
}

#fleet-resource-single .breadcrumbs .separator,
#fleet-resource-single .breadcrumbs .current {
    color: var(--jac-grey-500);
}

/* Meta styling for hero (primary segment) */
.jac-hero__meta {
    margin: var(--space-12) 0 0;
    font-size: var(--font-size-small);
    color: var(--jac-grey-600);
}

#fleet-resource-single .fleet-resource-content {
    max-width: 65ch;
    width: 100%;
    color: var(--jac-ink);
    font-size: var(--font-size-body);
    line-height: var(--line-height-relaxed);
}

#fleet-resource-single .fleet-resource-content * {
    max-width: 100%;
}

#fleet-resource-single .fleet-resource-content > * + * {
    margin-top: var(--space-24);
}

#fleet-resource-single .fleet-resource-content .wp-block-heading {
    margin: 0 0 var(--space-12);
}

#fleet-resource-single .fleet-resource-content h2,
#fleet-resource-single .fleet-resource-content h3,
#fleet-resource-single .fleet-resource-content h4 {
    color: var(--jac-black);
    line-height: var(--line-height-tight);
    margin: 0 0 var(--space-12);
}

#fleet-resource-single .fleet-resource-content h2 {
    font-size: var(--font-size-h2);
}

#fleet-resource-single .fleet-resource-content h3 {
    font-size: var(--font-size-h3);
}

#fleet-resource-single .fleet-resource-content h4 {
    font-size: var(--font-size-body);
    font-weight: 700;
}

#fleet-resource-single .fleet-resource-content p {
    margin: 0;
}

#fleet-resource-single .fleet-resource-content a {
    color: var(--jac-red);
    text-decoration: underline;
    text-underline-offset: var(--space-4);
}

#fleet-resource-single .fleet-resource-content a:hover,
#fleet-resource-single .fleet-resource-content a:focus-visible {
    color: var(--jac-red-dark);
}

#fleet-resource-single .fleet-resource-content strong {
    color: var(--jac-black);
}

#fleet-resource-single .fleet-resource-content ul,
#fleet-resource-single .fleet-resource-content ol {
    margin: 0;
    padding-left: var(--space-24);
    display: grid;
    gap: var(--space-12);
}

#fleet-resource-single .fleet-resource-content ul ul,
#fleet-resource-single .fleet-resource-content ol ol,
#fleet-resource-single .fleet-resource-content ul ol,
#fleet-resource-single .fleet-resource-content ol ul {
    margin-top: var(--space-12);
}

#fleet-resource-single .fleet-resource-content li {
    margin: 0;
    color: var(--jac-grey-700);
}

#fleet-resource-single .fleet-resource-content hr {
    border: 0;
    border-top: 1px solid var(--jac-border);
}

#fleet-resource-single .fleet-resource-content blockquote {
    margin: 0;
    padding: var(--space-24);
    border-left: var(--space-4) solid var(--jac-red);
    background: var(--jac-surface-soft);
    border-radius: var(--radius-md);
    color: var(--jac-ink);
}

#fleet-resource-single .fleet-resource-content figure {
    margin: 0;
}

#fleet-resource-single .fleet-resource-content .wp-block-image {
    margin: 0;
}

#fleet-resource-single .fleet-resource-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}

#fleet-resource-single .fleet-resource-content .wp-caption-text,
#fleet-resource-single .fleet-resource-content figcaption {
    margin-top: var(--space-12);
    font-size: var(--font-size-small);
    color: var(--jac-grey-600);
}

#fleet-resource-single .fleet-resource-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-small);
}

#fleet-resource-single .fleet-resource-content th,
#fleet-resource-single .fleet-resource-content td {
    padding: var(--space-12);
    border: 1px solid var(--jac-border);
    text-align: left;
}

#fleet-resource-single .fleet-resource-content thead {
    background: var(--jac-surface-soft);
}

#fleet-resource-single .fleet-resource-content .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#fleet-resource-single .fleet-resource-related {
    margin-top: var(--space-64);
}

#fleet-resource-single .fleet-resource-related__header h2 {
    margin: 0 0 var(--space-24);
    font-size: var(--font-size-h2);
    line-height: var(--line-height-tight);
    color: var(--jac-ink);
}

/* Related Vehicles grid - 3 columns desktop, 2 tablet, 1 mobile */
.fleet-resource-related-section .fleet-resource-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-24);
}

@media (max-width: 1024px) {
    .fleet-resource-related-section .fleet-resource-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .fleet-resource-related-section .fleet-resource-related__grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Single Fleet Resource - Premium Section Styling
   ========================================================= */

/* Page wrapper */
#fleet-resource-single.fleet-resource-page {
    background: var(--jac-surface-muted);
}

/* Back link section */
#fleet-resource-single .fleet-resource-nav.jac-section {
    padding-top: var(--space-16) !important;
    padding-bottom: var(--space-16) !important;
}

.fleet-resource-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    color: var(--jac-red);
    font-size: var(--font-size-small);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fleet-resource-back-link:hover,
.fleet-resource-back-link:focus-visible {
    color: var(--jac-red-dark);
}

.fleet-resource-back-link svg {
    flex-shrink: 0;
}

/* Main content section - no top padding, nav section above provides separation */
#fleet-resource-single .fleet-resource-main.jac-section {
    padding-top: var(--space-64) !important;
    padding-bottom: var(--space-64) !important;
}

.fleet-resource-content-wrap {
    max-width: 72rem;
    margin: 0 auto;
}

/* Related section */
#fleet-resource-single .fleet-resource-related-section.jac-section {
    padding-top: var(--space-64) !important;
    padding-bottom: var(--space-64) !important;
}

.fleet-resource-related-section .jac-section__header {
    margin-bottom: var(--space-32);
}

.fleet-resource-related-section .jac-section__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--jac-ink);
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #fleet-resource-single .fleet-resource-main.jac-section {
        padding-top: var(--space-48) !important;
        padding-bottom: var(--space-48) !important;
    }

    #fleet-resource-single .fleet-resource-related-section.jac-section {
        padding-top: var(--space-48) !important;
        padding-bottom: var(--space-48) !important;
    }
}

/* Card Thumbnail Wrapper */
.fleet-resource-card__thumbnail {
    position: relative;
    padding-top: var(--aspect-hero);
    overflow: hidden;
    background: var(--jac-surface-soft);
    border-bottom: 1px solid var(--jac-border);
}

.fleet-resource-card__thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fleet-resource-card:hover .fleet-resource-card__thumbnail img {
    transform: scale(1.05);
}

/* Card Content Area */
.fleet-resource-card__content {
    padding: var(--space-24); /* 1.5rem / 24px */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: var(--space-12);
}

/* Title Link Styling */
.fleet-resource-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fleet-resource-card__title a:hover {
    color: var(--jac-red, var(--jac-red));
}

/* Action Buttons Container */
.fleet-resource-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12);
    margin-top: auto; /* Push to bottom */
    padding-top: var(--space-16);
    border-top: 1px solid var(--jac-surface-soft);
}

.fleet-resource-card__read-more.jac-btn--link {
    align-items: center;
}
/* ============================================================================
   HERO SYSTEM V1 MIGRATION (Bundle P3)
   ============================================================================
   - Fleet Solutions page now uses .jac-hero--split from jac-components.css
   - Old .fleet-hero styles removed (~60 lines)
   - Canonical hero system provides all hero styling
   */
