/*
Theme Name: Eupnea Main
Theme URI: https://eupnea.no
Description: Hovednettside for Eupnea AS — ACF Flexible Content-moduler, Team CPT og Partner CPT med popup-kort. Bygget på samme fundament som Eupnea Sense.
Version: 2.37.0
Author: Eupnea AS
Text Domain: eupnea-main
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Eupnea.no fargepalett */
  --bg-page:        #f8e5d7;   /* varm persikk-beige */
  --bg-section-alt: #f0ddd0;   /* mørkere persikk, alternerende seksjoner */
  --bg-white:       #ffffff;
  --bg-mint:        #c4d8d4;   /* mint grønn */
  --bg-peach-card:  #f0d9ca;   /* persikk-kort */
  --bg-gray-card:   #d8dbd8;   /* grå-kort */

  --color-teal:     #1B6B5A;   /* primær grønn */
  --color-teal-dark:#164f44;
  --color-orange:   #C97B3E;   /* aksent-oransje */
  --color-dark:     #1a1a1a;
  --color-body:     #3d3d3d;
  --color-muted:    #666;

  --border:         rgba(27,107,90,0.15);
  --border-light:   rgba(27,107,90,0.10);
  --shadow-sm:      0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:      0 12px 48px rgba(0,0,0,0.14);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --max-w:      1160px;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-dark);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* =============================================
   LAYOUT UTILITY
   ============================================= */
.em-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}


/* =============================================
   SIDEJUSTERING — flukter med EUPNEA-logoen
   Nav-inner = max-w(1160) + 64px = 1224px, sentrert, logo-padding 20px
   ============================================= */
.em-page-gutter {
  max-width: 1224px;
  margin: 0 auto;
  /* 20px = logo-padding i nav. max-width sentrerer, padding flukter med logo */
  padding-inline: 20px;
}
/* =============================================
   TYPOGRAPHY HELPERS
   ============================================= */
.em-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 14px;
  display: block;
}

.em-h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-dark);
}

.em-h2 {
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--color-dark);
}

.em-h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark);
}

.em-body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--color-body);
}

.em-teal { color: var(--color-teal); }

/* =============================================
   BUTTONS
   ============================================= */
.em-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  border: none;
  border-radius: 100px;
  padding: 13px 24px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}

.em-btn--primary {
  background: var(--color-teal);
  color: #fff;
}
.em-btn--primary:hover {
  background: var(--color-teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,107,90,0.3);
}

.em-btn--outline {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--border);
}
.em-btn--outline:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: rgba(27,107,90,0.05);
}

.em-btn--ghost {
  background: transparent;
  color: var(--color-teal);
  border: 1.5px solid var(--color-teal);
}
.em-btn--ghost:hover { background: rgba(27,107,90,0.08); }

/* =============================================
   NAVIGATION — floating pill (same as Sense)
   ============================================= */
.em-nav {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.em-nav__inner {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-md);
  max-width: calc(var(--max-w) + 64px);
  width: calc(100% - 48px);
}

.em-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 20px;
}

.em-nav__logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.em-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.em-nav__links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-body);
  padding: 7px 13px;
  border-radius: 100px;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.em-nav__links a:hover,
.em-nav__links .current-menu-item > a {
  color: var(--color-teal);
  background: rgba(27,107,90,0.07);
}

.em-nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.em-nav__cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-teal);
  padding: 10px 20px;
  border-radius: 100px;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.em-nav__cta:hover { background: var(--color-teal-dark); }

.em-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
}
.em-nav__hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
}

/* Mobile nav drawer */
#em-mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: #fff;
  padding: 80px 24px 32px;
  flex-direction: column;
  gap: 4px;
}

.em-mobile-link {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.em-mobile-link:hover { color: var(--color-teal); }

/* =============================================
   FOOTER
   ============================================= */
.em-footer {
  background: var(--color-teal);
  padding: 56px 0 28px;
}

.em-footer__top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.em-footer__brand {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.em-footer__tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  line-height: 1.6;
  margin-bottom: 16px;
}

.em-footer__col-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin-bottom: 14px;
}

.em-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.em-footer__links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.60);
  transition: color 0.15s;
  text-decoration: none;
}
.em-footer__links a:hover { color: rgba(255,255,255,0.95); }

.em-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.em-footer__copy { font-size: 12.5px; color: rgba(255,255,255,0.35); }

.em-footer__legal-link {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color 0.15s;
  text-decoration: none;
}
.em-footer__legal-link:hover { color: rgba(255,255,255,0.75); }

/* =============================================
   POPUP OVERLAY
   ============================================= */
.em-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.em-popup-overlay.is-open { display: flex; }

.em-popup {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: emPopupIn 0.22s ease;
}

@keyframes emPopupIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.em-popup__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(0,0,0,0.08);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--color-dark);
  transition: background 0.2s;
  cursor: pointer;
}
.em-popup__close:hover { background: rgba(0,0,0,0.15); }

.em-popup__name  { font-size: 1.35rem; font-weight: 700; color: var(--color-teal); }
.em-popup__role  { font-size: 0.9rem; color: var(--color-orange); font-weight: 500; margin-bottom: 0.5rem; }
.em-popup__linkedin {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.85rem; color: var(--color-teal); text-decoration: none;
  font-weight: 500; margin-bottom: 1.25rem;
}
.em-popup__linkedin:hover { text-decoration: underline; }
.em-popup__divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.em-popup__section-label {
  font-size: 1rem; font-weight: 700; color: var(--color-teal);
  margin-bottom: 0.4rem; margin-top: 1.2rem;
}
.em-popup__section-label:first-of-type { margin-top: 0; }
.em-popup__text { font-size: 0.9rem; color: var(--color-dark); line-height: 1.6; }

/* =============================================
   RESPONSIVE — nav & footer
   ============================================= */
@media (max-width: 1024px) {
  .em-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .em-nav__links { display: none; }
  .em-nav__hamburger { display: flex; }
  .em-nav__inner { padding: 8px 8px 8px 16px; }
  body { padding-bottom: 72px; }
  .em-footer__top { grid-template-columns: 1fr; gap: 24px; }
  .em-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .em-wrap { padding: 0 16px; }
}


/* =========================================================================
   Eupnea Main — Modul-stiler
   Versjon: 2.0.0
   Fargepalett: varm persikk (#f8e5d7), skoggrønn (#1B6B5A), oransje (#C97B3E)
   ========================================================================= */

/* -------------------------------------------------------------------------
   Felles modulregler
   ------------------------------------------------------------------------- */
.em-module {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.em-module:nth-of-type(even) {
  background: var(--bg-section-alt);
}

.em-section-header {
  margin-bottom: 2.5rem;
}

.em-eyebrow-bold {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
}

/* =========================================================================
   KNAPPER (modul-varianter)
   ========================================================================= */
.em-btn--linkedin {
  background: rgba(0,0,0,0.08);
  color: var(--color-dark);
  padding: 0.45rem 0.65rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
}
.em-btn--linkedin:hover { background: rgba(0,0,0,0.15); }

/* =========================================================================
   HERO — bygget fra scratch etter eupnea.no referansen
   ========================================================================= */

/*
  Struktur: <section.em-hero>
    <div.em-hero__left>  — tekst
    <div.em-hero__right> — bilde
*/

.em-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 80px; /* frigjør plass under den faste floating nav */
  overflow: hidden;
}

/* VENSTRE: tekst — sentrert vertikalt, venstrejustert */
.em-hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 7rem) 3rem clamp(3rem, 7vw, 7rem)
           max(2rem, calc((100vw - var(--max-w)) / 2 + 2.5rem));
}

/* Tittel: alle linjer teal, font-weight 400 (editorial/regular) */
.em-hero__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(3.6rem, 6.5vw, 7rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--color-teal);
  margin: 0 0 1.5rem;
}

.em-hero__title span { display: block; }

/* Tag-linje under tittelen */
.em-hero__tag {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.55;
  max-width: 360px;
  margin: 0 0 2rem;
}

/* Orange scroll-pil */
.em-hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-orange);
  color: var(--color-orange);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s;
}
.em-hero__scroll:hover { background: rgba(201,123,62,0.08); }

/* HØYRE: bilde — sentrert, naturlig størrelse */
.em-hero__right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem 3rem 2rem;
}

.em-hero__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
}

/* ---- Responsiv ---- */
@media (max-width: 900px) {
  .em-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .em-hero__left {
    padding: 3rem 1.5rem 1.5rem;
  }
  .em-hero__right {
    padding: 0 1.5rem 3rem;
    justify-content: flex-start;
  }
  .em-hero__img { max-height: 55vw; }
}

@media (max-width: 480px) {
  .em-hero__title { font-size: 3rem; }
  .em-hero__img   { max-height: 260px; }
}

/* =========================================================================
   PRODUCT EXPLAINER
   ========================================================================= */
.em-product-explainer__heading {
  margin-bottom: 1.5rem;
}

.em-product-explainer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.em-feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.em-feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-body);
  line-height: 1.5;
}

.em-feature-list__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1.3;
}

.em-product-explainer__body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.em-product-explainer__media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.em-product-explainer__img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .em-product-explainer__grid { grid-template-columns: 1fr; }
  .em-feature-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .em-feature-list { grid-template-columns: 1fr; }
}

/* =========================================================================
   TEXT + IMAGE
   ========================================================================= */
.em-text-image__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.em-text-image--img-left .em-text-image__copy  { order: 2; }
.em-text-image--img-left .em-text-image__media { order: 1; }

.em-text-image__heading {
  margin-bottom: 1rem;
}

.em-text-image__body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-body);
}
.em-text-image__body p   { margin-bottom: 0.8em; }
.em-text-image__body ul  { list-style: disc; padding-left: 1.4em; margin-bottom: 0.8em; }
.em-text-image__body li  { margin-bottom: 0.3em; }

.em-text-image__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.em-text-image--bg-alt { background: var(--bg-section-alt) !important; }

/* Video wrap */
.em-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.em-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

@media (max-width: 900px) {
  .em-text-image__grid { grid-template-columns: 1fr; gap: 2rem; }
  .em-text-image--img-left .em-text-image__copy  { order: 1; }
  .em-text-image--img-left .em-text-image__media { order: 2; }
}

/* =========================================================================
   WHERE CARDS
   ========================================================================= */
.em-where__heading {
  margin-bottom: 1.75rem;
}

.em-where__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.em-where__card {
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.em-where__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.em-where__card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.em-where__card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.em-where__card-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .em-where__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .em-where__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   TEAM GRID
   ========================================================================= */
.em-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.em-team__card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.em-team__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.em-team__photo-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-mint);
}

.em-team__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.em-team__photo--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-mint) 0%, var(--bg-gray-card) 100%);
}

.em-team__info {
  padding: 1rem;
}

.em-team__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.em-team__role {
  font-size: 0.8rem;
  color: var(--color-orange);
  margin-bottom: 0.75rem;
}

.em-team__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 1024px) {
  .em-team__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .em-team__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .em-team__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   PARTNERS GRID
   ========================================================================= */
.em-partners__intro-block {
  margin-bottom: 2rem;
}

.em-partners__logo-figure {
  max-width: 180px;
  margin-bottom: 1rem;
}

.em-partners__ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
}
.em-partners__ext-link:hover { text-decoration: underline; }

.em-partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.em-partners__card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.em-partners__card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.em-partners__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.em-partners__expertise {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.em-partners__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 1024px) {
  .em-partners__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .em-partners__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .em-partners__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.em-testimonials__header {
  margin-bottom: 2rem;
}

.em-testimonials__slider-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.em-testimonials__arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  color: var(--color-dark);
}
.em-testimonials__arrow:hover {
  background: var(--bg-mint);
  border-color: var(--color-teal);
}

.em-testimonials__track {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  overflow: hidden;
}

.em-testimonials__card {
  display: none;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.em-testimonials__card.is-active { display: flex; flex-direction: column; }

.em-testimonials__quote-icon {
  color: var(--color-teal);
  opacity: 0.25;
  margin-bottom: 0.75rem;
}

.em-testimonials__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-dark);
  font-style: italic;
  flex: 1;
  margin-bottom: 1rem;
}

.em-testimonials__footer { margin-top: auto; }

.em-testimonials__divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin-bottom: 0.75rem;
}

.em-testimonials__author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.em-testimonials__role {
  font-size: 0.8rem;
  color: var(--color-orange);
  margin-bottom: 2px;
}

.em-testimonials__org {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.em-testimonials__org-link {
  color: var(--color-teal);
  text-decoration: none;
}
.em-testimonials__org-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .em-testimonials__track { grid-template-columns: 1fr; }
}

/* =========================================================================
   CTA
   ========================================================================= */
.em-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.em-cta__heading {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.em-cta__body {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 540px;
}

/* Bakgrunnsvariasjoner */
.em-cta--bg-teal {
  background: var(--color-teal);
}
.em-cta--bg-teal .em-cta__heading,
.em-cta--bg-teal .em-cta__body { color: rgba(255,255,255,0.92); }

.em-cta--bg-peach { background: var(--bg-peach-card); }
.em-cta--bg-peach .em-cta__heading { color: var(--color-dark); }
.em-cta--bg-peach .em-cta__body    { color: var(--color-body); }

.em-cta--bg-mint { background: var(--bg-mint); }
.em-cta--bg-mint .em-cta__heading { color: var(--color-dark); }
.em-cta--bg-mint .em-cta__body    { color: var(--color-body); }

.em-btn--cta {
  background: var(--bg-white);
  color: var(--color-teal);
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  flex-shrink: 0;
}
.em-btn--cta:hover { background: var(--bg-mint); }

.em-cta--bg-peach .em-btn--cta,
.em-cta--bg-mint  .em-btn--cta {
  background: var(--color-teal);
  color: #fff;
}
.em-cta--bg-peach .em-btn--cta:hover,
.em-cta--bg-mint  .em-btn--cta:hover {
  background: var(--color-teal-dark);
}

@media (max-width: 640px) {
  .em-cta__inner { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   RESPONSIV — ALLE MODULER (mobil < 768px)
   ============================================= */

/* Product Explainer */
.em-pe-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 4rem; align-items: center; }
@media (max-width: 768px) {
  .em-pe-grid { grid-template-columns: 1fr; gap: 2rem; }
  .em-pe-grid figure { order: -1; }
}

/* Text + Image */
.em-ti-grid { display: grid; gap: clamp(2rem,5vw,5rem); align-items: center; }
@media (max-width: 768px) {
  .em-ti-grid { grid-template-columns: 1fr !important; }
  .em-ti-grid > * { order: unset !important; }
  .em-ti-grid figure { order: -1 !important; }
}

/* Where Cards */
.em-wc-grid { display: grid; }
@media (max-width: 768px) {
  .em-wc-grid { grid-template-columns: 1fr !important; }
}

/* Team Grid — 2 kolonner på tablet, 1 på mobil */
.em-team-inner-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem 1.75rem; }
@media (max-width: 900px) {
  .em-team-inner-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 520px) {
  .em-team-inner-grid { grid-template-columns: 1fr; }
}

/* Team intro: gruppe-bilde + tekst → stablede på mobil */
.em-team-intro-grid { display: grid; gap: clamp(2rem,5vw,5rem); align-items: center; }
@media (max-width: 768px) {
  .em-team-intro-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
}

/* Partners Grid */
.em-partners-inner-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem 1.75rem; }
@media (max-width: 900px) {
  .em-partners-inner-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 520px) {
  .em-partners-inner-grid { grid-template-columns: 1fr; }
}

/* Partners intro: tekst + logo → stablet på mobil */
.em-partners-intro-grid { display: grid; gap: clamp(2rem,5vw,5rem); align-items: center; }
@media (max-width: 768px) {
  .em-partners-intro-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
}

/* Logos */
.em-logos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,6vw,7rem); align-items: center; }
@media (max-width: 768px) {
  .em-logos-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Testimonials: 1 kort på mobil */
@media (max-width: 700px) {
  .em-test-track { grid-template-columns: 1fr !important; }
}
