/* 
* nudefyNO.love - Hovedstil
* Norsk-inspirert design med flaggfarger
*/

:root {
  --rod-norge: #ef2b2d;
  --bla-norge: #002868;
  --hvit: #ffffff;
  --sort: #121212;
  --gra-lys: #f5f5f5;
  --gra-mork: #333333;
  --skygge: 0 4px 15px rgba(0, 40, 104, 0.15);
  --overgang: all 0.3s ease;
  --radius: 5px;
  --gra-mellom: #e0e0e0;
  --rod-morke: #cc1a1c;
  --bla-lys: #0055cc;
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 1.7rem;
  line-height: 1.7;
  color: var(--sort);
  background-color: var(--hvit);
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--bla-norge);
  text-decoration: none;
  transition: var(--overgang);
}

a:hover {
  color: var(--rod-norge);
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typografi */
h1, h2, h3, h4 {
  font-family: 'Nord', 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: var(--sort);
}

h1 {
  font-size: 4.8rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 3.6rem;
  position: relative;
  padding-bottom: 1.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 4px;
  background: var(--rod-norge);
  border-radius: 2px;
}

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 2.6rem;
}

h4 {
  font-size: 2.2rem;
}

p {
  margin-bottom: 2rem;
}

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

/* Knapper */
.btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  background: var(--rod-norge);
  color: var(--hvit);
  border: none;
  border-radius: var(--radius);
  font-size: 1.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--overgang);
  box-shadow: 0 4px 10px rgba(239, 43, 45, 0.3);
}

.btn:hover {
  background: var(--rod-morke);
  color: var(--hvit);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(239, 43, 45, 0.4);
}

.btn-alt {
  background: var(--bla-norge);
  box-shadow: 0 4px 10px rgba(0, 40, 104, 0.3);
}

.btn-alt:hover {
  background: var(--bla-lys);
}

/* Header og navigasjon */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--hvit);
  padding: 2rem 0;
  box-shadow: var(--skygge);
  z-index: 1000;
  transition: var(--overgang);
}

.header.scrolled {
  padding: 1.2rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: 'Nord', 'Roboto', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--bla-norge);
}

.logo svg {
  width: 3.6rem;
  height: 3.6rem;
  margin-right: 1rem;
}

.logo:hover {
  color: var(--rod-norge);
}

.nav {
  display: flex;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-item {
  margin-left: 3rem;
}

.nav-link {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--sort);
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rod-norge);
  transition: var(--overgang);
}

.nav-link:hover {
  color: var(--rod-norge);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.8rem;
  cursor: pointer;
  color: var(--bla-norge);
}

/* Hero-seksjon */
.hero {
  height: 100vh;
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--hvit);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(239, 43, 45, 0.05) 0%, rgba(0, 40, 104, 0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  padding-top: 7rem;
}

.hero h1 {
  margin-bottom: 2.5rem;
}

.hero-text {
  font-size: 1.9rem;
  margin-bottom: 3.5rem;
}

/* Seksjoner */
.section {
  padding: 10rem 0;
}

.section-title {
  margin-bottom: 5rem;
}

.bg-light {
  background-color: var(--gra-lys);
}

/* Funksjoner */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.feature-card {
  background-color: var(--hvit);
  border-radius: var(--radius);
  box-shadow: var(--skygge);
  padding: 3.5rem;
  transition: var(--overgang);
  position: relative;
  overflow: hidden;
}

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--bla-norge);
}

.feature-icon {
  width: 7rem;
  height: 7rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 4.5rem;
  height: 4.5rem;
  fill: var(--bla-norge);
}

/* Hvordan det fungerer */
.steps {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  height: 100%;
  width: 2px;
  background-color: var(--gra-mellom);
  z-index: 1;
}

.step {
  display: flex;
  margin-bottom: 6rem;
  position: relative;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  position: relative;
  min-width: 5rem;
  height: 5rem;
  background: var(--rod-norge);
  border-radius: 50%;
  color: var(--hvit);
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2.5rem;
  z-index: 2;
}

.step-number::before {
  content: counter(step);
  counter-increment: step;
}

.steps {
  counter-reset: step;
}

.step-content {
  flex: 1;
}

/* CTA-seksjon */
.cta {
  background: var(--bla-norge);
  color: var(--hvit);
  text-align: center;
  padding: 8rem 0;
}

.cta h2 {
  color: var(--hvit);
}

.cta h2::after {
  background: var(--rod-norge);
  left: 50%;
  transform: translateX(-50%);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta .btn {
  background: var(--hvit);
  color: var(--bla-norge);
  margin-top: 2rem;
}

.cta .btn:hover {
  background: var(--gra-lys);
}

/* Footer */
.footer {
  background-color: var(--gra-mork);
  color: var(--gra-lys);
  padding: 7rem 0 3rem;
}

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

.footer-about p {
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  font-family: 'Nord', 'Roboto', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--hvit);
}

.footer-logo svg {
  width: 2.8rem;
  height: 2.8rem;
  margin-right: 1rem;
}

.footer-heading {
  color: var(--hvit);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--rod-norge);
}

.footer-links ul li {
  margin-bottom: 1.2rem;
}

.footer-links ul li a {
  color: var(--gra-lys);
  transition: var(--overgang);
}

.footer-links ul li a:hover {
  color: var(--hvit);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
}

/* Media Queries */
@media (max-width: 991px) {
  html {
    font-size: 58%;
  }
  
  .hero h1 {
    font-size: 4.2rem;
  }
  
  .section {
    padding: 8rem 0;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 56%;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--hvit);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 8rem 2.5rem 2.5rem;
    transition: var(--overgang);
    z-index: 999;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-item {
    margin: 0;
    margin-bottom: 2.5rem;
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 1rem 0;
  }
  
  .hero {
    height: auto;
    min-height: 600px;
    padding: 14rem 0 8rem;
  }
  
  .section {
    padding: 7rem 0;
  }
  
  .section-title {
    margin-bottom: 4rem;
  }
  
  h1 {
    font-size: 3.8rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  .feature-card {
    padding: 2.8rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 54%;
  }
  
  h1 {
    font-size: 3.4rem;
  }
  
  h2 {
    font-size: 2.8rem;
  }
  
  .btn {
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
  }
  
  .hero {
    padding: 12rem 0 7rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .footer {
    padding: 5rem 0 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .step {
    align-items: flex-start;
  }
}
