/* Engagement redesign - layered on top of style.css. */

:root {
  --gold: #f5b301;
  --green: #22c55e;
  --bar-h: 64px;
}

.btn-lg { padding: 16px 30px; font-size: 1rem; }
/* Menu jumps land below the sticky header. */
section[id], main[id] { scroll-margin-top: 84px; }
.eyebrow-light { color: var(--teal-500); }

/* ------------------------------------------------------------ header */
.header-call-icon { display: none; }
.header-call-icon svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------ hero */
.hero-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 84px 0 104px;
  background: var(--teal-900);
}
/* Rotating luxury-car slideshow (slides are built by js/enhance.js from cars-data.js). */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(10, 12, 16, 0.92) 0%, rgba(10, 12, 16, 0.78) 42%, rgba(18, 60, 92, 0.45) 100%);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 60%;
  transform-origin: 70% 60%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.is-active {
  opacity: 1;
  animation: hero-drift 8s ease-out forwards;
}
@keyframes hero-drift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.1); }
}
.hero-slide-caption {
  position: absolute;
  right: 24px;
  bottom: 60px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.hero-dots { display: flex; gap: 6px; }
.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.hero-dots button.is-active { width: 22px; background: var(--white); }
.hero h1 { font-size: 3rem; letter-spacing: -0.01em; }
.hero-accent { color: var(--teal-500); }
.hero-sub strong { color: var(--white); }
.trust-chips {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-chips li {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
}

.quote-card { position: relative; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #166534;
  background: #e8f8ee;
  border: 1px solid #bfe9cf;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.quote-card-foot { font-size: 0.78rem; color: var(--ink-soft); margin: 16px 0 0; }

/* ------------------------------------------------------------ stats strip */
.stats-strip {
  padding: 0;
  margin-top: -44px;
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-item {
  padding: 22px 18px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: 0; }
.stat-item strong { display: block; font-size: 1.8rem; color: var(--teal-900); line-height: 1.1; }
.stat-item > span { font-size: 0.82rem; color: var(--ink-soft); }
a.stat-item strong { color: var(--gold); }

/* ------------------------------------------------------------ fleet */
.car-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
@media (hover: hover) {
  .car-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(18, 19, 22, 0.16); }
  .car-card:hover .car-photo .main-photo { transform: scale(1.04); }
}
.car-photo .main-photo { transition: opacity 0.35s ease, transform 0.5s ease; }
.coming-soon-card {
  background: linear-gradient(160deg, #f1f8fd, #ffffff);
  border: 2px dashed #bcdcf2;
  box-shadow: none;
  justify-content: center;
}
.coming-soon-body { padding: 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.coming-soon-body h3 { margin: 4px 0 0; color: var(--teal-900); }
.coming-soon-body p { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 10px; }
.coming-soon-icon { font-size: 2rem; }
.swipe-hint { display: none; }

/* ------------------------------------------------------------ gig drivers */
.gig-section {
  background:
    radial-gradient(circle at 85% 15%, rgba(74, 163, 224, 0.28), transparent 45%),
    linear-gradient(160deg, #0f1114, #15324a);
  color: var(--white);
}
.gig-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.gig-copy h2 { font-size: 2.1rem; }
.gig-copy > p { color: rgba(255, 255, 255, 0.82); }
.gig-rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.gig-rate {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}
.gig-rate strong { display: block; font-size: 1.6rem; }
.gig-rate small { font-size: 0.85rem; font-weight: 500; opacity: 0.8; }
.gig-rate span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); }
.gig-steps { padding-left: 20px; margin: 0 0 26px; display: grid; gap: 8px; color: rgba(255, 255, 255, 0.88); }
.gig-steps a { color: var(--teal-500); font-weight: 700; }

.earnings-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.earnings-card h3 { color: var(--teal-900); margin-bottom: 4px; }
.muted-sm { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 18px; }
.muted-xs { color: var(--ink-soft); font-size: 0.75rem; margin: 14px 0 0; }
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.calc-label output { font-size: 1.3rem; color: var(--teal-900); }
#calc-earnings {
  --fill: 25%;
  width: 100%;
  margin: 0 0 18px;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral) var(--fill), var(--border) var(--fill));
  cursor: pointer;
}
#calc-earnings::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--coral);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
#calc-earnings::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--coral);
}
#calc-plan {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
  margin-bottom: 18px;
}
.calc-results { background: var(--sand); border-radius: 10px; padding: 6px 16px; }
.calc-results div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 0.9rem; }
.calc-results div + div { border-top: 1px solid var(--border); }
.calc-keep strong { font-size: 1.5rem; color: #15803d; }
.calc-keep strong.negative { color: #b42318; }

/* ------------------------------------------------------------ why us */
.why-big-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-big {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--coral);
  transition: transform 0.2s ease;
}
@media (hover: hover) { .why-big:hover { transform: translateY(-4px); } }
.why-big h3 { font-size: 1.15rem; color: var(--teal-900); }
.why-big p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.why-more {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.why-more li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------ reviews */
.reviews-section { background: var(--white); }
.rating-line { font-size: 1.05rem; }
.stars { color: var(--gold); letter-spacing: 2px; }
.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, calc((100% - 40px) / 3));
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  scrollbar-width: none;
}
.review-track::-webkit-scrollbar { display: none; }
.review-card {
  scroll-snap-align: start;
  margin: 0;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-card blockquote { margin: 0; font-size: 0.95rem; line-height: 1.55; flex: 1; }
.review-card figcaption { font-size: 0.85rem; color: var(--ink-soft); }
.reviews-cta { text-align: center; margin-top: 24px; }

/* ------------------------------------------------------------ FAQ */
.faq-container { max-width: 800px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(18, 19, 22, 0.06);
  border: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  color: var(--teal-900);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--coral);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); }
.faq-item p a { color: var(--teal-700); font-weight: 600; }

/* ------------------------------------------------------------ scroll reveal */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ phone action bar */
.mobile-action-bar { display: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .why-big-grid { grid-template-columns: repeat(2, 1fr); }
  .gig-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .header-call-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--teal-700);
    color: var(--teal-700);
  }
  .header-actions { gap: 10px; }

  .hero-photo { padding: 40px 0 84px; }
  .hero-slide-caption { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero .container { gap: 28px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

  /* Fleet becomes a swipeable row */
  .car-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin: 0 -24px;
    padding: 4px 24px 20px;
    scroll-padding: 0 24px;
    scrollbar-width: none;
  }
  .car-grid::-webkit-scrollbar { display: none; }
  .car-card { scroll-snap-align: start; }
  .swipe-hint {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin: 4px 0 0;
    transition: opacity 0.3s ease;
  }
  .swipe-hint.hidden { opacity: 0; }

  .review-track { grid-auto-columns: 85%; }

  /* Sticky Call / Text / Reserve bar */
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .mobile-action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.2fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(18, 19, 22, 0.08);
  }
  .mobile-action-bar a,
  .mobile-action-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 48px;
    padding: 0 4px;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid var(--teal-700);
    color: var(--teal-700);
    background: var(--white);
    cursor: pointer;
  }
  .mobile-action-bar svg { width: 18px; height: 18px; }
  .mobile-action-bar .bar-reserve { background: var(--coral); border-color: var(--coral); color: var(--white); }

  /* Briefly highlight "Extend Today!" when reached from the Extend button. */
  .current-customers.flash { animation: section-flash 1.6s ease; }
  @keyframes section-flash {
    0%, 100% { background: var(--white); }
    30% { background: #e8f3fb; }
  }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 18px; }
  .trust-chips { margin-bottom: 22px; }
  .trust-chips li { font-size: 0.78rem; padding: 6px 11px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .why-big-grid { grid-template-columns: 1fr; }
  .gig-copy h2 { font-size: 1.7rem; }
  .gig-rates { gap: 8px; }
  .gig-rate { padding: 12px 6px; }
  .gig-rate strong { font-size: 1.3rem; }
  .earnings-card { padding: 22px; }
  .promo-banner-inner { font-size: 0.8rem; padding: 8px 16px; }
}

/* Small phones: keep all four bar buttons on one line. */
@media (max-width: 380px) {
  .mobile-action-bar { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .mobile-action-bar a, .mobile-action-bar button { font-size: 0.85rem; }
}
@media (max-width: 340px) {
  .mobile-action-bar svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active, .live-dot { animation: none; }
  .hero-slide { transition: none; }
  .car-card, .why-big, .car-photo .main-photo { transition: none; }
  html { scroll-behavior: auto; }
}
