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

:root {
  /* AKTIV TEMA: Taktisk Kull (charcoal/stål) */
  --olive: #2c323d;
  --olive-dark: #1e232c;
  --olive-darker: #121620;
  --gold: #c9a84c;
  --text: #edeae2;
  --text-muted: #a8a49a;
  --border: rgba(255,255,255,0.1);
}
/* TEMA-BYTTE — erstatt de tre over med ett av disse:
   Olive Khaki (original):  #525034 / #3a3825 / #1e1d14
   Nordic Skog:             #253d20 / #192c15 / #0d1a0b
   Mørk Rav:                #4a3620 / #352510 / #1a120a  */

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--olive-darker);
  color: var(--text);
  line-height: 1.7;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 12, 18, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo-text { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; letter-spacing: 2px; color: var(--text); text-transform: uppercase; font-weight: 600; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-size: 0.9rem; letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.2s; font-weight: 400; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-cta { background: var(--gold); color: var(--olive-darker); padding: 0.5rem 1.4rem; font-family: 'Barlow Condensed', sans-serif; font-size: 0.9rem; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; font-weight: 700; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.85; }

/* HERO */
#hero {
  height: 100vh;
  background: url('../assets/hero-convoy.png') center/cover no-repeat;
  background-attachment: fixed;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}

#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,12,18,0.4) 0%,
    rgba(10,12,18,0.65) 50%,
    rgba(10,12,18,0.97) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 0 2rem; }

.hero-logo { width: 110px; height: auto; margin-bottom: 1.5rem; filter: drop-shadow(0 4px 24px rgba(0,0,0,0.9)); }

.hero-tag { font-family: 'Barlow Condensed', sans-serif; font-size: 0.9rem; letter-spacing: 6px; color: var(--gold); text-transform: uppercase; margin-bottom: 0.5rem; font-weight: 400; }

.hero-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; letter-spacing: 4px; line-height: 1; color: var(--text); text-transform: uppercase; margin-bottom: 1.2rem; }

.hero-subtitle { font-family: 'Barlow', sans-serif; font-size: 0.9rem; color: var(--text-muted); letter-spacing: 3px; margin-bottom: 3rem; font-weight: 300; text-transform: uppercase; }

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary { background: var(--gold); color: var(--olive-darker); padding: 0.85rem 2.2rem; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; font-size: 1rem; font-weight: 700; transition: opacity 0.2s; display: inline-block; }
.btn-primary:hover { opacity: 0.85; }

.btn-secondary { border: 1px solid rgba(255,255,255,0.3); color: var(--text); padding: 0.85rem 2.2rem; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; font-size: 1rem; transition: border-color 0.2s, color 0.2s; display: inline-block; }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; color: var(--text-muted); letter-spacing: 3px; font-family: 'Barlow Condensed', sans-serif; font-size: 0.7rem; text-transform: uppercase; transition: opacity 0.3s; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* STATS BAR */
.stats-bar {
  background: var(--olive);
  border-bottom: 1px solid rgba(0,0,0,0.3);
  padding: 1.5rem 2rem;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
}

.stat { text-align: center; padding: 0.5rem 3rem; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-value { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; color: var(--gold); letter-spacing: 1px; line-height: 1; font-weight: 600; }
.stat-label { font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-top: 0.3rem; }

/* SECTIONS */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-tag { font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; font-weight: 400; }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--text); margin-bottom: 1rem; line-height: 1.05; letter-spacing: 1px; }
.section-divider { width: 50px; height: 2px; background: var(--gold); margin-bottom: 2rem; }

/* OM TFN */
#om { background: var(--olive-darker); }

.om-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.om-text p { color: var(--text-muted); margin-bottom: 1.2rem; font-size: 0.92rem; line-height: 1.9; }
.om-text a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,0.3); transition: border-color 0.2s; }
.om-text a:hover { border-color: var(--gold); }
.om-image img { width: 100%; border: 1px solid var(--border); display: block; }

/* MILSIM */
#milsim { background: var(--olive-dark); }

.milsim-intro { max-width: 720px; margin-bottom: 0; }
.milsim-intro p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; line-height: 1.9; }
.milsim-intro a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,0.3); transition: border-color 0.2s; }
.milsim-intro a:hover { border-color: var(--gold); }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.pillar { border: 1px solid var(--border); padding: 2rem; background: rgba(0,0,0,0.2); transition: border-color 0.2s; }
.pillar:hover { border-color: var(--gold); }
.pillar-icon { width: 36px; height: 36px; margin-bottom: 1rem; color: var(--gold); }
.pillar-icon svg { width: 100%; height: 100%; }
.pillar-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; font-weight: 600; }
.pillar-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* JSTF / NORDIC */
#nordic { background: var(--olive-darker); position: relative; z-index: 1; }

.nordic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.nordic-text p { color: var(--text-muted); margin-bottom: 1.2rem; font-size: 0.92rem; line-height: 1.9; }

.nordic-flags { display: flex; gap: 1.2rem; margin-bottom: 2rem; align-items: center; }
.nordic-flags svg { height: 36px; width: auto; border: 1px solid rgba(255,255,255,0.15); }

.nordic-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nordic-stat { border: 1px solid var(--border); padding: 1.5rem; text-align: center; background: rgba(0,0,0,0.2); }
.nordic-stat-value { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; color: var(--gold); line-height: 1; font-weight: 700; }
.nordic-stat-label { font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-top: 0.4rem; }

/* BLI MED */
#bli-med { background: var(--olive); }

.join-intro { max-width: 650px; margin-bottom: 1rem; }
.join-intro p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.92rem; line-height: 1.9; }

/* OPPDRAGSPLAN — prosess-design */
.oporder-box { border: 1px solid var(--border); background: rgba(0,0,0,0.2); margin: 2.5rem 0; }

.oporder-header { border-bottom: 1px solid rgba(201,168,76,0.4); padding: 0.75rem 1.5rem; font-family: 'Barlow Condensed', sans-serif; font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); background: rgba(201,168,76,0.05); }

.join-phases { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; padding: 2.5rem 2rem; }

.phase { text-align: center; padding: 0 1rem; }

.phase-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid rgba(201,168,76,0.35); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }

.tac-frame { width: 68px; height: 46px; border: 2px solid rgba(255,255,255,0.4); outline: 1px solid rgba(201,168,76,0.25); outline-offset: 3px; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.8rem; background: rgba(0,0,0,0.3); }
.tac-frame svg { width: 24px; height: 24px; color: var(--text-muted); }

.phase-point { font-family: 'Barlow Condensed', sans-serif; font-size: 0.62rem; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.8rem; }

.phase-name { font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text); margin-bottom: 0.8rem; font-weight: 600; }

.phase-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; }

.advance-arrow { display: flex; align-items: flex-start; padding-top: 3.8rem; color: var(--gold); opacity: 0.5; }
.advance-arrow svg { width: 44px; height: 20px; }

.oporder-footer { border-top: 1px solid var(--border); padding: 0.6rem 1.5rem; font-family: 'Barlow Condensed', sans-serif; font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.2); text-align: center; }

.requirements { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; margin-top: 2.5rem; background: var(--border); border: 1px solid var(--border); }
.req { background: var(--olive); padding: 1.2rem 1.5rem; }
.req-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.65rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.req-value { font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem; color: var(--text); letter-spacing: 0.5px; font-weight: 600; }
.req-link { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(201,168,76,0.4); transition: border-color 0.2s; }
.req-link:hover { border-color: var(--gold); }

.join-cta { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* VIDEO-SEKSJON */
#video-bg {
  position: relative;
  height: 900px;
  margin-top: -200px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

#video-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

#video-bg::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, var(--olive-darker), transparent 30%, transparent 70%, var(--olive-darker));
}

.video-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.video-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0.5rem 0 1.5rem;
}

/* FOOTER */
footer { background: var(--olive-darker); border-top: 1px solid var(--border); padding: 4rem 2rem 3rem; text-align: center; }
.footer-logo img { height: 80px; width: auto; margin-bottom: 1.2rem; }
.footer-name { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 0.4rem; font-weight: 700; }
.footer-sub { font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2.5rem; }
.footer-links { display: flex; justify-content: center; gap: 2.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-divider { width: 40px; height: 1px; background: var(--border); margin: 0 auto 2rem; }
.footer-legal { max-width: 580px; margin: 0 auto 2rem; padding: 1rem 1.5rem; border: 1px solid var(--border); font-size: 0.72rem; color: rgba(255,255,255,0.3); line-height: 1.6; }
.footer-copy { font-size: 0.7rem; color: rgba(255,255,255,0.2); letter-spacing: 1px; }

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .om-grid, .nordic-grid { grid-template-columns: 1fr; gap: 3rem; }
  .om-image { order: -1; }
  .join-phases { grid-template-columns: 1fr; }
  .advance-arrow { transform: rotate(90deg); padding: 0.5rem 0; justify-content: center; }
}

@media (max-width: 700px) {
  .stat { padding: 0.5rem 1.5rem; }
  nav .nav-links { display: none; }
  #video-bg { height: 640px; margin-top: -120px; }
}

@media (max-width: 480px) {
  section { padding: 4rem 1.2rem; }
  .stats-bar { gap: 0; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); width: 50%; }
}
