/* ═══════════════════════════════════════════════════════════════
   IRON FORGE — Gym Template
   Palette: Black bg · Dark-gray surface · Red + Orange accents
   Font: Barlow Condensed (headings) + Inter (body)
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0a0a0a;
  --bg-2:       #111111;
  --surface:    #1a1a1a;
  --surface-2:  #222222;
  --border:     #333333;
  --text:       #f5f5f5;
  --text-muted: #888888;
  --red:        #ef4444;
  --orange:     #f97316;
  --red-glow:   rgba(239,68,68,.3);
  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'Inter', sans-serif;
  --radius:     8px;
  --radius-lg:  14px;
  --ease:       cubic-bezier(.22,1,.36,1);
  --tr:         .3s var(--ease);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
select { cursor: pointer; }

.if-red    { color: var(--red); }
.if-orange { color: var(--orange); }

/* ── PROGRESS BAR ────────────────────────────────────────────── */
.if-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(to right, var(--red), var(--orange));
  width: 0%; transition: width .1s linear;
}

/* ── CONTAINER ───────────────────────────────────────────────── */
.if-container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.5rem; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.if-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .7rem 1.6rem;
  border-radius: var(--radius); font-weight: 700;
  font-family: var(--font-head); letter-spacing: .06em;
  font-size: 1rem; text-transform: uppercase;
  transition: var(--tr); white-space: nowrap;
}
.if-btn--cta {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}
.if-btn--cta:hover { filter: brightness(1.12); transform: translateY(-2px); }
.if-btn--ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.if-btn--ghost:hover { border-color: var(--red); color: var(--red); }
.if-btn--wide { width: 100%; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
.if-label {
  font-family: var(--font-head); font-size: .8rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red); margin-bottom: .5rem;
}
.if-section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; letter-spacing: .02em;
  line-height: 1.05; text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* ── REVEAL ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── HEADER ──────────────────────────────────────────────────── */
.if-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.if-header.scrolled { border-bottom-color: var(--border); }
.if-header__inner {
  display: flex; align-items: center; gap: 2rem;
  max-width: 1160px; margin-inline: auto; padding: .9rem 1.5rem;
}
.if-logo {
  font-family: var(--font-head); font-size: 1.3rem; letter-spacing: .08em;
  display: flex; align-items: center; gap: .5rem; flex-shrink: 0; color: var(--text);
}
.if-logo b { color: var(--red); }
.if-nav { margin-left: auto; }
.if-nav ul { display: flex; gap: 2rem; }
.if-nav a { font-family: var(--font-head); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); transition: color .2s; }
.if-nav a:hover { color: var(--red); }

.if-burger { display: none; flex-direction: column; gap: 5px; margin-left: auto; padding: 4px; }
.if-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--tr); }
.if-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.if-burger.active span:nth-child(2) { opacity: 0; }
.if-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.if-drawer {
  position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: var(--bg-2); padding: 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 2rem;
  transform: translateX(-100%); transition: transform .35s var(--ease); z-index: 850;
}
.if-drawer.open { transform: none; }
.if-drawer ul { display: flex; flex-direction: column; gap: 1.25rem; }
.if-drawer__link { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.if-drawer__link:hover { color: var(--red); }
.if-backdrop { display: none; position: fixed; inset: 0; z-index: 800; background: rgba(0,0,0,.6); }
.if-backdrop.show { display: block; }

/* ── HERO ────────────────────────────────────────────────────── */
.if-hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem 0 5rem;
  background: var(--bg);
  overflow: hidden;
}
.if-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(239,68,68,.07) 0%, transparent 70%),
    repeating-linear-gradient(
      -45deg,
      transparent 0, transparent 40px,
      rgba(255,255,255,.02) 40px, rgba(255,255,255,.02) 41px
    );
}
.if-hero__inner { position: relative; z-index: 1; }
.if-hero__content { max-width: 680px; }
.if-hero__eyebrow {
  font-family: var(--font-head); font-size: 1rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--red); margin-bottom: 1rem;
}
.if-hero__title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900; text-transform: uppercase;
  line-height: .95; letter-spacing: -.01em;
  margin-bottom: 1.5rem;
}
.if-hero__sub { color: var(--text-muted); max-width: 480px; font-size: 1.05rem; margin-bottom: 2.5rem; }
.if-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.if-hero__stats { display: flex; gap: 3rem; }
.if-hstat { display: flex; flex-direction: column; }
.if-hstat__val {
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 900;
  line-height: 1; color: var(--red);
}
.if-hstat__val + span { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--orange); }
.if-hstat__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-top: .25rem; }

.if-hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 2px; height: 50px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.3;transform:translateX(-50%) scaleY(.6)} 50%{opacity:1;transform:translateX(-50%) scaleY(1)} }

/* ── MARQUEE ─────────────────────────────────────────────────── */
.if-marquee {
  background: var(--red); overflow: hidden; padding: .65rem 0;
}
.if-marquee__track {
  display: flex; gap: 2rem; white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.if-marquee__track span {
  font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #fff; flex-shrink: 0;
}
.if-sep { opacity: .5; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── PROGRAMS ────────────────────────────────────────────────── */
.if-programs { padding: 6rem 0; }
.if-programs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.if-program {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: var(--tr);
}
.if-program:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.if-program__icon { font-size: 2rem; }
.if-program h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.if-program p { font-size: .9rem; color: var(--text-muted); flex: 1; }
.if-program__perks { display: flex; flex-direction: column; gap: .4rem; }
.if-program__perks li { font-size: .82rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.if-program__perks li::before { content: '→'; position: absolute; left: 0; color: var(--red); }

/* ── TRAINERS ────────────────────────────────────────────────── */
.if-trainers { padding: 6rem 0; background: var(--bg-2); }
.if-trainers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.if-trainer {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--tr);
}
.if-trainer:hover { border-color: var(--red); transform: translateY(-4px); }
.if-trainer__avatar {
  height: 200px;
  background-size: cover; background-position: center top;
}
.if-trainer__avatar--1 { background: linear-gradient(160deg, #1c1c1c 0%, #3b0000 100%); }
.if-trainer__avatar--2 { background: linear-gradient(160deg, #1c1c1c 0%, #431407 100%); }
.if-trainer__avatar--3 { background: linear-gradient(160deg, #1c1c1c 0%, #1c1917 100%); }
.if-trainer__avatar--4 { background: linear-gradient(160deg, #1c1c1c 0%, #0a1628 100%); }
.if-trainer__body { padding: 1.25rem; }
.if-trainer__body h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; text-transform: uppercase; }
.if-trainer__role { font-size: .8rem; color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.if-trainer__body p { font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem; }
.if-trainer__certs { display: flex; gap: .4rem; flex-wrap: wrap; }
.if-trainer__certs span { background: var(--surface-2); color: var(--text-muted); font-size: .72rem; font-weight: 600; padding: .2rem .5rem; border-radius: 4px; border: 1px solid var(--border); }

/* ── SCHEDULE ────────────────────────────────────────────────── */
.if-schedule { padding: 6rem 0; }
.if-schedule__tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.if-tab {
  font-family: var(--font-head); font-size: .9rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--text-muted);
  transition: var(--tr);
}
.if-tab:hover, .if-tab.active { background: var(--red); border-color: var(--red); color: #fff; }

.if-schedule__panel { display: flex; flex-direction: column; gap: 1px; }
.if-class-row {
  display: grid; grid-template-columns: 100px 1fr auto;
  align-items: center; gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
  transition: var(--tr);
}
.if-class-row:hover { background: var(--surface-2); }
.if-class-row__time { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--red); }
.if-class-row__info h4 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; text-transform: uppercase; }
.if-class-row__info p { font-size: .8rem; color: var(--text-muted); }
.if-class-row__spots { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.if-class-row__spots.full { color: var(--red); }

/* ── PRICING ─────────────────────────────────────────────────── */
.if-pricing { padding: 6rem 0; background: var(--bg-2); }
.if-pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.if-plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  position: relative; overflow: hidden;
}
.if-plan--featured { border-color: var(--red); box-shadow: 0 0 30px var(--red-glow); }
.if-plan__badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--red); color: #fff;
  font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .7rem; border-radius: 99px;
}
.if-plan__header h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.if-plan__price { font-family: var(--font-head); font-size: 3rem; font-weight: 900; line-height: 1; }
.if-plan__price span { font-size: 1.5rem; vertical-align: top; margin-top: .4rem; display: inline-block; color: var(--red); }
.if-plan__price small { font-size: 1rem; color: var(--text-muted); }
.if-plan__features { display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.if-plan__features li { font-size: .9rem; color: var(--text-muted); }
.if-plan__features li:first-child { color: var(--text); }

/* ── CONTACT ─────────────────────────────────────────────────── */
.if-contact { padding: 6rem 0; }
.if-contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.if-contact__info .if-section-title { margin-bottom: 1.5rem; }
.if-contact__details { display: flex; flex-direction: column; gap: .85rem; }
.if-contact__details li { font-size: .95rem; color: var(--text-muted); }

.if-form { display: flex; flex-direction: column; gap: 1.25rem; }
.if-form__group { display: flex; flex-direction: column; gap: .4rem; }
.if-form__group label { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-family: var(--font-head); }
.if-form__group input,
.if-form__group select,
.if-form__group textarea {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: .9rem;
  border-radius: var(--radius); padding: .75rem 1rem;
  transition: border-color .2s; resize: vertical;
}
.if-form__group select { appearance: none; }
.if-form__group input:focus,
.if-form__group select:focus,
.if-form__group textarea:focus { outline: none; border-color: var(--red); }
.if-form__ok { font-size: .9rem; color: var(--red); min-height: 1.2em; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.if-footer { padding: 2rem 0; border-top: 1px solid var(--border); background: var(--bg-2); }
.if-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.if-footer__logo { font-family: var(--font-head); font-size: 1.2rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.if-footer__logo b { color: var(--red); }
.if-footer__copy { font-size: .82rem; color: var(--text-muted); }
.if-footer__nav { display: flex; gap: 1.5rem; }
.if-footer__nav a { font-size: .82rem; color: var(--text-muted); }
.if-footer__nav a:hover { color: var(--red); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .if-nav, .if-header .if-btn--cta { display: none; }
  .if-burger { display: flex; }
  .if-programs__grid { grid-template-columns: 1fr 1fr; }
  .if-trainers__grid { grid-template-columns: 1fr 1fr; }
  .if-pricing__grid { grid-template-columns: 1fr; max-width: 420px; }
  .if-contact__inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .if-programs__grid { grid-template-columns: 1fr; }
  .if-trainers__grid { grid-template-columns: 1fr; }
  .if-hero__stats { gap: 1.5rem; }
  .if-class-row { grid-template-columns: 80px 1fr; }
  .if-class-row__spots { display: none; }
  .if-footer__inner { flex-direction: column; text-align: center; }
}
