/**
 * Car Model Page Styles
 * 
 * Styles for car model detail pages with hero section, description, and WYSIWYG content
 * 
 * @package Renault_Dealers_2026_Theme
 */

/* ============================================
   HERO SECTION
   ============================================ */

body.page-template-page-car-model .car-model-hero-section,
.car-model-hero-section {
    position: relative;
    width: 100%;
    background-color: #000000;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any spacing from header */
body.page-template-page-car-model .car-model-hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-template-page-car-model #page.site {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-template-page-car-model #main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-template-page-car-model .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure hero section starts right after header */
body.page-template-page-car-model .car-model-hero-section {
    position: relative;
    top: 0;
    left: 0;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-template-page-car-model .car-model-hero-image,
.car-model-hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

body.page-template-page-car-model .car-model-hero-overlay,
.car-model-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    z-index: 2;
}

.car-model-hero-content {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    max-width: 600px;
    color: #ffffff;
    text-align: left;
}

.car-model-hero-no-image {
    background-color: #000000;
    padding: 3rem 2rem;
    text-align: center;
}

.car-model-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-align: left;
}

.car-model-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    text-transform: lowercase;
    line-height: 1.4;
    text-align: left;
}

.car-model-hero-info {
    margin-bottom: 2rem;
}

.car-model-hero-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    text-align: left;
}

.car-model-hero-legal {
    font-size: 0.875rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
    text-align: left;
}

.car-model-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.car-model-cta {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.car-model-cta-primary {
    background-color: #ffd700;
    color: #000000;
    border: 1px solid #ffd700;
}

.car-model-cta-primary:hover {
    background-color: #ffd700;
    color: #ffffff;
    border-color: #ffd700;
}

.car-model-cta-ghost {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.car-model-cta-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.car-model-main {
    padding: 3rem 0;
    background-color: #ffffff;
}

.car-model-description {
    margin-bottom: 2rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #333333;
}

.car-model-wysiwyg-content {
    margin-top: 2rem;
}

.car-model-wysiwyg-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.car-model-wysiwyg-content h2,
.car-model-wysiwyg-content h3,
.car-model-wysiwyg-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.car-model-wysiwyg-content ul,
.car-model-wysiwyg-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

/* ============================================
   DESKTOP STYLES (min-width: 768px)
   ============================================ */

@media (min-width: 768px) {
    .car-model-hero-section {
        height: 100vh;
        min-height: 100vh;
    }
    
    .car-model-hero-image {
        height: 100vh;
        min-height: 100vh;
        position: relative;
    }
    
    .car-model-hero-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: 1;
    }
    
    /* Hide mobile content on desktop */
    .car-model-hero-mobile-content {
        display: none;
    }
    
    .car-model-hero-overlay {
        padding: 3rem 4rem;
        justify-content: flex-start;
        align-items: center;
    }
    
    .car-model-hero-content {
        max-width: 700px;
        padding: 3rem;
    }
    
    .car-model-hero-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-align: left;
    }
    
    .car-model-hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        font-weight: 400;
        text-align: left;
    }
    
    .car-model-hero-price {
        font-size: 1.25rem;
        font-weight: 700;
        text-align: left;
    }
    
    .car-model-hero-legal {
        font-size: 0.875rem;
        opacity: 0.9;
        line-height: 1.5;
        text-align: left;
    }
    
    .car-model-hero-buttons {
        flex-direction: row;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .car-model-cta {
        padding: 1.25rem 2.5rem;
        font-size: 1.125rem;
        min-width: 200px;
    }
    
    .car-model-main {
        padding: 4rem 0;
    }
    
    .car-model-description {
        font-size: 1.25rem;
        margin-bottom: 3rem;
    }
}

/* ============================================
   MOBILE STYLES (max-width: 767px)
   ============================================ */

@media (max-width: 767px) {
    .car-model-hero-section {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
    }
    
    .car-model-hero-image {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        min-height: auto;
        position: relative;
    }
    
    /* Hide overlay on mobile - content will appear below */
    .car-model-hero-image .car-model-hero-overlay,
    .car-model-hero-overlay {
        display: none !important;
    }
    
    /* Remove any overlay pseudo-elements on mobile */
    .car-model-hero-image::before {
        display: none !important;
    }
    
    /* Mobile content wrapper - appears below image */
    .car-model-hero-mobile-content {
        display: block;
        background-color: #ffffff;
        padding: 2rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .car-model-hero-content {
        max-width: 100%;
        padding: 0;
        width: 100%;
        background-color: transparent;
        text-align: left;
    }
    
    .car-model-hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-align: left;
        color: #000000;
    }
    
    .car-model-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
        font-weight: 400;
        text-align: left;
        color: #000000;
    }
    
    .car-model-hero-info {
        margin-bottom: 1.5rem;
    }
    
    .car-model-hero-price {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
        text-align: left;
        color: #000000;
    }
    
    .car-model-hero-legal {
        font-size: 0.75rem;
        opacity: 0.8;
        line-height: 1.5;
        text-align: left;
        color: #333333;
    }
    
    .car-model-hero-buttons {
        flex-direction: row;
        gap: 0.75rem;
        width: 100%;
        margin-top: 1.5rem;
        flex-wrap: wrap;
    }
    
    .car-model-cta {
        flex: 1;
        min-width: 120px;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    /* Button colors for white background */
    .car-model-cta-primary {
        background-color: #ffd700;
        color: #000000;
        border: 1px solid #ffd700;
    }
    
    .car-model-cta-primary:hover {
        background-color: #ffed4e;
        color: #000000;
        border-color: #ffd700;
    }
    
    .car-model-cta-ghost {
        background-color: transparent;
        color: #000000;
        border: 1px solid #000000;
    }
    
    .car-model-cta-ghost:hover {
        background-color: rgba(0, 0, 0, 0.05);
        color: #000000;
        border-color: #000000;
    }
    
    .car-model-main {
        padding: 2rem 0;
    }
    
    .car-model-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

