/* ===== Design tokens (konsulent – blå/teal) ===== */
:root {
  --bg: #0b0f12;
  --bg-soft: #11161b;
  --panel: #121921;
  --text: #e8ecf3;
  --muted: #b6c0cf;
  --brand: #3aa7ff; /* blå */
  --brand-2: #3fe0c1; /* teal */
  --line: #243141;
  --shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
  --radius: 18px;

  /* settes dynamisk fra JS (fallback) */
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 540px at 10% -10%, rgba(58, 167, 255, 0.08), transparent 60%), radial-gradient(900px 540px at 110% 10%, rgba(63, 224, 193, 0.08), transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
h1 {
  font-size: clamp(2rem, 3.4vw + 1rem, 3.6rem);
  letter-spacing: 0.2px;
}
h2 {
  font-size: clamp(1.6rem, 1.6vw + 1rem, 2.2rem);
}
h3 {
  font-size: 1.1rem;
}
p {
  margin: 0.25rem 0 1rem;
  color: var(--muted);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}
.section {
  padding: clamp(56px, 8vw, 96px) 0;
  background: transparent;
}
.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Buttons & links */
.btn {
  display: inline-block;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #001018;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, filter 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--text);
}
.btn.small {
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
}

.link {
  color: #d7e3f4;
  border-bottom: 1px dashed #41536b;
  padding-bottom: 2px;
}
.link.small {
  font-size: 0.95rem;
}

.muted.small {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

/* ===== Header & Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 18, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #001018;
  font-weight: 900;
}
.logo-text {
  letter-spacing: 0.6px;
  opacity: 0.95;
}

/* Desktop nav */
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav a {
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav .btn.small {
  margin-left: 0.25rem;
}
.nav a.active {
  background: rgba(58, 167, 255, 0.15);
  border: 1px solid rgba(58, 167, 255, 0.35);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 2px;
  background: #e8ecf3;
  margin: 6px 0;
  transition: 0.2s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-inner {
  padding: clamp(40px, 4vw, 60px) 0;
  display: grid;
  gap: 16px;
}
.hero p {
  font-size: 1.1rem;
  max-width: 60ch;
}
.hero-cta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(180deg, rgba(11, 15, 18, 0.25), rgba(11, 15, 18, 1)), url('https://images.unsplash.com/photo-1551836022-d5d88e9218df?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  filter: saturate(0.95) contrast(1.05);
}

/* ===== Cards / Grids ===== */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2.4vw, 22px);
  box-shadow: var(--shadow);
}
.grid {
  display: grid;
  gap: 18px;
}
.grid.two {
  grid-template-columns: 1fr;
}
.grid.three {
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .grid.two {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* KPI card */
.kpi .kpi-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}
.kpi .kpi-row div {
  background: #0f141a;
  border: 1px solid #26354a;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.kpi .kpi-row strong {
  font-size: 1.3rem;
}

/* Services */
.services .service {
  position: relative;
}
.services .tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cfefff;
}

/* Bullets in case */
.bullets {
  margin: 0.25rem 0 0.25rem 1.1rem;
}
.bullets li {
  margin: 0.2rem 0;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: #0f141a;
  border: 1px solid #26354a;
  border-radius: 14px;
  padding: 14px;
}
.steps .num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #001018;
  font-weight: 900;
}

/* Testimonials */
.quote p {
  font-style: italic;
}
.quote span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Forms */
.form label {
  display: block;
  font-weight: 600;
  margin: 0.6rem 0 0.25rem;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  background: #0f141a;
  border: 1px solid #2a3a50;
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  outline: none;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: #4f9cff;
  box-shadow: 0 0 0 3px rgba(79, 156, 255, 0.2);
}
.form .form-msg {
  margin: 0.6rem 0 0;
  min-height: 1.4rem;
}

/* Info list */
.info {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}
.info li {
  margin: 0.25rem 0;
}

/* FAQ */
.faq {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  background: #0f141a;
  margin: 0.6rem 0;
}
.faq > summary {
  cursor: pointer;
  font-weight: 800;
}
.faq[open] {
  background: #101723;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  background: #0a1014;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.footer-inner p {
  margin: 0;
}

/* ===== Responsive nav (mobil) ===== */
@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    right: 4%;
    top: calc(100% + 10px);
    background: #0f141a;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    width: min(86vw, 320px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav.open {
    max-height: 80vh;
  }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem;
  }
  .nav a {
    padding: 0.7rem 0.8rem;
  }
}

/* Systemjustering for sticky header ved anker */
:target {
  scroll-margin-top: 90px;
}

/* Fullscreen-seksjoner (samme prinsipp som tatoo-demoen) */
.section.full,
.hero.section {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
}

/* Kafé tema – varm grønn */
body.theme-kafe {
  --brand: #1b7; /* primary */
  --brand-2: #0a6;
  --accent: #195;
  --bg: #0b0d10;
  --panel: #101419;
}