/* ============================================================
   BRIDGE GLOBAL — SHARED CSS
   Palette: Carbon + Teal
   Typography: Satoshi + IBM Plex Mono
   ============================================================ */

:root {
  --primary: #111210;
  --surface: #1D1C19;
  --surface-raised: #252420;
  --light: #F2EDE6;
  --teal: #50e1b4;
  --teal-hover: #3dd4a5;
  --teal-dim: rgba(80, 225, 180, 0.12);
  --teal-glow: rgba(80, 225, 180, 0.25);
  --gold: #B8943F;
  --gold-dim: rgba(184, 148, 63, 0.15);
  --text-primary: #F2EDE6;
  --text-secondary: #A09A90;
  --text-tertiary: #7A756A;
  --text-on-light: #1D1C19;
  --text-on-light-secondary: #5A564E;
  --font-display: 'Satoshi', sans-serif;
  --font-body: 'Satoshi', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(17, 18, 16, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 48px;
  border-bottom: 1px solid rgba(242, 237, 230, 0.06);
}
.nav.scrolled .nav-cta {
  background: var(--light);
  color: var(--primary);
}
.nav.scrolled .nav-cta:hover {
  background: #fff;
}
.nav-logo svg { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-primary); }
.nav-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--primary);
  background: var(--teal);
  padding: 10px 24px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--teal-hover); }

/* ===== HAMBURGER ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  padding: 40px 48px;
  border-top: 2px solid var(--teal);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo svg { height: 20px; width: auto; opacity: 0.4; }
.footer-details { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-detail { font-size: 13px; color: var(--text-tertiary); }

/* ===== SHARED UTILITIES ===== */
.section-narrow { max-width: 1200px; margin: 0 auto; }
.section-wide { max-width: 1400px; margin: 0 auto; }
.section-full { width: 100%; }

.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: var(--teal);
  padding: 16px 40px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-primary:hover { background: var(--teal-hover); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-left.visible, .slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== RESPONSIVE: NAV + FOOTER ===== */
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(17, 18, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 36px 48px;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(242, 237, 230, 0.06);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
  }
  .nav-cta {
    font-size: 15px;
    padding: 14px 32px;
    margin-top: 8px;
  }
  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
