/* ARA Global Nav + Footer + Mobile Menu
 * Single source of truth — do not duplicate these rules in page <style> blocks.
 * HTML is injected by build_globals.py.
 */

/* NAV */
nav {
  background: #1a1a1a;
  color: #f5f5f0;
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  position: relative;
}
.nav-logo { font-size: 1.1rem; letter-spacing: 0.2em; text-decoration: none; color: inherit; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-left: auto; }
.nav-links span { opacity: 0.6; cursor: pointer; transition: opacity 0.15s; }
.nav-links span:hover { opacity: 1; }
.nav-links span.is-active { opacity: 1; }
.nav-hamburger-mobile { display: none; background: none; border: none; color: #f5f5f0; font-size: 1.1rem; cursor: pointer; opacity: 0.7; line-height: 1; padding: 0.25rem; transition: opacity 0.15s; }
.nav-hamburger-mobile.is-open { opacity: 1; }
.nav-search-outer { display: flex; align-items: center; gap: 0.75rem; margin-left: 2rem; }
.nav-search-outer > svg { width: 22px; height: 22px; color: rgba(255,255,255,0.4); flex-shrink: 0; }
.nav-search-outer:focus-within > svg { color: rgba(255,255,255,0.7); }
.nav-search-input { background: transparent; border: none; border-bottom: 1.5px solid rgba(255,255,255,0.4); font-family: 'MaisonNeueMono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; color: #f5f5f0; padding: 0 0 5px; width: 140px; outline: none; }
.nav-search-input:focus { border-bottom-color: rgba(255,255,255,0.7); }
.nav-search-input::placeholder { color: rgba(255,255,255,0.3); }
.nav-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* MOBILE MENU */
.mobile-overlay { display: none; position: fixed; inset: 0; top: 52px; z-index: 199; }
.mobile-overlay.open { display: block; }
.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; top: 52px; left: 0; right: 0;
  background: #111; z-index: 200;
  border-top: 1px solid #2a2a2a;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.mobile-menu.open { display: flex; }
.mobile-menu-item {
  display: block; padding: 1.1rem 1.5rem;
  color: #f5f5f0; text-decoration: none;
  font-family: 'MaisonNeueMono', monospace; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid #222; opacity: 0.55;
  cursor: pointer; transition: opacity 0.15s, background 0.15s;
}
.mobile-menu-item:hover, .mobile-menu-item:active { opacity: 1; background: #1a1a1a; }
.mobile-menu-item.is-active { opacity: 1; }

/* SITE FOOTER */
.site-footer { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 0; background: #0a0a0a; border-top: 1px solid #2a2a2a; padding-bottom: 200px; }
.site-footer-brand { padding: 2rem; border-right: 1px solid #2a2a2a; }
.site-footer-nav { padding: 2rem; border-right: 1px solid #2a2a2a; }
.site-footer-cta-col { padding: 2rem; }
.site-footer-wordmark { font-size: 1.4rem; letter-spacing: 0.15em; color: #f5f5f0; margin-bottom: 0.4rem; }
.site-footer-tagline { font-size: 0.58rem; letter-spacing: 0.12em; color: #888; line-height: 1.7; text-transform: uppercase; }
.site-footer-legal { font-size: 0.55rem; letter-spacing: 0.06em; color: #555; margin-top: 2rem; line-height: 1.7; }
.site-footer-col-label { font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: #666; margin-bottom: 0.85rem; }
.site-footer-links { display: flex; flex-direction: column; gap: 0.65rem; }
.site-footer-links a { font-size: 0.7rem; letter-spacing: 0.06em; color: #ccc; text-decoration: none; }
.site-footer-links a:hover { color: #f5f5f0; }
.site-footer-cta-desc { font-size: 0.65rem; letter-spacing: 0.04em; color: #999; line-height: 1.8; margin-bottom: 1.25rem; }
.site-footer-cta-link { display: inline-block; background: #0ded6b; color: #0a0a0a; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.65rem 1.25rem; text-decoration: none; }
.site-footer-cta-link:hover { background: #00e600; }
.site-footer-search-row { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.site-footer-search-row > svg { width: 22px; height: 22px; color: rgba(255,255,255,0.4); flex-shrink: 0; }
.site-footer-search-row:focus-within > svg { color: rgba(255,255,255,0.7); }
.site-footer-search-input { background: transparent; border: none; border-bottom: 1.5px solid rgba(255,255,255,0.4); font-family: 'MaisonNeueMono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; color: #f5f5f0; padding: 0 0 5px; width: 140px; outline: none; }
.site-footer-search-input:focus { border-bottom-color: rgba(255,255,255,0.7); }
.site-footer-search-input::placeholder { color: rgba(255,255,255,0.3); }
.site-footer-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* MOBILE BREAKPOINT */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-search-outer { display: none; }
  .nav-hamburger-mobile { display: block; margin-left: auto; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer-brand,
  .site-footer-nav { border-right: none; border-bottom: 1px solid #2a2a2a; }
}
