/* Calibrate Freight marketing — site chrome: top nav + footer. */

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 14px 1px var(--brand); flex-shrink: 0; }
/* Wordmark: uppercase "CALIBRATE FREIGHT" — Mustica Pro, tight tracking, two weights + accent (per Cooper 2026-07-15; overrides the spec's lowercase). */
.brand__name { font-family: var(--font-display); letter-spacing: -0.03em; font-size: 1.02rem; white-space: nowrap; text-transform: uppercase; }
.brand__name .wm-cal { color: var(--fg); font-weight: 600; }
.brand__name .wm-freight { color: var(--brand); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 1.55rem; }
.nav__links a { font-size: 0.88rem; color: var(--dim); transition: color 0.2s; white-space: nowrap; }
.nav__links a:hover { color: var(--fg); }
.nav__cta { display: flex; align-items: center; gap: 0.7rem; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav__toggle svg { width: 20px; height: 20px; stroke: var(--fg); }
/* Mobile menu is hidden on desktop; the mobile breakpoint below turns it on. */
.nav__menu { display: none; }

@media (max-width: 1024px) {
  .nav__links, .nav__cta .btn-ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: 68px 0 auto 0; padding: 1.2rem var(--gutter) 1.6rem;
    background: color-mix(in oklch, var(--bg) 94%, transparent); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 1rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.25s var(--ease);
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu a { font-size: 1.05rem; color: var(--fg); padding: 0.4rem 0; }
  .nav__menu .btn { justify-content: center; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; margin-top: 2rem; position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__tagline { color: var(--dim); max-width: 30ch; margin-top: 1rem; font-size: 0.95rem; }
.footer__col h4 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dimmer); margin-bottom: 1rem; }
.footer__col a { display: block; color: var(--dim); font-size: 0.9rem; padding: 0.28rem 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--brand-hi); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); color: var(--dimmer); font-size: 0.82rem; }
.footer__legend { font-size: 0.78rem; letter-spacing: 0.01em; margin-bottom: 2.6rem; }
.footer__watch { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.footer__watch-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px 1px var(--good); }
@keyframes footerPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: no-preference) { .footer__watch-dot { animation: footerPulse 2.4s var(--ease) infinite; } }
.footer__lanes { margin-top: 0.5rem; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--dimmer); }
.footer__key { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1rem; }

/* Light/dark toggle (dark is the default; choice stored in localStorage). */
.theme-toggle {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: transparent; color: var(--dim);
  font-size: 0.95rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.theme-toggle:hover { color: var(--fg); border-color: var(--brand); }
