/*!
Theme Name: Ford Theme
Theme URI: https://ford.com.kh/
Author: Chiva
Author URI: https://ford.com.kh/
Description: Ford Theme with modern mega menu navigation and responsive design
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ford-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Ford Theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* overwrite prototype styles one */
.text-bg-light {
  color: var(--bs-twilight) !important;
}

/* components 
---------------------------------------------- */

/* Header  */
.logged-in.admin-bar #main-header {
  box-shadow: none !important;
  top: 32px !important;
}

#main-header {
  box-shadow: none !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#utility-icons-container .btn-icon-svg {
  color: #fff;
}

.nav-link-base-color {
  color: var(--bs-dark) !important;
}

#desktop-links a.active-header {
  color: #fff !important;
}

#desktop-links .nav-link:focus {
  color: #fff !important;
}

#desktop-links .nav-link {
  color: #fff;
  outline: none;
  padding: 1.1rem 0;
  border-bottom: 4px solid transparent;
}

#desktop-links a:hover,
#desktop-links .nav-link-wrapper a:hover {
  border-bottom: 4px solid var(--bs-dark) !important;
}

/* Active state when dropdown or mega menu is open */
body.dropdown-menu-open #shop-link.nav-link.menu-active,
body.dropdown-menu-open #support-link.nav-link.menu-active,
body.mega-menu-open #vehicles-link.nav-link {
  color: var(--bs-dark) !important;
  border-bottom: 4px solid var(--bs-dark) !important;
}

/* Override for scrolled or hovered state */
#main-header.scrolled-or-hovered #desktop-links a:hover,
#main-header.scrolled-or-hovered #desktop-links .nav-link-wrapper a:hover {
  border-bottom: 4px solid var(--bs-dark) !important;
}

#main-header.scrolled-or-hovered #desktop-links .desktop-dropdown-menu.show a:hover,
#main-header.scrolled-or-hovered #desktop-links .desktop-dropdown-menu.show .nav-link-wrapper a:hover {
  border-bottom: 1px solid var(--bs-dark) !important;
}

#main-header.scrolled-or-hovered #shop-link.nav-link.menu-active,
#main-header.scrolled-or-hovered #support-link.nav-link.menu-active,
#main-header.scrolled-or-hovered #vehicles-link.nav-link.menu-active {
  border-bottom: 4px solid var(--bs-dark) !important;
}

/* Scrolled, mega menu, or dropdown menu active state */
#main-header.scrolled-or-hovered,
body.mega-menu-open #main-header,
body.dropdown-menu-open #main-header {
  background-color: #fff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Nav link white and icon colors for mega menu and dropdown menu states */
body.mega-menu-open .nav-link-white,
body.mega-menu-open #utility-icons-container .btn-icon-svg,
body.dropdown-menu-open .nav-link-white,
body.dropdown-menu-open #utility-icons-container .btn-icon-svg {
  color: var(--bs-dark) !important;
}

/* Nav link white hover/active state for menus and scrolled state */
body.mega-menu-open a.nav-link-white:hover,
body.mega-menu-open a.nav-link-white.active-header,
body.dropdown-menu-open a.nav-link-white:hover,
body.dropdown-menu-open a.nav-link-white.active-header,
#main-header.scrolled-or-hovered a.nav-link-white:hover,
#main-header.scrolled-or-hovered a.nav-link-white.active-header {
  border-bottom-color: #fff !important;
  color: var(--bs-dark) !important;
}

/* Desktop links active-header for mega menu and dropdown menu */
body.mega-menu-open #desktop-links a.active-header,
body.dropdown-menu-open #desktop-links a.active-header {
  border-bottom: 4px solid var(--bs-dark) !important;
  color: var(--bs-dark) !important;
}

/* Change link/icon color for mega menu and dropdown menu states */
body.mega-menu-open .nav-link-white,
body.mega-menu-open #utility-icons-container .btn-icon-svg,
body.dropdown-menu-open .nav-link-white,
body.dropdown-menu-open #utility-icons-container .btn-icon-svg,
#main-header.scrolled-or-hovered .nav-link-white,
#main-header.scrolled-or-hovered #utility-icons-container .btn-icon-svg {
  color: var(--bs-dark) !important;
}

.mega-menu.active {
  transform: translateX(0);
  visibility: visible;
}

.mega-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  background-color: #fff;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

/* Icon reset for utility buttons */
.btn-icon {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}
section, .section {
  overflow-x: hidden;
}

.container.ratio.ratio-21x9 {
  max-width: calc(100% - 2rem);
  width: 100%;
}

.col-6 svg,
.col-6 img {
  max-width: 100%;
  height: auto;
}

[class*="offset-lg"] {
  max-width: 100%;
}

.bg-primary.py-5 .container .bg-secondary.p-4 {
  padding: 1rem !important;
}

.ratio iframe {
  max-width: 100%;
}
/* ------------------------------------------------ */
/* Desktop Specific Styles */
/* ------------------------------------------------ */
@media (min-width: 992px) {

  /* Desktop Dropdown Menu for Shop & Support */
  .desktop-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bs-white);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    /* transition: opacity 0.3s ease-out, transform 0.3s ease-out; */
    z-index: 1040;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
  }

  .desktop-dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .desktop-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--link-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid var(--bs-gray-300);
  }

  .desktop-dropdown-menu a:last-child {
    border-bottom: none;
  }

  .desktop-dropdown-menu a:hover {
    background-color: var(--bs-white);
    color: var(--bs-twilight);
  }

  .dropdown-separator {
    height: 8px;
    background-color: var(--bs-gray-200);
    margin: 0.5rem 0;
  }

  .nav-link-wrapper {
    position: relative;
  }

  .mega-menu {
    position: absolute;
    top: 64px;
    height: auto;
    width: 100%;
    transform: translateY(10px);
    /* transition: opacity 0.3s ease-out, transform 0.3s ease-out; */
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
    display: block;
    overflow: hidden;
    background-color: var(--bs-white);
  }

  .mega-menu.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    pointer-events: auto;
    position: fixed;
    top: 63px;
    left: 0;
    right: 0;
    z-index: 1045;
  }

  .mobile-slide-view {
    display: none !important;
  }

  #desktop-view-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 1.5rem 0 1.5rem 0;
  }

  #desktop-sidebar {
    width: 30%;
    min-width: 200px;
    padding: 0;
  }

  #desktop-content-area {
    width: 70%;
    padding: 0 2rem;
    background-color: var(--bs-white);
  }

  .menu-item-container {
    cursor: pointer;
    padding: 0.75rem 0.25rem 0.75rem 0;
    transition: all 0.2s ease;
    color: var(--link-gray);
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  /* .menu-item-wrapper {
                padding: 0 1.5rem;
             } */
  .menu-item-container:not(.active-menu) {
    border-bottom: 1px solid var(--bs-gray-300);
  }

  .menu-item-container.active-menu {
    color: var(--bs-primary) !important;
    border-bottom: 1px solid var(--bs-primary);
    font-weight: 600;
  }
  .content-panel .menu-item {
      font-size: 1rem !important;
      font-weight: 600;
    }
    .content-panel .menu-sub-item {
      font-size: 1rem !important;
      font-weight: 500;
    }

  #vehicle-category-list-desktop li:last-child .menu-item-wrapper {
    border-bottom: none !important;
  }

  .content-panel {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    opacity: 0;
    transform: translateY(10px);
    display: none;
  }

  .content-panel.active-content {
    opacity: 1;
    transform: translateY(0);
    display: block !important;
  }

  .vehicle-card {
    text-align: center;
  }

  .vehicle-card img {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
  }

  .vehicle-card-badge {
    font-size: 0.75rem;
    color: var(--bs-primary);
    display: block;
    margin-top: 0.25rem;
    font-weight: 500;
  }
}

/* ------------------------------------------------ */
/* Mobile Specific Styles */
/* ------------------------------------------------ */
@media (max-width: 991.98px) {
  #main-header {
    background-color: var(--bs-white);
  }

  #utility-icons-container .btn-icon-svg {
    color: var(--bs-dark);
  }

  #mobile-main-menu {
    overflow-y: auto;
    flex-grow: 1;
    padding-bottom: 2rem;
  }

  .mobile-slide-view {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-color: var(--bs-white);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .mobile-slide-view.active {
    transform: translateX(-100%);
  }

  .mobile-accordion-item {
    border-bottom: 1px solid var(--bs-gray-300);
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--bs-dark);
    font-size: 1.1rem;
    font-weight: 600;
  }

  .mobile-accordion-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--bs-dark);
    font-size: 1.1rem;
    font-weight: 600;
  }

  .mobile-sub-link {
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--bs-gray-600);
    border-bottom: 1px solid var(--bs-gray-300);
    font-size: 1rem;
  }

  .mobile-accordion-item.open-state {
    color: var(--bs-dark);
  }
}

/* Custom Logo Styles */
.custom-logo-mobile img,
.custom-logo-mobile-menu img {
  width: 100px;
  height: auto;
}

.custom-logo-desktop img {
  width: 80px;
  height: auto;
}

.custom-logo-mobile a,
.custom-logo-desktop a,
.custom-logo-mobile-menu a {
  display: inline-block;
}

/* ------------------------------------------------ */
/* Live Search Styles */
/* ------------------------------------------------ */
#live-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1060;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#live-search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#live-search-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1070;
  background-color: var(--bs-white);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#live-search-container.active {
  transform: translateY(0);
}

.search-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #dee2e6;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  background-color: var(--bs-gray-200);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--bs-primary, #1351d8);
  box-shadow: 0 0 0 3px rgba(19, 81, 216, 0.15);
  background-color: var(--bs-white);
}

.search-input-wrapper svg {
  flex-shrink: 0;
  color: #6c757d;
}

.search-input-wrapper input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  padding: 0.4rem 0.75rem;
  font-size: 1rem;
  color: #212529;
}

.search-input-wrapper input::placeholder {
  color: #adb5bd;
}

#search-close-btn {
  background: none;
  border: none;
  color: var(--bs-dark);
  cursor: pointer;
  padding-inline: 8px;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}

#search-close-btn:hover {
  color: var(--bs-dark);
  background-color: var(--bs-gray-200);
}

#search-results {
  max-height: 50vh;
  overflow-y: auto;
  margin-top: 1rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #212529;
  transition: background-color 0.15s ease;
}

.search-result-item:hover {
  background-color: var(--bs-gray-200);
  color: var(--bs-dark);
}

.search-result-item img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.375rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.search-result-item .result-placeholder-img {
  width: 60px;
  height: 40px;
  border-radius: 0.375rem;
  margin-right: 1rem;
  flex-shrink: 0;
  background-color: var(--bs-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.search-result-info span {
  font-size: 0.8rem;
  color: #6c757d;
}

#search-loading {
  display: none;
  text-align: center;
  padding: 1.5rem;
  color: #6c757d;
}

#search-no-results {
  display: none;
  text-align: center;
  padding: 1.5rem;
  color: #6c757d;
}

/* Button styles  */
.btn-primary {
  font-weight: 700;
  font-size: 14px;
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-white) !important;
  padding: 8px 7px;
}

.btn-primary .btn-icon {
  border-radius: 10px;
}

.btn-secondary {
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
  color: var(--bs-white) !important;
}

.btn-light {
  background-color: var(--bs-white) !important;
  border-color: var(--bs-white) !important;
  color: var(--bs-dark) !important;
  font-weight: 700 !important;
}

.btn-outline-primary {
  color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
}

.filter-btn.active {
  color: var(--bs-white) !important;
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
}

.filter-btn:not(.active):hover {
  color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
  background-color: transparent !important;
}

/* Card Banner*/
.card-img {
  height: 50vh;
}

.card-banner {
  position: relative;
  height: 75%;
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 0;
}

.card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(hsla(0, 0%, 25%, 0), hsla(220, 8%, 28%, 0.7)); */
}

.card-img .card-img-content {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(9.9px);
  -webkit-backdrop-filter: blur(9.9px);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.card-img .overlay {
  background: linear-gradient(0deg, rgba(0, 9, 91, 1) 0%, rgb(0 9 91 / 90%) 25%, rgba(255, 255, 255, 0) 40%);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Feature Tabs  */
.card-content {
  color: var(--bs-twilight);
}

.card-new .card-content {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}


.ford-overlay { background: none; }

.card-new .card-content .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0) 100%);
  z-index: 0;
  pointer-events: none;
}

.card-new .card-content > *:not(.card-overlay) {
  position: relative;
  z-index: 1;
}

/* hero Carousel  */
.hero-container {
  background-color: var(--bs-white);
  overflow: hidden;
  position: relative;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.hero-slide.loaded::before {
  opacity: 0;
  pointer-events: none;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  overflow: hidden;
}

.hero-slide.loaded img {
  opacity: 1;
}

.hero-container {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
  margin-inline: auto;
  max-width: 540px;
  margin-top: 5rem;
}

.hero-container .slick-dots {
  display: block !important;
  margin-block: 40px !important;
}

.hero-slide img {
  border-radius: 10px;
}

.hero-carousel-caption h1 {
  font-size: 24px;
}
.ui-controls {
  position: absolute;
  bottom: 12px;
  right: 50%;
  transform: translateX(50%);
  z-index: 20;
  display: none;
  gap: 12px;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-carousel-caption h1 {
  font-family: var(--bs-font-sans-serif);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  /* animation handled by AOS */
}

.hero-carousel-caption p {
  font-family: var(--bs-font-sans-serif);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  opacity: 0.9;
  /* animation handled by AOS */
}

.custom-indicators {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-indicators button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.4);
  padding: 0;
  transition: 0.3s;
  cursor: pointer;
}

.custom-indicators button.active {
  background-color: #fff;
  width: 20px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.progress-container {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.progress-ring__circle {
  fill: transparent;
  stroke-width: 2;
}

/* Background track */
.progress-ring__circle--bg {
  stroke: rgba(255, 255, 255, 0.2);
}

/* Animated progress track */
.progress-ring__circle--track {
  stroke: var(--bs-white);
  stroke-linecap: round;
  /* stroke-dasharray & stroke-dashoffset driven by JS */
}

.control-btn {
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation Arrows */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  color: #fff;
  font-size: 1.2rem;
}

.hero-nav-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
}

.hero-nav-btn:focus {
  outline: none;
  box-shadow: none;
}

.hero-nav-prev {
  left: 3%;
}

.hero-nav-next {
  right: 3%;
}

/* Slick Slider  */
.slick-dots li button:before {
  display: none;
}

.slick-dots li {
  margin-inline: 5px !important;
  width: auto !important;
  height: auto !important;
}

.slick-dots li button {
  width: 8px !important;
  height: 8px !important;
  background-color: #ccc !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 0;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.slick-dots li.slick-active button {
  background-color: var(--bs-secondary) !important;
  width: 25px !important;
  border-radius: 20px !important;
  overflow: hidden;
  flex-shrink: 0;
}

/* Page Hero  */
/* Hero */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #00095B 0%, #0142BD 60%, #066FEF 100%);
  overflow: hidden;
  /* padding: 10rem 0 5rem; */
  min-height: 520px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .9;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, .06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.03em;
}

.page-hero .hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .78);
  max-width: 560px;
  line-height: 1.6;
}

.page-hero .hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.page-hero .stat-item {
  text-align: left;
}

.page-hero .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.page-hero .stat-label {
  font-size: .78rem;
  color: rgba(255, 255, 255, .65);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .25rem;
}

.page-hero .hero-divider {
  width: 1px;
  background: rgba(255, 255, 255, .2);
  align-self: stretch;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
/* Card New Styles */

.card-new {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
}

.card-new img {
  transition: transform 0.2s ease;
  border-radius: 0.5rem;
  overflow: hidden;
}

.card-new:is(:hover, :focus) img {
  transform: scale(1.03);
}

.card-new .card-content {
  display: flex;
  justify-content: space-between;
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0px;
  z-index: 1;
  background: none;
  box-shadow: none;
  /* backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px); */
}

.card-new .card-subtitle {
  color: var(--bs-white);
  font-family: var(--bs-font-sans-serif);
  font-size: 20px;
}

.card-new .card-title {
  color: var(--bs-dark);
  font-family: var(--bs-font-sans-serif);
  font-size: 20px;
}

.icon-lg {
  width: 2.5rem;
  height: 2.5rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.service-bg {
  background: linear-gradient(to bottom, white 0%, var(--light-blue-bg) 100%);
}

.icon-circle {
  height: 80px;
  width: 80px;
  background-color: var(--bs-primary);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  margin-bottom: 1.5rem;
}

.service-card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  background-color: white;
  border-radius: 1rem !important;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.service-card:hover .icon-circle {
  transform: scale(1.05);
  box-shadow: 0 15px 30px -5px rgba(30, 64, 175, 0.45);
}
.ford-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--bs-secondary);
  margin-bottom: 1.1rem
}

.ford-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--bs-secondary)
}

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

.svc-hero {
  position: relative;
  min-height: 520px;
  background-color: var(--bs-primary);
  overflow: hidden;
}

.svc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 9, 91, .85) 0%, rgba(0, 9, 91, .4) 100%);
}

.svc-badge {
  background-color: var(--bs-accent);
  color: #fff;
  font-size: .75rem;
  letter-spacing: .1em;
  padding: .4em .9em;
  border-radius: 2rem;
}

/* ── Benefits Strip ─────────────────────── */
.svc-benefits {
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
}

.svc-benefits__row {
  border-radius: 1rem;
}

.svc-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2.25rem 2rem;
  transition: filter .2s;
}

.svc-benefit-item--primary {
  background-color: var(--bs-primary);
  color: #fff;
}

.svc-benefit-item--dark {
  background-color: var(--bs-dark);
  color: #fff;
}

.svc-benefit-item--accent {
  background-color: var(--bs-secondary);
  color: #fff;
}

.svc-benefit-item__icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  opacity: .9;
}

.svc-benefit-item__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}

.svc-benefit-item__desc {
  font-size: .875rem;
  opacity: .8;
  margin: 0;
  line-height: 1.55;
}

/* ── Section eyebrow ────────────────────── */
.svc-section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bs-secondary);
}

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

/* ── Call Cards ─────────────────────────── */
.svc-call-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
  height: 100%;
}

.svc-call-card:hover {
  box-shadow: 0 12px 36px rgba(0, 9, 91, .12);
  transform: translateY(-4px);
}

.svc-call-card__city {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bs-accent);
}

.svc-call-card__number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-primary);
  text-decoration: none;
  letter-spacing: -.01em;
  transition: color .2s;
}

.svc-call-card__number:hover {
  color: var(--bs-secondary);
}

.svc-call-card__badge {
  display: inline-block;
  background-color: #eef4ff;
  color: var(--bs-accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3em .85em;
  border-radius: 2rem;
}

/* ── Checklist ──────────────────────────── */
.svc-checklist li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  font-size: .95rem;
  color: #333;
  border-bottom: 1px solid #eee;
}

.svc-checklist li:last-child {
  border-bottom: none;
}

.svc-checklist .bi-check-circle-fill {
  color: var(--bs-secondary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Stat Cards ─────────────────────────── */
.svc-stat-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .4rem;
  transition: box-shadow .25s;
}

.svc-stat-card:hover {
  box-shadow: 0 8px 28px rgba(0, 9, 91, .10);
}

.svc-stat-card--accent {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.svc-stat-card--accent .svc-stat-card__num,
.svc-stat-card--accent .svc-stat-card__label {
  color: #fff !important;
}

.svc-stat-card__num {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--bs-primary);
  letter-spacing: -.04em;
  line-height: 1;
}

.svc-stat-card__label {
  font-size: .8rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── CTA Banner ─────────────────────────── */
.svc-cta {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.footer {
  color: var(--text-color);
  background-color: #f0f0f0;
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
}

/* Top 'Down to Business' Section */
.footer-top-business {
  background-color: #00095B;
  color: #ffffff;
  padding: 40px 0;
}

.footer-top-business h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.business-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
}

.business-link:hover {
  color: #ffffff;
  opacity: 0.8;
}

.business-link i {
  font-size: 1.5rem;
  margin-right: 15px;
}

.nav-tabs {
  gap: 16px;
  border-bottom: none;
}

.nav-tabs .nav-link {
  border: none;
  color: #444546ff;
  background-color: transparent;
  border-bottom: 2px solid #444546ff;
  padding-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  color: #3b82f6;
}

.nav-tabs .nav-link.active {
  color: #3b82f6;
  background-color: transparent;
  border-bottom-color: #3b82f6;
}

.nav-tabs .nav-link:focus {
  outline: none;
}

.tab-content .tab-pane {
  padding-top: 1.5rem;
  animation: fadeIn 0.5s ease;
}

/* Single Vehicle Post Styles */
.product-navbar .nav-link.active {
  color: #000;
  border-bottom: 2px solid #000;
}

.single-vehicle-post .vehicle-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.single-vehicle-post .vehicle-details {
  font-size: 1.125rem;
  margin-bottom: 30px;
}

.single-vehicle-post .vehicle-description {
  font-size: 1rem;
  line-height: 1.6;
}
/* Design Tabs Styling */
#designTabs .nav-link {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 10px 20px;
  position: relative;
  transition: all 0.3s ease;
}

#designTabs .nav-link:hover {
  color: #fff;
}

#designTabs .nav-link.active {
  background: transparent;
  color: #fff;
}

#designTabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
}

/* Tab Content Transition */
.tab-pane {
  transition: opacity 0.3s ease-in-out;
}
/* Disclosures Section */
.footer-disclosures {
  border-bottom: 1px solid #e0e0e0;
}
/* Ford Specifications */
.accordion-button {
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: capitalize;
}

.accordion-button.collapsed { color: var(--bs-primary); }
.accordion-button:not(.collapsed) { color: var(--bs-secondary); }
.accordion-button:focus {
  box-shadow: none !important;
}

.accordion-button.collapsed::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2Z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23052c65'%3e%3cpath fill-rule='evenodd' d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8Z'/%3e%3c/svg%3e");
  transform: none;
}

.disclosure-toggle {
  cursor: pointer;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
}

.disclosure-toggle .disclosure-icon {
  transition: none;
}

.disclosure-toggle:not(.collapsed) .disclosure-icon::before {
  content: "\F63B";
}

.disclosure-content {
  padding-bottom: 20px;
  font-size: 0.875rem;
  color: #555;
}

.popular-links {
  margin: 30px 0;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.popular-links strong {
  margin-right: 15px;
}

.popular-links a {
  color: #1a1a1a;
  text-decoration: none;
  margin-right: 20px;
  font-weight: 500;
}

.popular-links a:hover {
  text-decoration: underline;
}

.footer-main .footer-title {
  font-weight: 700;
  font-size: 1rem !important;
  margin-bottom: 15px;
}

.footer-main .list-unstyled a {
  color: #555;
  text-decoration: none;
  font-size: 1rem;
  line-height: 2;
  transition: color 0.3s;
}

.footer-main .list-unstyled a:hover {
  color: #00095B;
  text-decoration: underline;
}

/* Bottom Bar Section */
.footer-bottom-bar {
  padding: 30px 0;
  border-top: 1px solid #e0e0e0;
}

.live-expert-link {
  color: #1a1a1a !important;
  text-decoration: none;
  font-weight: 500;
}

.live-expert-link:hover {
  text-decoration: underline;
}

.social-links .follow-text {
  font-weight: 500;
  margin-right: 15px;
}

.social-links a {
  color: #1a1a1a;
  font-size: 1.5rem;
  margin-left: 15px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.social-links a:hover {
  opacity: 0.7;
}

/* Copyright Section */
.footer-copyright {
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
  font-size: 0.75rem;
  color: #555;
}

.footer-copyright a {
  color: #555;
  text-decoration: none;
  margin: 0 10px;
}

.footer-copyright a:hover {
  text-decoration: underline;
}

.ford-logo-footer {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00095B;
  text-decoration: none;
  font-style: italic;
}

/* Back to top button */
#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  border: none;
  outline: none;
  background-color: #333;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, opacity 0.5s;
}

#backToTopBtn:hover {
  background-color: #555;
}
/*  Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .carousel-feature .carousel-slide {
    flex: 0 0 520px;
  }
}

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

  .btn-primary {
    background-color: var(--bs-white) !important;
    border-color: var(--bs-white) !important;
    color: var(--bs-primary) !important;
    border-radius: 50px;
    padding: 10px 20px;
  }

  .carousel-feature .carousel-slide {
    flex: 0 0 340px;
  }

  .slick-dots {
    display: none !important;
  }

  .slick-dotted.slick-slider {
    margin-bottom: 0 !important;
  }

  .hero-container {
    padding-right: 0;
    padding-left: 0;
    margin-top: 4rem;
    max-width: 100%;
    position: relative;
    background-color: #1a1a1a;
  }

  .hero-carousel-caption {
    position: absolute;
    bottom: 0px;
    left: 14%;
    right: auto;
    text-align: left;
    padding: 0;
    text-shadow: none;
    color: var(--bs-white);
    z-index: 10;
  }

  .hero-slide img {
    border-radius: 0;
  }

  .card-img {
    height: auto;
  }

  .card-img .card-img-content {
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 30px;
  }

}

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

  .ui-controls {
    right: 5%;
    bottom: 20px;
    transform: none;
    gap: 16px;
    padding: 7px 16px;
  }

  .hero-carousel-caption {
    position: absolute;
    bottom: 30px;
    left: 14%;
    right: auto;
    text-align: left;
    padding: 0;
    text-shadow: none;
    color: var(--bs-white);
    z-index: 10;
  }
  .ford-overlay {
    background: linear-gradient(0deg,rgba(0, 9, 91, 0.6) 0%, rgba(0, 9, 91, 0) 100%) ! important;
  }

  /* ui-controls: larger padding and right-anchored on desktop */
  .ui-controls {
    display: flex;
    right: 5%;
    bottom: 30px;
    transform: none;
    gap: 20px;
    padding: 8px 18px;
  }

  .hero-container {
    margin-top: 0px;
  }

  #brandCarousel,
  #brandCarousel .slick-list,
  #brandCarousel .slick-track {
    height: 100%;
  }

  #brandCarousel .slick-dots {
    display: none !important;
  }

  .card-new .card-content {
    color: var(--bs-light);
    background: linear-gradient(to top,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0.00) 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  }


  .carousel-feature .carousel-slide {
    flex: 0 0 960px;
  }

  .carousel-slide.active {
    margin-left: 0px !important;
  }

  .card-new .card-content {
    position: absolute;
    padding: 30px;

  }

  .card-new .card-title {
    color: var(--bs-white);
    font-family: var(--bs-font-sans-serif);
    font-size: 24px;
  }

  .card-new .ratio {
    --bs-aspect-ratio: 42.8571428571%;
    /* aspect-ratio: 21 / 9 !important; */
  }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .carousel-feature .carousel-slide {
    flex: 0 0 1140px;
  }

  .carousel-slide.active {
    margin-left: 0px !important;
  }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .carousel-feature .carousel-slide {
    flex: 0 0 1320px;
  }
}

/* ------------------------------------------------ */
/* Car Configurator (content-viewer) */
/* ------------------------------------------------ */
.car-configurator {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
}

/* Top tab bar — small screens only */
.tab-bar-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none; /* let clicks through to children */
}

.tab-bar-top > * {
  pointer-events: auto;
}

.car-viewer-area {
  flex-grow: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* On small screens, push viewer down so top bar doesn't overlap */
@media (max-width: 767.98px) {
  .car-viewer-area {
    margin-top: 56px; /* roughly the height of the top tab bar */
  }
}

/* Tab Buttons */
.tab-button {
  color: #000;
  background-color: transparent;
  padding: 4px 15px;
  font-size: 14px;
  transition: background-color 0.2s;
}

.tab-button.active {
  background-color: #000;
  color: #fff;
}

/* Color Palette Swatches */
.color-palette-item {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, outline-color 0.15s;
}

.color-palette-item.active {
  border-color: #333;
  outline: 2px solid #000;
  outline-offset: 1px;
}

#build-price-button {
  border: 1px solid #0d6efd;
  color: #0d6efd;
  border-radius: 8px;
  transition: all 0.2s;
}

#build-price-button:hover {
  background-color: #e6f0ff;
}

/* Image loading overlay */
.car-image-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(248, 249, 250, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 5;
}

.car-image-loader.is-loading {
  opacity: 1;
  pointer-events: auto;
}

.car-image-loader__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: #000;
  border-radius: 50%;
  animation: cv-spin 0.7s linear infinite;
}

@keyframes cv-spin {
  to {
    transform: rotate(360deg);
  }
}