/* ===============================
   TYPOGRAFI & GRUNDSTIL
================================= */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #FAF9F6;
  color: #1C1C1C;
  line-height: 1.2;
}

h1, h2 {
  color: #FF6663;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}



/* ===============================
   LAYOUT
================================= */
main, section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

form, ul {
  max-width: 600px;
  width: 100%;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===============================
   HEADER & NAVIGATION
================================= */
#curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10;
  transform: translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.hover-info {
  position: relative;
  cursor: help;
}

.icon {
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

a:hover .icon {
  opacity: 1;
  transform: translateX(0);
}

.accordion-toggle {
  background-color: #f0f0f0;
  border: none;
  padding: 12px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.accordion-content {
  display: none;
  padding: 12px;
  background-color: #fff;
  border-top: 1px solid #ccc;
}


.hover-info::after {
  content: attr(data-info);
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: normal;
  width: 250px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
  pointer-events: none;
  font-size: 0.85rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hover-info:hover::after {
  opacity: 1;
  transform: translateY(0);
}


#curtain.active {
  transform: translateY(0);
}

#page-transition {
  position: relative;
  z-index: 1;
}

header, footer {
  background-color: #0B3954;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

footer {
  background-color: #2c3e50;
  margin-top: 3rem;
  padding: 2rem;
}
/* ===============================
   HEADER & NAVIGATION – REN VERSION
================================= */

/* ===============================
   KNAPPAR & INTERAKTION
================================= */
button {
  background-color: #FF6663;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #E63946;
}

#formMessage {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #E0FF4F;
  color: #0B3954;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
}

/* ===============================
   LISTOR
================================= */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
}

/* ===============================
   RESPONSIV DESIGN
================================= */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #0B3954;
    width: 100%;
    display: none;
    padding: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  main, section {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  p, li {
    font-size: 1rem;
  }
}


/* Visa när man trycker på hamburgaren */
.nav-links.show {
  display: flex;
}

/* Mobil: placera navbaren snyggt */
.navbar {
  position: relative;
}

/* Visa hamburgaren bara i mobil */
.menu-toggle {
  display: none;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: #FFD275;
}

/* Mobilbrytpunkt */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links li a {
    font-size: 20px;
  }
}