/* ==========================================================================
   tnmh.net — Shared Nav Component
   nav.css — design tokens, header, mobile menu, phone bar, footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink:        #12141B;
  --ink2:       #1B1E28;
  --ink-line:   rgba(255,255,255,.12);
  --paper:      #F7F5F1;
  --paper2:     #EDE9E1;
  --text:       #12141B;
  --text-soft:  #5B5F6B;
  --blue:       #2F6FED;
  --blue-dark:  #1E54C2;
  --amber:      #F5A623;
  --amber-dark: #C97D0A;
  --green:      #22C55E;
  --green-dark: #15803D;
  --white:      #FFFFFF;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(18,20,27,.97);
  border-bottom: 2px solid var(--amber);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 16px;
}

/* Logo */
.logo-block { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-block__img { height: 34px; width: auto; display: block; }
@media (max-width: 480px) { .logo-block__img { height: 30px; } }

/* Desktop nav */
.header-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.header-nav a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .3px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.header-nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.header-nav a.active { color: var(--ink); background: var(--amber); }
.header-nav a.cta-nav { background: var(--blue); color: #fff; padding: 9px 16px; border-radius: 6px; }
.header-nav a.cta-nav:hover { background: var(--blue-dark); }

/* Mobile menu button */
.mobile-nav-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--amber);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.1rem;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 58px; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(18,20,27,0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 10px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.1);
}
.mobile-menu a:hover { background: rgba(255,255,255,.06); }
.mobile-menu a.cta-mobile { background: var(--blue); border-color: var(--blue); }

/* Sticky phone bar (mobile only) */
.phone-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99;
  background: var(--ink);
  border-top: 2px solid var(--amber);
  padding: 10px 12px;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.phone-bar a {
  flex: 1;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  padding: 11px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.phone-bar a.pb-call { background: var(--green-dark); }
.phone-bar a.pb-home { background: rgba(255,255,255,.08); flex: 0 0 46px; }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-nav-btn { display: flex; }
  .phone-bar { display: flex; }
  body { padding-bottom: 66px; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 48px 20px 20px; }
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-brand__logo { display: inline-block; }
.footer-brand__logo img { height: 36px; width: auto; display: block; }
.footer-brand p { margin: 10px 0 0; font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 320px; }
.footer-col h3 { color: #fff; font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 12px; }
.footer-col a { display: block; color: rgba(255,255,255,.65); text-decoration: none; font-size: .9rem; padding: 4px 0; }
.footer-col a:hover { color: var(--amber); }
.license-badge { display: inline-block; font-size: .78rem; background: rgba(255,255,255,.08); padding: 6px 10px; border-radius: 6px; color: rgba(255,255,255,.7); }

/* TDHCA badge */
.tdhca { max-width: 1100px; margin: 28px auto 0; padding-top: 24px; border-top: 1px solid var(--ink-line); text-align: center; }
.tdhca a { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; transition: opacity .2s; }
.tdhca a:hover { opacity: .85; }
.tdhca__badge { display: flex; align-items: center; justify-content: center; }
.tdhca__img { max-width: 200px; width: 100%; height: auto; display: block; background: rgba(255,255,255,.95); padding: 8px 12px; border-radius: 8px; }
.tdhca__license { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 600; }

.footer-bottom {
  max-width: 1100px; margin: 32px auto 0; padding-top: 20px;
  border-top: 1px solid var(--ink-line);
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between;
  font-size: .78rem; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); text-decoration: underline; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   TNMH DEALER NETWORK — cross-site footer links
============================================================ */
.footer-network { max-width: 1100px; margin: 20px auto 0; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 4px; }
.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; }

/* Footer SMS disclosure */
.footer-sms-disclosure {
  max-width: 1100px; margin: 16px auto 0;
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  text-align: center;
  padding: 0 1rem;
}
.footer-sms-disclosure a { color: rgba(255,255,255,.6); text-decoration: underline; }
