/* ========== 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: #002333;
  border-bottom: 1px solid #ffffff33;
  padding: 18px 0;
}

.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;
}

.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%;
}

/* 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 ========== */
/* Lidt mindre vertikal luft end før */
.hero {
  padding: 100px 0 20px; /* plads til fixed header + mindre bundluft */
  background-color: transparent;
}

/* ============================= */
/* HERO BOXES (INDEX TOP SECTION) */
/* ============================= */
.hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;              /* mindre afstand mellem de to bokse */
  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;      /* samme højde på begge */
  display: flex;
}

/* Venstre boks */
.hero .hero-card--text {
  padding: 28px;
  align-items: center;
}

/* Højre boks */
.hero .hero-card--image {
  padding: 0;
}

.hero .hero-card--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* fylder hele boksen */
  display: block;
}

/* ========== SERVICES ========== */
/* Halveret-ish luft */
.services {
  padding: 25px 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px; /* mindre vertikal + horisontal afstand mellem bokse */
}

.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);
}

/* ✅ FAST HØJDE PÅ BILLEDER I CARDS (virker på mobil også) */
.card-image-wrapper {
  width: 100%;
  height: 220px;          /* fast højde desktop */
  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; /* knap i bund */
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

/* VIGTIGT: knapper er ofte <a class="btn"> – så sørg for farven ikke arves (hvid tekst på hvid baggrund) */
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 (SPECIAL CASE) ========== */
/* Brug på “her”-linket: <a class="text-link" ...>her</a> */
a.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.text-link:hover {
  text-decoration-thickness: 2px;
}

/* ========== TESTIMONIALS ========== */
/* Halveret-ish luft */
.testimonials {
  padding: 25px 0;
}

.testimonials-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px; /* mindre afstand */
}

.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: #002333;
  padding: 40px 0 20px;
  font-size: 14px;
  color: #ccc;
  border-top: none;
}

.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;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* menu */
  .main-nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    background: #002333;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 8px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* header layout */
  .header-container {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-toggle {
    position: absolute;
    top: 0;
    right: 0;
  }

  /* grids på mobil */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px; /* stadig mindre end før */
  }

  .testimonials-stack {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* card billedehøjde lidt lavere på mobil */
  .card-image-wrapper {
    height: 180px;
  }
}
