/* ===== SHARED NAV & FOOTER — site-nav.css ===== */
/* Linked from every page. Single source of truth for nav + footer styles. */

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
nav .nav-container {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.5rem;
}
nav .logo-section {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--logo-navy, #132c56); text-decoration: none;
}
nav .logo-section img { height: 40px; width: auto; max-width: 180px; border-radius: 8px; }
nav .logo-section:hover img { opacity: 0.8; }
nav .logo-section .logo-text {
  font-family: "Nunito Sans", "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.35rem, 1.8vw, 1.95rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1; color: var(--logo-navy, #132c56);
}
nav .nav-links { display: flex; gap: 0.25rem; align-items: center; }
nav .nav-links > a,
nav .nav-links > .dropdown,
nav .nav-links > .help-dropdown {
  color: var(--text, #1d1d1f); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 0.5rem 0.85rem; border-radius: 8px; transition: background-color 0.2s ease;
}
nav .nav-links > a:hover,
nav .nav-links > .dropdown:hover,
nav .nav-links > .help-dropdown:hover { background: rgba(0, 0, 0, 0.04); }
nav .nav-links > a.cta-pill:hover { background: #001a8a; }

/* Line status dropdown */
.dropdown { cursor: pointer; position: relative; }
.dropdown-content {
  position: absolute; top: 100%; right: 0; background: white;
  min-width: 540px; display: flex; gap: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); border-radius: 8px; padding: 0.75rem 0.5rem 0.5rem;
  z-index: 1001; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease; cursor: pointer;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; z-index: 1000; cursor: pointer; }
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown-content:hover { opacity: 1; visibility: visible; pointer-events: auto; }
.dropdown-section { flex: 1; min-width: 0; }
.dropdown-section:not(:last-child) { border-right: 1px solid rgba(0, 0, 0, 0.06); padding-right: 0.5rem; }
.dropdown-title {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--brand, #0019a8); padding: 0.5rem 0.75rem 0.25rem;
  border-bottom: 2px solid rgba(0, 25, 168, 0.12); margin-bottom: 0.25rem;
}
.dropdown-content a {
  display: block; color: #1d1d1f; text-decoration: none; padding: 0.4rem 0.75rem;
  border-radius: 6px; font-size: 0.9rem; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border-left: 3px solid transparent;
}
.dropdown-content a:hover {
  background: rgba(0, 25, 168, 0.06); color: var(--brand, #0019a8);
  border-left-color: var(--brand, #0019a8);
}

/* Help dropdown — same hover pattern as Line status */
.help-dropdown { cursor: pointer; position: relative; }
.help-dropdown-content {
  position: absolute; top: 100%; right: 0; background: white;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); border-radius: 8px; padding: 0.5rem;
  z-index: 1001; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease; cursor: pointer;
}
.help-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; z-index: 1000; cursor: pointer; }
.help-dropdown:hover .help-dropdown-content,
.help-dropdown:focus-within .help-dropdown-content,
.help-dropdown-content:hover { opacity: 1; visibility: visible; pointer-events: auto; }
.help-dropdown-content a {
  display: block; color: #1d1d1f; text-decoration: none; padding: 0.5rem 0.75rem;
  border-radius: 6px; font-size: 0.9rem; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border-left: 3px solid transparent;
}
.help-dropdown-content a:hover {
  background: rgba(0, 25, 168, 0.06); color: var(--brand, #0019a8);
  border-left-color: var(--brand, #0019a8);
}

/* CTA pill */
nav .nav-links a.cta-pill {
  background: var(--brand, #0019a8); color: white; border-radius: 999px;
  font-weight: 700; font-size: 0.92rem;
  margin-left: 0.5rem; padding: 0.5rem 1.2rem; line-height: 1.5;
  text-decoration: none; transition: background-color 0.2s ease;
  white-space: nowrap; cursor: pointer;
}

/* Hamburger menu toggle */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; padding: 8px; border-radius: 8px; }
.menu-toggle:hover { background: rgba(0, 0, 0, 0.04); }
.menu-toggle span { width: 22px; height: 2px; background: var(--text, #1d1d1f); border-radius: 2px; transition: 0.3s; }

/* ===== FOOTER ===== */
footer {
  text-align: center; font-size: 0.9rem; color: var(--text-secondary, #6e6e73);
  margin: 3rem 0 0; padding: 2rem 1.5rem;
  background: #fff; border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  margin-bottom: 14px;
}
.footer-links a {
  color: var(--brand, #0019a8); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  transition: opacity 0.2s ease;
}
.footer-links a:hover { opacity: 0.7; }
.footer-disclaimer { margin: 0 0 6px; font-size: 0.82rem; color: #9ca3af; line-height: 1.4; }
.footer-email { margin: 0 0 6px; font-size: 0.82rem; color: #9ca3af; }
.footer-email a { color: #6b7280; }
.footer-copyright { margin: 0; font-size: 0.82rem; color: #9ca3af; }

/* ===== MOBILE NAV ===== */
@media (max-width: 767px) {
  nav .nav-container { padding: 0.75rem 1rem; }
  nav .logo-section .logo-text { font-size: 1.15rem; }
  .menu-toggle { display: flex; }

  nav .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #ffffff;
    flex-direction: column; padding: 1rem; gap: 0.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  nav .nav-links.active { display: flex; }

  nav .nav-links > a { width: 100%; text-align: center; color: var(--text, #1d1d1f); }

  /* Line status dropdown — mobile: click to toggle */
  .dropdown { position: static; }
  .dropdown > span {
    display: block; width: 100%; text-align: center;
    padding: 0.5rem 0.85rem; border-radius: 8px;
  }
  .dropdown-content {
    position: static; min-width: auto; flex-direction: column;
    box-shadow: none; border-radius: 8px; padding: 0.75rem;
    opacity: 1; visibility: visible; pointer-events: auto;
    display: none; background: #f9fafb;
    margin-top: 0.5rem; max-height: 50vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dropdown.open .dropdown-content { display: flex; }
  .dropdown-section { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .dropdown-section:not(:last-child) { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
  .dropdown-title { grid-column: 1 / -1; padding: 0.35rem 0.5rem 0.2rem; }
  .dropdown-content a { padding: 0.35rem 0.5rem; font-size: 0.85rem; border-left: none; }
  .dropdown-content a:hover { border-left: none; }

  /* Help dropdown — mobile */
  .help-dropdown { position: static; width: 100%; }
  .help-dropdown > span {
    display: block; width: 100%; text-align: center;
    padding: 0.5rem 0.85rem; border-radius: 8px;
  }
  .help-dropdown-content {
    position: static; box-shadow: none; border-radius: 8px; min-width: auto;
    padding: 0.5rem; background: #f9fafb;
    margin-top: 0.5rem; opacity: 1; visibility: visible; pointer-events: auto;
    display: none;
  }
  .help-dropdown.open .help-dropdown-content { display: block; }
  .help-dropdown-content a { border-left: none; text-align: center; }
  .help-dropdown-content a:hover { border-left: none; }

  /* CTA pill — full width on mobile */
  nav .nav-links a.cta-pill { display: block; text-align: center; margin: 0.5rem 0 0; }
}
