/* ═══════════════════════════════════════════
   HOME.CSS — Shaq's Auto Spa
   Homepage-specific styles
   Hero, Trust Strip, Value Strip, Cursor Trail
   ═══════════════════════════════════════════ */

/* ─────────────────────────────────────
   REDUCED MOTION — respect user prefs
   ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0s !important;
  }
}

/* ─────────────────────────────────────
   WATER-BEAD CURSOR TRAIL
   Lime green orbs, mix-blend-mode: screen
   Desktop only (pointer: fine)
   ───────────────────────────────────── */
.cursor-orb {
  position: fixed;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

/* Hide cursor orbs on touch / coarse-pointer devices */
@media (pointer: coarse) {
  .cursor-orb {
    display: none !important;
  }
}

/* ─────────────────────────────────────
   HERO — Page-load staggered animation
   ───────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

/* ─────────────────────────────────────
   HERO SECTION
   Full viewport, grain texture bg,
   lime glow, staggered fade-in
   ───────────────────────────────────── */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
  overflow: hidden;
}

/* ── Background video ── */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay — keeps text legible over bright video */
.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

/* ── Noise / grain texture overlay ── */
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* ── Lime green radial glow ── */
.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(132, 204, 22, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ── Hero content stack ── */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── 1. Eyebrow label ── */
.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #84cc16;
  margin-bottom: 16px;
}

/* ── 2. Headline ── */
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #e5e5e5;
}

.hero__headline-accent {
  color: #84cc16;
}

/* ── 3. Subtext ── */
.hero__subtext {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: #888888;
  max-width: 480px;
  margin-top: 20px;
  line-height: 1.7;
}

/* ── 4. CTA pair ── */
.hero__ctas {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

/* Stack CTAs on very narrow screens */
@media (max-width: 399px) {
  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero__ctas a {
    width: 100%;
  }
}

/* ── Primary CTA — fill-from-left hover ── */
.hero__btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero__btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #65a30d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
  border-radius: inherit;
}

.hero__btn-primary:hover::before {
  transform: scaleX(1);
}

/* Reset the default btn-primary hover bg so the pseudo-element shows */
.hero__btn-primary:hover {
  background-color: var(--color-primary);
}

/* ── 5. Mobile detailing badge (desktop only) ── */
.hero__badge {
  display: none;
  position: absolute;
  bottom: 32px;
  left: 32px;
  padding: 8px 14px;
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: #84cc16;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero__badge {
    display: block;
  }
}

/* ─────────────────────────────────────
   TRUST STRIP
   3 testimonial quotes — social proof
   immediately after the hero
   ───────────────────────────────────── */
.trust-strip {
  background-color: #111111;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  padding: 28px 0;
}

.trust-strip__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Desktop: horizontal thirds with dividers */
@media (min-width: 768px) {
  .trust-strip__grid {
    flex-direction: row;
    gap: 0;
  }
}

/* ── Individual testimonial card ── */
.trust-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Desktop divider between cards */
@media (min-width: 768px) {
  .trust-card + .trust-card {
    border-left: 1px solid #2a2a2a;
    padding-left: 28px;
    margin-left: 28px;
  }
}

.trust-card__stars {
  font-size: 13px;
  color: #84cc16;
  letter-spacing: 2px;
}

.trust-card__quote {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  color: #e5e5e5;
  line-height: 1.6;
  margin-bottom: 0;
}

.trust-card__attribution {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: #888888;
}

/* ── Scroll-triggered animation ── */
.trust-card--animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.trust-card--animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────
   VALUE STRIP
   3 trust signals — clean inline bar
   ───────────────────────────────────── */
.value-strip {
  background-color: #0a0a0a;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  padding: 20px 0;
}

.value-strip__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

@media (min-width: 768px) {
  .value-strip__row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }
}

.value-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.value-strip__icon {
  color: #84cc16;
  font-size: 10px;
  line-height: 1;
}

.value-strip__label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: #e5e5e5;
}

/* Vertical divider between items (desktop only) */
.value-strip__divider {
  display: none;
}

@media (min-width: 768px) {
  .value-strip__divider {
    display: block;
    width: 1px;
    height: 20px;
    background-color: #2a2a2a;
  }
}

/* ─────────────────────────────────────
   SECTION DIVIDER — Animated Lime Line
   "Detailing finish line" metaphor
   ───────────────────────────────────── */
.section-divider {
  height: 1px;
  background: #84cc16;
  width: 0;
  transition: width 0.8s ease;
}

.section-divider.visible {
  width: 100%;
}

/* ─────────────────────────────────────
   SERVICES PREVIEW
   4 cards — 2×2 desktop grid,
   horizontal scroll strip on mobile
   ───────────────────────────────────── */
.services-preview {
  background-color: #0a0a0a;
}

/* ── Section header — centered mobile, left desktop ── */
.services-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .services-header {
    text-align: left;
  }
}

.services-header__eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #84cc16;
  margin-bottom: 12px;
}

.services-header__headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  color: #e5e5e5;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.services-header__subtext {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: #888888;
  max-width: 520px;
  margin-top: 12px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .services-header__subtext {
    margin-top: 16px;
  }
}

/* ── Scroll reveal for header ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card grid ── */
/* Mobile: horizontal scroll strip */
.services-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding-bottom: 8px;
  scrollbar-width: none; /* Firefox */
}

.services-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Desktop: 2×2 grid */
@media (min-width: 768px) {
  .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

/* ── Desktop inactive card dim ── */
@media (min-width: 768px) {
  .services-grid:hover .service-card:not(:hover) {
    opacity: 0.7;
  }
}

/* ── Individual service card ── */
.service-card {
  position: relative;
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 28px 24px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;

  /* Mobile scroll-snap */
  flex-shrink: 0;
  width: 80vw;
  scroll-snap-align: start;
}

/* Desktop: auto width */
@media (min-width: 768px) {
  .service-card {
    width: auto;
    flex-shrink: 1;
  }
}

/* Decorative diagonal line — top-right corner, low opacity */
.service-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-bottom: 1px solid #84cc16;
  transform: rotate(45deg);
  opacity: 0.12;
  pointer-events: none;
}

/* ── Card hover state ── */
@media (min-width: 768px) {
  .service-card:hover {
    border-color: #84cc16;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(132, 204, 22, 0.08);
    /* Left lime border via inset box-shadow (avoids layout shift) */
    box-shadow: inset 4px 0 0 #84cc16, 0 12px 32px rgba(132, 204, 22, 0.08);
  }
}

/* ── Card scroll-reveal animation ── */
.scroll-reveal-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Visible via IntersectionObserver on desktop only — mobile cards are visible immediately in scroll strip */
.scroll-reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* On mobile, cards must be visible for scroll strip to work */
@media (max-width: 767px) {
  .scroll-reveal-card {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── "MOST POPULAR" badge ── */
.service-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 10px;
  background-color: #84cc16;
  color: #0a0a0a;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 0 8px 0 8px;
  z-index: 2;
}

/* ── Card content elements ── */
.service-card__icon {
  margin-bottom: 16px;
}

.service-card__name {
  font-family: var(--font-display);
  font-size: 24px;
  color: #e5e5e5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 6px;
}

.service-card__price {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: #84cc16;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.service-card__desc {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  color: #888888;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-card__ctas {
  display: flex;
  gap: 12px;
}

/* Small button variant for cards */
.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 12px;
}

/* ── Swipe hint (mobile only) ── */
.services-swipe-hint {
  display: block;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 11px;
  color: #888888;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .services-swipe-hint {
    display: none;
  }
}

/* ── Section CTA link ── */
.services-preview__cta {
  text-align: center;
  margin-top: 32px;
}

.services-preview__link {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: #84cc16;
  text-decoration: none;
  transition: text-decoration-color 0.25s ease;
}

.services-preview__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ─────────────────────────────────────
   MOBILE DETAILING BANNER
   Full-width lime bar, email capture
   ───────────────────────────────────── */
.mobile-banner {
  background-color: #84cc16;
  padding: 20px 0;
}

.mobile-banner__inner {
  text-align: center;
}

.mobile-banner__headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 36px);
  color: #0a0a0a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}

.mobile-banner__subtext {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  color: #0a0a0a;
  opacity: 0.75;
  margin-top: 8px;
  margin-bottom: 16px;
}

/* ── Inline email form ── */
.mobile-banner__form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 400px;
  margin-inline: auto;
}

.mobile-banner__input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid #0a0a0a;
  padding: 8px 4px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: #0a0a0a;
  outline: none;
}

.mobile-banner__input::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.mobile-banner__btn {
  background-color: #0a0a0a;
  color: #84cc16;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.mobile-banner__btn:hover {
  opacity: 0.85;
}

/* Confirmation message — hidden until JS shows it */
.mobile-banner__confirm {
  display: none;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS PREVIEW — Homepage
   3 review cards, 3-col desktop,
   horizontal scroll-snap mobile
   ═══════════════════════════════════════════ */

.testimonials-preview {
  background-color: #0a0a0a;
}

.testimonials-preview__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.testimonials-preview__eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #84cc16;
  margin-bottom: 12px;
}

.testimonials-preview__headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  color: #e5e5e5;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

/* ── Card grid ── */
.testimonials-preview__grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.testimonials-preview__grid::-webkit-scrollbar {
  display: none;
}

/* Desktop: 3-col grid */
@media (min-width: 768px) {
  .testimonials-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

/* ── Review card (shared style) ── */
.testimonials-preview .review-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 24px 20px;
  flex-shrink: 0;
  width: 85vw;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .testimonials-preview .review-card {
    width: auto;
    flex-shrink: 1;
  }
}

.testimonials-preview .review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonials-preview .review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: #e5e5e5;
}

.testimonials-preview .review-card__stars {
  color: #84cc16;
  font-size: 13px;
  letter-spacing: 2px;
}

.testimonials-preview .review-card__name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: #e5e5e5;
  margin-bottom: 4px;
}

.testimonials-preview .review-card__city {
  font-weight: 400;
  color: #888;
  font-size: 12px;
}

.testimonials-preview .review-card__service {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: #84cc16;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.testimonials-preview .review-card__text {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #ccc;
  line-height: 1.6;
  font-style: italic;
}

/* ── CTA links ── */
.testimonials-preview__ctas {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.testimonials-preview__link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: #84cc16;
  text-decoration: none;
  transition: text-decoration-color 0.25s ease;
}

.testimonials-preview__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
