/* ============================================================
   FUSE 4 PERFORMANCE — Shared Design System
   Assets sourced directly from fuse4performance.com
   ============================================================ */

/* ── Google Font (Montserrat — bold display sans-serif typical of performance brands) ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* ── Brand Colours ── */
  --clr-black:       #000000;
  --clr-bg:          #0a0a0a;
  --clr-bg-dark:     #111111;
  --clr-bg-card:     #1a1a1a;
  --clr-bg-card-2:   #222222;
  --clr-border:      rgba(255, 255, 255, 0.10);
  --clr-border-lt:   rgba(255, 255, 255, 0.06);

  /* Sage green accent — brand palette */
  --clr-accent:      #a0b898;
  --clr-accent-dk:   #87a07e;
  --clr-accent-lt:   #b8cbb2;
  --clr-accent-dim:  rgba(160, 184, 152, 0.15);

  --clr-white:       #ffffff;
  --clr-text:        #ffffff;
  --clr-text-muted:  rgba(255, 255, 255, 0.65);
  --clr-text-dim:    rgba(255, 255, 255, 0.35);

  /* ── Asset URLs (live site) ── */
  --logo-light: url('assets/fuse-logo-white.png');
  --video-hero: 'assets/hero-video.webm';

  /* ── Typography ── */
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;

  /* ── Layout ── */
  --nav-h:     80px;
  --max-w:     1280px;
  --radius:    6px;
  --radius-sm: 4px;
  --radius-lg: 12px;

  /* ── Motion ── */
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --dur-sm:    0.2s;
  --dur-md:    0.4s;

  /* ── Elevation ── */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-accent: 0 8px 24px rgba(160, 184, 152, 0.18);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Selection & focus ── */
::selection { background: var(--clr-accent); color: var(--clr-black); }
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Scrollbar (WebKit) ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  border: 2px solid var(--clr-bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.24); }

/* ── Scroll-reveal utility ──
   Add class="reveal" (optionally reveal--1 … reveal--4 for stagger)
   to any element; main.js flips it to visible via IntersectionObserver. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--1 { transition-delay: 0.05s; }
.reveal--2 { transition-delay: 0.12s; }
.reveal--3 { transition-delay: 0.19s; }
.reveal--4 { transition-delay: 0.26s; }
.reveal--5 { transition-delay: 0.33s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
}
/* On inner pages (not the video hero), always show bg */
.nav.solid {
  background: var(--clr-bg-dark);
  border-bottom: 1px solid var(--clr-border);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Use actual brand logo from live site */
.nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav__links a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--clr-white); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Social icons in nav */
.nav__socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav__social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  transition: color var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease);
}
.nav__social:hover { color: var(--clr-accent); transform: translateY(-2px); }
.nav__social svg { width: 18px; height: 18px; fill: currentColor; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--clr-bg-dark);
  border-bottom: 1px solid var(--clr-border);
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
  flex-direction: column;
  gap: 0;
  z-index: 999;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  padding: 1rem 0;
  border-bottom: 1px solid var(--clr-border-lt);
  transition: color 0.2s;
}
.nav__mobile a:hover { color: var(--clr-white); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: none;
  transition: background var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease),
              border-color var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease),
              box-shadow var(--dur-sm) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--clr-accent);
  color: var(--clr-black);
  border: 1px solid transparent; /* matches .btn-outline's border so both are the exact same box size */
  box-shadow: 0 0 0 rgba(160, 184, 152, 0);
}
.btn-primary:hover {
  background: var(--clr-accent-lt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--clr-white);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.btn-outline-accent {
  background: transparent;
  color: var(--clr-accent);
  border: 1px solid var(--clr-accent);
}
.btn-outline-accent:hover {
  background: var(--clr-accent);
  color: var(--clr-black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--clr-white);
  border: 1px solid var(--clr-border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.2);
}

.btn-lg {
  /* Scales fluidly with viewport width (same 640px→1440px curve as
     .hero__headline) so the button stays in proportion to the hero text at
     every window width. Vertical padding and text also cap against
     viewport height (vh) so the button can't push a short/full-screen
     window's hero content taller than the screen. Sized at 0.75× the
     previous pass (net ~0.5625× the original fixed 1rem/2.5rem/0.8rem). */
  padding: clamp(0.45rem, min(1.43vw, 1.5vh), 1.28rem) clamp(1.06rem, 2.65vw, 2.36rem);
  font-size: clamp(0.41rem, min(1.13vw, 1.28vh), 1.01rem);
  /* Force both hero CTAs to the exact same box, rather than sizing to their
     own text. A min-width based on character count undershot "Learn More"
     because its capital M/O/R glyphs (uppercased, bold) render wider per
     character than "Let's Talk."'s narrower letters/punctuation despite
     having fewer characters — so it stayed bigger than the min-width floor.
     Using a fixed width instead (generous enough for the widest label)
     removes that guesswork: both buttons are now identically sized and the
     text just sits centred inside. */
  width: calc(2 * clamp(1.06rem, 2.65vw, 2.36rem) + 14ch);
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section {
  padding: 5rem clamp(1.25rem, 5vw, 3rem);
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 1.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-title em {
  font-style: normal;
  color: var(--clr-accent);
}

.section-sub {
  font-size: 1rem;
  color: var(--clr-text-muted);
  max-width: 560px;
  line-height: 1.75;
  font-weight: 400;
}

/* Divider line */
.divider {
  width: 48px;
  height: 2px;
  background: var(--clr-accent);
  margin-bottom: 1.5rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease),
              box-shadow var(--dur-sm) var(--ease), background var(--dur-sm) var(--ease);
}
.card:hover {
  border-color: rgba(160, 184, 152, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  padding-left: clamp(1.25rem, 5vw, 3rem);
  padding-right: clamp(1.25rem, 5vw, 3rem);
  background: var(--clr-bg-dark);
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(160, 184, 152, 0.07), transparent);
  pointer-events: none;
}
.page-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============================================================
   FORMS
   ============================================================ */
.input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  color: var(--clr-white);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 400;
  width: 100%;
  transition: border-color var(--dur-sm) var(--ease), box-shadow var(--dur-sm) var(--ease), background var(--dur-sm) var(--ease);
}
.input::placeholder { color: var(--clr-text-dim); }
.input:hover { background: rgba(255,255,255,0.08); }
.input:focus {
  outline: none;
  border-color: var(--clr-accent);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(160, 184, 152, 0.18);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--clr-black);
  border-top: 1px solid var(--clr-border-lt);
  padding: 4rem clamp(1.25rem, 5vw, 3rem) 2rem;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--clr-border-lt);
  margin-bottom: 2rem;
}
.footer__logo {
  display: block;
  margin-bottom: 1.25rem;
}
.footer__logo img {
  height: 32px;
  width: auto;
}
.footer__tagline {
  font-size: 0.825rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 400;
  max-width: 280px;
}
.footer__socials {
  display: flex;
  gap: 0.75rem;
}
.footer__social {
  width: 36px;
  height: 36px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  transition: border-color var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease);
}
.footer__social:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  transform: translateY(-2px);
}
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }

.footer__col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col ul li a {
  font-size: 0.825rem;
  font-weight: 400;
  color: var(--clr-text-muted);
  transition: color 0.2s;
}
.footer__col ul li a:hover { color: var(--clr-white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 0.75rem;
  color: var(--clr-text-dim);
  font-weight: 400;
}
.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer__bottom-links a {
  font-size: 0.75rem;
  color: var(--clr-text-dim);
  transition: color 0.2s;
}
.footer__bottom-links a:hover { color: var(--clr-text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
