/* ============================================================
   AT Labs — Shared Design System
   Dark/tactical aesthetic · Orange accent · Topo texture
   ============================================================ */

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

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-dark:      #1e1e1c;
  --bg-mid:       #252523;
  --bg-surface:   #2e2e2c;
  --bg-card:      #323230;
  --accent:       #D45010;
  --accent-light: #E06020;
  --accent-dim:   rgba(212, 80, 16, 0.15);
  --text-primary: #EDEAE4;
  --text-secondary: #9A9790;
  --text-muted:   #5E5C58;
  --border:       #3A3A38;
  --border-accent: rgba(212, 80, 16, 0.4);
  --white:        #FFFFFF;

  --font-head: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --nav-h: 72px;
  --radius: 3px;
  --transition: 0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.1rem; letter-spacing: 0.08em; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}

p { color: var(--text-secondary); max-width: 68ch; }
p + p { margin-top: 1rem; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section--dark    { background: var(--bg-dark); }
.section--mid     { background: var(--bg-mid); }
.section--surface { background: var(--bg-surface); }

.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 1.2rem 0 1.8rem;
}

.divider--center { margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 80, 16, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-accent-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.btn-accent-outline:hover {
  background: var(--accent-dim);
  color: var(--accent-light);
}

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

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

/* Mobile hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(20, 20, 18, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1.2rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.nav__mobile a:hover { color: var(--accent); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer__brand img {
  height: 30px;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.footer__brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.footer__nav a {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer__nav a:hover { color: var(--accent); }

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: none;
}

.footer__bottom a {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.footer__bottom a:hover { color: var(--accent); }

/* ── Topo texture overlay ──────────────────────────────────── */
.topo-overlay {
  position: relative;
  overflow: hidden;
}
.topo-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../Assets/TOPO-MASTER.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.topo-overlay > * { position: relative; z-index: 1; }

/* ── Spec table ────────────────────────────────────────────── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1rem;
}
.spec-table tr {
  border-bottom: 1px solid var(--border);
}
.spec-table tr:last-child { border-bottom: none; }
.spec-table td {
  padding: 0.6rem 0;
  vertical-align: top;
}
.spec-table td:first-child {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 40%;
  padding-right: 1rem;
}
.spec-table td:last-child {
  color: var(--text-primary);
}

/* ── Badge / pill ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  border: 1px solid var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Notice box ────────────────────────────────────────────── */
.notice {
  background: rgba(212, 80, 16, 0.08);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.notice strong { color: var(--accent); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__nav {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  h1 { font-size: 2.2rem; }
}
