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

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Bitter', Georgia, serif;
  color: #212020;
  background-color: #dedede;
  line-height: 1.6;
  font-size: 18px;
}

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

a:hover {
  opacity: 0.8;
}

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

h1, h2, h3, h4 {
  font-family: 'Young Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  color: #374F2F;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #374F2F;
}

h4 {
  font-size: 1.2rem;
  color: #374F2F;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Snap sections */
section, footer {
  scroll-snap-align: start;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* Next button */
#next-btn {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  background: #374F2F;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.3s ease;
  pointer-events: none;
}

#next-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

#next-btn:hover {
  transform: translateX(-50%) translateY(-3px);
}

#next-btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  #next-btn { display: none; }
}

/* === Section 1: Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  overflow: hidden;
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-logo {
  width: 320px;
  height: auto;
  margin: 0 auto 2rem;
  filter: none;
}

.hero h1 {
  font-family: 'Young Serif', Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
}

/* === Section 2: Intro === */
.intro {
  background-color: #374F2F;
  padding: 1.5rem 0 2.5rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.intro .container {
  width: 100%;
}

.intro h2 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin-bottom: 1rem;
}

.intro p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  max-width: 950px;
  margin: 0 auto 0.8rem;
  text-align: left;
}

.intro-image {
  max-width: 750px;
  width: 100%;
  margin: 0 auto 1.5rem;
  border-radius: 4px;
}

/* === Section 3: Info === */
.info {
  background-color: #fff;
  padding: 4rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.map-image {
  width: 100%;
  border-radius: 4px;
}

.info-details h2 {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  margin-bottom: 0;
}

.info-details h3 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

.info-item {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  color: #212020;
}

.info-item strong {
  display: block;
  font-size: 1.25rem;
}

.info-distances {
  font-size: 1.1rem;
  color: #212020;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.info-note {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  font-style: italic;
  color: #555;
  line-height: 1.8;
}

/* === Section 4: Registration === */
.registration {
  position: relative;
  padding: 2rem 0 1.5rem;
  background-color: #e8e4dd;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.registration-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
}

.registration .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.registration-grid {
  display: grid;
  grid-template-columns: 1fr 260px 280px;
  gap: 3rem;
  align-items: center;
}

.registration-form {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 1.5rem 2rem 2rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.registration h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
  text-align: left;
}

.reg-intro {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  margin-bottom: 0.5rem;
  color: #374F2F;
  text-align: left;
}

.reg-payment {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #374F2F;
  text-align: left;
}

/* Form Styles */
.registration-form label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #374F2F;
  display: block;
  margin-bottom: 0.3rem;
}

.sub-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.3rem;
  display: block;
}

.required {
  font-size: 0.8rem;
  color: #999;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="tel"],
.registration-form select,
.registration-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-family: 'Bitter', Georgia, serif;
  font-size: 1rem;
  color: #212020;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  border-color: #374F2F;
  background: rgba(255, 255, 255, 0.9);
}

.registration-form select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374F2F' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.registration-form textarea {
  resize: vertical;
  min-height: 80px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
}

.form-hint {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.4rem;
}

.btn-submit {
  display: inline-block;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 300px;
  padding: 1rem 1.5rem;
  font-family: 'Bitter', Georgia, serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background-color: #333;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.swish-qr img {
  width: 100%;
  border-radius: 8px;
}

.organizer {
  text-align: center;
}

.organizer p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.organizer-logo {
  max-width: 120px;
  margin: 0 auto;
}

/* Sponsors */
.sponsors {
  margin-top: 1.5rem;
  text-align: left;
}

.sponsors-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.sponsors-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
}

.sponsors-logos img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

/* === Section 5: Results === */
.results {
  background-color: #e8e4dd;
  padding: 4rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.articles h2,
.placements h2 {
  margin-bottom: 1.5rem;
}

.article-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

a.article-card {
  text-decoration: none;
  color: inherit;
}

.article-card img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.article-source {
  font-weight: 600;
  font-size: 0.95rem;
  color: #374F2F;
}

.article-date {
  font-size: 0.85rem;
  color: #888;
}

/* Results Tables */
.placements table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.placements thead th {
  text-align: left;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 2px solid #374F2F;
  color: #374F2F;
}

.placements tbody td {
  padding: 0.4rem 0;
  border-bottom: 1px solid #ddd;
}

.placements thead th:nth-child(2),
.placements thead th:nth-child(4),
.placements tbody td:nth-child(2),
.placements tbody td:nth-child(4) {
  text-align: right;
  width: 70px;
  padding-right: 1rem;
}

.placements thead th:nth-child(3),
.placements tbody td:nth-child(3) {
  padding-left: 1rem;
}

/* === Section 6: About === */
.about {
  background-color: #fff;
  padding: 4rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about .container {
  width: 100%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about h2 {
  margin-bottom: 0.5rem;
  margin-top: 2.5rem;
}

.about-left h2:first-child,
.about-right h2:first-child {
  margin-top: 0;
}

.about a {
  color: #374F2F;
}


/* === Section 7: Apps === */
.apps-section {
  background-color: #212020;
  padding: 5rem 0;
  text-align: center;
}

.apps-section h2 {
  color: #fff;
  margin-bottom: 2.5rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.app-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.app-logos img {
  height: 50px;
  width: auto;
}

.app-logos a {
  text-decoration: none;
}

/* FAQ (inside about section) */
.faq-list {
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid rgba(55, 79, 47, 0.2);
}

.faq-item summary {
  font-family: 'Young Serif', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #374F2F;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: #374F2F;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 0 1.25rem;
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

/* === Footer === */
.footer {
  background-color: #374F2F;
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  max-width: 120px;
  margin: 0 auto 1rem;
}

.footer h2 {
  color: #fff;
  font-size: 1.5rem;
}

.footer-contact {
  text-align: center;
}

.footer-contact h3 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
}

/* === Nav Dots === */
#navDots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.nav-dot.active {
  background: #fff;
  transform: scale(1.5);
}

#navDots.on-light .nav-dot {
  background: rgba(55, 79, 47, 0.25);
}

#navDots.on-light .nav-dot.active {
  background: #374F2F;
}

@media (max-width: 900px) {
  #navDots { display: none; }
}

/* === Responsive === */
@media (max-width: 900px) {
  html {
    scroll-snap-type: none;
  }

  section, footer {
    scroll-snap-align: none;
  }
  .info-grid,
  .registration-grid,
  .results-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-cards {
    grid-template-columns: 1fr;
  }

  .app-logos {
    flex-direction: column;
    gap: 2rem;
  }

  .swish-qr,
  .organizer {
    justify-self: center;
  }

  .sponsors-logos img {
    height: 40px;
  }
}

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

  .hero-logo {
    width: 192px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .about h2 {
    margin-bottom: 0.25rem;
  }

  .about p {
    font-size: 1.1rem;
  }

  .sponsors-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    justify-items: center;
  }

  .sponsors-logos a:last-child {
    grid-column: 1 / -1;
  }

  .sponsors-logos a:last-child img {
    height: 44px;
  }

  .sponsors-logos img {
    height: 45px;
  }

  .intro-image {
    max-width: none;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    margin-top: 0;
    width: calc(100% + 2.5rem);
    border-radius: 0;
  }

  .intro {
    padding-top: 0;
  }
}
