/* ============================================================
   BASE — Navbar · Footer · Global Reset
   Colors: #0099FF (primary) · #0077CC (dark) · #0a1628 (navy)
   ============================================================ */

:root {
  --blue:    #0099FF;
  --bluedark:#0077CC;
  --navy:    #0a1628;
  --navy2:   #0d1f3c;
  --gray:    #64748b;
  --border:  #e2e8f0;
  --white:   #ffffff;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: #1a202c;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

/* ── Page layout: NO side-gap container on main ──────────────── */
main {
  min-height: calc(100vh - 72px);
  width: 100%;
  overflow-x: hidden;
}

/* .container — only for pages/templates that explicitly opt-in  */
.container {
  width: 100%;
  padding: 0;
  margin: 0;
  max-width: none;
}

/* ── Accessibility ───────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Animations used globally ────────────────────────────────── */
@keyframes fadeInUp  { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px);} to { opacity:1; transform:none; } }
@keyframes navIn     { from { opacity:0; transform:translateX(100%); } to { opacity:1; transform:none; } }

/* ════════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════════ */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s, box-shadow .3s;
}
#site-nav.scrolled {
  background: rgba(10,22,40,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  gap: 2rem;
}

/* ── Logo ─────────────────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo__img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(0,153,255,.15);
  padding: 5px;
  transition: transform .35s;
}
.nav-logo:hover .nav-logo__img { transform: scale(1.08) rotate(-3deg); }
.nav-logo__name {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.3px;
  line-height: 1;
}
.nav-logo__name span {
  background: linear-gradient(90deg, #0099ff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Desktop links ────────────────────────────────────────── */
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: .5rem .8rem;
  border-radius: 8px;
  transition: color .25s, background .25s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.nav-links > li > a.active::after {
  content: '';
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  margin-top: 2px;
}

/* ── CTA button ───────────────────────────────────────────── */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--blue);
  color: #fff !important;
  font-size: .85rem;
  font-weight: 700;
  padding: .55rem 1.3rem;
  border-radius: 50px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 4px 16px rgba(0,153,255,.35);
}
.nav-cta:hover {
  background: var(--bluedark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,153,255,.45);
}

/* ── Hamburger ────────────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px;
  cursor: pointer;
  transition: background .25s;
  flex-shrink: 0;
}
.nav-burger:hover { background: rgba(255,255,255,.18); }
.nav-burger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Mobile drawer ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    width: min(320px, 100vw);
    background: var(--navy);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: .25rem;
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 32px rgba(0,0,0,.4);
    border-left: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li > a {
    font-size: 1rem;
    padding: .75rem 1rem;
    border-radius: 10px;
    display: block;
    width: 100%;
  }
  .nav-cta-wrap { display: none; }
  .nav-burger { display: flex; }
}

/* ── Nav overlay (mobile backdrop) ────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  backdrop-filter: blur(4px);
}
.nav-overlay.active { display: block; }

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
#site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 0;
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

.footer-top {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
}

/* column 1 */
.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  text-decoration: none;
}
.footer-brand__logo img {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(0,153,255,.15); padding: 3px; object-fit: contain;
}
.footer-brand__logo-name {
  font-size: 1.2rem; font-weight: 900; color: #fff;
}
.footer-brand__logo-name span {
  background: linear-gradient(90deg,#0099ff,#38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-brand p {
  font-size: .88rem;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 280px;
}
.footer-socials { display: flex; gap: .65rem; flex-wrap: wrap; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  color: #94a3b8; font-size: .9rem; text-decoration: none;
  transition: background .25s, color .25s, transform .25s;
}
.footer-socials a:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-3px); }

/* columns 2-4 */
.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a {
  font-size: .87rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
  display: block;
}
.footer-col ul li a:hover { color: #fff; padding-left: 5px; }
.footer-contact-item {
  display: flex; gap: .65rem; align-items: flex-start;
  font-size: .87rem; color: #94a3b8; margin-bottom: .9rem;
}
.footer-contact-item i { color: var(--blue); margin-top: 3px; width: 16px; flex-shrink: 0; }
.footer-contact-item a { color: #94a3b8; text-decoration: none; transition: color .2s; }
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: #64748b;
}
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a { color: #64748b; text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: #94a3b8; }

/* ── Responsive footer ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.25rem 2rem; }
  .footer-brand p { max-width: none; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 1.25rem; }
  .footer-bottom-links { justify-content: center; }
}

/* ── Logo container (legacy — keep for any override pages) ───── */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════
   PRINT
════════════════════════════════════════════════════════════════ */
@media print {
  #site-nav, #site-footer { display: none; }
}
