/* ============================================
   NM i Elgbane 2027 — Sannidal JFF
   Fargepalett basert på NJFF-logoens marineblått (#072f4c),
   med en varm jordbrun aksentfarge fra Sannidal JFF-merket.
   ============================================ */

:root {
  --color-primary: #0d3b5c;       /* marineblå (NJFF) */
  --color-primary-dark: #072f4c;  /* NJFF marineblå, mørk variant */
  --color-accent: #8a5a30;        /* jordbrun */
  --color-bg: #faf8f4;
  --color-surface: #ffffff;
  --color-text: #232323;
  --color-text-muted: #5a5a5a;
  --color-border: #e1ddd3;
  --color-success-bg: #eef4ec;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--color-primary);
  color: #fff;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  max-width: 1320px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  flex-shrink: 0;
}

.brand img.logo {
  height: 80px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text .brand-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.brand-text .brand-sub {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.3;
}

.nav-and-partner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.njff-logo-header {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  opacity: 0.9;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  opacity: 1;
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 1190px) {
  nav.main-nav {
    display: none;
    width: 100%;
  }
  nav.main-nav.open {
    display: block;
  }
  nav.main-nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 10px 0 16px;
  }
  .site-header .container {
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: block;
  }
  .nav-and-partner {
    display: block;
    width: 100%;
  }
  .njff-logo-header {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 56px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../ELGLØPENDE-white.png') center / contain no-repeat;
  opacity: 0.10;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .hero-logo {
  height: 150px;
  width: auto;
  margin: 0 auto 18px;
  display: block;
}

.hero h1 {
  font-size: 34px;
  margin: 0 0 10px;
}

.hero .hero-dates {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero .hero-organizer {
  opacity: 0.9;
  margin-bottom: 24px;
}

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

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-light {
  background: #fff;
  color: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.btn-outline:hover,
.btn-light:hover {
  text-decoration: none;
  opacity: 0.92;
}

/* ---------- Sections ---------- */
.section {
  padding: 48px 0;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.section .section-intro {
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin-top: 0;
  font-size: 17px;
  color: var(--color-primary-dark);
}

.card p {
  margin-bottom: 12px;
  color: var(--color-text-muted);
  font-size: 14.5px;
}

/* ---------- Tables (program) ---------- */
table.schedule {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
}

table.schedule th,
table.schedule td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14.5px;
}

table.schedule th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

table.schedule tr:last-child td {
  border-bottom: none;
}

/* ---------- Placeholder / notice boxes ---------- */
.placeholder-note {
  background: #fdf6e8;
  border: 1px dashed #d8b56b;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: #6b5424;
  margin-bottom: 24px;
}

.info-box {
  background: var(--color-success-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.info-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--color-primary-dark);
}

/* ---------- Sponsor grid ---------- */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  align-items: center;
}

.sponsor-grid .sponsor-slot {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 30px 0;
  margin-top: 40px;
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: #fff;
  opacity: 0.9;
}

.site-footer .footer-meta {
  opacity: 0.75;
  font-size: 13px;
}

.footer-partner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-partner .partner-logo {
  height: 56px;
  width: auto;
}
