/*
   aiclothesremoverNO.pw - Stilark
   Design inspirert av det norske flagget
   Rød: #EF2B2D, Blå: #002868, Hvit: #FFFFFF
*/

/* Tilbakestill og grunnleggende stiler */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --rod: #EF2B2D;
  --bla: #002868;
  --hvit: #FFFFFF;
  --lys-gra: #F0F3F8;
  --mork-gra: #454545;
  --svart: #121212;
  --skygge: 0 8px 30px rgba(0, 40, 104, 0.12);
  --overgang: all 0.35s ease-in-out;
  --radius: 16px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  font-family: 'Roboto', 'Arial', sans-serif;
}

body {
  color: var(--mork-gra);
  line-height: 1.6;
  background-color: var(--lys-gra);
  overflow-x: hidden;
}

/* Containere */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typografi */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bla);
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.75rem;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

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

/* Verktøy-klasser */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
.mb-5 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mt-5 { margin-top: 4rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 2rem; padding-bottom: 2rem; }
.py-4 { padding-top: 3rem; padding-bottom: 3rem; }
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 2rem; padding-right: 2rem; }
.px-4 { padding-left: 3rem; padding-right: 3rem; }
.px-5 { padding-left: 5rem; padding-right: 5rem; }

/* Knapper */
.knapp {
  display: inline-block;
  padding: 15px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--overgang);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.knapp-primar {
  background: var(--rod);
  color: var(--hvit);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.knapp-primar:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--overgang);
  z-index: -1;
}

.knapp-primar:hover:before, .knapp-primar:focus:before {
  left: 100%;
}

.knapp-primar:hover, .knapp-primar:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(239, 43, 45, 0.3);
  color: var(--hvit);
}

.knapp-sekundar {
  background-color: transparent;
  color: var(--bla);
  border: 2px solid var(--bla);
}

.knapp-sekundar:hover, .knapp-sekundar:focus {
  background-color: var(--bla);
  color: var(--hvit);
  transform: translateY(-3px);
}

.knapp-stor {
  padding: 18px 36px;
  font-size: 1.15rem;
}

/* Header og Navigasjon */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background-color: var(--hvit);
  box-shadow: var(--skygge);
  transition: all 0.4s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--bla);
}

.logo svg {
  margin-right: 12px;
}

.nav-meny {
  display: flex;
  list-style: none;
}

.nav-element {
  margin-left: 2.5rem;
}

.nav-link {
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  padding: 5px 0;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rod);
  transition: width 0.3s ease;
}

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

.mobil-meny-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bla);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero-seksjon */
.hero {
  padding: 180px 0 120px;
  background: linear-gradient(120deg, rgba(0, 40, 104, 0.05) 0%, rgba(239, 43, 45, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 30%, rgba(0, 40, 104, 0.07) 0%, transparent 30%),
    radial-gradient(circle at 90% 70%, rgba(239, 43, 45, 0.07) 0%, transparent 30%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

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

.hero h1 span {
  color: var(--rod);
  position: relative;
  display: inline-block;
}

.hero h1 span:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: rgba(0, 40, 104, 0.1);
  z-index: -1;
  border-radius: 10px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--mork-gra);
}

.hero-knapper {
  display: flex;
  gap: 20px;
}

.hero-bilde {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Seksjoner */
.seksjon {
  padding: 100px 0;
}

.seksjon-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.seksjon-label {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(239, 43, 45, 0.1);
  color: var(--rod);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.seksjon-tittel {
  margin-bottom: 25px;
}

.seksjon-beskrivelse {
  font-size: 1.2rem;
  color: var(--mork-gra);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Funksjoner */
.funksjoner {
  background-color: var(--hvit);
}

.funksjoner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.funksjon {
  background-color: var(--hvit);
  border-radius: var(--radius);
  padding: 40px 30px;
  transition: var(--overgang);
  position: relative;
  z-index: 1;
  box-shadow: var(--skygge);
  overflow: hidden;
  border-bottom: 4px solid transparent;
}

.funksjon:hover {
  transform: translateY(-10px);
  border-bottom: 4px solid var(--rod);
}

.funksjon:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 40, 104, 0.03) 0%, rgba(239, 43, 45, 0.03) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.funksjon:hover:before {
  opacity: 1;
}

.funksjon-ikon {
  margin-bottom: 25px;
  width: 70px;
  height: 70px;
  background: rgba(0, 40, 104, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.funksjon-tittel {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* Hvordan det fungerer */
.hvordan {
  background-color: var(--lys-gra);
  position: relative;
  overflow: hidden;
}

.hvordan:before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(0, 40, 104, 0.05) 0%, rgba(239, 43, 45, 0.05) 100%);
}

.hvordan:after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(239, 43, 45, 0.05) 0%, rgba(0, 40, 104, 0.05) 100%);
}

.steg-container {
  position: relative;
  z-index: 2;
}

.steg {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

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

.steg-nummer {
  flex: 0 0 80px;
  height: 80px;
  background: var(--bla);
  color: var(--hvit);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-right: 30px;
  box-shadow: 0 10px 20px rgba(0, 40, 104, 0.3);
}

.steg-innhold {
  background: var(--hvit);
  border-radius: var(--radius);
  padding: 30px;
  flex: 1;
  box-shadow: var(--skygge);
  position: relative;
}

.steg-innhold:before {
  content: '';
  position: absolute;
  left: -15px;
  top: 30px;
  width: 30px;
  height: 30px;
  background: var(--hvit);
  transform: rotate(45deg);
  z-index: -1;
}

.steg:not(:last-child):after {
  content: '';
  position: absolute;
  top: 80px;
  left: 40px;
  width: 2px;
  height: calc(100% - 30px);
  background: linear-gradient(to bottom, var(--bla), var(--rod));
}

/* Kundevurderinger */
.vurderinger {
  background-color: var(--hvit);
}

.vurderinger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.vurdering {
  background: var(--hvit);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--skygge);
  position: relative;
  transition: var(--overgang);
  border-bottom: 3px solid transparent;
}

.vurdering:hover {
  transform: translateY(-5px);
  border-bottom: 3px solid var(--bla);
}

.vurdering:before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--bla);
  opacity: 0.1;
  line-height: 0;
}

.vurdering-tekst {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.vurdering-forfatter {
  display: flex;
  align-items: center;
}

.forfatter-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--hvit);
  background: linear-gradient(135deg, var(--bla) 0%, var(--rod) 100%);
}

.forfatter-info h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.forfatter-sted {
  color: var(--mork-gra);
  font-size: 0.9rem;
}

/* FAQ */
.faq {
  background-color: var(--lys-gra);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-element {
  background: var(--hvit);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--skygge);
}

.faq-sporsmal {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--bla);
  position: relative;
  transition: var(--overgang);
}

.faq-sporsmal:hover {
  background-color: rgba(0, 40, 104, 0.03);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rod);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hvit);
  font-weight: 700;
  transform: rotate(0deg);
  transition: var(--overgang);
}

.faq-svar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 25px;
}

.faq-element.aktiv .faq-toggle {
  transform: rotate(45deg);
}

.faq-element.aktiv .faq-svar {
  max-height: 1000px;
  padding: 0 25px 25px;
}

/* CTA */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bla) 0%, var(--rod) 100%);
  color: var(--hvit);
  text-align: center;
}

.cta-innhold {
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  color: var(--hvit);
  margin-bottom: 25px;
}

.cta p {
  margin-bottom: 30px;
  font-size: 1.2rem;
  opacity: 0.9;
}

.knapp-cta {
  background: var(--hvit);
  color: var(--bla);
  padding: 18px 40px;
  font-weight: 700;
}

.knapp-cta:hover, .knapp-cta:focus {
  background: var(--svart);
  color: var(--hvit);
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
  background-color: var(--bla);
  color: var(--hvit);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-seksjon h3 {
  color: var(--hvit);
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-seksjon h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--rod);
}

.footer-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--hvit);
  margin-bottom: 20px;
}

.footer-logo svg {
  margin-right: 10px;
}

.footer-beskrivelse {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  line-height: 1.8;
}

.footer-lenker {
  list-style: none;
}

.footer-lenker li {
  margin-bottom: 12px;
}

.footer-lenker a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-lenker a:hover {
  color: var(--rod);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Media queries */
@media (max-width: 992px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2.2rem; }
  
  .hero { 
    padding: 150px 0 80px;
  }
  
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-knapper {
    justify-content: center;
  }
  
  .hero-bilde {
    margin-top: 40px;
  }
  
  .mobil-meny-toggle {
    display: block;
  }
  
  .nav-meny {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background-color: var(--hvit);
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    box-shadow: var(--skygge);
    transition: right 0.4s ease;
  }
  
  .nav-meny.aktiv {
    right: 0;
  }
  
  .nav-element {
    margin: 15px 0;
  }
  
  .steg {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .steg-nummer {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .steg-innhold:before {
    display: none;
  }
  
  .steg:not(:last-child):after {
    display: none;
  }
  
  .vurderinger-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  .seksjon {
    padding: 60px 0;
  }
  
  .hero-knapper {
    flex-direction: column;
  }
  
  .funksjoner-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-seksjon h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .knapp {
    width: 100%;
  }
}
