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

:root {
  --blue: #2D3190;
  --red: #C84040;
  --dark: #2D3190;
  --cream: #FAF5EF;
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--cream);
  box-shadow: none;
}

/* ===== HEADER ===== */
.header {
  background: var(--blue);
  border-bottom: 4px solid var(--red);
  padding: 0 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: 1100px;
  margin: 0 auto;
  transition: transform 0.32s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.header.is-scrolled {
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.header.is-hidden {
  transform: translateY(-100%);
}

/* Tighter padding/smaller height on mobile for unobtrusiveness */
@media (max-width: 768px) {
  .header .btn-register {
    padding: 10px 22px;
    font-size: 12px;
    letter-spacing: 1px;
  }
}

.btn-register {
  background: var(--red);
  color: var(--white);
  padding: 14px 36px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  display: inline-block;
  position: relative;
  box-shadow: 0 4px 12px rgba(200, 64, 64, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  will-change: transform;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 64, 64, 0.38);
  background: #d65050;
}

.btn-register:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(200, 64, 64, 0.3);
  transition-duration: 0.08s;
}

.btn-register:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

/* ===== HERO ===== */
.hero {
  background: var(--cream);
  text-align: center;
  padding: 60px 10% 50px;
}

.hero-logo {
  width: 550px;
  height: 550px;
  margin: 0 auto 30px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--dark);
}

.hero-date {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-top: 12px;
}

.hero .btn-register {
  margin-top: 24px;
  display: inline-block;
}

/* ===== SECTION SHARED ===== */
.section {
  padding: 60px 10%;
  text-align: center;
}

.section-heading {
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* ===== FORMAT ===== */
.format {
  background: var(--cream);
  text-align: left;
  padding: 30px 0;
}

.format p {
  font-size: 16px;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== LOCATION ===== */
.location {
  display: flex;
  align-items: stretch;
  background: var(--cream);
}

.location-photo {
  flex: 3;
  min-height: 300px;
  background: #ccc;
  background-size: cover;
  background-position: center;
}

.location-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-info {
  flex: 2;
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.location-info .section-heading {
  font-size: 42px;
}

.location-info p {
  font-size: 16px;
  color: var(--dark);
  line-height: 1.8;
  margin-top: 12px;
}

/* ===== EVENTS & DIVISIONS ===== */
.events {
  background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%);
  text-align: left;
  padding: 60px 40px;
  color: var(--white);
  margin-top: 40px;
}

.events .section-heading {
  color: var(--white);
}

.events-intro {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
  margin: 0 0 40px;
  max-width: 70%;
}

.events-grid {
  display: flex;
  gap: 80px;
  justify-content: flex-start;
}

.events-column {
  text-align: left;
}

.events-column h3 {
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.events-column ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0;
}

.events-column li {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  padding: 6px 0;
}

/* ===== SPONSORS ===== */
.sponsors {
  background: var(--cream);
  text-align: center;
  padding: 70px 10%;
}

.sponsors .section-heading {
  color: var(--dark);
  font-size: 48px;
}

.sponsors-subtitle {
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.sponsors-logos {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.sponsor-logo {
  background: transparent;
  width: 340px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
}

.sponsors-cta {
  color: var(--dark);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 20px;
}

/* ===== GET INVOLVED ===== */
.get-involved {
  display: flex;
  align-items: stretch;
  margin-top: 40px;
}

.get-involved-info {
  flex: 1;
  background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.get-involved-info h2 {
  font-size: 42px;
  font-weight: 800;
}

.get-involved-info .divider {
  width: 50px;
  height: 3px;
  background: var(--white);
  margin: 16px 0 24px;
}

.get-involved-info p {
  font-size: 15px;
  line-height: 1.8;
}

.get-involved-info a {
  color: var(--white);
}

.get-involved-form {
  flex: 1;
  background: var(--cream);
  padding: 60px 50px;
  text-align: left;
}

.get-involved-form h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #999;
  background: var(--white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-send {
  background: var(--red);
  color: var(--white);
  padding: 14px 40px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  width: 100%;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(200, 64, 64, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 64, 64, 0.38);
  background: #d65050;
}

.btn-send:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(200, 64, 64, 0.3);
  transition-duration: 0.08s;
}

/* ===== SCROLL-IN ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger child columns within the events grid */
.events-grid .events-column {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.events.is-visible .events-column:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.events.is-visible .events-column:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .events-grid .events-column,
  .btn-register,
  .btn-send,
  .header {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header {
    padding: 0 20px;
    height: 60px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-logo {
    width: 160px;
    height: 160px;
  }

  .hero-date {
    font-size: 22px;
  }

  .section {
    padding: 40px 20px;
  }

  .section-heading {
    font-size: 28px;
  }

  .location {
    flex-direction: column;
  }

  .location-photo {
    min-height: 200px;
  }

  .location-info {
    padding: 30px 20px;
  }

  .location-info .section-heading {
    font-size: 28px;
  }

  .events {
    padding: 40px 20px;
  }

  .events-grid {
    flex-direction: column;
    gap: 30px;
  }

  .events-column h3 {
    font-size: 20px;
  }

  .events-column li {
    font-size: 17px;
  }

  .events-intro {
    max-width: 100%;
  }

  .sponsors {
    padding: 50px 20px;
  }

  .sponsors .section-heading {
    font-size: 32px;
  }

  .get-involved {
    flex-direction: column;
  }

  .get-involved-info,
  .get-involved-form {
    padding: 40px 20px;
  }

  .get-involved-info h2 {
    font-size: 28px;
  }
}
