/**
 * Fleet & Vehicles Page Styles — Matha Driving School
 * Modern, executive card grid, responsive filters, and safety explainer
 */

/* ── Fleet Hero ─────────────────────────────────────────────── */
.fleet-hero {
  position: relative;
  background: linear-gradient(135deg, #071E44 0%, #0B3D91 60%, #1557BF 100%);
  color: #FFFFFF;
  padding-top: 14.5rem !important;
  padding-top: calc(var(--header-height, 160px) + 4.5rem) !important;
  padding-bottom: 4rem;
  overflow: hidden;
  text-align: center;
}

.fleet-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(34, 197, 94, 0.18), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(21, 87, 191, 0.3), transparent 60%);
  pointer-events: none;
}

.fleet-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.fleet-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #4ADE80;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.fleet-hero-title {
  font-family: var(--font-heading, 'Figtree', sans-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.18;
  color: #FFFFFF;
  margin-bottom: 1.15rem;
}

.fleet-hero-title .highlight {
  background: linear-gradient(135deg, #4ADE80 0%, #22C55E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.fleet-hero-desc {
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

/* 4 Trust Metrics Row */
.fleet-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 2.25rem;
}

.fleet-trust-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.fleet-trust-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

.fleet-trust-icon {
  font-size: 1.6rem;
  color: #4ADE80;
  margin-bottom: 0.4rem;
}

.fleet-trust-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}

.fleet-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Interactive Filter Bar ─────────────────────────────────── */
.fleet-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.fleet-filter-btn {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 9999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fleet-filter-btn:hover {
  border-color: #0B3D91;
  color: #0B3D91;
  background: #F8FAFC;
  transform: translateY(-1px);
}

.fleet-filter-btn.active {
  background: #0B3D91;
  border-color: #0B3D91;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(11, 61, 145, 0.25);
}

.fleet-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.fleet-filter-btn.active .fleet-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* ── Fleet Grid ─────────────────────────────────────────────── */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* ── Fleet Card ─────────────────────────────────────────────── */
.fleet-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.fleet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px -4px rgba(11, 61, 145, 0.14);
  border-color: #CBD5E1;
}

.fleet-card-img-wrap {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #0A2552 0%, #0F3775 100%);
  overflow: hidden;
}

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

.fleet-card:hover .fleet-card-img {
  transform: scale(1.05);
}

/* Badges overlay on image */
.fleet-badge-trans {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 61, 145, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fleet-badge-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-available-pill {
  background: rgba(16, 185, 129, 0.9);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-inuse-pill {
  background: rgba(245, 158, 11, 0.9);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-maint-pill {
  background: rgba(239, 68, 68, 0.9);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.fleet-badge-year {
  position: absolute;
  bottom: 0.85rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Card Body */
.fleet-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fleet-card-header {
  margin-bottom: 0.75rem;
}

.fleet-card-title {
  font-family: var(--font-heading, 'Figtree', sans-serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: #0F172A;
  margin: 0 0 0.35rem 0;
  line-height: 1.25;
}

.fleet-card-tagline {
  font-size: 0.84rem;
  color: #0B3D91;
  font-weight: 700;
  line-height: 1.4;
}

.fleet-card-specs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 600;
}

.fleet-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fleet-spec-chip i {
  color: #0B3D91;
  font-size: 0.95rem;
}

.fleet-card-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Features Pills Grid */
.fleet-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.fleet-feature-pill {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fleet-feature-pill i {
  color: #10B981;
  font-size: 0.85rem;
}

/* Recommended Course Card */
.fleet-course-chip {
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #1E40AF;
  font-weight: 700;
}

.fleet-course-chip i {
  font-size: 1.1rem;
  color: #0B3D91;
  flex-shrink: 0;
}

/* Card Actions */
.fleet-card-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
  display: flex;
  gap: 0.6rem;
}

.fleet-btn-book {
  flex: 1;
  background: linear-gradient(135deg, #0B3D91 0%, #1557BF 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(11, 61, 145, 0.2);
}

.fleet-btn-book:hover {
  background: linear-gradient(135deg, #07255E 0%, #0B3D91 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 61, 145, 0.3);
}

.fleet-btn-wa {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #15803D !important;
  text-decoration: none;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.fleet-btn-wa:hover {
  background: #25D366;
  color: #FFFFFF !important;
  border-color: #25D366;
}

/* ── Dual-Control Section ───────────────────────────────────── */
.dual-control-section {
  padding: 5rem 0;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.dual-control-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.dual-control-visual {
  position: relative;
}

.dual-control-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.16);
  border: 1px solid #CBD5E1;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dual-control-overlay-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(11, 61, 145, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dual-control-overlay-icon {
  font-size: 2rem;
  color: #4ADE80;
  flex-shrink: 0;
}

/* ── Fleet Hygiene & Standards ──────────────────────────────── */
.fleet-standards-section {
  padding: 4.5rem 0;
  background: #F8FAFC;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.standard-card {
  background: #FFFFFF;
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  text-align: left;
  transition: transform 0.2s ease;
}

.standard-card:hover {
  transform: translateY(-3px);
}

.standard-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #EFF6FF;
  color: #0B3D91;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.standard-title {
  font-family: var(--font-heading, 'Figtree', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.5rem;
}

.standard-desc {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.6;
}

/* ── Fleet FAQ Accordion ────────────────────────────────────── */
.fleet-faq-section {
  padding: 4.5rem 0;
  background: #FFFFFF;
}

.fleet-faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.fleet-faq-item.open {
  border-color: #0B3D91;
}

.fleet-faq-question {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: #FFFFFF;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 800;
  color: #0F172A;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.fleet-faq-icon {
  font-size: 1.15rem;
  color: #0B3D91;
  transition: transform 0.25s ease;
}

.fleet-faq-item.open .fleet-faq-icon {
  transform: rotate(180deg);
}

.fleet-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #F8FAFC;
  padding: 0 1.25rem;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.7;
}

.fleet-faq-item.open .fleet-faq-answer {
  max-height: 300px;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #F1F5F9;
}

/* ── Responsive Rules ───────────────────────────────────────── */
@media (max-width: 960px) {
  .fleet-trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .dual-control-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .standards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fleet-hero {
    padding-top: 11.5rem !important;
    padding-top: calc(var(--header-height, 140px) + 2.5rem) !important;
    padding-bottom: 2.5rem;
  }
  .fleet-trust-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .fleet-trust-item {
    padding: 0.75rem 0.5rem;
  }
  .fleet-trust-icon {
    font-size: 1.35rem;
  }
  .fleet-trust-label {
    font-size: 0.75rem;
  }
  .fleet-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .fleet-card-body {
    padding: 1.25rem;
  }
  .fleet-filter-bar {
    gap: 0.4rem;
  }
  .fleet-filter-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }
  .fleet-card-actions {
    flex-direction: column;
  }
}
