/* Reset og grunnstil */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}


body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #0b0b0b;
}

section {
  scroll-margin-top: 80px;
}

.seksjon-strek {
  width: 300px;
  height: 4px;
  background-color: #007bff;
  margin: 40px auto 0 auto;
  border-radius: 2px;
}

/* Header med sticky og blur */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background-color: #1b3653;
}

/* Navigasjon */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
}

.logo {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-links li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.nav-links li a.active {
  background-color: #007bff;
}
/* hjem-seksjon */
#hjem {
    background-image: url('Pictures/LastebilSnø.jpeg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hjem-text {
    background-color: rgba(0, 0, 0, 0.4); /* svart med 60% gjennomsiktighet */
    border: 5px solid;
    border-radius: 5px;
    border-color: rgba(12, 63, 231, 0.4);
    padding: 30px;
    border-radius: 10px;
    max-width: 700px;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

#hjem h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

#hjem p {
    font-size: 1.2rem;
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Tjenester */
#verdier {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
}

#verdier h2 {
    font-size: 3rem;
    margin-bottom: 40px;
}

.verdier {
    display: inline-block;
    width: 280px;
    margin: 20px;
    padding: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.verdier-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch; 
    flex-wrap: wrap;
}

.verdier img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.verdier h3 {
    margin-bottom: 10px;
    color: #007bff;
}

/* Om Oss */

#om-oss {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

#om-oss-innhold {
    max-width: 800px;
    margin: 0 auto;
}

#om-oss h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

#om-oss p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.om-oss-bilder {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.om-oss-bilder img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Tjenester */
#tjenester {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

#tjenester-innhold {
    max-width: 800px;
    margin: 0 auto;
}

#tjenester h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

/* Tjeneste-boxer */
#tjeneste-boks {
  background-color: #f1fdff; /* eller en annen farge du ønsker */
  padding: 60px 20px;
}

.tjeneste-boks {
  display: flex;
  gap: 30px;
  border: 5px solid #0049a2;
  background-color: #1b3653;
  padding: 30px;
  color: #fff;
  border-radius: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.tjeneste-bilde-boks,
.tjeneste-tekst-boks {
  flex: 1 1 300px;
  min-width: 280px;
}

.tjeneste-bilde-boks img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.tjeneste-boks h2 {
    padding-bottom: 35px;
    width: 600px;
    text-align: center;
}

.tjeneste-boks:not(:first-child) {
    margin-top: 40px;
}

.tjeneste-boks p{
    width: 600px;
    text-align: center;
    padding-top: 10%;
    line-height: 200%
}

.venstre {
    margin-left: 0;
    margin-right: auto;
}

.høyre {
    margin-left: auto;
    margin-right: 0;
}

/* Kontakt */
#kontakt {
    padding: 60px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

#kontakt h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#kontakt p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.kontakt-options {
    display: flex;
    justify-content: center;
    gap: 150px;
    flex-wrap: wrap;
}

.kontakt-method {
    text-align: center;
    max-width: 150px;
}

.kontakt-method img {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.kontakt-method img:hover {
    transform: scale(1.1);
}

.kontakt-method p {
    margin-top: 10px;
    font-weight: bold;
}

/* Prosjekt-slider */
.slider-container {
  position: relative;
  max-width: 100%;
  margin:auto;
  overflow: hidden;
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 10px;
}
/* Footer */
footer {
    background-color: #1b3653;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
}

/* Responsivitet */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .verdier {
        width: 90%;
    }

    #hjem h1 {
        font-size: 2rem;
    }

    #hjem p {
        font-size: 1rem;
    }
    .tjeneste-boks {
    flex-direction: column;
    padding: 20px;
  }

  .tjeneste-boks h2,
  .tjeneste-boks p {
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }

  .tjeneste-bilde-boks,
  .tjeneste-tekst-boks {
    width: 100%;
  }
  .slide img {
    height: 250px; /* lavere høyde for mobil */
  }
}


