/* RG Landingsside-mockups — v3 — speiler faktisk RG-stil
 * Referanse: https://rentalgroup.no/adr-pickup-til-leie/
 * Stil: industriell, minimalistisk, mørk header, flate elementer
 */

:root {
  --green:        #40b800;        /* CTA-knapper, lenker (theme-green fra app.css) */
  --green-dark:   #348f00;
  --logo-green:   #03c52c;        /* Logo-grønn — sterkere/lysere, fra logo.png */
  --orange:       #d8612b;
  --bg-dark:      #42423e;        /* Header + dark sections — match rentalgroup.no */
  --bg-darker:    #1f1f1c;        /* Footer + ekstra mørk */
  --bg-grey:      #ebebeb;        /* Breadcrumb + lys-bg — match RG */
  --bg-light:     #f5f6f3;
  --bg-card:      #f9faf7;
  --text:         #1f1f1c;
  --text-muted:   #555;
  --text-light:   #787878;
  --border:       #e0e1de;
  --content-max:  1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  color: var(--text);
  background: white;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
img { max-width: 100%; display: block; }

/* ============================================
   Mockup banner
   ============================================ */
.rg-mockup-banner {
  background: #fef3c7;
  color: #78350f;
  padding: 8px 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.rg-mockup-banner a { color: #78350f; }

/* ============================================
   Header — mørk #42423e, RG-stil (matches rentalgroup.no)
   ============================================ */
.rg-header {
  background: var(--bg-dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
}
.rg-header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.rg-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.rg-logo img {
  width: 80px;
  height: auto;
  display: block;
}
.rg-logo-text {
  color: white;
  font-size: 15px;
  font-weight: 600;
}
.rg-logo-text .accent { color: var(--logo-green); font-weight: 700; }
.rg-header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.rg-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
}
.rg-nav a {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.rg-nav a:hover { color: var(--green); }
.rg-nav a svg { width: 16px; height: 16px; color: var(--green); }
.rg-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid var(--green);
  border-radius: 4px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
}
.rg-menu-btn:hover { background: var(--green); }
.rg-menu-btn svg { width: 16px; height: 16px; color: var(--green); transition: color 0.15s; }
.rg-menu-btn:hover svg { color: white; }
@media (max-width: 900px) { .rg-nav { display: none; } }

/* ============================================
   Breadcrumbs
   ============================================ */
.rg-breadcrumbs {
  background: var(--bg-grey);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 16px;
  color: var(--text-muted);
}
.rg-breadcrumbs-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}
.rg-breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.rg-breadcrumbs a:hover { color: var(--green); }
.rg-breadcrumbs .sep { margin: 0 8px; opacity: 0.4; }

/* ============================================
   Full-bleed escape for tema-containere (Sage/Avada/Elementor osv.)
   Sectionene bryter ut av enhver parent .container via 100vw + negative margins.
   Garanterer at hero/sections er fullbredde uavhengig av tema-wrapper.
   ============================================ */
.rg-hero,
.rg-section {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Prevent horizontal scrollbar pga 100vw */
  box-sizing: border-box;
}

/* ============================================
   Hero — fullt bakgrunnsbilde, tekst venstre
   ============================================ */
.rg-hero {
  min-height: 540px;
  max-height: 720px;
  background-color: #2a2a26;
  background-size: cover;
  background-position: center 35%;
  background-image: var(--hero-default, none);
  display: flex;
  align-items: center;
}
/* Store skjermer (1440+): mer pust + desktop-bilde fra --hero-wide CSS-var (faller tilbake til default) */
@media (min-width: 1440px) {
  .rg-hero {
    min-height: 620px;
    max-height: 760px;
    background-position: center 40%;
    background-image: var(--hero-wide, var(--hero-default, none));
  }
}
/* Ultra-wide (1920+): cap høyde og hold innhold sentralisert */
@media (min-width: 1920px) {
  .rg-hero { min-height: 680px; max-height: 800px; }
}
.rg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31,31,28,0.85) 0%, rgba(31,31,28,0.4) 60%, transparent 100%);
}
.rg-hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.rg-hero-content {
  max-width: 600px;
  color: white;
}
.rg-pill {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.rg-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  margin: 0 0 12px;
  color: white;
}
.rg-hero h2.subtitle {
  color: white;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  margin: 0 0 20px;
  opacity: 0.95;
}
.rg-hero p.lead {
  font-size: 16px;
  margin: 0 0 32px;
  max-width: 540px;
  color: rgba(255,255,255,0.9);
}
.rg-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ============================================
   Buttons — flat, RG-stil
   ============================================ */
.rg-hero .btn,
.rg-section .btn,
.rg-hero-ctas .btn,
.rg-cta-banner .btn {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap !important;
  width: auto;
  max-width: none;
}
.rg-hero .btn svg,
.rg-section .btn svg,
.rg-hero-ctas .btn svg,
.rg-cta-banner .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--green);
  color: white;
  border: 1.5px solid var(--green);
}
.btn-primary:hover {
  background: #36a000;  /* mørkere grønn — beholder fargeprofilen, signaliserer interaksjon */
  border-color: #36a000;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64, 184, 0, 0.3);
}
.btn-primary:active { background: #2d8a00; transform: translateY(0); box-shadow: none; }

.btn-outline-light {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.6);
  color: white;
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  background: white;
  color: var(--text);
  border-color: white;
}

.btn-outline-dark {
  background: transparent;
  border: 1.5px solid var(--text);
  color: var(--text);
}
.btn-outline-dark:hover {
  background: var(--text);
  color: white;
}

.btn-lg {
  padding: 18px 34px;
  font-size: 17px;
}

/* ============================================
   Om-seksjon — side-by-side (bilde venstre, tekst høyre), full bredde
   ============================================ */
.rg-om-fullwidth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .rg-om-fullwidth {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.rg-om-figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
@media (max-width: 900px) {
  .rg-om-figure { aspect-ratio: 16/9; }
}
.rg-om-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.rg-om-fullwidth .rg-side-content {
  width: 100%;
}

/* ============================================
   Galleri-seksjon — 3 bilder ved siden av (mobil: auto-karusell)
   ============================================ */
.rg-galleri-section { padding: 56px 0; }
.rg-galleri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  overflow: hidden;
  /* Vis kun de første 3 (vi rendrer 6 = 3×2 for mobil-loop) */
}
.rg-galleri .rg-galleri-item:nth-child(n+4) { display: none; }

.rg-galleri-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-grey);
}
.rg-galleri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 800px) {
  .rg-galleri {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    margin: 0 -24px;
    padding: 0 24px;
    /* Auto-scrolling karusell */
    width: max-content;
    animation: rg-galleri-scroll 28s linear infinite;
  }
  .rg-galleri .rg-galleri-item:nth-child(n+4) { display: block; }
  .rg-galleri-item {
    flex-shrink: 0;
    width: min(78vw, 320px);
    aspect-ratio: 4/3;
  }
  /* Pause animasjon når brukeren hover/touch */
  .rg-galleri-section:hover .rg-galleri,
  .rg-galleri-section:focus-within .rg-galleri {
    animation-play-state: paused;
  }
}
@keyframes rg-galleri-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .rg-galleri { animation: none; }
}

/* ============================================
   Kontakt-seksjon (full-width mørk, 3 kolonner)
   ============================================ */
.rg-contact-section {
  background: var(--bg-dark);
  color: white;
}
.rg-contact-section h2 { color: white; margin: 0 0 8px; }
.rg-contact-section .lead { color: rgba(255,255,255,0.7); margin: 0 auto 36px; }
.rg-contact-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.rg-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .rg-contact-grid { grid-template-columns: 1fr; gap: 20px; }
}
.rg-contact-col {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 26px 24px;
}
.rg-contact-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--green);
  margin: 0 0 14px;
}
.rg-contact-icon {
  width: 40px;
  height: 40px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.rg-contact-icon svg { width: 20px; height: 20px; }
.rg-contact-line {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  margin: 0 0 6px;
  line-height: 1.45;
}
a.rg-contact-line {
  color: white;
  transition: color 0.15s;
}
a.rg-contact-line:hover { color: var(--green); }

.rg-contact-footer {
  margin: 32px auto 0;
  max-width: 760px;
  padding: 22px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.rg-contact-footer-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rg-contact-footer-icon svg { width: 22px; height: 22px; }
.rg-contact-footer-text { flex: 1; }
.rg-contact-footer-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 4px;
}
.rg-contact-footer-text p {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
@media (max-width: 600px) {
  .rg-contact-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================
   Kategori-blokk: container-bredde (ikke full-bleed)
   ============================================ */
.rg-cat-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}
.rg-cat-section h2 { margin: 0 0 8px; text-align: center; }
.rg-cat-section .lead { margin: 0 auto 30px; max-width: 720px; text-align: center; }
.rg-cat-carousel { min-width: 0; }

/* ============================================
   Karusell-wrapper med prev/next-knapper
   ============================================ */
.rg-carousel-wrap {
  position: relative;
}
.rg-carousel-wrap.no-scroll-needed .rg-nav-btn { display: none; }

.rg-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(31, 31, 28, 0.5);  /* var(--text) med 50% opacity */
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s, opacity 0.15s;
}
.rg-nav-btn svg { width: 22px; height: 22px; }
.rg-nav-btn.prev { left: -10px; }
.rg-nav-btn.next { right: -10px; }
.rg-nav-btn:hover {
  background: rgba(31, 31, 28, 0.85);
  color: white;
}
.rg-nav-btn.at-edge {
  /* Looper alltid — bare visuell hint at vi er ved kanten */
  opacity: 0.85;
}
@media (max-width: 700px) {
  .rg-nav-btn { width: 38px; height: 38px; }
  .rg-nav-btn svg { width: 18px; height: 18px; }
  .rg-nav-btn.prev { left: 4px; }
  .rg-nav-btn.next { right: 4px; }
}

/* ============================================
   Kategori- og produkt-karusell (én rad, scroll-snap)
   Desktop OG mobil: horisontal scroll, viser ~4 cards av gangen
   ============================================ */
.rg-cat-grid,
.rg-products-grid {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  margin: 28px -24px 0;
  padding: 6px 24px 18px;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
  /* Skjul scroll-bar — vi bruker dot-navigasjon i stedet */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rg-cat-grid::-webkit-scrollbar,
.rg-products-grid::-webkit-scrollbar { display: none; }

/* Dots-paginering */
.rg-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.rg-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}
.rg-dot:hover { background: var(--text-muted); }
.rg-dot.active {
  background: var(--green);
  transform: scale(1.3);
}
.rg-carousel-wrap.no-scroll-needed .rg-carousel-dots { display: none; }

/* ============================================
   Desktop (≥901px): kategori- og produkt-grid wrapper til flere rader
   i stedet for horisontal-scroll. Nav-pilene og dots skjules — de gir
   ingen verdi når alle kort er synlige samtidig.
   På smaller skjermer (<901px) beholdes karusell-oppførselen.
   ============================================ */
@media (min-width: 901px) {
  .rg-cat-grid,
  .rg-products-grid {
    flex-wrap: wrap;
    row-gap: 20px;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .rg-carousel-wrap .rg-nav-btn,
  .rg-carousel-wrap .rg-carousel-dots {
    display: none !important;
  }
}

/* ============================================
   Kategori-kort — bilde øverst, tittel under
   ============================================ */
.rg-cat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: calc((100% - 48px) / 4);
  min-width: 240px;
  scroll-snap-align: start;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
@media (max-width: 1100px) { .rg-cat-card { width: calc((100% - 32px) / 3); min-width: 230px; } }
@media (max-width: 800px)  { .rg-cat-card { width: calc((100% - 16px) / 2); min-width: 220px; } }
@media (max-width: 560px)  { .rg-cat-card { width: 78%; min-width: 220px; } }

.rg-cat-card:hover {
  border-color: var(--text);
  box-shadow: 0 6px 14px -6px rgba(15,15,13,0.18);
}
.rg-cat-card:hover .rg-cat-card-img img { transform: scale(1.04); }

.rg-cat-card-img {
  aspect-ratio: 16/10;
  background: var(--bg-grey);
  overflow: hidden;
}
.rg-cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.rg-cat-card-body { padding: 16px 18px 18px; }
.rg-cat-card h4 { font-size: 16px; margin: 0 0 4px; font-weight: 800; }
.rg-cat-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.4; }

/* ============================================
   Produkt-kort i karusell — samme bredde-strategi
   ============================================ */
.rg-product-card {
  flex-shrink: 0;
  width: calc((100% - 48px) / 4);
  min-width: 250px;
  scroll-snap-align: start;
}
@media (max-width: 1100px) { .rg-product-card { width: calc((100% - 32px) / 3); min-width: 240px; } }
@media (max-width: 800px)  { .rg-product-card { width: calc((100% - 16px) / 2); min-width: 230px; } }
@media (max-width: 560px)  { .rg-product-card { width: 78%; min-width: 220px; } }

/* Bedre hover på produkt-kort — bildet zoomer subtilt + skygge */
.rg-product-card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.rg-product-card:hover {
  border-color: var(--text);
  box-shadow: 0 6px 14px -6px rgba(15,15,13,0.18);
  background: white;
}
.rg-product-card-image img { transition: transform 0.4s ease; }
.rg-product-card:hover .rg-product-card-image img { transform: scale(1.04); }

/* Hint-tekst for swipe — vises kun på touch-enheter (knapper er tydelige nok på desktop) */
.rg-swipe-hint {
  display: none;
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 0;
  font-style: italic;
}
@media (hover: none) {
  .rg-swipe-hint { display: block; }
}

/* ============================================
   Section base
   ============================================ */
.rg-section { padding: 64px 0; }
.rg-section-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.rg-section h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  margin: 0 0 14px;
}
.rg-section h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  margin: 0 0 14px;
}
.rg-section .lead {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 28px;
  max-width: 720px;
}
.rg-bg-grey { background: var(--bg-grey); }
.rg-bg-dark { background: var(--bg-dark); color: white; }
.rg-bg-dark h2, .rg-bg-dark h3 { color: white; }
.rg-bg-dark .lead { color: rgba(255,255,255,0.75); }

/* ============================================
   Stat-bar
   ============================================ */
.rg-stat-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.rg-stat-bar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 800px) { .rg-stat-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.rg-stat {
  text-align: center;
  padding: 0 8px;
  border-right: 1px solid var(--border);
}
.rg-stat:last-child { border-right: none; }
@media (max-width: 800px) { .rg-stat { border-right: none; } }
.rg-stat-num {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.rg-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ============================================
   Quick-info grid (4-kolonne under hero)
   ============================================ */
.rg-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) {
  .rg-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  /* Mobil: kompakt punktliste i stedet for 4 store kort */
  .rg-info-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.rg-info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
}
@media (max-width: 600px) {
  /* Punktliste-stil: ingen kort-bakgrunn, grønn checkmark, kompakt tekst */
  .rg-info-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 10px 0 10px 28px;
    position: relative;
  }
  .rg-info-card + .rg-info-card {
    border-top: 1px solid var(--border);
  }
  .rg-info-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2340b800'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
  }
}
.rg-info-card h4 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.3;
}
.rg-info-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .rg-info-card h4 {
    font-size: 14px;
    margin: 0 0 2px;
    line-height: 1.25;
  }
  .rg-info-card p {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    max-width: none;
  }
}

/* ============================================
   Side-by-side (bilde + tekst med ✓-liste)
   ============================================ */
.rg-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.rg-side-by-side.reverse > :first-child { order: 2; }
@media (max-width: 800px) {
  .rg-side-by-side { grid-template-columns: 1fr; gap: 32px; }
  .rg-side-by-side.reverse > :first-child { order: 0; }
}
.rg-side-image {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-grey);
}
.rg-side-image img { width: 100%; height: 100%; object-fit: cover; }
.rg-side-content .rg-pill { margin-bottom: 14px; }
.rg-side-content p { color: var(--text-muted); margin: 0 0 16px; }

/* ✓-liste */
.rg-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rg-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text);
}
.rg-checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2340b800'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ============================================
   CTA-banner (mørk, sentrert)
   ============================================ */
.rg-cta-banner {
  background: var(--bg-dark);
  border-radius: 8px;
  padding: 48px 32px;
  text-align: center;
  color: white;
}
.rg-cta-banner h3 { color: white; font-size: 26px; margin: 0 0 10px; }
.rg-cta-banner p { color: rgba(255,255,255,0.75); margin: 0 0 24px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============================================
   Produkt-kort visuelt (layout håndteres i carousel-regelen + media-query).
   Den gamle `.rg-products-grid` med display:grid + gap:20px ble fjernet — den
   konkurrerte med karusell-regelen og brøt 4-per-rad-mattematikken (cards
   antar 16px gap via calc((100% - 48px) / 4)).
   ============================================ */
.rg-product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.15s ease;
}
.rg-product-card:hover {
  background: var(--bg-grey);
}
.rg-product-card-image {
  aspect-ratio: 4/3;
  background: var(--bg-grey);
  position: relative;
  overflow: hidden;
}
.rg-product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.rg-product-card-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}
.rg-product-card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.rg-product-card h4 { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.rg-product-card p { font-size: 14px; color: var(--text-muted); margin: 0 0 12px; flex: 1; }
.rg-product-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   Coverage list + map
   ============================================ */
.rg-coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) { .rg-coverage { grid-template-columns: 1fr; } }
.rg-coverage-list { list-style: none; padding: 0; margin: 0; }
.rg-coverage-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.rg-coverage-list li:last-child { border-bottom: none; }
.rg-coverage-list strong { font-weight: 700; }
.rg-coverage-list span { color: var(--text-muted); font-size: 14px; text-align: right; }
.rg-coverage-list .badge {
  background: rgba(64,184,0,0.12);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  margin-left: 6px;
}
.rg-coverage-map {
  aspect-ratio: 1/1;
  background: var(--bg-grey);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 32px;
  background-image:
    linear-gradient(rgba(64,184,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64,184,0,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.rg-coverage-map .pin {
  font-size: 48px;
  color: var(--green);
  margin-bottom: 12px;
}
.rg-coverage-map h4 { color: var(--text); margin: 0 0 4px; }

/* ============================================
   Contact card (mørk, sticky)
   ============================================ */
.rg-contact-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  align-items: baseline;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rg-contact-row:last-child { border-bottom: none; }
.rg-contact-row strong {
  min-width: 100px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.rg-contact-row a { color: var(--green); font-weight: 700; text-decoration: none; }
.rg-contact-row a:hover { color: white; }
.rg-contact-row span { color: white; }

/* ============================================
   Persons (slider — flat)
   ============================================ */
.rg-persons-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.rg-persons-slider::-webkit-scrollbar { height: 6px; }
.rg-persons-slider::-webkit-scrollbar-track { background: var(--bg-grey); border-radius: 3px; }
.rg-persons-slider::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }
.rg-person-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 18px;
  text-align: center;
}
.rg-person-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  overflow: hidden;
  background: var(--bg-grey);
}
.rg-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.rg-person-card h4 { font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.rg-person-card .title { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.rg-person-contact a {
  display: block;
  color: var(--green);
  text-decoration: none;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
}
.rg-person-contact a:hover { color: var(--green-dark); }

/* ============================================
   FAQ
   ============================================ */
.rg-faq { max-width: 820px; margin: 0 auto; }
.rg-faq details {
  border-bottom: 1px solid var(--border);
}
.rg-faq summary {
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.rg-faq summary::-webkit-details-marker { display: none; }
.rg-faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.2s ease;
  margin-top: 4px;
}
.rg-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.rg-faq details p {
  margin: 0 0 18px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 15px;
}

/* ============================================
   Form
   ============================================ */
.rg-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
@media (max-width: 600px) { .rg-form-wrapper { padding: 24px; } }
.rg-form { display: grid; gap: 16px; margin-top: 20px; }
.rg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .rg-form-row { grid-template-columns: 1fr; } }
.rg-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.rg-form label .req { color: var(--green); }
.rg-form input[type="text"],
.rg-form input[type="email"],
.rg-form input[type="tel"],
.rg-form input[type="date"],
.rg-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  background: white;
  transition: border-color 0.15s;
}
.rg-form input:focus, .rg-form textarea:focus {
  outline: none;
  border-color: var(--green);
}
.rg-form textarea { resize: vertical; min-height: 90px; }
.rg-radio-group { display: flex; gap: 10px; }
.rg-radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  margin: 0;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  flex: 1;
  font-size: 14px;
}
.rg-radio-group label:has(input:checked) {
  border-color: var(--green);
  background: rgba(64,184,0,0.06);
}
.rg-radio-group input { accent-color: var(--green); }
.rg-checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
}
.rg-checkbox-row input { margin-top: 3px; accent-color: var(--green); }
.rg-checkbox-row a { color: var(--green); }
.rg-form button {
  margin-top: 6px;
  padding: 14px 24px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.rg-form button:hover { background: var(--green-dark); }

/* ============================================
   Sticky CTA bar (mobile)
   ============================================ */
.rg-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: none;
  gap: 8px;
  z-index: 90;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}
.rg-sticky-cta a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.rg-sticky-cta .secondary { background: var(--bg-grey); color: var(--text); }
.rg-sticky-cta .primary { background: var(--green); color: white; }
@media (max-width: 768px) {
  .rg-sticky-cta { display: flex; }
  body { padding-bottom: 70px; }
}

/* ============================================
   Footer
   ============================================ */
.rg-footer {
  background: var(--bg-darker);
  color: white;
  padding: 56px 0 24px;
}
.rg-footer-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.rg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .rg-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.rg-footer-brand p {
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.65;
  line-height: 1.55;
  max-width: 320px;
}
.rg-footer h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
  color: rgba(255,255,255,0.5);
  font-weight: 800;
}
.rg-footer ul { list-style: none; padding: 0; margin: 0; }
.rg-footer li { padding: 4px 0; }
.rg-footer a {
  color: white;
  text-decoration: none;
  opacity: 0.7;
  font-size: 13.5px;
}
.rg-footer a:hover { opacity: 1; color: var(--green); }
.rg-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  opacity: 0.5;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.rg-footer-bottom a { color: var(--green); opacity: 1; }

/* ============================================
   UI UX PRO MAX-anbefalinger (10. mai)
   Minimalism & Swiss Style — clean, accessible, professional
   ============================================ */

/* §1 Accessibility — focus-states for keyboard nav */
*:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.rg-nav a:focus-visible,
.rg-menu-btn:focus-visible,
.rg-header-cta:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

/* §7 Animation — respekter prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* §6 Typography — tabular figures for stats and prices */
.rg-hero-sexy-stat .num,
.rg-stat-num,
.rg-spotlight-specs li strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* §1 Accessibility — cursor-pointer på alle klikkbare elementer */
.rg-product-card,
.rg-category-card,
.rg-person-card,
.rg-faq summary,
.rg-radio-group label {
  cursor: pointer;
}

/* §4 Style Selection — fjernet skarp grønn shadow på hover (rolig hover-stil) */

/* §6 Typography — bedre lesbarhet i body */
.rg-side-content p,
.rg-spotlight p,
.rg-info-card p,
.rg-section .lead {
  max-width: 65ch;
}

/* §7 Smooth scroll-snap for kontaktpersoner-slider */
@media (prefers-reduced-motion: no-preference) {
  .rg-persons-slider {
    scroll-behavior: smooth;
  }
}

/* §1 Skip-link for keyboard users */
.rg-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: white;
  padding: 12px 24px;
  font-weight: 700;
  text-decoration: none;
  z-index: 1000;
}
.rg-skip-link:focus {
  left: 16px;
  top: 16px;
}
