/* ═══════════════════════════════════════════════════════════════════════
   SR2 Defense Systems — Subpage Design System v3
   ───────────────────────────────────────────────────────────────────────
   Shared cream/textbook aesthetic for: who-we-are, what-we-build,
   media, contact, and individual press release pages.
   ═══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════
   1. RESET & BASE
   ═══════════════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: #F2EDE8;
  color: #000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════════
   2. TOP NAV BAR
   ═══════════════════════════════════════════════════════════════════════ */
#top-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #F2EDE8;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}


/* ═══════════════════════════════════════════════════════════════════════
   3. MASTHEAD
   ═══════════════════════════════════════════════════════════════════════ */
#docking-logo {
  position: fixed;
  top: 24px;
  left: 5vw;
  z-index: 100;
  display: block;              /* anchor behaves as block container */
  line-height: 0;              /* prevents baseline gap under the img */
  text-decoration: none;       /* strip default underline */
  transition: opacity 200ms ease;
}
#docking-logo:hover { opacity: 0.75; }
#docking-logo img {
  /* 50% larger than original for stronger brand presence on subpages */
  width: clamp(180px, 15vw, 240px);
  height: auto;
}


/* ═══════════════════════════════════════════════════════════════════════
   4. HAMBURGER
   Top calibrated so middle row of dots aligns vertically with the SR2
   wordmark's optical center. Logo height ~37px at 180px width, top:24px
   → center at y=42.5px. Hamburger middle dots sit at button_top + 22px,
   so button_top = 20px.
   ═══════════════════════════════════════════════════════════════════════ */
#hamburger {
  position: fixed;
  top: 20px;
  right: 18px;
  z-index: 200;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  padding: 8px;
}
#hamburger .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
  transition: transform 350ms cubic-bezier(0.65, 0, 0.35, 1),
              background 200ms ease,
              opacity 200ms ease;
}
#hamburger:hover .dot { background: #FF2600; }
#hamburger.is-open .dot.tl { transform: translate(14px, 14px); background: #FFFFF5; }
#hamburger.is-open .dot.tr { transform: translate(-14px, 14px); background: #FFFFF5; }
#hamburger.is-open .dot.bl { transform: translate(14px, -14px); background: #FFFFF5; }
#hamburger.is-open .dot.br { transform: translate(-14px, -14px); background: #FFFFF5; }
#hamburger.is-open .dot.tm,
#hamburger.is-open .dot.ml,
#hamburger.is-open .dot.mr,
#hamburger.is-open .dot.bm { opacity: 0; }
#hamburger.is-open .dot.mm { background: #FFFFF5; }


/* ═══════════════════════════════════════════════════════════════════════
   5. MENU OVERLAY
   ═══════════════════════════════════════════════════════════════════════ */
#menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(420px, 100vw);
  height: 100vh;
  background: #000;
  z-index: 150;
  transition: right 500ms cubic-bezier(0.16, 1, 0.3, 1);
  padding: 110px 56px 56px;
}
#menu-overlay.is-open { right: 0; }
.menu-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.menu-logo {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
  opacity: 0.85;
}
.menu-item {
  display: block;
  color: #FFFFF5;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.menu-item:hover { opacity: 0.7; }
.menu-item.current { color: #FF2600; }
#menu-overlay.is-open .menu-item {
  opacity: 1;
  transform: translateX(0);
}
#menu-overlay.is-open .menu-item:nth-child(2) { transition-delay: 60ms; }
#menu-overlay.is-open .menu-item:nth-child(3) { transition-delay: 120ms; }
#menu-overlay.is-open .menu-item:nth-child(4) { transition-delay: 180ms; }
#menu-overlay.is-open .menu-item:nth-child(5) { transition-delay: 240ms; }
#menu-overlay.is-open .menu-item:nth-child(6) { transition-delay: 300ms; }


/* ═══════════════════════════════════════════════════════════════════════
   6. SECTION REVEAL (intersection-observer-driven fade up)
   ═══════════════════════════════════════════════════════════════════════ */
.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════════════
   7. PAGE HERO (tight, NOT a full viewport)
   ═══════════════════════════════════════════════════════════════════════ */
.page-hero {
  padding: 112px 5vw 32px;
  max-width: 1400px;
}
.page-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FF2600;
  margin-bottom: 24px;
}
.hero-statement {
  font-size: clamp(28px, 3.6vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.022em;
  max-width: 1100px;
}
.hero-statement strong { font-weight: 700; }
.hero-statement em {
  font-style: italic;
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════════════
   8. CONTENT SECTIONS (eyebrow + question header + body paragraphs)
   ═══════════════════════════════════════════════════════════════════════ */
.content-section {
  padding: 80px 5vw 60px;
  max-width: 1400px;
}
.content-section + .content-section {
  padding-top: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.content-section .section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FF2600;
  margin-bottom: 18px;
}
.content-section .section-header {
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin-bottom: 32px;
  max-width: 900px;
}
.content-section p {
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 880px;
  color: #000;
}
.content-section p:last-child { margin-bottom: 0; }
.content-section p strong { font-weight: 700; }
.content-section p em {
  font-style: italic;
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════════════
   9. CLOSING SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.closing-section {
  padding: 80px 5vw 120px;
  max-width: 1400px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.closing-line {
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 1000px;
  color: #000;
}
.closing-line strong { font-weight: 700; color: #FF2600; }


/* ═══════════════════════════════════════════════════════════════════════
   10. FOOTER (unified across all pages)
   ═══════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: #000;
  color: #FFFFF5;
  padding: 22px 5vw 14px;
}
.site-footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 22px;
}

/* Brand: SR2 square + tagline */
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer-tagline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.footer-tagline-1,
.footer-tagline-2 {
  font-family: inherit;
  font-size: clamp(13px, 1.05vw, 17px);
  letter-spacing: 0.02em;
  color: #F2EDE8;
}
.footer-tagline-1 { font-weight: 400; }
.footer-tagline-2 { font-weight: 700; }

/* Vertical separator */
.footer-sep {
  width: 1px;
  align-self: stretch;
  background: rgba(242, 237, 232, 0.12);
  margin: 4px 0;
}

/* Nav columns */
.footer-nav {
  display: flex;
  gap: 2.5vw;
  flex: 1;
}
.footer-nav-col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-link {
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 237, 232, 0.78);
  cursor: pointer;
  transition: color 200ms ease;
  display: inline-block;
  text-decoration: none;
}
.footer-link:hover { color: #FF2600; }

/* Partner / sub-brand logos */
.footer-partners {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  flex-shrink: 0;
}
.footer-partner-link {
  display: block;
  text-decoration: none;
  line-height: 0;
  transition: opacity 200ms ease;
}
.footer-partner-link:hover { opacity: 0.7; }
.footer-partner-logo {
  height: clamp(28px, 2.4vw, 38px);
  width: auto;
  display: block;
  max-width: 100%;
}
.footer-partner-logo--capped {
  height: auto;
  max-width: 120px;
  width: 120px;
}
.footer-partner-link[aria-label="SR2 Vector"] .footer-partner-logo--capped {
  transform: translateY(-2px);
}
.footer-partner-link[aria-label="REDSALT Defense"] .footer-partner-logo--capped {
  max-width: 90px;
  width: 90px;
}

/* Bottom row */
.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
  gap: 3vw;
  padding-top: 8px;
  border-top: 1px solid rgba(242, 237, 232, 0.08);
}
.footer-legal {
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(10px, 0.7vw, 11px);
  letter-spacing: 0.04em;
  color: rgba(242, 237, 232, 0.45);
  line-height: 1.4;
  text-transform: uppercase;
  max-width: 60%;
}
.footer-location {
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(10px, 0.75vw, 12px);
  letter-spacing: 0.06em;
  color: rgba(242, 237, 232, 0.6);
  text-transform: uppercase;
  text-align: right;
  line-height: 1.5;
  flex-shrink: 0;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: rgba(242, 237, 232, 0.6);
  border: 1px solid rgba(242, 237, 232, 0.18);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.footer-social:hover {
  color: #F2EDE8;
  border-color: #C0392B;
  background: rgba(192, 57, 43, 0.15);
}
.footer-social svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  display: block;
}


/* ═══════════════════════════════════════════════════════════════════════
   11. RESPONSIVE — system-wide rules (page-specific responsive lives
                                       inline in each page's <style>)
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  /* (Reserved for system-wide tweaks at tablet width if needed.) */
}

@media (max-width: 680px) {
  /* Page hero — tighter padding */
  .page-hero { padding: 96px 6vw 28px; }
  .hero-statement { font-size: clamp(22px, 6.5vw, 32px); }

  /* Content sections — tighter spacing */
  .content-section { padding: 50px 6vw 40px; }
  .content-section + .content-section { padding-top: 40px; }
  .content-section .section-header { font-size: clamp(20px, 5.5vw, 26px); }
  .content-section p { font-size: 15px; }

  /* Closing */
  .closing-section { padding: 50px 6vw 80px; }
  .closing-line { font-size: clamp(18px, 5vw, 24px); }

  /* Footer mobile (unified) */
  .site-footer { padding: 22px 6vw 14px; }
  .site-footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }
  .footer-sep { display: none; }
  .footer-brand {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .footer-logo {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain;
  }
  .footer-tagline {
    text-align: center;
    font-size: 11px;
    align-items: center;
  }
  .footer-nav {
    gap: 28px;
    flex-wrap: nowrap;
    justify-content: center;
    flex-direction: row;
  }
  .footer-nav-col {
    display: flex;
    flex-direction: row;
    gap: 28px;
    text-align: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .footer-link { font-size: 11px; }
  .footer-partners {
    margin-left: 0;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-partner-logo { height: 26px; }
  .footer-partner-logo--capped { width: 96px; max-width: 96px; }
  .footer-partner-link[aria-label="REDSALT Defense"] .footer-partner-logo--capped {
    width: 72px;
    max-width: 72px;
  }
  .site-footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }
  .footer-legal { max-width: 100%; font-size: 10px; text-align: center; }
  .footer-right { width: 100%; justify-content: space-between; gap: 14px; align-items: center; }
  .footer-location { text-align: right; font-size: 10px; }
  .footer-social { width: 32px; height: 32px; }
  .footer-social svg { width: 14px; height: 14px; }
}
