/* =============================================================
   PremiumFleet Rentals — Main Stylesheet
   Brand: Primary #CD1431 | Secondary #024CA0
   ============================================================= */

/* ---- Google Fonts Import ---- */
/* Removed as using system fonts */

/* ---- CSS Custom Properties ---- */
:root {
  --primary:     #CC1430;
  --primary-dk:  #a80f26;
  --secondary:   #024CA0;
  --secondary-dk:#013578;
  --dark:        #0d1117;
  --dark-2:      #1a2130;
  --mid:         #4a5568;
  --light:       #f7f8fc;
  --white:       #ffffff;
  --border:      #e2e8f0;
  --shadow:      0 4px 24px rgba(0,0,0,0.10);
  --shadow-hover:0 12px 40px rgba(0,0,0,0.18);
  --radius:      8px;
  --radius-lg:   14px;
  --font-display:helvetica, Arial, sans-serif;
  --font-body:   helvetica, Arial, sans-serif;
  --transition:  all 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Base Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.ksa-bues-site {
  overflow-x: hidden;
  /* Site header (#main-nav) is position:absolute — content must clear it */
  --ksa-bues-nav-offset: 88px;
}

@media (min-width: 992px) {
  body.ksa-bues-site {
    --ksa-bues-nav-offset: 156px;
  }
}

.ksa-bues-page {
  font-family: var(--font-body);
  color: #2d3748;
  background: var(--white);
  overflow-x: hidden;
}

.ksa-bues-page h1,
.ksa-bues-page h2,
.ksa-bues-page h3,
.ksa-bues-page h4,
.ksa-bues-page h5,
.ksa-bues-page h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

.ksa-bues-page a { transition: var(--transition); }
.ksa-bues-page a:focus { outline: 2px dashed var(--primary); outline-offset: 3px; }

.ksa-bues-page img { max-width: 100%; display: block; }

/* Do not style #main-nav here — keep the site header identical to home.php */

/* ---- Loading Spinner ---- */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
}

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

.spinner-ring {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

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

/* ---- Navbar ---- */
.navbar-custom {
  background: rgba(13,17,23,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0;
  transition: var(--transition);
}

.navbar-custom.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.navbar-custom .navbar-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: 0.5px;
  padding: 18px 0;
  text-decoration: none;
}

.navbar-custom .navbar-brand .brand-accent { color: var(--primary); }

.navbar-custom .nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 24px 16px !important;
  position: relative;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--white) !important;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-custom .navbar-toggle {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 8px 12px;
}

.navbar-custom .icon-bar { background-color: var(--white); }

.nav-cta-btn {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
  padding: 8px 20px !important;
  margin: 16px 0 16px 12px;
  font-size: 13px !important;
}

.nav-cta-btn:hover { background: var(--primary-dk) !important; }

.nav-cta-btn::after { display: none !important; }

/* ---- Hero Banner ---- */
.hero-banner {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1117 0%, #1a2130 50%, #0a0e1a 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(205,20,49,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(2,76,160,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(205,20,49,0.12);
  border: 1px solid rgba(205,20,49,0.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff6b80;
  margin-bottom: 28px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .title-highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

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

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat-number span { color: var(--primary); }

.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image-side {
  position: relative;
  z-index: 2;
  padding: 140px 0 80px;
}

.hero-coach-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero-coach-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.coach-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.coach-card-badge {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
}

.coach-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coach-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: var(--transition);
}

.coach-category-item:hover {
  background: rgba(205,20,49,0.08);
  border-color: rgba(205,20,49,0.2);
}

.cat-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.cat-count {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  padding: 3px 9px;
  border-radius: 50px;
}

/* ---- Buttons ---- */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background: var(--primary-dk);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(205,20,49,0.4);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 13px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 11px 22px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary-custom:hover,
.btn-secondary-custom:focus {
  background: var(--secondary-dk);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  padding: 11px 22px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost-red:hover,
.btn-ghost-red:focus {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}

/* ---- Section Headings ---- */
.section-header {
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 16px;
}

.section-title.on-dark { color: var(--white); }

.section-desc {
  font-size: 16px;
  color: var(--mid);
  max-width: 580px;
  line-height: 1.75;
}

.section-desc.on-dark { color: rgba(255,255,255,0.6); }

.section-divider {
  width: 56px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 18px 0;
}

/* ---- Why Choose Us ---- */
.why-section {
  padding: 96px 0;
  background: var(--light);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(205,20,49,0.1), rgba(2,76,160,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 26px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.feature-text {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
  margin: 0;
}

/* ---- Fleet Section ---- */
.fleet-page-intro {
  margin-bottom: 32px;
}

.fleet-page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 8px;
}

.fleet-page-subtitle {
  font-size: 16px;
  color: var(--mid);
  margin: 0;
}

.fleet-section {
  padding: calc(var(--ksa-bues-nav-offset) + 20px) 0 96px;
  background: var(--white);
}

/* Search + Filter bar */
.fleet-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.fleet-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.fleet-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mid);
  font-size: 15px;
  pointer-events: none;
}

.fleet-search {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
}

.fleet-search:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(2,76,160,0.1);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Category heading */
.category-section {
  margin-bottom: 56px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border);
}

.category-icon-wrap {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

.category-label {
  flex: 1;
}

.category-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 4px;
}

.category-desc {
  font-size: 13px;
  color: var(--mid);
  margin: 0;
}

.category-count {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--mid);
}

/* Vehicle Card */
.vehicle-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.vehicle-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2130, #0d1117);
  flex-shrink: 0;
}

.vehicle-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-card-img img {
  transform: scale(1.06);
}

.vehicle-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.25);
}

.vehicle-img-placeholder .ph-icon { font-size: 48px; }
.vehicle-img-placeholder .ph-name { font-size: 13px; font-weight: 600; }

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-ac, .badge-fuel {
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
}

.badge-ac {
  background: rgba(2,76,160,0.85);
  color: var(--white);
}

.badge-fuel {
  background: rgba(0,0,0,0.65);
  color: rgba(255,255,255,0.9);
}

.vehicle-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vehicle-type-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.vehicle-card-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 8px;
}

.vehicle-seating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 12px;
}

.vehicle-seating .seat-icon { color: var(--secondary); }

.vehicle-card-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vehicle-card-actions {
  display: flex;
  gap: 10px;
}

.vehicle-card-actions .btn-secondary-custom,
.vehicle-card-actions .btn-ghost-red {
  flex: 1;
  justify-content: center;
  font-size: 12px;
  padding: 10px 14px;
}

.no-results-msg {
  text-align: center;
  padding: 60px 20px;
  color: var(--mid);
  font-size: 15px;
  display: none;
}

.no-results-msg .no-results-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ---- Testimonials ---- */
.testimonials-section {
  padding: 96px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(205,20,49,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: #f6c90e;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.testimonial-text {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 2px;
}

.author-role {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ---- Contact CTA Banner ---- */
.cta-banner {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #a80f26 50%, #8b0c20 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,0,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-white:hover, .btn-white:focus {
  background: var(--light);
  color: var(--primary-dk);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 13px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-white:hover, .btn-outline-white:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

/* ---- Footer ---- */
.site-footer {
  background: #080c12;
  padding: 72px 0 0;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand .brand-accent { color: var(--primary); }

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}

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

.footer-heading {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(205,20,49,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 14px;
}

.footer-contact-item p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.5;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-contact-item a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  margin-top: 48px;
}

.footer-bottom-text {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* ---- WhatsApp Floating Button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  transition: var(--transition);
  animation: bounce-in 0.6s 1.5s both;
}

.whatsapp-float:hover {
  background: #1da851;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

.whatsapp-tooltip {
  position: absolute;
  right: 66px;
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}

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

@keyframes bounce-in {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---- Scroll to Top ---- */
.scroll-top {
  position: fixed;
  bottom: 94px;
  right: 28px;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--secondary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(2,76,160,0.4);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover { background: var(--secondary-dk); transform: translateY(-3px); }

/* ---- Enquiry Modal ---- */
/* Bootstrap modal must sit above the fixed site header/backdrop */
body.ksa-bues-site #enquiryModal {
  z-index: 10050;
}

body.ksa-bues-site #enquiryModal.in {
  display: block !important;
}

body.ksa-bues-site .modal-backdrop {
  z-index: 10040;
}

.modal-header-custom {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  padding: 20px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title-custom {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin: 0;
}

.modal-close-custom {
  color: rgba(255,255,255,0.5);
  font-size: 22px;
  font-weight: 400;
  text-shadow: none;
  opacity: 1;
  transition: var(--transition);
}

.modal-close-custom:hover { color: var(--white); }

.modal-body-custom { padding: 28px 24px; }

.form-group-custom { margin-bottom: 18px; }

.form-label-custom {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 7px;
}

.form-control-custom {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  -webkit-appearance: none;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(2,76,160,0.12);
}

.form-control-custom::placeholder { color: #b0b8c8; }

textarea.form-control-custom { resize: vertical; min-height: 90px; }

.modal-footer-custom {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ---- Vehicle Details Page ---- */
.vehicle-detail-section {
  padding: calc(var(--ksa-bues-nav-offset) + 20px) 0 64px;
  background: var(--light);
  overflow-x: clip;
}

.details-breadcrumb {
  padding: 0 0 20px;
}

.breadcrumb-custom {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-custom li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mid);
}

.breadcrumb-custom a {
  color: var(--secondary);
  text-decoration: none;
}

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

.breadcrumb-custom .active {
  color: var(--dark);
  font-weight: 600;
}

.breadcrumb-sep { color: #cbd5e0; font-size: 11px; }

.vehicle-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.vehicle-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.vehicle-detail-col {
  min-width: 0;
}

.vehicle-detail-col-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.vehicle-media-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  margin-bottom: 24px;
}

.vehicle-detail-content {
  padding: 0;
  width: 100%;
}

.vehicle-detail-image-wrap {
  background: #f8fafc;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.vehicle-detail-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 360px;
}

.vehicle-detail-image-placeholder {
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #94a3b8;
  padding: 32px;
}

.vehicle-detail-image-placeholder .gp-icon { font-size: 48px; opacity: 0.45; }
.vehicle-detail-image-placeholder .gp-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--mid);
  text-align: center;
}

.vehicle-quick-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 16px 12px 18px;
  border-top: none;
}

.quick-spec-item {
  min-width: 0;
  text-align: center;
}

.quick-spec-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 6px;
  font-size: 18px;
}

.quick-spec-blue { color: var(--secondary); }
.quick-spec-red { color: var(--primary); }

.quick-spec-label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  word-break: break-word;
}

.vehicle-detail-title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

.vehicle-detail-type {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
}

.vehicle-detail-desc {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
  margin: 0 0 16px;
}

.vehicle-section-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--dark);
  margin: 22px 0 14px;
  line-height: 1.2;
}

.vehicle-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.vm-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.vm-tag.type-tag { background: rgba(2,76,160,0.08); color: var(--secondary); }
.vm-tag.seat-tag { background: rgba(2,76,160,0.1); color: var(--secondary); }
.vm-tag.ac-tag  { background: rgba(16,185,129,0.1); color: #059669; }
.vm-tag.fuel-tag{ background: rgba(205,20,49,0.08); color: var(--primary); }

.spec-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 8px;
}

.spec-row {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.spec-row:last-child { border-bottom: none; }

.spec-key {
  flex: 0 0 44%;
  padding: 14px 18px;
  background: var(--light);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  border-right: 1px solid var(--border);
}

.spec-val {
  flex: 1;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--mid);
  line-height: 1.45;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.4;
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(5,150,105,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  font-size: 11px;
  flex-shrink: 0;
}

.feature-text {
  flex: 1;
  min-width: 0;
}

.vehicle-ideal-block {
  margin-top: 4px;
  margin-bottom: 8px;
}

.ideal-for-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ideal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(2,76,160,0.06);
  border: 1px solid rgba(2,76,160,0.14);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.3;
}

.ideal-tag .fa-check {
  font-size: 11px;
  color: var(--secondary);
  flex-shrink: 0;
}

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

/* Sidebar enquiry form */
.enquiry-sidebar {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  border: 1px solid var(--border);
  position: static;
}

.enquiry-sidebar .form-group-custom {
  margin-bottom: 12px;
}

.enquiry-sidebar .form-label-custom {
  font-size: 11px;
  margin-bottom: 5px;
}

.enquiry-sidebar .form-control-custom {
  padding: 9px 12px;
  font-size: 13px;
}

.enquiry-sidebar textarea.form-control-custom {
  min-height: 72px;
}

.enquiry-sidebar-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.enquiry-sidebar-sub {
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 14px;
  line-height: 1.45;
}

.enquiry-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 2px;
  padding: 12px 20px;
  font-size: 13px;
}

/* Tablet+: main column (image + content stacked) | form sidebar */
@media (min-width: 768px) {
  .vehicle-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    grid-template-areas: "main form";
    gap: 28px 32px;
    align-items: start;
  }

  .vehicle-detail-col-main { grid-area: main; }
  .vehicle-detail-col-form { grid-area: form; }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop */
@media (min-width: 992px) {
  .vehicle-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 32px 40px;
  }

  .enquiry-sidebar {
    position: sticky;
    top: calc(var(--ksa-bues-nav-offset) + 12px);
  }

  .enquiry-sidebar .ksa-bues-captcha-wrap .g-recaptcha {
    transform: scale(0.9);
    transform-origin: left top;
  }

  .vehicle-detail-image {
    max-height: 400px;
  }
}

/* Medium desktop */
@media (min-width: 1200px) {
  .vehicle-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 36px 48px;
  }

  .vehicle-detail-title {
    font-size: 24px;
  }

  .vehicle-detail-desc {
    font-size: 14px;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enquiry-sidebar .ksa-bues-captcha-wrap .g-recaptcha {
    transform: none;
  }

  .vehicle-detail-image {
    max-height: 440px;
  }

  .enquiry-sidebar {
    padding: 22px 20px;
  }
}

/* Large desktop */
@media (min-width: 1400px) {
  .vehicle-detail-section > .container {
    max-width: 1320px;
  }

  .vehicle-detail-card {
    padding: 32px 36px;
  }

  .vehicle-detail-image {
    max-height: 480px;
  }

  .vehicle-detail-title {
    font-size: 26px;
  }
}

/* Ultra-wide */
@media (min-width: 1800px) {
  .vehicle-detail-section > .container {
    max-width: 1480px;
  }

  .vehicle-detail-image {
    max-height: 420px;
  }
}

/* Short viewports: scrollable sticky form */
@media (min-width: 992px) and (max-height: 760px) {
  .vehicle-detail-section {
    padding-top: calc(var(--ksa-bues-nav-offset) + 12px);
    padding-bottom: 32px;
  }

  .enquiry-sidebar {
    top: calc(var(--ksa-bues-nav-offset) + 8px);
    max-height: calc(100vh - var(--ksa-bues-nav-offset) - 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vehicle-detail-image {
    max-height: 200px;
  }

  .vehicle-ideal-block {
    display: none;
  }
}

/* Mobile tweaks */
@media (max-width: 767px) {
  .vehicle-detail-section {
    padding: calc(var(--ksa-bues-nav-offset) + 12px) 0 40px;
  }

  .vehicle-detail-card {
    padding: 16px;
  }

  .vehicle-quick-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details-breadcrumb {
    padding-bottom: 14px;
  }
}

/* Related Vehicles */
.related-section {
  padding: 64px 0;
  background: var(--light);
}

/* ---- Utility ---- */
.text-primary-custom { color: var(--primary); }
.text-secondary-custom { color: var(--secondary); }

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hero-image-side { display: none; }
  .hero-content { padding: 120px 0 60px; }
  .vehicle-card-actions { flex-direction: column; }
}

@media (max-width: 767px) {
  .hero-stats { gap: 24px; }
  .fleet-controls { flex-direction: column; align-items: stretch; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .category-header { flex-wrap: wrap; }
  .spec-key { flex: 0 0 50%; }
  .footer-brand, .footer-desc { max-width: 100%; }
  .cta-actions { flex-direction: column; }
  .modal-footer-custom { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary-custom,
  .hero-actions .btn-outline-custom { width: 100%; justify-content: center; }
  .whatsapp-float { bottom: 20px; right: 20px; }
  .scroll-top { bottom: 86px; right: 20px; }
}

/* ---- Enquiry form security ---- */
.ksa-bues-honeypot {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ksa-bues-captcha-wrap {
  margin-top: 4px;
  margin-bottom: 8px;
}

.ksa-bues-captcha-wrap .g-recaptcha {
  transform-origin: left top;
}

@media (max-width: 480px) {
  .ksa-bues-captcha-wrap .g-recaptcha {
    transform: scale(0.92);
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
