/* ============================================================
   BlueForce Softball — Shared Stylesheet
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --navy:   #0F131C;
  --navy-2: #141925;
  --navy-3: #1B2130;
  --line:   #232938;
  --white:  #FFFFFF;
  --grey:   #B1B1B1;
  --grey-2: #6E737E;
  --orange: #FF7A1A;
  --body-bg: #05070b;
  --footer-bg: #08090f;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--body-bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ── Typography helpers ─────────────────────────────────────── */
.varsity {
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  text-transform: uppercase;
}

.display {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ── Page container ─────────────────────────────────────────── */
.page {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--navy);
  overflow: hidden;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  background: var(--white);
  color: var(--navy);
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  transition: opacity 0.18s ease;
  border: none;
  white-space: nowrap;
}

.btn-cta:hover {
  opacity: 0.85;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: border-color 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 56px;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo .bolt-icon {
  width: 24px;
  height: 34px;
  flex-shrink: 0;
}

.nav-logo .wm {
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.nav-links a {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a.active {
  color: var(--white);
  border-bottom: 3px solid var(--white);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--grey-2);
  white-space: nowrap;
}

.nav-meta .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ── Section head ───────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-head .title {
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: 56px;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
}

.section-head .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--grey);
}

.section-head .meta a {
  color: var(--grey);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.section-head .meta a:hover {
  color: var(--white);
}

/* ── Page layout helpers ────────────────────────────────────── */
.page-wrap {
  padding: 72px 56px 80px;
}

.page-hero {
  padding: 48px 56px 56px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: 80px;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--grey);
  margin-bottom: 20px;
}

.page-eyebrow .bar {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--grey);
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px 40px;
  padding: 64px 56px 40px;
  border-top: 1px solid var(--line);
  position: relative;
}

.footer-mono {
  display: none;
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: auto;
  }
}

.footer-brand .mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .mark svg {
  width: 20px;
  height: 28px;
}

.footer-brand .mark .name {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
}

.footer-brand p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--grey-2);
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  font-size: 14px;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.15s;
}

.footer ul li a:hover {
  color: var(--white);
}

.footer-bot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  gap: 16px;
}

.footer-bot .bf-monogram {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bot .bf-monogram img {
  width: 28px;
  height: 28px;
  opacity: 0.5;
}

.footer-bot span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--grey-2);
}

/* ── Contact modal ──────────────────────────────────────────── */
.cm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 7, 11, 0.88);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cm-overlay.open {
  display: flex;
}

.cm-inner {
  background: var(--navy-2);
  border: 1px solid var(--line);
  padding: 48px;
  max-width: 560px;
  width: 100%;
  position: relative;
  animation: lb-in 0.22s ease-out;
}

.cm-inner h2 {
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: 40px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 32px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--grey);
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--navy-3);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--grey-2);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--orange);
  font-size: 15px;
  padding: 16px 0;
}

.form-success b {
  font-size: 18px;
}

.form-error {
  color: var(--orange);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 8px 0;
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 7, 11, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lb-overlay.open {
  display: flex;
}

.lb-close {
  position: fixed;
  top: 24px;
  right: 32px;
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
  transition: color 0.15s;
}

.lb-close:hover {
  color: var(--white);
}

.lb-counter {
  position: fixed;
  top: 28px;
  left: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--grey-2);
  z-index: 210;
}

.lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 64px 80px 0;
  width: 100%;
  max-height: 100vh;
}

.lb-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--navy-2);
  color: var(--white);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s, opacity 0.15s;
}

.lb-arrow:hover {
  border-color: var(--grey-2);
}

.lb-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lb-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  max-height: calc(100vh - 140px);
}

.lb-img-wrap img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  animation: lb-in 0.2s ease-out;
}

.lb-caption {
  border-left: 3px solid var(--orange);
  padding: 4px 12px;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--grey);
  text-transform: uppercase;
}

/* ── Player lightbox display ────────────────────────────────── */
.plb-card {
  text-align: center;
  padding: 24px 40px;
}

.plb-num {
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: 140px;
  color: var(--white);
  text-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
  line-height: 1;
  margin-bottom: 12px;
}

.plb-name {
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: 36px;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.1;
  margin-bottom: 16px;
}

.plb-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--grey-2);
}

/* ── Gallery grid ───────────────────────────────────────────── */
.gallery-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
}

.view-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}

.view-btn.active {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.view-btn:not(.active):hover {
  color: var(--white);
  border-color: var(--grey);
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 80px;
}

.gphoto {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy-3);
  cursor: zoom-in;
  height: 260px;
}

.gphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05);
  transition: filter .25s;
}

.gphoto:hover img {
  filter: saturate(1) contrast(1.05);
}

.glabel {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(11, 15, 26, 0.72);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  border-left: 2px solid var(--orange);
}

.glabel b {
  color: var(--orange);
  font-weight: 700;
  margin-right: 6px;
}

.glabel-funny { display: none; }

/* ── Gallery collage mode ────────────────────────────────────── */
.gallery-page-grid.collage-mode {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  background: #100e08;
  padding: 48px 24px 32px;
  border-radius: 4px;
}

.gallery-page-grid.collage-mode .gphoto {
  width: 190px;
  height: auto;
  overflow: visible;
  background: #f2ece3;
  border-radius: 2px;
  padding: 8px 8px 46px;
  box-shadow: 3px 6px 20px rgba(0,0,0,0.6);
  margin: 16px 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-page-grid.collage-mode .gphoto:hover {
  box-shadow: 8px 16px 36px rgba(0,0,0,0.75);
  z-index: 10;
  transform: rotate(0deg) scale(1.07) !important;
}

.gallery-page-grid.collage-mode .gphoto img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
  filter: none;
  border-radius: 0;
}

.gallery-page-grid.collage-mode .gphoto:nth-child(1)  { transform: rotate(-2deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(2)  { transform: rotate(1.5deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(3)  { transform: rotate(-1deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(4)  { transform: rotate(2.5deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(5)  { transform: rotate(-3deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(6)  { transform: rotate(1deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(7)  { transform: rotate(-1.5deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(8)  { transform: rotate(2deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(9)  { transform: rotate(-0.5deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(10) { transform: rotate(3deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(11) { transform: rotate(-2.5deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(12) { transform: rotate(1deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(13) { transform: rotate(2deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(14) { transform: rotate(-1.5deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(15) { transform: rotate(0.5deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(16) { transform: rotate(-2deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(17) { transform: rotate(3deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(18) { transform: rotate(-1deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(19) { transform: rotate(2.5deg); }
.gallery-page-grid.collage-mode .gphoto:nth-child(20) { transform: rotate(-1.5deg); }

.gallery-page-grid.collage-mode .glabel {
  position: static;
  background: none;
  backdrop-filter: none;
  border-left: none;
  padding: 10px 4px 0;
  color: #555;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
  display: block;
}

.gallery-page-grid.collage-mode .glabel b { display: none; }
.gallery-page-grid.collage-mode .glabel-default { display: none; }
.gallery-page-grid.collage-mode .glabel-funny { display: block; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* ── Responsive: 1280px ─────────────────────────────────────── */
@media (max-width: 1279px) {
  .nav {
    padding: 0 32px;
    gap: 28px;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
    padding: 48px 32px 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .page-wrap {
    padding: 56px 32px 64px;
  }

  .page-hero {
    padding: 40px 32px 48px;
  }

  .page-title {
    font-size: 64px;
  }

  .gallery-page-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Responsive: 768px ──────────────────────────────────────── */
@media (max-width: 767px) {
  .nav {
    height: 60px;
    padding: 0 20px;
    gap: 0;
  }

  .nav-links {
    display: none;
  }

  .nav-meta {
    display: none;
  }

  .nav-right .btn-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer {
    grid-template-columns: 1fr;
    padding: 40px 20px 24px;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-wrap {
    padding: 40px 20px 48px;
  }

  .page-hero {
    padding: 32px 20px 40px;
  }

  .page-title {
    font-size: 44px;
  }

  .section-head {
    flex-direction: column;
    gap: 12px;
  }

  .cm-inner {
    max-width: calc(100vw - 40px);
    padding: 28px 20px;
  }

  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lb-stage {
    padding: 56px 0 0;
    gap: 0;
  }

  .lb-img-wrap {
    max-width: 100vw;
    max-height: calc(100vh - 160px);
    width: 100%;
  }

  .lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 202;
    width: 40px;
    height: 56px;
    font-size: 18px;
  }

  #lb-prev { left: 0; }
  #lb-next { right: 0; }

  .plb-num {
    font-size: 96px;
  }

  .plb-name {
    font-size: 26px;
  }
}

/* ── Mobile nav overlay ─────────────────────────────────────── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--navy);
  flex-direction: column;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.nav-mobile-close {
  font-family: 'Anton', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: color 0.15s;
}

.nav-mobile-close:hover {
  color: var(--white);
}

.nav-mobile-body {
  flex: 1;
  overflow-y: auto;
}

.nav-mobile .nav-links {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  padding: 0;
  list-style: none;
  margin: 0;
}

.nav-mobile .nav-links a {
  font-family: 'Alfa Slab One', serif;
  font-size: 36px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 20px 20px;
  border-bottom: 1px solid var(--line);
  height: auto;
  letter-spacing: 0.01em;
  display: block;
  transition: color 0.15s;
}

.nav-mobile .nav-links a:hover {
  color: var(--grey);
}

.nav-mobile .nav-links a.active {
  color: var(--grey);
}

.nav-mobile .nav-links a.active::after {
  display: none;
}

.nav-mobile-foot {
  padding: 20px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
