/* =====================================================================
   PINE LOGISTICS — global.css
   Tokens · reset · shared utilities · buttons · shared page components
   Loaded on every page, first, before pages.css.
   Everything page-specific (nav, footer, home, fleet, owner-operators,
   drivers, legal) lives in pages.css.
   ===================================================================== */

:root {
  /* Brand palette */
  --green-deep: #004d26;
  --green-darker: #00250f;
  --green-neon: #9bc73d;
  --white: #ffffff;
  --green-soft: #eaf2ec;
  --ink: #0a1c12;
  --charcoal: #111111;

  /* Glass */
  --glass-light: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-dark: rgba(7, 40, 24, 0.45);

  /* Effects */
  --shadow-soft: 0 24px 60px -18px rgba(0, 40, 20, 0.45);
  --shadow-lift: 0 40px 80px -24px rgba(0, 40, 20, 0.55);
  --glow-neon: 0 0 15px rgba(155, 199, 61, 0.65);
  --glow-neon-lg: 0 0 35px rgba(155, 199, 61, 0.55);

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;

  --header-h: 76px;
  --maxw: 1240px;
}

/* ----------------------------- reset ----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.icon-16 {
  width: 18px;
  height: 18px;
}

/* ----------------------- shared utilities ----------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-neon);
  margin-bottom: 1rem;
}

.eyebrow-dark {
  color: var(--green-deep);
}

.eyebrow-neon {
  color: var(--green-neon);
}

.grad-text {
  background: linear-gradient(100deg, var(--green-neon), #d6f08a 60%, var(--green-neon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: var(--glass-light);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--glass-border);
}

.glass-dark {
  background: var(--glass-dark);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(155, 199, 61, 0.22);
}

/* ------------------------- buttons ------------------------- */
.btn {
  --pad: 0.72rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--pad);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:focus-visible {
  outline: 3px solid var(--green-neon);
  outline-offset: 3px;
}

.btn-neon {
  background: var(--green-neon);
  color: var(--green-darker);
  box-shadow: var(--glow-neon);
}

.btn-neon:hover {
  box-shadow: var(--glow-neon-lg), 0 16px 30px -12px rgba(155, 199, 61, 0.7);
}

.btn-email {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(155, 199, 61, 0.45);
}

.btn-email:hover {
  background: var(--green-neon);
  color: var(--green-darker);
  box-shadow: var(--glow-neon);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--green-neon);
  box-shadow: var(--glow-neon);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Bigger button variants used by the recruitment CTAs (owner/drivers pages) */
.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1.05rem 2.4rem;
  font-size: 1.08rem;
}

/* ================== SHARED PAGE COMPONENTS ==================
   Identical building blocks reused by the home/fleet/owner/drivers hero +
   card sections in pages.css. Kept here once instead of copy-pasted per
   section. */

/* JS parallax hook — base layer box for every hero-photo/hero-tint pair */
.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* Scroll cue at the bottom of every hero */
.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--green-neon);
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(14px);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* Centered section intro (eyebrow + title) used above most content grids */
.section-head {
  width: min(100% - 3rem, var(--maxw));
  margin: 0 auto 3rem;
  text-align: center;
}

.section-title-dark {
  color: var(--green-deep);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
}

/* Slow diagonal gradient drift on light section backgrounds */
@keyframes softShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Floating blurred orbs on dark breakout sections */
@keyframes orb {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(40px, -30px);
  }
}

/* Hover glow under feature/trailer/advantage/comp cards */
.card-glow {
  position: absolute;
  inset: auto -40% -60% -40%;
  height: 70%;
  background: radial-gradient(circle at 50% 100%, rgba(155, 199, 61, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

/* Light-context checkmark (deep green fill on white cards) */
.check-light {
  color: var(--white);
  background: linear-gradient(140deg, var(--green-deep), #2f7a1f);
  border-color: transparent;
  box-shadow: 0 8px 18px -8px rgba(0, 77, 38, 0.6);
}

/* ======================= reveal animation ======================= */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===================== accessibility ===================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
