/* WSB Intel — shared site styles */

:root {
  --navy: #0d1b3e;
  --navy-deep: #080f24;
  --navy-mid: #121f45;
  --navy-light: #1a2a5e;
  --cyan: #00b4d8;
  --cyan-bright: #ffffff;
  --cyan-dim: rgba(0, 180, 216, 0.15);
  --cyan-glow: rgba(0, 180, 216, 0.35);
  --white: #f0f4ff;
  --white-dim: rgba(240, 244, 255, 0.65);
  --white-ghost: rgba(240, 244, 255, 0.08);
  --gold: #c8a84b;
  --scan: rgba(0, 180, 216, 0.018);
  --grid: rgba(0, 180, 216, 0.055);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy-deep);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
  cursor: auto;
  letter-spacing: 0.4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 8px 14px;
  background: var(--navy-deep);
  color: var(--white);
  z-index: 10000;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
      transparent, transparent 2px,
      var(--scan) 2px, var(--scan) 4px);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
}

.content {
  position: relative;
  z-index: 10;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 76px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 180, 216, 0.15);
  transition: background 0.4s, border-color 0.4s;
}

nav.scrolled { border-bottom-color: rgba(0, 180, 216, 0.2); }

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1;
}

.nav-logo img {
  height: 22px;
  width: auto;
  display: block;
}

.nav-motto {
  font-family: 'Cal Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0d1b3e;
  margin-top: 4px;
  margin-left: 6px;
  white-space: nowrap;
  font-weight: 500;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: 'Cal Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0d1b3e;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #0d1b3e;
  transition: width 0.3s;
}

.nav-links a:hover { color: #1a2a5e; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 26px;
  background: #0d1b3e;
  color: var(--white) !important;
  font-weight: 700;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s;
}

.nav-cta::after { display: none; }
.nav-cta:hover { background: #1a2a5e; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #0d1b3e;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: left center;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(2px, -2px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(2px, 2px); }

body.menu-open { overflow: hidden; }

@media (max-width: 820px) {
  nav { padding: 0 20px; height: 68px; }
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(32px);
    padding: 32px 24px 48px;
    gap: 28px;
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
    z-index: 999;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
    padding-bottom: 14px;
  }

  .nav-links li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .nav-links a { font-size: 15px; display: block; width: 100%; }
  .nav-cta { display: inline-block; width: auto; margin-top: 8px; }
}

/* HERO / PAGE CONTENT */
.page-hero {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 24px;
  border-bottom: none;
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
  background-position: center 25%;
}

.page-hero h1 {
  font-family: 'Cal Sans', sans-serif;
  font-size: clamp(42px, 10vw, 82px);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--white);
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 18px;
  color: var(--white-dim);
  max-width: 600px;
}

.page-content {
  padding: 60px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.page-content p,
.page-content li,
.about-text p,
.sc-text,
.prod-desc,
.svc-text,
.c-disclaimer p,
.cta-banner p {
  font-size: 16px;
  line-height: 1.75;
  text-align: justify;
  color: var(--white-dim);
  margin-bottom: 18px;
}

.page-content h2 {
  font-family: 'Cal Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin-top: 48px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
  font-family: 'Cal Sans', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  margin-top: 28px;
  margin-bottom: 12px;
}

.page-content h2.numbered,
.page-content h3.numbered {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45em;
  align-items: baseline;
}

.page-content h2.numbered .num,
.page-content h3.numbered .num { white-space: nowrap; }

.page-content ul,
.page-content ol {
  margin: 20px 0 20px 20px;
  color: var(--white-dim);
}

.page-content li {
  margin-bottom: 12px;
  line-height: 1.7;
}

/* FAQ */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}

.faq-item {
  border: 1px solid rgba(0, 180, 216, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.faq-toggle {
  width: 100%;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: left;
  cursor: pointer;
  line-height: 1.5;
}

.faq-toggle::after {
  content: '+';
  font-size: 22px;
  flex-shrink: 0;
  align-self: center;
}

.faq-toggle[aria-expanded="true"]::after { content: '−'; }

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 28px;
  transition: max-height 0.45s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
  opacity: 1;
  padding: 0 28px 24px 28px;
}

.faq-answer p {
  margin: 0;
  line-height: 1.9;
  color: var(--white-dim);
  word-break: break-word;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 32px;
  background: var(--cyan);
  color: var(--navy-deep);
  font-family: 'Cal Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: background 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--cyan-bright);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid rgba(240, 244, 255, 0.2);
  background: transparent;
  color: var(--white-dim);
  font-family: 'Cal Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  cursor: pointer;
  transition: all 0.25s;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 180, 216, 0.06);
}

/* FOOTER */
footer {
  padding: 52px 60px;
  border-top: 1px solid rgba(0, 180, 216, 0.09);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: rgba(8, 15, 36, 0.5);
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  height: 26px;
  filter: brightness(1);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Cal Sans', sans-serif;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--white-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cyan); }

.footer-right { text-align: right; }

.f-copy {
  font-family: 'Assistant', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
}

.f-loc {
  font-family: 'Assistant', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--white-dim);
  margin-top: 10px;
}

.f-motto {
  font-family: 'Assistant', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--white);
  margin-top: 10px;
  opacity: 0.7;
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s, transform 0.85s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }
.rd4 { transition-delay: 0.4s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  section { padding: 60px 20px; }
  footer {
    padding: 40px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-right { text-align: left; }
  .footer-links { gap: 16px; }
  .footer-links a { font-size: 15px; }
}

@media (max-width: 560px) {
  .page-hero {
    padding: 90px 20px;
    min-height: 50vh;
  }
  .page-content { padding: 40px 20px; }
  .page-content h2 {
    font-size: 28px;
    margin-top: 36px;
  }
}

@media (max-width: 480px) {
  section { padding: 48px 16px; }
  nav { padding: 0 16px; height: 64px; }
  footer { padding: 32px 16px; }
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
