/* Iron Gym Arenal — custom.css
 * Only what Tailwind CDN can't express: design tokens, font stacks, marquee, reveal, lightbox, subtle polish.
 */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0B0B0C;
  --surface: #141416;
  --surface-2: #1E1E22;
  --line: #2A2A30;
  --text: #F5F5F7;
  --muted: #9A9AA2;
  --accent: #F5D400;
  --accent-hot: #FFEE55;
  --danger: #FF5D5D;
  --preview: #6D28D9;
  --header-h: 72px;
  --preview-h: 34px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: calc(var(--preview-h) + var(--header-h));
  opacity: 0;
  transition: opacity .4s ease;
}
body.is-ready { opacity: 1; }
body.no-scroll { overflow: hidden; }
.font-display { font-family: "Bebas Neue", "Anton", "Impact", sans-serif; letter-spacing: 0.02em; }
.font-mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.06em; }

/* Focus ring */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Selection */
::selection { background: var(--accent); color: #0B0B0C; }

/* ---------- Preview banner + header ---------- */
.preview-banner {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--preview-h);
  background: var(--preview);
  color: #F4F0FF;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: 0.02em;
  padding: 0 12px; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header {
  position: fixed; left: 0; right: 0; top: var(--preview-h); z-index: 50;
  height: var(--header-h);
  background: rgba(11, 11, 12, 0);
  backdrop-filter: blur(0);
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 12, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; border-radius: 999px; padding: 12px 22px; transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease; will-change: transform; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #0B0B0C; box-shadow: 0 8px 30px -12px rgba(245, 212, 0, 0.55); }
.btn-primary:hover { background: var(--accent-hot); box-shadow: 0 12px 34px -10px rgba(255, 238, 85, 0.7); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-dark:hover { background: var(--surface-2); border-color: var(--accent); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.card-hover { transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.card-hover:hover { transform: translateY(-3px); border-color: rgba(245,212,0,0.45); background: var(--surface-2); }
.hairline { border-color: var(--line); }

/* ---------- Language switcher ---------- */
.lang-btn { padding: 6px 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); border-radius: 8px; transition: color .2s, background .2s; }
.lang-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.lang-btn.is-active { color: #0B0B0C; background: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92svh; display: flex; align-items: center; overflow: hidden; }
.hero-img {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.35) 40%, rgba(11,11,12,0.95) 100%),
    radial-gradient(1200px 500px at 70% 10%, rgba(245,212,0,0.08), transparent 70%),
    url("../img/gallery/photo-4.jpg") center/cover no-repeat;
  filter: saturate(0.9) contrast(1.05);
}
.hero-noise::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.04  0 0 0 0 0.04  0 0 0 0 0.04  0 0 0 0.6 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
  opacity: 0.18; mix-blend-mode: overlay;
}

/* ---------- Marquee ---------- */
.marquee { display: flex; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0F0F11; }
.marquee-track { display: flex; gap: 2.5rem; padding: 14px 0; white-space: nowrap; animation: marquee 36s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.14em; font-size: 12px; text-transform: uppercase; }
.marquee-item .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Team portrait ---------- */
.portrait { position: relative; aspect-ratio: 3/4; border-radius: 20px 20px 0 0; overflow: hidden; background: #14141a; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; filter: grayscale(0.15) contrast(1.05); }
.card-hover:hover .portrait img { transform: scale(1.04); filter: grayscale(0) contrast(1.08); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,11,12,0.55) 100%); pointer-events: none; }

/* ---------- Gallery ---------- */
.gallery-tile { position: relative; overflow: hidden; border-radius: 18px; cursor: zoom-in; }
.gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.gallery-tile:hover img { transform: scale(1.05); filter: brightness(1.05); }
.gallery-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%); pointer-events: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,6,7,0.9); display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(6px); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,0.14); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 60ms; }
[data-reveal-delay="2"] { transition-delay: 120ms; }
[data-reveal-delay="3"] { transition-delay: 180ms; }
[data-reveal-delay="4"] { transition-delay: 240ms; }

/* ---------- Mobile menu overlay ---------- */
.mobile-menu { position: fixed; inset: calc(var(--preview-h) + var(--header-h)) 0 0 0; z-index: 45; background: rgba(11,11,12,0.98); backdrop-filter: blur(10px); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; overflow-y: auto; }
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 8px; padding: 8px; background: rgba(11,11,12,0.92); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(10px); box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7); }
.sticky-cta .btn { flex: 1; padding: 12px 14px; font-size: 14px; }

/* ---------- Utilities ---------- */
.hairline-x { background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); height: 1px; }
.grain::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.04  0 0 0 0 0.04  0 0 0 0 0.04  0 0 0 0.4 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>"); opacity: 0.06; mix-blend-mode: overlay; }

/* Bebas Neue Section Heads */
.h-section { font-family: "Bebas Neue", sans-serif; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 0.95; letter-spacing: 0.01em; }
.h-hero { font-family: "Bebas Neue", sans-serif; font-size: clamp(3.6rem, 11vw, 9rem); line-height: 0.9; letter-spacing: 0.01em; }

/* Price cards */
.price-card { position: relative; }
.price-card.is-featured { border-color: rgba(245,212,0,0.55); box-shadow: 0 30px 80px -30px rgba(245,212,0,0.35), inset 0 0 0 1px rgba(245,212,0,0.35); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #0B0B0C; font-weight: 700; font-size: 11px; letter-spacing: 0.14em; padding: 6px 12px; border-radius: 999px; text-transform: uppercase; }

/* Feature tile icon halo */
.tile-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(245,212,0,0.08); color: var(--accent); border: 1px solid rgba(245,212,0,0.25); }

/* Kicker */
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

/* Fine dividers */
.section-divider { border-top: 1px solid var(--line); }

/* Adjust body top padding on wider screens (header a bit taller optional) */
@media (min-width: 768px) {
  :root { --header-h: 80px; }
}

/* Media respectful */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
