/* ============================================================
   APEX RIDGE TECHNOLOGY GROUP — Site Design System
   Bold / technical / high-contrast. Ink base, teal accent.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@200;300;400;500;600;700&display=swap');

:root {
  --teal: #14B8A6;
  --teal-bright: #2DD4BF;
  --teal-deep: #0E8E80;
  --ink: #0D1117;
  --ink-deep: #0B0E13;
  --slate: #161B22;
  --graphite: #21262D;
  --line: rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.14);
  --silver: #8B949E;
  --text: #C9D1D9;
  --text-bright: #E4E8EE;
  --offwhite: #F4F6F8;
  --alert: #E5634D;

  --maxw: 1280px;
  --gut: 64px;

  --f-display: 'Rajdhani', sans-serif;
  --f-body: 'Exo 2', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink-deep);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--teal); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 90px 0; }

.eyebrow {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--teal-bright);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--teal-bright);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; color: #fff; letter-spacing: 1px; line-height: 1.05; }

.h-display {
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: 2px;
  line-height: 0.96;
  text-transform: uppercase;
}
.h-section {
  font-size: clamp(34px, 4.6vw, 60px);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.h-sub { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 1px; }
.teal { color: var(--teal-bright); }

.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-bright); font-weight: 300; max-width: 60ch; line-height: 1.65; }
p { text-wrap: pretty; }

/* signature divider rule (leading teal segment) */
.rule {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--teal-bright) 0, var(--teal-bright) 40px, var(--line) 40px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid transparent;
  position: relative;
  transition: all .35s var(--ease);
  cursor: pointer;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

.btn--primary { background: var(--teal); color: #04201d; }
.btn--primary:hover { background: var(--teal-bright); box-shadow: 0 12px 40px -12px var(--teal); }

.btn--ghost { background: transparent; color: #fff; border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--teal-bright); color: var(--teal-bright); }

.btn--light { background: var(--ink); color: #fff; }
.btn--light:hover { background: #000; }

/* ---------- Peak icon helper ---------- */
.peak { flex-shrink: 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gut);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,14,19,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px var(--gut);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .bn { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: 4px; color: #fff; line-height: 1; }
.brand .bs { font-size: 7.5px; font-weight: 300; letter-spacing: 4px; color: var(--silver); text-transform: uppercase; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--silver);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1.5px; width: 0;
  background: var(--teal-bright);
  transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--teal-bright); }

.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav .btn { padding: 12px 22px; font-size: 12px; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-burger span { width: 24px; height: 2px; background: #fff; transition: .3s var(--ease); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer .brand .bn { font-size: 26px; }
.footer-tag { color: var(--silver); font-size: 14px; margin-top: 22px; max-width: 34ch; }
.footer-col h4 { font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--silver); margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--text); margin-bottom: 12px; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--teal-bright); }
.footer-bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom .copy { font-size: 12px; color: var(--silver); letter-spacing: 0.5px; }
.naics-row { display: flex; gap: 6px; flex-wrap: wrap; }
.naics-chip { font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--silver); background: var(--graphite); padding: 4px 10px; border: 1px solid var(--line); }

/* ============================================================
   SCROLL REVEAL
   Base state is VISIBLE. We only hide (and animate) once the
   inline <head> script adds `.js` to <html>, guaranteeing the
   reveal can be undone. Reveal is driven by a scroll +
   getBoundingClientRect check in site.js (no IntersectionObserver
   dependency), so content always appears even in sandboxed iframes.
   ============================================================ */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   CARDS / GRIDS (shared components)
   ============================================================ */
.cards { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--ink);
  padding: 44px 40px;
  position: relative;
  transition: background .4s var(--ease), transform .4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 0; height: 2px;
  background: var(--teal-bright);
  transition: width .45s var(--ease);
}
.card:hover { background: var(--slate); }
.card:hover::before { width: 100%; }
.card .num { font-family: var(--f-display); font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--teal-bright); }
.card h3 { font-size: 24px; margin: 14px 0 12px; }
.card p { font-size: 14.5px; color: var(--silver); }

/* tag pills */
.tag { display: inline-block; font-family: var(--f-display); font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 4px 10px; vertical-align: middle; }
.tag--primary { background: var(--teal); color: #04201d; }
.tag--secondary { background: var(--graphite); color: var(--silver); border: 1px solid var(--line-strong); }

/* stat */
.stat .v { font-family: var(--f-display); font-size: clamp(48px, 6vw, 76px); font-weight: 700; color: #fff; line-height: 1; letter-spacing: 1px; }
.stat .v .u { color: var(--teal-bright); }
.stat .k { font-size: 13px; color: var(--silver); margin-top: 12px; letter-spacing: 1px; }

/* faint background peak watermark */
.peak-watermark { position: absolute; pointer-events: none; opacity: 0.04; z-index: 0; }

/* CTA band */
.cta-band { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-top: 96px; padding-bottom: 96px; flex-wrap: wrap; }

/* page hero (interior pages) */
.page-hero { padding: 200px 0 90px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .crumb { font-family: var(--f-display); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--silver); margin-bottom: 28px; }
.page-hero .crumb .teal { color: var(--teal-bright); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  :root { --gut: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  :root { --gut: 20px; }
}
@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 150px 0 70px; }

  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11,14,19,0.97); backdrop-filter: blur(16px);
    padding: 28px var(--gut); border-bottom: 1px solid var(--line);
  }
}
