/* ==========================================================================
   RepoMH — Shared Nav Component
   nav.css — header, promo strip, mobile menu, mobile CTA, footer disclosure
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens (subset needed for nav — full tokens live in css/styles.css)
   -------------------------------------------------------------------------- */
:root {
  --bg:          #F5F0E6;
  --bg-deep:    #EBE3D2;
  --ink:         #1F2A24;
  --ink-soft:   #4A554E;
  --ink-quiet:  #8A8478;
  --line:        #D9CFB8;
  --accent:      #C8553D;
  --accent-dark: #A4452F;
  --accent-soft: #F1D5CC;
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body:    'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --fs-12:  0.75rem;
  --fs-14:  0.875rem;
  --fs-16:  1rem;
  --container-w: 1280px;
  --gutter:      1.5rem;
  --ease:     cubic-bezier(.2,.7,.2,1);
}

/* --------------------------------------------------------------------------
   Promo strip
   -------------------------------------------------------------------------- */
.promo-strip {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-block: 0.625rem;
  text-align: center;
}
.promo-strip a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 600px) {
  .promo-strip {
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    padding-inline: var(--gutter);
    line-height: 1.5;
  }
}

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 230, 0.85);
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}

/* --------------------------------------------------------------------------
   Nav inner (uses .container class from styles.css — shared token)
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 2rem;
}

/* --------------------------------------------------------------------------
   Brand
   -------------------------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 12, "SOFT" 50;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-text sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Nav links
   -------------------------------------------------------------------------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 4px;
  text-decoration: none;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

/* --------------------------------------------------------------------------
   Nav actions
   -------------------------------------------------------------------------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-phone {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.nav-phone:hover { color: var(--accent); }
.nav-phone svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Buttons (nav-scoped)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-lg {
  padding: 1.1rem 2rem;
  font-size: var(--fs-16);
}

/* --------------------------------------------------------------------------
   Hamburger toggle
   -------------------------------------------------------------------------- */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; right: 0; }
.nav-toggle span::after  { position: absolute; top: 6px;  left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Mobile menu
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav-links,
  .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .nav {
    gap: 1rem;
    flex-wrap: nowrap;
  }
  .brand { min-width: 0; flex: 1; overflow: hidden; }
  .brand-text { font-size: 1.25rem; white-space: nowrap; }
  .brand-text sub { display: none; }
  .nav-actions { flex-shrink: 0; }

  .mobile-menu {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--bg);
    padding: 2rem var(--gutter) 3rem;
    transform: translateY(-110%);
    transition: transform .35s var(--ease);
    z-index: 99;
    overflow-y: auto;
  }
  .mobile-menu[data-open="true"] { transform: translateY(0); }
  .mobile-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid var(--line);
  }
  .mobile-menu li { border-bottom: 1px solid var(--line); }
  .mobile-menu a {
    font-family: var(--font-display);
    font-size: 2rem;
    padding-block: 1rem;
    display: block;
    color: var(--ink);
    text-decoration: none;
  }
  .mobile-menu .mobile-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .mobile-menu .mobile-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Mobile sticky CTA bar
   -------------------------------------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 98;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 0.75rem var(--gutter);
  gap: 0.75rem;
}
@media (max-width: 960px) {
  .mobile-cta { display: flex; }
  .mobile-cta .btn { flex: 1; justify-content: center; }
  body { padding-bottom: 72px; }
}

/* --------------------------------------------------------------------------
   Footer SMS disclosure
   -------------------------------------------------------------------------- */
.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;
}

/* ============================================================
   TNMH DEALER NETWORK — cross-site footer links
============================================================ */
.footer-network { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 4px; margin-top: 12px; }
.footer-network__title { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.45); font-weight: 600; margin: 0 0 12px; }
.footer-network__links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-network__link { flex: 1; min-width: 180px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; text-decoration: none; transition: border-color .2s; }
.footer-network__link:hover { border-color: rgba(255,255,255,.3); }
.footer-network__link strong { display: block; color: rgba(255,255,255,.85); font-size: .85rem; margin-bottom: 2px; }
.footer-network__link span { display: block; font-size: .73rem; color: rgba(255,255,255,.45); line-height: 1.4; }
