/* ═══════════════════════════════════════════════════════
   Forside Hero (samlet) – v1
   Erstatter: hero + feature-cards-grid + feature-card + trust-stats
   Ét baggrundsbillede, én gradient, tre indholdszoner.
   ═══════════════════════════════════════════════════════ */


/* ─── Section: fullwidth wrapper ─── */

.fd-hero-unified {
  position: relative;
  overflow: hidden;
}

.fd-hero-unified.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


/* ─── Background: image + gradient overlay ─── */

.fd-hero-unified__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  z-index: 0;
}

.fd-hero-unified__gradient {
  position: absolute;
  inset: 0;
}


/* ─── Inner container: constrains content width ─── */

.fd-hero-unified__inner {
  position: relative;
  z-index: 1;
  max-width: var(--theme-block-max-width, 1200px);
  margin: 0 auto;
  padding: 0 1.25rem;
}


/* ═══════════════════════════════════════════════════════
   ZONE 1: Hero tekst + CTA
   ═══════════════════════════════════════════════════════ */

.fd-hero-unified__hero {
  padding: 6rem 0 4rem;
}

.fd-hero-unified__hero-content {
  max-width: 600px;
  text-align: var(--fd-text-align, left);
}

.fd-hero-unified__title {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 1.25rem 0;
  color: #ffffff;
  animation: fd-unified-fadeIn 0.8s ease-out;
}

.fd-hero-unified__title strong {
  font-weight: 700;
  display: block;
}

.fd-hero-unified__desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 2rem 0;
  max-width: 520px;
  animation: fd-unified-fadeIn 0.8s ease-out 0.15s backwards;
}

/* Knapper */
.fd-hero-unified__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  animation: fd-unified-fadeIn 0.8s ease-out 0.3s backwards;
}

.fd-hero-unified__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  line-height: 1.3;
  width: 100%;
  text-align: center;
}

.fd-hero-unified__btn-icon {
  width: 18px;
  height: 18px;
  display: flex;
  flex-shrink: 0;
}

.fd-hero-unified__btn-icon svg {
  width: 100%;
  height: 100%;
}

.fd-hero-unified__btn--primary {
  background: var(--theme-palette-color-1, #4A7C59);
  color: #ffffff;
  border: 2px solid var(--theme-palette-color-1, #4A7C59);
}

.fd-hero-unified__btn--primary:hover {
  background: var(--theme-palette-color-2, #3A6347);
  border-color: var(--theme-palette-color-2, #3A6347);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.fd-hero-unified__btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fd-hero-unified__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}


/* ═══════════════════════════════════════════════════════
   ZONE 2: Feature-kort (6 stk.)
   ═══════════════════════════════════════════════════════ */

.fd-hero-unified__cards {
  padding-bottom: 2rem;
}

.fd-hero-unified__cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

/* Enkelt kort */
.fd-hero-unified__card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--theme-palette-color-3, #2C2C2C);
  transition: transform 0.2s ease, background 0.2s ease;
}

/* Editor: forhindre link-navigation */
.editor-styles-wrapper .fd-hero-unified__card[href] {
  pointer-events: none;
}

.fd-hero-unified__card[href]:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.fd-hero-unified__card[href]:hover .fd-hero-unified__card-title {
  color: var(--theme-palette-color-1, #4A7C59);
}

.fd-hero-unified__card--no-link {
  cursor: default;
}

/* Ikon */
.fd-hero-unified__card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #E8F0EA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fd-hero-unified__card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--theme-palette-color-1, #4A7C59);
}

/* Tekst */
.fd-hero-unified__card-body {
  flex: 1;
  min-width: 0;
}

.fd-hero-unified__card-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-palette-color-3, #2C2C2C);
  line-height: 1.25;
}

/* Override Blocksy global h3 styles inside cards */
h3.fd-hero-unified__card-title {
  --theme-font-size: inherit;
  --theme-font-weight: inherit;
  --theme-line-height: inherit;
  margin: 0;
  margin-block-end: 0;
  margin-block-start: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.fd-hero-unified__card-desc {
  display: none; /* Skjult på mobil */
  margin: 0.2rem 0 0 0;
  margin-block-end: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--theme-palette-color-5, #6B6B6B);
}

/* Pil */
.fd-hero-unified__card-arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--theme-palette-color-1, #4A7C59);
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fd-hero-unified__card-arrow svg {
  width: 100%;
  height: 100%;
}

.fd-hero-unified__card[href]:hover .fd-hero-unified__card-arrow {
  opacity: 1;
  transform: translateX(3px);
}


/* ═══════════════════════════════════════════════════════
   ZONE 3: Tillids-tal
   ═══════════════════════════════════════════════════════ */

.fd-hero-unified__trust {
  padding: 2.5rem 0 3rem;
}

.fd-hero-unified__trust-grid {
  display: grid;
  grid-template-columns: repeat(var(--fd-stats-columns, 3), 1fr);
  gap: 1.5rem;
  text-align: center;
}

.fd-hero-unified__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fd-unified-fadeIn 0.7s ease-out forwards;
}

.fd-hero-unified__stat-num {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.fd-hero-unified__stat-label {
  font-size: clamp(0.8125rem, 1.2vw, 1rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* Tablet (600px+) */
@media (min-width: 600px) {
  .fd-hero-unified__inner {
    padding: 0 2rem;
  }

  .fd-hero-unified__hero {
    padding: 6rem 0 3.5rem;
  }

  .fd-hero-unified__buttons {
    flex-direction: row;
    gap: 0.75rem;
  }

  .fd-hero-unified__btn {
    width: auto;
  }

  .fd-hero-unified__cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .fd-hero-unified__card {
    padding: 1rem 1.125rem;
  }

  .fd-hero-unified__card-title,
  h3.fd-hero-unified__card-title {
    font-size: 0.9375rem;
  }

  .fd-hero-unified__card-desc {
    display: block;
  }

  .fd-hero-unified__trust {
    padding: 3rem 0 3.5rem;
  }

  .fd-hero-unified__trust-grid {
    gap: 2rem;
  }
}

/* Desktop (900px+) */
@media (min-width: 900px) {
  .fd-hero-unified__hero {
    padding: clamp(6rem, 10vw, 8rem) 0 4rem;
  }

  .fd-hero-unified__title {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  }

  .fd-hero-unified__cards {
    padding-bottom: 3rem;
  }

  .fd-hero-unified__cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .fd-hero-unified__card {
    padding: 1.125rem 1.25rem;
  }

  .fd-hero-unified__card-title,
  h3.fd-hero-unified__card-title {
    font-size: 1.0625rem;
  }

  .fd-hero-unified__card-desc {
    font-size: 0.8125rem;
    margin-top: 0.35rem;
  }

  .fd-hero-unified__trust {
    padding: 3.5rem 0 4.5rem;
  }

  .fd-hero-unified__trust-grid {
    gap: 3rem;
  }

  .fd-hero-unified__stat-num {
    font-size: 3.5rem;
  }
}

/* Centreret variant */
@supports (text-align: center) {
  .fd-hero-unified__inner[style*="--fd-text-align: center"] .fd-hero-unified__hero-content {
    margin-left: auto;
    margin-right: auto;
  }

  .fd-hero-unified__inner[style*="--fd-text-align: center"] .fd-hero-unified__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .fd-hero-unified__inner[style*="--fd-text-align: center"] .fd-hero-unified__buttons {
    justify-content: center;
  }
}

/* Tablet: centrér hero-tekst */
@media (max-width: 900px) {
  .fd-hero-unified__hero-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .fd-hero-unified__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .fd-hero-unified__buttons {
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════════════
   ANIMATION
   ═══════════════════════════════════════════════════════ */

@keyframes fd-unified-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fd-hero-unified__title,
  .fd-hero-unified__desc,
  .fd-hero-unified__buttons,
  .fd-hero-unified__stat {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* ═══════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════ */

@media print {
  .fd-hero-unified {
    min-height: auto;
  }

  .fd-hero-unified__bg,
  .fd-hero-unified__gradient {
    display: none;
  }

  .fd-hero-unified__buttons {
    display: none;
  }

  .fd-hero-unified__card {
    background: #f5f5f5;
    border: 1px solid #ddd;
  }

  .fd-hero-unified__stat-num,
  .fd-hero-unified__stat-label {
    color: #000;
  }
}