/* ============================================================
   COMPONENTS.CSS — Nav · Footer · Buttons · Section Label ·
                    Marquee · Stats Bar · Video Block
   Sauce Marley — James Guidry Personal Brand Site
   ============================================================ */

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--pad-nav);
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-decoration: none;
  flex-shrink: 0;
}

/* Desktop links (hidden on mobile by default) */
.nav-links {
  display: none;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color var(--transition-base);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover {
  color: var(--gold);
}

/* Active nav link — gold underline */
.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

/* Hamburger button (visible on mobile) */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 102;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X when open */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

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

/* Mobile overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color var(--transition-base);
}

.nav-overlay a:hover,
.nav-overlay a.active {
  color: var(--gold);
}

/* Show desktop links on wider screens */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-hamburger {
    display: none;
  }

  .nav-overlay {
    display: none;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-dark);
  border-top: var(--border-gold-faint);
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  opacity: 0.5;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity var(--transition-base), color var(--transition-base);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold);
}

@media (min-width: 768px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 2.5rem 3rem;
    text-align: left;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gold {
  padding: 0.75rem 2rem;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition-base), transform 0.15s ease;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 240, 232, 0.3);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Left-aligned variant — hides right line */
.section-label--left {
  justify-content: flex-start;
}

.section-label--left::after {
  display: none;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section {
  background: var(--gold);
  overflow: hidden;
  padding: 0.9rem 0;
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}

.marquee-track {
  display: flex;
  animation: marquee 18s linear infinite;
  white-space: nowrap;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--black);
  padding-right: 3rem;
  flex-shrink: 0;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-section {
  background: var(--gray-dark);
  border-bottom: var(--border-gold-faint);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(201, 168, 76, 0.12);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.stat-item:nth-child(2n) {
  border-right: none;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  line-height: 1;
}

.stat-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--cream-dim);
  margin-top: 0.25rem;
  letter-spacing: 0.1em;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-item:nth-child(2n) {
    border-right: 1px solid rgba(201, 168, 76, 0.12);
  }

  .stat-item:nth-child(3n) {
    border-right: none;
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .stat-item {
    border-bottom: none;
  }

  .stat-item:nth-child(3n) {
    border-right: 1px solid rgba(201, 168, 76, 0.12);
  }

  .stat-item:last-child {
    border-right: none;
  }
}

/* ============================================================
   VIDEO BLOCK
   ============================================================ */
.video-frame {
  position: relative;
  max-width: var(--max-video);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--gray-dark);
  border: var(--border-gold);
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.play-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.7);
  transition: background var(--transition-base), transform var(--transition-base);
}

.play-circle:hover {
  background: var(--gold);
  transform: scale(1.08);
}

.play-circle:hover .play-icon {
  color: var(--black);
}

.play-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-left: 4px;
  transition: color var(--transition-base);
}

.video-caption {
  margin-top: 1.5rem;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1rem;
  color: var(--cream-dim);
}

/* ============================================================
   PAGE HERO (shared across inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.25rem 4rem;
  overflow: hidden;
  background: var(--black);
  text-align: center;
}

.page-hero--md {
  min-height: 40vh;
}

.page-hero--lg {
  min-height: 60vh;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.9) 80%);
  z-index: 1;
}

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

.page-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 0.9;
}

.page-hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 0 3rem 5rem;
  }
}
