/* Norske fargevariabler */
:root {
  --primary-color: #00205B; /* Mørk blå fra norsk flagg */
  --secondary-color: #BA0C2F; /* Rød fra norsk flagg */
  --accent-color: #00539C; /* Lysere blå */
  --dark-color: #14213D;
  --light-color: #F8F9FA;
  --text-color: #333333;
  --text-light: #FFFFFF;
  --background-gray: #F1F1F1;
}

/* Grunnleggende stiler */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--light-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

.container {
  max-width: 1140px;
  width: 90%;
  margin: 0 auto;
  padding: 0 15px;
}

/* Topplinje */
.topbar {
  background-color: var(--primary-color);
  padding: 8px 0;
}

.topbar p {
  color: var(--text-light);
  font-size: 0.85rem;
  text-align: center;
}

/* Header */
header {
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 40px;
  margin-right: 12px;
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Hoved-banner */
.main-banner {
  background: linear-gradient(to right, var(--dark-color), var(--primary-color));
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
}

.banner-content {
  max-width: 800px;
  margin: 0 auto;
}

.main-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.main-banner p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 14px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(186, 12, 47, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #d41034;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(186, 12, 47, 0.4);
  color: var(--text-light);
}

/* Hovedfunksjoner */
.main-features {
  padding: 70px 0;
  background-color: var(--background-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.feature {
  flex: 1;
  min-width: 300px;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 50px;
  height: 50px;
}

.feature h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Hvordan det fungerer */
.how-it-works {
  padding: 70px 0;
  background-color: white;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  counter-reset: step;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  position: relative;
  padding-left: 70px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Kall-til-handling */
.cta-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-branding img {
  width: 40px;
  margin-right: 10px;
}

.footer-branding h3 {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.footer-branding p {
  color: #ddd;
  margin-bottom: 20px;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: white;
  position: relative;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ddd;
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #999;
}

/* Responsive design */
@media (max-width: 992px) {
  .feature {
    min-width: 250px;
  }
  
  .main-banner h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .features-container {
    flex-direction: column;
  }
  
  .feature {
    min-width: 100%;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    min-width: 100%;
  }
  
  .main-banner h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  .main-banner {
    padding: 60px 0;
  }
  
  .main-banner h1 {
    font-size: 1.8rem;
  }
  
  .cta-button {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  .main-features, .how-it-works, .cta-section {
    padding: 50px 0;
  }
}
