: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;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "DM Serif Display", serif;
  line-height: 1.2;
  color: var(--blue);
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
h3 {
  font-size: 1.35rem;
}
h4 {
  font-size: 1.05rem;
}
em {
  font-style: italic;
  color: var(--green);
}

.cta-btn {
  display: inline-block;
  background: var(--green);
  color: var(--white) !important;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(72, 187, 120, 0.25);
}
.cta-btn:hover {
  background: #38a169;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(72, 187, 120, 0.35);
}

.ghost-btn {
  display: inline-block;
  color: var(--white) !important;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: all 0.25s;
}
.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-tag.light {
  color: #9ae6b4;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.card:nth-child(2) {
  transition-delay: 0.1s;
}
.card:nth-child(3) {
  transition-delay: 0.2s;
}
.step:nth-child(3) {
  transition-delay: 0.1s;
}
.step:nth-child(5) {
  transition-delay: 0.2s;
}
.step:nth-child(7) {
  transition-delay: 0.3s;
}
.feature:nth-child(2) {
  transition-delay: 0.1s;
}
.feature:nth-child(3) {
  transition-delay: 0.2s;
}
.feature:nth-child(4) {
  transition-delay: 0.3s;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5%;
  transition:
    background 0.3s,
    box-shadow 0.3s,
    padding 0.3s;
}
#header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 14px 5%;
}
#header.scrolled nav a {
  color: var(--blue);
}

#header.scrolled .logo-primary {
  color: var(--blue);
}
.logo-primary {
  color: var(--white);
}

.logo {
  text-decoration: none;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}
.logo-primary {
  color: var(--white);
}
.logo-secondary {
  color: var(--green);
  margin-left: 4px;
}

nav {
  display: flex;
  gap: 30px;
}
nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--green);
}
.header-cta {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.85) 0%,
    rgba(26, 54, 93, 0.65) 50%,
    rgba(26, 54, 93, 0.4) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 120px 5% 80px;
  animation: fadeUp 0.9s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.hero-title {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
}
.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 5%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 50px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--green);
  animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim {
  to {
    left: 100%;
  }
}

.strip {
  background: var(--blue);
  padding: 22px 5%;
}
.strip-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.strip-item:last-child {
  border-right: none;
}
.strip-icon {
  color: var(--green);
  font-size: 0.7rem;
}

.tjenester {
  padding: 100px 5%;
  background: var(--bg);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(26, 54, 93, 0.15);
}
.card-featured {
  border-top: 4px solid var(--green);
}
.card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img-wrap img {
  transform: scale(1.05);
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 54, 93, 0.5), transparent);
}
.card-number {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: "DM Serif Display", serif;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
}
.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  margin-bottom: 12px;
  color: var(--blue);
}
.card-body p {
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 18px;
}
.card-list {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.card-list li {
  font-size: 0.87rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.card-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover {
  color: var(--green);
}

.hvorfor {
  background: var(--blue);
  padding: 100px 5%;
}
.hvorfor-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hvorfor-left .section-tag {
  color: #9ae6b4;
}
.hvorfor-left h2 {
  color: var(--white);
  margin-bottom: 20px;
}
.hvorfor-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 380px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  transition: background 0.2s;
}
.feature:hover {
  background: rgba(255, 255, 255, 0.1);
}
.feature:last-child {
  margin-bottom: 0;
}
.feature-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(72, 187, 120, 0.15);
  border-radius: 10px;
  flex-shrink: 0;
}
.feature h4 {
  color: var(--white);
  margin-bottom: 4px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
}
.feature p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.prosess {
  padding: 100px 5%;
  background: var(--white);
}
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  text-align: center;
  padding: 10px 16px;
}
.step-num {
  font-family: "DM Serif Display", serif;
  font-size: 2.8rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 14px;
}
.step h4 {
  color: var(--blue);
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.87rem;
  color: #718096;
}
.step-arrow {
  font-size: 1.6rem;
  color: var(--border);
  padding-top: 24px;
  flex-shrink: 0;
}

.kontakt {
  background: var(--bg);
  padding: 100px 5%;
}
.kontakt-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.kontakt-left h2 {
  color: var(--blue);
  margin-bottom: 16px;
}
.kontakt-left p {
  color: #718096;
  margin-bottom: 36px;
  font-size: 0.95rem;
}
.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.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: var(--shadow);
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group:last-of-type {
  margin-bottom: 0;
}
label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
input,
textarea,
select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
  width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.12);
}
textarea {
  resize: vertical;
  min-height: 110px;
}
.submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  font-size: 1rem;
  border-radius: 8px;
}

footer {
  background: var(--blue);
  padding: 60px 5% 40px;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.footer-inner .logo {
  display: inline-block;
  margin-bottom: 12px;
}
.footer-inner .logo-primary {
  color: var(--white);
}
.footer-tagline {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  margin-bottom: 28px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--green);
}
.footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

@media (max-width: 992px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .hvorfor-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .kontakt-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .step-arrow {
    display: none;
  }
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }
  #header {
    background: transparent;
    box-shadow: none;
    padding: 16px 5%;
  }
  #header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .hero-content {
    padding: 100px 5% 60px;
  }
  .strip-item {
    padding: 6px 16px;
    font-size: 0.8rem;
  }
  .tjenester,
  .hvorfor,
  .prosess,
  .kontakt {
    padding: 70px 5%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .kontakt-form {
    padding: 28px 22px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }
}
