/* ============================================================
   AEROINFILL — style.css
   Global styles: variables, reset, nav, footer, utilities
   ============================================================ */

/* ── Google Fonts import ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Share+Tech+Mono&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Brand palette */
  --olive:          #4a5240;
  --olive-dark:     #2e3328;
  --olive-light:    #6b7560;
  --amber:          #d4870a;
  --amber-bright:   #f0a020;
  --amber-dim:      rgba(212,135,10,0.15);
  --khaki:          #c8b98a;
  --khaki-light:    #e2d9c0;
  --steel:          #8a9ba8;
  --black:          #0d0f0c;
  --off-white:      #f0ece0;
  --panel:          #161810;
  --panel-light:    #1e2118;

  /* Semantic */
  --text-primary:   var(--khaki-light);
  --text-muted:     var(--olive-light);
  --text-accent:    var(--amber-bright);
  --border:         rgba(212,135,10,0.18);
  --border-strong:  rgba(212,135,10,0.5);
  --grid-line:      rgba(212,135,10,0.10);
  --scan:           rgba(212,135,10,0.025);

  /* Typography */
  --font-display:   'Bebas Neue', sans-serif;
  --font-mono:      'Share Tech Mono', monospace;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body:      'Barlow', sans-serif;

  /* Spacing scale */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  60px;
  --space-xl:  100px;

  /* Layout */
  --nav-height:     64px;
  --max-width:      1280px;
  --content-pad:    clamp(20px, 5vw, 80px);

  /* Transitions */
  --transition:     0.2s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--black);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: crosshair;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: crosshair;
  border: none;
  background: none;
}

/* ── Global Overlays ──────────────────────────────────────── */

/* Scanline texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--scan) 2px,
    var(--scan) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* Tactical grid */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Typography helpers ───────────────────────────────────── */
.display {
  font-family: var(--font-display);
  line-height: 0.95;
  letter-spacing: 2px;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.condensed {
  font-family: var(--font-condensed);
  letter-spacing: 1px;
}

/* Section label */
.section-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--amber);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.section-tag::before {
  content: '//';
  color: var(--olive-light);
}

/* Section heading */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: 2px;
  color: var(--off-white);
  line-height: 1;
}

.section-title span {
  color: var(--amber-bright);
}

/* Section header row (title + "view all" link) */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  gap: var(--space-sm);
}

.view-all-link {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: gap var(--transition);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: gap var(--transition), border-color var(--transition);
}

.view-all-link:hover {
  gap: 12px;
  border-color: var(--amber);
}

/* ── Layout utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.section-pad {
  padding: var(--space-xl) var(--content-pad);
  position: relative;
  z-index: 1;
}

.divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0 var(--content-pad);
  height: 2px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,135,10,0.35), transparent);
}

.divider-diamond {
  width: 8px;
  height: 8px;
  border: 1px solid var(--amber);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin: 0 4px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: crosshair;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  color: var(--black);
  background: var(--amber);
  border: 2px solid var(--amber);
  padding: 14px 36px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary:hover {
  background: var(--amber-bright);
  border-color: var(--amber-bright);
}

.btn-outline {
  color: var(--khaki-light);
  background: transparent;
  border: 1px solid var(--olive-light);
  padding: 14px 36px;
}

.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-sm {
  font-size: 11px;
  letter-spacing: 2px;
  padding: 9px 20px;
}

/* ── NAV ──────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--content-pad);
  background: rgba(13,15,12,0.94);
  border-bottom: 1px solid var(--amber);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.nav-logo__badge {
  width: 30px;
  height: 30px;
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
  flex-shrink: 0;
}

.nav-logo__wordmark {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 5px;
  color: var(--amber-bright);
  line-height: 1;
}

.nav-logo__sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--olive-light);
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--khaki);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--amber-bright);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Nav CTA */
.nav-cta {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--amber);
  padding: 8px 22px;
  border: none;
  cursor: crosshair;
  transition: background var(--transition);
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--amber-bright);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  cursor: crosshair;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--amber);
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(13,15,12,0.98);
  border-bottom: 1px solid var(--border);
  padding: 24px var(--content-pad);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--khaki);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.nav-drawer a:hover { color: var(--amber-bright); }

/* ── TICKER ───────────────────────────────────────────────── */
.ticker {
  position: relative;
  z-index: 1;
  background: var(--amber);
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}

.ticker__inner {
  display: flex;
  animation: ticker-scroll 35s linear infinite;
  white-space: nowrap;
}

.ticker__item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker__item::after {
  content: '◆';
  font-size: 7px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) var(--content-pad) var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: var(--space-lg);
}

.footer-brand__tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-top: 16px;
}

.footer-brand .nav-logo {
  display: inline-flex;
}

.footer-heading {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--khaki);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}

.footer-links a::before {
  content: '›';
  color: var(--amber);
  font-size: 16px;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(212,135,10,0.1);
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-legal a {
  color: var(--amber);
}

.footer-signal {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s ease-in-out infinite;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  :root {
    --space-xl: 64px;
    --space-lg: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
