/* ============================================================
   renseribærum.no — Felles stilark
   Design-system: rb-DESIGN-SYSTEM.md
   ============================================================ */

/* ─── Variabler ─────────────────────────────────────────── */
:root {
  /* Tekst */
  --ink: #0E0E0E;
  --ink-soft: #444;
  --ink-mute: #777;

  /* Linje */
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.15);

  /* Body-bakgrunn — REN HVIT */
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;

  /* Kategoriske farger (brukes sparsomt nå — kun små aksenter) */
  --cat-green-bg: #f5f8f3;
  --cat-green-ink: #1c3d2e;
  --cat-beige-bg: #faf7f3;
  --cat-beige-ink: #4a3a1c;
  --cat-blue-bg: #f3f6f9;
  --cat-blue-ink: #1c2d3d;
  --cat-rose-bg: #faf3f1;
  --cat-rose-ink: #5a2b1e;
  --cat-olive-bg: #f7f6f1;
  --cat-olive-ink: #3a3d1c;

  /* Accents */
  --gold: #E0A82E;
  --green-success: #1a8a4a;
  --dark-cta: #0E0E0E;
}

/* ─── Reset ─────────────────────────────────────────────── */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg); /* eneste solid-bg på siden */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

/* ─── Layout-basis ──────────────────────────────────────── */
.rb-page {
  background: transparent; /* aldri solid */
}

.rb-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.rb-section {
  padding: 48px 0;
  background: transparent; /* aldri solid på seksjoner */
}

@media (min-width: 1024px) {
  .rb-wrap { padding: 0 40px; }
  .rb-section { padding: 90px 0; }
}

/* ─── Typografi ─────────────────────────────────────────── */
.rb-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
}

.rb-h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 18px;
}

.rb-h1 em { font-style: italic; }

.rb-h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 16px;
}

.rb-h2 em { font-style: italic; }

.rb-h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 10px;
}

.rb-lead {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 60ch;
}

/* ─── Knapper ───────────────────────────────────────────── */
.rb-btn,
.rb-btn:link,
.rb-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.rb-btn:hover { transform: translateY(-1px); }
.rb-btn-arrow { display: inline-block; transition: transform 0.15s ease; }
.rb-btn:hover .rb-btn-arrow { transform: translateX(3px); }

.rb-btn-dark {
  background: #111;
  color: #fff;
}
.rb-btn-dark:hover { background: #000; }

.rb-btn-light {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(4px);
}
.rb-btn-light:hover { background: rgba(255, 255, 255, 0.95); }

.rb-btn-white {
  background: #fff;
  color: #111;
}

.rb-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.rb-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ─── Kort ──────────────────────────────────────────────── */
.rb-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 24px;
}

.rb-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rb-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

/* Mørk CTA-boks */
.rb-cta-card {
  background: var(--dark-cta);
  border-radius: 28px;
  padding: 48px 28px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.rb-cta-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.rb-cta-card > * { position: relative; }
.rb-cta-card .rb-h2 { color: #fff; }

@media (min-width: 768px) {
  .rb-cta-card { padding: 72px 48px; }
}

/* ─── Lister ─────────────────────────────────────────────── */
.rb-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: list-counter;
}
.rb-list li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 32px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.rb-list li::before {
  content: counter(list-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-mute);
}

/* ─── Callouts ──────────────────────────────────────────── */
.rb-callout {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 18px;
  margin: 28px 0;
}
.rb-callout-tip {
  background: rgba(230, 237, 224, 0.7);
  border: 1px solid rgba(28, 61, 46, 0.15);
}
.rb-callout-warning {
  background: rgba(236, 222, 218, 0.7);
  border: 1px solid rgba(90, 43, 30, 0.15);
}
.rb-callout-ico {
  font-size: 20px;
  flex-shrink: 0;
}

/* ─── FAQ ───────────────────────────────────────────────── */
.rb-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rb-faq-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.rb-faq-item[open] {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.rb-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.rb-faq-item summary::-webkit-details-marker { display: none; }
.rb-faq-item summary::marker { display: none; }

.rb-faq-toggle {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.rb-faq-toggle::before,
.rb-faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.rb-faq-toggle::before {
  width: 12px;
  height: 1.8px;
  transform: translate(-50%, -50%);
}
.rb-faq-toggle::after {
  width: 1.8px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.rb-faq-item[open] .rb-faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.rb-faq-body {
  padding: 0 22px 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ─── Animasjoner ───────────────────────────────────────── */
@keyframes rb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.rb-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-success);
  animation: rb-pulse 2s ease-in-out infinite;
}

/* ─── Header ────────────────────────────────────────────── */
.rb-hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.rb-hdr-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.rb-hdr-logo {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.rb-hdr-logo-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.rb-hdr-logo-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.rb-hdr-nav {
  display: none;
  gap: 22px;
  align-items: center;
}
.rb-hdr-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.rb-hdr-nav a:hover { color: var(--ink); }
.rb-hdr-nav a.active { color: var(--ink); font-weight: 600; }

.rb-hdr-cta,
.rb-hdr-cta:link,
.rb-hdr-cta:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.rb-hdr-cta:hover { background: #000; }

.rb-hdr-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  cursor: pointer;
}
.rb-hdr-burger span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
}

@media (min-width: 1024px) {
  .rb-hdr-inner { padding: 14px 40px; }
  .rb-hdr-nav { display: flex; }
  .rb-hdr-burger { display: none; }
}

/* Mobil-meny */
.rb-hdr-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  padding: 14px 20px 22px;
}
.rb-hdr-mobile.is-open { display: block; }
.rb-hdr-mobile a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.rb-hdr-mobile a:last-child { border-bottom: none; }

@media (min-width: 1024px) {
  .rb-hdr-mobile { display: none !important; }
}

/* ─── Footer ────────────────────────────────────────────── */
.rb-ftr {
  margin-top: 60px;
  padding: 40px 0 24px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.rb-ftr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .rb-ftr-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

.rb-ftr-brand h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ink);
}
.rb-ftr-brand p {
  font-size: 14px;
  color: var(--ink-mute);
  max-width: 32ch;
  line-height: 1.55;
  margin: 0 0 14px;
}

.rb-ftr h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
}

.rb-ftr ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rb-ftr ul a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  transition: color 0.15s ease;
}
.rb-ftr ul a:hover { color: var(--ink); }

.rb-ftr-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-mute);
}

@media (min-width: 768px) {
  .rb-ftr-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.rb-ftr-bottom a { color: var(--ink-mute); }

/* ─── Forside-spesifikt: hero, grid, etc. ───────────────── */
.rb-hero {
  padding: 56px 0 40px;
  position: relative;
}
@media (min-width: 1024px) {
  .rb-hero { padding: 96px 0 70px; }
}

.rb-hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.rb-hero-trust strong { color: var(--ink); }

.rb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.rb-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .rb-hero-stats { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.rb-stat-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}
.rb-stat-num em { font-style: italic; }
.rb-stat-label {
  font-size: 13px;
  color: var(--ink-mute);
}

/* Områder-grid */
.rb-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .rb-areas-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .rb-areas-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

.rb-area-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(4px);
}
.rb-area-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
}
.rb-area-card-arrow {
  font-size: 16px;
  color: var(--ink-mute);
  transition: transform 0.15s ease, color 0.15s ease;
}
.rb-area-card:hover .rb-area-card-arrow {
  transform: translateX(3px);
  color: var(--ink);
}

/* Tjeneste-grid */
.rb-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .rb-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .rb-services-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.rb-service-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(4px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}
.rb-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}
.rb-service-card .rb-h3 { margin-bottom: 8px; }
.rb-service-card-meta {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* "Hvorfor oss"-grid */
.rb-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .rb-why-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

.rb-why-item {
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(4px);
}
.rb-why-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

/* Hentedager-strip */
.rb-pickup-strip {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: rgba(230, 237, 224, 0.55);
  border: 1px solid rgba(28, 61, 46, 0.15);
  border-radius: 22px;
  backdrop-filter: blur(4px);
}
@media (min-width: 768px) {
  .rb-pickup-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
  }
}
.rb-pickup-strip strong { color: var(--cat-green-ink); }
.rb-pickup-days {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rb-pickup-day {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid rgba(28, 61, 46, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cat-green-ink);
}

/* Section-header (eyebrow + h2 + lead, sentrert) */
.rb-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.rb-section-head .rb-lead { margin: 0 auto; }

/* Helpers */
.rb-text-center { text-align: center; }
.rb-mt-0 { margin-top: 0; }
.rb-mb-0 { margin-bottom: 0; }