/* ===========================
   FORGE FITNESS — CLASSES CSS
   Vibrant High-Energy · Color-Coded
   =========================== */

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

:root {
  --black: #050505;
  --dark: #0e0e0e;
  --dark-2: #161616;
  --white: #f8f6f2;
  --white-muted: rgba(248,246,242,0.55);
  --accent: #e63946;
  --accent-2: #f4a261;
  --green: #2a9d8f;
  --blue: #1d6fa4;
  --purple: #7b2d8b;
  --font-display: 'Bebas Neue', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: var(--font-body); font-weight: 300; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ——— NAVBAR ——— */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 40px; height: 80px; display: flex; align-items: center; transition: background 0.4s; }
.navbar.scrolled { background: rgba(5,5,5,0.96); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-inner { display: flex; align-items: center; width: 100%; gap: 40px; }
.nav-logo { font-family: var(--font-display); font-size: 1.8rem; color: var(--white); text-decoration: none; flex-shrink: 0; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 32px; margin: 0 auto; }
.nav-links a { font-family: var(--font-condensed); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-muted); text-decoration: none; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { font-family: var(--font-condensed); font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; background: var(--accent); color: var(--white); text-decoration: none; padding: 10px 24px; border-radius: 3px; transition: background 0.3s; flex-shrink: 0; }
.nav-cta:hover { background: #c1121f; }
.hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
.mobile-menu { display: none; position: fixed; top: 80px; left: 0; right: 0; background: rgba(5,5,5,0.98); backdrop-filter: blur(20px); padding: 30px 40px; border-bottom: 1px solid rgba(255,255,255,0.06); transform: translateY(-20px); opacity: 0; pointer-events: none; transition: all 0.3s; }
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li { margin-bottom: 18px; }
.mobile-menu ul li a { font-family: var(--font-condensed); font-size: 1.2rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-muted); text-decoration: none; }
.mobile-cta { display: inline-block; margin-top: 12px; font-family: var(--font-condensed); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); text-decoration: none; }

/* ——— CLASSES HERO ——— */
.classes-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 160px 60px 0;
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.classes-hero::before {
  content: 'CLASSES';
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  color: rgba(255,255,255,0.025);
  pointer-events: none;
  white-space: nowrap;
  animation: subtleDrift 8s ease-in-out infinite alternate;
}
@keyframes subtleDrift { from { transform: translateY(-50%) translateX(0); } to { transform: translateY(-50%) translateX(20px); } }

.ch-inner { position: relative; z-index: 2; max-width: 800px; }
.hero-eyebrow {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
  animation: fadeInUp 0.7s ease both;
}
.ch-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 0.92;
  color: var(--white);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.outline {
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
}
.hero-sub {
  font-size: 1rem;
  color: var(--white-muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ——— FILTERS ——— */
.ch-filters {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white-muted);
  border: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 20px 32px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}
.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.filter-btn:hover, .filter-btn.active { color: var(--white); }
.filter-btn.active::after { transform: scaleX(1); }

/* ——— CLASS CARDS GRID ——— */
.classes-grid-section { padding: 80px 40px 120px; }
.cg-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.class-card {
  display: flex;
  flex-direction: column;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.5s;
  opacity: 0;
  transform: translateY(30px);
}
.class-card.visible { opacity: 1; transform: translateY(0); }
.class-card:hover { transform: translateY(-8px) !important; border-color: rgba(230,57,70,0.3); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }

.cc-image {
  height: 220px;
  position: relative;
  flex-shrink: 0;
  transition: filter 0.4s;
}
.class-card:hover .cc-image { filter: brightness(1.1); }
.cc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}
.cc-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-condensed);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 2px;
}
.cc-badge.new { background: #2a9d8f; }
.cc-intensity {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 4px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.dot.red { background: var(--accent); }
.dot.blue { background: var(--blue); }
.dot.orange { background: var(--accent-2); }
.dot.green { background: var(--green); }
.dot.purple { background: var(--purple); }
.dot.empty { background: rgba(255,255,255,0.2); }

.cc-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cc-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.tag {
  font-family: var(--font-condensed);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white-muted);
  padding: 3px 10px;
  border-radius: 2px;
}
.cc-body h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1;
}
.cc-body > p {
  font-size: 0.88rem;
  color: var(--white-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.cc-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cc-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
}
.cc-meta span i { color: var(--accent); font-size: 0.7rem; }

.cc-schedule { margin-bottom: 24px; }
.schedule-title {
  font-family: var(--font-condensed);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 10px;
}
.schedule-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.schedule-pills span {
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white-muted);
  padding: 4px 10px;
  border-radius: 2px;
}

.class-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.3s;
}
.class-cta:hover { gap: 14px; }

/* ——— SECTION EYEBROW ——— */
.section-eyebrow {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

/* ——— SCHEDULE TABLE ——— */
.schedule-section { padding: 80px 40px 120px; background: var(--dark); }
.ss-inner { max-width: 1200px; margin: 0 auto; }
.ss-header { margin-bottom: 48px; }
.ss-header h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); color: var(--white); }
.schedule-table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; }
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}
.schedule-table th, .schedule-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.05);
}
.schedule-table th {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-muted);
  background: rgba(255,255,255,0.03);
}
.time-col {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--white-muted);
  white-space: nowrap;
  min-width: 80px;
}
.sched-cell {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 3px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
}
.sched-cell:hover { opacity: 0.75; }
.sched-cell.hiit { background: rgba(230,57,70,0.2); color: #f77; border-left: 2px solid var(--accent); }
.sched-cell.strength { background: rgba(29,111,164,0.2); color: #7bb8e8; border-left: 2px solid var(--blue); }
.sched-cell.yoga { background: rgba(42,157,143,0.2); color: #5ed0c4; border-left: 2px solid var(--green); }
.sched-cell.cycle { background: rgba(123,45,139,0.2); color: #c07dd4; border-left: 2px solid var(--purple); }
.sched-cell.pilates { background: rgba(42,157,143,0.15); color: #5ed0c4; border-left: 2px solid var(--green); }
.sched-cell.boxing { background: rgba(244,162,97,0.2); color: #f4b87a; border-left: 2px solid var(--accent-2); }

/* ——— CLASSES CTA ——— */
.classes-cta {
  padding: 120px 40px;
  text-align: center;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.classes-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(230,57,70,0.08) 0%, transparent 60%);
}
.ccta-inner { position: relative; max-width: 600px; margin: 0 auto; }
.ccta-inner h2 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem); color: var(--white); margin-bottom: 16px; }
.ccta-inner p { color: var(--white-muted); margin-bottom: 40px; font-size: 1rem; line-height: 1.6; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 3px;
  transition: all 0.3s;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: transparent; color: var(--accent); }

/* ——— FOOTER ——— */
.footer { background: #050505; border-top: 1px solid rgba(255,255,255,0.06); padding: 80px 40px 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 60px; padding-bottom: 60px; }
.footer-logo { font-family: var(--font-display); font-size: 2rem; color: var(--white); margin-bottom: 16px; }
.footer-logo span { color: var(--accent); }
.footer-brand p { color: var(--white-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.1); border-radius: 3px; display: flex; align-items: center; justify-content: center; color: var(--white-muted); font-size: 0.85rem; text-decoration: none; transition: all 0.3s; }
.footer-socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-links h4, .footer-contact h4 { font-family: var(--font-condensed); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: var(--white-muted); text-decoration: none; font-size: 0.88rem; transition: color 0.3s; }
.footer-links ul li a:hover { color: var(--accent); }
.footer-contact p { display: flex; align-items: flex-start; gap: 12px; color: var(--white-muted); font-size: 0.86rem; line-height: 1.5; margin-bottom: 12px; }
.footer-contact p i { color: var(--accent); font-size: 0.8rem; margin-top: 2px; flex-shrink: 0; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.25); }

/* ——— RESPONSIVE ——— */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .cg-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .classes-hero { padding: 140px 24px 0; }
  .cg-inner { grid-template-columns: 1fr; }
  .classes-grid-section, .schedule-section, .classes-cta { padding: 60px 20px; }
  .ch-filters { flex-wrap: wrap; }
  .filter-btn { padding: 16px 20px; font-size: 0.72rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer { padding: 60px 20px 0; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
