/* Color Scheme Configuration
   Primary Red: #ec2027
   Secondary Green: #77b143
   Neutral Dark: #414042
*/
:root {
    --brand-red: #ec2027;
    --brand-green: #77b143;
    --brand-dark: #414042;
    --bg-light: #f9f9f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    color: var(--brand-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

/* --- STICKY HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-placeholder {
    width: 55px;
    height: 55px;
    background-color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid var(--brand-green);
}

.logo-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-green);
}

.company-title {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.company-title h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: 1px;
}

.company-title span {
    font-size: 0.8rem;
    color: var(--brand-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid var(--brand-dark);
}

nav a:hover {
    color: var(--brand-red);
    border-color: var(--brand-red);
    background-color: rgba(236, 32, 39, 0.05);
    box-shadow: 0.2px 0.2px 6px 1px var(--brand-red);
}

/* --- SECTIONS COMMON STYLING --- */
section {
    padding: 100px 4% 60px 4%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--brand-dark);
    margin-bottom: 10px;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--brand-red);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* --- ABOUT SECTION --- */
#about {
    text-align: center;
    background-color: var(--bg-light);
    max-width: 100%;
    padding-top: 140px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-left: 5px solid var(--brand-red);
}

.about-content p {
    font-size: 1.2rem;
    color: var(--brand-dark);
    font-weight: 400;
}

/* --- OUR CARS SECTION --- */
.qualities-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.quality-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 20px;
    width: 220px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quality-card i {
    font-size: 2.5rem;
    color: var(--brand-green);
    margin-bottom: 15px;
}

.quality-card h4 {
    font-size: 1.1rem;
    color: var(--brand-dark);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Slightly increased for better mobile balance */
    gap: 25px;
}

.car-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.car-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-bottom: 1px solid #eee;
}

.car-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.car-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--brand-dark);
}

.btn-price {
    background-color: var(--brand-red);
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-price:hover {
    background-color: #c9161c;
}

.price-display-box {
    margin-top: 15px;
    background: #fff5f5;
    border: 1px dashed var(--brand-red);
    padding: 10px;
    border-radius: 4px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.price-range-text {
    color: var(--brand-red);
    font-weight: 700;
    font-size: 1.05rem;
}

.price-subtext {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}

/* --- RATES SECTION WITH CALCULATORS --- */
#rates {
    background-color: var(--bg-light);
    max-width: 100%;
}

.rates-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.calculator-card h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--brand-dark);
    border-left: 4px solid var(--brand-green);
    padding-left: 15px;
}

.grid-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.input-group select, .input-group input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

/* New layout lock rule for the locked Vehicle field */
.input-group select.locked-display {
    background-color: #eef2f7;      /* Clean background tint to match your text fields */
    color: var(--brand-dark);       /* Keeps text crisp and perfectly readable */
    border: 1px solid #cbd5e1;
    pointer-events: none;           /* Completely blocks dropdown clicks & hover changes */
    cursor: not-allowed;            /* Visual indicator that it's unchangeable */
    appearance: none;               /* Removes default native dropdown arrow structure */
    -webkit-appearance: none;
    -moz-appearance: none;
}

.input-group select:focus {
    border-color: var(--brand-green);
}

.input-group input[readonly] {
    background-color: #eef2f7;
    font-weight: 700;
    color: var(--brand-red);
    border: 1px solid #cbd5e1;
}

.rate-note {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #b45309;
    margin-top: 20px;
}

/* --- PARTNERS SECTION --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.partner-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.partner-card:hover {
    transform: translateY(-3px);
}

.partner-logo-placeholder {
    height: 70px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
    border-radius: 4px;
    margin-bottom: 12px;
}

.partner-card p {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-dark);
}

.partner-logo {
    width: 100%;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%);
}

/* --- CONTACT US SECTION --- */
#contact {
    background: var(--brand-dark);
    color: white;
    max-width: 100%;
    text-align: center;
}

#contact .section-title {
    color: white;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    cursor: pointer;
    border: none;
}

.btn-call {
    background-color: var(--brand-green);
    color: white;
}

.btn-email {
    background-color: var(--brand-red);
    color: white;
}

.btn-whatsapp {
    background-color: transparent;
    border: 1px solid var(--brand-green);
    color: var(--brand-green); /* Cleaned up from literal 'green' */
}

.socials-container {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.socials-container h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-social:hover {
    background: rgba(255,255,255,0.25);
}

.btn-action:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* --- FOOTER --- */
footer {
    background: #2d2d30;
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    border-top: 3px solid var(--brand-red);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE DESIGN BREAKPOINTS --- */
@media (max-width: 850px) {
    header {
        flex-direction: column;
        gap: 15px;
        position: relative; /* Header un-sticks to maximize vertical layout on small screen heights */
    }
    
    .company-title h1,
    .company-title span {
        text-align: center;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    nav a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .qualities-container {
        gap: 15px;
    }
    
    .quality-card {
        width: 100%;
        max-width: 280px;
    }

    .grid-inputs {
        grid-template-columns: 1fr;
    }
    
    /* Consolidated duplicate rules into a single clean block */
    section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    #about {
        padding-top: 65px;
    }
}
