/* ===========================================================
   EAGLE LD — design tokens
   Subject: ELD compliance & hours-of-service monitoring for
   trucking fleets. Palette and signature motif are drawn from
   the highway/logbook world the product lives in.
=========================================================== */

:root {
  --bg: #11143f;
  --bg-alt: #1a1e52;
  --bg-alt-2: #20255f;
  --line: #2c3166;
  --text: #eef0fb;
  --text-muted: #9aa2c9;
  --accent: #5fc3f0;
  --accent-dim: #3e82de;
  --danger: #e2503a;

  --font-display: "Overpass", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--text);
}

p { color: var(--text-muted); margin: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(17, 20, 63, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 108px;
  column-gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  justify-self: center;
}

.logo .mark { height: 48px; width: auto; display: block; }

.logo .sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  text-align: center;
}

nav.primary-nav.nav-left { justify-self: start; }
nav.primary-nav.nav-right { justify-self: end; }

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

nav.primary-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  grid-column: 3;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  justify-self: end;
}

.mobile-nav { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color .15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #0c0f30;
}
.btn-primary:hover { background: #83d4f7; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero .lane-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  margin: 18px 0 26px;
}

.hero h1 span { color: var(--accent); }

.hero p.lede {
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* signature: HOS duty-status log strip */
.log-strip {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 20px 14px;
}

.log-strip .log-caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 10px;
}

.log-strip .status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 6px;
}

/* ---------- sections ---------- */

section { padding: 88px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

.section-head {
  max-width: 620px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 14px;
}

.section-head p { margin-top: 16px; font-size: 16px; }

/* services grid */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg);
  padding: 32px 26px;
  transition: background 0.2s ease;
}

.service-card:hover { background: var(--bg-alt); }

.service-card .num {
  font-family: var(--font-mono);
  color: var(--accent-dim);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.service-card h3 {
  font-size: 19px;
  margin: 16px 0 12px;
  letter-spacing: 0;
}

.service-card p { font-size: 14.5px; }

/* about split */

.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.about-split .quote {
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: none;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  margin-bottom: 30px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.stat .value {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--accent);
  display: block;
}

.stat .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.values-list { display: grid; gap: 22px; }

.value-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
}

.value-item .idx {
  font-family: var(--font-mono);
  color: var(--accent-dim);
  font-size: 13px;
}

.value-item h3 { font-size: 16.5px; letter-spacing: 0; margin-bottom: 6px; }
.value-item p { font-size: 14.5px; }

/* CTA band */

.cta-band {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 54px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { font-size: clamp(24px, 3vw, 32px); }

/* ---------- contact page ---------- */

.contact-hero {
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--line);
}

.contact-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-top: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
}

.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 18px;
}

.contact-card .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.contact-card .value {
  font-size: 19px;
  color: var(--text);
  font-weight: 600;
}

.contact-card .value.small { font-size: 15px; font-weight: 400; color: var(--text-muted); }

.social-row { display: flex; gap: 14px; margin-top: 6px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, color .15s ease;
  color: var(--text-muted);
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); }

form.contact-form { display: grid; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

input, select, textarea {
  width: 100%;
  background: var(--bg-alt-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.15s ease;
}

input::placeholder, textarea::placeholder { color: #626b78; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -4px;
}

/* ---------- about story (alternating photo/text) ---------- */

.story-heading { margin-bottom: 48px; }

.story-heading h2 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.05;
}

.story-heading .tone-b { color: var(--accent); }

.heading-rule {
  margin-top: 22px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--line) 55%, transparent 100%);
}

.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 72px;
}

.story-row:last-child { margin-bottom: 0; }

.story-text p { font-size: 15.5px; margin-bottom: 18px; }
.story-text p:last-child { margin-bottom: 0; }
.story-text strong { color: var(--text); font-weight: 600; }

.photo-frame {
  border: 2px solid var(--accent);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt-2);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}

.photo-placeholder svg { opacity: 0.7; }

.photo-placeholder span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- footer with social block ---------- */

footer { padding: 0; border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 56px 0 34px;
}

.footer-mark { height: 34px; width: auto; }

.foot-tagline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-social { justify-content: center; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.footer-bottom .wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  text-align: center;
}

footer .foot-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

footer .foot-links { display: flex; gap: 22px; }
footer .foot-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
footer .foot-links a:hover { color: var(--accent); }

/* ---------- focus visibility ---------- */

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .about-split, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .site-header .wrap { grid-template-columns: 1fr auto; height: 76px; }
  nav.primary-nav.nav-left, nav.primary-nav.nav-right { display: none; }
  .logo { justify-self: start; flex-direction: row; align-items: center; }
  .logo .sub { text-align: left; }
  .nav-toggle { display: block; grid-column: 2; }

  body.nav-open .mobile-nav {
    display: block;
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg);
    padding: 30px 28px;
    z-index: 39;
  }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; background-color: #11143F !important; }
  .mobile-nav a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--accent); }

  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .stat-row { grid-template-columns: 1fr; gap: 14px; }
  section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .story-row, .story-row.reverse { grid-template-columns: 1fr !important; }
  .story-row .photo-frame { order: -1; }
}
