/* ═══════════════════════════════════════════════════
   STRATEGIC BUSINESS NETWORKS — Shared Design System
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --navy: #060D1A;
  --navy-mid: #0B1627;
  --navy-surf: #111F36;
  --blue: #1566FF;
  --blue-h: #3378FF;
  --blue-dim: rgba(21, 102, 255, 0.11);
  --white: #FFFFFF;
  --text-light: #DCE6F5;
  --text-muted: #637291;
  --surface: #F4F7FC;
  --bd-dark: rgba(255, 255, 255, 0.07);
  --bd-light: #DDE4EF;

  --display: 'Barlow Condensed', sans-serif;
  --body: 'DM Sans', sans-serif;

  --px: clamp(24px, 5.5vw, 84px);
  --py: clamp(72px, 9vw, 112px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--navy);
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── TYPOGRAPHY UTILITIES ── */
.t-overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
}

.t-display-xl {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(42px, 9vw, 138px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.t-display-lg {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.t-display-md {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 56px);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.t-display-sm {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.t-body-lg {
  font-size: 18px;
  line-height: 1.75;
}

.t-body-md {
  font-size: 15px;
  line-height: 1.7;
}

.t-body-sm {
  font-size: 13px;
  line-height: 1.65;
}

.c-blue {
  color: var(--blue);
}

.c-muted {
  color: var(--text-muted);
}

.c-white {
  color: white;
}

.c-navy {
  color: var(--navy);
}

/* ── BUTTONS ── */
.btn {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-filled {
  background: var(--blue);
  color: white;
  padding: 13px 30px;
}

.btn-filled:hover {
  background: var(--blue-h);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(21, 102, 255, 0.38);
}

.btn-bordered {
  color: white;
  padding: 12px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-bordered:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-bordered-light {
  color: var(--navy);
  padding: 12px 30px;
  border: 1px solid var(--bd-light);
}

.btn-bordered-light:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-ghost {
  color: var(--text-muted);
  padding: 12px 16px;
  font-size: 14px;
}

.btn-ghost:hover {
  color: white;
}

.btn-text {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.btn-text:hover {
  text-decoration: underline;
}

/* ── RULE ── */
.rule-blue {
  width: 34px;
  height: 2px;
  background: var(--blue);
}

/* ── SECTION WRAPPERS ── */
.s-dark {
  background: var(--navy);
  padding: var(--py) var(--px);
}

.s-mid {
  background: var(--navy-mid);
  padding: var(--py) var(--px);
}

.s-surf {
  background: var(--navy-surf);
  padding: var(--py) var(--px);
}

.s-light {
  background: var(--surface);
  padding: var(--py) var(--px);
  color: var(--navy);
}

.s-white {
  background: white;
  padding: var(--py) var(--px);
  color: var(--navy);
}

.s-blue {
  background: var(--blue);
  padding: var(--py) var(--px);
}

/* ── SITE NAV ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
  max-width: 100vw;
  padding: 22px var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.35s, background 0.35s, border-color 0.35s;
  box-sizing: border-box;
}

.site-nav.scrolled {
  background: rgba(6, 13, 26, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--bd-dark);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 13px;
}

.nav-logo-img {
  height: 80px;
  width: 80px;
  border-radius: 6px;
  object-fit: cover;
}

.nav-wordmark {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-items a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.nav-items a:hover,
.nav-items a.active {
  color: white;
  border-bottom-color: var(--blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── PAGE INNER HERO (about / offerings / contact) ── */
.page-hero {
  padding: clamp(120px, 14vw, 160px) var(--px) clamp(64px, 8vw, 96px);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bd-dark);
}

.page-hero-bg-num {
  position: absolute;
  right: var(--px);
  bottom: -20px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(120px, 18vw, 280px);
  line-height: 1;
  color: rgba(21, 102, 255, 0.04);
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* ── FOOTER ── */
.site-footer {
  background: #02070F;
  padding: 72px var(--px) 0;
  border-top: 1px solid var(--bd-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 72px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--bd-dark);
}

.footer-logo {
  height: 48px;
  width: 48px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-col-head {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: white;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--blue);
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.fade-up.visible,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: 0.08s;
}

.d2 {
  transition-delay: 0.18s;
}

.d3 {
  transition-delay: 0.28s;
}

.d4 {
  transition-delay: 0.38s;
}

.d5 {
  transition-delay: 0.48s;
}

/* ── SHARED SCROLL INIT ── */
/* Called in each page's script */

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
  position: relative;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: white;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── MOBILE MENU OVERLAY ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 195;
  background: rgba(6, 13, 26, 0.99);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 80px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.mobile-menu ul a {
  font-family: var(--display);
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  display: block;
  padding: 10px 0;
}

.mobile-menu ul a:hover,
.mobile-menu ul a.active {
  color: white;
}

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.mobile-menu-cta .btn {
  justify-content: center;
  padding: 16px;
  font-size: 14px;
}

/* ── MOBILE ── */
@media (max-width: 860px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-items,
  .nav-cta {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .page-hero-bg-num {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --px: 20px;
    --py: 60px;
  }

  .footer-tagline {
    max-width: 100%;
  }
}

/* Hide text on mobile, keep only logo image */
@media (max-width: 900px) {
  .nav-wordmark {
    font-size: 15px;
  }

  /* Optional: adjust logo size when text is hidden */
  .nav-logo-img {
    height: 48px;
    width: 48px;
  }

  .nav-logo {
    gap: 4;
  }
}