/* Hovedcontainer som styrer bredden på siden og sentrerer innholdet */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}


/* HERO-SEKSJONEN (øverste delen av forsiden) */

/* Bakgrunnsbilde + mørk gradient over bildet */
.section_header_home {
  padding: 0;
  background:
    linear-gradient(180deg, rgba(18, 38, 29, 0.28), rgba(18, 38, 29, 0.56)),
    url('images/containers.jpg') center/cover no-repeat;
}

/* Selve hero-området som sentrerer innholdet vertikalt */
.header_home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 48px;
}


/* HERO-INNHOLD */

/* Container for teksten i hero-seksjonen */
.hero-content {
  width: 100%;
  max-width: 900px;
  padding: 32px 20px;
}

/* Hovedtittelen (EcoRoute) */
.hero-title {
  margin: 0 0 18px 0;
  font-size: 96px;
  line-height: 0.95;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -2px;
}

/* Deling av tittelen i to spans (Eco / Route) */
.hero-title-dark,
.hero-title-light {
  color: #ffffff;
}

/* Teksten under tittelen (tagline) */
.hero-text {
  max-width: 900px;
  margin: 0 auto 32px auto;
  font-size: 22px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
}


/* KNAPPER I HERO-SEKSJONEN */

/* Container som holder knappene */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Standardstil for hero-knapper */
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 54px;
  padding: 0 28px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;
}

/* Hover-effekt når man holder musen over knappen */
.btn-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

/* Primærknappen (Get Started) */
.btn-hero--primary {
  border: none;
  background: #568c63;
  color: #fff;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.22);
}

/* Hover-effekt for primærknappen */
.btn-hero--primary:hover {
  background: #4d7d58;
  color: #fff;
}

/* Sekundærknappen (Login) */
.btn-hero--secondary{
  background: #568c63;
  color: #fff;
  border: none;
}

/* Hover-effekt for login-knappen */
.btn-hero--secondary:hover {
  background: #4d7d58;
  color: #fff;
}


/* STANDARD TEKSTJUSTERING PÅ SIDEN */

/* Resten av siden bruker justified tekst */
section {
  text-align: justify;
  text-align-last: left;
}

/* Men hero-seksjonen skal være sentrert */
.section_header_home,
.section_header_home * {
  text-align: center;
  text-align-last: center;
}


/* RESPONSIVT DESIGN */

/* Mellomstore skjermer (nettbrett) */
@media (max-width: 900px) {

  /* Litt lavere hero-seksjon */
  .header_home {
    min-height: 72vh;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  /* Mindre padding rundt teksten */
  .hero-content {
    max-width: none;
    padding: 24px 10px;
  }

  /* Mindre tittel */
  .hero-title {
    font-size: 62px;
  }

  /* Litt mindre tagline */
  .hero-text {
    font-size: 18px;
  }
}

/* Små skjermer (mobil) */
@media (max-width: 768px) {

  /* Enda mindre hero-tittel */
  .hero-title {
    font-size: 46px;
    line-height: 1.02;
  }

  /* Mindre tekst under tittelen */
  .hero-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  /* Mindre knapper */
  .btn-hero {
    min-width: 160px;
    height: 50px;
    font-size: 16px;
    padding: 0 22px;
  }
}