/* Klokkargarden — felles stilark (framside + undersider) */

:root {
  --brg:   #004225;
  --gold:  #9C7A00;
  --cream: #F7F4EC;
  --sage:  #E9EFE3;
  --ink:   #1C1C1A;
  --white: #FFFFFF;
  --gold-on-green: #C9A227; /* lysare gull på mørk grøn */
  --gold-ink: #7A6000;      /* mørkna gull for liten tekst på lyse flater (WCAG) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }

a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.on-green a:focus-visible, footer a:focus-visible, .hero a:focus-visible { outline-color: var(--gold-on-green); }

/* ---------- Gjenbrukte element ---------- */

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.on-green .eyebrow, .hero .eyebrow, footer .eyebrow { color: var(--gold-on-green); }

.anno {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-ink);
}
.anno::before, .anno::after { content: ""; width: 40px; height: 1px; background: var(--gold); }
.anno span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.on-green .anno, .hero .anno, footer .anno { color: var(--gold-on-green); }
.on-green .anno::before, .on-green .anno::after,
.hero .anno::before, .hero .anno::after,
footer .anno::before, footer .anno::after { background: var(--gold-on-green); }

.h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.1rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--brg);
}
.on-green .h2 { color: var(--white); }

.knapp {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  background: var(--brg);
  color: var(--white);
  border: 1px solid var(--brg);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.knapp:hover { background: var(--cream); color: var(--brg); }
.knapp--lys { background: var(--cream); color: var(--brg); border-color: var(--cream); }
.knapp--lys:hover { background: transparent; color: var(--cream); }
.knapp .pil { margin-left: 0.4rem; }

.lenke {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brg);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.25s ease;
}
.lenke:hover { color: var(--gold-ink); }
.on-green .lenke, footer .lenke { color: var(--white); border-color: var(--gold-on-green); }
.on-green .lenke:hover, footer .lenke:hover { color: var(--gold-on-green); }

.section { padding: 6.5rem 1.5rem; }
.section-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.section-inner .eyebrow { margin-bottom: 1.5rem; }
.section-inner .h2 { margin-bottom: 2rem; }
.section p { max-width: 34em; margin: 0 auto 1.4em; text-align: left; }
.section p:last-of-type { margin-bottom: 0; }
.on-green { background: var(--brg); color: var(--white); }
.sage { background: var(--sage); }

/* ---------- Navigasjon (lys) ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: rgba(247, 244, 236, 0.94);
  border-bottom: 1px solid rgba(0, 66, 37, 0.12);
  backdrop-filter: blur(6px);
}
.nav .logo { display: block; }
.nav .logo img { display: block; height: 40px; width: auto; }
.nav-hogre { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  color: var(--brg);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--gold); }
.nav .knapp { padding: 0.65rem 1.2rem; font-size: 0.9rem; }
@media (max-width: 760px) {
  .nav { padding: 0.8rem 1.1rem; }
  .nav .logo img { height: 34px; }
  .nav-links { display: none; }
  .nav .knapp { padding: 0.55rem 0.95rem; font-size: 0.85rem; }
}

/* ---------- Framside: hero ---------- */

.hero-delt {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: calc(100vh - 73px);
  min-height: calc(100svh - 73px);
}
.hero-tekst {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 6vw 4rem 5vw;
}
.hero-tekst .eyebrow { font-size: 0.85rem; margin-bottom: 2rem; }
.hero-tekst h1 {
  font-weight: 700;
  font-size: clamp(2.8rem, 6.3vw, 7.2rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--brg);
  margin-bottom: 2rem;
}
.hero-tekst .ingress { font-size: clamp(1.15rem, 1.5vw, 1.6rem); line-height: 1.5; max-width: 24em; margin-bottom: 2.4rem; }
.hero-tekst .knapp { align-self: flex-start; margin-bottom: 1.6rem; padding: 1.15rem 2.2rem; font-size: clamp(1rem, 1.15vw, 1.2rem); }
.hero-tekst .lenke { align-self: flex-start; font-size: clamp(1rem, 1.1vw, 1.15rem); }
.hero-fakta {
  margin-top: 3.5rem;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  color: rgba(28, 28, 26, 0.75);
}
.hero-bilete { position: relative; min-height: 420px; }
.hero-bilete img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero-delt { grid-template-columns: 1fr; min-height: 0; }
  .hero-tekst { padding: 3.5rem 1.5rem 3rem; order: 1; }
  .hero-bilete { order: 2; min-height: 0; aspect-ratio: 4 / 3; }
  .hero-bilete img { position: static; height: 100%; }
  .hero-fakta { margin-top: 2.2rem; }
}

/* ---------- Faktastripe (grøn) ---------- */

.fakta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--brg);
  color: var(--white);
  padding: 2.4rem 1.5rem;
}
.fakta div { text-align: center; padding: 0.4rem 1rem; border-left: 1px solid rgba(201, 162, 39, 0.6); }
.fakta div:first-child { border-left: 0; }
.fakta strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.15;
  margin-bottom: 0.25rem;
}
.fakta span { font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }
@media (max-width: 700px) {
  .fakta { grid-template-columns: 1fr; gap: 1.4rem; padding: 2.2rem 1.5rem; }
  .fakta div { border-left: 0; border-top: 1px solid rgba(201, 162, 39, 0.5); padding-top: 1.2rem; }
  .fakta div:first-child { border-top: 0; padding-top: 0; }
}

/* ---------- Todelte blokker ---------- */

.delt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}
.delt--bilete-hogre figure { order: 2; }
.delt figure { margin: 0; }
.delt img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.delt img.liggande { aspect-ratio: 4 / 3; }
.delt figcaption {
  margin-top: 0.75rem;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold-ink);
}
.delt-tekst .eyebrow { margin-bottom: 1.2rem; }
.delt-tekst .h2 { margin-bottom: 1.4rem; }
.delt-tekst p { margin-bottom: 1.2rem; max-width: 30em; }
.delt-tekst .adresse { font-size: 1.05rem; color: rgba(28, 28, 26, 0.75); margin-bottom: 1.6rem; }
@media (max-width: 860px) {
  .delt { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 1.5rem; }
  .delt--bilete-hogre figure { order: 0; }
}

/* ---------- Kvalitet: to bilete ---------- */

.to-bilete {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  text-align: center;
}
.to-bilete .h2 { margin-bottom: 2.5rem; }
.to-bilete-rad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
}
.to-bilete-rad > a { display: block; text-decoration: none; }
.to-bilete-rad figure { margin: 0; }
.to-bilete-rad img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sage); }
.to-bilete-rad figcaption {
  margin-top: 0.8rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  color: var(--brg);
}
.to-bilete-rad a { text-decoration: none; }
.to-bilete-rad a:hover figcaption { color: var(--gold-ink); }
.omtale-ein { margin-top: 3.5rem; }
.omtale-ein p {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--brg);
  line-height: 1.4;
}
.omtale-ein cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.9rem; color: rgba(28, 28, 26, 0.65); }
@media (max-width: 700px) { .to-bilete-rad { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

footer { background: var(--brg); color: var(--white); padding: 4.5rem 1.5rem 3rem; }
.footer-topp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto 3.5rem;
}
.footer-topp .h2 { color: var(--white); margin-bottom: 0.6rem; }
.footer-topp p { color: rgba(255, 255, 255, 0.82); }
.footer-topp p a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--gold-on-green); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1120px;
  margin: 0 auto 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(201, 162, 39, 0.35);
}
.footer-logo { display: block; height: 40px; width: auto; margin-bottom: 1.2rem; }
.footer-kol h3 {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-on-green); margin-bottom: 1rem;
}
.footer-kol p { font-size: 0.95rem; line-height: 1.85; color: rgba(255, 255, 255, 0.82); }
.footer-kol a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--gold-on-green); transition: color 0.25s ease; }
.footer-kol a:hover { color: var(--gold-on-green); }
.footer-botn { text-align: center; }
footer .anno { margin-bottom: 1.6rem; }
.copyright { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.2rem; text-align: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-topp { text-align: center; justify-content: center; }
}

/* ---------- Undersider: sidehovud ---------- */

.sidehovud { padding: 5.5rem 1.5rem 3.5rem; text-align: center; }
.sidehovud .eyebrow { margin-bottom: 1.4rem; }
.sidehovud .h2 { margin-bottom: 1.4rem; }
.sidehovud p { max-width: 34em; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Video-hero (egga-sida) ---------- */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: var(--brg); color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 42% 38% at 50% 52%, rgba(0,28,16,0.5) 0%, rgba(0,28,16,0) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,20,11,0.45) 100%),
    rgba(0,66,37,0.7);
}
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-content .eyebrow { margin-bottom: 1.6rem; }
.hero-content h1 { font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.05; margin-bottom: 1.4rem; }
.hero-content .hero-sub { font-size: 1.15rem; max-width: 30em; }

/* ---------- Nøkkeltal-stripe ---------- */

.tal { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1040px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.tal-item { text-align: center; padding: 0.5rem 1rem; border-left: 1px solid var(--gold); }
.tal-item:first-child { border-left: 0; }
.tal-item strong {
  display: block; font-family: "Playfair Display", Georgia, serif; font-weight: 700;
  font-size: clamp(2.2rem, 3.4vw, 3rem); letter-spacing: -0.01em; line-height: 1.05; color: var(--brg); margin-bottom: 0.6rem;
}
.tal-item span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-ink); }
@media (max-width: 700px) {
  .tal { grid-template-columns: 1fr 1fr; row-gap: 2rem; padding: 2.5rem 1rem; }
  .tal-item:nth-child(3) { border-left: 0; }
}

/* ---------- Historia-komponentar ---------- */

.anfang > p:first-of-type::first-letter {
  font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 3.3em; line-height: 0.8;
  float: left; padding: 0.04em 0.12em 0 0; color: var(--brg);
}
.tidslinje { display: flex; justify-content: space-between; max-width: 820px; margin: 4.5rem auto 0; position: relative; padding: 0 1rem; }
.tidslinje::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gold); }
.tid { display: flex; flex-direction: column; align-items: center; padding-top: 1.1rem; position: relative; max-width: 8.5em; }
.tid::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 0.7rem; background: var(--gold); }
.aar { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--brg); }
.kven { margin-top: 0.6rem; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; line-height: 1.7; text-align: center; color: var(--gold-ink); }
@media (max-width: 700px) {
  .tidslinje { flex-direction: column; gap: 1.9rem; max-width: 260px; padding: 0 0 0 1.6rem; }
  .tidslinje::before { top: 0.3rem; bottom: 0.3rem; right: auto; height: auto; width: 1px; }
  .tid { flex-direction: row; align-items: baseline; gap: 1rem; padding-top: 0; max-width: none; }
  .tid::before { top: 50%; left: -1.6rem; width: 0.9rem; height: 1px; }
  .kven { margin-top: 0; text-align: left; }
}

.kapittel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
  max-width: 960px; margin: 4.5rem auto 0; text-align: left;
}
.kapittel figure { margin: 0; }
.kapittel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--gold); background: var(--sage); }
.kapittel figcaption { margin-top: 0.8rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-ink); }
.kapittel--omvend figure { order: 2; }
.kapittel .eyebrow { margin-bottom: 1rem; }
.kapittel h3 { font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; color: var(--brg); margin-bottom: 1rem; }
.kapittel p { max-width: none; margin: 0; }
@media (max-width: 700px) {
  .kapittel { grid-template-columns: 1fr; gap: 1.6rem; max-width: 480px; margin-top: 3.5rem; }
  .kapittel--omvend figure { order: 0; }
}

.arkiv { max-width: 480px; margin: 4.5rem auto 0; }
.arkiv video, .arkiv img { width: 100%; border: 1px solid var(--gold); background: var(--sage); }
.arkiv figcaption { margin-top: 1rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; line-height: 2; color: var(--gold-ink); text-align: center; }

/* ---------- Egga-komponentar ---------- */

.egg-merke { display: block; width: 300px; max-width: 80%; height: auto; margin: 0 auto 2rem; }

.bilderekke { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: 820px; margin: 4.5rem auto 0; }
.bilderekke figure { border-top: 1px solid var(--gold); padding-top: 1.25rem; margin: 0; }
.bilderekke img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--sage); }
.bilderekke figcaption { margin-top: 0.85rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-ink); text-align: center; }
@media (max-width: 700px) { .bilderekke { grid-template-columns: 1fr; gap: 2rem; max-width: 480px; } }

.merker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: 960px; margin: 4rem auto 0; text-align: left; }
.merke { border-top: 1px solid var(--gold); padding-top: 1.1rem; }
.merke strong { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brg); margin-bottom: 0.35rem; }
.merke span { font-size: 0.92rem; color: rgba(28, 28, 26, 0.72); }
@media (max-width: 700px) { .merker { grid-template-columns: 1fr; gap: 2rem; max-width: 480px; } }

.omtalar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: 960px; margin: 5rem auto 0; }
.omtale { border-top: 1px solid var(--gold); padding-top: 1.5rem; text-align: left; margin: 0; }
.omtale::before { content: "\201C"; display: block; font-family: "Playfair Display", Georgia, serif; font-size: 3rem; line-height: 0.6; color: var(--gold); margin-bottom: 0.9rem; }
.omtale p { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.15rem; line-height: 1.55; color: var(--brg); margin: 0 0 1rem; max-width: none; }
.omtale cite { font-style: normal; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-ink); }
@media (max-width: 700px) { .omtalar { grid-template-columns: 1fr; gap: 2.25rem; max-width: 480px; } }

.signatur { display: grid; grid-template-columns: 1fr 1fr; background: var(--brg); color: var(--white); border-bottom: 1px solid var(--gold-on-green); }
.signatur img { width: 100%; height: 100%; min-height: 460px; max-height: 600px; object-fit: cover; }
.signatur-tekst { display: flex; flex-direction: column; justify-content: center; padding: 5rem 7vw; }
.signatur-tekst .eyebrow { color: var(--gold-on-green); margin-bottom: 1.75rem; }
.signatur-tekst p { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 2.1vw, 1.85rem); line-height: 1.5; max-width: 19em; }
@media (max-width: 800px) {
  .signatur { grid-template-columns: 1fr; }
  .signatur img { min-height: 0; aspect-ratio: 4 / 3; }
  .signatur-tekst { padding: 3.5rem 1.5rem 4.5rem; }
}

/* ---------- Rørsle ---------- */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
