/* ===========================
   ALTURA ATHLETICS — GLOBAL CSS
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- VARIABLES --- */
:root {
  --navy:         #0C1A2E;   /* Deep blue — primary dark background */
  --navy-mid:     #112340;   /* Mid blue — sections, cards dark */
  --navy-light:   #1A3358;   /* Lighter blue — hover states, borders */
  --green:        #2A7A35;   /* Vivid green — accent strips & badges */
  --green-dark:   #1E5A28;   /* Deep green — hover green */
  --orange:       #E8701A;
  --orange-light: #FF8C3A;
  --white:        #FFFFFF;
  --off-white:    #F4F7FA;   /* Blue-tinted off-white */
  --gray-100:     #EBF0F5;
  --gray-200:     #CDD8E3;
  --gray-400:     #8BA0B5;
  --gray-600:     #4A6070;
  --text-dark:    #0C1A2E;
  --text-body:    #1E3448;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --nav-height: 70px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow:    0 4px 24px rgba(8,15,26,0.18);
  --shadow-lg: 0 12px 48px rgba(12,26,46,0.24);

  --transition: 0.25s ease;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--text-dark);
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }
p  { line-height: 1.7; }

.text-orange { color: var(--orange); }
.text-white  { color: var(--white); }
.text-navy   { color: var(--navy); }

/* --- LAYOUT --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,112,26,0.4);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-outline-dark {
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-ghost {
  color: var(--orange);
  font-weight: 600;
}
.btn-ghost:hover { text-decoration: underline; }
.btn svg { width: 16px; height: 16px; }

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(12, 26, 46, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.navbar.scrolled {
  background: var(--navy);
  box-shadow: var(--shadow);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-logo-img {
  height: 52px;
  width: auto;
  border-radius: 6px;
  /* White bg logo on dark navbar: multiply blends white away */
  mix-blend-mode: screen;
  filter: brightness(1.05);
  transition: opacity var(--transition);
}
.navbar-logo-img:hover { opacity: 0.88; }
.navbar-logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
}
.navbar-logo-text span { color: var(--orange); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* --- SECTION LABELS --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--orange);
}

/* --- CARDS --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--gray-200);
}
.card-body { padding: 24px; }

/* --- PLACEHOLDER IMAGES --- */
.placeholder-img {
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- FOOTER --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-brand .footer-logo span { color: var(--orange); }
.footer-logo-img {
  height: 90px;
  width: auto;
  margin-bottom: 16px;
  border-radius: 8px;
  mix-blend-mode: screen;
  filter: brightness(1.1);
  display: block;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 240px; }
.footer h5 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  transition: all var(--transition);
}
.footer-socials a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(232,112,26,0.1);
}

/* --- DARK SECTION --- */
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy-mid { background: var(--navy-mid); color: var(--white); }
.bg-navy-mid h1, .bg-navy-mid h2, .bg-navy-mid h3 { color: var(--white); }
.bg-green { background: var(--green); color: var(--white); }
.bg-green h1, .bg-green h2, .bg-green h3 { color: var(--white); }
.bg-off-white { background: var(--off-white); }
.bg-gray { background: var(--gray-100); }

/* --- STATS ROW --- */
.stats-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item {}
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fadeup {
  animation: fadeUp 0.7s ease forwards;
}
.animate-fadeup.delay-1 { animation-delay: 0.1s; }
.animate-fadeup.delay-2 { animation-delay: 0.2s; }
.animate-fadeup.delay-3 { animation-delay: 0.3s; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 20px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .stats-row { gap: 28px; }
}
