/* ===============================
   VARIABLER OG BASE-STILER
   =============================== */
:root {
  --accent: #2B7A78;
  --accent-2: #9ad3bc;
  --bg: #f7f9f9;
  --card: #ffffff;
  --muted: #6b7280;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Reset / grunnoppsett */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg), #ffffff);
  color: #0f172a;
  line-height: 1.5;
}

/* ===============================
   LAYOUT
   =============================== */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  padding-top: 96px;   /* plass til fixed header */
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
}

@media (max-width: 768px) {
  main {
    padding-top: 104px; /* litt ekstra for mobil */
  }
}

section {
  margin: 1.5rem 0;
}

/* ===============================
   HEADER / NAV
   =============================== */
header {
  backdrop-filter: blur(6px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

header .nav {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.brand-link .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-link .brand-text div:first-child {
  font-weight: 800;
}

.brand-link .brand-text div:last-child {
  font-size: 0.8rem;
  color: var(--muted);
}

.logo-img {
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  transition: padding 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.logo-active {
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav a {
  margin-left: 1rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

nav a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.header-social {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-left: 1rem;
}

.header-social a {
  display: flex;
  width: 26px;
  height: 26px;
  opacity: 0.8;
  transition: 0.2s;
}

.header-social a:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ===============================
   KORT / FELLES KOMPONENTER
   =============================== */
.card {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.04);
  display: flex;
  flex-direction: column;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0.32rem 0;
}

.muted {
  color: var(--muted);
}

/* ===============================
   GRID (brukes flere steder)
   =============================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   FOOTER
   =============================== */
footer {
  padding: 2rem 0;
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.social-icons a {
  display: flex;
  width: 26px;
  height: 26px;
  opacity: 0.8;
  transition: 0.2s;
}

.social-icons a:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ===============================
   OVERLAY (BURGER)
   =============================== */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 30;
}

#overlay.show {
  opacity: 1;
  visibility: visible;
}


.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  color: var(--text);
}

.brand-tagline {
  font-size: 0.8rem !important;
  color: var(--muted);
  font-weight: 400 !important;
}

.brand-name {
  font-weight: 800;
  font-size: 1rem !important;
}

.brand-tagline {
  font-size: 0.75rem !important;
}

header .brand-link {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

header .brand-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  line-height: 1.15 !important;
}

header .brand-name {
  font-weight: 800 !important;
  font-size: 1rem !important;
  line-height: 1.1 !important;
}

header .brand-tagline {
  font-size: 0.75rem !important;
  color: var(--muted) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

header .logo-img {
  height: 52px !important;
  object-fit: contain !important;
}