:root {
  --color-lnu-yellow: #FFE000;
  --color-lnu-purple: #5D4fb1;
  --color-lnu-pink: #A62186;

  --color-bg: var(--color-lnu-purple);
  --color-text: var(--color-lnu-yellow);

  --font-sans: "Rubik", system-ui, sans-serif;
  --font-display: "Rubik One", "Rubik", system-ui, sans-serif;

  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* ===============
   Topbar / Header
   =============== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.topbar {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo { height: 40px; width: auto; }

.quick-links {
  display: flex;
  gap: 1rem;
  font-size: .9rem;
}

.quick-links a {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1rem;
  border: 2px solid var(--color-lnu-purple);
  color: var(--color-lnu-purple);
  background: transparent;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .08s ease;
}

.quick-links a:hover {
  background: var(--color-lnu-yellow);
  color: #FDECB2;
  border-color: var(--color-lnu-yellow);
  transform: translateY(-1px);
}

.quick-links a:active { transform: translateY(0); }

.quick-links a:focus-visible {
  outline: 3px solid var(--color-lnu-yellow);
  outline-offset: 3px;
}

.quick-links a[href="#"] { opacity: .9; }

/* =====
   Hero
   ===== */
.hero {
  background-color: var(--color-lnu-purple);
  color: var(--color-lnu-yellow);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero__content {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
}

.hero__text { grid-column: 2; }

.hero__text p {
  margin-top: 1rem;
  max-width: 55ch;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: 2rem;
  grid-column: 2;
}

.btn--primary {
  background: var(--color-lnu-yellow);
  color: #000;
  border: none;
  padding: .75rem 1.25rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn--primary:hover {
  background: #FDECB2;
  color: #000;
  transition: 0.4s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, .25);
}

/* Aktiv klickeffekt */
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
}

.arrow-icon {
  width: 1.5rem;
  height: auto;
  transform: translateY(1px);
  transition: transform .2s ease;
  flex-shrink: 0;
}

.hero__cta:hover .arrow-icon { transform: translate(4px, 1px); }

/* ==============
   Hero Dekorer
   ============== */
.decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  object-fit: contain;
}

.decor-propeller {
  left: max(-6vw, -40px);
  bottom: max(-12vw, -80px);
  width: clamp(180px, 28vw, 400px);
  transform: rotate(-8deg);
  opacity: .9;
}

/* ==================
   Quiz Intro Section
   ================== */
.section--quiz-intro {
  background-color: var(--color-lnu-pink);
  color: var(--color-lnu-yellow);
  padding: 4rem 1rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  transition: background-color .6s ease;
  position: relative;
}

.section__inner {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.two-col__left p { margin: 0 0 1rem; }

.section__cta { margin-top: 1.5rem; }
.section__cta .btn { display: inline-block; }

.promo-image { display: flex; justify-content: center; align-items: center; }

.promo-image img {
  width: auto;
  max-width: 800px;
  height: auto;
  max-height: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

/* Linnéträdet i rosa sektionen (nere till höger) */
.section--quiz-intro::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: clamp(36px, 6vw, 72px);
  aspect-ratio: 1;
  background: url('Uppdrag/Linnetree.svg') no-repeat center / contain;
  opacity: .95;
  pointer-events: none;
  z-index: 0;
}

/* Gula cirklar (dekor längs sidan i hero) */
.decor-circles {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(100px, 12vw, 200px);
  opacity: .9;
  z-index: 0;
  pointer-events: none;
}

/* ======
   Footer
   ====== */
.site-footer {
  background: #2b2b2b;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

/* RESPONSIVE BREAKPOINTS  */

/* Tablet (≤ 968px) */
@media (max-width: 968px) {
  .hero { padding: 3.5rem 1.25rem; }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__text,
  .hero__cta { grid-column: 1; }

  .hero__title { margin-bottom: 1.5rem; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col__left { order: 1; }
  .promo-image { order: 2; }

  .promo-image img {
    max-width: 720px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    margin-inline: auto;
  }

  .section--quiz-intro { padding: 3.25rem 1.25rem; }

  .decor-propeller {
    width: clamp(120px, 24vw, 300px);
    left: -6%;
    bottom: max(-10vw, -72px);
  }

  .decor-circles {
    display: none
  }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
  }

  .logo { height: 32px; }

  .quick-links {
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .8rem;
  }

  .quick-links a {
    font-size: 0.9rem;
    padding: .45rem .9rem;
  }

  .hero { padding: 2.75rem 1rem; }

  .hero__title {
    font-size: clamp(1.9rem, 8.4vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: .75rem;
  }

  .hero__cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    margin-top: 1.25rem;
  }

  .hero__cta .btn { width: 100%; text-align: center; }

  .arrow-icon { display: none; }

  .section--quiz-intro { padding: 2.5rem 1rem; }
  .section__title { margin-bottom: 1.25rem; }

  .promo-image img {
    max-width: none;
    width: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
  }

  .decor-circles,
  .decor-propeller,
  .section--quiz-intro::after { display: none; content: none; }
}
