/* ========== DESIGN TOKENS ========== */
:root {
  --page-top: clamp(78px, 8vw, 118px);
  --radius-btn: 10px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #002333;
  color: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  background: rgba(3, 26, 42, 0.95);
  backdrop-filter: blur(12px);
  padding: 18px 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* Scroll-effekt */
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(3, 26, 42, 0.75);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Navigation */
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 0%;
  background: #ffffff;
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease;
}

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

/* Aktiv side */
.main-nav a.active {
  border-bottom: 2px solid #ffffff;
  padding-bottom: 2px;
}

/* CTA knap i nav */
.nav-cta {
  background: #ffffff;
  color: #002333 !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: #e6e6e6;
  transform: translateY(-2px);
}

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

/* Toggle icon for mobile */
.nav-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0;
}

.nav-toggle-bar {
  width: 25px;
  height: 3px;
  background: white;
}

/* ========== HERO ========== */
.hero {
  padding: 100px 0 20px;
  background-color: transparent;
}

/* HERO BOXES (INDEX TOP SECTION) */
.hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.hero .hero-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  background-color: #003049;
  overflow: hidden;
  min-height: 360px;
  display: flex;
}

.hero .hero-card--text {
  padding: 28px;
  align-items: center;
}

.hero .hero-card--image {
  padding: 0;
}

.hero .hero-card--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== SERVICES ========== */
.services {
  padding: 25px 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.card {
  background-color: #003049;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.card-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card-list {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* ========== BUTTONS ========== */
.btn {
  font-weight: bold;
  background: #ffffff;
  color: #002333;
  padding: 12px 20px;
  border-radius: 6px;
  align-self: flex-start;
  margin-top: auto;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

a.btn,
a.btn:visited {
  color: #002333;
  text-decoration: none;
}

a.btn:hover,
a.btn:active,
a.btn:focus {
  color: #002333;
  text-decoration: none;
}

.btn:hover {
  background: #e6e6e6;
  transform: translateY(-2px);
}

/* ========== INLINE TEXT LINKS ========== */
a.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.text-link:hover {
  text-decoration-thickness: 2px;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  padding: 25px 0;
}

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

.testimonial {
  background-color: #003049;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-2px);
}

.testimonial-logo img {
  max-width: 160px;
  height: auto;
  margin-bottom: 14px;
}

.testimonial-author {
  margin-top: 10px;
  font-weight: bold;
}

/* ========== FOOTER ========== */
.site-footer {
  background-color: transparent;
  padding: 40px 0 20px;
  font-size: 14px;
  color: #ccc;
  }

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-left img {
  height: 32px;
  width: auto;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links h4 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #ffffff;
}

.footer-links a {
  margin-bottom: 6px;
  display: block;
  color: #ccc;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-login {
  opacity: 0.85;
  font-size: 0.95rem;
  white-space: nowrap;
}

.footer-login:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Footer CTA */
.footer-cta {
  background: #ffffff;
  color: #002333 !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-bottom: 10px;
}

.footer-cta:hover {
  background: #e6e6e6;
  transform: translateY(-2px);
  text-decoration: none !important;
}

/* Footer copyright */
.footer-copyright {
  margin-top: 12px;
  color: #ffffff55;
  font-size: 0.85rem;
}

/* ========== CARD ACTIONS FIX ========== */
.cards-grid .card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cards-grid .card-actions .btn {
  margin-top: 0;
  align-self: stretch;
}

/* ========== NETVÆRK HERO ========== */
.network-hero {
  position: relative;
  min-height: 460px;
  border-radius: 20px;
  overflow: hidden;
}

.network-hero-image {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.network-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 35, 51, 0.30), rgba(0, 35, 51, 0.72));
  display: flex;
  align-items: flex-end;
}

.network-hero-content {
  padding: 36px;
  max-width: 760px;
}

.network-hero-content h1 {
  margin-bottom: 16px;
}

.network-hero-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 680px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 58px;
    right: 20px;
    flex-direction: column;
    gap: 16px;
    background: rgba(3, 26, 42, 0.97);
    padding: 18px 22px;
    border-radius: 12px;
    align-items: flex-end;
    text-align: right;
    min-width: 190px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .main-nav.open {
    display: flex;
  }

  .header-container {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    top: 0;
    right: 20px;
  }

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

  .testimonials-stack {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-image-wrapper {
    height: 180px;
  }

  .network-hero {
    min-height: 320px;
    border-radius: 16px;
  }

  .network-hero-image {
    min-height: 320px;
  }

  .network-hero-content {
    padding: 22px 18px;
    max-width: 100%;
  }

  .network-hero-content h1 {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .network-hero-content p {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }
}