@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Source+Serif+4:ital,wght@0,300;0,400;1,300&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --navy: #213164;
  --navy-dark: #182449;
  --owl-brown: #735b37;
  --white:  #ffffff;
  --black:  #111111;
  --grey:   #f4f4f4;
  --grey-blue: #eef2f7;  /* Ny - lys blå bakgrunn */
  --text:   #1a1a1a;
  --text-muted: #555;    /* Ny - dempet tekst */
  --li-border: rgba(255,255,255,.2);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--text);
  background: var(--white);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; list-style: none;}
ul { list-style: none; }

/* ── Navigation ────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0; left: 0; right: 0;
  background: var(--navy);
  display: flex;
  align-items: stretch;
  padding-right: 1.5rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.nav-logo-container {
  padding: 0.4rem 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.nav-logo img {
  height: 100px;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
}

.nav-links {
  display: flex;
  align-items: stretch;
}
.nav-links li {
  display: flex;
  border-left: 1px solid var(--li-border);
}
.nav-links li:last-child {
  border-right: 1px solid var(--li-border);
}
.nav-links a {
  display: flex;
  align-items: center;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 0 1.2rem;
  transition: background .2s;
  white-space: nowrap;
}
.nav-links a:hover{
  background: rgba(255,255,255,.15);
}

/* Bli Medlem – always visible, pushed to right */
.nav-member {
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}
.btn-member {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .8rem 1.1rem;
  border-radius: 4px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-member:hover {
  background: #dce8ff ;
}

/* Hamburger */
.hamburger {
  display: none;
  align-self: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  margin-left: 1rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--navy-dark);
  z-index: 999;
  flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 1.5rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .2s;
  list-style: none;
}
.nav-mobile a:hover {
  background: rgba(255,255,255,.08);
}


/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}
.hero-logo {
  width: 160px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
  animation: fadeUp .8s ease both;
}
.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: .08em;
  animation: fadeUp .8s .1s ease both;
}
.hero p {
  font-size: 1.1rem;
  font-weight: 300;
  margin-top: .75rem;
  opacity: .85;
  max-width: 540px;
  margin-inline: auto;
  animation: fadeUp .8s .2s ease both;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .8s .3s ease both;
}
.btn-primary {
  background: var(--white);
  color: var(--navy);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .75rem 1.75rem;
  border-radius: 4px;
  transition: background .2s;
}
.btn-primary:hover { background: #dce8ff; }
.btn-secondary {
  background: transparent;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .73rem 1.75rem;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,.5);
  transition: border-color .2s;
}
.btn-secondary:hover { border-color: var(--white); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Info cards ─────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}
.card {
  background: var(--grey-blue);
  padding: 1.25rem 1.5rem;
  text-align: center;
  border: 3px solid var(--navy);
  border-radius: 6px;
}
.card-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .5rem;
}
.card p { font-size: .95rem; color: #444; line-height: 1.6; }

/* ── Section shared ──────────────────────────────────────── */
.section {
  width: 100%;
  max-width: min(85%, 900px);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 3px solid var(--navy);
}

.section p {
  line-height: 1.8;
}

.section p.description {
  margin-bottom: 1rem;
}

.section p.coming-soon {
  font-size: 1rem;
  font-weight: bold;
  color: var(--owl-brown);
  letter-spacing: .05em;
}

/* ── Om oss ─────────────────────────────────────────────── */
.about-content h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 1rem;
  padding-bottom: .25rem;
  border-bottom: 2px solid var(--navy);
}

.about-content h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1em;
  color: var(--navy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .75rem;
}

.additional-info {
  margin-top: 1.5rem;
}

.additional-info a {
  text-decoration: underline;
}

.additional-info a:hover {
  color: var(--navy);
}

/* ── Kontakt ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.contact-box {
  background: var(--grey-blue);
  padding: 1.25rem 1.5rem;
  border: 3px solid var(--navy);
  border-radius: 6px;
}
.contact-box h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .4rem;
  padding-bottom: .25rem;
  border-bottom: 2px solid var(--navy);
}
.contact-box p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.7;
}
.contact-box a { 
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.contact-box a i {
  display: inline-block;
  width: 1.2rem;
  text-align: center;
}
.contact-box a:hover span { text-decoration: underline; }

/* ── Fordeler ─────────────────────────────────────────────── */
.advantages-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-inline: auto;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.advantages-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  background: var(--grey-blue);
  padding: 1.25rem 1.5rem;
  border: 3px solid var(--navy);
  border-radius: 6px;
}

.advantages-box img {
  max-width: 200px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.advantages-box h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .4rem;
  border-bottom: 2px solid var(--navy);
}

.advantages-box ul {
  width: calc(100% + 3rem);
  text-align: left;
  list-style-position: outside;
  
  border-top: 2px solid var(--navy);
  padding-left: 1.5rem;
  padding-top: .75rem;
}

.advantages-box li {
  list-style-type: disc;
  hyphens: auto;
  overflow-wrap: break-word;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

.advantages-box li::marker {
  color: var(--navy);
}

/* ── Sanger ─────────────────────────────────────────────── */
.songs-container {
  max-width: 100%;
}

.song-category {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--navy);
}
.song-category:first-child {
  margin-top: 0;
}

.song-box {
  background: var(--grey-blue);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--navy);
  border-radius: 4px;
}
.song-box:last-child {
  margin-bottom: 0;
}

.song-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}

.song-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}

.tag {
  display: inline-block;
  padding: .2rem .6rem;
  font-family: 'Oswald', sans-serif;
  border: 3px solid var(--navy);
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.tag-seier {
  background: #ffd700;
  color: #000;
}
.tag-seier::before {
  content: "Etter seier";
}

.tag-klassiker {
  background: #cd7f32;
  color: #fff;
}
.tag-klassiker::before {
  content: "Klassiker";
}

.tag-molde {
  background: #176fc1;
  color: #fff;
}
.tag-molde::before {
  content: "Kun M*lde";
}

.tag-ny {
  background: #00a86b;
  color: #fff;
}
.tag-ny::before {
  content: "Ny!";
}

.tag-hjemmebane {
  background: var(--navy);
  color: #fff;
}
.tag-hjemmebane::before {
  content: "Kun Hjemmebane";
}

.tag-bortebane {
  background: #fff;
  color: #000;
}
.tag-bortebane::before {
  content: "Kun Bortebane";
}

.tag-cornerefrispark {
  background: #e21f29;
  color: #fff;
}
.tag-cornerefrispark::before {
  content: "Offensive cornere & frispark";
}

.tag-baccalaobrigaden {
  background: #86858d;
  color: #fff;
}
.tag-baccalaobrigaden::before {
  content: "BaccalaoBrigaden";
}

.tag-arkivert {
  background: #6c757d;
  color: #fff;
}
.tag-arkivert::before {
  content: "Arkivert";
}

.song-melody {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.song-melody a {
  color: var(--text-muted);
  text-decoration: underline;
}

.song-note {
  font-size: .9rem;
  color: var(--owl-brown);
  font-weight: 600;
  margin-bottom: .5rem;
}

.song-lyrics {
  line-height: 1.8;
  color: var(--text);
}
.song-lyrics p {
  margin-bottom: .75rem;
}
.song-lyrics p:last-child {
  margin-bottom: 0;
}
.song-lyrics em {
  font-style: italic;
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand img {
  height: 60px;
  margin-bottom: .75rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
}
.footer-brand p {
  font-size: .85rem;
  opacity: .85;
  line-height: 1.6;
}
.footer-links h4,
.footer-member h4 {
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: .75rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a {
  font-size: .9rem;
  opacity: .9;
  transition: opacity .2s;
}
.footer-links a:hover { opacity: 1; }
.footer-member p { font-size: .85rem; opacity: 0.85; margin-bottom: .75rem; }
.btn-footer-member {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .6rem 1.2rem;
  border-radius: 4px;
  transition: background .2s;
}
.btn-footer-member:hover { background: #dce8ff; }
.footer-bottom {
  max-width: 960px;
  margin: 1.5rem auto 0;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .8rem;
  opacity: .7;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* Legg til for sentrering */
  column-gap: 1.5rem;  /* Horisontalt mellom elementer */
  row-gap: .3rem;      /* Mindre vertikalt når de wrapper */
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 800px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .cards {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero { padding: 3.5rem 1rem; }
  .hero-logo { width: 120px; }
}
