/* Lavet i samarbejde med AI (Copilot)*/

/* ==========================================================================
   5. TOPBANNER SECTION
   ========================================================================== */

/* Banner Base */
.topbanner-section {
  position: relative;
  padding: var(--space-xl) 0;
  color: #fff;
  overflow: hidden;
}

.banner-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.banner-background {
  position: absolute;
  inset: 0;
  z-index: 0; 
}

.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #000; 
  opacity: 0.6; 
}

.banner-container {
  position: relative; 
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-l);
}


.banner-content {
  text-align: center;
  max-width: 800px;
}

.banner-description {
  margin-top: var(--space-s);
  opacity: 0.9;
}

.banner-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  flex-wrap: wrap;
  margin-top: var(--space-m);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
  width: 100%;
}

.service-card {
  color: #1E3856;
  text-decoration: none;
  background: #DEEEFF;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: var(--space-m);
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
              0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* ==========================================================================
   7. CONTENT WRAPPER & CARD GRID (Opdateret til fast visning)
   ========================================================================== */
.content-wrapper {
  text-align: left;
  gap: var(--space-l);
}

.btn-group {
  display: flex;
  gap: var(--space-s);
  flex-wrap: wrap; 
}

.card-grid {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch; 
}

.card {
  padding: 0;
  overflow: hidden;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: "";
  display: block;
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
}

.bg-ryg::before { background-image: url("../img/DSC_5019.webp"); }
.bg-skulder::before { background-image: url("../img/DSC_5010.webp"); }
.bg-hp::before { background-image: url("../img/alberte_nakke.webp"); }
.bg-knæ::before { background-image: url("../img/DSC_4990.webp"); }

.card-indhold {
  background-color: #EDF3F7;
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-s); 
  height: auto; 
  box-sizing: border-box;
}

.card-tekst {
  flex-grow: 0; 
}

.card-indhold h3 {
  margin: 0;
  color: #1E3856;
}

.card-tekst {
  flex-grow: 1;
}

.card-indhold .btn-second {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-xs);
}


/* ==========================================================================
   9. WHY SECTION
   ========================================================================== */
.about-section {
  background-color: #EDF3F7;
}

.about-image {
  width: 100%;
  height: 300px;
  border-radius: 9px;
  background-image: url("../img/DSC_5034.webp");
  background-size: cover;
  background-position: center;
}

.about-section .btn-second {
  border: 1px solid #1E73D8;
}


/* ==========================================================================
   10. FLOW SECTION (Praktisk Info)
   ========================================================================== */
.flow-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.flow-media {
  width: 100%;
  height: 300px;
  background-image: url("../img/DSC_5186.webp");
  background-size: cover;
  background-position: center 40%;
  border-radius: 9px;
}

.flow-cards {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-s);
}


.flow-box {
  display: flex;
  flex-direction: column;
  background-color: #EDF3F7;
  padding: var(--space-m);
  border-radius: 9px;
  height: 100%; /* vigtig */
}

.flow-box .btn-second {
  margin-top: auto; /* skubber knappen helt ned */
}


.flow-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

.dot-icon-one.emergency {
  background: #4fd1c5;
}

.flow-box p {
  display: flex;
  align-items: center;
}

.flow-section .btn-second {
  border: 1px solid #1E73D8;
  width: 100%; 
  box-sizing: border-box; 
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow-box p:has(.dot-iconxs) {
    display: block;
    position: relative;
    padding-left: 20px; 
    margin-top: 0;     
    margin-bottom: 6px;        
}

/* ==========================================================================
   11. PRICES SECTION
   ========================================================================== */
.prices {
  background: #EDF3F7;
}

.section.prices .btn {
  margin-bottom: 0;
}

.price-grid {
  margin-top: var(--space-m);
  gap: var(--space-l);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.price-column {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-m);
  gap: var(--space-s);
  position: relative;
}

.price-item {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}



.price-item.emergency .dot-icon-one{
  background: #4fd1c5;
}

.price-item p {
  margin: 0;
}


/* ==========================================================================
   12. BEHANDLER SECTION (Om Grocott)
   ========================================================================== */
/* RET DETTE: */
.behandler .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.boks p:has(.dot-iconxs) {
    display: block;
    position: relative;
    padding-left: 20px; /* Giver kun plads til ikonet her */
    margin-bottom: var(--space-s);
}

.boks-billede {
  width: 100%;
  height: 300px;
  background-image: url("../img/DSC_5459.webp");
  background-size: cover;
  background-position: center 10%;
  border-radius: 9px;
}


/* ==========================================================================
   13. TESTIMONIALS
   ========================================================================== */
.testimonial-section {
  background-color: #EDF3F7;
  text-align: center;
}

.testimonial-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: var(--space-xl); 
  display: flex;
  justify-content: center;
  align-items: center;
}


.testimonial-slide {
  display: none; /* Skjult som standard */
  width: 100%;
  max-width: 800px;
  padding: 0 var(--space-2xl); 
  box-sizing: border-box;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.4s ease; 
}

.testimonial-text {
  font-style: italic;
  line-height: 1.6;
  color: var(--text-color, #1E3856);
  margin-bottom: var(--space-m);
}

.testimonial-author {
  color: #1E3856;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.dots-container {
  display: flex;
  justify-content: center;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

.dot {
  width: 12px;
  height: 12px;
  border: 2px solid  #1E3856;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot.active {
  background-color: #1E3856;
  transform: scale(1.1);
}

.test-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  color:  #1E3856;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  z-index: 10;
  padding: var(--space-xs);
}

.test-btn:hover {
  color: #1E73D8;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}


/* ==========================================================================
   14. BOOKING SECTION
   ========================================================================== */


.booking-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.booking-image {
  width: 100%;
  height: 300px;
  background-image: url("../img/kort.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 9px;
}

.booking-info h4 {
  margin-top: var(--space-s);
}


/* ==========================================================================
   16. DESKTOP STYLES (min-width: 1024px)
   ========================================================================== */
@media screen and (min-width: 1024px) {

  /* ==========================================================================
     DESKTOP (1024px+)
     ========================================================================== */

  .topbanner-section {
    padding: var(--space-3xl) 0;
  }

  .banner-content h1 {
    font-size: 55px;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 320px)); 
    justify-content: center; 
    gap: var(--space-m);
  }

  .card-arrow {
    align-self: flex-end;
    margin-top: var(--space-s);
  }

  .content-wrapper .btn-group {
    margin-bottom: var(--space-m);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-m); 
    align-items: stretch;
  }

  .card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; 
    min-height: 300px;
    height: auto;
  }

  .card::before {
    height: auto; 
  }

  .card-indhold {
    height: 100%; 
    display: flex;
    flex-direction: column;
  }

  .about-section .container {
    display: flex;
    align-items: stretch;
    gap: var(--space-2xl);
  }

  .about-image {
    height: auto;
    flex: 0.8;
  }

  .about-content {
    flex: 1.2;
  }

  .flow-wrapper {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-m);
    align-items: start;
  }

  .flow-media {
    height: 100%;
    min-height: 500px;
  }

  .flow-cards {
    grid-template-columns: 1fr 1fr;
  }

  .flow-box-wide {
    grid-column: span 2;
  }

  .prices {
    text-align: center;
  }

  .price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: var(--space-m) auto;
  }

  .price-column {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .price-column:nth-child(1) {
    border-right: 1px solid #1e40af;
  }

  .price-column:nth-child(2) {
    border-right: 1px solid #1e40af;
  }

  .price-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  /* Behandler Desktop */
  .behandler .container {
    display: flex;
    flex-direction: row; 
    align-items: stretch; 
    gap: var(--space-2xl);
  }

  .boks {
    flex: 1.2;
  }

  .boks-billede {
    flex: 0.8;
    height: auto;
    min-height: 450px; 
  }

  /* Testimonials Desktop*/
  .testimonial-header {
    margin-bottom: var(--space-xl);
  }

  .testimonial-text {
    font-size: 22px; 
  }

  .test-btn {
    font-size: 2.5rem;
  }

  /* booking Desktop */
  .booking-wrapper {
    flex-direction: row; 
    align-items: stretch;
    gap: var(--space-2xl);
  }

  .booking-text {
    flex: 1.2;
  }

  .booking-image {
    flex: 0.8;
    height: auto;
  }
}