/* ================================================================
   ABSA Marathon Zambia — Main Stylesheet
   Palette: Absa Red #DC143C (CTAs only) · Navy #0F2A52 (IPES-aligned) · Gold #C9A84C · Warm White #F8F6F1
   Type: Barlow Condensed (display) + Inter (body)
================================================================ */

:root {
  --absa-red:    #DC143C;
  --absa-dark:   #0F2A52;
  --absa-gold:   #C9A84C;
  --absa-light:  #F8F6F1;
  --absa-mid:    #1B3A6B;
  --text-muted:  #5C6678;
  --border:      rgba(0,0,0,.08);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  background: #fff;
  color: var(--absa-dark);
  line-height: 1.65;
}

/* ── Display type ── */
.display-heading, h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── Top bar ── */
.topbar {
  background: var(--absa-dark);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  padding: 6px 0;
}
.topbar a { color: rgba(255,255,255,.7); text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ── Navbar ── */
.site-nav {
  background: var(--absa-red);
  padding: 0;
  box-shadow: 0 2px 16px rgba(220,20,60,.25);
}
.site-nav .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 1.1rem .9rem !important;
  transition: color .2s;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: #fff !important;
  background: rgba(0,0,0,.15);
  border-radius: 4px;
}
.brand-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: .04em;
}
.brand-thin { font-weight: 600; opacity: .85; margin-left: 4px; }

/* ── CTA Button ── */
.btn-absa {
  background: #fff;
  color: var(--absa-red) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 4px;
  padding: .55rem 1.3rem;
  border: none;
  transition: background .2s, transform .1s;
}
.btn-absa:hover { background: var(--absa-light); transform: translateY(-1px); }
.btn-absa-red {
  background: var(--absa-red);
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: none;
  border-radius: 4px;
  padding: .7rem 2rem;
  transition: background .2s, transform .1s;
}
.btn-absa-red:hover { background: #b5102f; transform: translateY(-1px); }

/* ══════════════════════════════════════════
   HOMEPAGE
══════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 88vh;
  background: linear-gradient(135deg, var(--absa-dark) 0%, var(--absa-mid) 60%, #3a1020 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(220,20,60,.18) 0%, transparent 70%),
    var(--hero-img, url('/assets/images/hero-bg.jpg')) center/cover no-repeat;
  opacity: .35;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--absa-gold);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: .95;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-title span { color: var(--absa-red); }
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 500px;
  margin-bottom: 2.5rem;
}
.hero-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-badge {
  text-align: center;
  border-left: 2px solid var(--absa-red);
  padding-left: 1rem;
}
.hero-badge-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-badge-label { font-size: 11px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; }

/* ── Countdown ── */
.countdown-bar {
  background: var(--absa-red);
  padding: 1.25rem 0;
  position: relative;
  z-index: 1;
}
.countdown-unit { text-align: center; padding: 0 1.5rem; }
.countdown-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.countdown-label { font-size: 10px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .15em; }
.countdown-divider { font-size: 2rem; color: rgba(255,255,255,.4); padding-top: .3rem; }

/* ── Section labels ── */
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--absa-red);
  margin-bottom: .5rem;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--absa-dark);
}

/* ── Race distances ── */
.distance-card {
  background: var(--absa-light);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  border-bottom: 4px solid transparent;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.distance-card:hover {
  border-color: var(--absa-red);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(220,20,60,.12);
}
.distance-card .dist-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 3.5rem);
  font-weight: 800;
  color: var(--absa-red);
  line-height: 1;
  white-space: nowrap;
}

/* ── Gallery tabs ── */
.gallery-tabs .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: .6rem 1.2rem;
}
.gallery-tabs .nav-link.active {
  color: var(--absa-red);
  border-bottom-color: var(--absa-red);
  background: none;
}
.swiper-img { width: 100%; height: 280px; object-fit: cover; border-radius: 6px; }
.swiper-button-next, .swiper-button-prev {
  color: var(--absa-red) !important;
}

/* ── Winners table ── */
.winners-section { background: var(--absa-dark); }
.winners-section .section-title { color: #fff; }
.winners-section .section-eyebrow { color: var(--absa-gold); }
.winners-tabs .nav-link {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  margin-right: 6px;
  padding: .4rem 1rem;
}
.winners-tabs .nav-link.active { background: var(--absa-red); color: #fff; border-color: var(--absa-red); }
.winners-table { color: rgba(255,255,255,.85); }
.winners-table thead th {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: none;
  padding: .75rem 1rem;
}
.winners-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
}
.winners-table tbody tr:hover { background: rgba(255,255,255,.04); }
.winners-table tbody td { padding: .85rem 1rem; border: none; font-size: .95rem; }
.pos-1 { color: var(--absa-gold); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; }
.pos-2 { color: #c0c0c0; }
.pos-3 { color: #cd7f32; }

/* ── Blog cards ── */
.blog-card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.blog-card img { height: 200px; object-fit: cover; }
.blog-card .card-body { padding: 1.5rem; }
.blog-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--absa-red);
}

/* ══════════════════════════════════════════
   ACCOMMODATION & NUTRITION (inner pages)
══════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--absa-dark) 0%, var(--absa-mid) 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(to left, rgba(220,20,60,.12), transparent);
}
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
}
.page-hero p { color: rgba(255,255,255,.7); max-width: 560px; }
.breadcrumb-item a { color: rgba(255,255,255,.6); text-decoration: none; }
.breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

.info-card {
  background: var(--absa-light);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  border-left: 4px solid var(--absa-red);
}
.info-card h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

/* ══════════════════════════════════════════
   REGISTRATION
══════════════════════════════════════════ */
.reg-tabs .nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 6px;
  padding: .65rem 1rem;
  text-align: left;
  transition: all .15s;
}
.reg-tabs .nav-link.active {
  background: var(--absa-red);
  color: #fff;
  border-color: var(--absa-red);
}
.reg-tabs .nav-link i { margin-right: 8px; }
.form-label { font-weight: 500; font-size: 14px; color: var(--absa-dark); }
.form-control, .form-select {
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 15px;
  padding: .6rem .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--absa-red);
  box-shadow: 0 0 0 3px rgba(220,20,60,.12);
}
.reg-price-badge {
  background: var(--absa-red);
  color: #fff;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}
.fee-table td, .fee-table th { font-size: 14px; }

/* ══════════════════════════════════════════
   RUNNERS PAGE
══════════════════════════════════════════ */
.runners-search {
  background: var(--absa-light);
  border-radius: 8px;
  padding: 2.5rem;
}
.runner-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--absa-red);
}
.runner-stat { text-align: center; }
.runner-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--absa-red);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: var(--absa-dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.footer-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: .5rem; font-size: 14px; }
.footer-links a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: all .15s;
  font-size: 15px;
}
.footer-social:hover { background: var(--absa-red); border-color: var(--absa-red); color: #fff; }
.footer-divider { border-color: rgba(255,255,255,.08); }

/* ── Alerts ── */
.alert-success { border-left: 4px solid #198754; }
.alert-danger  { border-left: 4px solid var(--absa-red); }

/* ── Utilities ── */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }
.bg-light-warm { background: var(--absa-light); }

@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero-title { font-size: 3rem; }
  .countdown-num { font-size: 2rem; }
  .countdown-unit { padding: 0 .75rem; }
}