/* ============================================================
   CHRISTOPHER BEERLING — Aviation theme, shared styles
   Navy + Gold · Fraunces + Archivo + IBM Plex Mono
   ============================================================ */

:root {
  --navy: #0d1b2a;
  --navy-mid: #1a2e42;
  --steel: #2e4a62;
  --accent: #c8a96e;
  --accent-light: #e8d5a3;
  --white: #f4f1eb;
  --muted: #8a9ab0;
  --line: rgba(200,169,110,0.18);
  --line-soft: rgba(255,255,255,0.06);
  --serif: 'Fraunces', serif;
  --sans: 'Archivo', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--navy); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 0.8rem;
}
.eyebrow::before { content: ''; width: 2rem; height: 1px; background: var(--accent); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ''; width: 2rem; height: 1px; background: var(--accent); }

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 4rem;
  background: rgba(13,27,42,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--white); text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 2.2rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover { color: var(--accent-light); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent-light); }
.nav-links a.active::after { width: 100%; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.lang-btn {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  padding: 0.4rem 0.8rem; border: none; cursor: pointer;
  background: transparent; color: var(--muted); transition: all 0.25s;
}
.lang-btn.active { background: var(--accent); color: var(--navy); }

/* ---------- LAYOUT ---------- */
section { padding: 7rem 4rem; position: relative; }
.section-head { margin-bottom: 4rem; }
.section-head h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.15;
  margin-top: 1.2rem; max-width: 760px;
}
.section-head h2 em { font-style: italic; color: var(--accent); font-weight: 600; }
.section-head--center { text-align: center; }
.section-head--center h2 { margin-left: auto; margin-right: auto; }

.page-head { padding: 10rem 4rem 3rem; }
.page-head h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem); line-height: 1.06; margin-top: 1.2rem;
}
.page-head h1 em { font-style: italic; font-weight: 600; color: var(--accent); }
.page-head p { margin-top: 1.5rem; max-width: 640px; color: var(--muted); line-height: 1.85; font-size: 1.05rem; }
.page-head p strong { color: var(--white); font-weight: 500; }

/* ---------- BUTTONS ---------- */
.btn-primary {
  padding: 1rem 2.2rem; background: var(--accent); color: var(--navy);
  text-decoration: none; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 2px;
  transition: all 0.3s; display: inline-block;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(200,169,110,0.25); }
.btn-outline {
  padding: 1rem 2.2rem; border: 1px solid rgba(200,169,110,0.5); color: var(--accent);
  text-decoration: none; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 2px;
  transition: all 0.3s; display: inline-block;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(200,169,110,0.08); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- TICKER ---------- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1rem 0; background: var(--navy-mid);
  white-space: nowrap;
}
.ticker-track { display: inline-flex; gap: 3.5rem; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 3.5rem;
}
.ticker-item::after { content: '✦'; color: var(--accent); font-size: 0.6rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- FOOTER ---------- */
footer {
  padding: 1.6rem 4rem; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 0.8rem;
  border-top: 1px solid var(--line-soft);
}
footer span, footer a {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
}
footer a:hover { color: var(--accent); }

/* ---------- MISC ---------- */
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #5fc98f; animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(95,201,143,0.5); }
  50% { box-shadow: 0 0 0 7px rgba(95,201,143,0); }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

#chatbot-root { position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 300; }

/* ---------- MOTION SAFETY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  nav { padding: 1rem 1.6rem; }
  .nav-links { display: none; }
  section { padding: 4.5rem 1.6rem; }
  .page-head { padding: 8rem 1.6rem 2.5rem; }
  footer { padding: 1.4rem 1.6rem; }
}
