/* ==========================================================================
   delsalogistics.com — Shared Nav + Footer Component
   nav.css — header, mobile overlay, footer
   ========================================================================== */

/* Design tokens (subset) */
:root {
  --ink:       #0d0f12;
  --bone:      #f4ede0;
  --bone-warm: #ece2cf;
  --rust:      #c44a1f;
  --rust-deep: #8b2e0f;
  --amber:     #d99a3a;
  --line:      rgba(13,15,18,0.18);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244,237,224,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
nav .brand img { height: 38px; width: auto; display: block; transition: opacity .25s; }
nav .brand:hover img { opacity: 0.7; }
nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
nav ul a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: opacity .25s;
}
nav ul a:hover { opacity: 0.6; }
nav ul a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--rust);
  transition: width .35s ease;
}
nav ul a:hover::after { width: 100%; }
nav .cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--bone);
  padding: 11px 20px;
  text-decoration: none;
  transition: background .25s;
}
nav .cta:hover { background: var(--rust); }
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

/* ── Mobile overlay ── */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(244,237,224,0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}
.nav-mobile-overlay ul a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
}
.nav-mobile-overlay ul a:hover { color: var(--rust); }
.cta-mobile {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--bone);
  padding: 14px 32px;
  text-decoration: none;
  transition: background .25s;
}
.cta-mobile:hover { background: var(--rust); }
.nav-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 880px) {
  nav ul, nav .cta { display: none; }
  nav .brand img { height: 30px; }
  .menu-btn { display: block; }
}
@media (min-width: 881px) {
  .nav-mobile-overlay { display: none !important; }
}

/* ── Footer ── */
footer {
  background: var(--ink);
  color: var(--bone);
  padding: 60px 32px 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto 48px;
}
.foot-brand img { height: 54px; margin-bottom: 24px; filter: brightness(0) invert(0.95); max-width: 100%; }
.foot-brand p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244,237,224,0.65);
  max-width: 340px;
}
.foot-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a {
  color: rgba(244,237,224,0.75);
  text-decoration: none;
  font-size: 15px;
  transition: color .25s;
}
.foot-col a:hover { color: var(--amber); }
.foot-social { display: flex; gap: 14px; margin-top: 8px; }
.foot-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(244,237,224,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s;
}
.foot-social a:hover { background: var(--rust); border-color: var(--rust); }
.foot-social svg { width: 16px; height: 16px; fill: var(--bone); }
.foot-bot {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(244,237,224,0.15);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(244,237,224,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-sms-disclosure {
  font-size: 0.7rem;
  color: rgba(0,0,0,0.45);
  line-height: 1.6;
  margin-top: 0.9rem;
  text-align: center;
  padding: 0 1rem;
}

@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
  footer { padding: 60px 24px 24px; }
}
