/* ============================================================
   MULE CUP — STYLESHEET
   Colors, fonts, layouts, scroll-snap, responsive design.
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1A3A6B;
  --blue:      #4A6FA5;
  --light-blue:#D5E8F0;
  --gold:      #C8A951;
  --dark:      #111827;
  --text:      #1f2937;
  --muted:     #6b7280;
  --bg:        #ffffff;
  --bg-alt:    #f8fafc;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
}

body { min-height: 100vh; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- SCROLL-SNAP SECTIONS --- */
.section {
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
}
.section:nth-child(odd):not(.hero):not(.section-challenge):not(.section-awards)  { background: var(--bg); }
.section:nth-child(even):not(.hero):not(.section-challenge):not(.section-awards) { background: var(--bg-alt); }

.container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

/* --- NAVIGATION BAR --- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 58, 107, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.nav-brand:hover { text-decoration: none; opacity: 0.9; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- HERO SECTION --- */
.hero {
  background: url('images/mule_cup_background.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 0;
  flex-direction: column;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.45) 0%,
    rgba(26, 58, 107, 0.05) 35%,
    transparent 55%,
    rgba(17, 24, 39, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  margin-top: calc(-38vh - 10px);
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--navy);
  text-shadow: 0 2px 8px rgba(255,255,255,0.4);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--navy);
  opacity: 0.85;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}
.scroll-indicator span {
  font-size: 2rem;
  color: rgba(255,255,255,0.6);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* --- CHALLENGE SECTION --- */
.section-challenge {
  background: url('images/the_challenge_background.png') center/cover no-repeat !important;
}

.challenge-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
}

.challenge-container {
  position: relative;
  z-index: 1;
}

.challenge-body {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}
.challenge-body p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.challenge-cta {
  font-weight: 600;
  color: var(--navy) !important;
  font-size: 1.1rem !important;
}

/* --- AWARDS SECTION --- */
.section-awards {
  background-color: var(--bg-alt) !important;
}

.awards-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(213, 232, 240, 0.92) 0%,
    rgba(248, 250, 252, 0.95) 50%,
    rgba(200, 169, 81, 0.08) 100%
  );
}

.awards-container {
  position: relative;
  z-index: 1;
}

.awards-description {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--text);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 1.5rem;
}

.award-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.award-card h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.award-card ul {
  list-style: none;
  padding: 0;
}
.award-card li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.95rem;
  color: var(--text);
}
.award-card li:last-child { border-bottom: none; }

/* Highlight prize names in Grand Prizes (2nd card) and Fundraising (3rd card) */
.award-card:nth-child(2) li,
.award-card:nth-child(3) li {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}

.awards-footnote {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* --- SPECIAL ATTRACTIONS SECTION --- */
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.attraction-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.attraction-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.attraction-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.attraction-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .attractions-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- MAP / EVENTS SECTION --- */
.events-map-wrap {
  max-width: 700px;
  margin: 0 auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  background: var(--light-blue);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.map-subtitle {
  text-align: center;
  color: var(--navy);
  font-size: 1.1rem;
  padding: 12px 0 8px;
  margin-bottom: 0;
}
.campus-map {
  width: 100%;
}

.location-key {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
}
.location-key th {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.location-key td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
}
.location-key tr:last-child td { border-bottom: none; }
.location-key tbody tr:hover { background: var(--light-blue); }

/* --- RULES SECTION --- */
.rules-overview {
  max-width: 750px;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--text);
}

.rules-single {
  max-width: 700px;
  margin: 0 auto;
}

details {
  margin-bottom: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

summary {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: #fff;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}
summary:hover { background: var(--light-blue); }

summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  transition: transform 0.2s;
}
details[open] summary::after {
  content: '−';
}

summary::-webkit-details-marker { display: none; }

details .rule-body {
  padding: 12px 16px 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  background: #fafbfc;
  border-top: 1px solid #e5e7eb;
  white-space: pre-wrap;
}

.rules-tentative {
  max-width: 700px;
  margin: 12px auto 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* --- SIGN-UP SECTION --- */
.section-signup {
  background: url('images/signup_background.png') center/cover no-repeat !important;
}

.signup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
}

.signup-container {
  position: relative;
  z-index: 1;
}

.signup-card {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(200,169,81,0.12);
}

.signup-card p {
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.signup-link-wrap {
  margin: 1.5rem 0 !important;
}
.signup-link-wrap a {
  display: inline-block;
  background: var(--navy);
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s;
}
.signup-link-wrap a:hover {
  background: var(--blue);
  text-decoration: none;
  transform: translateY(-1px);
}

.signup-referral {
  background: #fef3c7;
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--dark) !important;
  margin-top: 1rem !important;
  box-shadow: 0 2px 10px rgba(200,169,81,0.25);
}

.signup-scroll-prompt {
  text-align: center;
  margin-top: 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: 0.03em;
}

/* --- FUNDRAISING LEADERBOARD --- */
.fundraising-body {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.fundraising-body p {
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.fundraising-important {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--dark) !important;
}

.fundraising-link-wrap a {
  display: inline-block;
  background: var(--navy);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}
.fundraising-link-wrap a:hover {
  background: var(--blue);
  text-decoration: none;
  transform: translateY(-1px);
}

.leaderboard-table {
  width: 100%;
  max-width: 600px;
  margin: 1.5rem auto 0;
  border-collapse: collapse;
}
.leaderboard-table th {
  background: var(--gold);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.leaderboard-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
}
.leaderboard-table tr:last-child td { border-bottom: none; }
.leaderboard-table tbody tr:hover { background: #fef9ee; }

/* --- SPONSORS SECTION --- */
.sponsor-category-title {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}

.sponsor-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sponsor-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.sponsor-card img {
  max-height: 60px;
  margin-bottom: 0.75rem;
}

/* Campus Sponsors: logo on the left, name on the right */
.sponsor-grid-campus {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.sponsor-card-campus {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  gap: 1rem;
}
.sponsor-card-campus img {
  max-height: 100px;
  max-width: 110px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.sponsor-card-campus .sponsor-name {
  font-size: 1.15rem;
  font-weight: 700;
}

@media (max-width: 600px) {
  .sponsor-grid-campus { grid-template-columns: 1fr; }
}

/* Business partners bullet list — two columns */
.sponsor-biz-list {
  max-width: 680px;
  margin: 0 auto 2rem;
  padding-left: 1.5rem;
  line-height: 1.9;
  font-size: 1rem;
  color: var(--text);
  column-count: 2;
  column-gap: 2rem;
}
.sponsor-biz-list li {
  padding: 2px 0;
  break-inside: avoid;
}
.sponsor-card .sponsor-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.sponsor-cta {
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 1rem;
}

/* --- FOOTER --- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  scroll-snap-align: end;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(26,58,107,0.98);
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 0;
  }

  .awards-grid {
    grid-template-columns: 1fr;
  }

  .location-key {
    font-size: 0.85rem;
  }

  h2 { font-size: 2rem; }

  .signup-card { padding: 1.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .section { padding: 80px 16px 40px; }
  h2 { font-size: 1.75rem; }
}
