/* ============================================================
   MATRIX SECURITY — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  --navy:        #0b1622;
  --navy-mid:    #111f30;
  --navy-light:  #35404e;
  --gold:        #f0a500;
  --gold-light:  #f7c048;
  --gold-dim:    rgba(240,165,0,0.15);
  --white:       #ffffff;
  --off-white:   #f2f4f6;
  --muted:       #8fa3b8;
  --text-body:   #b8cad9;
  --text-dark:   #1c2b3a;

  --font-display: 'Oswald', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --nav-height: 72px;
  --section-pad: 100px 80px;
  --radius: 2px;
  --transition: 0.25s ease;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background:var(--navy-light);
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  backdrop-filter: blur(10px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.nav-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo__name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
}
.nav-logo__sub {
  font-family: var(--font-cond);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 16px; right: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links a.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700;
  padding: 9px 22px;
  letter-spacing: 1.5px;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--gold-light); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ============================================================
   PAGE HEADER BANNER (used on inner pages)
   ============================================================ */
.page-banner {
  min-height: 340px;
  padding-top: var(--nav-height);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.page-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  transform: scale(1.04);
}
.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11,22,34,0.85) 50%, rgba(240,165,0,0.08) 100%);
}
.page-banner__content {
  position: relative;
  z-index: 2;
  padding: 60px 80px 56px;
}
.page-banner__label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.page-banner__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.0;
  color: var(--white);
}
.page-banner__title em {
  color: var(--gold);
  font-style: normal;
}
.gold-bar {
  width: 60px; height: 4px;
  background: var(--gold);
  margin-top: 18px;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: var(--section-pad); }
.section--light { background: var(--off-white); }
.section--mid   { background: var(--navy-mid); }
.section--dark  { background: var(--navy); }
.section--deep  { background: #080f18; }

.section__label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 10px;
}
.section__title--dark { color: var(--navy); }
.section__body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-body);
  max-width: 640px;
}
.section__body--dark { color: #4a5a6a; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), color var(--transition);
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn--outline {
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--outline-dark {
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }

/* ============================================================
   GOLD DIVIDER / ACCENT
   ============================================================ */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 60%);
  margin: 0;
}

/* ============================================================
   STAT BLOCK
   ============================================================ */
.stat-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { text-align: left; }
.stat__num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat__label {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   CARD COMMONS
   ============================================================ */
.card {
  background: var(--navy-mid);
  border: 1px solid var(--gold-dim);
  border-top: 4px solid var(--gold);
  padding: 36px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  border-color: var(--gold);
}
.card__icon {
  width: 52px; height: 52px;
  background: var(--gold-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; fill: var(--gold); }
.card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.card__body {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-body);
}
.card__list {
  font-size: 0.88rem;
  line-height: 2;
  color: var(--text-body);
}
.card__list li::before { content: '▸ '; color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-light);
  border-top: 2px solid var(--gold);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 80px 48px;
}
.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 16px;
  max-width: 260px;
}
.footer__col h4 {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer__col ul a:hover { color: var(--gold); }
.footer__col address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
}
.footer__bottom {
  border-top: 1px solid rgba(240,165,0,0.1);
  padding: 20px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copy {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.25);
}
.footer__tagline {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 80px 48px; }
  .navbar { padding: 0 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; padding: 48px 48px 36px; }
  .footer__bottom { padding: 20px 48px; }
  .page-banner__content { padding: 48px 48px 44px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px 24px; }
  .navbar { padding: 0 24px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(11,22,34,0.99);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 0;
    border-bottom: 2px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; width: 100%; }
  .nav-links a.nav-cta { margin-top: 8px; display: inline-block; }
  .hamburger { display: flex; }

  .footer__top { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px 28px; }
  .footer__bottom { padding: 16px 24px; flex-direction: column; gap: 8px; text-align: center; }
  .page-banner__content { padding: 40px 24px 36px; }
  .stat-row { gap: 28px; }
}

/* ============================================================
   LOGO IMAGE — PNG with dark background (transparent-friendly)
   ============================================================ */

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* PNG logo has dark/black background — display cleanly on dark navbar */
.nav-logo__img {
  height: auto;
  width: 45%;
  display: block;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}
.nav-logo__img:hover { opacity: 0.85; }

/* Footer logo */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-logo__img {
  height: auto;
  width: 40%;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

.footer__license {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
}

/* Hide old SVG text elements */
.nav-logo__text { display: none !important; }
