﻿/* ============================================================
   Regency Analytics LLC — Shared Navigation & Footer Styles
   Used by: all HTML pages
   ============================================================ */

/* Design tokens are in assets/css/tokens.css — load that file first. */

/* ---------- TOP UTILITY BAR -------------------------------- */
.top-bar {
  background: var(--navy-900);
  padding: 7px 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 12px;
  color: var(--gray-300);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar a, .top-bar span {
  color: var(--gray-300);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}
.top-bar a:hover { color: var(--white); }
.top-bar i { font-size: 11px; }
.top-bar-divider { width: 1px; height: 12px; background: rgba(255,255,255,0.15); }

/* ---------- MAIN NAVIGATION -------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  height: 74px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-right: 44px;
  text-decoration: none;
}
.nav-logo-img { height: 64px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-logo-sub {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--gold-600);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  height: 74px;
  gap: 0;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { height: 100%; display: flex; align-items: center; }
.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  letter-spacing: 0.15px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--blue-600);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--blue-600); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.nav-active { color: var(--blue-600); font-weight: 700; }
.nav-links a.nav-active::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  padding: 8px 0;
  border: none;
  background: none;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.nav-search-btn:hover { color: var(--blue-600); }
.nav-mobile-contact {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(197,160,89,0.5);
  background: rgba(255,255,255,0.95);
  font-family: var(--font-body);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-mobile-contact:hover { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
  z-index: 1001;
  margin-left: auto;
}
.nav-hamburger span { width: 22px; height: 2px; background: var(--navy-900); transition: all 0.3s ease; }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- SEARCH OVERLAY --------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,17,33,0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.search-overlay.active { display: flex; }
.search-box {
  background: var(--white);
  width: 100%;
  max-width: 680px;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  font-size: 18px;
  font-family: var(--font-body);
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
  color: var(--gray-800);
}
.search-box input:focus { border-color: var(--blue-600); }
.search-box input::placeholder { color: var(--gray-300); }
.search-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--gray-400);
  line-height: 1;
  font-family: var(--font-body);
}
.search-close:hover { color: var(--navy-900); }

/* ---------- FOOTER ----------------------------------------- */
.footer { background: var(--navy-900); color: var(--gray-300); padding: 56px 48px 32px; }
.footer-inner { max-width: 1440px; margin: 0 auto; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 16px; }
.footer-logo-wrap img { height: 56px; width: auto; filter: brightness(0) invert(1); }
.footer-logo-wrap .f-text { display: flex; flex-direction: column; line-height: 1.15; }
.footer-logo-wrap .f-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.footer-logo-wrap .f-sub {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #D6B15F;
  font-weight: 700;
  margin-top: 2px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gray-300); transition: all 0.2s; text-decoration: none;
}
.footer-social a:hover { border-color: var(--gold-500); color: var(--gold-400); background: rgba(201,169,110,0.08); }
.footer-cols { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--white); margin-bottom: 16px;
}
.footer-col a { display: block; font-size: 14px; color: var(--gray-400); padding: 4px 0; transition: color 0.2s; text-decoration: none; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 12px; color: var(--gray-400); margin: 0; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 12px; color: var(--gray-400); transition: color 0.2s; text-decoration: none; }
.footer-bottom-links a:hover { color: var(--gold-400); }

/* ---------- RESPONSIVE ------------------------------------- */
@media (max-width: 1200px) {
  .nav-links a { padding: 0 12px; font-size: 13px; }
  .nav-logo    { margin-right: 24px; }
}
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-contact { display: inline-flex; }
  .nav-search-btn span { display: none; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: var(--white); z-index: 999;
    justify-content: center; align-items: center;
    gap: 8px; height: auto; padding-top: 80px;
  }
  .nav-links.mobile-open li  { height: auto; }
  .nav-links.mobile-open a   { font-size: 20px; padding: 14px; height: auto; color: var(--navy-900); justify-content: center; }
  .nav-links.mobile-open a::after { display: none; }
  .top-bar   { padding: 7px 24px; }
  .nav-inner { padding: 0 24px; }
  .footer    { padding: 48px 24px 28px; }
  .footer-cols { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .top-bar       { display: none; }
  .nav-inner     { height: 60px; padding: 0 16px; }
  .nav-logo      { margin-right: 0; gap: 10px; }
  .nav-logo-img  { height: 48px; }
  .nav-logo-name { font-size: 13px; letter-spacing: 1px; }
  .nav-logo-sub  { font-size: 7px; letter-spacing: 1.5px; }
  .nav-right     { gap: 8px; }
  .nav-search-btn span { display: none; }
  .footer-cols   { grid-template-columns: 1fr; gap: 24px; }
  .footer-top    { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .top-bar       { display: none; }
  .nav-logo      { min-width: 0; align-items: center; }
  .nav-logo-text { max-width: min(200px,46vw); }
  .nav-logo-name { font-size: 11px; letter-spacing: 0.06em; line-height: 1.2; white-space: normal; }
  .nav-logo-sub  { font-size: 7px; letter-spacing: 0.12em; }
  .nav-logo-img  { height: 40px; flex-shrink: 0; }
}
