/* === Import Poppins Font === */
@font-face {
    font-family: 'Poppins';
    src: url('Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
  
  
  @font-face {
    font-family: 'Poppins';
    src: url('Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
  }
  

/* Then your normal CSS below */
body {
  font-family: 'Poppins';
  
}
body {
    margin: 0;
}
  
  /* =========================
   HERO (desktop + mobil)
   ========================= */
.hero-section{
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: 900px;            /* desktop som du har nu */
  z-index: 1;
}

/* Slideshow images */
.hero-image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;


  
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  z-index: 0;
}

.hero-image.active{
  opacity: 1;
  z-index: 1;
}

/* Overlay */
.hero-overlay{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30%;
  display: flex;
  gap: 120px;
  z-index: 2;
}

/* Buttons */
.hero-btn{
  border: none;
  padding: 15px 40px;
  background-color: #66A53D;
  color: white;
  font-size: 1.3rem;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.6);
}

.hero-btn:hover{
  background-color: white;
  color: #66A53D;
  transition: ease-in-out 0.3s;
}

/* Dit special focus på 3. billede (beholder vi) */
.hero-section .hero-image:nth-child(3){
  object-position: center 30%;
}

/* =========================
   MOBIL FIX
   ========================= */
@media (max-width: 768px){
  .footer-right {
    width: 100%;
    text-align: center; /* holder overskriften centreret */
  }

  .footer-contact {
    list-style: none;
    padding: 0;
    margin: 20px auto 30px auto; /* centrerer hele listen */
    
    display: grid;
    grid-template-columns: auto 1fr;   /* venstre: ikon-faste-bredde | højre: tekst tager resten */
    gap: 12px 16px;                    /* lodret afstand 12px, vandret afstand mellem ikon og tekst 16px */
    align-items: center;               /* ikoner og tekst centreret vertikalt i hver række */
    justify-items: start;              /* starter alt til venstre i sin kolonne */
    max-width: 380px;                  /* juster dette tal hvis du vil have det smallere/bredere */
  }

  .footer-contact li {
    display: contents;   /* vigtig: fjerner <li> som blok – grid styrer direkte børn */
  }

  /* Ikon-kolonne – alle ikoner samme bredde og centreret i deres lille kolonne */
  .footer-icon {
    grid-column: 1;
    width: 32px;          /* eller 28–36px – test hvad der passer bedst til dine ikoner */
    height: 32px;
    justify-self: center; /* centrerer ikonet i sin egen kolonne */
    flex-shrink: 0;
  }

  /* Tekst-kolonne – alt tekst starter præcist samme sted */
  .footer-contact span,
  .footer-contact a {
    grid-column: 2;
    text-align: left;     /* venstrejusteret tekst */
    color: white;
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .footer-contact a {
    text-decoration: none;
  }

  .footer-contact a:hover {
    text-decoration: underline;
  }
  /* VIGTIGT: brug "svh" så hero passer på mobilens UI (Safari/Chrome) */
  .hero-section{
    height: 100svh;          /* fylder skærmen korrekt på mobil */
    min-height: 520px;       /* så den ikke bliver for lav på små screens */
    max-height: 720px;       /* så den ikke bliver absurd høj */
    width: 100%;
    overflow: hidden;
  }

  /* Undgå horisontal overflow pga. transform/centering */
  .hero-overlay{
    width: min(280px, 88vw);
    flex-direction: column;
    gap: 14px;
    bottom: max(16px, env(safe-area-inset-bottom)); /* holder sig over "home bar" */
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    padding-bottom: 80px;
  }

  .hero-btn{
    width: 100%;
    padding: 14px 0;
    font-size: 1.05rem;
  }

  /* Hvis et billede cropper "forkert" på mobil, kan du skubbe fokus lidt op */
  .hero-image{
    object-position: center 40%;
  }

  /* Behold dit 3. billede lidt højere fokus også på mobil */
  .hero-section .hero-image:nth-child(3){
    object-position: center 30%;
  }
}

  
 /* === Intro Section === */
/* === Info Section Styling === */
.info-sections {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

/* Each row (image + text box) */
.info-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin-bottom: 70px;
}

/* Desktop: reverse row 2 */
.info-row.reverse {
  flex-direction: row-reverse;
}

/* === Image side (desktop) === */
.info-img {
  flex: 1;
  max-width: 600px;
  max-height: 450px;
}

.info-img img {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 600px;
  max-height: 450px;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 12px 0 0 12px; /* venstre side rund */
}

/* === Text box (desktop) === */
.info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  line-height: 1.6;
  border-radius: 0 12px 12px 0; /* højre side rund */
  max-width: 600px;
  max-height: 450px;
  padding: 28px 22px;
  box-sizing: border-box;
  
}
.info-row.reverse .info-img img {
  border-radius: 0 12px 12px 0;
}

.info-row.reverse .info-text {
  border-radius: 12px 0 0 12px;
}

/* Colors */
.grey-box {
  background-color: #66A53D;
  color: #ffffff;
}

.green-box {
  background-color: #66A53D;
  color: #ffffff;
}

/* Headings */
.info-text h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 18px 0;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Paragraphs */
.info-text p {
  font-size: 1.15rem;
  margin: 0 0 12px 0;
  color: #f9f9f9;
  max-width: 550px;
  text-align: center;
}

/* Button */
.read-more {
  margin-top: 20px;
  padding: 10px 25px;
  font-size: 1.3rem;
  border: 2px solid white;
  background: transparent;
  color: white;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: 0.3s;
  border-radius: 6px;
}

.read-more:hover {
  background-color: white;
  color: #66A53D;
}

/* ================================================= */
/* ================== MOBILE (PHONES) ============== */
/* ================================================= */

/* 768px rammer telefoner langt mere stabilt end 600px */
/* ===========================
   MOBIL – INFO CARDS
   =========================== */
   @media (max-width: 768px) {
    .info-sections {
      padding-left: 35px;
      padding-right: 35px;
    }

    /* Hver række bliver ét samlet kort */
    .info-row,
    .info-row.reverse {
      display: flex;
      flex-direction: column !important;
      max-width: 520px;
      margin: 0 auto 40px auto;
      border-radius: 14px;
      overflow: hidden; /* VIGTIG: samler radius korrekt */
      
    }
  
    /* Altid billede først, tekst efter */
    .info-img {
      order: 1;
      width: 100%;
      aspect-ratio: 16 / 9;
      max-height: 260px;
      overflow: hidden;
    }
  
    .info-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      object-position: center 50%;
    }
  
    /* Tekst-boks */
    .info-text {
      order: 2;
      width: 100%;
      max-width: 100%;
      max-height: none;
      padding: 20px 16px 24px;
      justify-content: flex-start;
      align-items: center;
      text-align: center;
    }
  
    /* Fjern radius på indre elementer */
    .info-img,
    .info-text,
    .info-img img,
    .grey-box,
    .green-box {
      border-radius: 0 !important;
    }
  
    /* Overskrift */
    .info-text h2 {
      font-size: 28px;
      line-height: 1.25;
      margin-bottom: 12px;
    }
  
    /* Brødtekst */
    .info-text p {
      font-size: 1rem;
      margin-bottom: 10px;
      max-width: 100%;
    }
  
    /* Knap */
    .read-more {
      margin-top: 10px;
      padding: 10px 20px;
    }
  }
  

  /* --- CTA Section --- */
.cta-section {
    background-color: #66A53D; /* same green as in your image */
    text-align: center;
    padding: 15px 0px;
    padding-bottom: 30px;
    font-family: 'Poppins', sans-serif;
    margin-top: -60px;
  }
  
.cta-section h2 {
  color: white;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 18px 0;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	}
  
  .cta-section p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
    color: white;
  }
  
  .cta-phone {
    font-weight: 700;
    color: black;
  }
  
  .cta-mail {
    color: #265fa6; /* blue like your screenshot */
    text-decoration: none;
  }
  
  .cta-mail:hover {
    text-decoration: underline;
  }
  @media (max-width: 768px) {
    .cta-section h2 {
      font-size: 24px;
      line-height: 1.3;
    }
  }
  
  /* --- Expertise Section --- */
.expertise-section {
    text-align: center;
    padding: 80px 20px;
    margin-top: -40px;
    font-family: 'Poppins', sans-serif;
  }
  
  .expertise-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: #2b2b2b;
    margin-bottom: 20px;
  }
  
  .expertise-section p {
    font-size: 18px;
    color: #2b2b2b;
    margin-bottom: 50px;
    line-height: 1.6;
  }
  
  /* Container for the boxes */
  .expertise-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 110px;
  }
  
  /* Each expertise box */
  .expertise-box {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }
  
  .expertise-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  
  }

  /* Overlay text */
  .expertise-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .expertise-box:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.12);
  }
  
  .expertise-overlay h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    line-height: 1.3;
  }
  /* --- Mobile swipe for expertise cards --- */
@media (max-width: 768px) {

  .expertise-box img {
    object-position: center 30%;
  }
  .expertise-section {
    padding: 50px 14px; /* lidt mindre padding på mobil */
  }

  .expertise-section h2 {
    font-size: 28px;
  }

  .expertise-section p {
    font-size: 16px;
    margin-bottom: 26px;
  }

  .expertise-container {
    flex-wrap: nowrap;          /* vigtig: ingen wrap */
    justify-content: flex-start;
    gap: 16px;

    overflow-x: auto;           /* swipe */
    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x mandatory;  /* "snap" til hvert kort */
    padding: 0 14px;               /* luft i siderne */
  }

  /* skjul scrollbar (valgfrit men pænt) */
  .expertise-container::-webkit-scrollbar {
    display: none;
  }
  .expertise-container {
    scrollbar-width: none;
  }

  .expertise-box {
    flex: 0 0 70%;              /* viser lidt af næste kort (hint til swipe) */
    max-width: 330px;           /* stop den fra at blive for bred på store mobiler */
    height: 240px;              /* lavere på mobil så det ikke fylder for meget */
    scroll-snap-align: start;
  }

  .expertise-overlay h3 {
    font-size: 18px;
  }
}

/* ────────────────────────────────────────────────
   FOOTER – MOBIL – IKON + TEKST ALIGNMENT
   ──────────────────────────────────────────────── */
@media (max-width: 768px) {

  .footer-right {
    width: 100%;
  }

  .footer-contact {
    list-style: none;
    padding: 0;
    margin: 24px auto 32px auto;
    
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 500px;               /* ← juster her hvis for bred/smalt */
  }

  .footer-contact li {
    display: flex;
    align-items: center;
    gap: 14px;                      /* afstand ikon → tekst */
    justify-content: flex-start;    /* vigtig – starter til venstre */
    width: 100%;
  }

  .footer-icon {
    width: 34px;                    /* lidt større for bedre balance */
    height: 34px;
    flex-shrink: 0;
    object-fit: contain;
  }

  /* Sørg for at tekst starter på samme linje */
  .footer-contact li > *:last-child {   /* rammer span eller a */
    flex: 1;
    text-align: left;
    color: white;
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .footer-contact a {
    color: white;
    text-decoration: none;
  }

  .footer-contact a:hover {
    text-decoration: underline;
  }

  /* Fix Facebook – ikon er inde i <a> */
  .footer-contact li a[href*="facebook"] {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .footer-contact li a[href*="facebook"] img {
    margin: 0;
  }
}

