/*
Theme Name: 3PM - Mazda Theme
Theme URI: https://3pmauto.ai/
Author: 3 Phase Marketing
Author URI: https://3pmauto.ai/
Description: Build Date - 04-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: 7.0
Requires PHP: 8.3
Version: 1.3.4
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: 3pm-theme-mazda
*/

/* ===========================
Banners
=========================== */

.banner-text p {
  text-shadow: 0px 1px 2px rgb(0 0 0 / 60%);
}

/* ===========================
Banners - API Driven
=========================== */

.banner-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--wp--preset--spacing--padding-sixteen-forty-eight);
  padding-right: var(--wp--preset--spacing--padding-sixteen-twenty-four);
  padding-bottom: 58px;
  padding-left: var(--wp--preset--spacing--padding-sixteen-twenty-four);
  text-align: center;
}

.banner-content .wp-block-group-is-layout-flex {
  gap: 12px;
}

.banner-title {
  font-family: var(--wp--preset--font-family--mazda-type-tt);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.banner-subtitle {
  font-family: var(--wp--preset--font-family--mazda-type-tt);
  font-size: var(--wp--preset--font-size--heading-style-one);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
}

.banner-btn-secondary a {
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--black);
}

.banner-btn-secondary a:hover {
  background: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--white);
}

/* ===========================
Banner Overlay
=========================== */

.banner-overlay .embla__slide {
  position: relative;
}

.banner-overlay .embla__slide .wp-block-custom-block-picture:before,
body:not(.home) .banner-overlay:before {
  display: block;
  background: #000000;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
  width: 100%;
  height: clamp(100px, 20.83vw, 300px);
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* ===========================
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--secondary);
}

/* -- 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;
  }
}

/* ===========================
Quicklnks
=========================== */

.q-link .wp-block-group .wp-block-group p:first-child {
  font-size: clamp(24px, 2.222222222vw, 32px);
}

.q-link .fx-hover:after {
  display: block;
  background: #000000;
  background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  width: 100%;
  height: 100px;
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/* ===========================
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--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--neutral);
  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--secondary);
  border-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--white);
  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--secondary);
  border-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--white);
  text-decoration: none;
}

/* -- Buttons: Outline Secondary - Navigation Outline Button-- */
.is-style-outline-secondary .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: Third -- */
.is-style-third .wp-element-button {
  background-color: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--black);
  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 {
  text-decoration: underline;
}

/* ===========================
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: #fff; /* Ham Menu Colour */
}

.is-fixed .custom-logo {
  width: 50px;
}

@media (max-width: 1199px) {
  .custom-logo {
    width: 50px;
  }

  .wp-block-navigation__responsive-container {
    top: 67px; /* Adjust this value based on your header height */
  }
}

/* ===========================
Filters - Showroom Example
=========================== */

/* .filter-showroom .wp-block-custom-block-filter-trigger {
  border-bottom: 2px solid var(--wp--preset--color--neutral);
} */

.filter-headings.filter-showroom .wp-block-custom-block-filter-trigger:hover {
  border-color: var(--wp--preset--color--neutral);
}

.filter-headings.filter-showroom
  .wp-block-custom-block-filter-trigger.is-active {
  border-color: var(--wp--preset--color--neutral);
  background-color: var(--wp--preset--color--neutral);
}

/* ===========================
Accordion
=========================== */
.is-style-accordion-line {
  border-color: #000;
}

.is-style-accordion-style {
  background-color: var(--wp--preset--color--white);
  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);
}

/* Footer Fixed */

.fixed-footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 92%;
  z-index: 7;
  max-width: 600px;
  border-radius: 9px;
  overflow: hidden;
  transform: translateY(90px);
  transition: 0.3s ease-in-out;
}

.is-fixed .fixed-footer {
  transform: translateY(0);
}

.fixed-footer p a {
  padding: 8px;
  display: block;
  text-decoration: none;
  font-size: 14px;
  background-color: rgba(34, 34, 34, 0.85);
  backdrop-filter: blur(2px);
}

.fixed-footer p a:hover {
  background-color: rgb(125 125 125 / 85%);
  text-decoration: none;
}

.fixed-footer .wp-block-columns-is-layout-flex div:first-child {
  border-right: 1px solid rgb(125 125 125 / 85%);
}

.fixed-footer .wp-block-columns-is-layout-flex div:last-child {
  border-left: 1px solid rgb(125 125 125 / 85%);
}

/* ===========================
Table Responsive
=========================== */
.wp-block-table table th,
.wp-block-table table td {
  border: 1px solid #ddd;
}

/* ===========================
Custom - Page Styles
=========================== */

.model-nav.show {
  background: #fff;
}

/* ===========================
AI Search Button
=========================== */

.btn-ai {
  background: #8571ea;
  background: linear-gradient(
    90deg,
    rgba(133, 113, 234, 1) 0%,
    rgba(243, 13, 218, 1) 47%,
    rgba(133, 113, 234, 1) 100%
  );
  background-size: 200% 100%; /* Make background twice as wide */
  transition: background-position 0.4s ease-in-out;
  cursor: pointer;
}

/* .top-header .btn-ai {
  background: none;
} */

.btn-ai:hover {
  background-position: 100% 0;
}

/* ===========================
Mini Search - Stacked
=========================== */

.mini-modal:hover p {
  color: #f20eda;
}

@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);
  }
}
