/* =========================================================================
   AITRG Nexus — Site chrome (header navbar + footer)
   ========================================================================= */

/* ------------------------------------------------------------- Navbar */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(11, 31, 58, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px -8px rgba(11, 31, 58, 0.4);
}
.site-header .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  box-sizing: border-box; height: 80px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand .custom-logo { display: block; width: auto; height: 48px; max-width: 260px; object-fit: contain; }
@media (max-width: 900px) { .site-header .nav-inner { height: 72px; } .brand .custom-logo { height: 43px; max-width: 220px; } }
@media (max-width: 520px) { .site-header .nav-inner { height: 64px; } .brand .custom-logo { height: 38px; max-width: 190px; } }
.brand .brand-mark {
  width: 2.5rem; height: 2.5rem; border-radius: 0.375rem; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--navy); font-weight: 600; font-size: 1.125rem; flex-shrink: 0;
}
.brand .brand-text { color: var(--navy-foreground); line-height: 1.1; }
.brand .brand-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; }
.brand .brand-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(246,247,249,0.7); }
@media (max-width: 640px) { .brand .brand-sub { display: none; } }

.primary-nav { display: flex; align-items: center; gap: 1.75rem; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 1.75rem; margin: 0; padding: 0; }
.primary-nav a { font-size: 0.875rem; color: rgba(246,247,249,0.85); text-decoration: none; transition: color 0.2s; padding: 0.5rem 0; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--gold); }
.nav-search { background: none; border: 0; color: rgba(246,247,249,0.85); cursor: pointer; padding: 0; display: inline-flex; }
.nav-search:hover { color: var(--gold); }
@media (max-width: 1024px) { .primary-nav { display: none; } }

.nav-toggle { display: none; background: none; border: 0; color: var(--navy-foreground); cursor: pointer; }
@media (max-width: 1024px) { .nav-toggle { display: inline-flex; } }

/* Mobile drawer */
.mobile-drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.mobile-drawer.open { visibility: visible; }
.mobile-drawer .md-overlay { position: absolute; inset: 0; background: rgba(11,31,58,0.6); opacity: 0; transition: opacity 0.3s; }
.mobile-drawer.open .md-overlay { opacity: 1; }
.mobile-drawer .md-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: 20rem; max-width: 100%;
  background: var(--navy); color: var(--navy-foreground); padding: 1.5rem;
  box-shadow: -10px 0 40px -10px rgba(0,0,0,0.5);
  transform: translateX(100%); transition: transform 0.3s;
}
.mobile-drawer.open .md-panel { transform: translateX(0); }
.mobile-drawer .md-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.mobile-drawer .md-head span { font-family: var(--font-display); font-size: 1.25rem; }
.mobile-drawer .md-close { background: none; border: 0; color: inherit; cursor: pointer; }
.mobile-drawer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-drawer nav a { display: block; padding: 0.75rem; border-radius: 0.375rem; font-size: 1rem; text-decoration: none; color: inherit; }
.mobile-drawer nav a:hover { background: rgba(255,255,255,0.05); }
.mobile-drawer nav .current-menu-item > a, .mobile-drawer nav .current_page_item > a { color: var(--gold); }

/* ------------------------------------------------------------- Footer */
.site-footer { background: var(--navy); color: var(--navy-foreground); padding: 5rem 0 2rem; }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 3rem; }
@media (max-width: 1024px) { .site-footer .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.site-footer .f-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.site-footer .footer-brand-link { width: fit-content; text-decoration: none; }
.site-footer .footer-brand-logo { display: block; width: auto; height: 56px; max-width: 280px; object-fit: contain; }
@media (max-width: 600px) { .site-footer .footer-brand-logo { height: 48px; max-width: 240px; } }
.site-footer .f-brand .brand-mark { width: 2.5rem; height: 2.5rem; border-radius: 0.375rem; background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: var(--navy); font-weight: 600; font-size: 1.125rem; }
.site-footer .f-brand .f-name { font-family: var(--font-display); font-size: 1.25rem; }
.site-footer .f-about { font-size: 0.875rem; color: rgba(246,247,249,0.7); line-height: 1.7; margin-bottom: 1.5rem; }
.site-footer .f-social { display: flex; gap: 0.75rem; }
.site-footer .f-social a { width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: inherit; transition: 0.2s; }
.site-footer .f-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.site-footer h4.f-title { font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.25rem; }
.site-footer .f-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.875rem; }
.site-footer .f-links a { color: rgba(246,247,249,0.8); text-decoration: none; transition: 0.2s; }
.site-footer .f-links a:hover { color: var(--gold); }
.site-footer .f-contact { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; color: rgba(246,247,249,0.8); }
.site-footer .f-contact li { display: flex; gap: 0.75rem; margin-bottom: 0.85rem; }
.site-footer .f-contact svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.site-footer .f-contact a { color: inherit; text-decoration: none; }
.site-footer .f-contact a:hover { color: var(--gold); }
.site-footer .f-news p { font-size: 0.875rem; color: rgba(246,247,249,0.7); margin-bottom: 1rem; }
.site-footer .f-news form { display: flex; gap: 0.5rem; }
.site-footer .f-news input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.375rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; color: #fff; }
.site-footer .f-news input::placeholder { color: rgba(255,255,255,0.4); }
.site-footer .f-news input:focus { outline: none; border-color: var(--gold); }
.site-footer .f-news button { background: var(--gold); color: var(--gold-foreground); border: 0; font-weight: 500; padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; cursor: pointer; }
.site-footer .f-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; font-size: 0.75rem; color: rgba(246,247,249,0.6); }

/* Page body offset: inner pages have a navy hero, home hero is full-bleed.
   The fixed header overlays the first section; first section already pads-top. */
.site-main { min-height: 50vh; }
