/*
 Theme Name:     Astra Child
 Description:    Citywide Auto Sales Master Theme - Harley/Toyota Hybrid
 Template:       astra
 Version:        2.3.2
*/

/* --- 1. THE NUCLEAR RESET & GAP KILLER --- */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
    border-top: none !important;
}

html { margin-top: 0 !important; }
* { box-sizing: border-box; }

/* Hide Astra's Default Header to use your Custom CW-Header */
#masthead,
.site-header,
.ast-header-break-point .main-header-bar,
.header-main {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

.ast-container,
.site-content,
.site-main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

/* --- 2. BRAND VARIABLES --- */
:root {
    --brand-blue: #0082ca;
    --brand-black: #000000;
}

/* --- 3. CUSTOM HEADER STYLES --- */
.cw-header {
    width: 100%;
    position: relative;
    z-index: 9999;
    font-family: 'Impact', 'Arial Narrow Bold', sans-serif;
}

.top-utility-bar {
    background: var(--brand-blue);
    color: #ffffff;
    padding: 10px 5%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-utility-bar .cw-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 15px;
}

.utility-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.utility-left span { font-size: 18px !important; font-weight: 700 !important; color: #fff; }

.map-hours-link {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 15px;
}

.utility-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.social-icon { font-size: 16px; color: #fff; transition: color 0.3s; text-decoration: none; }
.social-icon:hover { color: #000; }

.header-search {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 4px 8px;
    max-width: 280px;
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    outline: none;
    flex: 1;
    padding: 6px 8px;
}

.search-input::placeholder { color: #000000 !important; opacity: 1 !important; font-style: italic; font-weight: 500; }
.search-btn { background: transparent; border: none; color: #fff; font-weight: bold; cursor: pointer; }

.main-nav-bar {
    background: var(--brand-black);
    padding: 15px 5%;
    border-bottom: 4px solid var(--brand-blue);
}

.main-nav-bar .cw-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-wrapper img { max-height: 140px; transition: transform 0.3s; width: auto; }
.logo-wrapper img:hover { transform: scale(1.05); }

.main-menu ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 30px; }
.main-menu a { color: #ffffff; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: 1px; }
.main-menu a:hover { color: var(--brand-blue); }

.nav-phone { color: #fff; font-size: 1.6rem; font-weight: 900; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-phone i { color: var(--brand-blue); }

/* --- 4. HERO SLIDER --- */
.citywide-slider { position: relative; height: 75vh; background: #000; width: 100%; }
.wl-slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; justify-content: center; background-size: cover !important; background-position: center !important; }
.wl-slide.active { opacity: 1; z-index: 2; }
.slide-content { text-align: center; color: #fff; z-index: 10; }
.slide-title { font-size: clamp(3rem, 8vw, 6rem); font-weight: 950; font-style: italic; text-transform: uppercase; line-height: 0.9; }
.slide-btn { display: inline-block; margin-top: 30px; background: var(--brand-blue); color: #fff; padding: 18px 45px; text-decoration: none; font-weight: 900; text-transform: uppercase; border-radius: 4px; }

/* --- 5. ACTION GRID --- */
.action-grid { display: flex; flex-wrap: wrap; width: 100%; background: #000; }
.wl-box { flex: 1; min-width: 33.333%; height: 450px; display: flex; align-items: flex-end; padding: 40px; text-decoration: none; background-size: cover !important; transition: 0.4s; box-sizing: border-box; }
.box-inner h3 { color: #fff; font-size: 32px; text-transform: uppercase; font-weight: 900; margin: 0; }

/* --- 6. FOOTER STYLES --- */
.site-footer { background-color: #000000; color: #ffffff; padding: 80px 5% 20px; border-top: 4px solid var(--brand-blue); font-family: 'Impact', sans-serif; }
.footer-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-col h3 { color: var(--brand-blue); text-transform: uppercase; font-size: 22px; margin-bottom: 25px; font-weight: 900; }
.footer-col p { color: #bbb; font-family: Arial, sans-serif; line-height: 1.6; font-size: 15px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #fff; text-decoration: none; font-family: Arial, sans-serif; font-weight: 600; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--brand-blue); }
.footer-col img { max-width: 250px; height: auto; transition: opacity 0.3s ease; }
.footer-bottom { margin-top: 60px; padding-top: 20px; border-top: 1px solid #222; text-align: center; }
.footer-bottom p { font-size: 13px; color: #666; text-transform: uppercase; }

/* --- 7. INVENTORY PAGE --- */
.inventory-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    max-width: 1500px;
    margin: 40px auto;
    padding: 0 3%;
}

.inventory-sidebar { background: #f8f8f8; padding: 25px; border-radius: 8px; height: fit-content; }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.filter-header h3 { margin: 0; font-size: 18px; text-transform: uppercase; color: #000; }
.filter-group { margin-bottom: 25px; border-bottom: 1px solid #ddd; padding-bottom: 15px; }
.filter-group label { display: block; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; font-size: 13px; }
.filter-group select { width: 100%; padding: 12px; border: 1px solid #ccc; font-size: 16px; background: #fff; }

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vehicle-card { background: #fff; border: 1px solid #eee; transition: 0.3s; display: flex; flex-direction: column; }
.vehicle-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-color: var(--brand-blue); }
.vehicle-image { height: 200px; background-size: cover; background-position: center; position: relative; }
.v-badge { position: absolute; top: 10px; left: 10px; background: #28a745; color: #fff; padding: 4px 10px; font-size: 11px; font-weight: 900; text-transform: uppercase; }

.vehicle-info { padding: 15px; flex-grow: 1; }
.v-title { font-size: 18px; font-weight: 900; margin: 0 0 5px; color: #000; line-height: 1.2; }
.v-meta { color: #666; font-size: 12px; margin-bottom: 15px; }
.v-price-row { display: flex; justify-content: space-between; align-items: center; background: #f1f1f1; padding: 10px; margin-bottom: 15px; border-radius: 4px; }
.v-price { font-size: 22px; font-weight: 900; color: var(--brand-blue); }

.v-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-actions .btn-main { background: #000; color: #fff; text-align: center; padding: 10px 5px; text-decoration: none; font-weight: 700; font-size: 12px; }
.v-actions .btn-outline { border: 2px solid #000; color: #000; text-align: center; padding: 10px 5px; text-decoration: none; font-weight: 700; font-size: 12px; }

/* --- 8. GLOBAL TABLET & MOBILE FIXES (REWRITTEN) --- */
@media (max-width: 1100px) {
    /* Stack Header Elements */
    .main-nav-bar .cw-container {
        flex-direction: column !important;
        gap: 20px;
        padding: 15px 0;
    }

    /* Fix Logo Overlap */
    .logo-wrapper {
        display: block !important;
        margin: 0 auto !important;
        text-align: center !important;
        width: 100% !important;
    }

    .logo-wrapper img {
        max-height: 100px !important;
        margin: 0 auto;
    }

    /* Make Menu Visible and Wrapped */
    .main-menu {
        display: block !important;
        width: 100%;
    }

    .main-menu ul {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 15px !important;
        padding: 0;
    }

    .main-menu a {
        font-size: 13px !important;
        padding: 5px;
    }

    .nav-phone {
        font-size: 1.3rem !important;
        justify-content: center;
    }

    .top-utility-bar .cw-container {
        flex-direction: column !important;
        text-align: center;
        gap: 10px;
    }

    .utility-left, .utility-right {
        justify-content: center !important;
        width: 100%;
    }

    .header-search { display: none; } /* Hide search to save space on mobile */

    /* Grid Resets */
    .inventory-wrapper { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .contact-grid, .trade-main-grid, .pre-app-content { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .slide-title { font-size: 42px !important; }
    .hero-title { font-size: 36px !important; }
    
    .main-menu ul { gap: 8px !important; }
    .main-menu a { font-size: 11px !important; }
    
    .inventory-grid { grid-template-columns: 1fr; }

    /* Ensure Dropdowns are readable */
    .filter-group select, .form-group select {
        height: 50px !important;
        padding: 10px !important;
        font-size: 16px !important;
        appearance: auto !important; /* Forces native mobile dropdown styling */
    }
}

/* --- 9. PRE-APPROVAL PAGE --- */
.pre-app-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://cwf.cew.mybluehost.me/website_74bbed38/wp-content/uploads/2026/02/finance-bg.jpg');
    background-size: cover; background-position: center; padding: 100px 5%; text-align: center; color: #fff;
}
.pre-app-hero h1 { font-size: 50px; text-transform: uppercase; font-weight: 950; margin-bottom: 10px; font-style: italic; }
.pre-app-container { max-width: 1200px; margin: -50px auto 80px; padding: 0 5%; position: relative; z-index: 10; }
.trust-bar { background: var(--brand-blue); display: flex; justify-content: space-around; padding: 20px; border-radius: 8px; margin-bottom: 40px; }
.app-form-card { background: #fff; padding: 40px; border-radius: 8px; border-top: 5px solid var(--brand-blue); }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; background: #f9f9f9; }

/* --- 10. TRADE-IN PAGE --- */
.trade-hero { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)); padding: 80px 5%; text-align: center; color: #fff; }
.trade-form-card { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }

/* --- 11. CONTACT PAGE FIXES --- */
.contact-hero { padding: 80px 5%; text-align: center; color: #fff; }
.contact-form-card { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

/* Custom Dropdown Styling for Contact Form */
.cw-contact-form .form-group select {
    appearance: auto; /* Changed from 'none' to 'auto' to ensure mobile text is readable */
    height: 55px !important;
    font-size: 18px !important;
    font-weight: 600;
}

/* --- 12. TESTIMONIALS --- */
.hero-title { font-size: 64px !important; color: var(--brand-blue) !important; text-transform: uppercase; font-weight: 950; font-style: italic; }
.testimonials-grid { column-count: 3; column-gap: 30px; max-width: 1300px; margin: -60px auto 60px; padding: 0 20px; }
.review-card { background: #fff; padding: 35px; border-radius: 12px; border-bottom: 5px solid var(--brand-blue); }

@media (max-width: 1000px) { .testimonials-grid { column-count: 2; } }
@media (max-width: 650px) { .testimonials-grid { column-count: 1; } }