/*
Theme Name: Dealer Theme
Theme URI: https://easydealer.ca
Author: EasyDealer
Author URI: https://easydealer.ca
Description: Professional automotive dealership theme
Version: 2.3.0
*/

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================
   TOP BAR WITH LOGO, PHONE, ADDRESS
   ============================================ */
.top-bar {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-branding .site-logo {
    max-height: 70px;
    width: auto;
}

.site-title-text {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.site-title-text a {
    color: #333;
    text-decoration: none;
}

.contact-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item .icon {
    font-size: 20px;
}

.contact-inline {
    display: inline;
    font-size: 15px;
    color: #333 !important;
}

.contact-inline .label {
    font-size: 15px;
    color: #666 !important;
    font-weight: 600;
    margin-right: 5px;
}

.contact-inline a {
    color: #333 !important;
    text-decoration: none;
    font-weight: 600;
}

.contact-inline a:hover {
    color: #2563eb !important;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #666;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    color: #2563eb;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.site-navigation {
    background: #2563eb;
    padding: 0;
    position: relative;
}

.site-navigation .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    position: absolute;
    right: 20px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 0;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 16px 30px;
    color: white;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.nav-menu a:hover,
.nav-menu li.current-menu-item a {
    background: rgba(0,0,0,0.2);
}

/* Mobile & Tablet Navigation */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 50%;
        transform: translateX(50%);
        top: 50%;
        margin-top: -16px;
    }
    
    .site-navigation .container {
        justify-content: center;
        padding: 20px;
        position: relative;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #2563eb;
        flex-direction: column;
        padding-top: 80px;
        gap: 0;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        padding: 18px 30px;
        font-size: 16px;
    }
    
    /* Mobile card stacking */
    .dealer-inventory-grid {
        grid-template-columns: 1fr !important;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr !important;
    }
    
    .service-grid {
        grid-template-columns: 1fr !important;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet breakpoint for Latest Arrivals - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .featured-vehicles-section .dealer-inventory-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* Ensure top bar content stacks properly */
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .top-bar-content {
        flex-direction: column;
        align-items: center;
    }
    
    .site-branding {
        margin-bottom: 15px;
    }
    
    .site-branding .site-logo {
        margin: 0 auto;
        display: block;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 10px;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.home-hero {
    position: relative;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    background-size: cover;
    background-position: center;
    padding: 140px 20px;
    margin: 0;
    text-align: center;
}

.home-hero.has-image {
    background-color: #1e40af;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 35px;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.button {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: #2563eb !important;
    text-decoration: none !important;
    border-radius: 0;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.button-large {
    padding: 18px 45px;
    font-size: 18px;
    background: #2563eb;
    color: white !important;
}

.button-large:hover {
    background: #1e40af;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.site-content { padding: 0; }

#content {
    background-color: #ffffff;
    min-height: 100vh;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    display: block;
    background-color: #f8f9fa;
    padding: 60px 0;
}

.about-section .container {
    display: block;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.about-section .section-heading {
    display: block;
    font-size: 38px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
}

.about-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    text-align: center;
}

.about-content p {
    margin-bottom: 16px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    font-weight: 700;
    color: #2563eb;
}

.about-content ul,
.about-content ol {
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
}

.about-content li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .about-section .section-heading {
        font-size: 32px;
    }
    
    .about-content {
        font-size: 15px;
    }
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

/* Latest Arrivals Section */
.featured-vehicles-section {
    display: block;
    background-color: #ffffff;
    padding: 60px 0;
}

.featured-vehicles-section .container {
    display: block;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.featured-vehicles-section .section-header {
    display: block;
    margin-bottom: 50px;
}

.featured-vehicles-section .section-heading {
    display: block;
    font-size: 38px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

.featured-vehicles-section .vehicles-grid-wrapper {
    display: block;
    margin-bottom: 50px;
}

.featured-vehicles-section .dealer-inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-vehicles-section .section-footer {
    display: block;
    text-align: center;
}

.featured-vehicles-section .section-footer .button {
    display: inline-block;
    padding: 14px 32px;
    background-color: #2563eb;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}

.featured-vehicles-section .section-footer .button:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

/* Why Choose Us Section */
.why-choose-section {
    display: block;
    background-color: #f8f9fa;
    padding: 60px 0;
}

.why-choose-section .container {
    display: block;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.why-choose-section .section-heading {
    display: block;
    font-size: 38px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-top: 0;
    margin-bottom: 50px;
}

.section-subtitle {
    color: #666666;
    font-size: 18px;
    margin-bottom: 50px;
    text-align: center;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    display: block;
    background-color: #ffffff;
    padding: 60px 0;
    margin-bottom: 0;
}

.testimonials-section .container {
    display: block;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.testimonials-section .section-heading {
    display: block;
    font-size: 38px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-top: 0;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: #f8f9fa;
    border-radius: 0;
    padding: 35px 30px;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-card .stars {
    color: #fbbf24;
    font-size: 24px;
    margin-bottom: 20px;
}

.testimonial-text {
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    color: #666666;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .testimonials-section .section-heading {
        font-size: 32px;
    }
}

/* ============================================
   SERVICE DEPARTMENT SECTION
   ============================================ */
.service-section {
    display: block;
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-bottom: 0;
}

.service-section .container {
    display: block;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.service-section .section-heading {
    display: block;
    font-size: 38px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
}

.service-section .section-description {
    text-align: center;
    font-size: 18px;
    color: #666666;
    max-width: 700px;
    margin: 0 auto 45px auto;
    line-height: 1.8;
    padding: 0 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 0;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e5e5e5;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #333333;
}

.service-card p {
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.service-section .section-footer {
    display: block;
    text-align: center;
    margin-top: 50px;
}

.service-section .section-footer .button {
    display: inline-block;
    padding: 14px 32px;
    background-color: #2563eb;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}

.service-section .section-footer .button:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-section .section-heading {
        font-size: 32px;
    }
}

/* ============================================
   VEHICLE CARDS
   ============================================ */
.vehicle-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.vehicle-card-image {
    position: relative;
    aspect-ratio: 16/11;
    background: #f5f5f5;
    overflow: hidden;
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc2626;
    color: white;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.vehicle-card-content {
    padding: 24px;
}

.vehicle-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #333;
}

.vehicle-card-title a {
    color: #333;
    text-decoration: none;
}

.vehicle-card-title a:hover {
    color: #2563eb;
}

.vehicle-card-subtitle {
    color: #666;
    margin-bottom: 12px;
    font-size: 13px;
}

.vehicle-card-price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.vehicle-card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.5;
}

.vehicle-card-specs div {
    color: #666;
}

.vehicle-card-specs strong {
    color: #333;
    font-weight: 600;
}

.vehicle-card-link {
    display: block;
    text-align: center;
    padding: 12px;
    background: #2563eb;
    color: white !important;
    text-decoration: none !important;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.vehicle-card-link:hover {
    background: #1e40af;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 35px 25px;
    background: white;
    border-radius: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: #2563eb;
    color: white;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #333;
}

.benefit-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dealer-inventory-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: #2563eb;
    color: #ffffff;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column {
    display: block;
}

.footer-heading {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-column p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.footer-map {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-map iframe {
    display: block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-icon {
    margin-right: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-hours {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.footer-social a:hover {
    background-color: #ffffff;
    color: #2563eb;
    transform: translateY(-2px);
}

.footer-bottom {
    background-color: #1e40af;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-heading {
        font-size: 16px;
    }
}
