/* =============================
   CSS Custom Properties
   ============================= */
:root {
  --bg-primary: #080808;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1e2a40;
  --accent-blue: #0066ff;
  --accent-blue-dark: #0044cc;
  --accent-yellow: #ffff00;
  --accent-yellow-dark: #cccc00;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --border: #1e2d42;
  --border-light: #2d3d52;
  --nav-height: 72px;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================
   Reset & Base
   ============================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; }
button { font-family: inherit; }

/* =============================
   Navbar
   ============================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: background var(--t), backdrop-filter var(--t), box-shadow var(--t);
}
.navbar.scrolled {
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.navbar-logo {
  display: flex;
  align-items: center;
}
.brand-logo-img {
  height: 44px;
  width: 44px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid #4a4a4a;
}
.navbar-nav { display: flex; align-items: center; gap: 0.1rem; }
.navbar-nav a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  transition: color var(--t), background var(--t);
  letter-spacing: 0.02em;
}
.navbar-nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.navbar-nav a.active { color: var(--accent-blue); background: rgba(0,102,255,0.08); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.98);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t), visibility var(--t);
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: all; }
.mobile-menu a {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--t), transform var(--t);
}
.mobile-menu a:hover { color: var(--accent-blue); transform: translateX(6px); }
.mobile-menu a.active { color: var(--accent-blue); }

/* =============================
   Hero (index only)
   ============================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/team.jpg');
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8,8,8,0.55) 0%,
    rgba(8,8,8,0.72) 55%,
    rgba(8,8,8,0.97) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 920px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  border: 1px solid rgba(255,255,0,0.4);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}
.hero-badge::before { content: '◆'; font-size: 0.55rem; }
.hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.45s forwards;
}
.hero h1 .blue { color: var(--accent-blue); }
.hero h1 .yellow { color: var(--accent-yellow); }
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.65s forwards;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.85s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* =============================
   Buttons
   ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  white-space: nowrap;
}
.btn-primary { background: var(--accent-blue); color: #fff; }
.btn-primary:hover { background: var(--accent-blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,102,255,0.4); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-outline:hover { border-color: var(--accent-yellow); color: var(--accent-yellow); transform: translateY(-2px); }
.btn-yellow { background: var(--accent-yellow); color: #000; font-weight: 700; }
.btn-yellow:hover { background: var(--accent-yellow-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,0,0.4); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

/* =============================
   Sections
   ============================= */
.section { padding: 5rem 1.5rem; }
.section-dark { background: var(--bg-secondary); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.6rem;
}
.section-label.yellow { color: var(--accent-yellow); }
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}
.accent-line {
  width: 50px; height: 3px;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-yellow));
  border-radius: 2px;
  margin: 1.25rem auto 0;
}

/* =============================
   Stats Bar
   ============================= */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-value {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-value .num-blue { color: var(--accent-blue); }
.stat-value .num-yellow { color: var(--accent-yellow); }
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* =============================
   Cards (nav blocks on index)
   ============================= */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--t);
  color: inherit;
}
.nav-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-blue);
  box-shadow: 0 16px 40px rgba(0,102,255,0.18);
  background: var(--bg-card-hover);
}
.nav-card-icon {
  width: 50px; height: 50px;
  background: rgba(0,102,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-card-icon svg {
  width: 26px; height: 26px;
  stroke: var(--accent-blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-card h3 { font-size: 1rem; font-weight: 700; }
.nav-card p { font-size: 0.82rem; color: var(--text-muted); flex: 1; line-height: 1.6; }
.nav-card-arrow {
  font-size: 0.78rem;
  color: var(--accent-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--t);
}
.nav-card:hover .nav-card-arrow { gap: 0.6rem; }

/* =============================
   Facebook Section
   ============================= */
.fb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.fb-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 500px;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 400px;
}

/* =============================
   Page Hero (subpages)
   ============================= */
.page-hero {
  padding-top: var(--nav-height);
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,102,255,0.08), transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 4.5rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}
.page-hero-img {
  position: relative;
  height: 380px;
  overflow: hidden;
  margin-top: -1px;
}
.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.55) saturate(0.8);
}
.page-hero-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, transparent, var(--bg-secondary));
  z-index: 1;
}
.page-hero-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

/* =============================
   Generic Grid Cards
   ============================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.cards-grid--wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cards-grid--2col { grid-template-columns: repeat(2, 1fr); }
.cards-grid--narrow { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--t);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-light);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.card.blue-hover:hover { border-color: var(--accent-blue); box-shadow: 0 12px 32px rgba(0,102,255,0.15); }
.card.yellow-hover:hover { border-color: var(--accent-yellow); box-shadow: 0 12px 32px rgba(255,255,0,0.12); }

.card-icon {
  width: 50px; height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon.blue { background: rgba(0,102,255,0.1); }
.card-icon.yellow { background: rgba(255,255,0,0.1); }
.card-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon.blue svg { stroke: var(--accent-blue); }
.card-icon.yellow svg { stroke: var(--accent-yellow); }
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* Tags */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.tag-blue { color: var(--accent-blue); border: 1px solid rgba(0,102,255,0.35); background: rgba(0,102,255,0.06); }
.tag-yellow { color: var(--accent-yellow); border: 1px solid rgba(255,255,0,0.35); background: rgba(255,255,0,0.06); }

/* Day tags */
.days { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.day { font-size: 0.72rem; padding: 0.2rem 0.55rem; background: rgba(0,102,255,0.08); border: 1px solid rgba(0,102,255,0.25); border-radius: 50px; color: var(--accent-blue); font-weight: 500; }

/* =============================
   Image + Text Layout
   ============================= */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-grid.reverse { direction: rtl; }
.split-grid.reverse > * { direction: ltr; }

.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.split-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.split-img:hover img { transform: scale(1.04); }
.split-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: border-color var(--t);
  pointer-events: none;
}
.split-img:hover::after { border-color: rgba(0,102,255,0.3); }

.split-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.25rem; }
.split-text p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.8; }

/* =============================
   Trainer Cards
   ============================= */
.trainer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--t);
}
.trainer-card:hover { transform: translateY(-5px); border-color: var(--accent-blue); box-shadow: 0 12px 32px rgba(0,102,255,0.12); }
.trainer-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1rem;
  border: 3px solid rgba(0,102,255,0.3);
  overflow: hidden;
}
.trainer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trainer-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.trainer-role { font-size: 0.72rem; color: var(--accent-yellow); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.75rem; }
.trainer-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* =============================
   Location Cards
   ============================= */
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--t);
}
.location-card:hover { transform: translateY(-5px); border-color: var(--accent-blue); box-shadow: 0 12px 32px rgba(0,102,255,0.12); }
.location-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.location-addr { font-size: 0.78rem; color: var(--accent-yellow); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.location-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }

/* =============================
   Venue Block
   ============================= */
.venue-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
}
.venue-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.venue-icon { flex-shrink: 0; }
.venue-info { flex: 1; min-width: 180px; }
.venue-info h2 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.venue-addr { font-size: 0.875rem; color: var(--text-muted); }
.venue-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.venue-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.venue-map {
  width: 100%;
  height: 280px;
  border: none;
  border-radius: var(--radius-sm);
  filter: grayscale(30%);
}
@media (max-width: 640px) {
  .venue-media { grid-template-columns: 1fr; }
  .venue-photo, .venue-map { height: 220px; }
}

/* =============================
   Schedule
   ============================= */
.schedule-days { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .schedule-days { grid-template-columns: 1fr; } }
.schedule-day {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.schedule-day-label {
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-yellow);
}
.schedule-slots { padding: 0.25rem 0; }
.class-slot {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--t);
}
.class-slot:last-child { border-bottom: none; }
.class-slot:hover { background: rgba(255,255,255,0.025); }
.class-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  min-width: 115px;
  padding-top: 0.1rem;
}
.class-body { flex: 1; }
.class-name { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.class-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.class-trainer { font-size: 0.8rem; color: var(--text-muted); }
.class-badges { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge--ocr { background: rgba(255,255,0,0.08); border: 1px solid rgba(255,255,0,0.28); color: var(--accent-yellow); }
.badge--hyrox { background: rgba(0,102,255,0.1); border: 1px solid rgba(0,102,255,0.3); color: #6699ff; }
.badge--ninja { background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.3); color: #a78bfa; }
.badge--level { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); }

/* =============================
   Partner Cards
   ============================= */
.partner-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.75rem;
  transition: all var(--t);
  text-align: left;
}
.partner-card:hover { transform: translateY(-3px); border-color: var(--accent-yellow); box-shadow: 0 8px 24px rgba(255,255,0,0.1); }
.partner-logo-box {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1.5px solid #4a4a4a;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.partner-logo-img--fit {
  width: 75%;
  height: 75%;
  object-fit: contain;
}
.partner-card h3 { font-size: 1rem; font-weight: 700; }
.partner-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* =============================
   Race Cards
   ============================= */
.race-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all var(--t);
}
.race-card:hover { transform: translateY(-5px); border-color: var(--accent-yellow); box-shadow: 0 12px 32px rgba(255,255,0,0.1); }
.race-card--vertical { flex-direction: column; padding: 0; overflow: hidden; }
.race-card--vertical .race-img { width: 100%; height: 220px; border-radius: 0; flex-shrink: 0; }
.race-card--vertical .race-img--lg { width: 100%; height: 220px; }
.race-card--vertical .race-body { padding: 1.5rem; }
.race-img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}
.race-img img { width: 100%; height: 100%; object-fit: cover; }
.race-img--lg { width: 200px; height: 200px; }
.race-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.race-body p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }
.race-fb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1877f2;
  text-decoration: none;
  transition: opacity var(--t);
}
.race-fb-link:hover { opacity: 0.75; }

/* =============================
   Diamonds Gallery
   ============================= */
.diamond-intro-box {
  max-width: 660px;
  margin: 0 auto 4rem;
  background: linear-gradient(135deg, rgba(0,102,255,0.06), rgba(255,255,0,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
}
.diamond-gem { font-size: 2.75rem; margin-bottom: 0.75rem; }
.diamond-intro-box h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.diamond-intro-box p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; }

.diamond-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.diamond-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--t);
  cursor: default;
}
.diamond-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(0,0,0,0.55); border-color: var(--accent-yellow); }
.diamond-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.diamond-card:hover img { transform: scale(1.08); }
.diamond-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}
.diamond-name { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
.diamond-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-yellow);
}
.diamond-badge::before { content: '◆'; font-size: 0.55rem; }

/* =============================
   CTA Block
   ============================= */
.cta-block {
  background: linear-gradient(135deg, rgba(0,102,255,0.08), rgba(255,255,0,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.cta-block h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.cta-block p { color: var(--text-muted); margin-bottom: 1.75rem; line-height: 1.7; }

/* =============================
   Footer
   ============================= */
.footer {
  background: #040404;
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand { }
.footer-logo {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}
.footer-logo .brand-logo-img {
  height: 38px;
  width: 38px;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.75; max-width: 280px; }
.footer-col h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--t); }
.footer-col a:hover { color: var(--accent-blue); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }
.social-links { display: flex; gap: 0.65rem; }
.social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}
.social-link:hover { border-color: var(--accent-blue); background: rgba(0,102,255,0.1); transform: translateY(-2px); }
.social-link svg { width: 17px; height: 17px; }

/* =============================
   Divider
   ============================= */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* =============================
   Animations
   ============================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

.fade-in-down {
  opacity: 0;
  transform: translateY(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in-down.visible { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transition: opacity 0.65s ease;
}
.fade-in.visible { opacity: 1; }

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* =============================
   Responsive
   ============================= */
@media (max-width: 1100px) {
  .nav-cards { grid-template-columns: repeat(3, 1fr); }
  .diamond-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split-grid.reverse { direction: ltr; }
  .split-img img { height: 300px; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .nav-cards { grid-template-columns: repeat(2, 1fr); }
  .diamond-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .section { padding: 3.5rem 1.25rem; }
  .page-hero-img { height: 240px; }
  .race-card { flex-direction: column; gap: 1rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .nav-cards { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid--2col { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero h1 { font-size: 2.4rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
