/* ============================================================
   THE LEGEND GROUP — Design System
   Palette:  navy-950 #05070C | navy-900 #0A0E19 | charcoal-800 #12161F
             royal-600 #1B3B8C | electric-500 #3B6EF5 | silver-300 #C8CEDA
   Type:     Display — 'Fraunces' (editorial serif, used sparingly)
             Body/UI — 'Inter' (functional grotesk)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy-950: #05070c;
  --navy-900: #0a0e19;
  --navy-850: #0e1220;
  --charcoal-800: #12161f;
  --charcoal-700: #1a2030;
  --royal-600: #6e2224;   /* deep brand maroon (from logo) */
  --royal-500: #8b2b2d;   /* brand maroon */
  --electric-500: #ee7a01; /* brand orange (from logo) */
  --electric-400: #f59433; /* lighter brand orange */
  --silver-300: #c8ceda;
  --silver-100: #eef1f6;
  --white: #f7f9fc;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-legend: cubic-bezier(0.16, 1, 0.3, 1);
}

* { scrollbar-width: thin; scrollbar-color: var(--electric-500) var(--navy-900); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--royal-500), var(--electric-500)); border-radius: 999px; }

html { background: var(--navy-950); }

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

.font-display { font-family: var(--font-display); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--electric-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
}

.glass-strong {
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ---------- Gradient text / accents ---------- */
.text-gradient {
  background: linear-gradient(120deg, var(--silver-100) 10%, var(--electric-400) 55%, var(--royal-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-legend-radial {
  background:
    radial-gradient(circle at 15% 0%, rgba(59,110,245,0.18), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(27,59,140,0.22), transparent 40%),
    var(--navy-950);
}

.bg-legend-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------- Nav ---------- */
#site-nav {
  transition: background-color .5s var(--ease-legend), border-color .5s var(--ease-legend), padding .4s var(--ease-legend);
}
#site-nav.nav-scrolled {
  background: rgba(5,7,12,0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--electric-400);
  transition: width .35s var(--ease-legend);
}
.nav-link:hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 2rem;
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: .02em;
  color: var(--navy-950);
  background: linear-gradient(120deg, var(--white), var(--silver-100));
  border-radius: 999px;
  overflow: hidden;
  transition: transform .45s var(--ease-legend), box-shadow .45s var(--ease-legend);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -12px rgba(59,110,245,0.55);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.9rem;
  font-weight: 500;
  font-size: .875rem;
  color: var(--silver-100);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  transition: border-color .4s var(--ease-legend), background-color .4s var(--ease-legend);
}
.btn-outline:hover { border-color: var(--electric-400); background: rgba(59,110,245,0.08); }

/* ---------- Hero canvas ---------- */
#hero-canvas { position: absolute; inset: 0; z-index: 0; }

/* ---------- Business cards ---------- */
.biz-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform .6s var(--ease-legend);
}
.biz-card:hover { transform: translateY(-6px); }
.biz-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 30%, rgba(5,7,12,0.94) 100%);
  z-index: 1;
  transition: opacity .5s var(--ease-legend);
}
.biz-card img { transition: transform 1.1s var(--ease-legend); }
.biz-card:hover img { transform: scale(1.08); }

/* ---------- Counters ---------- */
.counter { font-variant-numeric: tabular-nums; }

/* ---------- Marquee ---------- */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Timeline ---------- */
.timeline-line {
  background: linear-gradient(180deg, transparent, var(--electric-500) 15%, var(--royal-500) 85%, transparent);
}

/* ---------- Reveal utility (set by GSAP) ---------- */
.reveal { opacity: 0; transform: translateY(36px); }

/* ---------- Floating orbs (ambient) ---------- */
.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: .35;
  pointer-events: none;
}

/* ---------- Section label ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--electric-400);
}

/* ---------- Testimonial / Swiper tweaks ---------- */
.swiper-pagination-bullet { background: var(--silver-300) !important; opacity: .4 !important; }
.swiper-pagination-bullet-active { opacity: 1 !important; background: var(--electric-400) !important; }
