/*
Theme Name: 3PM - Leap Motor Template
Theme URI: https://3pmauto.ai/
Author: 3 Phase Marketing
Author URI: https://3pmauto.ai/
Description: Build Date - 10-2026
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, translation-ready, wide-blocks
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.4.1
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: 3pm-theme-leapmotor
*/

/* ===========================
Banners
=========================== */

.banner-text p {
  text-shadow: 0px 1px 2px rgb(0 0 0 / 60%);
}

/* ===========================
Embla Slider
=========================== */

/* -- Embla: Dots -- */

.embla .embla__dot {
  background-color: rgb(221 221 221 / 70%);
}

.embla .embla__dot:hover:not(.embla__dot--selected) {
  background-color: rgb(221 221 221 / 100%);
}

.embla .embla__dot--selected {
  background-color: var(--wp--preset--color--primary);
}

/* -- Embla: Arrows -- */

.embla .embla__button {
  background-color: rgb(255 255 255 / 30%);
  color: #000000;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.embla .embla__button:hover {
  background-color: #fff;
}

/* banner full height -Pixel value is minus the header height */
@media (min-width: 1440px) {
  .banner-full-height .embla .embla__slide img,
  .banner-full-height .embla .embla__slide video,
  .model-banner-full-height img,
  .model-banner-full-height video {
    height: calc(100vh - 247px);
    object-fit: cover;
  }
}

/* ===========================
Quicklinks
=========================== */

/* .q-link .wp-block-group .wp-block-group p:first-child {
  font-size: clamp(16px, 2.222222222vw, 32px);
} */

/* ===========================
Forms - Fluet form Styling
=========================== */

.ff-btn-submit {
  background: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--white);
}

.ff-btn:hover {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}

/* ===========================
Buttons - Hover States
=========================== */

/* -- Buttons: Primary -- */
.wp-element-button:hover,
.is-style-primary .wp-element-button:hover {
  background-color: var(--wp--preset--color--secondary);
  border-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--white);
  text-decoration: none;
}

/* -- Buttons: Secondary -- */
.is-style-secondary .wp-element-button:hover,
.wp-block-navigation__responsive-container
  .wp-block-navigation__responsive-container-content
  .btn-solid
  .wp-block-navigation-item__content:hover {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--neutral);
  text-decoration: none;
}

/* -- Buttons: Outline -- */
.is-style-outline-primary .wp-element-button:hover,
.is-style-outline-secondary .wp-element-button:hover,
.wp-block-navigation__responsive-container
  .wp-block-navigation__responsive-container-content
  .btn-outline
  .wp-block-navigation-item__content:hover {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--neutral);
  text-decoration: none;
}

/* -- Buttons: Third -- */
.is-style-third .wp-element-button {
  background-color: var(--wp--preset--color--third);
  border-color: var(--wp--preset--color--third);
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

/* -- Buttons: Third Hover -- */
.is-style-third .wp-element-button:hover {
  background-color: var(--wp--preset--color--secondary);
  border-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--white);
  text-decoration: none;
}

/* -- Main Navigation -- */
.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
  color: var(--wp--preset--color--base);
}

.wp-block-navigation a.wp-block-navigation-item__content:hover,
.wp-block-navigation-item.open-on-click
  .wp-block-navigation-submenu__toggle:hover {
  color: var(--wp--preset--color--secondary);
}

/* Footer Hover States */
footer .wp-block-navigation a.wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--neutral);
}

/* ===========================
Mobile Nav
=========================== */

/* Colour for Ham Menu & X Button */

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
  /* border: 1px solid #5c5c5c; Border Colour */
}

.wp-block-navigation__responsive-container-open svg,
.has-modal-open .wp-block-navigation__responsive-container-open:before {
  color: var(--wp--preset--color--white); /* Ham Menu Colour */
}

@media (max-width: 1199px) {
  .wp-block-navigation__responsive-container {
    top: 66px; /* Adjust this value based on your header height */
  }
}

@media (max-width: 600px) {
  .wp-block-site-logo img {
    width: 120px;
  }
}

/* ===========================
Filters - Showroom Example
=========================== */

.filter-showroom .wp-block-custom-block-filter-trigger {
  /* border-bottom: 2px solid var(--wp--preset--color--neutral); */
  border-radius: 0px;
}

.filter-headings.filter-showroom .wp-block-custom-block-filter-trigger:hover {
  border-color: #64a028;
  border-radius: 0px;
}

.filter-headings.filter-showroom
  .wp-block-custom-block-filter-trigger.is-active {
  /* border-color: var(--wp--preset--color--white); */
  color: var(--wp--preset--color--white);
  background: #64a028;
}

/* ===========================
Accordion
=========================== */
.is-style-accordion-line {
  border-color: #000;
}

.is-style-accordion-style {
  background-color: var(--wp--preset--color--neutral);
  border: 1px solid #e7e7e7;
}

.is-style-accordion-style:hover,
.is-style-accordion-style.is-open {
  background-color: #fff;
  border-color: #000000;
}

/* ===========================
Footer
=========================== */

footer .wp-block-social-links .wp-social-link a:hover {
  color: var(--wp--preset--color--primary);
}

/* ===========================
Table Responsive
=========================== */
.wp-block-table table th,
.wp-block-table table td {
  border: 1px solid #ddd;
}

/* ===========================
Custom - Page Styles
=========================== */

.model-nav.show {
  background: #fff;
}

/* ===========================
Model - Compare Offers
=========================== */

.model-variant-offers a {
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--black);
}

.model-variant-offers:hover a {
  background-color: var(--wp--preset--color--black);
  color: var(--wp--preset--color--white);
}

/* ===========================
AI Search Button
=========================== */

.btn-ai {
  background: #64a028 !important;
  transition: 0.4s ease-in-out;
  cursor: pointer;
}

/* .top-header .btn-ai {
  background: none;
} */

/* .top-header .btn-ai:hover p {
  text-decoration: underline;
} */

.btn-ai:hover {
  background: var(--wp--preset--color--secondary) !important;
}

/* ===========================
Mini Search - Stacked
=========================== */

@media (max-width: 1024px) {
  .mini-input {
    border: 1px solid var(--wp--preset--color--grey);
  }
}

@media (min-width: 1025px) {
  .mini-search {
    border: 1px solid var(--wp--preset--color--grey);
  }
}

/* Banner Video resize */

.banner .wp-block-video video {
  --ratio: 768 / 600;
  --ratio: 2000/600;
  aspect-ratio: var(--ratio, var(--mobile-ratio)) !important;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Slide Height */

.slide-height video,
.slide-height .is-style-img-object-fit {
  width: 100%;
  height: 100% !important;
  min-height: 400px;
  object-fit: cover;
  object-position: center;
}

/* Mobile ratio override */
@media (max-width: 767px) {
  .banner .wp-block-video video {
    --ratio: 768 / 600;
  }
}

/* Internal pages Slider height on Mobile */
@media (max-width: 1024px) {
  .slide-height .is-style-img-object-fit {
    min-height: 400px;
  }

  /* 1. Force the video container and block video to match the slide height structure */
  .slide-height .wp-block-video,
  .slide-height .wp-block-video video {
    height: 100% !important;
    min-height: 400px;
  }

  /* 2. Apply object-fit cover and matching styling to the video element */
  .slide-height video {
    width: 100%;
    height: 100% !important;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
  }
}
