/* === GRUNDSTILAR === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; background: #fff; }
a { color: #2c8274; text-decoration: none; }

#flikmeny {
  scroll-margin-top: 10px;
}

/* === HEADER (NY, MED BANNER-BAKGRUND) === */
header { 
  background-color: #fff; 
  position: relative; 
  z-index: 1; 

  /* Din nya banner som bakgrundsbild */
  background-image: url('img/banner-ny.png'); /* ÄNDRA SÖKVÄG OM DEN LIGGER I /img/ */
  background-repeat: no-repeat;
  background-position: center bottom; /* Ställer skylinen "på botten" */
  background-size: 100% 200px; /* Ser till att hela bilden får plats */

  min-height: 200px; /* Ger utrymme för bilden att synas */
  padding: 1rem; /* Lite luft, men bilden styr höjden */
}

/* NY REGEL FÖR LOGOTYPEN */
.header-logo {
  position: absolute;
  z-index: 2; /* Ovanpå bakgrundsbilden */
  right: 8rem; /* Avstånd från högerkanten (justera vid behov) */
  top: 50%;
  transform: translateY(-50%);
  max-height: 160px; /* Maxhöjd på loggan (justera vid behov) */
  width: auto;
}

/* === HERO (FLYT TILLSAMMANS MED HEADER) === */
.hero { 
  background-color: #2c8274; /* Samma gröna färg = flyter ihop */
  color: #fff; 
  padding: 2rem 1rem 6rem 1rem; /* 6rem padding i botten för att ge plats */
  text-align: center; 
  position: relative; 
  z-index: 1;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; margin: 0 auto 1rem; max-width: 600px; }

.btn-hero-cta {
  display: inline-block;
  background: #fff;
  color: #2c8274;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}
.btn-hero-cta:hover {
  background: #f0f8f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* === FLIKAR (RUNDA, SVÄVANDE KNAPPAR) === */
.nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center; 
  margin: 0 auto; 
  padding: 20px 1rem; 
  border: none;
  overflow-x: auto; 

  -ms-overflow-style: none;
  scrollbar-width: none;
  
  position: relative; 
  z-index: 10;
  margin-top: -60px; 
}
.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tabs a {
  display: inline-block;
  height: 80px; 
  line-height: 74px; 
  padding: 0 1.5rem; 
  font-weight: bold;
  text-align: center;
  border-radius: 40px; 
  margin: 0 0.3rem; 
  flex-shrink: 0; 
  
  /* Inaktiv knapp */
  background-color: #fff; 
  color: #2c8274;
  border: 3px solid #2c8274; 
  
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
  transition: all 0.2s ease;
}

.nav-tabs a:hover {
  background-color: #f0f8f8; 
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Aktiv knapp (Grön, med vit kant) */
.nav-tabs a.active {
  background-color: #2c8274;  
  color: #fff;                
  border: 3px solid #fff;    
  line-height: 74px;         
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* === INNEHÅLL === */
/* === INNEHÅLL (NY DYNAMISK GRID-DESIGN) === */
.service-content {
  margin: 0 auto; 
  background: #fff; 
  border: none;
  padding: 0; 
  position: relative;
  z-index: 5;
  margin-top: -40px; 
}

.service-content-column {
    padding: 6rem 1rem 2.5rem 1rem; 
    max-width: 1000px;  /* BREDDAD: För att få plats med två boxar i bredd */
    margin: 0 auto;     
}

/* Huvudrubriken */
.service-content-column h2 { 
  color: #333; 
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2.4rem; 
  font-weight: 800; 
}

/* Introtext (ligger centrerad högst upp) */
.intro-text {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
}

/* --- NY GRID-LAYOUT FÖR BOXAR --- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Två lika stora kolumner */
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Designen på Boxarna */
.content-box {
  background: #fff;
  border: 1px solid #eee;
  border-top: 4px solid #2c8274; /* Grön linje i toppen */
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.content-box:hover {
  transform: translateY(-5px); /* Svävar lite vid hover */
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.content-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.content-box h3 {
    color: #2c8274; 
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

/* --- CHECKLISTA-SEKTION (Bild + Lista) --- */
.checklist-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Bilden tar lite mindre plats än texten */
  gap: 3rem;
  align-items: center;
  background-color: #fff; /* Mycket ljus grön nyans för att bryta av */
  padding: 3rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.checklist-image {
  width: 100%;
  height: auto;
  border-radius: 0px;
  box-shadow: none;
}

.checklist-content h3 {
  color: #2c8274;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* Den säljande checklistan (Gröna bockar) */
.checklist-content ul {
  padding: 0; 
  list-style: none; 
  margin: 0;
}
.checklist-content li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  padding-left: 2.5rem; 
  position: relative;
}
.checklist-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: #fff;
  background-color: #2c8274;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  text-align: center;
  line-height: 1.6rem;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(44, 130, 116, 0.2);
}


/* === MOBILANPASSNING (GÖR OM GRID TILL EN KOLUMN) === */
@media (max-width: 768px) {
  /* ... tidigare mobil-koder ... */

  /* Stapla boxarna på varandra i mobilen */
  .content-grid {
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }
  
  /* Stapla checklistan */
  .checklist-section {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }
  
  /* Ordning: Lägg bilden överst i checklistan på mobil om du vill, 
     annars ligger den först pga HTML-ordningen */
}

/* === GAMLA STILAR === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 1rem;
  margin: auto;
  max-width: 800px; 
}
.two-col section {
  padding: 2rem;
  border-radius: 8px;
}
#services { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
#about { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.two-col h2 { margin-bottom: 1rem; color: #2c8274; text-align: center; }
.two-col p { color: #555; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.card {
  background: #fff;
  padding: 0; 
  border-left: 4px solid #2c8274;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.cta {
  background: #2c8274;
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
  margin-top: 2rem; 
}
.cta a {
  display: inline-block;
  background: #fff;
  color: #2c8274;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
}

#kontakt {
  padding: 2rem 1rem;
  max-width: 800px; 
  margin: auto;
}
#kontakt h2 {
  text-align: center;
  color: #2c8274;
  margin-bottom:1rem;
}
#kontakt .grid {
  display: grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
}
#kontakt .card {
  padding: 1.5rem;
}
#kontakt .card:hover {
  transform: none; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#kontakt form {
  display:flex;
  flex-direction:column;
  gap:1rem;
}
#kontakt input,
#kontakt textarea {
  padding:0.75rem;
  border:1px solid #2c8274;
  border-radius:4px;
  font-size:1rem;
}
#kontakt button {
  background:#2c8274;
  color:#fff;
  padding:1rem;
  border:none;
  border-radius:4px;
  cursor:pointer;
}

footer {
  background: #222;
  color: #eee;
  text-align:center;
  padding:2rem 1rem;
  font-size:0.9rem;
}

.service-icon {
  max-width: 70px; 
  height: 70px; 
  object-fit: contain; 
  margin-bottom: 1rem; 
}
#services .card a.service-link {
    display: block;
    padding: 1.5rem 1rem; 
    text-decoration: none;
    height: 100%; 
    border-radius: 6px; 
    transition: background-color 0.2s ease;
}
#services .card a.service-link:hover {
    background-color: #f0f8f8; 
}
#services .card h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2c8274; 
  margin: 0;
}


/* === MOBILANPASSNING === */
@media (max-width: 768px) {
  .hero {
    padding-bottom: 4rem; 
  }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .two-col {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  #kontakt .grid {
    grid-template-columns: 1fr;
  }
  
  .nav-tabs {
    margin-top: -30px; 
    justify-content: flex-start; 
    margin-left: 0.5rem; 
    margin-right: 0.5rem;
    padding-bottom: 10px; 
  }
  
  .nav-tabs a {
    height: 60px; 
    line-height: 54px; 
    padding: 0 1rem; 
    border-radius: 30px;
    font-size: 0.9rem;
    margin: 0 0.2rem; 
  }
  
  .nav-tabs a.active {
    line-height: 54px; 
  }
  
  .service-content {
    padding-top: 0; 
    margin-top: -30px; 
  }
  
  .service-content-column {
    padding: 4rem 1rem 1.5rem 1rem; 
  }
  
  .service-content-column h2 {
    font-size: 1.6rem;
  }
  .service-content-column h3 {
    font-size: 1.3rem;
  }
}