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

/* BAS */
body {
  font-family: 'Inter', sans-serif;
  background: #f5f7fa;
  color: #1a1a1a;
  line-height: 1.6;
}

/* CONTAINER */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.logo img {
  width: 55px;
  height: 55px;
}

/* DESKTOP NAV */
.desktop-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 20px 0;
}

.desktop-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.desktop-nav a:hover {
  color: #007BFF;
}

/* SECTIONS */
.section {
  margin: 60px 0;
}

/* HEADINGS */
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* TEXT */
p {
  margin-bottom: 15px;
  color: #444;
}

/* LIST */
ul {
  margin: 15px 0 20px 20px;
}

li {
  margin-bottom: 8px;
}

/* CARDS GRID */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* CARD */
.card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: #007BFF;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #0056b3;
}

/* FOOTER */
.footer {
  text-align: center;
  margin-top: 60px;
  padding: 20px 0;
  color: #777;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .desktop-nav ul {
    flex-direction: column;
    gap: 10px;
  }

}





.image-block {
  max-width: 900px;
  margin: 40px 0; /* vänsterställd istället för centrerad */
  font-family: Arial, sans-serif;
}

.image-block img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}


.image-block2 {
  max-width: 900px;
  margin: 40px 0; /* vänsterställd istället för centrerad */
  font-family: Arial, sans-serif;
}

.image-block2 img {
  width: 30%;
  height: auto;
  border-radius: 12px;
  display: block;
}


.image-block figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
  text-align: left; /* mer naturligt när den är vänsterställd */
}

/* 📱 Mobilanpassning */
@media (max-width: 768px) {
  .image-block {
    max-width: 280px;   /* gör blocket mindre */
    margin: 20px 0;     /* fortfarande vänsterställt */
  }

  .image-block figcaption {
    font-size: 13px;
  }
}

/* 📱 Mobilanpassning */
@media (max-width: 768px) {
  .image-block2 img {
    width: 50%;
  }
}









/* Google Reviews Grundstil */ 
.google-reviews { 
  max-width: 1000px; 
  margin: 40px auto; 
  padding: 0 20px; 
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
  text-align: center; 
  overflow: hidden;
  z-index: 1;
} 

.google-reviews h2 { 
  font-size: 1.8rem; 
  margin-bottom: 25px; 
  color: #333; 
} 


.reviews-container { 
  display: flex; 
  gap: 20px; 
  padding-bottom: 15px;
  width: max-content; /* Säkerställer att containern inte trycks ihop */
} 

@keyframes scrollReviews { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } /* Flytta bara hälften av den totala bredden */
}

/* Pausa vid hovring på desktop */
.google-reviews:hover .reviews-container {
  animation-play-state: paused;
}

.review-card { 
  flex: 0 0 280px; /* Fixerad bredd */
  background-color: #ffffff; 
  border: 1px solid #eee;
  border-radius: 16px; 
  padding: 24px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
  transition: transform 0.2s ease;
  text-align: left;
} 

.review-text { 
  font-size: 0.95rem; 
  color: #444; 
  margin-bottom: 15px; 
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Begränsar texten till 4 rader så alla kort blir lika höga */
  -webkit-box-orient: vertical;
  overflow: hidden;
} 

.review-author { 
  font-weight: 700; 
  color: #111; 
  font-size: 0.9rem;
  margin-bottom: 4px;
  display: block;
} 

.review-stars { 
  color: #fbbc04; /* Exakt Google-gul */ 
  font-size: 1.1rem; 
} 

/* --- MOBILANPASSNING (Under 768px) --- */  
@media (max-width: 768px) {  
  .google-reviews { 
    padding: 0; 
    width: 100%;
  }
  
  .google-reviews h2 { 
      font-size: 20px;
} 

  .reviews-container {  
    animation: none; 
    display: flex;
    overflow-x: auto;  
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; 
    /* Padding på sidorna gör att korten kan centreras och att nästa kort syns */
    padding: 20px 10%; 
    gap: 15px;
    box-sizing: border-box;
  }  
    
  .review-card {  
    /* 100% här baseras på containerns bredd minus padding */
    flex: 0 0 100%; 
    max-width: 80vw; /* Tvingar kortet att vara 80% av skärmens bredd */
    scroll-snap-align: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    margin: 0;
    box-sizing: border-box;
  }  

  /* Dölj scrollbar */ 
  .reviews-container::-webkit-scrollbar {  
    display: none;  
  }  
  .reviews-container { 
    -ms-overflow-style: none;   
    scrollbar-width: none;   
  } 
}







