/* Aircraft Page Styles */

.aircraft-hero {
    position: relative;
    padding: 160px 0 140px;
    background: linear-gradient(135deg, rgba(15, 42, 34, 0.92), rgba(22, 53, 44, 0.85)), url('../images/hero-jet-clouds.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
}

.aircraft-hero .hero-eyebrow {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

.aircraft-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.aircraft-hero p {
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

/* Aircraft Categories Section */
.aircraft-categories {
    padding: 120px 0;
    background: var(--off-white);
}

/* Category Overview Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.category-overview-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 42, 34, 0.08);
    border: 1px solid rgba(22, 53, 44, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 42, 34, 0.12);
    border-color: rgba(22, 53, 44, 0.1);
}

.category-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.category-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 42, 34, 0.15) 100%);
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
}

.category-overview-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category-card-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.category-tagline {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.category-specs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.category-spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.category-spec-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary-green);
    stroke-width: 2;
}

.category-card-content > p {
    color: var(--medium-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.category-explore-btn {
    width: 100%;
}

/* Back button styling */
.back-to-categories {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-categories svg {
    width: 18px;
    height: 18px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-tab {
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid rgba(22, 53, 44, 0.15);
    background: var(--white);
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 16px rgba(15, 42, 34, 0.1);
}

.category-tab.active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* Category Content */
.aircraft-category-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.aircraft-category-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3.5rem;
}

.category-intro h2 {
    margin-bottom: 0.75rem;
}

.category-intro p {
    font-size: 1.05rem;
    color: var(--medium-gray);
}

/* Aircraft Grid */
.aircraft-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

.aircraft-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 42, 34, 0.08);
    border: 1px solid rgba(22, 53, 44, 0.06);
    transition: all 0.3s ease;
}

.aircraft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 42, 34, 0.12);
    border-color: rgba(22, 53, 44, 0.1);
}

.aircraft-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(22, 53, 44, 0.65), rgba(15, 42, 34, 0.65));
}

.aircraft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
}

.aircraft-card:hover .aircraft-image img {
    transform: scale(1.05);
}

.aircraft-info {
    padding: 2rem;
}

.aircraft-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.aircraft-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.spec {
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-radius: 16px;
    background: var(--off-white);
    border: 1px solid rgba(22, 53, 44, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.spec svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-green);
    stroke-width: 2;
    margin-bottom: 0.25rem;
}

.spec-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--medium-gray);
    font-weight: 600;
}

.spec-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-green);
}

.btn-details {
    width: 100%;
    padding: 14px;
    border-radius: 999px;
    border: 1px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(11, 25, 20, 0.65);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 4% auto;
    border-radius: 16px;
    max-width: 760px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(15, 42, 34, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.close {
    position: absolute;
    top: 18px;
    right: 24px;
    color: var(--white);
    background: rgba(22, 53, 44, 0.85);
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    font-family: var(--font-serif);
    z-index: 10;
}

.close:hover,
.close:focus {
    background: var(--primary-green);
}

#modalBody {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.modal-header {
    padding: 2rem 2.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(22, 53, 44, 0.92), rgba(15, 42, 34, 0.85));
    color: var(--white);
    flex-shrink: 0;
}

.modal-header h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-body {
    padding: 2.1rem 2.25rem 1.9rem;
    overflow-y: auto;
    flex: 1 1 auto;
}

.modal-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.modal-image {
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 42, 34, 0.08);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.modal-image-label {
    text-align: center;
    margin-top: 0.4rem;
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
    color: var(--medium-gray);
}

.modal-section {
    margin-top: 0;
}

.modal-section + .modal-section {
    margin-top: 1.5rem;
}

.modal-section h3 {
    margin-bottom: 0.85rem;
}

.detail-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
}

.detail-spec {
    padding: 0.9rem 1.1rem;
    background: rgba(22, 53, 44, 0.05);
    border-radius: 11px;
    border: 1px solid rgba(22, 53, 44, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-spec svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-green);
    stroke-width: 2;
}

.detail-spec-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--medium-gray);
    font-weight: 600;
}

.detail-spec-value {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--primary-green);
}

.modal-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
    color: var(--rich-black);
    font-size: 0.98rem;
    line-height: 1.5;
}

.modal-footer {
    padding: 1.5rem 1.9rem;
    background: var(--white);
    border-top: 1px solid rgba(22, 53, 44, 0.08);
    text-align: center;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .aircraft-specs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .aircraft-hero {
        padding: 140px 0 120px;
    }

    .aircraft-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-card-content {
        padding: 1.5rem;
    }

    .category-specs {
        flex-direction: column;
        gap: 1rem;
    }

    .category-tabs {
        gap: 0.75rem;
    }

    .aircraft-specs {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .spec {
        padding: 0.6rem 0.25rem;
        gap: 0.25rem;
    }

    .spec svg {
        width: 16px;
        height: 16px;
        margin-bottom: 0.1rem;
    }

    .spec-label {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }

    .spec-value {
        font-size: 0.95rem;
    }

    .modal-content {
        max-height: calc(100vh - 4rem);
        margin: 2rem auto;
    }

    .modal-header {
        padding: 1.75rem 1.8rem 1.35rem;
    }

    .modal-body {
        padding: 1.75rem 1.8rem 1.6rem;
    }

    .modal-images {
        margin-bottom: 1.25rem;
    }

    .modal-image {
        height: 150px;
    }

    .modal-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .modal-section + .modal-section {
        margin-top: 1.1rem;
    }

    .modal-footer {
        padding: 1.3rem 1.7rem;
    }
}

@media (max-width: 576px) {
    .category-tab {
        width: 100%;
    }

    .modal-content {
        margin: 2rem 1.25rem;
        max-height: calc(100vh - 4rem);
    }

    .modal-body,
    .modal-header {
        padding: 1.5rem 1.25rem;
    }

    .modal-image {
        height: 135px;
    }

    .modal-footer {
        padding: 1.1rem 1.35rem;
    }
}
