/*
Theme Name: Markhz Motors
Theme URI: http://localhost/markhzmotors
Author: Jason Manning
Author URI: http://localhost
Description: Custom theme for Markhz Motors
Version: 1.0
*/


/* ===== RESET ===== */

html, body {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: #111;
}

html, body {
    height: 100%;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.site-header .container {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo {
    font-weight: 700;
    font-size: 20px;
    color: #0a1f44;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

/* ===== NAVIGATION ===== */

.site-header nav {
    justify-self: center;
}

.site-header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.site-header ul li {
    position: relative;
}

.site-header ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    padding: 10px 0;
    display: none;
    flex-direction: column;
    z-index: 999;
}

.site-header ul ul li {
    width: 100%;
}

.site-header ul ul a {
    padding: 12px 20px;
    display: block;
    font-size: 16px;
    color: #000;
}

.site-header ul ul a:hover {
    background: #7a7a7a;
    color: #fff;
}

.site-header ul li:hover > ul {
    display: flex;
}


.site-header li {
    margin: 0;
}

.site-header a {
    text-decoration: none;
    color: #0a1f44;
    font-weight: 500;
    font-size: 18px;
}

.site-header a:hover {
    color: #7a7a7a;
}

.site-header li.menu-item-has-children > a::after {
    content: " ▼";
    font-size: 12px;
}

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

.page-title {
    text-align: center;
}

/* ===== HOME PAGE ===== */

#discount-percent {
    justify-self: end;
}


/* ===== SEARCH SECTION ===== */

#search-form form select {
    width: 100%;
    padding: 14px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
}

#search-form form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 20px;
}

#search-form form #search-button {
    background-color: #FBB040;
    color: #000;
    font-size: 20px;
    font-weight: 800;
}



/* ===== TESTIMONIALS SECTION ===== */

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 30px;
}

.testimonial-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    color: #425466;
}

.star-rating {
    display: flex;
    gap: 3px;
    font-size: 18px;
    line-height: 1;
}

.star {
    color: #ddd;
}

/* Full star */
.star.full {
    color: #f5b400;
}

/* Half star trick */
.star.half {
    position: relative;
    color: #ddd;
}

.star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #f5b400;
}

/* Empty star */
.star.empty {
    color: #ddd;
}


/* ===== STOCK PAGE/SECTION ===== */

#stock .elementor-shortcode {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 20px;
}

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

.stock-card {
    background-color: #08266E;
    color: #fff;
    padding-bottom: 20px;
}

.stock-card > a {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* change to 16 / 9 if you want wider */
    overflow: hidden;
}

.stock-card img {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    display: block;
}

.stock-card h3 {
    font-size: 20px;
    color: #fff;
    margin: 12px 0 0 20px;
}

.stock-card a {
    text-decoration: none;
}

.car-meta {
    max-height: 200px;
    padding: 20px;
}

.car-meta .price {
    display: block;
    font-weight: 700;
    font-size: 16px;
}

.car-meta .finance {
    font-size: 20px;
    font-weight: bold;
}

.car-meta .mileage {
    display: block;
    font-size: 12px;
}

.car-description {
    font-size: 16px;
    margin: 10px 0;
    line-height: 1.4;
}

.book-now {
    margin-top: 10px;
    padding: 10px 18px;
    background: #FFC401;
    color: #0E0B0A;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    float: right;
}

.book-now:hover {
    background: #d99c00;
}

.no-result {
    font-size: 20px;
    font-weight: bold;
}

/* ===== STOCK PAGE  ===== */

.page-id-77 #search-form {
    padding: 20px 20px;
    background-color: #08266E;
}

#stock-page-stock .elementor-element {
    padding: 0;
}

/* ===== TESTIMONIAL PAGE  ===== */


/* ===== ABOUT PAGE  ===== */

.service-box {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

#part-exchange-form form {
    padding: 32px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    justify-self: center;
}

#part-exchange-form label {
    color: #7a7a7a;
    font-weight: bold;
    display: inline-block;
}

#part-exchange-form input {
    border: none;
    border-bottom: solid 1px #7a7a7a;
    border-left: solid 1px #7a7a7a;
    height: 40px;
    width: 100%;
    margin-bottom: 25px;
    padding-left: 10px;
}

#part-exchange-form input[type="radio"],
#part-exchange-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

#part-exchange-form .wpcf7-radio {
    margin-bottom: 10px;
    display: inline-block;
}

#part-exchange-form span.wpcf7-list-item-label {
    color: #7a7a7a;
    position: relative;
    top: -4px;
}

#part-exchange-form span.first {
    margin-left: 0;
}

.highlight {
    color: #ff2600;
    font-weight: bold;
}

.small {
    color: #7a7a7a;
    font-size: 13px;
    margin-bottom: 10px;
    display: inline-block;
}

.spacer  {
    display: inline-block;
    width: 5px;
}

#part-exchange-form input[type="submit"] {
    margin-top: 30px;
    border: solid 1px #000;
    width: 300px;
    height: 50px;
    background-color: #08266E;
    color: #fff;
    font-weight: bold;
}


/* ===== CONTACT PAGE  ===== */


#contact-form label {
    color: #fff;
}

#contact-form label span {
    width: 100%;
    display: inline-block;
}

#contact-form label span.highlight {
    display: inline;
}

#contact-form label span input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #fff;
    height: 40px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #fff;
}

#contact-form select {
    height: 40px;
    width: 250px;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #000;
    color: #fff;
    padding-left: 10px;
    font-weight: bold;
    border: solid 1px #fff;
    -webkit-appearance: none; 
    -moz-appearance: none;  
    appearance: none;
    padding-right: 30px; 
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 35px;
}

#contact-form select::-ms-expand {
    display: none;
}

#contact-form label span textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border: 1px solid #fff;
    height: 150px;
    margin-top: 25px;
    margin-bottom: 10px;
    padding: 10px;
    color: #fff;
}

#contact-form input.wpcf7-submit {
    width: 165px;
    height: 40px;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

#contact-form p:has(.wpcf7-submit),
#part-exchange-form p:has(.wpcf7-submit) {
    text-align: center;
}

#contact-form .wpcf7 form.failed .wpcf7-response-output, #contact-form .wpcf7 form.aborted .wpcf7-response-output {
    border-color: #dc3232;
    color: #fff;
}

#contact-info a {
    color: #7A7A7A;
    font-weight: bold;
}

#contact-info a.hover {
    text-decoration: underline;
}

.day {
    color: #7A7A7A;
    margin-bottom: 10px;
}

.day-name {
    color: #000;
    font-weight: bold;
}

.opening-hours {
  max-width: 420px;
}

.opening-hours .day {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.opening-hours .day span {
  font-weight: 500;
}

/* TODAY HIGHLIGHT */
.opening-hours .day.today {
  background: #08266E;
  color: #fff;
  border-radius: 6px;
}

.opening-hours .day.today .day-name {
    color: #fff;
}


/* ===== FOOTER ===== */


.site-footer {
    background: #0b2a63;
    background-image: url("assets/page-head.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    padding-top: 50px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}


.footer-container {
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo img {
    max-width: 410px;
    margin-bottom: 10px;
}

.footer-website {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.footer-socials a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 600;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

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

.footer-payments {
    text-align: right;
}

.footer-payments img {
    height: 38px;
    width: 52px;
    margin-left: 8px;
    background: #fff;
    border-radius: 4px;
}

/* BOTTOM */
.footer-bottom {
    margin-top: auto;
    padding: 15px 20px;
    text-align: center;
    font-size: 13px;
    background: rgba(0,0,0,0.15);
}



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

     .testimonial-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 20px;
    }
}

@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-menu {
        flex-direction: column;
        gap: 15px;
    }

    .footer-payments {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 10px;
        padding: 15px 20px;
        text-align: center;
    }

    .site-header nav {
        justify-self: center;
    }

    .site-header ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .site-header a {
        font-size: 16px;
    }

    h1 {
        font-size: 26px !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 20px !important;
    }

    .elementor-button {
        padding: 12px 20px;
        font-size: 14px;
    }

     #search-form form {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    #search-form form select,
    #search-form form #search-button {
        font-size: 16px;
        padding: 12px;
    }

}

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

    .stock-card h3 {
        font-size: 18px;
        margin-left: 15px;
    }

    .car-description {
        font-size: 14px;
    }

    .book-now {
        float: none;
        display: block;
        text-align: center;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

}