/**
 * ========================== CSS VARIABLES ==========================
 */
:root {
  /* Bootstrap Overrides */
  --bs-nav-link-font-size: 16px;
  --bs-primary: #FF531F;
  --bs-primary-rgb: 255, 83, 31;
  --bs-accordion-bg: #F00;

  /* Brand Colors */
  --primary-color: #FF531F;
  --primary-hover: #C73B11;
  --secondary-color: #9E3313;

  /* Neutral Colors */
  --dark-blue: #050B20;
  --dark-blue-alt: #0D3A5D;
  --white: #fff;
  --black: #000;
  --gray-light: #F6F6F6;
  --gray-medium: #F9F9F9;
  --gray-text: #726F6F;
  --gray-muted: #8a94a6;
  --gray-border: #E0E0E0;
  --gray-underline: #D9D9D9;

  /* Effects */
  --card-shadow: 0 8px 24px rgba(13,20,32,.12);
  --radius: 14px;
}

/**
 * ========================== BASE STYLES ==========================
 */
body {
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--gray-text);
  background: var(--white);
}

/**
 * ========================== UTILITY CLASSES ==========================
 */
.bg-meta-light {
  background: var(--gray-light);
}

.fw-extrabold {
  font-weight: 800;
}

.min-vh-50 {
  min-height: 50vh;
}

.youtube-embed {
  height: 0;
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
}

.youtube-embed iframe {
  border-radius: .25em;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/**
 * ========================== HEADER ==========================
 */
header {
  background: var(--dark-blue);
  color: var(--white);
  height: 100px;
}

header .logo {
  height: 35px;
}

header .container {
  padding-top: 32px;
}

/* Desktop Menu */
header .nav .nav-link {
  color: var(--white) !important;
  padding: 12px 24px !important;
  border-radius: 55px;
  transition: all 0.3s ease;
  margin-right: 4px;
}

header .nav .nav-link:hover,
header .nav .nav-link.active {
  background: var(--secondary-color);
  color: var(--white) !important;
}

/* Mobile Menu */
header .offcanvas .nav-link {
  color: var(--dark-blue) !important;
}

header .btn i {
  color: var(--white) !important;
}

/**
 * ========================== FOOTER ==========================
 */
.footer {
  background: var(--dark-blue-alt);
  color: var(--white);
  font-size: 16px;
}

.footer a {
  color: var(--white);
  text-decoration: none;
}

.footer .logo img {
  height: 55px;
}

.footer h6 {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  text-decoration: underline 1px var(--primary-color);
  text-underline-offset: 4px;
}

/**
 * ========================== SECTIONS ==========================
 */
.section-pad {
  padding: 64px 0;
}

.section-title {
  padding: 16px 0;
}

.section-title small {
  color: var(--gray-muted);
  display: block;
  text-decoration: underline 1px var(--gray-underline);
  text-underline-offset: 4px;
  margin: 0 auto .25rem;
}

.section-title h3 {
  font-weight: 700;
  font-family: 'Oxanium', sans-serif;
}

.divider-angled {
  height: 46px;
  background: url('../img/divider2.svg') no-repeat center center;
}

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

/**
 * ========================== BANNER ==========================
 */

#banner {
  background: var(--dark-blue);
  padding: 20px 0;
}

#banner .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 335px;
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 912px) {
  #banner .splide__slide img {
    max-width: unset;
  }
}

.internal-banner {
  background: #0D3A5D;
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}


/**
 * ============================================================
 * SHOWROOM PAGE
 * ============================================================
 */

#showroom {
  padding-top: 32px;
}

/**
 * ========================== BUTTONS ==========================
 */
.btn-meta {
  background: var(--primary-color);
  border: none;
  color: var(--white);
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-meta:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.btn-outline-meta {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-outline-meta:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-whatsapp {
  background: #2AB640;
  border: none;
  color: var(--white);
  transition: all 0.3s ease;
}

.btn-whatsapp-outline {
  background: transparent;
  border: 1px solid #2AB640;
  color: #2AB640;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-whatsapp-outline:hover {
  background: #2AB640;
  color: var(--white);
}

.card-cta {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0 0 12px 12px;
  padding: .55rem 1rem;
  transition: all 0.3s ease;
  font-weight: 600;
  /* text-transform: capitalize; */
}

.card-cta:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  border: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-white:hover {
  background: var(--gray-light);
  color: var(--primary-color);
}

/**
 * ========================== VEHICLE CARDS ==========================
 */
.vehicle-card {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-medium);
}

.vehicle-card .thumb {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.vehicle-card .card-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.vehicle-card .card-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-text);
}

.vehicle-card .price {
  font-size: 30px;
  font-weight: 600;
  color: var(--black);
}

/**
 * ========================== BLOG CARDS ==========================
 */
.blog-card {
  border-radius: 12px;
  border: 1px solid var(--gray-border);
  overflow: hidden;
  padding: 10px;
}

.blog-card h6 {
  font-size: 24px;
  font-weight: 600;
  color: var(--black);
}

.blog-card img {
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
}

.blog-card .meta {
  font-size: 14px;
  color: var(--gray-muted);
}

/**
 * ========================== VEHICLE PAGE ==========================
 */
#vehiclePage {
  background: #F4F4F4;
  padding-top: 32px;
}

#vehiclePage .splide__slide img {
  border-radius: 14px;
}

/* Vehicle Card on Vehicle Page */
#vehiclePage .card {
  border-radius: 32px;
}

#vehiclePage .card-body {
  padding: 30px 40px;
}

#vehiclePage .card-footer {
  padding: 25px 40px;
  background: none;
  border-top: 1px solid #E0E0E0;
}

#vehiclePage .vehicle-model {
  margin-bottom: 30px;
}

#vehiclePage .vehicle-brand img {
  width: 100px;
  height: auto;
  object-fit: contain;
}

#vehiclePage .vehicle-model h1 {
  font-size: 40px;
  font-weight: semibold;
}

#vehiclePage .vehicle-model h2 {
  font-size: 20px;
  font-weight: 200;
}

#vehiclePage .vehicle-info .vehicle-detail-item {
  margin-bottom: 22px;
}

#vehiclePage .vehicle-info .detail-label {
  font-size: 12px;
  font-weight: light;
  color: #696977
}

#vehiclePage .vehicle-info .detail-value {
  font-size: 16px;
  font-weight: 600;
  color: #424242;
}

#vehiclePage .vehicle-description {
  border-top: 1px solid #E0E0E0;
}

#vehiclePage h5 {
  font-size: 32px;
  font-weight: semibold;
  text-decoration: underline 1px #FF531F;
  text-underline-offset: 4px;
  margin-bottom: 30px;
}

#vehicleCarousel {
  margin-bottom: -50px;
}

.vehicle-price {
  font-size: 36px;
}

.vehicle-price-mobile {
  font-size: 32px;
}

/**
 * ========================== SPLIDE CAROUSEL ==========================
 */
.splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splide__arrow:hover {
  background: var(--primary-color);
  color: var(--white);
}

.splide__arrows_custom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
}

.splide__arrow_custom {
  background: transparent;
  height: 40px;
  width: 55px;
  position: relative;
  transform: none;
  background-color: inherit !important;
}

.splide__arrow_custom.splide__arrow--prev {
  left: auto;
}

.splide__arrow_custom.splide__arrow--next {
  right: auto;
}

/** Arrow hover effects */
.splide__arrow_custom:hover img {
  opacity: 0;
}

.splide__arrow_custom::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.splide__arrow_custom:hover::after {
  opacity: 1;
}

.splide__arrow_custom.splide__arrow--prev::after {
  background-image: url('/img/arrows/arrow-left-hover.svg');
}

.splide__arrow_custom.splide__arrow--next::after {
  background-image: url('/img/arrows/arrow-right-hover.svg');
}

/**
 * ========================== MARCAS ==========================
 */
 .marca-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #efefef;
  border-radius: 12px;
}

.marca-name {
  position: absolute;
  bottom: 15px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}

.offcanvas {
  overflow: hidden;
}

.marcas-ver-todas {
  color: var(--black);
}

.marca-list {
  transition: transform 0.3s ease-in-out;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: white;
}

.marca-list .card-body {
  height: calc(100% - 70px);
}

.marca-list ul {
  margin-bottom: 0;
}

.marca-list li a {
  color: #333;
  text-decoration: none;
  padding: 0.8rem 0;
  display: block;
  border-bottom: 1px solid #eee;
}

.marca-list li a.active {
  color: #FF531F;
  background-color: #f8f9fa;
  padding-left: 0.5rem;
  transition: all 0.2s ease;
}

.marca-list li a:hover {
  color: #FF531F;
  background-color: #f8f9fa;
  padding-left: 0.5rem;
  transition: all 0.2s ease;
}

/**
 * ========================== FILTERS ==========================
 */
.filters-sidebar {
  overflow: hidden;
}

.meta-scroll {
  flex: 1;
  padding: var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);
  overflow-y: auto;
}

.marca-filter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #efefef;
  aspect-ratio: 1;
  font-size: 12px;
  text-decoration: none;
}

.marca-filter-container.active {
  border: 1px solid;
}

.marca-filter-container:hover {
  box-shadow: 0 4px 8px 0 rgba(106, 105, 119, .16);
  cursor: pointer;
}

.marca-filter-container img {
  padding: 0px 12px;
}

.marca-filter-container p {
  color: var(--black);
  margin: 0;
}

.marca-filter-container:hover {
  box-shadow: 0 4px 8px 0 rgba(106, 105, 119, .16);
  cursor: pointer;
}

/**
 * ========================== VEHICLE CARDS ==========================
 */
.car-card {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}

.car-card .card-body {
  background: var(--gray-medium);
}

.car-card .thumb {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  border-radius: 12px 12px 0 0;
}

.car-card .car-model h6 {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0px;
}

.car-card .car-model .title {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-text);
}

.car-card .car-info {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-text);
}

.car-card .car-info i {
  color: var(--black);
  margin-right: 4px;
}

.car-card .price {
  font-size: 22px;
  font-weight: 600;
  color: var(--black);
}

/**
 * ========================== PAGINATION ==========================
 */
.pagination {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  color: var(--dark-blue-alt);
  background: var(--white);
  border: 2px solid var(--gray-border);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pagination .page-link:hover:not(.disabled) {
  background: var(--dark-blue-alt);
  color: var(--white);
  border-color: var(--dark-blue-alt);
}

.pagination .page-item.active .page-link {
  background: var(--dark-blue-alt);
  color: var(--white);
  border-color: var(--dark-blue-alt);
  box-shadow: 0 2px 6px rgba(13, 58, 93, 0.2);
}

.pagination .page-item.disabled .page-link,
.pagination .page-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--gray-light);
  color: var(--gray-text);
  border-color: var(--gray-border);
}

.pagination .page-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 58, 93, 0.1);
}

.pagination .page-item.disabled .page-link:hover {
  background: var(--gray-light);
  color: var(--gray-text);
  border-color: var(--gray-border);
  transform: none;
  box-shadow: none;
}

/* Ellipsis styling */
.pagination .page-item.disabled .page-link span {
  color: var(--gray-text);
  font-weight: 600;
}

/* Ícones de navegação */
.pagination .page-link .bi {
  font-size: 14px;
}

.pagination .page-link.prev-link,
.pagination .page-link.next-link {
  font-weight: 600;
  gap: 4px;
  padding: 0 10px;
}

/* Responsivo */
@media (max-width: 575.98px) {
  .pagination {
    gap: 3px;
  }
  
  .pagination .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }
  
  .pagination .page-link.prev-link,
  .pagination .page-link.next-link {
    padding: 0 8px;
  }
  
  .pagination .page-link.prev-link span:not(.bi),
  .pagination .page-link.next-link span:not(.bi) {
    display: none;
  }
  
  .pagination .page-link .bi {
    font-size: 13px;
  }
}

/**
 * ========================== RESPONSIVE DESIGN ==========================
 */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {}

/* Mobile specific styles */
@media (max-width: 575.98px) {  
  .section-pad {
    padding: 40px 0;
  }
  
  #vehiclePage .vehicle-model h1 {
    font-size: 40px;
  }
}

/**
 * ========================== NOUI SLIDER ==========================
 */

.meta-slider.noUi-horizontal {
  height: 10px;
  margin: 0 8px;
}

.meta-slider .noUi-connect {
  background: var(--primary-color);
}

.meta-slider.noUi-horizontal .noUi-handle {
  height: 18px;
  width: 18px;
  top: -5px;
  right: -9px; /* half the width */
  border-radius: 9px;
}

.meta-slider.noUi-horizontal .noUi-handle:before, 
.meta-slider.noUi-horizontal .noUi-handle:after {
  content: none;
}

/* Mobile specific styles */
@media (max-width: 575.98px) {
  .about-box .img-side {
    min-height: 220px;
  }
}


/**
 * ========================== WHATSAPP ==========================
 */
/* Botão Flutuante WhatsApp */
.whatsapp-float-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.whatsapp-float-button a:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
  text-decoration: none;
}

.whatsapp-float-button a i {
  font-size: 28px;
  z-index: 2;
  position: relative;
}

.whatsapp-float-button a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.whatsapp-float-button a:hover::before {
  transform: translateX(100%);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #333;
}

.whatsapp-float-button:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* Animação de pulso */
@keyframes whatsappPulse {
  0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
      box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsividade para o botão WhatsApp */
@media (max-width: 768px) {
  .whatsapp-float-button {
      bottom: 15px;
      right: 15px;
  }
  
  .whatsapp-float-button a {
      width: 50px;
      height: 50px;
  }
  
  .whatsapp-float-button a i {
      font-size: 24px;
  }
  
  .whatsapp-tooltip {
      display: none; /* Esconder tooltip em mobile */
  }
}

/* Animação de entrada */
@keyframes whatsappSlideIn {
  from {
      transform: translateX(100px);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

.whatsapp-float-button {
  animation: whatsappSlideIn 0.5s ease-out, whatsappPulse 2s infinite 1s;
}

/**
 * ========================== PRICE VISIBILITY ==========================
 * Esconde preços quando o usuário está logado
 */
body.user-logged-in .vehicle-price-element {
  display: none !important;
}

/* Permite exibir preço individual quando o usuário clicar no botão */
body.user-logged-in .vehicle-price-element.show-price {
  display: block !important;
}

/**
 * ========================== DIVIDER (desktop only) ==========================
 */
.divider {
  background: #FFF;
  height: 80px;
  position: relative;
  overflow: hidden;
}
.divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.divider-top {
  background: #FFF;
  margin-bottom: -20px;
}
.divider-top::before {
  background-color: var(--gray-light);
  transform: skewY(25deg);
  transform-origin: top center;
  height: 100vw;
}
.divider-bottom {
  background: var(--gray-light);
  height: 50px;
  margin-top: -50px;
}
.divider-bottom::before {
  background-color: #FFF;
  transform: skewY(25deg);
  transform-origin: 350px;
  height: 100vw;
}

/**
 * ========================== ACCORDION ==========================
 */

.accordion.meta-accordion {
  --bs-accordion-color: #656565;
  --bs-accordion-bg: transparent;
  /* --bs-accordion-transition: all 0.3s ease; */
  /* --bs-accordion-border-color: var(--gray-border); */
  --bs-accordion-border-width: 0;
  /* --bs-accordion-border-radius: var(--radius); */
  /* --bs-accordion-inner-border-radius: var(--radius); */
  --bs-accordion-btn-padding-x: 0rem;
  --bs-accordion-btn-padding-y: 2rem;
  /* --bs-accordion-btn-color: var(--gray-text); */
  /* --bs-accordion-btn-bg: var(--gray-light); */
  /* --bs-accordion-btn-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='16' fill='none' stroke='#000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9.947 1v14'/><path d='M1 8h17.895'/></svg>"); */
  /* --bs-accordion-btn-icon-width: 1rem; */
  /* --bs-accordion-btn-icon-transform: none; */
  /* --bs-accordion-btn-icon-transition: all 0.3s ease; */
  /* --bs-accordion-btn-active-icon: none; */
  /* --bs-accordion-btn-focus-box-shadow: none; */
  --bs-accordion-body-padding-x: 0rem;
  --bs-accordion-body-padding-y: 1rem;
  --bs-accordion-active-color: var(--primary-color);
  --bs-accordion-active-bg: var(--gray-light);
}


@media (min-width: 992px) {
  .accordion.meta-accordion {
    padding-right: 50px;
  }
}


.meta-accordion .accordion-button {
  font-size: 20px;
  font-weight: 500;
  color: #000;
  background-color: transparent;
  border: none;
  box-shadow: none;
  border-bottom: 1px solid #E0E0E0;
}

.meta-accordion .accordion-button:not(.collapsed) {
  color: var(--bs-accordion-active-color);
  background-color: transparent;
  box-shadow: none;
  border-bottom: 1px solid #E0E0E0;
}

.meta-title {
  color: #000;
  font-size: 32px;
  font-weight: 600;
  text-decoration: underline 1px #FF531F;
  text-underline-offset: 10px;
  margin-bottom: 30px;
}

.meta-section-title {
  font-size: 64px;
  font-weight: 600;
  color: #000;
  margin-bottom: 30px;
  font-family: 'Oxanium', sans-serif;
}

.meta-section-text {
  font-size: 20px;
  font-weight: 400;
  color: #000;
  margin-bottom: 30px;
}

.contact-form {
  border: 0;
  border-radius: 20px;
  padding: 40px;
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 600;
  color: #000;
  margin-bottom: 30px;
}