/* ══════════════════════════════════════════════════════════════
   weElevateIT — Global stylesheet
   Tokens, reset, typography, nav, footer, shared utilities.
   ══════════════════════════════════════════════════════════════ */

/* Self-hosted Inter (Latin subset, variable font — covers 400/700/900). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --navy: #002a62;
  --primary-blue: #0558d6;
  --medium-blue: #339abe;
  --teal: #3fc1b9;
  --lime: #c1ff72;
  --white: #f0f4f8;
  --black: #000;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Branded focus ring — replaces browser default for keyboard users. */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link — first focusable element on each page. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--lime);
  color: var(--black);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  border-radius: 0 0 8px 0;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* Visually hidden but available to assistive tech. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Accent gradient text ── */
.accent {
  background: linear-gradient(135deg, var(--lime), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section label (uppercase + leading rule) ── */
.section-label {
  font-size: 0.7rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.3em; color: var(--lime); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--lime); }

/* ── Dividers ── */
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--lime), var(--teal), transparent);
  opacity: 0.15;
}
.divider-major {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--lime), var(--teal), transparent);
  opacity: 0.25; margin: 9rem 0;
}

/* ── Primary CTA button ── */
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  color: var(--black); background: var(--lime);
  border: none; border-radius: 60px;
  cursor: pointer; text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 0 40px rgba(193,255,114,0.2);
}
.cta-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 80px rgba(193,255,114,0.35); }
.cta-btn svg { transition: transform 0.3s ease; }
.cta-btn:hover svg { transform: translateX(5px); }

/* ── Nav (fixed, blur-on-scroll) ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 3rem;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(193, 255, 114, 0.06);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: rgba(240, 244, 248, 0.55);
  font-size: 1.05rem; font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.3s ease; position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--lime);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 0.5rem 1.4rem !important; font-size: 0.95rem !important;
  font-weight: 600 !important; color: var(--lime) !important;
  background: transparent !important;
  border: 1px solid rgba(193, 255, 114, 0.35) !important;
  border-radius: 60px;
  transition: background 0.3s ease, border-color 0.3s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: rgba(193, 255, 114, 0.08) !important; border-color: var(--lime) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 1080px) {
  .nav { padding: 0.75rem 1.5rem; }
  .nav-toggle { display: flex; z-index: 201; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(193, 255, 114, 0.06);
    transition: right 0.4s var(--ease-out);
    padding: 2rem; z-index: 200;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
}

/* ── Page hero (used on about / careers / sub-pages) ── */
.page-hero {
  padding: 10rem 2rem 5rem; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(5, 88, 214, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .label {
  font-size: 0.7rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.3em; color: var(--lime); margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: 1rem;
}
.page-hero .label::before, .page-hero .label::after {
  content: ''; width: 30px; height: 1px; background: var(--lime);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.5rem;
}
.page-hero p {
  font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 300;
  color: rgba(240, 244, 248, 0.6); max-width: 650px; margin: 0 auto;
  line-height: 1.7;
}

/* ── Generic section wrapper ── */
.section { padding: 6rem 2rem; max-width: 1000px; margin: 0 auto; position: relative; }
.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 2rem; text-align: center;
}
.section p {
  font-size: 1.05rem; font-weight: 300;
  color: rgba(240, 244, 248, 0.6); line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ── Holographic helpers (shared by services/solutions/principles) ── */
.holo-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background-image:
    linear-gradient(rgba(193,255,114,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193,255,114,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  transition: opacity 0.6s ease;
}
.holo-laser {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(193,255,114,0.1) 10%, rgba(193,255,114,0.8) 30%,
    var(--lime) 50%,
    rgba(193,255,114,0.8) 70%, rgba(193,255,114,0.1) 90%, transparent 100%);
  box-shadow: 0 0 15px rgba(193,255,114,0.6), 0 0 40px rgba(193,255,114,0.3);
  opacity: 0; pointer-events: none; z-index: 10;
  transform: translateY(0);
  will-change: transform, opacity;
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }

/* ── Footer ── */
.footer {
  text-align: center; padding: 3rem 2rem;
  font-size: 0.75rem; color: rgba(240, 244, 248, 0.5);
  border-top: 1px solid rgba(240, 244, 248, 0.04);
  letter-spacing: 0.05em;
}
.footer a {
  color: rgba(240, 244, 248, 0.55);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover { color: var(--lime); }
.footer-disclaimer {
  font-size: 0.65rem; font-weight: 400; font-style: italic;
  color: rgba(240, 244, 248, 0.55);
  max-width: 620px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════════════
   Reduced motion — collapse all decorative motion to opacity fades.
   Hides purely decorative elements, keeps content reachable.
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  /* Decorative-only elements: hide entirely. */
  .orb, .hero .scroll-hint,
  .holo-grid, .holo-laser,
  .tunnel-fx, .tunnel-section,
  .iris-section, .iris-glow,
  .connect-orb, .connect-thread, .connect-glow,
  .quote-glow {
    display: none !important;
  }

  /* Sticky scroll-driven layers: collapse to flow content. */
  .sticky-section, .origami-section, .quote-section, .connect-section {
    height: auto !important;
  }
  .sticky-container, .origami-sticky, .quote-sticky, .connect-sticky {
    position: static !important;
    height: auto !important;
    padding: 4rem 2rem;
  }
  .sticky-layer, .origami-content, .quote-content, .associations {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
  }

  /* Origami doors: skip the fold animation, show content. */
  .origami-door-left, .origami-door-right { display: none !important; }
  .origami-content { transform: none !important; }

  /* Rotating headline: freeze on the first phrase. */
  .rotating-text:not(.initial) { display: none !important; }
  .rotating-text.initial,
  .rotating-text.initial .word {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Word-reveal on hero: instant visible. */
  .headline .word { opacity: 1 !important; transform: none !important; }

  /* Reveal classes resolve immediately. */
  .reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 {
    opacity: 1 !important; transform: none !important;
  }

  /* Customer / association staggers — instant. */
  .customer-seal, .seal-img-top, .assoc-col, .assoc-badge,
  .perk, .position, .featured-source, .featured-headline,
  .featured-quote, .featured-player, .featured-link, .stat,
  .principle {
    opacity: 1 !important; transform: none !important;
  }
}
