/* IRONPULSE — Ironclad Surge — Gym & Fitness Center demo template */
/* PAGE_ARCHETYPE: Cinematic Game Hub | DESIGN_STYLE: Cinematic | COLOR_THEME: Volt Ember */

:root {
  --primary: #ff2d4d;
  --primary-dark: #c81f3a;
  --accent: #c6ff2f;
  --accent-2: #3fb2ff;
  --bg: #0a0a0d;
  --surface: #17171b;
  --surface-2: #1e1e24;
  --border: #2c2c33;
  --text: #eceeef;
  --text-muted: #9a9aa2;
  --success: #38d67a;
  --warning: #ffb020;
  --danger: #ff4d4d;
  --info: #3fb2ff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
  --font-head: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
}

:root[data-theme="light"] {
  --bg: #f4f3f1;
  --surface: #ffffff;
  --surface-2: #f0efec;
  --border: #ddd9d4;
  --text: #17171b;
  --text-muted: #5b5b63;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f3f1;
    --surface: #ffffff;
    --surface-2: #f0efec;
    --border: #ddd9d4;
    --text: #17171b;
    --text-muted: #5b5b63;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: .5px; margin: 0 0 .5rem; text-transform: uppercase; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section-tag { color: var(--primary); font-weight: 700; letter-spacing: 3px; font-size: .8rem; text-transform: uppercase; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-lead { color: var(--text-muted); max-width: 640px; margin-bottom: 2.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700;
  border: none; cursor: pointer; font-family: var(--font-body);
  font-size: .95rem; transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: linear-gradient(120deg, var(--primary), #ff6b3d); color: #fff; box-shadow: 0 10px 30px -10px rgba(255,45,77,.6); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-accent { background: var(--accent); color: #0a0a0d; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
  background: transparent;
}
.navbar.shrink { padding: 12px 0; background: rgba(10,10,13,.9); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
:root[data-theme="light"] .navbar.shrink { background: rgba(244,243,241,.92); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-head); font-size: 1.6rem; letter-spacing: 2px; display:flex; align-items:center; gap:8px; }
.brand span { color: var(--primary); }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display:flex;align-items:center;justify-content:center; }
.nav-burger { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }
.mobile-panel {
  position: fixed; inset: 0 0 0 auto; width: min(320px,80%); background: var(--surface);
  transform: translateX(100%); transition: transform .3s ease; z-index: 600; padding: 30px; box-shadow: var(--shadow);
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel ul { list-style:none; padding:0; display:flex; flex-direction:column; gap:20px; margin-top:40px; }
.mobile-panel a { font-size: 1.1rem; font-weight: 700; }
.mobile-close { background:none;border:none;color:var(--text);font-size:1.6rem;cursor:pointer; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding-top: 100px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero-bg::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,10,13,.2), rgba(10,10,13,.95)); }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: floatBlob 8s ease-in-out infinite; }
.hero-blob.b1 { width: 320px; height: 320px; background: var(--primary); top: -80px; left: -100px; }
.hero-blob.b2 { width: 260px; height: 260px; background: var(--accent); bottom: -60px; right: -60px; animation-delay: 2s; }
@keyframes floatBlob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-30px);} }
.hero-content { position: relative; z-index: 2; text-align: center; margin: 0 auto; max-width: 820px; }
.hero-eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 4px; font-size: .85rem; text-transform: uppercase; margin-bottom: 16px; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; margin-bottom: 18px; }
.hero-title .hl { color: var(--primary); }
.hero-sub { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position:absolute; bottom: 30px; left:50%; transform:translateX(-50%); z-index:2; color:var(--text-muted); font-size:.8rem; text-align:center; }
.hero-scroll .bar { width:2px; height:34px; background:var(--border); margin:8px auto 0; position:relative; overflow:hidden; }
.hero-scroll .bar::after { content:""; position:absolute; top:-100%; left:0; width:100%; height:100%; background:var(--accent); animation: scrollBar 1.6s ease-in-out infinite; }
@keyframes scrollBar { 0% { top:-100%;} 100% { top:100%;} }

/* Badge marquee */
.marquee-wrap { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 50px; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.marquee-track span i { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* News strip */
.news-strip { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.news-card { min-width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; flex-shrink:0; transition: transform .2s ease; }
.news-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.tag { display:inline-block; padding:4px 12px; border-radius:999px; font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:1px; margin-bottom:12px; }
.tag.promo { background: rgba(255,45,77,.15); color: var(--primary); }
.tag.event { background: rgba(198,255,47,.15); color: var(--accent); }
.tag.info { background: rgba(63,178,255,.15); color: var(--accent-2); }

/* Countdown banner */
.countdown-banner {
  background: linear-gradient(120deg, #1c0a10, #240f10 60%, #0f1a08);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 46px 34px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px;
  position: relative; overflow: hidden;
}
.countdown-banner::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 20% 20%, rgba(255,45,77,.25), transparent 50%); }
.countdown-info { position: relative; z-index: 1; max-width: 460px; }
.countdown-info h3 { font-size: 1.8rem; margin-bottom: 10px; }
.countdown-timer { display: flex; gap: 14px; position: relative; z-index: 1; }
.countdown-timer div { background: rgba(0,0,0,.35); border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 76px; text-align: center; padding: 12px 6px; }
.countdown-timer .num { font-family: var(--font-head); font-size: 2rem; color: var(--accent); }
.countdown-timer .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

/* Tabs / zone carousel */
.tab-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.tab-btn {
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-weight: 700; cursor: pointer; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .5px; transition: all .2s ease; display:flex; align-items:center; gap:8px;
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.spotlight { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spotlight-media { position: relative; }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.spotlight-body { padding: 40px 40px 40px 0; }
.spotlight-body .zone-cap { color: var(--accent); font-weight: 700; letter-spacing: 2px; font-size: .8rem; text-transform: uppercase; margin-bottom: 8px; }
.spotlight-body h3 { font-size: 2rem; margin-bottom: 14px; }
.spotlight-body p { color: var(--text-muted); margin-bottom: 20px; }
.spotlight-meta { display: flex; gap: 22px; margin-bottom: 24px; flex-wrap: wrap; }
.spotlight-meta div { font-size: .85rem; color: var(--text-muted); }
.spotlight-meta strong { display:block; color: var(--text); font-family: var(--font-head); font-size: 1.3rem; }

/* Trainer directory */
.trainer-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--text-muted); }
.chip.active, .chip:hover { border-color: var(--accent); color: var(--accent); }
.trainer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.trainer-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .2s ease, border-color .2s ease; }
.trainer-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.trainer-card img { aspect-ratio: 1; object-fit: cover; }
.trainer-card .body { padding: 18px; }
.trainer-card h4 { margin-bottom: 4px; font-size: 1.1rem; }
.trainer-card .role { color: var(--primary); font-weight:700; font-size:.8rem; text-transform: uppercase; margin-bottom: 10px; }
.trainer-card .certs { display: flex; flex-wrap: wrap; gap: 6px; }
.trainer-card .certs span { background: var(--surface-2); border:1px solid var(--border); font-size: .68rem; padding: 3px 8px; border-radius: 6px; color: var(--text-muted); }

/* Stats */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 20px; }
.stat-item { text-align: center; }
.stat-item .num { font-family: var(--font-head); font-size: 2.6rem; color: var(--primary); }
.stat-item .lbl { color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-points { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.about-points i { color: var(--accent); margin-top: 4px; }

/* Membership tabs + comparison */
.pricing-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 34px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 28px; text-align: center; transition: transform .2s ease; }
.pricing-card.featured { border-color: var(--primary); position: relative; transform: scale(1.03); box-shadow: var(--shadow); }
.pricing-card.featured::before { content: "PALING POPULER"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .65rem; font-weight: 800; padding: 6px 16px; border-radius: 999px; letter-spacing: 1px; }
.pricing-card img { width: 90px; margin: 0 auto 16px; }
.price { font-family: var(--font-head); font-size: 2.4rem; margin: 14px 0; }
.price small { font-size: 1rem; color: var(--text-muted); }
.pricing-card ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.pricing-card ul li { display: flex; gap: 8px; color: var(--text-muted); font-size: .9rem; }
.pricing-card ul li i { color: var(--accent); }
.compare-wrap { overflow-x: auto; margin-top: 50px; }
table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--border); font-size: .9rem; }
table.compare th { background: var(--surface-2); font-family: var(--font-head); letter-spacing: 1px; }
table.compare td:first-child, table.compare th:first-child { text-align: left; color: var(--text-muted); }
table.compare td.yes { color: var(--accent); font-weight: 700; }
table.compare td.no { color: var(--text-muted); opacity: .4; }
table.compare th.featured-col { color: var(--primary); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); font-size: .85rem; font-weight: 700; }

/* Articles */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .2s ease; }
.article-card:hover { transform: translateY(-6px); }
.article-card .body { padding: 20px; }
.article-card .meta { color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.article-card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.article-card p { color: var(--text-muted); font-size: .9rem; }

/* Testimonials */
.testi-rotator { max-width: 720px; margin: 0 auto; text-align: center; position: relative; min-height: 220px; }
.testi-slide { display: none; }
.testi-slide.active { display: block; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity:0; transform: translateY(14px);} to { opacity:1; transform:translateY(0);} }
.testi-slide p { font-size: 1.3rem; font-style: italic; margin-bottom: 20px; }
.testi-slide .who { font-weight: 700; }
.testi-slide .stars { color: var(--accent); margin-bottom: 14px; }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.testi-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; }
.testi-dots button.active { background: var(--primary); width: 26px; border-radius: 6px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; cursor: pointer; font-weight: 700; }
.faq-q i { transition: transform .2s ease; color: var(--primary); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--text-muted); }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info div { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info i { color: var(--accent); font-size: 1.2rem; margin-top: 3px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: .95rem;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: 2px solid var(--primary); }

/* Footer */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h5 { text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; margin-bottom: 16px; color: var(--text-muted); }
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul a { color: var(--text-muted); }
.footer-grid ul a:hover { color: var(--accent); }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: .85rem; border-top: 1px solid var(--border); padding-top: 24px; }

/* Floating buttons */
.float-wa { position: fixed; bottom: 26px; right: 26px; background: #25d366; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem; box-shadow: var(--shadow); z-index: 400; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }
.back-top { position: fixed; bottom: 26px; right: 96px; background: var(--surface); border: 1px solid var(--border); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 400; color: var(--text); }
.back-top.show { opacity: 1; pointer-events: auto; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: none; align-items: center; justify-content: center; z-index: 900; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--surface); border-radius: var(--radius); max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 34px; position: relative; border: 1px solid var(--border); }
.modal-close { position: absolute; top: 18px; right: 18px; background: var(--surface-2); border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--text); }
.modal-box img { border-radius: var(--radius-sm); margin-bottom: 20px; }

/* Toast */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow); animation: slideIn .3s ease; max-width: 320px; }
@keyframes slideIn { from { transform: translateX(120%); opacity:0;} to { transform: translateX(0); opacity:1;} }

/* Popup promo */
.promo-popup { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: none; align-items: center; justify-content: center; z-index: 950; padding: 20px; }
.promo-popup.open { display: flex; }
.promo-box { background: linear-gradient(140deg, #1a0a10, #101a08); border: 1px solid var(--primary); border-radius: var(--radius); max-width: 480px; padding: 40px; text-align: center; position: relative; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%); background-size: 400% 100%; animation: skeleton 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes skeleton { 0% { background-position: 100% 50%;} 100% { background-position: 0 50%;} }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 960px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-body { padding: 30px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .gallery-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .gallery-grid, .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .countdown-timer div { min-width: 60px; }
}
