/*
Theme Name: Ensure Automobiles
Theme URI: https://ensureautomobiles.com
Author: Md. Rajaul Islam / Ensure Automobiles
Author URI: https://ensureautomobiles.com
Description: Premium Custom Commercial Vehicle Dealership Theme for Ensure Automobiles. Built for fast loading, SEO, and user-friendly inventory management via WordPress Admin.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ensure-automobiles
*/

/* ===== CSS RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red:    #C0262A;
  --red-dk: #9e1f22;
  --black:  #111111;
  --dark:   #1a1a1a;
  --gray:   #f5f5f5;
  --text:   #333333;
  --muted:  #666666;
  --white:  #ffffff;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --font: 'Inter', sans-serif;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-title span { color: var(--red); }

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

.badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover { background: var(--red-dk); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: #333; transform: translateY(-2px); }

.btn-wa {
  background: #25D366;
  color: var(--white);
}
.btn-wa:hover { background: #1ebe5b; transform: translateY(-2px); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9990;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  transition: var(--transition);
}

/* WordPress Admin Bar Compatibility */
body.admin-bar #wpadminbar {
  z-index: 999999 !important;
}
body.admin-bar #navbar {
  top: 32px;
}
@media screen and (max-width: 782px) {
  #wpadminbar {
    position: fixed !important;
    top: 0 !important;
    z-index: 999999 !important;
  }
  body.admin-bar #navbar {
    top: 46px !important;
  }
}
@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed !important;
    top: 0 !important;
    z-index: 999999 !important;
  }
  body.admin-bar #navbar {
    top: 46px !important;
  }
}

/* Ensure no gap when logged out */
body:not(.admin-bar) #navbar {
  top: 0 !important;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}
.nav-logo img,
.nav-logo .site-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
}
.nav-logo-text {
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.nav-logo-text .brand-main {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.nav-logo-text .brand-main span { color: var(--red); }
.nav-logo-text .brand-sub {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
}

.nav-links,
.menu-primary-navigation-menu-container > ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li,
.menu-primary-navigation-menu-container li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a,
.menu-primary-navigation-menu-container a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
  text-decoration: none;
  display: inline-block;
  outline: none;
}
.nav-links a:focus,
.menu-primary-navigation-menu-container a:focus {
  outline: none;
}
.nav-links a::after,
.menu-primary-navigation-menu-container a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links li:hover > a,
.nav-links a.active,
.menu-primary-navigation-menu-container a:hover,
.menu-primary-navigation-menu-container li:hover > a,
.menu-primary-navigation-menu-container a.active {
  color: var(--red);
}
.nav-links a:hover::after,
.nav-links li:hover > a::after,
.menu-primary-navigation-menu-container a:hover::after,
.menu-primary-navigation-menu-container li:hover > a::after {
  transform: scaleX(1);
}
.nav-links a:focus:not(:hover)::after,
.menu-primary-navigation-menu-container a:focus:not(:hover)::after {
  transform: scaleX(0);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 48px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 16px 20px 24px;
  border-top: 1px solid #eee;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  transition: color var(--transition);
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--red);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Adjust Hero height when logged into WordPress */
body.admin-bar #hero {
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
}
@media screen and (max-width: 782px) {
  #hero {
    min-height: 480px;
  }
  body.admin-bar #hero {
    height: calc(100vh - 46px);
    height: calc(100dvh - 46px);
    min-height: 480px;
  }
}
@media screen and (max-width: 480px) {
  #hero {
    min-height: 440px;
  }
  body.admin-bar #hero {
    min-height: 440px;
  }
}

/* --- Background Slider --- */
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 8s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.0);
}

/* --- Overlay --- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.65) 100%);
  z-index: 1;
}

/* --- Content --- */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 16px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.2rem, 8vw, 4.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-title .red-word {
  color: var(--red);
  display: block;
}
.hero-tagline {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  font-weight: 400;
  letter-spacing: 0.3px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* --- Dots --- */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
@media (max-width: 600px) {
  .hero-dots {
    bottom: 20px;
  }
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
}
.hero-dot.active {
  background: var(--white);
  transform: scale(1.4);
}


/* ===== STATS BAR ===== */
#stats {
  background: var(--black);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(192,38,42,0.15); }
.stat-icon {
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 4px;
}
.stat-item h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}
.stat-item p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* ===== ABOUT ===== */
#about {
  padding: 96px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  border-radius: var(--radius);
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top;
  box-shadow: var(--shadow);
}
.about-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--red);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(192,38,42,0.5);
}
.about-img-badge .big { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.about-img-badge .small { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}
.about-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
}
.about-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--text);
}
.about-point i {
  color: var(--red);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Smooth scrolling and anchor offset */
html {
  scroll-behavior: smooth;
}
section[id],
#hero,
#about,
#vehicles,
#services,
#why,
#trust,
#contact {
  scroll-margin-top: 85px;
}
body.admin-bar section[id],
body.admin-bar #vehicles,
body.admin-bar #about,
body.admin-bar #services,
body.admin-bar #contact {
  scroll-margin-top: 118px;
}
@media screen and (max-width: 782px) {
  body.admin-bar section[id],
  body.admin-bar #vehicles {
    scroll-margin-top: 132px;
  }
}
@media screen and (max-width: 600px) {
  body.admin-bar section[id],
  body.admin-bar #vehicles {
    scroll-margin-top: 85px;
  }
}

/* ===== VEHICLES ===== */
#vehicles {
  padding: 96px 0;
  background: var(--gray);
}
.vehicles-carousel-wrapper {
  position: relative;
  width: 100%;
}
.vehicles-carousel-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
  padding: 8px 4px 16px 4px;
  box-sizing: border-box;
  transition: height 0.35s ease;
}
.vehicles-slider-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  will-change: transform;
}
/* Fallback if JS not run yet */
.vehicles-slider-track.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.vehicles-page {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-content: start;
  box-sizing: border-box;
}
.vehicle-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
}
.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.vehicle-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #222;
}
.vehicle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.vehicle-card:hover .vehicle-img img { transform: scale(1.06); }
.vehicle-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}
.vehicle-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.vehicle-brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 4px;
}
.vehicle-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}
.vehicle-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.vehicle-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--muted);
}
.vehicle-spec i { color: var(--red); font-size: 0.78rem; }
.vehicle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}
.vehicle-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red);
}
.vehicle-price .label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  display: block;
  margin-bottom: 1px;
}

/* Carousel Controls Bar (Prev Button, Pagination Dots, Next Button) */
.vehicles-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}
.v-nav-btn {
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.v-nav-btn:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 6px 20px rgba(192,38,42,0.35);
  transform: translateY(-2px);
}
.v-nav-btn.disabled,
.v-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* Pagination Dots */
.vehicles-pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.v-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d4d4;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}
.v-dot:hover {
  background: #aaa;
}
.v-dot.active {
  width: 28px;
  border-radius: 10px;
  background: var(--red);
}
.v-dot:hover {
  background: #aaa;
}
.v-dot.active {
  width: 28px;
  border-radius: 10px;
  background: var(--red);
}

.vehicles-cta {
  text-align: center;
  margin-top: 48px;
}

/* ===== SERVICES ===== */
#services {
  padding: 96px 0;
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px;
  height: 64px;
  background: #fef2f2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--red);
  margin-bottom: 20px;
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: var(--red); color: var(--white); }
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.service-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text);
}
.service-list li i { color: var(--red); font-size: 0.75rem; }

/* ===== WHY CHOOSE US ===== */
#why {
  padding: 96px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.why-bg {
  position: absolute;
  inset: 0;
  background-image: url('../image/hero_option1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}
.why-inner { position: relative; z-index: 2; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.why-card:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-4px);
}
.why-card i {
  font-size: 2.2rem;
  color: var(--red);
  margin-bottom: 16px;
  transition: color var(--transition);
}
.why-card:hover i { color: var(--white); }
.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.why-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.why-card:hover p { color: rgba(255,255,255,0.85); }

/* ===== TESTIMONIAL / DELIVERY SLIDER ===== */
#trust {
  padding: 96px 0;
  background: var(--gray);
}
.slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #000;
}
.slides-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.slide {
  min-width: 100%;
  position: relative;
}
.slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top;
  display: block;
  opacity: 0.92;
}
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
  padding: 28px 24px 20px;
  color: var(--white);
}
.slide-caption .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.slide-caption h4 {
  font-size: 1rem;
  font-weight: 700;
}
.slide-caption p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: none; border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 10;
}
.slider-btn:hover { background: var(--red); }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.slider-dot.active { background: var(--red); transform: scale(1.3); }

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.trust-content { }
.delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.delivery-badge i { font-size: 0.9rem; }
.trust-content blockquote {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  border-left: 4px solid var(--red);
  padding-left: 20px;
  margin: 20px 0 28px;
}
.trust-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.trust-num {
  text-align: center;
  padding: 20px 10px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.trust-num .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.trust-num .lbl {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}


/* ===== CONTACT ===== */
#contact {
  padding: 96px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info { }
.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 24px;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item-icon {
  width: 48px;
  height: 48px;
  background: #fef2f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--red);
  flex-shrink: 0;
}
.contact-item-text .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
}
.contact-item-text a,
.contact-item-text p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.5;
}
.contact-item-text a:hover { color: var(--red); }

.contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow);
  margin-top: 28px;
}

/* Contact Form */
.contact-form-wrap h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}
.contact-form-wrap .sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; justify-content: center; padding: 15px; font-size: 1rem; }

/* ===== FOOTER ===== */
#footer {
  background: var(--black);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 4px;
}
.footer-brand-name .main {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--white);
}
.footer-brand-name .main span { color: var(--red); }
.footer-brand-name .sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--red); }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--red); }
.footer-col ul li a i { margin-right: 6px; font-size: 0.75rem; }

.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-contact-item i {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: var(--red); }

/* ===== FLOATING WHATSAPP ===== */
.float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-wa 2s infinite;
}
.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.7);
  animation: none;
}
@keyframes pulse-wa {
  0%  { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.9); }
  100%{ box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
}

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 98px;
  right: 28px;
  z-index: 999;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(192,38,42,0.5);
  transition: var(--transition);
}
#scrollTop:hover { background: var(--red-dk); }
#scrollTop.show { display: flex; }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(4) { border-right: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { order: -1; }
  .about-img-wrap img { height: 320px; }

  .vehicles-grid,
  .vehicles-slider-track.vehicles-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicles-page { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-logo { flex: 1 1 auto; min-width: 0; }
  .nav-links, .nav-cta, .menu-primary-navigation-menu-container { display: none !important; }
  .hamburger { display: flex !important; margin-left: auto; }
  .hero-title { font-size: clamp(2rem, 9.5vw, 3.2rem); }
  .vehicles-grid,
  .vehicles-slider-track.vehicles-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .trust-numbers { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  #vehicles { padding: 60px 0; }
  .vehicles-carousel-viewport { padding: 6px 0 14px 0; }
  .vehicles-page {
    display: flex !important;
    justify-content: center !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    padding: 0 4px !important;
    width: 100% !important;
    min-width: 100% !important;
  }
  .vehicles-page .vehicle-card {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
  }
  .vehicles-controls {
    margin-top: 22px;
    gap: 12px;
  }
  .v-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.35rem; line-height: 1.15; }
  .hero-title .red-word { font-size: 2.35rem; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: row; justify-content: center; }
  .hero-btns .btn { flex: 1; justify-content: center; min-width: 130px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}
