:root {
    --cat-red: #b91d1d;
    --cat-dark: #1a1a1a;
    --text-color: #333;
    --bg-light: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-light); color: var(--text-color); }

/* Navigation */
.navbar {
    background: #000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 1rem 5%;
    align-items: center;
    flex-wrap: wrap;
}

.logo { font-weight: bold; letter-spacing: 1px; }
.logo span { color: var(--cat-red); }

.nav-menu { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
    flex-wrap: wrap;
}

.nav-menu a { 
    color: #ccc; 
    text-decoration: none; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
}

.nav-menu a.active { 
    color: white; 
    border-bottom: 2px solid var(--cat-red); 
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(to bottom, #7e3535, #e07a5f);
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 4px solid var(--cat-red);
}

.hero-box {
    border: 2px solid white;
    padding: 10px 20px;
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-align: center;
}

/* Legacy Section */
.legacy-section { 
    text-align: center; 
    padding: 40px 0; 
}

.poster { 
    max-width: 90%; 
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    border: 8px solid white; 
}

/* Welcome Section */
.welcome-text { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 40px 20px; 
    text-align: center; 
}

.bio-flex { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
    text-align: left; 
    margin-top: 30px; 
    flex-wrap: wrap;
}

.side-logo { 
    width: 120px; 
    height: 120px; 
}

.motto { 
    font-weight: bold; 
    color: var(--cat-red); 
    margin-top: 15px; 
    text-transform: uppercase; 
}

.disclaimer { 
    font-size: 0.7rem; 
    color: #999; 
    margin-top: 40px; 
}

/* Quote Block */
.quote-block {
    background: var(--cat-red);
    color: white;
    padding: 40px 5%;
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
}

.author { 
    display: block; 
    margin-top: 15px; 
    font-weight: bold; 
    font-style: normal; 
    font-size: 1rem; 
    opacity: 0.8; 
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 5%;
    background: #000;
}

.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cat-player {
    width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.cat-player:hover {
    transform: scale(1.02);
    border-color: #b91d1d;
}

.vid-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Page Header */
.page-header {
    background: #4a1c1c;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 4px solid var(--cat-red);
}

.header-box {
    border: 2px solid white;
    padding: 10px 30px;
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    letter-spacing: 4px;
    text-align: center;
}

/* Subsidiary Grid */
.subsidiary-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.intro-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.company-card {
    background: #fff;
    padding: 30px 20px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.company-card:hover {
    transform: translateY(-5px);
    border-bottom: 2px solid var(--cat-red);
}

.logo-wrapper {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo-wrapper img {
    max-width: 80%;
    max-height: 100%;
    filter: grayscale(100%);
    transition: 0.3s;
}

.company-card:hover .logo-wrapper img {
    filter: grayscale(0%);
}

.company-card h3 {
    font-family: 'Inter', sans-serif;
    color: var(--cat-red);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.company-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 20px;
}

/* Buttons and Tags */
.btn-sub {
    display: inline-block;
    background: var(--cat-red);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 2px;
}

.status-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.disbanded {
    opacity: 0.6;
}

/* Dropdown Logic */
.dropdown { 
    position: relative; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    z-index: 1;
    list-style: none;
    padding: 10px 0;
}

.dropdown-content li a {
    padding: 12px 16px;
    display: block;
    text-transform: none;
}

.dropdown:hover .dropdown-content { 
    display: block; 
}

/* Product Hero Sections */
.product-hero {
    height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/sedan-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.product-hero h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.5rem; 
    letter-spacing: 5px; 
}

.product-description { 
    padding: 50px 5%; 
    text-align: center; 
    line-height: 1.8; 
}

.lead-text { 
    font-size: 1rem; 
    color: #555; 
    margin-bottom: 30px; 
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.spec-item {
    border-top: 2px solid var(--cat-red);
    padding-top: 20px;
}

.spec-item h3 { 
    font-family: 'Playfair Display', serif; 
    margin-bottom: 10px; 
}

/* Car Showcase Styling */
.sedan-showcase {
    background-color: #f9f9f9;
    padding: 50px 5%;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.car-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.car-image {
    background: radial-gradient(circle, #e0e0e0 0%, #ffffff 70%);
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.car-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.1);
}

.car-info {
    padding: 20px;
    border-top: 1px solid #eee;
}

.model-code {
    display: block;
    color: var(--cat-red);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.car-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.car-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.sedan-banner-bg {
    height: 50vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                      url('images/sedan-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.sedan-banner-bg h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    letter-spacing: 5px;
    margin: 0;
    text-transform: uppercase;
}

.sedan-banner-bg p {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Pickup Hero Specifics */
.pickup-banner-bg {
    height: 50vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), 
                      url('images/pickup-hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.pickup-banner-bg h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 3rem);
    letter-spacing: 8px;
    margin: 10px 0;
}

.series-badge {
    color: #b91d1d;
    font-weight: 800;
    letter-spacing: 4px;
    font-size: 0.9rem;
}

/* Pickup Grid Padding */
.pickup-showcase {
    padding: 50px 5%;
    background-color: #fff;
}

.pickup-showcase .car-image {
    background: radial-gradient(circle, #ececec 0%, #ffffff 70%);
    padding: 20px;
}

/* Truck Hero Section */
.truck-banner-bg {
    height: 50vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), 
                      url('images/truck-hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.truck-banner-bg h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
}

/* Specific Grid Styling for Trucks */
.truck-showcase {
    padding: 50px 5%;
    background-color: #f9f9f9;
}

.truck-showcase .car-card {
    transition: transform 0.4s ease;
    border: 1px solid #eee;
}

.truck-showcase .car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Model Code Badge */
.model-code {
    background: #b91d1d;
    color: white;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 10px;
}

/* Bus Hero Section (B-Series) */
.bus-banner-bg {
    height: 50vh; 
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), 
                      url('images/bus-hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.bus-banner-bg h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin: 0;
}

/* Bus Grid Padding & Sectioning */
.bus-showcase {
    padding: 50px 5%;
    background-color: #f4f4f4;
}

/* About Page Specifics */
.about-bg {
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), 
                url('images/CAT_OFFICE.png');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Team Grid System */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
    margin-top: 40px;
    padding: 0 20px;
}

/* Individual Profile Card */
.profile-card {
    background: #fff;
    width: 100%;
    border-bottom: 4px solid #eee;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.profile-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--cat-red);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.profile-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: #ddd;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}

.profile-card:hover .profile-image img {
    filter: grayscale(0%);
}

.profile-rank {
    display: block;
    color: var(--cat-red);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    padding: 0 20px;
}

.profile-info {
    padding: 20px;
}

.join-card {
    margin: 20px;
}

/* Career Page */
.welcome-text .company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.welcome-text .company-card {
    background: #fff;
    padding: 30px 20px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    text-align: center;
}

/* Form Container */
.form-container { 
    max-width: 90%; 
    margin: 30px auto; 
    background: white; 
    padding: 30px; 
    border-top: 8px solid #b91d1d; 
}

.form-group { 
    margin-bottom: 20px; 
}

.row-flex { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap;
}

.row-flex .form-group { 
    flex: 1; 
    min-width: 250px;
}

label { 
    display: block; 
    font-weight: 600; 
    font-size: 0.8rem; 
    margin-bottom: 8px; 
    text-transform: uppercase; 
    color: #555; 
}

input, select, textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    font-family: 'Open Sans', sans-serif; 
}

.id-display { 
    font-weight: bold; 
    color: #b91d1d; 
    font-family: monospace; 
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-box {
        font-size: 1.2rem;
        padding: 10px 15px;
    }
    
    .bio-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .side-logo {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .quote-block {
        font-size: 1rem;
        padding: 30px 5%;
    }
    
    .page-header {
        height: 120px;
    }
    
    .header-box {
        font-size: 1.5rem;
        padding: 10px 20px;
    }
    
    .product-hero h1 {
        font-size: 2rem;
    }
    
    .product-description {
        padding: 30px 5%;
    }
    
    .lead-text {
        font-size: 0.9rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .car-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .car-image {
        height: 150px;
        padding: 20px 10px;
    }
    
    .profile-card .profile-info {
        padding: 15px;
    }
    
    .profile-rank {
        font-size: 0.7rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .row-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .row-flex .form-group {
        min-width: 100%;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        padding: 30px 5%;
        gap: 30px;
    }
    
    .company-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .welcome-text .company-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 5%;
    }
    
    .hero-box {
        font-size: 1rem;
        padding: 8px 12px;
        letter-spacing: 1px;
    }
    
    .page-header {
        height: 100px;
    }
    
    .header-box {
        font-size: 1.2rem;
        padding: 8px 15px;
    }
    
    .product-hero h1 {
        font-size: 1.5rem;
    }
    
    .sedan-banner-bg h1 {
        font-size: 1.8rem;
    }
    
    .pickup-banner-bg h1 {
        font-size: 1.8rem;
    }
    
    .truck-banner-bg h1 {
        font-size: 1.5rem;
    }
    
    .bus-banner-bg h1 {
        font-size: 1.8rem;
    }
    
    .car-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        margin-bottom: 15px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}
