/* ============================================================
   FORGE FITNESS — GALLERY CSS
   Masonry grid, filters, lightbox
   ============================================================ */

:root {
  --black: #090909;
  --surface: #111111;
  --border: #2a2a2a;
  --accent: #e63946;
  --white: #ffffff;
  --off-white: #e8e8e8;
  --muted: #888888;

  --font-display: 'Bebas Neue', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(9,9,9,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  border: 2px solid var(--accent);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: transparent; color: var(--accent); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); }
.mobile-menu {
  display: none;
  background: rgba(9,9,9,0.98);
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--border);
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.mobile-menu ul a {
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
}
.mobile-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 2rem;
}

/* ── GALLERY HERO ── */
.gallery-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}
.gallery-hero::before {
  content: 'FORGE';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(16rem, 30vw, 26rem);
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.02);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.gallery-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(transparent, var(--black));
}
.gh-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.gh-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 10rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.gh-inner h1 span { color: var(--accent); }
.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
}
.hero-scroll-hint {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 2rem auto 0;
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555;
}

/* ── FILTERS ── */
.gallery-filters {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
}
.filters-inner::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: #555; color: var(--off-white); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ── GALLERY GRID ── */
.gallery-section {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-grid {
  columns: 3 280px;
  column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.item-bg {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  transition: transform 0.5s ease;
}
.gallery-item.tall .item-bg { min-height: 420px; }
.gallery-item.wide .item-bg { min-height: 220px; }
.gallery-item:hover .item-bg { transform: scale(1.04); }
.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.15);
}
.placeholder-content i { font-size: 3rem; }
.placeholder-content span {
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.item-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.2rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .item-overlay { opacity: 1; transform: none; }
.item-tag {
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.item-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.item-overlay p { font-size: 0.8rem; color: var(--muted); }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: var(--accent);
  border: none;
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-card {
  background: var(--surface);
  max-width: 700px;
  width: 100%;
  border: 1px solid var(--border);
  overflow: hidden;
}
.lb-image {
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-info {
  padding: 2rem;
}
.lb-tag {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.lb-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.lb-info p { font-size: 0.9rem; color: var(--muted); }

/* ── INSTAGRAM BAND ── */
.instagram-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
}
.ig-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}
.ig-handle {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.ig-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
}
.ig-text p { font-size: 0.9rem; color: var(--muted); max-width: 380px; line-height: 1.7; margin-bottom: 1.5rem; }
.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  transition: background 0.2s;
}
.ig-btn:hover { background: #c1121f; }
.ig-stats {
  display: flex;
  gap: 3rem;
  flex-shrink: 0;
}
.ig-stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── GALLERY CTA ── */
.gallery-cta {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(160deg, #120508 0%, #090909 100%);
}
.gcta-inner { max-width: 700px; margin: 0 auto; }
.gcta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}
.gcta-inner h2 { color: var(--white); }
.gcta-inner p { font-size: 1rem; color: var(--muted); margin-bottom: 2.5rem; }
.gcta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  border: 2px solid var(--accent);
  transition: background 0.2s, color 0.2s;
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--off-white);
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  border: 2px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--off-white); }

/* ── FOOTER ── */
.footer { background: #050505; border-top: 1px solid var(--border); padding: 4rem 2rem 2rem; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.8rem; }
.footer-socials a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer-col h4 {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.85rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-contact p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.footer-contact i { color: var(--accent); margin-top: 0.2rem; flex-shrink: 0; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #555;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: block; }
  .gallery-grid { columns: 2 200px; }
  .ig-inner { flex-direction: column; gap: 2.5rem; }
  .ig-stats { gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 500px) {
  .gallery-grid { columns: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
