:root {
  --blue: #1a365d;
  --green: #48bb78;
  --bg: #f7fafc;
  --text: #2d3748;
  --white: #ffffff;
  --light: #edf2f7;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(26, 54, 93, 0.1);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  z-index: 1000;
  transition: all 0.35s ease;
}

header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 14px 5%;
}

.logo {
  font-family: "DM Serif Display", serif;
  font-size: 1.4rem;
  text-decoration: none;
  display: flex;
  gap: 4px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-primary {
  color: var(--blue);
  font-weight: 400;
}

.logo-secondary {
  color: var(--green);
  font-weight: 400;
}

header nav {
  display: flex;
  gap: 32px;
}

header nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

header.scrolled nav a {
  color: var(--text);
  text-shadow: none;
}

header nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

header nav a:hover::after {
  width: 100%;
}

.header-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  text-shadow: none !important;
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
  transition: all 0.3s ease;
}

.header-cta:hover {
  background: #38a169;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.header-cta::after {
  display: none !important;
}

/* Hamburger - fixed visibility */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(26, 54, 93, 0.9);
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

header.scrolled .hamburger {
  background: var(--blue);
}

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

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

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

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.4s ease;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--green);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 54, 93, 0.7) 0%,
    rgba(26, 54, 93, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title em {
  color: var(--green);
  font-style: italic;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  background: var(--green);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.cta-btn:hover {
  background: #38a169;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.ghost-btn {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.ghost-btn:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== STRIP ===== */
.strip {
  background: var(--blue);
  padding: 20px 0;
  overflow: hidden;
}

.strip-inner {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 0 5%;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.strip-icon {
  color: var(--green);
}

/* ===== SECTIONS ===== */
section {
  padding: 100px 5%;
}

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

.section-tag {
  display: inline-block;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--blue);
  line-height: 1.2;
}

/* ===== TJENESTER ===== */
.tjenester {
  background: var(--white);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(26, 54, 93, 0.15);
}

.card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 54, 93, 0.8), transparent);
  opacity: 0.6;
}

.card-number {
  position: absolute;
  bottom: 15px;
  left: 20px;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  font-family: "DM Serif Display", serif;
}

.card-body {
  padding: 28px;
}

.card-body h3 {
  font-family: "DM Serif Display", serif;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 12px;
}

.card-body p {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 18px;
  opacity: 0.85;
}

.card-list {
  list-style: none;
  margin-bottom: 20px;
}

.card-list li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text);
}

.card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.card-link {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.card-link:hover {
  color: var(--blue);
  gap: 4px;
}

.card-featured {
  border: 2px solid var(--green);
}

/* ===== HVORFOR ===== */
.hvorfor {
  background: var(--bg);
}

.hvorfor-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.hvorfor-left h2 {
  margin-bottom: 20px;
}

.hvorfor-desc {
  color: var(--text);
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 30px;
  line-height: 1.8;
}

.hvorfor-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 15px rgba(26, 54, 93, 0.06);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--green), #38a169);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature h4 {
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.8;
}

/* ===== PROSESS ===== */
.prosess {
  background: var(--white);
}

.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  text-align: center;
  padding: 30px 20px;
}

.step-num {
  font-family: "DM Serif Display", serif;
  font-size: 2.5rem;
  color: var(--green);
  margin-bottom: 16px;
}

.step h4 {
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.8;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--border);
  flex-shrink: 0;
}

/* ===== KONTAKT ===== */
.kontakt {
  background: var(--blue);
  color: var(--white);
}

.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.kontakt-left h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.kontakt-left p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

a.info-item:hover {
  color: var(--green);
}

.info-icon {
  font-size: 1.2rem;
}

.kontakt-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d3748' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.submit-btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 16px 32px;
}

/* ===== FOOTER ===== */
footer {
  background: #0f1f33;
  color: var(--white);
  padding: 60px 5% 30px;
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

footer .logo {
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(72, 187, 120, 0.4);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #38a169;
  transform: translateY(-3px);
}

/* ===== FAQ SECTION ===== */
.faq {
  padding: 100px 5%;
  background: var(--white);
}

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

.faq-item {
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

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

.faq-item[open] {
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 24px 30px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--blue);
  transition: all 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  width: 100%;
  background: var(--bg);
}

.faq-question:hover {
  background: var(--light);
}

/* Fjern standard pil i alle nettlesere */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  display: none;
  content: "";
}

details.faq-item > summary {
  list-style: none;
}

details.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--green);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--border);
}

.faq-answer {
  padding: 24px 30px;
  color: var(--text);
  line-height: 1.8;
  background: var(--white);
}

.faq-answer p {
  margin: 0;
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .hvorfor-inner,
  .kontakt-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .step {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  header nav,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .ghost-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .strip-inner {
    gap: 24px;
  }

  .strip-item {
    flex: 0 0 calc(50% - 12px);
    justify-content: center;
    font-size: 0.85rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .kontakt-form {
    padding: 28px;
  }

  .faq-question {
    padding: 20px 24px;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 24px 20px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 70px 5%;
  }

  .hero {
    min-height: 550px;
  }

  .hero-tag {
    padding: 6px 16px;
    font-size: 0.8rem;
  }

  .strip-item {
    flex: 0 0 100%;
  }

  .footer-links {
    gap: 20px;
  }
}
