/* AMX Fleet — modern directory + specs modal */

.amx-fleet-page .home-hero__lead { max-width: 36rem; }

.amx-fleet.home-section--light {
    background: #fff;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.amx-fleet--vintage.home-section--light {
    padding-top: 1.5rem;
    padding-bottom: 4.75rem;
    border-top: 1px solid rgba(3, 13, 117, 0.06);
}

.amx-fleet__wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.amx-fleet__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin: 0 auto 2.15rem;
    max-width: 40rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(3, 13, 117, 0.08);
}

.amx-fleet__intro-copy {
    max-width: 36rem;
    margin: 0 auto;
}

.amx-fleet__kicker {
    display: inline-block;
    margin: 0 0 0.55rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fa0073;
}

.amx-fleet__title {
    margin: 0 0 0.55rem;
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #020c41;
}

.amx-fleet__desc {
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 34rem;
}

.amx-fleet__intro-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.amx-fleet__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid rgba(3, 13, 117, 0.08);
    color: #030d75;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.amx-fleet__chip i { font-size: 0.7rem; opacity: 0.85; }

.amx-fleet__chip--pink {
    background: rgba(250, 0, 115, 0.08);
    border-color: rgba(250, 0, 115, 0.18);
    color: #fa0073;
}

.amx-fleet__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .amx-fleet__grid {
        grid-template-columns: 7fr 5fr;
        gap: 1.35rem;
        align-items: stretch;
    }
}

.amx-fleet__side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .amx-fleet__side {
        grid-template-columns: 1fr 1fr;
    }
}

.amx-fleet__vintage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 900px) {
    .amx-fleet__vintage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* Cards */
.fleet-card {
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    border-radius: 1.2rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(3, 13, 117, 0.08);
    box-shadow: 0 10px 28px rgba(2, 12, 65, 0.05);
}

.fleet-card:hover {
    transform: translateY(-4px);
    border-color: rgba(250, 0, 115, 0.22);
    box-shadow: 0 18px 40px -12px rgba(2, 12, 65, 0.18);
}

.fleet-card .fleet-img-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 50%, #020c41 100%);
    aspect-ratio: 2 / 1;
}

.fleet-card .fleet-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.fleet-card:hover .fleet-img { transform: scale(1.04); }

.fleet-card__body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.fleet-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.fleet-card__body h3 {
    margin: 0;
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #020c41;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.fleet-family {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(3, 13, 117, 0.07);
    color: #030d75;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fleet-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.fleet-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    padding: 0.3rem 0.55rem;
    border-radius: 0.55rem;
    background: #f8fafc;
    border: 1px solid rgba(3, 13, 117, 0.06);
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.fleet-stat strong {
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #020c41;
    letter-spacing: -0.02em;
    text-transform: none;
}

.fleet-stat--wide { flex: 1 1 auto; }

.fleet-stats--on-dark .fleet-stat {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.7);
}

.fleet-stats--on-dark .fleet-stat strong { color: #fff; }

.fleet-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #030d75;
    transition: color 0.2s;
}

.fleet-cta .arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 0.68rem;
}

.fleet-card:hover .fleet-cta { color: #fa0073; }
.fleet-card:hover .fleet-cta .arrow { transform: translateX(3px); }

.fleet-flagship {
    background: linear-gradient(165deg, #1e40af 0%, #1e3a8a 42%, #020c41 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fleet-flagship:hover {
    border-color: rgba(250, 0, 115, 0.35);
}

.fleet-flagship .fleet-img-wrap {
    background: transparent;
    flex: 1;
    min-height: 13rem;
}

.fleet-flagship .fleet-body {
    padding: 1.25rem 1.4rem 1.4rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.fleet-flagship .fleet-eyebrow {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fa0073;
}

.fleet-flagship .fleet-family {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

.fleet-flagship .fleet-body h3 {
    margin: 0;
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.fleet-flagship .fleet-cta { color: rgba(255, 255, 255, 0.95); }
.fleet-flagship:hover .fleet-cta { color: #fa0073; }

/* Vintage — horizontal catalog rows */
.fleet-vintage.fleet-vintage-static,
.vintage-row {
    cursor: default;
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    border-radius: 1.1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(3, 13, 117, 0.08);
    box-shadow: 0 8px 22px rgba(2, 12, 65, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.vintage-row:hover {
    transform: translateY(-2px);
    border-color: rgba(3, 13, 117, 0.14);
    box-shadow: 0 14px 32px -10px rgba(2, 12, 65, 0.12);
}

.vintage-row .fleet-img-wrap,
.vintage-row__media {
    position: relative;
    aspect-ratio: auto;
    min-height: 100%;
    background: linear-gradient(160deg, #1e40af 0%, #1e3a8a 50%, #020c41 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.65rem;
}

.vintage-row .fleet-img {
    width: 100%;
    height: auto;
    max-height: 5.5rem;
    object-fit: contain;
}

.vintage-row:hover .fleet-img { transform: scale(1.04); }

.vintage-row__body,
.vintage-row .fleet-card__body {
    padding: 0.95rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.vintage-row__body h3,
.vintage-row .fleet-card__body h3 {
    margin: 0;
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #020c41;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.vintage-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
    border-radius: 9999px;
}

.vintage-type-badge.passenger {
    background: rgba(3, 13, 117, 0.08);
    color: #030d75;
}

.vintage-type-badge.cargo {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

/* Mobile vintage stays as compact horizontal rows (not stacked tall cards) */

/* Modal — profile-style shell */
.fleet-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 12, 65, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10050;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.fleet-modal .modal-content,
.fleet-modal__shell {
    position: relative;
    width: min(100%, 40rem);
    max-height: min(90vh, 36rem);
    overflow: hidden;
    overflow-y: auto;
    background: #fff;
    border-radius: 1.35rem;
    box-shadow: 0 28px 64px rgba(2, 12, 65, 0.32);
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .fleet-modal .modal-content,
    .fleet-modal__shell {
        grid-template-columns: minmax(14rem, 0.95fr) minmax(0, 1.15fr);
        overflow: hidden;
        max-height: min(86vh, 32rem);
    }

    .fleet-modal__body,
    .fleet-modal .modal-body {
        overflow-y: auto;
        max-height: min(86vh, 32rem);
    }
}

.fleet-modal .modal-close,
.fleet-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    width: 2.15rem;
    height: 2.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    transition: background 0.2s;
}

@media (min-width: 720px) {
    .fleet-modal .modal-close,
    .fleet-modal__close {
        color: #475569;
        background: #fff;
        box-shadow: 0 2px 10px rgba(2, 12, 65, 0.12);
    }

    .fleet-modal .modal-close:hover,
    .fleet-modal__close:hover {
        color: #fff;
        background: #fa0073;
    }
}

.fleet-modal .modal-close:hover,
.fleet-modal__close:hover {
    background: #fa0073;
    color: #fff;
}

.fleet-modal__hero,
.fleet-modal .modal-img-wrap {
    position: relative;
    overflow: hidden;
    padding: 0.85rem 1rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 90% at 100% 0%, rgba(250, 0, 115, 0.28), transparent 55%),
        linear-gradient(135deg, #020c41 0%, #030d75 55%, #05124a 100%);
    color: #fff;
}

@media (min-width: 720px) {
    .fleet-modal__hero,
    .fleet-modal .modal-img-wrap {
        padding: 1.25rem 1.1rem;
        min-height: 100%;
        justify-content: center;
    }
}

.fleet-modal__stage {
    position: relative;
    width: 100%;
    height: 7.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.45rem;
}

@media (min-width: 720px) {
    .fleet-modal__stage {
        height: 10.5rem;
        margin-bottom: 0.75rem;
    }
}

.fleet-modal__hero-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 5.75rem;
    height: auto;
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

@media (min-width: 720px) {
    .fleet-modal__hero-bg { width: 7.5rem; }
}

.fleet-modal .modal-img,
.fleet-modal__plane {
    position: relative;
    z-index: 1;
    width: min(100%, 20rem);
    height: auto;
    max-height: 6.5rem;
    object-fit: contain;
    margin: 0;
}

@media (min-width: 720px) {
    .fleet-modal .modal-img,
    .fleet-modal__plane {
        width: min(100%, 22rem);
        max-height: 9.5rem;
    }
}

.fleet-modal__hero-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fleet-modal__family {
    display: inline-flex;
    margin: 0 0 0.4rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.fleet-modal__hero-copy h2,
.fleet-modal .modal-body > h2 {
    margin: 0;
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
}

.fleet-modal__body,
.fleet-modal .modal-body {
    padding: 0.95rem 1rem 1.1rem;
}

@media (min-width: 720px) {
    .fleet-modal__body,
    .fleet-modal .modal-body {
        padding: 1.15rem 1.15rem 1.2rem;
    }
}

.fleet-modal .modal-body > h2 { display: none; }
.fleet-modal .modal-body .subtitle { display: none; }

.modal-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.95rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 0.75rem;
}

.modal-tab {
    flex: 1;
    padding: 0.55rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 0.55rem;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.modal-tab:hover { color: #030d75; }
.modal-tab.active {
    color: #020c41;
    background: #fff;
    box-shadow: 0 2px 8px rgba(2, 12, 65, 0.08);
}

.modal-specs-section { margin-bottom: 1rem; }
.modal-specs-section:last-child { margin-bottom: 0; }

.modal-specs-section-title {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-align: center;
}

.specs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    justify-items: stretch;
}

.specs-list--perf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.specs-list--seating {
    grid-template-columns: 1fr;
}

.specs-list--seating .spec-row--classes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    border: none;
}

.specs-list--seating .spec-row--classes .spec-class {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.8rem 0.7rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid rgba(3, 13, 117, 0.06);
    text-align: center;
}

.spec-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    padding: 0.8rem 0.65rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid rgba(3, 13, 117, 0.06);
    text-align: center;
    min-width: 0;
}

.spec-row--highlight {
    background: linear-gradient(135deg, rgba(3, 13, 117, 0.04), rgba(250, 0, 115, 0.04));
    border-color: rgba(3, 13, 117, 0.1);
}

.spec-row .spec-label,
.spec-class .spec-label {
    display: block;
    width: 100%;
    font-size: 0.58rem;
    color: #94a3b8;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.spec-row .spec-value,
.spec-class .spec-value {
    display: block;
    width: 100%;
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #020c41;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
}

.spec-row--highlight .spec-value {
    font-size: 1.35rem;
    color: #030d75;
}

@media (max-width: 420px) {
    .specs-list--perf {
        grid-template-columns: 1fr;
    }

    .specs-list--perf .spec-row {
        width: 100%;
    }
}

.modal-cabin-panel { display: none; }
.modal-cabin-panel.active { display: block; }
.modal-specs-panel { display: block; }
.modal-specs-panel.hidden { display: none; }

.modal-cabin-img {
    width: 100%;
    height: auto;
    border-radius: 0.85rem;
    display: block;
    border: 1px solid rgba(3, 13, 117, 0.06);
}

@media (max-width: 767px) {
    .amx-fleet.home-section--light {
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
    }

    .amx-fleet--vintage.home-section--light {
        padding-top: 0.75rem;
        padding-bottom: 2.75rem;
    }

    .amx-fleet__wrap {
        padding: 0 1rem;
    }

    .amx-fleet__intro {
        gap: 0.75rem;
        margin-bottom: 1.15rem;
        padding-bottom: 0.85rem;
    }

    .amx-fleet__title {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
    }

    .amx-fleet__desc {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .amx-fleet__chip {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }

    .amx-fleet__grid {
        gap: 0.75rem;
    }

    .amx-fleet__side {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .amx-fleet__vintage-grid {
        gap: 0.55rem;
    }

    .fleet-card {
        border-radius: 0.9rem;
        box-shadow: 0 6px 16px rgba(2, 12, 65, 0.04);
    }

    .fleet-card:hover {
        transform: none;
    }

    .fleet-card .fleet-img-wrap {
        aspect-ratio: 1.85 / 1;
    }

    .fleet-card__body {
        padding: 0.7rem 0.7rem 0.8rem;
        gap: 0.4rem;
    }

    .fleet-card__body h3 {
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .fleet-family {
        padding: 0.15rem 0.4rem;
        font-size: 0.52rem;
    }

    .fleet-stats {
        gap: 0.25rem;
    }

    .fleet-stat {
        padding: 0.2rem 0.4rem;
        font-size: 0.55rem;
        border-radius: 0.4rem;
    }

    .fleet-stat strong {
        font-size: 0.7rem;
    }

    .fleet-cta {
        font-size: 0.68rem;
        margin-top: 0;
    }

    .fleet-flagship .fleet-img-wrap {
        min-height: 8.5rem;
        aspect-ratio: 2.1 / 1;
        flex: 0 0 auto;
    }

    .fleet-flagship .fleet-body {
        padding: 0.85rem 0.95rem 1rem;
        gap: 0.4rem;
    }

    .fleet-flagship .fleet-eyebrow {
        font-size: 0.55rem;
    }

    .fleet-flagship .fleet-body h3 {
        font-size: 1.05rem;
    }

    .vintage-row,
    .fleet-vintage.fleet-vintage-static {
        grid-template-columns: 5.75rem minmax(0, 1fr);
        border-radius: 0.85rem;
        box-shadow: 0 4px 12px rgba(2, 12, 65, 0.04);
    }

    .vintage-row:hover {
        transform: none;
    }

    .vintage-row .fleet-img-wrap,
    .vintage-row__media {
        padding: 0.45rem 0.35rem;
    }

    .vintage-row .fleet-img {
        max-height: 3.25rem;
    }

    .vintage-row__body,
    .vintage-row .fleet-card__body {
        padding: 0.55rem 0.65rem 0.6rem;
        gap: 0.3rem;
    }

    .vintage-row__body h3,
    .vintage-row .fleet-card__body h3 {
        font-size: 0.78rem;
    }

    .vintage-type-badge {
        font-size: 0.5rem;
        padding: 0.18rem 0.4rem;
    }

    .fleet-modal__stage {
        height: 6.75rem;
    }

    .fleet-modal__plane,
    .fleet-modal .modal-img {
        max-height: 6rem;
        width: min(100%, 18rem);
    }

    .fleet-modal__hero-bg {
        width: 5.25rem;
    }
}

@media (max-width: 380px) {
    .amx-fleet__side {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .fleet-card__body {
        padding: 0.55rem 0.55rem 0.65rem;
    }

    .fleet-card__body h3 {
        font-size: 0.72rem;
    }

    .fleet-stat strong {
        font-size: 0.65rem;
    }

    .vintage-row,
    .fleet-vintage.fleet-vintage-static {
        grid-template-columns: 4.85rem minmax(0, 1fr);
    }
}
