/* =========================================================
   Manokwari Run 5K — Stylesheet Publik
   Register: sportif-energik (navy gelap + oranye aksen)
   Skala spacing basis 8px. Skala tipografi: 14/16/20/28/40/56/72.
   ========================================================= */

:root {
  --navy-900: #0a1420;
  --navy-800: #0d1b2a;
  --navy-700: #17293b;
  --navy-600: #22394f;
  --ink: #12202e;
  --muted: #5c6b7a;
  --muted-light: #8494a3;
  --line: #e6eaee;
  --paper: #ffffff;
  --bg: #f7f8fa;
  --orange: #ff6a2c;
  --orange-dark: #e2551b;
  --orange-tint: #fff1ea;
  --yellow: #ffb100;
  --green-ok: #1a9e5c;
  --red-err: #d92d20;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 8px 24px rgba(13, 27, 42, 0.08);
  --shadow-pop: 0 16px 40px rgba(13, 27, 42, 0.18);

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--navy-800);
}
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

@media (min-width: 860px) {
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  h3 { font-size: 28px; }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-lg { padding: 96px 0; }
@media (min-width: 860px) {
  .section { padding: 96px 0; }
  .section-lg { padding: 128px 0; }
}
.section-dark { background: var(--navy-800); color: #d7dee6; }
.section-dark h2, .section-dark h3 { color: #ffffff; }
.section-dark p { color: #a9b6c2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--orange);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, background 150ms ease-out;
  min-height: 48px;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(255,106,44,.35); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .btn, .card, .reveal { transition: none !important; }
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,20,32,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--container); margin: 0 auto;
}
.navbar-logo { display: flex; align-items: center; gap: 10px; font-family: 'Poppins',sans-serif; font-weight: 800; color: #fff; font-size: 18px; }
.navbar-logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.navbar-logo img { height: 38px; width: 38px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.navbar-menu { display: none; gap: 28px; }
.navbar-menu a { color: #cdd7e0; font-weight: 600; font-size: 14px; transition: color 150ms ease-out; }
.navbar-menu a:hover { color: #fff; }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-burger { display: inline-flex; background: none; border: none; color: #fff; padding: 8px; }
@media (min-width: 960px) {
  .navbar-menu { display: flex; }
  .navbar-burger { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--navy-900);
  padding: 8px 20px 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: #cdd7e0; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.06); min-height: 44px; display: flex; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #22394f 100%);
}
.hero-photo-slot {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-photo-slot.is-placeholder {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,106,44,.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,177,0,.18), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 34px);
}
.hero-photo-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,20,32,.95) 0%, rgba(10,20,32,.55) 45%, rgba(10,20,32,.35) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 140px 0 64px; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero h1 { color: #fff; font-size: 40px; max-width: 780px; }
@media (min-width: 860px) { .hero h1 { font-size: 72px; } }
.hero-sub { color: #c3cdd6; font-size: 18px; max-width: 560px; margin-bottom: 32px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 720px;
}
@media (min-width: 700px) { .hero-facts { grid-template-columns: repeat(4, 1fr); } }
.hero-fact { background: rgba(10,20,32,.55); padding: 18px 16px; }
.hero-fact-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #92a0ad; margin-bottom: 4px; }
.hero-fact-value { font-size: 18px; font-weight: 800; color: #fff; }
.hero-fact-value .accent { color: var(--orange); }

/* ---------- Photo slot generik (dipakai di galeri/tentang) ---------- */
.photo-slot {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  aspect-ratio: 4 / 5;
  display: flex; align-items: flex-end;
}
.photo-slot.ratio-16-9 { aspect-ratio: 16 / 9; }
.photo-slot.ratio-1-1 { aspect-ratio: 1 / 1; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot-fallback {
  position: relative; z-index: 1;
  width: 100%; padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 70%);
  color: #dfe6ec; font-size: 12px; line-height: 1.5;
}
.photo-slot-fallback b { color: #fff; display: block; font-size: 13px; margin-bottom: 2px; }
.photo-slot-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%);
  opacity: .35; width: 56px; height: 56px;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 24px;
  background: var(--paper); border-radius: var(--radius-lg);
  padding: 32px 24px; box-shadow: var(--shadow-card);
  margin-top: -72px; position: relative; z-index: 5;
}
@media (min-width: 860px) { .stat-strip { grid-template-columns: repeat(4,1fr); } }
.stat-item { text-align: center; }
.stat-value { font-family: 'Poppins',sans-serif; font-weight: 800; font-size: 32px; color: var(--navy-800); }
.stat-value .accent { color: var(--orange); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Grid dua kolom (tentang) ---------- */
.split {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse > *:first-child { order: 2; }
}

/* ---------- Timeline rute ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--orange), var(--navy-600));
}
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -32px; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--navy-800);
}
.timeline-time { font-weight: 800; color: var(--orange); font-size: 14px; margin-bottom: 4px; }
.timeline-title { font-weight: 700; color: #fff; margin-bottom: 2px; }
.timeline-desc { font-size: 14px; color: #a9b6c2; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border-radius: var(--radius-md);
  padding: 28px 24px; box-shadow: var(--shadow-card);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--orange-tint); color: var(--orange);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(2,1fr); }
@media (min-width: 860px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Jersey size chips ---------- */
.size-chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.size-chip {
  border: 2px solid var(--line); border-radius: 12px; padding: 12px 18px;
  text-align: center; min-width: 84px;
}
.size-chip .ukuran { font-family: 'Poppins',sans-serif; font-weight: 800; font-size: 20px; color: var(--navy-800); }
.size-chip .stok { font-size: 12px; color: var(--muted); margin-top: 2px; }
.size-chip.habis { opacity: .45; }
.size-chip .stok.habis-label { color: var(--red-err); font-weight: 700; }

/* ---------- FAQ Accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 4px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 16px; color: var(--navy-800); min-height: 44px;
}
.faq-q .icon { transition: transform 200ms ease-out; color: var(--orange); flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 250ms ease-out; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 4px 20px; color: var(--muted); font-size: 15px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--orange), var(--orange-dark));
  border-radius: var(--radius-lg);
  padding: 48px 32px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.9); }
.cta-banner .btn-dark { background: var(--navy-900); }
.cta-banner .btn-dark:hover { background: #000; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #8ea0b0; padding: 64px 0 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: 'Poppins',sans-serif; font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.footer-logo img { height: 34px; width: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.jersey-photo-card { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(10,20,32,.15); }
.jersey-photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.medal-photo-card { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.medal-photo-card img { display: block; width: 100%; height: auto; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col a { display: block; color: #8ea0b0; font-size: 14px; margin-bottom: 10px; min-height: 22px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px;
}

/* Baris pembuat wicomdigihub — WAJIB, di luar footer utama, tidak boleh disembunyikan */
.kaki-pembuat {
  background: #080b10; padding: 14px 20px; text-align: center;
}
.kaki-pembuat-isi {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
  font-size: 13px; color: #9aa5b4;
}
.kaki-pembuat-isi span b { color: #ffffff; }
.kaki-pembuat-isi a { color: #ffffff; font-weight: 700; transition: color 150ms ease-out; }
.kaki-pembuat-isi a:hover { color: #ffd4da; }

/* ---------- WA Floating Button ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform 150ms ease-out;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 12px; flex-wrap: wrap; }
.countdown-box {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px; padding: 12px 16px; text-align: center; min-width: 68px;
}
.countdown-box .num { font-family: 'Poppins',sans-serif; font-size: 24px; font-weight: 800; color: #fff; }
.countdown-box .lbl { font-size: 11px; color: #9fb3c8; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-680 { max-width: 680px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange-tint); color: var(--orange-dark);
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}

/* ---------- Forms (dipakai juga di daftar.php) ---------- */
.form-card {
  background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 32px 24px;
}
@media (min-width: 700px) { .form-card { padding: 48px; } }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--navy-800); }
.form-label .req { color: var(--red-err); }
.form-hint { font-size: 12px; color: var(--muted-light); margin-top: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 10px;
  padding: 13px 16px; font-size: 16px; font-family: inherit; color: var(--ink);
  background: #fff; transition: border-color 150ms ease-out;
  min-height: 48px;
}
.form-textarea { min-height: 96px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--orange); }
.form-input.err, .form-select.err, .form-textarea.err { border-color: var(--red-err); }
.form-error-text { color: var(--red-err); font-size: 13px; margin-top: 6px; font-weight: 600; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-pill {
  border: 2px solid var(--line); border-radius: 10px; padding: 12px 20px;
  display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 48px;
  cursor: pointer; transition: border-color 150ms ease-out, background 150ms ease-out;
}
.radio-pill input { accent-color: var(--orange); }
.radio-pill:has(input:checked) { border-color: var(--orange); background: var(--orange-tint); }

.jersey-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px,1fr)); gap: 12px; }
.jersey-option {
  border: 2px solid var(--line); border-radius: 12px; padding: 14px 8px; text-align: center;
  cursor: pointer; transition: border-color 150ms ease-out, background 150ms ease-out;
  min-height: 76px;
}
.jersey-option .ukuran { font-family: 'Poppins',sans-serif; font-weight: 800; font-size: 18px; }
.jersey-option .stok { font-size: 11px; color: var(--muted); margin-top: 2px; }
.jersey-option:has(input:checked) { border-color: var(--orange); background: var(--orange-tint); }
.jersey-option.disabled { opacity: .4; pointer-events: none; }
.jersey-option input { position: absolute; opacity: 0; pointer-events: none; }

.alert { border-radius: 10px; padding: 14px 16px; font-size: 14px; margin-bottom: 20px; font-weight: 600; }
.alert-error { background: #fdecea; color: #a01f13; border: 1px solid #f8c9c2; }
.alert-success { background: #eafaf1; color: #12703f; border: 1px solid #b9ecd1; }
.alert-info { background: #eef4fb; color: #1a4a7a; border: 1px solid #c6dcf2; }

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--orange); flex-shrink: 0; }
.checkbox-row label { font-size: 13px; color: var(--muted); }
.checkbox-row a { color: var(--orange-dark); font-weight: 700; }

/* honeypot tersembunyi (anti-bot) */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- QR display (halaman sukses) ---------- */
.qr-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px; text-align: center;
  box-shadow: var(--shadow-card); max-width: 420px; margin: 0 auto;
}
.qr-card img { margin: 0 auto 16px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.qr-kode { font-family: 'Poppins',sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--navy-800); }