/**
 * ArcticReply — 17mai.css
 * Sidespesifikk CSS for 17mai.arcticreply.no
 * Nasjonaldag-design: rødt, hvitt og blått
 * Plassering : /home/arcticreply/public_html/17mai.arcticreply.no/css/17mai.css
 * Utviklet av: Tormod Kvisvik
 * Firma      : Kvisvik Nettutvikling · org.nr 981309820
 * Web        : https://kvisvik.no
 * E-post     : kundeservice@kvisvik.no
 * ArcticReply er et produkt av Kvisvik Nettutvikling.
 * Norges nasjonaldag — historien og feiringen
 * https://17mai.arcticreply.no
 */

/* ── OVERRIDES FOR NASJONAL TEMA ── */
:root {
  --mai-rod:   #c8102e;
  --mai-bla:   #003087;
  --mai-hvit:  #f5f0e8;
  --mai-gull:  #f0b429;
  --bg:        #0d0e12;
  --bg2:       #13151e;
  --bg3:       #191d2b;
  --border:    #252a3a;
  --text:      #ede9df;
  --text2:     #8a8fa8;
  --accent:    #c8102e;
  --radius:    10px;
  --font-h:    'Playfair Display', serif;
  --font-b:    'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0a0c14 0%, #1a0a0e 50%, #060c1e 100%);
  padding: 120px 24px 80px;
}

.hero-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(200,16,46,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,48,135,0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(240,180,41,0.05) 0%, transparent 60%);
}

.flagg-stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--mai-rod) 0%, var(--mai-rod) 38%, white 38%, white 45%, var(--mai-bla) 45%, var(--mai-bla) 55%, white 55%, white 62%, var(--mai-rod) 62%, var(--mai-rod) 100%);
  opacity: 0.8;
}

.hero-dato {
  font-family: var(--font-b);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mai-rod);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hero-dato::before,
.hero-dato::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--mai-rod);
  opacity: 0.6;
}

.hero-tittel {
  font-family: var(--font-h);
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--mai-hvit);
  margin-bottom: 12px;
}

.hero-tittel span {
  color: var(--mai-rod);
  display: block;
}

.hero-undertittel {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero-knapper {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.knapp-pri {
  background: var(--mai-rod);
  color: white;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.knapp-pri:hover {
  background: #a30d24;
  transform: translateY(-2px);
}

.knapp-sek {
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 400;
  transition: border-color .2s, transform .2s;
  display: inline-block;
}
.knapp-sek:hover {
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* ── ÅRSTALL-BANNER ── */
.arstall-banner {
  background: var(--mai-bla);
  text-align: center;
  padding: 18px;
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: white;
  letter-spacing: 0.08em;
}
.arstall-banner span {
  color: var(--mai-gull);
  font-style: italic;
}

/* ── MAIN LAYOUT ── */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SEKSJON ── */
.seksjon {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}
.seksjon:last-child { border-bottom: none; }

.seksjon-tag {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mai-rod);
  margin-bottom: 10px;
  font-family: var(--font-b);
}

.seksjon-tittel {
  font-family: var(--font-h);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--mai-hvit);
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 700px;
}

.seksjon-tekst {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 700px;
  margin-bottom: 18px;
}

/* ── BILDE MED KILDE ── */
.bilde-seksjon {
  margin: 40px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bilde-seksjon img {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
  filter: sepia(15%) contrast(1.05);
  transition: filter .3s;
}
.bilde-seksjon img:hover { filter: sepia(5%) contrast(1.0); }

.bilde-kilde {
  background: var(--bg2);
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--text2);
  border-top: 1px solid var(--border);
}
.bilde-kilde a {
  color: var(--mai-rod);
  text-decoration: none;
}
.bilde-kilde a:hover { text-decoration: underline; }

/* ── TO-KOLONNER LAYOUT ── */
.to-kol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 40px 0;
}
@media (max-width: 700px) {
  .to-kol { grid-template-columns: 1fr; }
}

/* ── TIDSLINJE ── */
.tidslinje {
  position: relative;
  padding-left: 32px;
  margin: 40px 0;
}
.tidslinje::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--mai-rod), var(--mai-bla));
}
.tl-punkt {
  position: relative;
  margin-bottom: 32px;
}
.tl-punkt::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mai-rod);
  border: 2px solid var(--bg);
}
.tl-aar {
  font-family: var(--font-h);
  font-size: 1.1rem;
  color: var(--mai-rod);
  font-weight: 700;
  margin-bottom: 4px;
}
.tl-tekst {
  font-size: 0.97rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ── FAKTA-KORT ── */
.fakta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.fakta-kort {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color .2s, transform .2s;
}
.fakta-kort:hover {
  border-color: var(--mai-rod);
  transform: translateY(-3px);
}
.fakta-tall {
  font-family: var(--font-h);
  font-size: 2.4rem;
  color: var(--mai-rod);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.fakta-label {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.4;
}

/* ── SITAT ── */
.sitat-boks {
  background: var(--bg2);
  border-left: 4px solid var(--mai-rod);
  padding: 28px 32px;
  margin: 40px 0;
  border-radius: 0 10px 10px 0;
  font-family: var(--font-h);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--mai-hvit);
  line-height: 1.6;
}
.sitat-kilde {
  margin-top: 14px;
  font-family: var(--font-b);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--mai-rod);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── FLAGG-DEKOR ── */
.flagg-dekor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0;
}
.flagg-stripe-liten {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--mai-rod), var(--mai-bla));
  border-radius: 2px;
  opacity: 0.4;
}

/* ── FOOTER ── */
.footer-mai {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.85rem;
  color: var(--text2);
  margin-top: 40px;
}
.footer-mai a {
  color: var(--mai-rod);
  text-decoration: none;
}
.footer-mai a:hover { text-decoration: underline; }
.footer-logo {
  font-family: var(--font-h);
  font-size: 1.6rem;
  color: var(--mai-hvit);
  margin-bottom: 10px;
}
.footer-logo span { color: var(--mai-rod); }

/* ── ANIMASJONER ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero > * {
  animation: fadeUp 0.8s ease both;
}
.hero-dato { animation-delay: 0.1s; }
.hero-tittel { animation-delay: 0.25s; }
.hero-undertittel { animation-delay: 0.4s; }
.hero-knapper { animation-delay: 0.55s; }

/* ── FLOATBAR OVERRIDES ── */
.floatbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1100px;
  background: rgba(13,14,18,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: 14px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 1000;
}
.floatbar-logo {
  font-family: var(--font-h);
  font-size: 1.15rem;
  color: var(--mai-hvit);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.floatbar-logo span { color: var(--mai-rod); }
.floatbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.floatbar-nav a {
  color: var(--text2);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: color .2s, background .2s;
}
.floatbar-nav a:hover {
  color: var(--mai-hvit);
  background: rgba(255,255,255,0.08);
}
.floatbar-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 6px 14px;
  border: 1px solid rgba(200,16,46,0.4);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text2);
  text-decoration: none;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--mai-rod);
  color: var(--mai-hvit);
}

@media (max-width: 768px) {
  .floatbar-nav { display: none; }
  .floatbar { padding: 10px 16px; }
}

/* ── BACK TO TOP ── */
#btt {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mai-rod);
  color: white;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(200,16,46,.4);
}
#btt.synlig { opacity: 1; transform: translateY(0); }
