/* === ammebh.no · Design 2026 === */
:root {
  --bg: #fef8f3;
  --bg-alt: #fdf2ea;
  --text: #253040;
  --muted: #567085;
  --line: rgba(37, 48, 64, 0.1);
  --brand: #b06e82;
  --brand-light: #f7e4ea;
  --brand-dark: #8a5265;
  --mint: #c8e0d8;
  --sky: #cde0f0;
  --shadow: 0 4px 20px rgba(37, 48, 64, 0.08);
  --shadow-sm: 0 2px 8px rgba(37, 48, 64, 0.05);
  --radius: 14px;
  --max: 1100px;
  --font:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  transform: translateY(-200%);
  transition: transform 0.15s;
  z-index: 50;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(254, 248, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 900;
  font-size: 1rem;
}
.nav {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav a {
  color: var(--muted);
  font-size: 0.93rem;
  padding: 8px 11px;
  border-radius: 8px;
  transition:
    background 0.12s,
    color 0.12s;
}
.nav a:hover {
  background: var(--brand-light);
  color: var(--text);
}
.nav a.is-active {
  background: var(--brand-light);
  color: var(--text);
  font-weight: 600;
}
.nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 9px;
  padding: 8px 15px !important;
}
.nav-cta:hover {
  background: var(--brand-dark) !important;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 3px;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 80px 0 64px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--brand-light) 100%);
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: start;
}

/* ── Typografi ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 6px;
}
h1,
h2,
h3 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}
h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
}
h3 {
  font-size: 1.07rem;
  font-weight: 700;
}
p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.76;
}
.lead {
  font-size: clamp(1rem, 1.15vw, 1.16rem);
  color: var(--text);
  max-width: 62ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--brand-light);
  font-size: 0.87rem;
  color: var(--muted);
}
.hero-side {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--brand-light);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.kicker {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
.checklist {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.checklist li {
  margin: 9px 0;
  line-height: 1.65;
}

/* ── Knapper ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.btn:hover {
  background: var(--bg-alt);
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn.primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
.btn.soft {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: var(--text);
}
.btn.soft:hover {
  background: #eecdb2;
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
}
.btn.ghost:hover {
  background: var(--bg-alt);
}
.btn.full {
  width: 100%;
  justify-content: center;
}

/* ── Seksjoner ── */
.section {
  padding: 68px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--brand-light);
  border-bottom: 1px solid var(--brand-light);
}
.section-head {
  margin-bottom: 28px;
}
.section-head p {
  max-width: 70ch;
}

/* ── Kort ── */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card {
  grid-column: span 12;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.list {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.76;
}
.list li {
  margin: 8px 0;
}
.list strong {
  color: var(--text);
}
.grid-2 {
  display: grid;
  gap: 16px;
}

/* ── CTA-blokk ── */
.inline-cta {
  margin-top: 28px;
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--sky) 100%);
  border: 1.5px solid rgba(176, 110, 130, 0.2);
}
.inline-cta h3 {
  color: var(--text);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Tabell ── */
.compare {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare th,
.compare td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.compare th {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-alt);
}
.compare tr:last-child td {
  border-bottom: 0;
}
.compare a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Misc ── */
.small {
  font-size: 0.9rem;
  color: var(--muted);
}
.note {
  padding: 14px 18px;
  border-radius: 8px;
  background: #fff8f2;
  border-left: 3px solid var(--brand);
}
.muted {
  color: var(--muted);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  background: #fff;
}
.footer-inner {
  display: grid;
  gap: 20px;
  align-items: start;
}
.footer-brand {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-links a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.93rem;
}
.footer-links a:hover {
  background: var(--brand-light);
  color: var(--text);
}

/* ── Desktop ── */
@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.6fr;
  }
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .cards .card {
    grid-column: span 4;
  }
  .inline-cta {
    grid-template-columns: 1fr auto;
  }
  .footer-inner {
    grid-template-columns: 1.4fr 0.6fr;
  }
  .footer-links {
    justify-content: flex-end;
  }
}

/* ── Mobil ── */
@media (max-width: 920px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav {
    position: absolute;
    top: 66px;
    right: 10px;
    left: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open {
    display: flex;
  }
  .hero {
    min-height: 420px;
    padding: 60px 0 48px;
  }
}
