/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { overflow-y: scroll; }

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  text-align: center;
  /* min-width: 100vw;  <-- ta bort denna */
  overflow-x: hidden;
}


/* ===== HEADER & BANNER ===== */
.site-header {
  width: 100%;
  position: relative;
  top: 0;
  left: 0;
  z-index: 20;
}

.banner {
  background-image: url('/images/bkg_banner_20250815.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
}

.banner-logo img {
  max-height: 80px;
  width: auto;
}

@media (max-width: 768px) {
  .banner {
    justify-content: center;
    padding-left: 0;
  }
  .banner-logo img { max-height: 70px; }
}

/* ===== NAVIGATION ===== */
.unique-nav {
  background-color: black;
  color: white;
  padding: 10px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

.unique-nav ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.unique-nav ul li { margin: 0 15px; }

.unique-nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 20px;
  padding: 10px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: #444;
    padding: 10px;
    text-align: center;
    color: white;
  }
  .unique-nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    background: #333;
    width: 100%;
    left: 0;
    top: 50px;
  }
  .unique-nav ul.show { display: flex; }
  .unique-nav ul li {
    padding: 12px 0;
    margin: 0;
    width: 100%;
    text-align: center;
  }
  .unique-nav ul li a { display: block; width: 100%; }
}

/* ===== FREELANCER KNAPP ===== */
.freelancer-nav .freelancer-nav-btn {
  padding: 0 10px;
  background: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  line-height: 2;
  display: inline-block;
  margin-left: 200px;
}

@media (max-width: 768px) {
  .freelancer-nav .freelancer-nav-btn {
    display: block;
    margin: 10px 0 0 0;
    text-align: center;
  }
}


/* ===== SERVICES SECTION ===== */
.services-wrapper {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
  padding: 0 15px;
}

/* Vänsterkolumn: stora boxar */
.services-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 3;
}

.services-main .service-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  flex-direction: column;
}

.services-main .service-box:hover { transform: translateY(-5px); }

.services-main .service-box img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.services-main .service-text {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.services-main .service-text h2 { margin-top: 0; }

/* Högerkolumn: små boxar */
.services-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.services-side .side-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  padding: 10px; /* NY: Skapar en ram runt bilden */
  display: flex;
  align-items: center; /* Centrerar vertikalt */
  justify-content: center; /* Centrerar horisontellt */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  flex: 1;
}

.services-side .side-box img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* NY: Behåller proportionerna och ser till att bilden inte klipps */
  display: block;
}

/* RESPONSIV */
@media (max-width: 768px) {
  .services-wrapper {
    flex-direction: column;
  }

  .services-main {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .services-main .service-box {
    width: 100%;
    flex-direction: column;
  }

  .services-main .service-box img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .services-side {
    width: 100%;
  }

  .services-side .side-box {
    padding: 10px;
    flex: auto;
  }
}

/* ===== PRICE TABLE ===== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.price-table th, .price-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #ddd;
}

.price-table th { background-color: #f5f5f5; }

/* ===== CONTENT BOXES ===== */
.content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.content-box {
  width: calc(33.333% - 20px);
  max-width: 300px;
  padding: 20px;
  background: white;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

@media (max-width: 900px) { .content-box { width: calc(50% - 20px); } }
@media (max-width: 600px) { .content-box { width: 100%; } }

.content-box img {
  width: 100%;
  max-width: 150px;
  height: auto;
}

/* ===== HERO ===== */
.hero {
  min-height: 300px;
  background-color: #d3d3d3;
  background-image: url('/images/bg5.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero2 {
  height: 300px;
  background-image: url('images/bkg3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== CAROUSEL ===== */
.carousel-section { width: 100%; overflow: hidden; }

.carousel {
  position: relative;
  width: 100%;
  height: 300px;             /* 400px - 100px */
 background-color: #1e1e1e; /* ändrad färg */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 0; /* minskar mellanrum över/under bild */
}

.carousel-item img {
  max-height: 100%;  
  max-width: 100%;   
  height: auto;      
  width: auto;       
  display: block;
  margin: auto;
}

/* Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.2); /* mer transparent */
  color: rgba(255,255,255,0.6); /* mer transparent */
  border: none;
  padding: 0.6rem 1rem;  /* lite mindre */
  cursor: pointer;
  font-size: 1.5rem; /* mindre storlek */
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s, color 0.3s;
}

.carousel-control:hover {
  background: rgba(0,0,0,0.4);
  color: #fff;
}

.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 25px; }

/* Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 30px;
}

.carousel-indicators .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-indicators .dot.active {
  background: rgba(0,0,0,0.8);
}

/* ===== MOBILE CAROUSEL ===== */
@media (max-width: 768px) {
  .carousel { height: 200px; } /* 300px - 100px */
  .carousel-item { padding: 5px 0; } /* behåller 5px top/bottom */
  .carousel-item img { max-height: 100%; max-width: 100%; height: auto; width: auto; }
  .carousel-control.prev { left: 0px; }  /* helt ute vid kanten */
  .carousel-control.next { right: 0px; } /* helt ute vid kanten */
  .carousel-control { font-size: 1.2rem; padding: 0.5rem 0.8rem; background: rgba(0,0,0,0.2); color: rgba(255,255,255,0.6); } /* mindre och transparent */
}

/* ===== FOOTER ===== */
footer {
  margin-bottom: 0;
  padding: 20px;
  background: #f7f7f7;
  font-size: 14px;
}

/* ===== LINK BUTTON ===== */
.link-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.link-button:hover { background: #005fa3; }