@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

:root {
    --gold: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.2);
    --dark-bg: #FFFFFF; /* Changed to white */
    --card-bg: #FDFDFD;
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-white: #273163; /* Corporate blue */
    --text-muted: #666666;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fleet-redesign {
    background: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 80px;
}

.fleet-redesign h1, .fleet-redesign h2, .fleet-redesign h3, .fleet-redesign h4 {
    font-family: 'Playfair Display', serif;
    color: #273163;
}

/* Hero Breadcrumb Section */
.hero-breadcrumb {
    background: url('../images/BANNER_IMG.svg') no-repeat center center;
    background-size: cover;
    height: 380px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 30px;
    border-bottom: 4px solid #D4AF37;
}

/* Breadcrumb removed for consistency with About Hero */

.gold-accent {
    color: var(--gold);
}

/* Section Header */
.fleet-header {
    text-align: center;
    padding: 60px 0 30px;
}

.fleet-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.fleet-accent {
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 15px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.tab-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1rem;
    padding: 8px 0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-weight: 600;
}

.tab-btn.active {
    color: var(--gold);
}

/* Featured Vehicle */
.featured-section {
    margin-bottom: 60px;
}

.maybach-featured {
    background: #FFFFFF;
    border: 1px solid rgba(198, 168, 91, 0.2);
    border-radius: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.featured-image-box {
    flex: 1.2;
    height: 100%;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.featured-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.featured-content {
    flex: 1;
    padding: 40px;
}

/* Fleet Grid */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns to allow ~600px width */
    max-width: 1240px;
    margin: 0 auto;
    gap: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fleet-grid.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fleet Card - Forced to roughly 600x350 equivalent ratio */
.fleet-card {
    background: #FFFFFF;
    border: 1px solid rgba(198, 168, 91, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: row; 
    height: 400px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.fleet-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    flex: 1.1;
    position: relative;
    overflow: hidden;
    background: #FFFFFF; 
}

.card-img-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.card-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-category {
    color: var(--gold);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #273163;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Specs Bar */
.specs-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #444;
}

.spec-item i {
    color: var(--gold);
}

/* CTA */
.card-cta {
    align-self: flex-start;
    border: 1.5px solid #273163;
    color: #273163;
    padding: 6px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: var(--transition);
}

.card-cta:hover {
    background: #273163;
    color: #fff;
}

/* Tabs Toggle Logic */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Hero Breadcrumb Responsive */
@media (max-width: 991px) {
    .hero-breadcrumb {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-breadcrumb {
        height: 200px;
        margin-bottom: 0;
    }
}

/* Category Tabs Styling Adjustment */
.tab-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #444;
}

.tab-btn.active {
    background: #273163;
    color: #fff;
    border-color: #273163;
}

/* Featured Section */
.featured-section {
    margin-top: 40px;
}

.maybach-featured {
    height: 450px;
}

/* Responsive */
@media (max-width: 991px) {
    .fleet-header {
        padding: 40px 15px 20px;
    }
    .category-tabs {
        gap: 12px;
        margin-bottom: 30px;
    }
    .tab-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    .maybach-featured {
        flex-direction: column;
        height: auto;
    }
    .featured-image-box {
        height: 250px;
        width: 100%;
        padding: 20px;
    }
    .featured-content {
        padding: 30px 20px;
        text-align: center;
    }
    .fleet-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .fleet-card {
        flex-direction: column;
        height: auto !important;
    }
    .card-img-wrapper {
        height: 200px !important;
        width: 100% !important;
        flex: none !important;
        position: relative;
    }
    .card-img-wrapper img {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 85% !important;
        height: 85% !important;
        object-fit: contain !important;
    }
    .maybach-featured {
        flex-direction: column;
        height: auto !important;
    }
    .featured-image-box {
        flex: none !important;
        height: 200px !important;
        width: 100% !important;
        padding: 10px;
    }
    .featured-content {
        padding: 30px 20px;
        text-align: center;
    }
    .fleet-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .card-info {
        padding: 25px 20px;
        text-align: center;
        align-items: center;
    }
    .card-cta {
        align-self: center;
    }
    .specs-bar {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .fleet-title {
        font-size: 2.2rem;
    }
    .maybach-featured {
        border-radius: 15px;
    }
    .featured-content h2 {
        font-size: 1.8rem;
    }
    .featured-image-box {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-breadcrumb {
        height: 120px;
        width: 94%;
        margin: 10px auto;
        border-radius: 12px;
        background-size: contain;
        background-color: #ffffff;
    }
    .card-img-wrapper {
        height: 180px;
    }
}
