:root {
  --primary: #ee5624;
  --primary-hover: #d94a1c;
  --dark: #191f23;
  --secondary: #555555;
  --light-bg: #f6f6f6;
  --text: #757575;
  --border: #dadada;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
  background: var(--white);
}

p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  color: #000;
  font-weight: 500;
  text-align: left;
}

.page-header h1,
.section-title h3,
.service-icon-box h5 {
  text-align: center;
}

.footer .footer-address-text,
.form-check-label,
.top-bar,
.navbar {
  text-align: left;
}

.service-icon-box p {
  text-align: center;
}

.footer-bottom {
  text-align: center;
}

.legal-page li {
  text-align: justify;
  text-justify: inter-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary);
}

.text-primary-custom {
  color: var(--primary) !important;
}

.bg-primary-custom {
  background-color: var(--primary) !important;
}

.bg-dark-custom {
  background-color: var(--dark) !important;
}

.bg-light-custom {
  background-color: var(--light-bg) !important;
}

.btn-primary-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff !important;
}

.btn-outline-primary-custom {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary-custom:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
}

section {
  padding: 60px 0;
}

section.py-sm {
  padding: 40px 0;
}

/* Top bar */
.top-bar {
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  padding: 8px 0;
}

.top-bar a:hover {
  color: var(--primary);
}

.top-bar .dropdown-menu {
  font-size: 13px;
  border: none;
  box-shadow: 0 0 18px -2px rgba(0, 0, 0, 0.18);
  border-radius: 0;
}

.top-bar .dropdown-item {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border);
}

.top-bar .dropdown-item:hover {
  background: transparent;
  color: var(--secondary);
}

/* Header */
.main-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(340px, 58vw);
}

.navbar-brand .site-logo {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.navbar-brand .logo-text {
  max-height: 42px;
}

.logo-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--primary);
}

.navbar-nav .nav-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem !important;
  color: #333;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.dropdown-item {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--light-bg);
  color: var(--primary);
}

.header-search {
  position: relative;
}

.header-search input {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 0;
  padding-right: 36px;
  font-size: 0.85rem;
}

.header-search .search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
}

/* Hero slider */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 31, 36, 0.75) 0%, rgba(27, 31, 36, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
}

.search-box-title {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.search-tabs-vertical .nav-link {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 4px 0 0 4px !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 12px 8px;
  margin-bottom: 4px;
  border: none;
}

.search-tabs-vertical .nav-link.active {
  background: #fff;
  color: var(--primary);
}

.search-form-panel {
  background: #fff;
  border-radius: 0 4px 4px 4px;
  padding: 24px;
}

.search-form-panel .form-select,
.search-form-panel .form-control {
  height: 43px;
  border-color: var(--border);
  border-radius: 0;
  font-size: 0.875rem;
  color: #8f8f8f;
}

.search-form-panel .form-select:focus,
.search-form-panel .form-control:focus {
  border-color: var(--border);
  box-shadow: none;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dots button.active {
  background: var(--primary);
  border-color: var(--primary);
}

.page-content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.page-content p:last-of-type {
  margin-bottom: 0;
}

/* Home intro image */
.home-intro-section {
  padding: 40px 0;
}

.home-feature-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.home-outro-section {
  padding: 20px 0 50px;
}

.home-outro-image-wrap {
  max-width: 85%;
  margin: 0 auto;
}

.home-feature-image-secondary {
  width: 100%;
  height: auto;
  display: block;
}

/* Home business previews */
.home-business-section {
  padding: 70px 0;
}

.home-business-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.home-business-section h3 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.home-business-section p {
  line-height: 1.75;
  margin-bottom: 1rem;
}

.home-business-image-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.home-business-image-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
  z-index: 1;
}

.home-business-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.home-business-image-wrap:hover img {
  transform: scale(1.03);
}

.home-business-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.home-business-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
}

.home-business-highlights img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.home-business-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.5rem 0 2rem;
}

.home-business-brands img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  padding: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-business-brands img:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(238, 86, 36, 0.15);
}

.home-business-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.home-business-link i {
  transition: transform 0.3s ease;
}

.home-business-link:hover i {
  transform: translateX(4px);
}

/* Section titles */
.section-title {
  margin-bottom: 2rem;
}

.section-title h3 {
  margin-bottom: 0;
}

/* Deal tabs */
.deal-tabs .nav-link {
  background: var(--light-bg);
  color: var(--secondary);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 10px 24px;
  margin-right: 8px;
}

.deal-tabs .nav-link.active {
  background: var(--primary);
  color: #fff;
}

/* Car cards */
.car-card {
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.car-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.car-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.car-card .card-body {
  padding: 16px;
}

.car-card .price {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}

.car-card .card-actions {
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  text-align: center;
}

.car-card .card-actions a {
  font-size: 0.8rem;
  margin: 0 8px;
}

.car-card .specs {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
}

.car-card .specs span {
  font-size: 0.78rem;
  margin-right: 12px;
}

/* Carousel */
.carousel-track-wrapper {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.carousel-track .carousel-item-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 260px;
}

.carousel-nav {
  display: flex;
  gap: 8px;
}

.carousel-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-nav button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Brand logos */
.brand-logos img {
  max-height: 50px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s;
}

.brand-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Compare section */
.compare-box {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

.compare-box img {
  max-height: 80px;
  margin-bottom: 12px;
}

.compare-box h6 {
  margin-bottom: 8px;
}

/* Advertise banner */
.ad-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 80px 0;
}

.ad-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(25, 31, 35, 0.85);
}

.ad-banner .container {
  position: relative;
  z-index: 1;
}

.ad-banner h3,
.ad-banner p {
  color: #fff;
}

/* Testimonial */
.testimonial-section {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 80px 0;
}

.testimonial-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(85, 85, 85, 0.9);
}

.testimonial-section .container {
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  text-align: center;
}

.testimonial-card .avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.testimonial-card .stars {
  color: var(--primary);
  margin-bottom: 12px;
}

/* Review cards */
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
}

.review-card .rating {
  color: var(--primary);
  margin-bottom: 12px;
}

/* News cards */
.news-card {
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s;
}

.news-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card .card-body {
  padding: 20px;
}

.news-card .date {
  font-size: 0.78rem;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
}

/* Subscribe */
.subscribe-section {
  background: var(--primary);
  padding: 40px 0;
}

.subscribe-section input {
  height: 48px;
  border: none;
  border-radius: 0;
}

.subscribe-section .btn {
  height: 48px;
  border-radius: 0;
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}

.subscribe-section .btn:hover {
  background: #000;
  border-color: #000;
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 40px;
}

.footer h6 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-address li {
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.footer-address a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-address a:hover {
  color: var(--primary);
}

.footer-logo-wrap {
  background: #fff;
  border-radius: 4px;
  padding: 10px 14px;
  line-height: 0;
}

.footer-logo {
  height: 42px;
  width: auto;
  max-width: 100%;
}

.footer-address-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 220px;
}

.footer-brands img {
  width: 100%;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
}

.footer-credit {
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  margin-left: 6px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Legal pages */
.legal-page {
  font-size: 0.9rem;
  line-height: 1.75;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-page ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.legal-page li {
  margin-bottom: 0.35rem;
}

.legal-updated {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.footer-social a:hover {
  color: var(--primary);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(238, 86, 36, 0.4);
  transition: background 0.3s;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: var(--primary-hover);
}

/* Inner pages */
.page-header {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 80px 0;
  text-align: center;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(25, 31, 35, 0.75);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 8px;
}

.page-header .breadcrumb {
  justify-content: center;
  margin-bottom: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.page-header .breadcrumb-item.active {
  color: var(--primary);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

.contact-info-box {
  background: var(--light-bg);
  padding: 30px;
  border-left: 4px solid var(--primary);
}

.contact-info-box i {
  color: var(--primary);
  width: 24px;
}

.service-icon-box {
  background: #fff;
  border: 1px solid var(--border);
  padding: 30px;
  text-align: center;
  height: 100%;
  transition: all 0.3s;
}

.service-icon-box:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-icon-box i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.service-icon-box .service-icon-img {
  height: 88px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}

.about-img {
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.stats-box {
  background: var(--primary);
  color: #fff;
  padding: 24px;
  text-align: center;
}

.stats-box h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 4px;
}

.listing-sidebar {
  background: var(--light-bg);
  padding: 24px;
}

.listing-sidebar .form-check-label {
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-brand {
    max-width: min(280px, 52vw);
  }

  .navbar-brand .site-logo {
    height: 44px;
  }

  .carousel-track .carousel-item-card {
    flex: 0 0 calc(50% - 10px);
  }

  .hero-section {
    min-height: 380px;
  }

  .hero-content {
    padding: 40px 0;
  }

  .search-tabs-vertical .nav-link {
    border-radius: 4px 4px 0 0 !important;
  }

  .search-form-panel {
    border-radius: 0 0 4px 4px;
  }
}

@media (max-width: 575px) {
  .navbar-brand {
    max-width: min(240px, 72vw);
  }

  .navbar-brand .site-logo {
    height: 36px;
  }

  .hero-section {
    min-height: 260px;
  }

  .hero-dots {
    bottom: 14px;
  }

  .hero-dots button {
    width: 12px;
    height: 12px;
  }

  .carousel-track .carousel-item-card {
    flex: 0 0 100%;
  }

  section {
    padding: 40px 0;
  }

  .home-business-highlights {
    grid-template-columns: 1fr;
  }

  .home-business-link {
    margin-top: 12px;
  }

  .home-outro-image-wrap {
    max-width: 100%;
  }
}
