/* ═══════════════════════════════════════════════════════
   SwyftSystems — Shared site styles
   Covers: variables, reset, type, buttons, nav, footer, reveal
   Page-specific CSS lives in each HTML file's <style> block.
   Last updated: 2026-05-15
   ═══════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────── */
:root {
  --bg:           #F8F7F5;
  --bg-alt:       #EEF2F6;
  --bg-dark:      #18181A;
  --text:         #18181A;
  --text-muted:   #6A6A6A;
  --accent:       #1B4F72;
  --accent-hover: #154060;
  --accent-light: #7EB4D4;
  --border:       #E2E0DC;
  --white:        #FFFFFF;
  --serif:        'DM Serif Display', Georgia, serif;
  --sans:         'Inter', system-ui, -apple-system, sans-serif;
  --radius:       8px;
  --max-w:        1080px;
}

/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPE ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.18;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(27, 79, 114, 0.3);
}
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 16px 4px;
  transition: color 0.2s;
}
.btn-text:hover { color: var(--accent); }
.btn-text svg { transition: transform 0.2s; }
.btn-text:hover svg { transform: translateY(3px); }

/* ── NAV ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 245, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); font-weight: 600; }

/* ── FOOTER ────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  padding: 40px 28px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--white);
  text-decoration: none;
}
.footer-logo span { color: var(--accent-light); }
.footer-mid { font-size: 13px; color: #555; }
.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-right a {
  color: var(--accent-light);
  text-decoration: none;
  font-size: 13px;
}
.footer-right a:hover { text-decoration: underline; }

/* ── BACK LINK ─────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

/* ── REVEAL ANIMATIONS ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.09s; }
.reveal-delay-2 { transition-delay: 0.18s; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 640px) {
  /* Hide nav text links on small screens — logo + CTA always stay */
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { justify-content: center; }
}
