/* ===== tokens ===== */
:root {
  --bg: #141510;
  --panel: rgba(23, 24, 20, 0.96);
  --glass: rgba(27, 30, 24, 0.9);
  --fg: #f7f3ea;
  --muted: #b3aa9b;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #c4e3a1;      /* sage-grønn */
  --accent-soft: #f2c9a0; /* varm pastell */
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

/* ===== base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background-color: var(--bg);
  overflow-x: hidden;
}

/* blurret bakgrunnsbilde */
body::before {
  content: "";
  position: fixed;
  inset: -40px;
  background: url("img/wallpaper.jpg") center/cover no-repeat;
  filter: blur(12px);
  transform: scale(1.04);
  z-index: -3;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 10, 8, 0.88), rgba(14, 14, 11, 0.95)),
    radial-gradient(circle at 10% 10%, rgba(194, 227, 161, 0.16), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(242, 201, 160, 0.12), transparent 55%);
  z-index: -2;
  pointer-events: none;
}

/* basic elements */
a { color: inherit; }
a:hover { text-decoration: none; }

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ===== header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px) saturate(130%);
  background: linear-gradient(180deg, rgba(15, 16, 13, 0.96), rgba(15, 16, 13, 0.85));
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.1rem;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 18px;
  background: rgba(18, 19, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}
.brand img {
  display: block;
  height: 32px;
  width: auto;
}

.links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.links a {
  position: relative;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.links a::after {
  content: "";
  position: absolute;
  inset: auto 12px -3px 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.links a:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  transform: translateY(-1px);
}

.links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(19, 20, 16, 0.85);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn.ghost {
  background: transparent;
}

.btn.outline {
  background: transparent;
}

.btn.primary {
  border-color: rgba(196, 227, 161, 0.9);
  background: linear-gradient(135deg, rgba(196, 227, 161, 0.17), rgba(17, 19, 13, 0.94));
}

.btn.xl {
  padding: 0.9rem 1.4rem;
  font-size: 0.95rem;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  background: linear-gradient(135deg, rgba(196, 227, 161, 0.22), rgba(17, 19, 13, 0.96));
}

/* ===== hero ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: 2.2rem;
  padding: clamp(2.4rem, 6vw, 3.8rem) 0 1.4rem;
}

.hero-inner {
  max-width: 680px;
}

.headline {
  font-size: clamp(2.4rem, 5.8vw, 3.6rem);
  line-height: 1.05;
  margin: 0.35rem 0 0.6rem;
  letter-spacing: 0.02em;
}

.lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 18, 15, 0.86);
  color: #efe7d8;
  font-size: 0.82rem;
  font-weight: 500;
}

.chip--role {
  background: linear-gradient(135deg, rgba(196, 227, 161, 0.26), rgba(242, 201, 160, 0.16));
  color: #181b0f;
  border-color: transparent;
  font-weight: 700;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

/* hero sidekort */
.hero-card {
  align-self: stretch;
}

.hero-card-inner {
  border-radius: 20px;
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: floatCard 7s ease-in-out infinite alternate;
}

.hero-card-inner::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(196, 227, 161, 0.22), transparent 55%);
  opacity: 0.7;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.hero-card-inner ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #efe6d7;
}

@keyframes floatCard {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

/* ===== seksjoner ===== */
.section {
  padding: clamp(2.2rem, 5vw, 3.1rem) 0;
}

.section h2 {
  margin: 0 0 0.45rem;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.87rem;
}

.last-section {
  margin-bottom: clamp(1.2rem, 4vw, 2.4rem);
}

/* ===== grid & cards ===== */
.grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-tight .card {
  padding: 1rem;
}

.card {
  border-radius: 18px;
  padding: 1.1rem 1.1rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(242, 201, 160, 0.14), transparent 40%);
  mix-blend-mode: soft-light;
  opacity: 0.7;
  pointer-events: none;
}

.tilt {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tilt:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.list {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

/* stack chips */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.stack span {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(19, 19, 15, 0.9);
  color: #f3ebdc;
  font-size: 0.8rem;
  font-weight: 500;
}

/* kontaktkort */
.contact-template {
  margin-top: 1.3rem;
}

.contact-title {
  margin-top: 0;
  font-weight: 600;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(11, 11, 9, 0.96);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.9rem 0;
  font-size: 0.88rem;
}

.foot-links {
  display: flex;
  gap: 0.8rem;
}

.foot a {
  text-decoration: none;
  color: var(--muted);
}

.foot a:hover {
  color: var(--fg);
}

/* reveal animasjon */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== responsive ===== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 720px) {
  .links {
    display: none;
  }

  .hero {
    padding-top: 1.8rem;
  }
}

@media (max-width: 860px) {
  .grid.two,
  .grid.three {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-card-inner {
    animation: none;
  }
  .reveal {
    transition: none;
  }
}
