/* Otay Mesa Cross Docking - shared styles
   Tokens: graphite neutrals + one safety-orange accent. Radius system: 4px controls, 12px panels. */

:root {
  --bg: #f4f4f2;
  --bg-2: #eaeae6;
  --panel: #ffffff;
  --line: #d6d6d0;
  --ink: #16181b;
  --ink-2: #4a4e55;
  --ink-3: #6b7078;
  --accent: #e2570b;
  --accent-ink: #ffffff;
  --accent-soft: rgb(226 87 11 / .1);
  --ok: #0f8a5f;
  --shadow: 0 1px 0 rgb(22 24 27 / .04), 0 12px 32px -12px rgb(22 24 27 / .16);
  --r-sm: 4px;
  --r-lg: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --max: 1280px;
  --pad: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113;
    --bg-2: #15181b;
    --panel: #1a1d21;
    --line: #2a2e34;
    --ink: #eceae6;
    --ink-2: #b3b5b9;
    --ink-3: #8b8f96;
    --accent: #f26a1b;
    --accent-ink: #140a03;
    --accent-soft: rgb(242 106 27 / .12);
    --ok: #34c28a;
    --shadow: 0 1px 0 rgb(255 255 255 / .03) inset, 0 20px 40px -20px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
main { flex: 1; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-feature-settings: "tnum"; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }
.skip { position: absolute; left: 12px; top: -48px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 19px;
}
.brand-short { display: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 15px; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel); color: var(--ink); font-size: 22px; place-items: center; cursor: pointer;
}
.mobile-menu { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: var(--r-sm);
  font: 600 15px/1 "Geist", system-ui, sans-serif; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-primary i { transition: transform .3s var(--ease); }
.btn-primary:hover i { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--bg-2); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); font-size: 15px; }
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.h2 { font-size: clamp(30px, 4vw, 48px); }
.lead { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 "Geist Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.stack-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }

/* ---------- Reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 32px; }
.footer-grid h3 { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-2); transition: color .2s; }
.footer-grid a:hover { color: var(--accent); }
.footer-blurb { color: var(--ink-2); max-width: 36ch; margin-top: 14px; font-size: 15px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.footer-base nav { display: flex; gap: 20px; }
.footer-base a:hover { color: var(--ink); }

/* ---------- Responsive nav ---------- */
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu { border-top: 1px solid var(--line); padding: 12px var(--pad) 20px; background: var(--bg); }
  .mobile-menu.open { display: grid; gap: 4px; }
  .mobile-menu a { padding: 12px 4px; font-size: 17px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line); }
  .mobile-menu a[aria-current="page"] { color: var(--accent); }
  .mobile-menu .btn { margin-top: 12px; border-bottom: 0; color: var(--accent-ink); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .brand-full { display: none; }
  .brand-short { display: inline; }
}
