/* === IronForge Gym — Design System === */

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

:root {
  --black: #0A0A0A;
  --black-mid: #111111;
  --black-light: #1A1A1A;
  --neon: #E8FF00;
  --neon-dim: #C8DC00;
  --white: #FFFFFF;
  --gray: #888888;
  --gray-light: #CCCCCC;
  --red: #FF3B3B;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

/* --- Announcement Bar --- */
.announcement-bar {
  background: var(--neon);
  color: var(--black);
  text-align: center;
  padding: 10px 48px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-heading);
  position: relative;
  z-index: 100;
}
.announcement-item { display: none; }
.announcement-item.active { display: inline; }
.announcement-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--black);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
}

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 255, 0, 0.12);
  transition: var(--transition);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.logo span { color: var(--neon); }

.nav-menu { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  font-weight: 600;
}
.nav-link:hover, .nav-link.active { color: var(--neon); }

.nav-cta {
  padding: 9px 22px;
  background: var(--neon);
  color: var(--black);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--neon-dim); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px;
}
.mobile-menu .nav-link { font-size: 1.4rem; color: var(--white); }
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* --- Buttons --- */
.btn-primary {
  padding: 14px 32px;
  background: var(--neon);
  color: var(--black);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--neon-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,255,0,0.3);
}
.btn-outline {
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
  transition: border-color var(--transition), color var(--transition);
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--neon); color: var(--neon); }

/* --- Hero --- */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1600&q=80&fm=webp') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.7) 60%, rgba(232,255,0,0.05) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--neon);
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.92;
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 span { color: var(--neon); display: block; }
.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(232,255,0,0.6), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--neon);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 0 24px;
  border-right: 1px solid rgba(10,10,10,0.2);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.6);
  margin-top: 4px;
  font-weight: 700;
}

/* --- Programs Section --- */
.programs { background: var(--black-mid); }
.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-header { margin-bottom: 60px; }
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.section-header h2 span { color: var(--neon); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.program-card {
  position: relative;
  height: 420px;
  overflow: hidden;
  cursor: pointer;
}
.program-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s;
  filter: brightness(0.55) saturate(0.7);
}
.program-card:hover img { transform: scale(1.06); filter: brightness(0.4) saturate(0.5); }
.program-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  background: linear-gradient(transparent 40%, rgba(10,10,10,0.95) 100%);
}
.program-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  font-weight: 700;
  margin-bottom: 8px;
}
.program-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.program-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.program-card:hover .program-desc { max-height: 80px; }
.program-arrow {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.program-card:hover .program-arrow { opacity: 1; transform: translateY(0); }

/* --- Trainers Preview --- */
.trainers-preview { background: var(--black); }
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trainer-card {
  background: var(--black-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(232,255,0,0.08);
  transition: border-color var(--transition), transform var(--transition);
}
.trainer-card:hover {
  border-color: rgba(232,255,0,0.35);
  transform: translateY(-4px);
}
.trainer-img {
  height: 280px;
  overflow: hidden;
}
.trainer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  filter: grayscale(30%);
}
.trainer-card:hover .trainer-img img { transform: scale(1.04); filter: grayscale(0%); }
.trainer-info { padding: 20px; }
.trainer-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}
.trainer-role {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon);
  font-weight: 700;
  margin-bottom: 10px;
}
.trainer-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.trainer-tag {
  font-size: 0.65rem;
  padding: 3px 8px;
  background: rgba(232,255,0,0.08);
  border: 1px solid rgba(232,255,0,0.2);
  color: rgba(232,255,0,0.7);
  border-radius: 4px;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* --- Testimonials --- */
.testimonials { background: var(--black-mid); padding: 96px 0; }
.testimonial-carousel { overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-item { min-width: 100%; padding: 0 40px; text-align: center; }
.testimonial-stars { font-size: 1.1rem; color: var(--neon); margin-bottom: 20px; }
.testimonial-text {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.4;
  max-width: 760px;
  margin: 0 auto 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.testimonial-author {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon);
  font-weight: 700;
}
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(232,255,0,0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.testimonial-dot.active { background: var(--neon); transform: scale(1.3); }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--black-light);
  border-top: 3px solid var(--neon);
  border-bottom: 3px solid var(--neon);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: 'IRON';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 20vw;
  font-weight: 900;
  color: rgba(232,255,0,0.03);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.05em;
}
.cta-banner-content { position: relative; z-index: 2; }
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-banner h2 span { color: var(--neon); }
.cta-banner p { color: rgba(255,255,255,0.55); margin-bottom: 36px; font-size: 1rem; }

/* --- Footer --- */
footer {
  background: var(--black-mid);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(232,255,0,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-logo span { color: var(--neon); }
.footer-desc { font-size: 0.82rem; color: var(--gray); line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(232,255,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--white);
  transition: all var(--transition);
}
.social-link:hover { background: var(--neon); border-color: var(--neon); color: var(--black); }
.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.85rem; color: var(--gray); transition: color var(--transition); }
.footer-links a:hover { color: var(--neon); }
.footer-hours { font-size: 0.82rem; color: var(--gray); line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(232,255,0,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray);
}

/* --- WhatsApp FAB --- */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}
.whatsapp-fab.visible { opacity: 1; transform: scale(1); }
.whatsapp-fab:hover { transform: scale(1.1); }

/* --- Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .trainers-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .programs-grid { grid-template-columns: 1fr; }
  .trainers-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 3.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === FAZ 3: JS-Driven States === */

/* Mobile menu open state */
.mobile-menu.open { display: flex; }

/* Sticky header scrolled state */
header { transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; }
header.scrolled { background: rgba(10,10,10,0.98); box-shadow: 0 2px 20px rgba(0,0,0,0.8); }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightboxClose {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--neon);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}
#lightboxImg {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border: 2px solid var(--neon);
}
