/* ===========================================================
   XPO YVR — custom styles (light theme, on top of Tailwind CDN)
   Theme: #CC0000 / #000000 / #FFFFFF
   =========================================================== */

:root {
  --brand-red: #cc0000;
  --brand-red-deep: #990000;
  --ink: #0a0a0a;
}

html {
  -webkit-font-smoothing: antialiased;
}
body {
  background: #fff;
  color: var(--ink);
}

.no-select {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

/* ---------- Draggable hero image ---------- */
.hero-drag {
  cursor: grab;
  touch-action: none; /* pointer events own the gesture on touch screens */
  will-change: transform;
}
.hero-drag.is-dragging {
  cursor: grabbing;
}
.hero-drag.is-settling {
  /* springy return to the resting spot after release */
  transition: transform 0.65s cubic-bezier(0.22, 1.5, 0.36, 1);
}

/* ---------- Typography helpers ---------- */
.text-gradient-red {
  background: linear-gradient(
    100deg,
    var(--brand-red) 0%,
    #ff2b2b 55%,
    var(--brand-red-deep) 110%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: #c0c0c0;
  display: inline-block;
}
.eyebrow.justify-center {
  justify-content: center;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--ink);
}

/* ---------- Navigation ---------- */
#nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 30px -20px rgba(0, 0, 0, 0.35);
}
.nav-link {
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--ink);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.logo {
  font-family: "Exo 2", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.logo-nav {
  font-weight: 600;
}

/* element+class specificity so this beats the Tailwind text-* utilities */
span.logo-nav {
  font-size: 1.375rem;
}

.logo-nav span {
  margin-left: 2px;
}

.logo-footer {
  font-weight: 400;
}

.logo-footer span {
  margin-left: 2px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-red);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  box-shadow: 0 10px 30px -10px rgba(204, 0, 0, 0.55);
}
.btn-primary:hover {
  background: #e60000;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(204, 0, 0, 0.6);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

/* ---------- Booking widget fields ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field > span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  padding-left: 0.1rem;
}
.field-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 0.9rem;
  border-radius: 0.75rem;
  background: #f7f7f8;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.field-input:focus-within {
  border-color: var(--brand-red);
  background: #fff;
}
.field-input input,
.field-input select {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 0.92rem;
  width: 100%;
}
.field-input input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}
.field-input select option {
  background: #fff;
}

/* ---------- Stats ---------- */
.stat {
  text-align: left;
}
.stat .num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(160deg, var(--ink) 0%, var(--brand-red) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p {
  margin-top: 0.5rem;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
}

/* ---------- Fleet cards ---------- */
.car-card {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.car-card:hover {
  transform: translateY(-6px);
  border-color: rgba(204, 0, 0, 0.4);
  box-shadow: 0 30px 60px -25px rgba(204, 0, 0, 0.35);
}
.car-card .img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, #f3f3f5, #e7e7ea);
}
.car-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.car-card:hover .img-wrap img {
  transform: scale(1.08);
}
.car-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
}
.car-badge.hot {
  background: var(--brand-red);
  border-color: transparent;
  color: #fff;
}
.spec {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
}
.spec svg {
  width: 1rem;
  height: 1rem;
  color: var(--brand-red);
}

/* ---------- Filter chips ---------- */
.filter-chip {
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  transition: all 0.2s ease;
}
.filter-chip:hover {
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.35);
}
.filter-chip.is-active {
  background: var(--brand-red);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px -8px rgba(204, 0, 0, 0.6);
}

/* ---------- Features grid ---------- */
.feature {
  background: #fff;
  padding: 2.25rem;
  transition: background 0.3s ease;
}
.feature:hover {
  background: #fafafa;
}
.feature .ic {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: rgba(204, 0, 0, 0.1);
  color: var(--brand-red);
  margin-bottom: 1.1rem;
}
.feature h3 {
  font-family: "Space Grotesk";
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.feature p {
  margin-top: 0.5rem;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Steps ---------- */
.step {
  position: relative;
  text-align: center;
  padding: 0 1rem;
}
.step-num {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk";
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-red);
  box-shadow: 0 16px 30px -12px rgba(204, 0, 0, 0.7);
}
.step h3 {
  font-family: "Space Grotesk";
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}
.step p {
  margin-top: 0.6rem;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

/* ---------- Ticked list ---------- */
.ticked {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(0, 0, 0, 0.75);
}
.ticked::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-red)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ---------- Reviews ---------- */
.review {
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}
.review:hover {
  border-color: rgba(204, 0, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.3);
}
.review .stars {
  display: flex;
  gap: 2px;
  color: var(--brand-red);
  margin-bottom: 1rem;
}
.review p {
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.65;
}
.review .who {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.review .who .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  font-family: "Space Grotesk";
}

/* ---------- Legal / policy pages ---------- */
.policy-h {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.policy p {
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.75;
}
.policy-list {
  margin-top: 0.75rem;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.policy-list li {
  position: relative;
  padding-left: 1.5rem;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.6;
}
.policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
}

/* ---------- Footer ---------- */
.footer-h {
  font-family: "Space Grotesk";
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
}
.footer-list a:hover {
  color: var(--ink);
}
.social {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.7);
  transition: all 0.2s;
}
.social:hover {
  background: var(--brand-red);
  color: #fff;
  border-color: transparent;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
