/* 
   nudefyNO.site - Norsk-tema stiler
   Farger inspirert av norske flagget:
   - Mørkeblå (#0E5AA7) 
   - Rød (#DF0115)
*/

:root {
  --primary: #0E5AA7;
  --primary-light: #1A6BBF;
  --primary-dark: #0A4989;
  --secondary: #DF0115;
  --secondary-light: #F51F33;
  --secondary-dark: #C60010;
  --white: #FFFFFF;
  --off-white: #F9F9F9;
  --light-gray: #EEEEEE;
  --medium-gray: #AAAAAA;
  --dark-gray: #555555;
  --black: #1A1A1A;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 3px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.15);
  --border-radius-sm: 3px;
  --border-radius: 6px;
  --border-radius-lg: 12px;
  --transition: all 0.25s ease;
  --container-width: 1200px;
}

/* Reset og basisstiler */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark-gray);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typografi */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-dark);
}

/* Knapper */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  padding: 0.9rem 1.8rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
}

.primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.secondary:hover {
  background-color: rgba(14, 90, 167, 0.1);
  transform: translateY(-2px);
}

.large {
  font-size: 1.1rem;
  padding: 1rem 2.25rem;
}

.nav-cta {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  padding: 0.6rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  color: var(--white);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition);
}

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

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-svg {
  display: block;
  height: 36px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--dark-gray);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.main-nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.mobile-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-toggle span:nth-child(1) {
  top: 0;
}

.mobile-toggle span:nth-child(2) {
  top: 10px;
}

.mobile-toggle span:nth-child(3) {
  top: 20px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Seksjon */
.hero {
  padding: 8rem 0 5rem;
  background: radial-gradient(ellipse at top, rgba(14, 90, 167, 0.05), transparent 70%),
              radial-gradient(ellipse at bottom, rgba(223, 1, 21, 0.05), transparent 70%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230E5AA7' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: -1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

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

.hero-content h1::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 60px;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  border-radius: 5px;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: var(--dark-gray);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.08));
}

/* Features Seksjon */
.features {
  padding: 6rem 0;
  background-color: var(--white);
}

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

.feature-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 0.95;
}

.feature-card:hover h3,
.feature-card:hover p {
  color: var(--white);
}

.feature-icon {
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon path,
.feature-card:hover .feature-icon circle {
  stroke: var(--white);
}

.feature-card h3 {
  margin-bottom: 1rem;
  transition: var(--transition);
}

.feature-card p {
  transition: var(--transition);
}

/* Hvordan Det Virker Seksjon */
.how-it-works {
  padding: 6rem 0;
  background: linear-gradient(to bottom, var(--off-white), var(--white));
  position: relative;
}

.how-it-works::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23DF0115' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: -1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin: 3rem 0 2.5rem;
  position: relative;
}

.step {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 1;
  position: relative;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.step:nth-child(1):hover {
  border-bottom-color: var(--primary);
}

.step:nth-child(2):hover {
  border-bottom-color: var(--secondary);
}

.step:nth-child(3):hover {
  border-bottom-color: var(--primary);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.step-icon {
  margin: 0 auto 1.5rem;
}

.cta-center {
  text-align: center;
  margin-top: 3.5rem;
}

/* Gallery Seksjon */
.gallery {
  padding: 6rem 0;
  background-color: var(--white);
  position: relative;
}

.gallery-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0 2rem;
  flex-wrap: wrap;
}

.gallery-item {
  position: relative;
  transition: var(--transition);
  background-color: var(--off-white);
  padding: 0.5rem;
  border-radius: var(--border-radius);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-label {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--white);
  padding: 0.25rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2;
}

.gallery-item:nth-child(3) .gallery-label {
  background-color: var(--secondary);
}

.gallery-img {
  border-radius: var(--border-radius);
  display: block;
  box-shadow: var(--shadow-sm);
}

.gallery-disclaimer {
  text-align: center;
  max-width: 700px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  background-color: rgba(14, 90, 167, 0.05);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  color: var(--medium-gray);
}

/* FAQ Seksjon */
.faq {
  padding: 6rem 0;
  background: linear-gradient(to bottom, var(--white), var(--off-white));
}

.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  transition: var(--transition);
}

.faq-item.active .faq-question h3 {
  color: var(--primary);
}

.faq-toggle {
  width: 22px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  transition: var(--transition);
}

.faq-toggle::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-toggle::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item.active .faq-toggle::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  background-color: rgba(14, 90, 167, 0.02);
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--light-gray);
}

/* CTA Seksjon */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 10px,
    transparent 10px,
    transparent 20px
  );
  animation: moveBg 30s linear infinite;
  z-index: 1;
}

@keyframes moveBg {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-50px, -50px) rotate(5deg);
  }
}

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

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

.cta h2::after {
  background: var(--white);
}

.cta p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta .btn.primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(223, 1, 21, 0.3);
}

.cta .btn.primary:hover {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(223, 1, 21, 0.4);
}

/* Footer */
.site-footer {
  background-color: var(--black);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-brand span {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo {
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  gap: 4rem;
}

.footer-nav-group h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-nav-group h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-nav-group ul {
  list-style: none;
}

.footer-nav-group li {
  margin-bottom: 0.75rem;
}

.footer-nav-group a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-nav-group a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-disclaimer {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Menu overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(3px);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    margin: 0 auto;
    order: 2;
  }
  
  .hero-content h1::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    order: 1;
  }
  
  .footer-nav {
    width: 100%;
    justify-content: space-around;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    z-index: 100;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 2rem;
    height: auto;
    gap: 1.5rem;
    width: 100%;
  }
  
  .main-nav li {
    width: 100%;
    text-align: center;
  }
  
  .main-nav a:not(.nav-cta)::after {
    display: none;
  }
  
  .nav-cta {
    width: 100%;
    display: block;
    margin-top: 1rem;
  }
  
  .gallery-showcase {
    flex-direction: column;
  }
  
  .gallery-arrow {
    transform: rotate(90deg);
  }
  
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-nav-group h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .cta .btn {
    width: 100%;
  }
}
