/* ═══════════════════════════════════════════════════════════════
   TRAVERSE — SHARED DESIGN SYSTEM
   Source of truth for tokens, typography, nav, sections, cards, footer.
   Page-specific overrides live inline in each page's <style> block.
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1923;
  --navy-deeper: #0A1420;
  --navy-deepest: #05090E;
  --copper: #E07A2F;
  --copper-light: #FFB175;
  --copper-dim: rgba(224, 122, 47, 0.12);
  --text: #E8ECF1;
  --text-muted: #A8B4C2;
  --text-dim: #7B8CA0;
  --text-dimmer: #5A6876;
  --border: rgba(255, 255, 255, 0.06);
}

/* ─── BASE ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: var(--navy-deep);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Copper gradient text helper (used for headline accents) */
.copper {
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-light) 50%, var(--copper) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(224,122,47,0.3));
}

/* ─── STICKY NAV ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 25, 35, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo svg { width: 28px; height: 36px; display: block; }
.nav-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 20px; color: white;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: #B0BCC8;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: white; }
.nav-links a.active { color: white; }
.nav-cta {
  color: white !important;
  padding: 9px 20px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.3);
}

/* Accessible focus states for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── SECTION PRIMITIVES ─────────────────────────────────────── */
.section {
  padding: 120px 60px;
  max-width: 1180px;
  margin: 0 auto;
}
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--copper);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: ''; width: 28px; height: 1px; background: var(--copper);
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -2.5px;
  color: white;
  max-width: 560px;
}
.section-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 460px;
  padding-bottom: 8px;
}
.section-intro strong { color: white; font-weight: 500; }
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
  align-items: end;
}

/* ─── CONSTELLATION PRIMITIVES ───────────────────────────────── */
/* Hero + section constellation SVGs share these keyframes */
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ─── WORK CARDS (shared by index.html + work.html) ──────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.work-card:hover {
  border-color: rgba(224, 122, 47, 0.3);
  background: rgba(224, 122, 47, 0.035);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(224,122,47,0.15);
}
.card-visual {
  height: 180px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.visual-directory { background: linear-gradient(135deg, #17253D 0%, var(--navy-deep) 100%); }
.visual-directory::before {
  content: '';
  position: absolute;
  top: 24px; left: 24px; right: 24px; bottom: 24px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(224,122,47,0.04) 0%, rgba(0,0,0,0.3) 100%);
  border: 1px solid rgba(255,255,255,0.06);
}
.visual-directory-cards {
  position: absolute;
  top: 40px; left: 40px; right: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vl-row {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
}
.vl-row::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
}
.vl-row .bar1 { width: 40%; height: 4px; background: rgba(255,255,255,0.25); border-radius: 2px; }
.vl-row .bar2 { width: 20%; height: 3px; background: rgba(255,255,255,0.12); border-radius: 2px; margin-left: auto; }
.vl-row.hl::before { background: var(--copper); box-shadow: 0 0 10px rgba(224,122,47,0.6); }
.vl-row.hl { background: rgba(224,122,47,0.07); border: 1px solid rgba(224,122,47,0.25); }

.visual-dental { background: linear-gradient(135deg, var(--navy-deep) 0%, #14202F 100%); }
.visual-dental-cal {
  position: absolute;
  inset: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.vd-cell {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.025);
  border-radius: 2px;
}
.vd-cell.active { background: rgba(224,122,47,0.2); border: 1px solid var(--copper); }
.vd-cell.soft { background: rgba(224,122,47,0.08); }

.visual-future {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #080E15 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-future svg { width: 85%; height: 75%; }

.card-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-industry {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  color: var(--copper);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.card-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 22px;
  flex: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: var(--border) solid 1px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.card-client { color: var(--text-dim); font-weight: 500; }
.card-status { color: var(--copper); display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 10px rgba(224,122,47,0.7);
  animation: pulse 2s ease-in-out infinite;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deepest);
  padding: 48px 60px 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo { width: 24px; height: 30px; }
.footer-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: white;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.footer-nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-nav a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dimmer);
}
.footer-bottom .contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom .contact a:hover { color: var(--copper); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .site-nav { padding: 14px 24px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 72px 28px; }
  .section-header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
    align-items: start;
  }
  .section-title { font-size: 36px; letter-spacing: -1px; }
  .section-intro { max-width: none; }
  .work-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-nav { gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot { animation: none !important; }
}
