:root {
  --primary-orange: #C94D26;
  --primary-teal: #1B8B9E;
  --primary-green: #2D8B47;
  --cream: #F5EFE0;
  --sky-blue: #89D4E8;
  --dark-gray: #333;
  --light-gray: #f9f9f9;
  --container: 1180px;
}

/* ================= RESET ================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--cream);
  color: var(--dark-gray);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ================= LAYOUT ================= */

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
}

/* ================= HEADER ================= */

.site-header {
  position: fixed;
  width: 100%;
  background: rgba(245, 239, 224, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 1.2rem 0;
}

.brand-title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary-green);
}

/* ================= NAVIGATION ================= */

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  position: relative;
  transition: 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--primary-orange);
  transition: 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ================= HERO ================= */

.hero {
  padding: 12rem 0 8rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.2rem;
  max-width: 42ch;
  margin-bottom: 2.5rem;
  color: rgba(0, 0, 0, 0.75);
}

.btn {
  padding: 1rem 1.8rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary-orange);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--dark-gray);
  color: var(--dark-gray);
}

.btn-ghost:hover {
  background: var(--dark-gray);
  color: white;
}

/* ================= SECTION ================= */

.section {
  padding: 8rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-subtitle {
  margin-bottom: 3rem;
  color: rgba(0, 0, 0, 0.7);
  max-width: 55ch;
}

/* ================= INFO GRID ================= */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.card {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-green);
}

.list {
  padding-left: 1.2rem;
}

.list li {
  margin-bottom: 0.6rem;
}

/* ================= REGISTER ================= */

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  font-size: 1rem;
  transition: 0.3s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-teal);
}

.form-actions {
  margin-top: 2rem;
}

/* Team list */

.team-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
}

.team-name {
  font-weight: 600;
  color: var(--primary-green);
}

/* ================= FOOTER ================= */

.footer {
  padding: 6rem 0;
  background: var(--primary-green);
  color: white;
}

.footer a {
  color: var(--sky-blue);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1000px) {
  .hero-grid,
  .info-grid,
  .register-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 8rem;
  }

  .nav-menu {
    gap: 1.5rem;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
  display: block;
}

.logo-img-left {
  height: 52px;
  width: auto;
  display: block;
}

.day-toggle {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.toggle-option {
  position: relative;
  cursor: pointer;
}

.toggle-option input {
  display: none;
}

.toggle-option span {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: 0.2s ease;
}

.toggle-option input:checked + span {
  background: var(--primary-orange);
  color: white;
  border-color: var(--primary-orange);
}

/* ================= FOOTER PROFESSIONAL ================= */

.footer {
  background: var(--primary-green);
  color: white;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding: 4rem 0;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-tagline {
  max-width: 260px;
  opacity: 0.85;
  font-size: 0.95rem;
}

.footer h5 {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
}

.footer-links a {
  display: block;
  color: white;
  text-decoration: none;
  margin-bottom: 0.6rem;
  opacity: 0.85;
  transition: 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(4px);
}

.footer-contact p {
  margin: 0 0 0.5rem;
  opacity: 0.85;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0.9;
}

/* Desktop layout */
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: start;
  }
}

.footer-instagram-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: 0.2s ease;
}

.footer-instagram-link:hover {
  border-color: white;
  opacity: 0.9;
}

:root {
  --primary-orange: #C94D26;
  --primary-green: #2D8B47;
  --cream: #F5EFE0;
  --dark-gray: #333;
  --container: 1180px;
}

/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--cream);
  color: var(--dark-gray);
  line-height: 1.6;
}

/* LAYOUT */

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: fixed;
  width: 100%;
  background: rgba(245, 239, 224, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
}

/* HERO */

.hero {
  padding: 9rem 0 5rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 4rem);
  margin-bottom: 1rem;
}

.hero-lead {
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  width: 100%;
  border-radius: 20px;
}

/* BUTTONS */

.btn {
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-orange);
  color: white;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--dark-gray);
}

.full-width {
  width: 100%;
}

/* SECTIONS */

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.8rem;
}

.section-subtitle {
  margin-bottom: 2rem;
}

/* INFO GRID */

.info-grid {
  display: grid;
  gap: 2rem;
}

.card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
}

/* REGISTER */

.field {
  margin-bottom: 1.5rem;
}

.field input {
  width: 100%;
  padding: 0.8rem 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
}

/* DAY TOGGLE FIXED FOR MOBILE */

.day-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.toggle-option input {
  display: none;
}

.toggle-option span {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  text-align: center;
}

.toggle-option input:checked + span {
  background: var(--primary-orange);
  color: white;
  border-color: var(--primary-orange);
}

/* FOOTER */

.footer {
  background: var(--primary-green);
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
}

/* DESKTOP */

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

/* ================= MODAL ================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  z-index: 3000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 22px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= SPINNER ================= */

.spinner {
  width: 40px;
  height: 40px;
  margin: 1rem auto;
  border: 4px solid rgba(0, 0, 0, 0.15);
  border-top: 4px solid var(--primary-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================= COOL LAUNCH GATE ================= */

.launch-gate {
  position: fixed;
  inset: 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5000;
  text-align: center;
  padding: 2rem;
}

.gate-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.gate-logo {
  height: 110px;
  margin-bottom: 2rem;
  animation: fadeUp 1s ease;
}

.gate-heading {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
  animation: fadeUp 1.2s ease;
}

.day-count span {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--primary-orange);
  display: block;
  line-height: 1;
  animation: pulse 2.5s infinite ease-in-out;
}

.day-count small {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

/* Bottom password area */

.gate-bottom {
  width: 100%;
  max-width: 500px;
  padding-bottom: 2rem;
}

.password-row {
  display: flex;
  gap: 0.5rem;
}

.password-row input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: white;
  font-size: 1rem;
}

.password-row button {
  padding: 0 1.6rem;
  border-radius: 999px;
  border: none;
  background: var(--primary-orange);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.password-row button:hover {
  transform: translateY(-2px);
}

.gate-error {
  font-size: 0.85rem;
  margin-top: 0.6rem;
  color: var(--primary-orange);
}

/* Animations */

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.launch-gate.hidden {
  display: none;
}

/* ================= SPONSORAR ================= */

.sponsors-section {
  padding: 3rem 0 4rem;
  text-align: center;
}

.section-head.center {
  margin-bottom: 2.5rem;
}

.sponsors-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

/* Generell logo */
.sponsor-logo {
  object-fit: contain;
  transition: 0.3s ease;
}

.sponsor-logo:hover {
  transform: scale(1.05);
}

/* Bordi rund */
.bordi-wrapper {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-bordi {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Marcel */
.sponsor-bottom {
  display: flex;
  justify-content: center;
}

.sponsor-marcel {
  max-height: 90px;
}

/* Mobil */
@media (max-width: 600px) {
  .bordi-wrapper {
    width: 95px;
    height: 95px;
  }

  .sponsor-marcel {
    max-height: 70px;
  }
}

.day-option {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.day-option-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.day-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  display: block;
}

.day-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
  transition: width 0.25s ease;
}

.toggle-option.full {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.day-option {
  display: block;
  padding: 12px 14px;
}

.day-text {
  display: flex;
  flex-direction: column;
}

.day-title {
  font-weight: 600;
}

.day-count {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 2px;
}

.toggle-option.full {
  opacity: 0.45;
  cursor: not-allowed;
}

.day-option input:checked ~ .day-text {
  font-weight: 600;
}

/* ===== FIX DAY BUTTONS ===== */

.day-option {
  display: block;
  cursor: pointer;
}

.day-option input {
  display: none;
}

/* normal knapp */
.day-option .day-text {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: 0.2s ease;
}

/* valgt knapp */
.day-option input:checked + .day-text {
  background: var(--primary-orange);
  color: white;
  border-color: var(--primary-orange);
}

/* tekstlinje 2 */
.day-count {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 2px;
}

/* full dag */
.toggle-option.full .day-text {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ===== DESKTOP FIX ===== */

@media (min-width: 1200px) {
  .container {
    width: min(1400px, calc(100% - 6rem));
  }

  .hero-grid {
    gap: 6rem;
  }

  .info-grid {
    gap: 6rem;
  }
}
