/* ============================================================
   Running Montmeyran — Design System
   Palette : Bleu #2C6EA8 (logo) + Orange #FF5C1B (maillot)
   Typo    : Montserrat
   ============================================================ */

/* Google Fonts chargées conditionnellement via JS (RGPD) — pas d'@import ici */

/* ── Variables ──────────────────────────────────────────── */
:root {
  /* Brand */
  --blue:          #2C6EA8;
  --blue-dark:     #1d4f7a;
  --blue-light:    #4a8ec7;
  --blue-faint:    #e8f1f9;
  --orange:        #FF5C1B;
  --orange-dark:   #d94a12;
  --orange-light:  #ff7a47;

  /* Neutrals */
  --white:         #ffffff;
  --bg:            #f7f9fc;
  --bg-card:       #ffffff;
  --text:          #0b1c30;
  --text-light:    #4a5d73;
  --border:        #dde6f0;

  /* Typography */
  --font:          'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale (base 16px) */
  --text-xs:       .75rem;   /* 12px — labels, badges */
  --text-sm:       .875rem;  /* 14px — metadata, captions */
  --text-base:     1rem;     /* 16px — corps */
  --text-md:       1.125rem; /* 18px — lead */
  --text-lg:       1.25rem;  /* 20px — h4 */
  --text-xl:       1.5rem;   /* 24px — h3 */

  /* Readable line length */
  --prose-width:   68ch;

  /* Spacing (8px base) */
  --gap:           8px;
  --section-desk:  120px;
  --section-mob:   64px;
  --gutter:        24px;
  --margin-desk:   80px;
  --margin-mob:    20px;
  --max-width:     1440px;

  /* Radius */
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;

  /* Shadows */
  --shadow-card:   0 2px 12px rgba(11,28,48,.08);
  --shadow-nav:    0 1px 0 var(--border);

  /* Palette événements */
  --pink-october:  #c2185b;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; background: var(--text); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
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); }

/* ── Accessibilité ──────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--blue); color: var(--white);
  padding: 10px 20px; border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: .875rem; font-weight: 700; z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible { outline-color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Typography ─────────────────────────────────────────── */
.h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; }
.h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.h4 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.label {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--text-light); }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--margin-mob);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--margin-desk); }
}

.section { padding-block: var(--section-mob); }
@media (min-width: 768px) { .section { padding-block: var(--section-desk); } }

.section p, .lead { text-align: justify; hyphens: auto; }
.text-center p, .text-center .lead { text-align: center; }
.hero p, .hero .lead, .page-header p, .page-header .lead { text-align: left; hyphens: none; }

.grid-2 { display: grid; gap: calc(var(--gutter) * 2); }
.grid-3 { display: grid; gap: calc(var(--gutter) * 2); }
.grid-4 { display: grid; gap: var(--gutter); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-size: .875rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
  touch-action: manipulation;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateX(2px);
}
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(11,28,48,.1); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 0; }
.nav-logo-icon { height: 40px; width: auto; flex-shrink: 0; }
.nav-logo-name { white-space: nowrap; line-height: 1; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-style: italic; margin-left: -1px; padding-top: 3px; }
.nav-logo-running { font-size: 1.55rem; color: var(--text); text-transform: uppercase; }
.nav-logo-club    { font-size: 1.55rem; color: var(--blue); text-transform: uppercase; }
.nav-links {
  display: none;
  gap: 20px;
  align-items: center;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-light);
  transition: color .15s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }
.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 6px;
  position: relative; z-index: 151;
}
@media (min-width: 900px) { .nav-burger { display: none; } }
.nav-burger span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: all .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu — overlay plein écran */
.nav-backdrop {
  position: fixed; inset: 0;
  z-index: 149;
  background: rgba(11,28,48,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

.nav-mobile {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(88vw, 340px);
  z-index: 150;
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  padding: 0 0 32px;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  visibility: hidden;
  box-shadow: -8px 0 40px rgba(11,28,48,.18);
}
.nav-mobile.open {
  transform: translateX(0);
  visibility: visible;
}

/* Header du drawer */
.nav-mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  min-height: 72px;
  flex-shrink: 0;
}
.nav-mobile-close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-light);
  transition: background .15s, color .15s;
}
.nav-mobile-close:hover { background: var(--bg); color: var(--text); }

/* Items du drawer */
.nav-mobile-body { padding: 12px 0; flex: 1; }
.nav-mobile a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text);
  padding: 0 20px;
  min-height: 52px;
  transition: background .15s, color .15s;
  border-radius: 0;
}
.nav-mobile a:hover { background: var(--bg); color: var(--blue); }
.nav-mobile a svg.nav-arrow { flex-shrink: 0; opacity: .35; }

/* Section label */
.nav-mobile-label {
  font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-light);
  padding: 20px 20px 6px;
  margin-top: 4px;
}
/* Sous-items courses */
.nav-mobile a.nav-sub {
  padding-left: 36px;
  font-size: .8rem;
  color: var(--text-light);
  min-height: 46px;
}
.nav-mobile a.nav-sub:hover { color: var(--blue); }

/* Séparateur */
.nav-mobile-sep {
  height: 1px; background: var(--border);
  margin: 8px 20px;
}

/* CTA */
.nav-mobile-cta {
  padding: 16px 20px 0;
  flex-shrink: 0;
}
.nav-mobile .btn { justify-content: center; width: 100%; }

/* ── Nav dropdown ───────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-light);
  transition: color .15s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.nav-dropdown-trigger svg { transition: transform .2s ease; flex-shrink: 0; }
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }
/* Pont invisible entre le trigger et le menu pour maintenir le hover */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: -16px; right: -16px;
  height: 20px;
  display: none;
}
.nav-dropdown:hover::after { display: block; }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(11,28,48,.13), 0 2px 8px rgba(11,28,48,.06);
  min-width: 210px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--border);
}
.nav-dropdown-menu::after {
  content: '';
  position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--white);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-light);
  transition: background .15s, color .15s;
}
.nav-dropdown-item svg { flex-shrink: 0; opacity: .6; transition: opacity .15s; }
.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: var(--blue-faint);
  color: var(--blue);
}
.nav-dropdown-item:hover svg,
.nav-dropdown-item.active svg { opacity: 1; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  margin-top: 72px;
  overflow: visible;
  background: var(--blue-dark);
  z-index: 1;
}
@media (min-width: 640px) {
  .hero {
    min-height: 0;
    height: calc(100vh - 72px);
  }
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(11,28,48,.94) 0%,
    rgba(11,28,48,.72) 50%,
    rgba(11,28,48,.22) 100%
  );
}
.hero-body {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--margin-mob);
  padding-top: 56px; padding-bottom: 56px;
}
@media (min-width: 768px) {
  .hero-body { padding-inline: var(--margin-desk); }
}
@media (max-width: 639px) {
  .hero { min-height: 0; }
  .hero-body {
    min-height: 60vh;
    align-items: flex-start;
    padding-top: 48px; padding-bottom: 48px;
  }
}
.hero-content { max-width: 620px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--orange); margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 2px; background: var(--orange);
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--orange); }
.hero .lead { color: rgba(255,255,255,.82); margin-bottom: 40px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Floating event card (desktop only) */
.hero-event-card {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}
@media (max-width: 899px) { .hero-event-card { display: none; } }
.hero-event-card-poster img {
  width: 100%; height: 320px;
  object-fit: contain; object-position: top;
  background: rgba(0,0,0,.18);
  display: block;
}
.hero-event-card-body {
  padding: 16px 18px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-event-card-eyebrow {
  font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 6px;
}
.hero-event-card-title {
  font-size: .95rem; font-weight: 800; color: white;
  line-height: 1.3; margin-bottom: 4px;
}
.hero-event-card-date {
  font-size: .78rem; color: rgba(255,255,255,.65); margin-bottom: 14px;
}

/* Stats — floating card bottom-right */
.hero-stats {
  position: absolute;
  bottom: 16px;
  right: var(--margin-desk);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, auto);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(11,28,48,.18), 0 4px 16px rgba(11,28,48,.08);
  border: 1px solid rgba(255,255,255,.5);
  overflow: hidden;
}
@media (max-width: 639px) {
  .hero-stats {
    position: static;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
}
@media (min-width: 640px) and (max-width: 1100px) {
  .hero-stats { right: var(--margin-mob); }
}
.hero-stat {
  padding: 18px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
  min-width: 0;
}
@media (max-width: 639px) {
  .hero-stat { border-bottom: 1px solid var(--border); }
  .hero-stat:nth-child(even) { border-right: none; }
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) { border-bottom: none; }
}
@media (min-width: 640px) {
  .hero-stat:last-child { border-right: none; }
}
.hero-stat-number {
  font-size: 1.875rem; font-weight: 900; color: var(--orange);
  line-height: 1;
}
.hero-stat-label {
  font-size: .6rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-light);
  margin-top: 5px; line-height: 1.3;
}

/* ── Section header ─────────────────────────────────────── */
.section-header { margin-bottom: 56px; }
.section-header .label { color: var(--orange); margin-bottom: 12px; }
.section-header h2 { color: var(--text); }
.section-header h2 span { color: var(--blue); }
.section-header .lead { margin-top: 16px; max-width: 560px; }
.section-header .accent-bar {
  display: block; width: 48px; height: 3px;
  background: var(--orange); margin-top: 16px;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.card:active { transform: translateY(0); box-shadow: none; }
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px; }
.card-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-faint);
  padding: 4px 10px; border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.card-tag.orange { color: var(--orange); background: #fff2ec; }
.card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.card-meta {
  font-size: .8rem; color: var(--text-light);
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-meta-item { display: flex; align-items: center; gap: 6px; }

/* Event card variant */
.event-card {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 0;
}
@media (max-width: 480px) {
  .event-card { grid-template-columns: 64px 1fr; }
}
.event-date-box {
  background: var(--blue);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 8px;
  text-align: center;
}
.event-date-box .day { font-size: 1.75rem; font-weight: 900; line-height: 1; }
@media (max-width: 480px) { .event-date-box .day { font-size: 1.4rem; } }
.event-date-box .month { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.event-date-box.orange { background: var(--orange); }
.event-info { padding: 20px; }
.event-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.event-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.badge {
  font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
}
.badge-km { background: var(--blue-faint); color: var(--blue); }
.badge-dénivelé { background: #f0f9f0; color: #2d7a2d; }
.badge-ouvert { background: #fff2ec; color: var(--orange); }
.badge-complet { background: #fef2f2; color: #dc2626; }

/* ── Sponsor grid ───────────────────────────────────────── */
.sponsor-tier { margin-bottom: 56px; }
.sponsor-tier-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-light); text-align: center; margin-bottom: 24px;
  position: relative;
}
.sponsor-tier-label::before,
.sponsor-tier-label::after {
  content: ''; position: absolute; top: 50%;
  width: 30%; height: 1px; background: var(--border);
}
.sponsor-tier-label::before { left: 0; }
.sponsor-tier-label::after { right: 0; }
.sponsor-logos {
  display: flex; flex-wrap: wrap;
  gap: 16px; justify-content: center; align-items: center;
}
.sponsor-logo {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  transition: box-shadow .2s, transform .2s;
}
.sponsor-logo:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.sponsor-logo img { height: 56px; width: auto; filter: grayscale(1); opacity: .65; transition: all .2s; }
.sponsor-logo:hover img { filter: grayscale(0); opacity: 1; }
.sponsor-logo.gold { border-color: #f59e0b; }
.sponsor-logo.gold img { height: 72px; }

/* ── Blog post card ─────────────────────────────────────── */
.post-card { }
.post-card .social-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px; margin-bottom: 12px;
}
.post-card .social-badge.instagram { background: #fdf2fa; color: #c2185b; }
.post-card .social-badge.facebook { background: #eff5ff; color: #1877f2; }
.post-card .social-badge.club { background: var(--blue-faint); color: var(--blue); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.8);
  padding-block: 64px 32px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; }
}
.footer-brand img { height: 36px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: .9rem;
  color: rgba(255,255,255,.65);
  padding: 6px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: .8rem; color: rgba(255,255,255,.4);
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all .2s;
  touch-action: manipulation;
}
.footer-socials a:hover { border-color: var(--orange); color: var(--orange); }
.footer-socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ── Breadcrumb & page header ───────────────────────────── */
.page-header {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 72px 0;
  color: var(--white);
}
.page-header .label { color: rgba(255,255,255,.6); margin-bottom: 12px; }
.page-header h1 { color: var(--white); }
.page-header h1 span { color: var(--orange); }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-light); }
.form-control {
  padding: 12px 16px;
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem;
  color: var(--text); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  touch-action: manipulation;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44,110,168,.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Utilities ──────────────────────────────────────────── */
.text-orange { color: var(--orange); }
.text-blue   { color: var(--blue); }
.text-light  { color: var(--text-light); }
.bg-faint    { background: var(--bg); }
.bg-blue     { background: var(--blue); color: var(--white); }
.bg-dark     { background: var(--text); color: var(--white); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.text-center { text-align: center; }

/* ── Sponsor ticker ─────────────────────────────────────── */
#sponsor-ticker { overflow: hidden; min-height: 132px; opacity: 0; transition: opacity .4s ease; }
.ticker-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 0;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
#sponsor-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--ticker-offset, -50%)); }
}
.ticker-logo-slot {
  flex-shrink: 0;
  width: 200px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.ticker-logo-img {
  max-height: 80px;
  max-width: 152px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ── Sponsor cards (page sponsors) ─────────────────────── */
.sponsor-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: box-shadow .2s;
}
.sponsor-card:hover { box-shadow: var(--shadow-card); }
@media (max-width: 639px) {
  .sponsor-card { grid-template-columns: 1fr; text-align: center; }
}
.sponsor-card-logo {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 20px; height: 120px;
  border: 1px solid var(--border);
}
@media (max-width: 639px) { .sponsor-card-logo { height: 96px; } }
.sponsor-card-logo img { max-height: 80px; max-width: 120px; object-fit: contain; }
.sponsor-card-name { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.sponsor-card-desc { font-size: .9rem; line-height: 1.7; color: var(--text-light); max-width: var(--prose-width); }
.sponsor-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--blue);
  transition: gap .15s;
}
.sponsor-card-link:hover { gap: 10px; }
.sponsor-social-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  opacity: .75; transition: opacity .15s;
}
.sponsor-social-link:hover { opacity: 1; }

/* ── About image badge (overflow fix) ───────────────────── */
.about-img-wrap {
  position: relative;
  padding-right: 24px;
  padding-bottom: 24px;
}
@media (min-width: 768px) {
  .about-img-wrap { padding-right: 0; padding-bottom: 0; }
}
.about-badge {
  position: absolute; bottom: 0; right: 0;
  background: var(--orange); color: white;
  padding: 20px 24px; border-radius: var(--radius-md);
  font-weight: 800; text-align: center; line-height: 1.2;
}
@media (min-width: 768px) {
  .about-badge { bottom: -24px; right: -24px; }
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

/* ── Back to top ────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255,92,27,.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, background .2s;
  pointer-events: none;
  z-index: 900;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover { background: var(--orange-dark); }
#back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 767px) {
  #back-to-top { bottom: 20px; right: 16px; }
}
