/* =========================================
   1. GRUNDSTILAR & HEADER
   ========================================= */
*, *::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 med Banner-bakgrund */
header { 
  background-color: #fff; 
  position: relative; 
  z-index: 1; 
  background-image: url('img/banner-ny.png'); 
  background-repeat: no-repeat;
  background-position: center bottom; 
  background-size: 100% 200px; 
  min-height: 200px; 
  padding: 1rem; 
}

/* Logotypens placering */
.header-logo {
  position: absolute;
  z-index: 2; 
  right: 8rem; 
  top: 50%;
  transform: translateY(-50%);
  max-height: 160px; 
  width: auto;
}

/* =========================================
   2. HERO SEKTION
   ========================================= */
.hero { 
  background-color: #2c8274; 
  color: #fff; 
  padding: 2rem 1rem 6rem 1rem; 
  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; }

/* Hero CTA-knapp */
.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);
}

/* =========================================
   3. FLIKAR (NAV TABS)
   ========================================= */
.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;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
  position: relative; 
  z-index: 10;
  margin-top: -60px; 
}
.nav-tabs::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.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; 
  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);
}

.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);
}

/* =========================================
   4. HUVUDINNEHÅLL & LAYOUT
   ========================================= */
.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; 
    margin: 0 auto;     
}

/* Rubriker & Text */
.service-content-column h2 { 
  color: #333; 
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2.4rem; 
  font-weight: 800; 
}

.intro-text {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
}

/* --- GRID-LAYOUT (Boxar) --- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 2rem;
  margin-bottom: 4rem;
}

.content-box {
  background: #fff;
  border: 1px solid #eee;
  border-top: 4px solid #2c8274; 
  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);
  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 --- */
.checklist-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr; 
  gap: 3rem;
  align-items: center;
  background-color: #f9fcfb; 
  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;
}

.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;
}
/* Gröna bockar */
.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);
}

/* --- PRIS-SEKTION (NY) --- */
.pris-section {
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  padding: 3rem 2rem;
}
.pris-content { text-align: center; }
.pris-content h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c8274;
  font-size: 1.8rem;
  font-weight: 700;
}
.pris-content > p {
  text-align: center;
  width: 100%;
  margin: 1rem 0;
  font-size: 1.1rem;
}
.pris-inner-grid {
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin: 2rem 0;
}
.pris-content ul {
  padding-left: 1rem;
  list-style: none; /* Bockar här också */
  margin: 0;
}
.pris-content li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  padding-left: 2.5rem;
  position: relative;
}
.pris-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);
}
.pris-image {
  margin-top: 2rem;
  width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.pris-content a {
  display: inline-block;
  margin: 2rem auto 0 auto;
  text-align: center;
}

/* =========================================
   5. KOMPONENTER & GAMLA STILAR
   ========================================= */
.service-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}
.service-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #2c8274;
}
.service-card a {
    display: block;
    padding: 2rem;
    text-decoration: none;
    color: #333;
    height: 100%;
}
.service-card img {
    max-width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}
.service-card h3 {
    color: #2c8274;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Index Om/Varför Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.about-box {
    background-color: #fff; 
    padding: 3rem 2rem;
    border-radius: 12px;
    border-left: 5px solid #2c8274;
    border: 1px solid #eee; 
    border-top: 5px solid #2c8274; 
    overflow: hidden;
}
.about-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.about-box h2 {
    color: #2c8274;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
.about-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
    text-align: left;
}

/* Footer & Kontakt */
.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 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; }

/* =========================================
   6. MOBILANPASSNING (ALLT SAMLAT HÄR)
   ========================================= */
@media (max-width: 768px) {
  /* Header & Hero */
  .header-logo {
    right: 50%;
    transform: translate(50%, -50%); 
    max-height: 100px;
  }
  .hero { padding-bottom: 4rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  
  /* Kontakt & Generell grid */
  #kontakt .grid { grid-template-columns: 1fr; }
  
  /* Flikar */
  .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; }
  
  /* Innehåll & Boxar */
  .service-content { 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; }

  /* Stapla allt på höjden i mobil */
  .content-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .checklist-section { grid-template-columns: 1fr; padding: 1.5rem; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-box { padding: 2rem 1.5rem; }

  /* Pris-sektionen på mobil */
  .pris-inner-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pris-image { margin-top: 1.5rem; max-height: 300px; width: 100%; object-fit: cover; }
}