/*
Theme Name: Apex Auto Blocks
Theme URI: 
Author: Abstract Marketing
Author URI: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.0
Version: 1.0.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apex-auto-blocks
Tags: Site Editor
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

img:not([class]), iframe {
    display: block;
}

figure[class*="align"]:not(.alignfull) {
    display: block !important;
    max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
	float: none !important;
}

figure.alignleft :is(img, div) {
    float: left;
	margin-inline-end: 1rem;
}

figure.alignright :is(img, div) {
    float: right;
	margin-inline-start: 1rem;
}

figure.aligncenter :is(img, div) {
	margin-inline: auto;
	display: inline-block !important;
}

:is(input:not(:is([type="button"], [type="submit"])), select, textarea) {
	background-color: var(--wp--preset--color--base);
	border: 2px solid #ccc;
	border-radius: 6px !important;
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: 1.65;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	width: 100%;
}

:is(input:focus, textarea:focus, select:focus) {
    outline: 2px solid var(--wp--preset--color--primary);
}

:is(input[type="checkbox"], input[type="image"], input[type="radio"]) {
	width: auto;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	opacity: 0.5;
}

.wp-block-navigation svg {
    width: 44px;
    height: 44px;
}

.site-header {
    background: linear-gradient(
        to bottom,
        #0007,
        #fff2
    );
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

@media (min-width: 992px) and (max-width: 1300px) {
    .logos img {
        width: 280px !important;
    }
    
    .site-header .wp-block-social-links {
        display: none;
    }
}

@media (max-width: 991px) {
    .site-header .wp-block-social-links svg {
        width: 64px;
        height: 48px;
    }
}

.site-header nav.wp-block-navigation {
    margin-right: 20px;
}

.wp-block-navigation > li > a {
	line-height: 1.2;
}

.wp-block-navigation > li {
    position: relative;
}

@media (min-width: 850px) {
	.wp-block-navigation > li:hover::before,
	.wp-block-navigation > li.current-menu-item::before {
		content: '';
		position: absolute;
		inset: -6px -6px;
		background: #fff3;
		border-radius: 5px;
		pointer-events: none;
		backdrop-filter: blur(5px);
		z-index: -1;
	}
}

.is-menu-open .wp-block-navigation__container {
    width: 100%;
}

.has-modal-open .site-header {
    inset: 0;
}

.is-menu-open .items-justified-center .wp-block-navigation-item,
.is-menu-open .items-justified-center .wp-block-navigation-item a {
    text-align: center;
    justify-content: center;
}

.is-menu-open .items-justified-right .wp-block-navigation-item,
.is-menu-open .items-justified-right .wp-block-navigation-item a {
    text-align: right;
    justify-content: end;
}

.is-menu-open .wp-block-navigation-item {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0 !important;
    width: 100%;
    justify-content: space-between;
}

.is-menu-open .wp-block-navigation-submenu__toggle {
    display: inline-flex !important;
    flex: 0 0 1.5em;
    display: flex;
    justify-content: center;
    height: 1.5em;
    margin-inline: 0;
}

.is-menu-open .wp-block-navigation-submenu {
    flex: 100%;
}

.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="false"] + ul {
    display: none;
}

.is-menu-open .wp-block-navigation-submenu__toggle svg {
    transition: transform .2s ease;
    transform: rotate(-90deg);
    width: .85em;
}

.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="true"] svg {
    transform: rotate(0deg);
}

.is-menu-open .wp-block-navigation-item {
    font-size: 24px !important;
}

.is-menu-open .wp-block-navigation-item .wp-block-navigation-item span {
    font-size: .85em;
}

.site-footer a {
	text-decoration: none;
}

.wp-block-page-list,
.wp-block-page-list ul {
    list-style: '» ';
    line-height: 1.2;
}

.wp-block-page-list a {
    text-decoration: none;
    font-weight: 500;
    font-size: .9em;
    padding-block: 4px;
    display: inline-block;
}

.wp-block-page-list li:hover,
.wp-block-page-list li:hover a {
    color: var(--wp--preset--color--primary)
}

img {
    max-width: 100%;
}

.ryu-douse img {
    animation: ryuDouse 10s linear;
}

@keyframes ryuDouse {
    0% {
		opacity: 0;
        transform: scale(1.2);
    }
    10% { opacity: 0; }
	15% { opacity: 1; }
    100% {
        transform: scale(1)
    }
}

.cover-slider :is(h1, p) {
    text-shadow: 0 .05em .2em black !important;
}

:is(h1, h2, h3, h4, h5, h6):has(img.wp-image-93) {
    display: flex;
    align-items: center;
    gap: 4px;
}

:is(h1, h2, h3, h4, h5, h6) img.wp-image-93 {
    flex-shrink: 0;
}

.services-grid {
    position: relative;
    overflow: hidden;
}

.services-grid h2 {
    text-shadow: 2px 2px 8px #000;
}

.services-grid a {
    text-decoration: none;
}

.services-grid a::before {
    content: 'a';
    position: absolute;
    inset: -50vw;
}

.bounce {
  animation: bounce 5s ease infinite;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
	40% {transform: translateY(10px);}
	60% {transform: translateY(6px);}
}

textarea {
  height: 140px;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.quote-form p {
  margin: 0;
}

.quote-form .wp-block-button {
  grid-column: span 2;
  justify-self: center;
}

.wpcf7-spinner {
  position: absolute;
}

.quote-form p:has(textarea) {
  grid-column: span 2;
}

.wpcf7-response-output {
  grid-column: span 2;
  justify-self: center;
  border-radius: 5px;
  margin: 0 !important;
}

@keyframes kburns {
  from { transform: scale(1.15) }
}

.home-cover .cover-carousel__slide.is-active,
.home-cover .wp-block-cover__image-background {
  animation: kburns 6s ease-out;
}

.home-cover h1 {
  text-shadow: 3px 5px 20px #0009;
}

.home-cover p {
  text-shadow: 1px 1px 3px #0009, 1px 2px 10px #000c;
}

.home-cover .wp-block-button.is-style-outline {
  filter: drop-shadow(1px 1px 3px #0009) drop-shadow(1px 2px 10px #000c)
}



:is(.home-cover, .home-adas, .page-header) :is(h1, h2, p) {
  text-shadow: 1px 1px 3px #0009, 1px 1px 13px #000d
}

.is-menu-open .wp-block-navigation__submenu-container {
  padding-top: 0 !important;
  margin-top: -6px !important;
}
ul.wp-block-navigation > li > a {
  font-weight: 600;
}

.has-featured-image .page-header .wp-block-cover__background {
  opacity: .3 !important
} 

.no-featured-image .page-header {
  min-height: 350px !important;
}

@media (min-width: 992px) and (max-width: 1100px) {
  .site-header .wp-block-site-logo {
    max-width: 230px;
  }
}

.wpcf7-spinner {
  position: absolute;
}

p:has(.wpcf7-submit) {
  text-align: center;
}

.has-modal-open .wp-block-navigation__responsive-container {
  background: var(--wp--preset--gradient--custom-primary)
}

.has-modal-open .wp-block-navigation__responsive-container a {
  color: #fff !important;
}

.has-modal-open .wp-block-navigation__responsive-container svg {
  fill: #fff;
}

.is-menu-open .wp-block-site-logo {
  display: none;
}

@media (min-width: 1050px) and (max-width: 1300px) {
  .site-header ul.wp-block-navigation > li:first-child {
    display: none !important;
  }
}

@media (min-width: 1050px) and (max-width: 1200px) {
  .site-header a {
    font-size: 1rem !important;
  }
  .site-header .wp-block-site-logo {
    max-width: 300px;
  }
}

@media (min-width: 1050px) and (max-width: 1120px) {
  .site-header .wp-block-site-logo {
    max-width: 260px;
  }
  
  .site-header .wp-block-button a {
    font-size: .85rem !important;
  }
}

.adas-steps {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .adas-steps {
    grid-template-columns: 1fr 1fr;
  }
  
  .adas-steps > :last-child {
    transform: translateX(50%);
  }
}

@media (min-width: 1024px) {
  .adas-steps {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .adas-steps > :nth-last-child(2),
  .adas-steps > :last-child {
    transform: translateX(50%);
  }
}

.wp-block-cover {
  overflow: hidden;
}

.wp-block-cover.cover-link a {
  position: relative;
}

.wp-block-cover.cover-link a::after {
  content: '';
  position: absolute;
  inset: -500px 0;
}


.has-modal-open .wp-block-navigation__responsive-container svg,

.has-modal-open .wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg {
  fill: #fff !important;
	color: #fff !important;
	stroke: #fff !important;
}

.has-modal-open .wp-block-navigation .wp-block-navigation__submenu-icon {
	color: #fff !important;
}

@media (max-width: 850px) {
  .adas-iframe {
    max-height: 60vh;
  }
}

hr.is-style-triangle {
  padding: 0;
  border: 0;
  border-top: solid 3px;
  text-align: center;
  background: none !important;
  overflow: visible;
	position: relative;
  border-width: 1px;
}

hr.is-style-triangle::before {
  content: "△";
  display: inline-block;
  position: absolute;
  top: -1rem;
	left: 50%;
	transform: translateX(-50%);
  padding: 0 1rem;
  font-size: 2rem;
  background-color: #fff;
  line-height: 1;
}

.services-list {
  padding: 0;
}

.services-list li {
  list-style: none;
  margin-block: 5px;
}
.services-list li:before {
  content: '\2713';
  display: inline-block;
  position: relative;
  font-weight: 600;
  width: 1.5em;
  height: 1.5em;
  padding: .25em;
  transform: scale(.7);
  margin-right: 5px;
  line-height: 1;
  color: var(--wp--preset--color--primary);
  border: 2px solid var(--wp--preset--color--primary);
  border-radius: 50%;
  text-align: center;
}


.row,.step {
  display: flex
}

.row {
  align-items: stretch
}

.step {
  --step-color: #001f36;
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid var(--step-color);
  box-shadow: 0 2px 14px rgba(0,31,54,.08);
  flex-direction: column;
  transition: transform .2s ease,box-shadow .2s ease
}

.step-2 { --step-color: #002b47 }
.step-3 { --step-color: #00385c }
.step-4 { --step-color: #004570 }
.step-5 { --step-color: #005183 }
.step-6 { --step-color: #006396 }

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,31,54,.15)
}

.step-hd,.step-num-circle {
  display: flex;
  align-items: center
}

.step-hd {
  background: var(--step-color);
  padding: 14px 14px 10px;
  gap: 10px;
    border-radius: 6px 8px 0 0;
}

.step-num-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  line-height: 1;
/*   background: var(--step-color); */
  background: #fff3;
  color: #fff;
  font-weight: 800;
  justify-content: center;
  flex-shrink: 0
}

.step-num-text {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #8899ab;
  margin-bottom: 2px
}

.step-name {
  font-weight: 700;
/*   color: var(--step-color); */
  line-height: 1;
    color: #fff;
}

.step-rule {
  height: 1px;
  background: #eef2f7;
  margin: 0 14px
}

.step-bd {
  padding: 12px 14px 16px;
  flex: 1
}

.step-lead {
  font-size: .8rem;
  font-weight: 600;
  color: #334;
  margin-bottom: 7px;
  line-height: 1.4
}

.step-desc {
  font-size: .85rem;
  color: #789;
  line-height: 1.4;
}

.arrow {
  flex-shrink: 0;
  width: 48px;
  align-self: center;
  display: flex;
  justify-content: center
}

.arr-h,.arr-v,.arrow {
  align-items: center
}

.arr-h {
  display: flex
}

.arr-h .shaft {
  width: 26px;
  height: 2px;
  background: #001f36
}

.arr-h .head {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #001f36
}

.arr-v {
  display: none;
  flex-direction: column
}

.arr-v .shaft {
  width: 2px;
  height: 26px;
  background: #001f36
}

.arr-v .head,.elbow::after {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid #001f36
}

.ph,.ph-arrow {
  visibility: hidden;
  pointer-events: none
}

.ph {
  flex: 1;
  min-width: 0
}

.ph-arrow {
  flex-shrink: 0;
  width: 48px
}

.elbow-row {
  position: relative;
  height: 54px;
margin-bottom: 20px;
}

.elbow {
  position: absolute;
  left: calc((100% - 96px)/6);
  right: 100px;
  top: 0;
  bottom: 2px;
  border-right: 2px solid #001f36;
  border-bottom: 2px solid #001f36;
  border-bottom-right-radius: 10px;
}

.elbow::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: -7px;
  border-top: 12px solid #001f36
}

.elbow-label {
  position: absolute;
  left: calc((100% - 96px)/6 + 10px);
  bottom: 10px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8899ab
}

.mobile-bridge {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 5px 0
}

.mobile-bridge .shaft {
  width: 2px;
  height: 26px;
  background: #001f36
}

.mobile-bridge .head {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid #001f36
}

@media (max-width:860px) {
  .row {
      flex-direction: column;
      align-items: center
  }

  .step {
      width: 100%;
      max-width: 520px
  }

  .arrow {
      width: auto;
      align-self: auto;
      padding: 5px 0
  }

  .arr-h {
      display: none
  }

  .arr-v {
      display: flex
  }

  .elbow-row,.ph,.ph-arrow {
      display: none
  }

  .mobile-bridge {
      display: flex
  }
}