/* ============================================================
   BASE.CSS — variables, reset, typography
   Airport Streams National Airport Tour
   ============================================================ */

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

/* ── DESIGN TOKENS ── */
:root {
  /* Palette */
  --dark:   #0D1117;
  --dark2:  #161B22;
  --dark3:  #21262D;
  --dark4:  #30363D;
  --dark5:  #484F58;

  --amber:  #E8A020;
  --amber2: #F5B93A;
  --amber3: #7A5010;
  --amber-bg: rgba(232, 160, 32, 0.08);
  --amber-border: rgba(232, 160, 32, 0.25);

  --red:    #D7282F;
  --red2:   #FF3B44;
  --red-bg: rgba(215, 40, 47, 0.08);
  --red-border: rgba(215, 40, 47, 0.25);

  --green:  #3FB950;
  --green-bg: rgba(63, 185, 80, 0.08);
  --blue:   #58A6FF;
  --blue-bg: rgba(88, 166, 255, 0.08);

  --white:  #F0F6FC;
  --grey:   #8B949E;
  --grey2:  #C9D1D9;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 60px;
  --hud-h: 52px;
  --content-top: calc(var(--nav-h) + var(--hud-h));
}

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

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

body {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--amber); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber2); }
button { font-family: var(--font-body); cursor: pointer; }
ul { list-style: none; }
input, select, textarea { font-family: var(--font-body); }

/* ── TYPOGRAPHY SCALE ── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}
h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
p { color: var(--grey2); line-height: 1.7; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 0.75rem;
  display: block;
}

.lead {
  font-size: 1.1rem;
  color: var(--grey2);
  line-height: 1.6;
}

/* ── LAYOUT HELPERS ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-3xl) var(--space-xl);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-full {
  padding: var(--space-3xl) var(--space-xl);
}

.section-dark  { background: var(--dark); }
.section-dark2 { background: var(--dark2); border-top: 1px solid var(--dark4); border-bottom: 1px solid var(--dark4); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-lg); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── UTILITY ── */
.accent     { color: var(--amber); }
.red-accent { color: var(--red); }
.green-accent { color: var(--green); }
.grey-text  { color: var(--grey); }
.white-text { color: var(--white); }
.small      { font-size: 0.82rem; }
.tiny       { font-size: 0.72rem; }
.bold       { font-weight: 600; }
.mono       { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.85em; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ── ANIMATIONS ── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--red2);
  border-radius: 50%;
  margin-right: 5px;
  animation: pulse 1.2s ease-in-out infinite;
}

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --space-3xl: 3rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container, .section { padding-left: var(--space-md); padding-right: var(--space-md); }
  .section-full { padding-left: var(--space-md); padding-right: var(--space-md); }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
