/* ============================================================
   LIONS MMA CLUB — GLOBAL STYLES
   Reset · Base · Typography · Utilities
   ============================================================ */

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

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

body {
  background-color: var(--color-cage-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ── Typography ─────────────────────────────────────────────── */

/* Display — Bebas Neue */
.t-display {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-tight);
  color: var(--color-white);
  font-weight: 400;
  text-transform: uppercase;
}

/* Section headings — Barlow Condensed Bold ALL CAPS */
h1, h2, h3, h4,
.t-h1, .t-h2, .t-h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-head);
  color: var(--color-white);
}

h1, .t-h1 { font-size: var(--text-h1); }
h2, .t-h2 { font-size: var(--text-h2); }
h3, .t-h3 { font-size: var(--text-h3); }

/* Body copy — Montserrat */
p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--color-lion-silver);
}

/* Labels / micro text */
.t-label {
  font-family: var(--font-heading);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-xwide);
  color: var(--color-lion-silver);
}

/* Red accent text */
.t-red { color: var(--color-fight-red); }
.t-silver { color: var(--color-lion-silver); }
.t-white { color: var(--color-white); }

/* ── Layout utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--section-pad-h);
}

.section {
  padding-block: var(--section-pad-v);
}

.section--lg {
  padding-block: var(--space-2xl);
}

/* Flex helpers */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-sm      { gap: var(--space-sm); }
.gap-md      { gap: var(--space-md); }
.gap-lg      { gap: var(--space-lg); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }

@media (max-width: 768px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
}

/* ── Horizontal rule ────────────────────────────────────────── */
.hr {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  border: none;
  margin-block: var(--space-md);
}

.hr--red {
  height: 2px;
  background: var(--color-fight-red);
  width: 48px;
  margin-block: var(--space-sm);
}

/* ── Accent bar before section headings ─────────────────────── */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-fight-red);
  flex-shrink: 0;
}

/* ── Visibility / reveal setup (GSAP targets) ───────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-x-left {
  opacity: 0;
  transform: translateX(-60px);
}

.reveal-x-right {
  opacity: 0;
  transform: translateX(60px);
}

/* ── Suppress Elfsight bar widgets (direct children of body only) ── */
body > [class*="elfsight-app-"]:not(.elfsight-app-613696e7-6b78-4745-8184-99121e2a75d0),
body > [class*="eapps"] {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--color-cage-black); }
::-webkit-scrollbar-thumb { background: var(--color-fight-red); }

/* ── Selection ──────────────────────────────────────────────── */
::selection {
  background: var(--color-fight-red);
  color: var(--color-white);
}

/* ── Focus visible ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-fight-red);
  outline-offset: 3px;
}

/* ── Mobile global overrides ────────────────────────────────── */
@media (max-width: 768px) {
  /* Section vertical padding — 4.5rem → 3rem */
  .section {
    padding-block: 3rem;
  }

  /* Container side padding tighter */
  .container {
    padding-inline: 1.25rem;
  }

  /* Schedule table — readable on small screens */
  .schedule-table th {
    padding: 0.55rem 0.35rem;
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }

  .schedule-table td {
    padding: 0.5rem 0.35rem;
    font-size: 0.6rem;
    line-height: 1.3;
  }

  .schedule-table td:first-child {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .cell--class {
    font-size: 0.55rem;
    letter-spacing: 0.03em;
  }
}

/* ── Mobile-only targeted fixes (≤1024px) ───────────────────── */
@media (max-width: 1024px) {

  .nav__drawer {
    will-change: transform, opacity;
  }

  /* 2. Marcio section — fade from left only so face stays visible */
  .head-coach__overlay {
    background: linear-gradient(
      to right,
      rgba(13,13,13,0.90) 0%,
      rgba(13,13,13,0.60) 40%,
      rgba(13,13,13,0.10) 70%,
      rgba(13,13,13,0) 100%
    ) !important;
  }

  /* 3. Footer bottom — stack centered on mobile */
  .footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ── Mobile-only: blog carousel, spacing (≤768px) ───────────── */
@media (max-width: 768px) {

  /* Blog grid → horizontal snap carousel */
  .blog-teaser-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
    scrollbar-width: none;
    /* pull flush to screen edges */
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
  }
  .blog-teaser-grid::-webkit-scrollbar { display: none; }
  .blog-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    min-width: 0;
  }

  /* Tighten gap between location section and Instagram section */
  .instagram-feed-section {
    padding-top: var(--space-md);
  }

  /* Tighten internal location-info padding so map sits close to text */
  .location-info {
    padding-top: var(--space-md) !important;
    padding-bottom: var(--space-md) !important;
  }
}
