/*
 Theme Name:   Bar M Trailers
 Theme URI:    https://barmtrailers.com
 Description:  Custom Theme For Bar M Trailers
 Author:       Anthill Inc.
 Author URI:   https://anthill.net
 Template:     generatepress
 Version:      1.0
*/

/*
** General Styles
*/
.center {
  text-align: center;
}

.grey-bg {
  background-color: var(--base);
}

/*
** Image Links 
*/
a img {
  opacity: 1;
  transition: opacity 0.5s ease-out;
  -moz-transition: opacity 0.5s ease-out;
  -webkit-transition: opacity 0.5s ease-out;
  -o-transition: opacity 0.5s ease-out;
}

a img:hover {
  opacity: 0.6;
  transition: opacity 0.5s ease-out;
  -moz-transition: opacity 0.5s ease-out;
  -webkit-transition: opacity 0.5s ease-out;
  -o-transition: opacity 0.5s ease-out;
}

/*
** Main Menu
*/
.navigation-branding img,
.main-navigation.navigation-stick .navigation-branding img {
  height: 42px !important;
}

.nav-below-header .main-navigation .inside-navigation.grid-container {
  padding: 0;
}

.main-navigation .menu-toggle {
  background-color: rgba(33, 33, 33, 0.2);
}

.main-navigation .menu-toggle:hover {
  background-color: rgba(33, 33, 33, 0.2);
}

/*
** Homepage Video
*/
.page-hero-video {
  width: 100%;
  height: calc(100vh - 70px);
}

.video-background-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  pointer-events: none;
  overflow: hidden;
  animation: fadeInBackground 3s ease-in-out forwards;
}

.admin-bar .video-background-container,
.admin-bar .page-hero-video {
  height: calc(100vh - 70px - 32px);
}

@keyframes fadeInBackground {
  0% {
    background-color: var(--accent-3);
  }
  100% {
    background-color: var(--contrast-2);
  }
}

iframe.video-background {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.content-overlay {
  position: absolute;
  bottom: 0;
  left: 50%;
  margin-left: -250px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 20px;
  z-index: 2;
  width: 500px;
  animation: fadeInOverlay 2s ease-in-out forwards;
}

@keyframes fadeInOverlay {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 100;
  }
}

.overlay-icon-wrapper {
  background-color: var(--accent-2);
  border-radius: 50px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -55px auto 10px auto;
}

img.overlay-icon {
  padding: 10px;
  width: 100%;
  height: auto;
}

h1.video-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  color: var(--base);
  margin-bottom: 10px;
}

p.video-caption {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 0;
  text-transform: uppercase;
}

/*
** Contact Forms
*/
.form-row {
  display: flex;
  column-gap: 30px;
}

.grid-50 {
  width: 50%;
}

.grid-100 {
  width: 100%;
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-select {
  height: 46px;
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-textarea,
.wpcf7-select {
  width: 100%;
}

.form-submit {
  text-align: center;
}

.wpcf7-submit {
  margin: 0 auto;
}

.wpcf7-spinner {
  display: block;
  margin: 10px auto 0 auto !important;
}

.wpcf7-form-control::placeholder,
.wpcf7-select {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--accent);
}

/*
** Testimonials
*/
.testimonials-slider .carousel-cell {
  width: 100%;
}

.testimonial-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
  color: #fff;
  text-align: center;
}

span.quotations {
  font-size: 120%;
  font-weight: bold;
}

p.testionial-quote-text {
  font-size: 20px;
  font-weight: 500;
}

p.testimonial-author {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px !important;
}

p.testimonial-credentials {
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.client-avatar-wrapper {
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 5px;
  margin: 0 auto 10px auto;
}

img.client-avatar {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: block;
  border-radius: 50%;
  opacity: 0.9;
}

.flickity-page-dots .dot {
  height: 4px;
  width: 40px;
  margin: 0;
  border-radius: 0;
}

.flickity-page-dots .dot {
  background: #acacac;
}

.flickity-button {
  background: hsl(0deg 0% 60.82% / 75%);
}

.flickity-button:hover {
  background: hsl(0deg 0% 60.82% / 75%);
  color: #fff;
}

/*
** Trailer Archives
*/
.trailer-archive-wrapper {
  width: 1200px;
  padding: 30px 40px;
  margin: 0 auto;
}

div.trailers-archive-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

div.trailer-teaser {
  width: calc((100% / 2) - (((2 - 1) / 2) * 40px));
  border: 2px solid var(--base);
  padding: 20px;
}

img.trailer-teaser-img {
  margin-bottom: 30px;
  width: 100%;
  height: auto;
}

/*
** Trailers & Trailer Models
*/
.trailer-section {
  width: 1200px;
  padding: 60px 40px;
  margin: 0 auto;
}

div.trailer-img-wrapper {
  width: 100%;
  height: 400px;
}

.trailer-img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  margin: 0 auto;
}

.trailer-intro p,
.model-intro p {
  font-size: 18px;
  color: var(--contrast-2);
}

h2.section-heading {
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 20px;
}

div.section-divider {
  background-color: var(--accent);
  height: 4px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  width: 50px;
}

div.models-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

div.model-teaser {
  width: calc((100% / 3) - (((3 - 1) / 3) * 40px));
  border: 2px solid var(--base);
  padding: 20px;
  position: relative;
}

div.model-zoom {
  position: absolute;
  padding: 10px;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background-color: var(--accent);
  display: block;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

h3.model-teaser-title,
h3.trailer-teaser-title {
  font-size: 20px;
  color: var(--accent-2);
  font-weight: bold;
  margin-bottom: 0;
}

p.model-year {
  font-family: "Lato", sans-serif;
  color: var(--contrast-2);
  letter-spacing: 1px;
  font-size: 12px;
  margin-bottom: 5px;
}

.group-wrapper {
  --gap: 40px;
  columns: 2;
  gap: var(--gap);
  margin-top: 40px;
}

.group-wrapper > * {
  break-inside: avoid;
  margin-bottom: var(--gap);
}

.group-table,
.group-table td,
.group-table th {
  border: none;
  border-collapse: collapse;
}

.group-table td {
  padding: 8px 20px;
  text-align: left;
}

.group-table tbody tr:nth-child(odd) {
  background-color: var(--base);
}

.group-table tbody tr:nth-child(even) {
  background-color: var(--base-2);
}

.group-table th {
  padding: 10px 20px;
  background-color: var(--accent);
  text-align: left;
}

th.option-header {
  background-color: var(--accent-3);
}

h3.group-heading {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 0;
  color: #fff;
}

div.decor-color-wrapper {
  padding-top: 40px;
  border-bottom: 1px solid var(--base);
}

div.color-swatches-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

div.swatch {
  text-align: center;
  width: 100px;
}

div.interior-swatch {
  text-align: center;
  width: 150px;
}

img.color-swatch {
  width: 80px;
  height: 80px;
  border-radius: 50px;
}

img.interior-color-swatch {
  width: 150px;
  height: 150px;
}

div.brochure-wrapper,
div.find-dealer-wrapper {
  margin: 30px auto;
}

a.large-btn {
  padding: 12px 20px;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-color: var(--accent);
  color: #fff;
  display: inline-block;
}
a.large-btn:hover {
  background-color: var(--accent-2);
}

a.printed-brochure {
  text-decoration: underline;
}

div.warranty-wrapper {
  text-align: center;
}

div.warranty-img-wrapper {
  margin: 30px auto;
  max-width: 200px;
}

div.warranty-info-wrapper {
  margin: 0 auto;
  text-align: left;
}

div.floorplan-img-wrapper {
  max-width: 600px;
  margin: 0 auto;
  border: 2px solid var(--base);
  padding: 30px;
}

div.model-interior-gallery-wrapper {
  display: flex;
  flex-wrap: wrap;
}

div.model-interior-gallery-img-wrapper {
  width: 20%;
  padding: 5px;
}

img.model-interior-gallery-img {
  display: block;
}

div.tour-video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.videoWrapper {
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
}

.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.features-specs_table table {
  border: none;
  display: block;
  height: auto !important;
  width: 100% !important;
  border-collapse: collapse;
  border-spacing: 0;
}

.features-specs_table table tbody {
  border: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.features-specs_table table tbody tr {
  width: 49%;
  border-bottom: 2px solid var(--base);
  display: flex;
  height: auto !important;
  margin-bottom: 2%;
  padding-bottom: 2%;
}

.features-specs_table table tbody tr td:first-of-type {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  color: var(--accent);
  font-family: "Lato", sans-serif;
  font-size: 16px;
  border: none;
}

.features-specs_table table tbody tr td:last-of-type {
  flex: 2;
  font-size: 14px;
  padding-left: 2em;
  border: none;
}

/*
** Trailer Sticky Menu
*/
div.trailer-menu-wrapper {
  width: 100%;
  background-color: var(--contrast-2);
  position: relative;
}

.trailer-menu-wrapper.sticky {
  position: fixed;
  z-index: 1000;
  width: 100%;
}

.trailer-menu-wrapper.sticky.admin-bar-on {
  top: 102px;
}

.trailer-menu-wrapper.sticky.admin-bar-off {
  top: 70px;
}

button.hamburger-menu {
  display: none; /* Hide hamburger button on desktop */
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  height: 100%;
  width: 100%;
}

.hamburger-menu:hover {
  background: transparent;
}

.menu-icon-wrapper {
  margin-right: 8px;
  margin-top: 1px;
  display: inline-block; /* Essential for transform to work */
  transition: transform 0.3s ease; /* Smooth transition for rotation */
}

.menu-icon-wrapper.rotated {
  transform: rotate(
    180deg
  ); /* Rotate 180 degrees when 'rotated' class is present */
}

span.menu-icon-label {
  font-size: 12px;
  letter-spacing: 1px;
}

.trailer-nav ul {
  display: flex; /* Display links horizontally on desktop */
  list-style: none;
  margin: 0;
  padding: 0;
}

.trailer-nav ul li a {
  display: block;
  padding: 20px 10px;
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Lato", sans-serif;
  font-size: 12px;
}

.trailer-nav ul li a:hover {
  background-color: var(--contrast-3);
}

.trailer-nav {
  width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/*
** Store Locator
*/
#wpsl-wrap {
  background-color: #fff;
  color: #666 !important;
  padding: 20px;
}

/*
** 3D Tours
*/
.tour-description-wrapper {
  margin-top: 30px;
}

.tour-breadcrumb .breadcrumb-list {
  list-style: none;
  margin: 0;
}

.tour-breadcrumb .breadcrumb-list li {
  display: inline;
}

.tour-breadcrumb .breadcrumb-list li a {
  font-weight: bold;
}

.tour-category-list,
.tour-posts-list {
  padding: 40px;
}

h2.tour-category-name,
h2.tour-post-title {
  font-weight: bold;
}

h2.tour-post-title {
  margin-bottom: 5px;
}

.tax-tour-category nav.tour-breadcrumb {
  padding: 40px 40px 0 40px;
}

/*
** Mobile Styles
*/
@media screen and (max-width: 1100px) {
  .navigation-branding {
    margin-left: 20px !important;
  }
}

@media screen and (max-width: 1199px) {
  .trailer-section {
    width: 100%;
    padding: 30px;
  }
}

@media screen and (max-width: 1000px) {
  .trailer-menu-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 58px;
  }
  .trailer-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--contrast-2);
    padding: 0;
  }
  .trailer-nav.is-open {
    display: block;
  }
  .trailer-nav ul {
    flex-direction: column;
    border-bottom: 2px solid #3c3c3c;
    border-top: 2px solid #3c3c3c;
  }
  .trailer-nav ul li a {
    padding: 15px 20px;
    font-size: 14px;
    border-bottom: 2px solid #3c3c3c;
  }
  button.hamburger-menu {
    display: flex;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .video-background-container,
  .admin-bar .page-hero-video {
    height: calc(100vh - 200px - 46px);
  }
  .trailer-menu-wrapper.sticky.admin-bar-on {
    top: 116px;
  }
}
@media screen and (max-width: 768px) {
  .main-navigation.navigation-stick.has-sticky-branding
    .inside-navigation.grid-container {
    padding: 10px 20px 10px 20px;
  }
  .form-row {
    flex-wrap: wrap;
  }
  .grid-50 {
    width: 100%;
  }
  .flickity-button {
    display: none;
  }
  .video-background-container,
  .page-hero-video {
    height: calc(100vh - 200px);
  }
  div.model-teaser,
  div.trailer-teaser {
    width: 100%;
  }
  .group-wrapper {
    --gap: 30px;
    columns: 1;
    margin-top: 30px;
  }
  div.model-interior-gallery-img-wrapper {
    width: 33.33333333%;
  }
  .features-specs_table table tbody tr {
    width: 100%;
  }
  .features-specs_table table tbody tr td:first-of-type {
    font-size: 14px;
  }
  div.model-zoom {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .content-overlay {
    left: 0;
    margin-left: 0;
    width: 100%;
  }
  .trailer-menu-wrapper.sticky.admin-bar-on {
    top: 70px;
  }
}
