/* ============================================================
   LoadUp Solutions — custom styles layered on top of Tailwind
   ============================================================ */

:root {
  --lup-black: #0a0a0b;
  --lup-black-soft: #131315;
  --lup-black-card: #18181b;
  --lup-lime: #a6e22e;
  --lup-lime-bright: #c3f53c;
  --lup-lime-dark: #7fb01f;
  --lup-white: #fafaf9;
  --lup-gray: #9a9a9e;
  --lup-gray-dark: #4b4b4f;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background-color: var(--lup-black);
  color: var(--lup-white);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Anton', 'Archivo Black', sans-serif;
  letter-spacing: 0.01em;
}

::selection {
  background-color: var(--lup-lime);
  color: var(--lup-black);
}

:focus-visible {
  outline: 3px solid var(--lup-lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--lup-black);
}
::-webkit-scrollbar-thumb {
  background: var(--lup-gray-dark);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--lup-lime-dark);
}

/* Text accent */
.text-lime {
  color: var(--lup-lime);
}
.bg-lime {
  background-color: var(--lup-lime);
}

/* Marker-style highlight underline behind emphasized words */
.marker-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.marker-underline::after {
  content: '';
  position: absolute;
  left: -0.15em;
  right: -0.15em;
  bottom: 0.02em;
  height: 0.28em;
  background: linear-gradient(90deg, var(--lup-lime) 0%, var(--lup-lime-bright) 100%);
  z-index: -1;
  transform: skewX(-8deg);
  border-radius: 2px;
}

/* Noise / grain texture overlay for depth */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* Diagonal safety-stripe accent */
.stripe-accent {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--lup-lime) 0,
    var(--lup-lime) 14px,
    var(--lup-black) 14px,
    var(--lup-black) 28px
  );
}

/* Radial glow */
.glow-lime {
  background: radial-gradient(circle at 50% 50%, rgba(166, 226, 46, 0.25) 0%, rgba(166, 226, 46, 0) 70%);
}

/* Card hover lift */
.lift-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.lift-card:hover {
  transform: translateY(-6px);
  border-color: var(--lup-lime);
  box-shadow: 0 20px 40px -20px rgba(166, 226, 46, 0.25);
}

/* Logo mark badge */
.badge-mark {
  background: radial-gradient(circle at 30% 25%, #1c1c1f 0%, #0a0a0b 75%);
  border: 2px solid var(--lup-lime);
}

/* GSAP reveal initial states (JS toggles final state) */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}
.reveal-fade {
  opacity: 0;
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-fade, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Sticky header state */
#site-header {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#site-header.scrolled {
  background-color: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.6);
}

/* Mobile menu */
#mobile-menu {
  transition: clip-path 0.5s cubic-bezier(0.83, 0, 0.17, 1);
  clip-path: circle(0% at calc(100% - 32px) 32px);
}
#mobile-menu.open {
  clip-path: circle(150% at calc(100% - 32px) 32px);
}

/* Ripple hover for primary buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(166, 226, 46, 0.45);
}
.btn-primary:active {
  transform: translateY(0);
}

/* Truck illustration drive-in animation */
.truck-drive-in {
  transform: translateX(60px);
  opacity: 0;
}

/* Accordion */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
}
.faq-panel > div {
  overflow: hidden;
}
.faq-chevron {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.open .faq-chevron {
  transform: rotate(45deg);
}

/* Form focus + validity states */
.form-field {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field:focus {
  border-color: var(--lup-lime);
  box-shadow: 0 0 0 4px rgba(166, 226, 46, 0.15);
}
.form-field.field-error {
  border-color: #f87171;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(10, 10, 11, 0.2);
  border-top-color: var(--lup-black);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Marquee for trust strip */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Floating call button (mobile) */
#mobile-cta {
  box-shadow: 0 10px 30px -10px rgba(166, 226, 46, 0.5);
}

/* Blob shapes for organic background accents */
.blob {
  filter: blur(90px);
  opacity: 0.25;
}

/* Utility: 44px min touch target already handled via padding in markup */
