/* ═══════════════════════════════════════════════
   Navy TechConnect — Shared Stylesheet
   ═══════════════════════════════════════════════ */

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

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

/* ── Tokens ─────────────────────────────────── */
:root {
  --navy-950:   #0A1525;
  --navy-900:   #0E1C30;
  --navy-800:   #12243B;
  --navy-700:   #182E4E;
  --navy-600:   #1F3E65;
  --navy-500:   #28547E;
  --steel:      #4A8FBF;
  --steel-dim:  rgba(74,143,191,0.12);
  --accent:      #3D9BD1;
  --accent-light:#6ABBE0;
  --accent-dim:  rgba(61,155,209,0.12);
  --white:      #EAF0F7;
  --muted:      #C8DDEF;
  --dim:        #4A6A88;
  --border:     rgba(255,255,255,0.07);
  --border-md:  rgba(255,255,255,0.12);

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

  --nav-h: 80px;
  --radius: 4px;
  --radius-md: 8px;
}

/* ── Base ───────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--navy-800);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ─────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Textures ───────────────────────────────── */

/* Topographic contour — hero BG */
.tex-topo {
  position: relative;
  background: var(--navy-950);
}
.tex-topo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='560' viewBox='0 0 900 560'%3E%3Cg fill='none' stroke='%234A8FBF' stroke-width='0.6' opacity='0.18'%3E%3Cellipse cx='450' cy='280' rx='60' ry='36'/%3E%3Cellipse cx='450' cy='280' rx='130' ry='78'/%3E%3Cellipse cx='450' cy='280' rx='200' ry='120'/%3E%3Cellipse cx='450' cy='280' rx='270' ry='162'/%3E%3Cellipse cx='450' cy='280' rx='340' ry='204'/%3E%3Cellipse cx='450' cy='280' rx='410' ry='246'/%3E%3Cellipse cx='450' cy='280' rx='480' ry='288'/%3E%3Cellipse cx='450' cy='280' rx='550' ry='330'/%3E%3Cellipse cx='450' cy='280' rx='620' ry='372'/%3E%3Cellipse cx='450' cy='280' rx='690' ry='414'/%3E%3C/g%3E%3Cg fill='none' stroke='%234A8FBF' stroke-width='0.4' opacity='0.08'%3E%3Cellipse cx='100' cy='80' rx='80' ry='50'/%3E%3Cellipse cx='100' cy='80' rx='150' ry='90'/%3E%3Cellipse cx='820' cy='480' rx='100' ry='60'/%3E%3Cellipse cx='820' cy='480' rx='180' ry='108'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

/* Grain overlay */
.tex-topo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

.tex-topo > * { position: relative; z-index: 1; }

/* Diagonal stripe — alternate sections */
.tex-stripe {
  position: relative;
  background: var(--navy-900);
}
.tex-stripe::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 32px,
    rgba(255,255,255,0.015) 32px,
    rgba(255,255,255,0.015) 33px
  );
  pointer-events: none;
}
.tex-stripe > * { position: relative; z-index: 1; }

/* Dot grid */
.tex-dot {
  position: relative;
  background: var(--navy-800);
}
.tex-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(74,143,191,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.tex-dot > * { position: relative; z-index: 1; }

/* ── Navigation ─────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  background: rgba(10,21,37,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  gap: 48px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-svg {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.logo:hover .logo-svg { opacity: 0.85; }

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.4;
  max-width: 100px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a.active {
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── Page Hero ──────────────────────────────── */
.page-hero {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.page-hero-sm {
  padding-top: var(--nav-h);
  padding-bottom: 80px;
  padding-top: calc(var(--nav-h) + 80px);
}

/* ── Typography ─────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--steel);
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.display-sm {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.body-lg {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 400;
}

.body-md {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.75;
}

.gold-text { color: var(--accent); }
.steel-text { color: var(--steel); }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy-950);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-md);
}
.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 14px 0;
  font-size: 0.83rem;
  letter-spacing: 0.1em;
}
.btn-ghost:hover { color: var(--white); }
.btn-ghost::after {
  content: ' →';
}

/* ── Divider ────────────────────────────────── */
.rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 24px 0;
}

/* ── Cards ──────────────────────────────────── */
.card {
  background: var(--navy-700);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-md);
  transform: translateY(-2px);
}

/* ── Light sections (white backgrounds) ─────── */
.section-light {
  background: #EDF2F7;
  color: #1a2332;
  border-top: none;
}

.section-light .eyebrow {
  color: var(--navy-600);
}

.section-light .eyebrow::before {
  background: var(--navy-600);
}

.section-light .display-xl,
.section-light .display-lg,
.section-light .display-md,
.section-light .display-sm {
  color: var(--navy-950);
}

.section-light .body-lg,
.section-light .body-md {
  color: #3a4f66;
}

.section-light .rule {
  background: var(--accent);
}

.section-light .btn-outline {
  color: var(--navy-950);
  border-color: rgba(10,21,37,0.2);
}
.section-light .btn-outline:hover {
  border-color: var(--navy-950);
}

.section-light .tag {
  background: rgba(61,155,209,0.12);
  color: var(--navy-600);
}

/* ── Section spacing ────────────────────────── */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

.section-head {
  margin-bottom: 56px;
}

/* ── Grid helpers ───────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── Horizontal rule decoration ─────────────── */
.h-rule {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Footer ─────────────────────────────────── */
footer {
  background: var(--navy-950);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--dim);
  margin-top: 14px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-nav-col h4 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-col a {
  font-size: 0.88rem;
  color: var(--dim);
  transition: color 0.2s;
}
.footer-nav-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.83rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.footer-partners {
  display: flex;
  align-items: center;
  gap: 20px;
}

.partner-chip {
  font-size: 0.83rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
}

/* ── Stat blocks ────────────────────────────── */
.stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.stat-block:first-child { border-top: 1px solid var(--border); }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 0.83rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Inline form ────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--navy-700);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--steel);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--dim);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Tag ────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--steel-dim);
  color: var(--steel);
  border: 1px solid rgba(74,143,191,0.2);
}

.tag-gold {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(61,155,209,0.2);
}

/* ── Scroll animation ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,21,37,0.98);
    padding: 28px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    z-index: 199;
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .display-xl { font-size: 3.2rem; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ── Shared nav active state JS helper ──────── */
nav a[href] { transition: color 0.2s; }
