/* =========================================================
   AZ Fun Run — azfunrun.com
   ========================================================= */

:root {
  --yellow:  #FFD600;
  --pink:    #FF3DAA;
  --blue:    #00AEEF;
  --green:   #5DD400;
  --orange:  #FF7A00;
  --purple:  #8B2BE2;
  --white:   #FFFFFF;
  --dark:    #1A1A2E;
  --text:    #2D2D2D;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nav-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.7rem;
  color: var(--pink);
  text-decoration: none;
  letter-spacing: 1px;
}
.nav-logo span { color: var(--blue); }

nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  align-items: center;
}

nav ul a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color .2s;
}
nav ul a:hover { color: var(--pink); }

.nav-cta {
  background: var(--pink);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  transition: transform .2s, background .2s !important;
}
.nav-cta:hover { background: var(--orange) !important; transform: scale(1.05); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #fff7c0 0%, #ffe0f7 40%, #d0f4ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.22;
  animation: floatBlob 7s ease-in-out infinite;
  filter: blur(2px);
}
.blob-1 { width: 320px; height: 320px; background: var(--pink);   top: -60px;    left: -80px;  animation-delay: 0s; }
.blob-2 { width: 260px; height: 260px; background: var(--blue);   bottom: -40px; right: -60px; animation-delay: 2s; }
.blob-3 { width: 180px; height: 180px; background: var(--yellow); top: 30%;      right: 8%;    animation-delay: 1s; }
.blob-4 { width: 140px; height: 140px; background: var(--green);  bottom: 20%;   left: 6%;     animation-delay: 3s; }
.blob-5 { width: 100px; height: 100px; background: var(--orange); top: 20%;      left: 18%;    animation-delay: 1.5s; }

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.05); }
}

.hero-eyebrow {
  background: var(--yellow);
  color: var(--dark);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 1.05;
  color: var(--dark);
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
}
.hero h1 .line-pink { color: var(--pink); display: block; }
.hero h1 .line-blue { color: var(--blue); display: block; }

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: #444;
  max-width: 600px;
  margin: 20px auto 40px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  letter-spacing: .5px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

.btn-primary   { background: var(--pink); color: var(--white); }
.btn-secondary { background: var(--blue); color: var(--white); }

.hero-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  animation: bounce 1.8s ease-in-out infinite;
  z-index: 2;
  color: var(--pink);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark);
  padding: 28px 24px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat { text-align: center; color: var(--white); }
.stat-num {
  font-family: 'Fredoka One', cursive;
  font-size: 2.4rem;
  color: var(--yellow);
  display: block;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ── SECTION BASE ── */
section { padding: 90px 24px; }

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 14px;
  color: var(--dark);
}
.section-sub {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #666;
  max-width: 560px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

/* ── HOW IT WORKS ── */
.how-section { background: #fff; }

.steps {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.step {
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 24px;
  padding: 36px 28px;
  max-width: 280px;
  text-align: center;
  position: relative;
  box-shadow: 5px 5px 0 var(--dark);
  transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--dark); }

.step-num {
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 12px;
}
.step:nth-child(1) .step-num { color: var(--pink); }
.step:nth-child(2) .step-num { color: var(--blue); }
.step:nth-child(3) .step-num { color: var(--green); }
.step:nth-child(4) .step-num { color: var(--orange); }

.step-icon { font-size: 3rem; margin-bottom: 10px; }

.step h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 10px;
}
.step p { font-size: 0.95rem; line-height: 1.6; color: #555; }

/* ── EVENTS ── */
.events-section {
  background: linear-gradient(160deg, #fff9e0, #ffe8f7, #e0f7ff);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.event-card {
  border-radius: 28px;
  padding: 44px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .25s;
}
.event-card:hover { transform: scale(1.03); }

.event-card.fun-run   { background: var(--blue); color: var(--white); }
.event-card.color-run { background: var(--pink); color: var(--white); }

.event-card .card-icon { font-size: 4rem; margin-bottom: 14px; display: block; }
.event-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  margin-bottom: 12px;
}
.event-card p { font-size: 1rem; line-height: 1.65; opacity: 0.92; }

.event-card ul {
  list-style: none;
  margin-top: 20px;
  text-align: left;
  display: inline-block;
}
.event-card ul li {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 5px 0;
  opacity: 0.95;
}
.event-card ul li::before { content: '✓  '; font-weight: 900; }

/* ── WHY ── */
.why-section { background: var(--dark); }
.why-section .section-title { color: var(--white); }
.why-section .section-sub   { color: var(--white); opacity: 0.75; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1060px;
  margin: 0 auto;
}

.why-card {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  transition: background .2s, transform .2s;
}
.why-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }

.why-card .why-icon { font-size: 2.8rem; margin-bottom: 12px; display: block; }
.why-card h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.25rem;
  color: var(--yellow);
  margin-bottom: 8px;
}
.why-card p { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.72); }

/* ── FAQ ── */
.faq-section { background: #fffdf5; }

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 18px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--dark);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 26px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  color: var(--dark);
  position: relative;
  padding-right: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: var(--pink);
  line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--pink); }

.faq-item p {
  padding: 0 26px 22px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #555;
}

/* ── CONTACT ── */
.contact-section {
  background: linear-gradient(135deg, var(--pink) 0%, var(--orange) 100%);
  text-align: center;
  padding: 90px 24px;
}
.contact-section .section-title { color: var(--white); }
.contact-section .section-sub   { color: rgba(255,255,255,0.88); }

.contact-card {
  background: var(--white);
  border-radius: 28px;
  padding: 50px 40px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
}
.field input,
.field select,
.field textarea {
  padding: 13px 16px;
  border: 2.5px solid #ddd;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s;
  outline: none;
  background: var(--white);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--pink); }
.field input.invalid,
.field select.invalid,
.field textarea.invalid { border-color: #e02020; }
.field textarea { resize: vertical; min-height: 100px; }

/* honeypot — hidden from humans, visible to naive bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  width: 0;
}

.submit-btn {
  width: 100%;
  padding: 17px;
  background: var(--pink);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform .2s, background .2s;
  margin-top: 8px;
}
.submit-btn:hover:not(:disabled) { background: var(--orange); transform: translateY(-2px); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.form-status {
  margin-top: 14px;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  min-height: 1.2em;
}
.form-status.error   { color: #c0122a; }
.form-status.success { color: #1e8e3e; }

.form-success {
  text-align: center;
  padding: 20px 0;
}
.form-success .big {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: var(--pink);
  margin-bottom: 10px;
}
.form-success p { font-size: 1rem; line-height: 1.6; color: #555; }

.contact-alt {
  font-size: .85rem;
  color: #888;
  font-weight: 700;
  text-align: center;
}
.contact-alt a { color: var(--pink); }

/* ── CONFETTI DOTS ── */
.confetti-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 14px;
}
.dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  animation: popIn .4s ease both;
}
@keyframes popIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ── FOOTER ── */
footer {
  background: #111;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 30px 24px;
  font-size: 0.88rem;
  font-weight: 600;
}
footer a { color: var(--yellow); text-decoration: none; }

/* ── SCROLL FADE-IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SIMPLE PAGES (thank-you / 404) ── */
.simple-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(135deg, #fff7c0 0%, #ffe0f7 40%, #d0f4ff 100%);
  position: relative;
  overflow: hidden;
}
.simple-page h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  color: var(--pink);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.simple-page p {
  font-size: 1.15rem;
  font-weight: 600;
  color: #444;
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 34px;
  position: relative;
  z-index: 2;
}
.simple-page .big-emoji {
  font-size: 5rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  animation: bounce 1.8s ease-in-out infinite;
}

/* ── ACCESSIBILITY ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* ── MOBILE ── */
@media (max-width: 760px) {
  nav ul { display: none; }
  .stats-bar { gap: 28px; }
  .contact-card { padding: 34px 22px; }
  nav { padding: 12px 20px; }
}
