/* WhipWashPro -- Vehicle Types (cinematic). Namespaced: #wwp-vehicles-root, .wwp-vehicles-*, .wwp-vehicle-card* */

#wwp-vehicles-root,
#wwp-vehicles-root *,
#wwp-vehicles-root *::before,
#wwp-vehicles-root *::after {
  box-sizing: border-box;
}

/* Defensive reset against the site theme's unscoped global styles on
   common tags (confirmed real bleed risk this project: blockquote
   pseudo-elements, and h2/h3/a/ul/li color inheritance elsewhere).
   Deliberately does NOT touch `color` -- an earlier section's identical
   reset once overrode this component's own heading/link colors via
   higher specificity; color is set explicitly per-class below instead. */
#wwp-vehicles-root h2,
#wwp-vehicles-root h3,
#wwp-vehicles-root p,
#wwp-vehicles-root ul,
#wwp-vehicles-root li,
#wwp-vehicles-root a {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  font-family: inherit;
  background: none;
}
#wwp-vehicles-root a:hover,
#wwp-vehicles-root a:focus {
  text-decoration: none;
}
#wwp-vehicles-root blockquote::before,
#wwp-vehicles-root blockquote::after,
#wwp-vehicles-root a::before,
#wwp-vehicles-root a::after,
#wwp-vehicles-root li::before,
#wwp-vehicles-root li::after {
  content: none !important;
  background-image: none !important;
}

#wwp-vehicles-root {
  --wwp-v-navy: #04081a;
  --wwp-v-navy-2: #070f2a;
  --wwp-v-card: rgba(255,255,255,0.04);
  --wwp-v-card-border: rgba(120,160,230,0.22);
  --wwp-v-blue: #1177fe;
  --wwp-v-blue-light: #4a9dff;
  --wwp-v-white: #ffffff;
  --wwp-v-ink-soft: rgba(226,234,250,0.82);
  --wwp-v-ink-faint: rgba(196,210,235,0.62);
  --wwp-v-radius: 18px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* True edge-to-edge full-viewport width regardless of any ancestor
     Elementor "boxed" wrapper (verified live: the container this widget
     sits inside renders with an internal max-width: min(100%,1300px)
     constraint even with empty container settings -- a pre-existing
     Elementor rendering behavior, not something this component's own
     markup controls). This breakout is self-contained to this component's
     root and does not modify the Elementor container/JSON. */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  min-height: 900px;
  background: var(--wwp-v-navy);
  display: flex;
  align-items: center;
}

@media (max-width: 1024px) {
  #wwp-vehicles-root { min-height: 0; padding: 64px 0; }
}

/* ---------- Ambient corner glow (CSS gradients only, no raster bg) ---------- */

.wwp-vehicles-glow {
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.wwp-vehicles-glow--tl {
  top: -22%;
  left: -14%;
  background: radial-gradient(circle, rgba(17,119,254,0.20) 0%, rgba(17,119,254,0) 68%);
}

.wwp-vehicles-glow--br {
  bottom: -26%;
  right: -14%;
  background: radial-gradient(circle, rgba(74,157,255,0.16) 0%, rgba(74,157,255,0) 68%);
}

/* ---------- Layout shell ---------- */

.wwp-vehicles-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 96px clamp(20px, 4vw, 64px);
}

@media (max-width: 1024px) {
  .wwp-vehicles-inner { padding: 0 24px; }
}

@media (max-width: 430px) {
  .wwp-vehicles-inner { padding: 0 16px; }
}

/* ---------- Header ---------- */

.wwp-vehicles-header {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.wwp-vehicles-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--wwp-v-blue-light);
  margin-bottom: 18px;
}

.wwp-vehicles-eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--wwp-v-blue-light));
}

.wwp-vehicles-eyebrow-line:last-child {
  background: linear-gradient(90deg, var(--wwp-v-blue-light), transparent);
}

.wwp-vehicles-heading {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 20px;
}

.wwp-vehicles-heading-white {
  color: var(--wwp-v-white);
}

.wwp-vehicles-heading-accent {
  color: var(--wwp-v-blue-light);
}

.wwp-vehicles-intro {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--wwp-v-ink-soft);
  max-width: 62ch;
  margin: 0 auto;
}

.wwp-vehicles-intro a {
  color: var(--wwp-v-blue-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Grid ---------- */

.wwp-vehicles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.wwp-vehicles-item { display: block; }

.wwp-vehicle-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--wwp-v-card);
  border: 1px solid var(--wwp-v-card-border);
  border-radius: var(--wwp-v-radius);
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.wwp-vehicle-card {
  color: inherit;
}

.wwp-vehicle-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 500 / 380;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.wwp-vehicle-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.wwp-vehicle-card__body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(7,15,42,0.4) 0%, rgba(4,8,26,0.85) 100%);
  min-height: 44px;
}

.wwp-vehicle-card__icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(74,157,255,0.12);
  border: 1px solid rgba(74,157,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wwp-vehicle-card__icon-svg {
  width: 19px;
  height: 19px;
  color: var(--wwp-v-blue-light);
}

.wwp-vehicle-card__title {
  flex: 1;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--wwp-v-white);
  line-height: 1.3;
}

.wwp-vehicle-card__arrow {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--wwp-v-blue-light);
  transition: transform 0.2s ease;
}

/* Linked cards: interactive hover/focus */
a.wwp-vehicle-card:hover,
a.wwp-vehicle-card:focus-visible {
  border-color: rgba(74,157,255,0.55);
  box-shadow: 0 16px 40px rgba(17,119,254,0.22);
}

a.wwp-vehicle-card:hover .wwp-vehicle-card__img,
a.wwp-vehicle-card:focus-visible .wwp-vehicle-card__img {
  transform: scale(1.03);
}

a.wwp-vehicle-card:hover .wwp-vehicle-card__arrow,
a.wwp-vehicle-card:focus-visible .wwp-vehicle-card__arrow {
  transform: translateX(3px);
}

a.wwp-vehicle-card:focus-visible {
  outline: 3px solid var(--wwp-v-blue-light);
  outline-offset: 3px;
}

/* Non-clickable cards: restrained non-directional lift only */
article.wwp-vehicle-card:hover {
  border-color: rgba(120,160,230,0.34);
  transform: translateY(-2px);
}

/* ---------- Reveal on scroll ---------- */

#wwp-vehicles-root.wwp-vehicles-js .wwp-vehicles-reveal,
#wwp-vehicles-root.wwp-vehicles-js .wwp-vehicles-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

#wwp-vehicles-root.wwp-vehicles-js .wwp-vehicles-in-view {
  opacity: 1;
  transform: translateY(0);
}

#wwp-vehicles-root.wwp-vehicles-js .wwp-vehicles-item.wwp-vehicles-in-view:nth-child(1) { transition-delay: 0.02s; }
#wwp-vehicles-root.wwp-vehicles-js .wwp-vehicles-item.wwp-vehicles-in-view:nth-child(2) { transition-delay: 0.06s; }
#wwp-vehicles-root.wwp-vehicles-js .wwp-vehicles-item.wwp-vehicles-in-view:nth-child(3) { transition-delay: 0.10s; }
#wwp-vehicles-root.wwp-vehicles-js .wwp-vehicles-item.wwp-vehicles-in-view:nth-child(4) { transition-delay: 0.14s; }
#wwp-vehicles-root.wwp-vehicles-js .wwp-vehicles-item.wwp-vehicles-in-view:nth-child(5) { transition-delay: 0.18s; }
#wwp-vehicles-root.wwp-vehicles-js .wwp-vehicles-item.wwp-vehicles-in-view:nth-child(6) { transition-delay: 0.22s; }
#wwp-vehicles-root.wwp-vehicles-js .wwp-vehicles-item.wwp-vehicles-in-view:nth-child(7) { transition-delay: 0.26s; }
#wwp-vehicles-root.wwp-vehicles-js .wwp-vehicles-item.wwp-vehicles-in-view:nth-child(8) { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  #wwp-vehicles-root.wwp-vehicles-js .wwp-vehicles-reveal,
  #wwp-vehicles-root.wwp-vehicles-js .wwp-vehicles-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .wwp-vehicle-card__img { transition: none !important; }
  article.wwp-vehicle-card:hover { transform: none !important; }
}

/* ---------- Tablet ---------- */

@media (min-width: 601px) and (max-width: 1024px) {
  .wwp-vehicles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
  .wwp-vehicles-grid { grid-template-columns: 1fr; }
  .wwp-vehicles-header { margin-bottom: 36px; }
  .wwp-vehicles-heading { font-size: 26px; }
  .wwp-vehicle-card__title { font-size: 15px; }
}
