/* ============================================
   IRON FORM — Awwwards-Level Brutalist Editorial Gym Design
   Black, Off-White & Electric Red
   ============================================ */
:root {
  --bg: #070707;
  --bg-elev: #111111;
  --bg-elev-2: #191919;
  --paper: #f4f4f4;
  --muted: #8b8b8b;
  --line: rgba(244, 244, 244, 0.12);
  --line-strong: rgba(244, 244, 244, 0.35);
  --accent: #ff1e38;
  --accent-soft: rgba(255, 30, 56, 0.12);
  --display: 'Bebas Neue', Impact, sans-serif;
  --sans: 'Cairo', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.4s var(--ease);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--bg); color: var(--paper); line-height: 1.6; overflow-x: hidden; }
body.nav-open { overflow: hidden; }

/* Language typography */
body.lang-ar { font-family: 'Cairo', sans-serif; }
body.lang-en { font-family: system-ui, -apple-system, 'Cairo', sans-serif; }
body.lang-he { font-family: 'Noto Sans Hebrew', system-ui, sans-serif; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; background: transparent; border: none; outline: none; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 1px solid var(--accent); outline-offset: 3px;
}

/* Film Grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 900; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.kicker { display: inline-flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.kicker-line { width: 32px; height: 1px; background: var(--accent); flex-shrink: 0; }

.section-title {
  font-family: var(--display); font-size: clamp(56px, 8.5vw, 130px); line-height: 0.88;
  letter-spacing: 0.02em; font-weight: 400; margin-bottom: 24px; text-transform: uppercase;
}
.title-stroke { color: transparent; -webkit-text-stroke: 1px rgba(244,244,244,0.85); text-stroke: 1px rgba(244,244,244,0.85); }
.accent-red { color: var(--accent); }

/* Buttons */
.btn-solid {
  display: inline-flex; align-items: center; gap: 16px; padding: 18px 34px;
  background: var(--accent); color: var(--paper); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; border: 1px solid var(--accent); transition: var(--transition);
  text-transform: uppercase; cursor: pointer;
}
.btn-solid:hover { background: transparent; color: var(--paper); }
.btn-solid svg { transition: transform 0.4s var(--ease); }
.btn-solid:hover svg { transform: translateX(6px); }
[dir="rtl"] .btn-solid:hover svg { transform: translateX(-6px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 14px; padding: 16px 28px;
  background: transparent; color: var(--paper); border: 1px solid var(--line-strong);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: var(--transition);
}
.btn-outline:hover { background: var(--paper); color: var(--bg); border-color: var(--paper); }

/* HEADER */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 500;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 24px 56px; color: var(--paper); background: rgba(7, 7, 7, 0.82);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
  transition: padding 0.4s ease, background-color 0.4s ease;
}
.site-header.scrolled { padding: 16px 56px; background: rgba(7, 7, 7, 0.96); }

.brand { display: flex; flex-direction: column; gap: 2px; z-index: 5; }
.brand-mark { font-family: var(--display); font-size: 34px; line-height: 0.9; letter-spacing: 0.06em; }
.brand-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em; color: var(--muted); }

.main-nav { display: flex; align-items: center; justify-content: center; gap: 36px; }
.nav-link { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; color: #bcbcbc; transition: color 0.3s ease; }
.nav-link:hover { color: var(--paper); }
.nav-num { font-family: var(--mono); font-size: 9px; color: var(--accent); letter-spacing: 0.1em; }

.lang-switcher { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; }
.lang-btn { padding: 4px 8px; color: var(--muted); transition: color 0.3s ease; }
.lang-btn.is-active { color: var(--accent); font-weight: 700; border-bottom: 1px solid var(--accent); }
.lang-sep { color: var(--muted); opacity: 0.5; }

.header-action { justify-self: end; }
.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; z-index: 5; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--paper); transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-toggle span:nth-child(2) { width: 16px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 160px 56px 80px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) contrast(1.15); transform: scale(1.02); transition: transform 1.2s var(--ease); }
.hero:hover .hero-img { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(7,7,7,0.35) 45%, rgba(7,7,7,0.8) 100%); }

.hero-content { position: relative; z-index: 2; max-width: 1000px; display: flex; flex-direction: column; gap: 24px; margin-bottom: 60px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.26em; color: var(--muted); text-transform: uppercase; }
.hero-title { font-family: var(--display); font-size: clamp(70px, 12vw, 160px); line-height: 0.85; letter-spacing: 0.02em; text-transform: uppercase; }
.hero-word { display: inline-block; }
.hero-word--outline { color: transparent; -webkit-text-stroke: 2px var(--paper); text-stroke: 2px var(--paper); margin-left: 12px; margin-right: 12px; }

.hero-lead { font-size: clamp(16px, 1.8vw, 21px); color: #cfcfcf; line-height: 1.6; max-width: 720px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 12px; }

.hero-ticker {
  position: relative; z-index: 2; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; gap: 36px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: var(--muted);
  text-transform: uppercase; overflow-x: auto; white-space: nowrap;
}
.tick-sep { color: var(--accent); }

/* SECTIONS GENERAL */
.section { padding: 140px 56px; max-width: var(--max); margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 80px; flex-wrap: wrap; }
.head-lead { max-width: 440px; font-size: 16px; color: var(--muted); line-height: 1.6; }

/* PHILOSOPHY */
.philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.phil-card { background: var(--bg-elev); border: 1px solid var(--line); padding: 48px 40px; display: flex; flex-direction: column; gap: 20px; transition: var(--transition); position: relative; }
.phil-card:hover { border-color: var(--line-strong); background: var(--bg-elev-2); transform: translateY(-4px); }
.phil-num { font-family: var(--mono); font-size: 14px; color: var(--accent); letter-spacing: 0.15em; }
.phil-heading { font-family: var(--display); font-size: 32px; letter-spacing: 0.04em; text-transform: uppercase; }
.phil-desc { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* PROGRAMS */
.programs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.program-card { background: var(--bg-elev); border: 1px solid var(--line); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; transition: var(--transition); position: relative; overflow: hidden; }
.program-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
[dir="rtl"] .program-card::before { transform-origin: right; }
.program-card:hover { border-color: var(--line-strong); background: var(--bg-elev-2); }
.program-card:hover::before { transform: scaleX(1); }
.program-top { display: flex; justify-content: space-between; align-items: flex-start; }
.program-index { font-family: var(--mono); font-size: 14px; color: var(--accent); letter-spacing: 0.14em; }
.program-time { font-family: var(--mono); font-size: 12px; color: var(--muted); background: rgba(255,255,255,0.06); padding: 6px 12px; }
.program-body { display: flex; flex-direction: column; gap: 16px; }
.program-name { font-family: var(--display); font-size: 38px; letter-spacing: 0.04em; text-transform: uppercase; }
.program-desc { font-size: 15px; color: #b5b5b5; line-height: 1.6; }

/* BENTO GRID */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 320px; gap: 24px; }
.bento-cell { background: var(--bg-elev); border: 1px solid var(--line); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.bento-tall { grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6) contrast(1.1); transition: transform 0.6s var(--ease), filter 0.4s ease; }
.bento-cell:hover img { transform: scale(1.04); filter: brightness(0.7) contrast(1.15); }
.bento-overlay { position: relative; z-index: 2; padding: 36px; background: linear-gradient(0deg, rgba(7,7,7,0.9) 0%, rgba(7,7,7,0.2) 70%, transparent 100%); display: flex; flex-direction: column; gap: 8px; }
.bento-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; }
.bento-heading { font-family: var(--display); font-size: 28px; letter-spacing: 0.03em; text-transform: uppercase; }

/* STRENGTH SHOWCASE */
.showcase { padding: 80px 56px 140px; }
.showcase-inner { background: var(--bg-elev); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; overflow: hidden; }
.showcase-media { position: relative; min-height: 540px; }
.showcase-media img { filter: brightness(0.7) contrast(1.15); }
.showcase-badge { position: absolute; bottom: 32px; left: 32px; background: var(--bg); border: 1px solid var(--accent); padding: 16px 24px; display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); }
[dir="rtl"] .showcase-badge { left: auto; right: 32px; }
.showcase-badge span { font-size: 10px; letter-spacing: 0.2em; color: var(--muted); }
.showcase-badge strong { font-family: var(--display); font-size: 32px; color: var(--accent); line-height: 1; }
.showcase-content { padding: 60px; display: flex; flex-direction: column; gap: 24px; }
.showcase-metrics { display: flex; gap: 48px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 32px; }
.metric-item { display: flex; flex-direction: column; gap: 6px; }
.metric-num { font-family: var(--display); font-size: 48px; color: var(--accent); line-height: 1; }
.metric-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }

/* COACHES */
.coaches-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.coach-card { background: var(--bg-elev); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.coach-card:hover { border-color: var(--line-strong); }
.coach-media { height: 460px; position: relative; overflow: hidden; }
.coach-media img { filter: grayscale(20%) contrast(1.1); transition: transform 0.6s var(--ease), filter 0.4s ease; }
.coach-card:hover .coach-media img { transform: scale(1.03); filter: grayscale(0%); }
.coach-content { padding: 40px; display: flex; flex-direction: column; gap: 20px; flex-grow: 1; justify-content: space-between; }
.coach-role { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.22em; text-transform: uppercase; }
.coach-name { font-family: var(--display); font-size: 40px; letter-spacing: 0.03em; text-transform: uppercase; }
.coach-bio { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* MEMBERSHIP SECTION */
.membership-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; background: var(--bg-elev); border: 1px solid var(--line); padding: 80px; }
.membership-info { display: flex; flex-direction: column; gap: 40px; }
.info-block { display: flex; flex-direction: column; gap: 12px; }
.info-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; }
.info-text { font-size: 16px; color: var(--paper); line-height: 1.6; }

.membership-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.form-control { width: 100%; padding: 16px 20px; background: var(--bg); border: 1px solid var(--line); color: var(--paper); font-size: 15px; transition: border-color 0.3s ease; }
.form-control:focus { border-color: var(--accent); }
select.form-control option { background: var(--bg-elev); color: var(--paper); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-error { font-size: 12px; color: var(--accent); display: none; }
.form-group.has-error .form-control { border-color: var(--accent); }
.form-group.has-error .form-error { display: block; }

.success-ticket { background: var(--bg); border: 1px solid var(--accent); padding: 40px; display: none; flex-direction: column; gap: 24px; animation: fadeIn 0.5s ease; }
.success-ticket.active { display: flex; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.ticket-brand { font-family: var(--display); font-size: 26px; color: var(--accent); letter-spacing: 0.05em; }
.ticket-ref-val { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ticket-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ticket-item { display: flex; flex-direction: column; gap: 4px; }
.ticket-label { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.ticket-val { font-size: 15px; font-weight: 600; color: var(--paper); }

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

/* FINAL CTA */
.final-cta { padding: 100px 56px; background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.final-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.final-title { font-family: var(--display); font-size: clamp(64px, 11vw, 150px); line-height: 0.85; letter-spacing: 0.02em; text-transform: uppercase; }
.final-desc { font-size: 18px; color: var(--muted); max-width: 500px; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--line); padding: 80px 56px 40px; background: var(--bg); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: flex-end; margin-bottom: 60px; }
.footer-brand { font-family: var(--display); font-size: clamp(48px, 7vw, 90px); line-height: 0.9; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
[dir="rtl"] .footer-links { align-items: flex-start; }
.back-top { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; transition: color 0.3s ease; }
.back-top:hover { color: var(--accent); }

.footer-bottom { max-width: var(--max); margin: 0 auto; padding-top: 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted); flex-wrap: wrap; gap: 20px; }

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .philosophy-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .bento-tall, .bento-wide { grid-row: span 1; grid-column: span 1; }
  .showcase-inner { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .programs-grid, .coaches-grid { grid-template-columns: 1fr; }
  .membership-layout { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 768px) {
  .site-header { padding: 20px 24px; }
  .site-header.scrolled { padding: 14px 24px; }
  .main-nav {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center;
    align-items: center; gap: 24px; transform: translateX(100%); transition: transform 0.4s var(--ease); z-index: 400;
  }
  [dir="rtl"] .main-nav { transform: translateX(-100%); }
  .main-nav.open { transform: translateX(0); }
  .menu-toggle { display: flex; }
  .header-action { display: none; }
  .hero { padding: 140px 24px 50px; }
  .section, .showcase, .final-cta, .site-footer { padding: 80px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
}