/* ─── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Farger */
  --color-white:       #ffffff;
  --color-bg-light:    #f7f7f5;
  --color-bg-dark:     #1c2027;
  --color-text:        #1c2027;
  --color-text-muted:  #6b7280;
  --color-brand:       #2d6a5f;      /* Grønn-teal – matcher helse/natur */
  --color-brand-light: #e8f2f0;
  --color-border:      #e5e7eb;

  /* Typografi */
  --font-heading: 'Lora', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Størrelser */
  --max-width:    1200px;
  --section-pad:  clamp(4rem, 8vw, 7rem);
  --gap:          clamp(1.5rem, 3vw, 2.5rem);
  --radius:       0.5rem;
  --radius-lg:    1rem;

  /* Overganger */
  --transition:   0.2s ease;
}

/* ─── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

/* ─── Utility ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── Typografi ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

p { font-size: 1.0625rem; }

/* ─── Knapper ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.75em 1.75em;
  border-radius: 2em;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-brand);
  color: var(--color-white);
  border-color: var(--color-brand);
}
.btn--primary:hover {
  background: #245950;
  border-color: #245950;
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn--outline:hover {
  background: var(--color-brand-light);
  text-decoration: none;
}

/* ─── Felles modul-stiler ─────────────────────────────────────────────────── */
.module { padding-block: var(--section-pad); }

.module__header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.module__heading { margin-bottom: 1rem; }
.module__intro { font-size: 1.125rem; color: var(--color-text-muted); }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4.5rem;
}

.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-header__logo img { max-height: 2.25rem; width: auto; }
.site-header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-brand);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.site-header__nav-list a {
  padding: 0.4em 0.75em;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition), background var(--transition);
}
.site-header__nav-list a:hover,
.site-header__nav-list .current-menu-item a {
  color: var(--color-text);
  background: var(--color-bg-light);
  text-decoration: none;
}

.site-header__lang {
  display: flex;
  gap: 0.25rem;
  margin-inline: 0.5rem;
}
.site-header__lang a {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.25em 0.4em;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.site-header__lang a.active,
.site-header__lang a:hover {
  color: var(--color-brand);
  text-decoration: none;
}

.site-header__cta { margin-left: 0.5rem; }

.site-header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.75rem;
  height: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.site-header__menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(4rem, 10vw, 8rem); background: var(--color-white); }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.hero__content { max-width: 560px; }
.hero__heading { margin-bottom: 1.25rem; }
.hero__subheading {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero__media { display: flex; justify-content: center; }
.hero__image {
  border-radius: var(--radius-lg);
  max-height: 560px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

/* ─── Feature icons ───────────────────────────────────────────────────────── */
.feature-icons { background: var(--color-bg-light); }

.feature-icons__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
  list-style: none;
}

.feature-icons__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-icons__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
}
.feature-icons__icon img,
.feature-icons__icon svg { width: 100%; height: 100%; }

.feature-icons__title { font-size: 1rem; font-weight: 600; }
.feature-icons__text  { font-size: 0.9375rem; color: var(--color-text-muted); }

/* ─── Innholdsseksjon ─────────────────────────────────────────────────────── */
.content-section--bg-light { background: var(--color-bg-light); }
.content-section--bg-dark  { background: var(--color-bg-dark); color: var(--color-white); }
.content-section--bg-dark h2 { color: var(--color-white); }

.content-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  align-items: center;
}

.content-section--has-image .content-section__inner {
  grid-template-columns: 1fr 1fr;
}

.content-section__heading { margin-bottom: 1.25rem; }
.content-section__image { border-radius: var(--radius-lg); width: 100%; }

/* ─── Tre kolonner ────────────────────────────────────────────────────────── */
.three-columns__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.three-columns__item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.three-columns__icon { width: 3rem; height: 3rem; color: var(--color-brand); }
.three-columns__icon img, .three-columns__icon svg { width: 100%; height: 100%; }
.three-columns__title { font-size: 1.125rem; font-weight: 600; }
.three-columns__text  { font-size: 0.9375rem; color: var(--color-text-muted); }

/* ─── Teamgitter ──────────────────────────────────────────────────────────── */
.team-grid { background: var(--color-bg-light); }

.team-grid__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--gap);
  list-style: none;
}

.team-grid__member {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-grid__photo-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-border);
}
.team-grid__photo { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.team-grid__info { display: flex; flex-direction: column; gap: 0.3rem; }
.team-grid__name { font-size: 1rem; font-weight: 600; }
.team-grid__role { font-size: 0.875rem; color: var(--color-text-muted); }
.team-grid__bio  { font-size: 0.875rem; color: var(--color-text-muted); margin-top: 0.25rem; }

.team-grid__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-brand);
  margin-top: 0.25rem;
}
.team-grid__linkedin:hover { text-decoration: underline; }

/* ─── Tilbakemeldinger ────────────────────────────────────────────────────── */
.testimonials__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  list-style: none;
}

.testimonials__item {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.testimonials__quote p {
  font-size: 1.0625rem;
  font-family: var(--font-heading);
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
  position: relative;
}
.testimonials__quote p::before {
  content: '\201C';
  font-size: 3rem;
  line-height: 0;
  position: relative;
  top: 0.6rem;
  color: var(--color-brand);
  margin-right: 0.1em;
}

.testimonials__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.testimonials__author-photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonials__author-info { display: flex; flex-direction: column; gap: 0.1rem; }

.testimonials__author-name {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9375rem;
}
.testimonials__author-title { font-size: 0.8125rem; color: var(--color-text-muted); }

/* ─── CTA-seksjon ─────────────────────────────────────────────────────────── */
.cta-section--bg-light { background: var(--color-bg-light); }
.cta-section--bg-dark  { background: var(--color-bg-dark); }
.cta-section--bg-brand { background: var(--color-brand); }

.cta-section--bg-dark  .cta-section__heading,
.cta-section--bg-dark  .cta-section__text,
.cta-section--bg-brand .cta-section__heading,
.cta-section--bg-brand .cta-section__text { color: var(--color-white); }

.cta-section--bg-brand .btn--primary {
  background: var(--color-white);
  color: var(--color-brand);
  border-color: var(--color-white);
}
.cta-section--bg-brand .btn--outline {
  border-color: var(--color-white);
  color: var(--color-white);
}
.cta-section--bg-brand .btn--outline:hover { background: rgba(255,255,255,0.15); }

.cta-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-section__content { max-width: 600px; }
.cta-section__heading { margin-bottom: 0.75rem; }
.cta-section__text    { font-size: 1.0625rem; color: var(--color-text-muted); }

.cta-section__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; flex-shrink: 0; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: var(--gap);
  align-items: start;
  padding-block: 3rem;
}

.site-footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-brand);
}
.site-footer__logo img { max-height: 2rem; width: auto; }
.site-footer__tagline { margin-top: 0.5rem; font-size: 0.875rem; color: var(--color-text-muted); }

.site-footer__info p { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.8; }

.site-footer__social-link { color: var(--color-text-muted); transition: color var(--transition); }
.site-footer__social-link:hover { color: var(--color-brand); }

.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-block: 1.25rem;
}
.site-footer__bottom p { font-size: 0.8125rem; color: var(--color-text-muted); }

/* ─── Wysiwyg ─────────────────────────────────────────────────────────────── */
.wysiwyg h2 { font-size: 1.5rem; margin-bottom: 0.75rem; margin-top: 1.5rem; }
.wysiwyg h3 { font-size: 1.125rem; margin-bottom: 0.5rem; margin-top: 1.25rem; }
.wysiwyg p  { margin-bottom: 1rem; }
.wysiwyg ul, .wysiwyg ol { margin: 0 0 1rem 1.25rem; list-style: revert; }
.wysiwyg li { margin-bottom: 0.4rem; }
.wysiwyg a  { color: var(--color-brand); text-decoration: underline; }
.wysiwyg strong { font-weight: 600; }

/* ─── Responsiv ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .three-columns__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Header: hamburger */
  .site-header__menu-toggle { display: flex; }

  .site-header__nav {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .site-header__nav.is-open { display: flex; }
  .site-header__nav-list { flex-direction: column; align-items: flex-start; width: 100%; }

  /* Hero */
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }

  /* Innholdsseksjon */
  .content-section--has-image .content-section__inner { grid-template-columns: 1fr; }

  /* Tre kolonner */
  .three-columns__grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-section__inner { flex-direction: column; text-align: center; }
  .cta-section__content { max-width: 100%; }
  .cta-section__actions { justify-content: center; }

  /* Footer */
  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .team-grid__list { grid-template-columns: repeat(2, 1fr); }
  .testimonials__list { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
}
