/* Header */
#site-header {
  background: transparent;
  transition: background-color var(--transition-base) ease, box-shadow var(--transition-base) ease;
  padding-block: var(--space-2);
}

#site-header .navbar-brand,
#site-header .nav-link {
  color: var(--color-white);
  transition: color var(--transition-base) ease;
}

#site-header.header--scrolled {
  background-color: var(--color-white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding-block: var(--space-1);
}

#site-header.header--scrolled .navbar-brand,
#site-header.header--scrolled .nav-link {
  color: var(--color-charcoal);
}

/* Gold underline indicates the active section without relying on gold
   as the text color, which fails contrast once the header goes solid white. */
#site-header .nav-link.active {
  position: relative;
}

#site-header .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: var(--color-gold);
  border-radius: 2px;
}

#site-header.header--scrolled .navbar-toggler {
  filter: none;
}

/* Brand wordmark's gold accent only reads safely against the dark hero;
   once the header is solid white, fall back to charcoal for contrast. */
#site-header.header--scrolled .navbar-brand .text-gold {
  color: var(--color-charcoal);
}

/* Two-line logo wordmark text colors */
/* Default (dark/transparent navbar): gold + white */
#site-header .logo-name {
  color: var(--color-gold);
}
#site-header .logo-sub {
  color: rgba(255, 255, 255, 0.78);
}

/* Scrolled (white navbar): gold stays gold, sub goes dark */
#site-header.header--scrolled .logo-name {
  color: var(--color-gold);
}
#site-header.header--scrolled .logo-sub {
  color: var(--color-charcoal);
}


/* ── Hero – Gen-Z Cinematic Video Banner ── */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
  background-color: var(--color-charcoal);
}

/* Video Background */
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Multi-layer gradient overlays for cinematic depth */
#hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 15, 20, 0.82) 0%,
    rgba(26, 26, 26, 0.55) 55%,
    rgba(26, 26, 26, 0.25) 100%
  );
  z-index: 1;
}

#hero .hero-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, transparent 100%);
  z-index: 1;
}

#hero .hero-content {
  position: relative;
  z-index: 2;
  padding-block: calc(var(--space-10) + 20px);
}

/* Eyebrow pill */
.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: var(--color-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: var(--space-2);
  backdrop-filter: blur(6px);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-gold);
  animation: pill-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pill-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Headline */
.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.hero-headline-accent {
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtext {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  line-height: 1.7;
}

/* CTA primary shimmer effect */
.hero-cta-primary {
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  padding: 0.85rem 2rem;
}
.hero-cta-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255,255,255,0.18);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.hero-cta-primary:hover::after { left: 130%; }

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero-stat-pill {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
}

/* Right side – Real Team photo card */
.hero-team-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 193, 7, 0.35);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,193,7,0.1);
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.hero-team-card:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.hero-team-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.hero-team-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.92) 0%, transparent 100%);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1.5rem 1rem 1rem;
  text-align: center;
}

/* Scroll indicator with bounce */
#hero .scroll-indicator {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  z-index: 2;
}

.scroll-bounce {
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.8; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* Page hero (inner pages) — smaller variant of #hero, carries a breadcrumb */
.page-hero {
  min-height: 42vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  background-size: cover;
  background-position: center;
  background-color: var(--color-charcoal);
  padding-block: calc(var(--space-8) + 72px) var(--space-6);
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.65) 0%, rgba(26, 26, 26, 0.88) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

/* Section rhythm */
section {
  padding-block: var(--space-8);
}

.section-heading {
  margin-bottom: var(--space-4);
}

/* Footer */
footer.site-footer {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding-block: var(--space-6) var(--space-3);
}

footer.site-footer a {
  color: var(--color-surface);
}

footer.site-footer a:hover {
  color: var(--color-gold);
}

footer.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
