/* ============================================
   Fakkelprisen 2026 — oppstrammet stilark
   Farger og typografi fra designmanualen:
   - Bakgrunn:  #F1ECE5
   - Aksent:    #F15E22 (oransje)
   - Mørk:      #1A1A1A
   - Font:      Poppins
   ============================================ */

:root {
  --bg: #f1ece5;
  --bg-soft: #faf7f2;
  --accent: #f15e22;
  --accent-dark: #d44d15;
  --dark: #1a1a1a;
  --dark-soft: #2a2a2a;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --white: #fff;
  --maxw: 1140px;
  --narrow: 800px;

  /* Konsistent rytme */
  --space-section: clamp(64px, 9vw, 110px);
  --radius: 6px;
  --shadow: 0 2px 24px rgba(26, 26, 26, .08);
  --shadow-hover: 0 10px 36px rgba(26, 26, 26, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--narrow); }

/* ---------- Typografi: flytende skala ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }

p { margin: 0 0 1.2em; }

/* Liten oransje "overline"-etikett over titler */
.kicker {
  display: block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 10px;
}

.underline {
  width: 64px;
  height: 4px;
  background: var(--accent);
  border: 0;
  border-radius: 2px;
  margin: 18px 0 28px;
}
.underline.center { margin-left: auto; margin-right: auto; }

/* ---------- Header / meny ---------- */
header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}
.nav .logo img { height: 52px; width: auto; }
.nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav ul a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav ul a:hover { color: var(--accent); background: rgba(255, 255, 255, .06); }
.nav ul a.active { color: var(--accent); }

/* "Kjøp billetter"-knapp lengst til høyre i menyen */
.nav ul a.nav-cta {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  padding: 11px 22px;
  margin-left: 10px;
  transition: background .15s, transform .15s;
}
.nav ul a.nav-cta:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  padding: 5px 10px;
}

/* ---------- Hero (forside) ---------- */
.hero {
  background: var(--dark) url('img/image-3.png') center 40% / cover no-repeat;
  position: relative;
  min-height: clamp(480px, 72vh, 680px);
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(26, 26, 26, .85) 15%, rgba(26, 26, 26, .45) 60%, rgba(26, 26, 26, .25));
}
.hero .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
}
.hero-year {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  margin-bottom: 14px;
}
.hero-date {
  color: var(--white);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-slogan {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: .14em;
}
.hero-cta { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-logo img {
  height: clamp(120px, 18vw, 210px);
  width: auto;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .45));
}

/* ---------- Sidetopp (undersider) ---------- */
.page-head {
  background: var(--dark);
  padding: 64px 0 52px;
}
.page-head h1 { color: var(--white); margin: 0; }
.page-head .underline { margin-bottom: 0; }

/* ---------- Seksjoner ---------- */
section { padding: var(--space-section) 0; }
section.tight { padding-top: 0; }
section.dark { background: var(--dark); }
section.dark h2, section.dark h3 { color: var(--white); }
section.dark p { color: rgba(255, 255, 255, .85); }
section.soft { background: var(--bg-soft); }
.center { text-align: center; }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 6vw, 70px);
  align-items: center;
}
.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Fakkel-flammen som ren grafikk — ingen boks eller skygge */
.flame-art svg {
  display: block;
  width: min(340px, 75%);
  height: auto;
  margin: 0 auto;
}

/* ---------- Faktaboks (dato/sted/tid) ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.facts > div {
  background: var(--white);
  padding: 20px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
}
.facts .label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 2px;
}
.facts .value { font-weight: 600; color: var(--dark); font-size: 16px; }
.facts .sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 16px 36px;
  border-radius: var(--radius);
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 18px rgba(241, 94, 34, .35);
}
.btn:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(241, 94, 34, .45);
}
.btn.ghost {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}
.btn-link {
  color: var(--accent);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.btn-link:hover { text-decoration: underline; }

/* ---------- Artistkort ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  position: relative;
  display: block;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card.wide { grid-column: 1 / -1; min-height: 420px; }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, .78));
}
.card span {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  z-index: 1;
}

/* Plassholderkort før artister er klare */
.card.placeholder {
  background: var(--dark-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, .25);
  box-shadow: none;
}
.card.placeholder::after { content: none; }
.card.placeholder span {
  position: static;
  color: rgba(255, 255, 255, .55);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .06em;
}

/* ---------- Pris-/nominertblokker ---------- */
.prize {
  background: var(--white);
  padding: 36px 42px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.prize h3 { margin-top: 0; }
.winner-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  text-align: center;
}
.winner-list .winner {
  background: var(--white);
  padding: 26px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.winner .cat { font-weight: 700; color: var(--accent); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.winner .name { font-weight: 600; font-size: 18px; }

.vote {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 18px;
  font-weight: 600;
  margin-top: 15px;
}

/* ---------- Partnere ---------- */
.partner-list {
  columns: 3;
  column-gap: 40px;
  list-style: none;
  padding: 0;
}
.partner-list li { padding: 6px 0; break-inside: avoid; }

/* ---------- Footer ---------- */
footer {
  background: var(--dark);
  color: #bbb;
  margin-top: var(--space-section);
  padding: 60px 0 50px;
  font-size: 15px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 36px;
}
footer img { height: 52px; width: auto; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer p { margin: 4px 0; }
footer strong { color: var(--white); }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .partner-list { columns: 2; }
  .hero-logo { display: none; }
  .hero { min-height: clamp(420px, 60vh, 560px); }

  .menu-btn { display: block; }
  .nav ul {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    gap: 0;
    padding: 10px 0 20px;
    box-shadow: 0 14px 24px rgba(0, 0, 0, .35);
  }
  .nav ul.open { display: flex; }
  .nav ul li { text-align: center; padding: 6px 0; }
  .nav ul a.nav-cta { display: inline-block; margin: 8px auto 0; }
}
@media (max-width: 560px) {
  .partner-list { columns: 1; }
  .top-info .container { justify-content: center; gap: 18px; }
  .hero-cta .btn { width: 100%; text-align: center; }
}

/* ---------- Flamme-musepeker med gnister ---------- */
/* Skjuler systempekeren når effekten er aktiv */
.fc-active, .fc-active * { cursor: none !important; }

/* Gnistlaget ligger øverst, men fanger ingen klikk */
.fc-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
}

/* Selve flammen som følger musa */
.fc-flame {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 38px;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity .2s ease, width .15s ease, height .15s ease;
  filter: drop-shadow(0 0 7px rgba(241, 94, 34, .75));
  will-change: transform;
}
.fc-flame svg { width: 100%; height: 100%; display: block; }
.fc-flame.fc-hot { width: 40px; height: 50px; filter: drop-shadow(0 0 14px rgba(241, 94, 34, .95)); }

/* Indre flakking gir liv til flammen */
.fc-flame .fc-outer,
.fc-flame .fc-inner {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.fc-flame .fc-outer { animation: fcFlicker 1.5s ease-in-out infinite; }
.fc-flame .fc-inner { animation: fcFlicker 1.05s ease-in-out infinite .15s; }
@keyframes fcFlicker {
  0%, 100% { transform: scaleY(1)    scaleX(1)    skewX(0); }
  30%      { transform: scaleY(1.08) scaleX(.95)  skewX(-3deg); }
  60%      { transform: scaleY(.95)  scaleX(1.05) skewX(2deg); }
}

/* Berøringsskjermer / redusert bevegelse: ingen flammepeker */
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .fc-active, .fc-active * { cursor: auto !important; }
  .fc-flame, .fc-canvas { display: none !important; }
}
