/* Generell tekststyling: Dette er standard stil for tekst, overskrifter og lister */

p {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.6;
  color: #222;
}

h4 {
  font-size: 18px;
  text-align: left;
  font-weight: 700;
  margin: 0 0 6px 0;
}

ul {
  margin: 0;
  padding-left: 20px;
}

.center-text {
  text-align: center;
}


/* SEKSJONER
   Øvre del = hero
   Nedre del = resten av innholdet */

.section_header_methodology,
.section_body_methodology {
  background: #f4f8f5;
}

.section_header_methodology {
  padding: 32px 0 14px;
}

.section_body_methodology {
  padding: 10px 0 44px;
}


/* Felles card-stil
   .hero-card/.content-card → visuelle stiler fra .page-card i layout.css
   .factor-card            → visuelle stiler fra .page-feature-card i layout.css */

.formula-box {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}


/* HERO-SEKSJON
   To kolonner:
   - tekst til venstre
   - bilde til høyre */

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.hero-text {
  padding: 24px;
}

.hero-text--full {
  grid-column: 1 / -1;
}

.hero-media {
  padding: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
}

.hero-title {
  margin: 0 0 12px 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  text-align: left;
}

.hero-lead {
  text-align: justify;
  text-align-last: left;
  margin: 0;
}


/* Knapper: Styling på knappene i hero-seksjonen */

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

.btn-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.btn-method:active {
  transform: translateY(1px);
}

.btn-method--green {
  background: #568c63;
  color: #fff;
  border: none;
}

.btn-method--large {
  min-width: 180px;
  height: 52px;
  padding: 0 24px;
  font-size: 18px;
  gap: 10px;
}

.btn-method--green:hover {
  background: #4d7d58;
  color: #fff;
}


/* Bildeområde: Ramme, crop og liten caption under bildet */

.media-frame {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

.header-img-crop {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Generelle content-kort: Vanlige kort inne i body-seksjonen */

.content-card {
  padding: 20px 22px;
  margin-top: 18px;
}

.content-title {
  text-align: center;
  margin: 0 0 14px 0;
  font-size: 32px;
  font-weight: 700;
}

.sub-title {
  margin: 0 0 12px 0;
  font-size: 22px;
  font-weight: 700;
  text-align: left;
}


/* Flow box:
   Denne viser modellflyten: Route -> Distance -> Category -> osv. */

.flow-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: #1f1f1f;
}

.flow-box span {
  background: #f7f9f7;
  padding: 10px 14px;
  border-radius: 10px;
}

.flow-box .flow-arrow {
  background: transparent;
  padding: 0;
  font-size: 18px;
  color: #568c63;
}

/* Siste ledd i flow-boksen — fremhevet i grønt */
.flow-box-highlight {
  background-color: #568c63 !important;
  color: white !important;
}


/* Formelbokser: Små bokser rundt de viktigste formlene */

.formula-box {
  padding: 16px;
  margin-bottom: 14px;
  background: #fbfcfb;
}

.formula-box:last-child {
  margin-bottom: 0;
}

.formula-text {
  margin: 6px 0 0 0;
  text-align: left;
  font-size: 17px;
}


/* To-kolonne-layout: Brukes når to content-cards skal stå ved siden av hverandre */

.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.cards-2 > .content-card {
  display: flex;
  flex-direction: column;
}

.cards-2 > .content-card .formula-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* Tre bokser ved siden av hverandre for air/sea/road */

.factor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.factor-card {
  padding: 16px;
  background: #fbfcfb;
}

.factor-card p {
  margin: 6px 0;
  font-size: 16px;
  line-height: 1.5;
}


/* Tilpasser layouten til mindre skjermer */

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

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .cards-2 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-text,
  .hero-media,
  .content-card {
    padding: 18px;
  }

  .media-frame {
    max-width: 100%;
  }

  .flow-box {
    justify-content: flex-start;
  }

  p {
    font-size: 17px;
  }
}