/* ==========================================
   SERVICES PAGE STYLES (Vad Vi Gör)
   Sidebar + Content Layout
   ========================================== */

/* --- MAIN LAYOUT --- */
.services-layout {
  display: flex;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 40px;
  gap: 40px;
  align-items: flex-start;
}

/* --- MAIN CONTENT AREA --- */
.services-content {
  flex: 1;
  min-width: 0;
}

/* --- PAGE HEADER --- */
.services-header {
  margin-bottom: 50px;
}

.services-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.services-header .intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
}

/* --- SERVICE ITEMS --- */
.service-item {
  display: flex;
  gap: 30px;
  margin-bottom: 60px;
  align-items: flex-start;
}

.service-item:last-child {
  margin-bottom: 0;
}

/* --- SERVICE IMAGE --- */
.service-image {
  flex: 0 0 280px;
  overflow: hidden;
  border-radius: 4px;
}

.service-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.service-image:hover img {
  transform: scale(1.05);
}

/* --- SERVICE TEXT --- */
.service-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-text h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 700;
}

.service-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  display: inline-block;
  text-decoration: none;
  color: #c7081b;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
  align-self: flex-start;
  margin-top: auto;
}

.service-link:hover {
  color: #a00616;
}

/* --- SIDEBAR HAMBURGER MENU (MOBILE) --- */
.sidebar-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: fixed;
  right: 18px;
  top: 120px;
  z-index: 1002;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  border-radius: 6px;
  background: #fff;
}

.sidebar-menu-toggle .hamburger-line {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #c7081b;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .sidebar-menu-toggle {
    display: flex;
  }
  .sidebar-mobile-navigation[hidden] {
    display: none;
  }
  .sidebar-mobile-navigation {
    display: block;
    position: fixed;
    right: 0;
    top: 70px;
    width: 80vw;
    max-width: 320px;
    background: #fff;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.13);
    border-radius: 8px 0 0 8px;
    z-index: 1001;
    padding: 30px 0 20px 0;
    animation: sidebarSlideIn 0.25s;
  }
  .sidebar-mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .sidebar-mobile-navigation li {
    border-bottom: 1px solid #f0f0f0;
  }
  .sidebar-mobile-navigation li:last-child {
    border-bottom: none;
  }
  .sidebar-mobile-navigation a {
    display: block;
    padding: 14px 0;
    color: #c7081b;
    font-weight: 600;
    font-size: 1.08rem;
    text-decoration: none;
    border-radius: 4px;
    transition:
      background 0.2s,
      color 0.2s,
      padding-left 0.2s;
  }
  .sidebar-mobile-navigation a:hover {
    background: #fff8f8;
    color: #a00616;
    padding-left: 10px;
  }
}

@keyframes sidebarSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* --- RESPONSIVE DESIGN --- */

/* Large Desktop */
@media screen and (max-width: 1400px) {
  .services-layout {
    max-width: calc(100% - 40px);
  }
}

/* Tablets */
@media screen and (max-width: 1024px) {
  .services-layout {
    padding: 0 20px;
    gap: 30px;
  }

  .sidebar {
    flex: 0 0 200px;
  }

  .services-header h1 {
    font-size: 2.2rem;
  }

  .services-header .intro-text {
    font-size: 1.1rem;
  }

  .service-image {
    flex: 0 0 240px;
  }

  .service-image img {
    height: 240px;
  }

  .service-text h2 {
    font-size: 1.7rem;
  }
}

/* Tablet Portrait */
@media screen and (max-width: 900px) {
  .services-layout {
    flex-direction: column;
    margin: 30px auto;
  }

  .sidebar {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    top: 0;
    margin-bottom: 30px;
  }

  .sidebar-nav ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
  }

  .sidebar-nav li {
    margin-bottom: 0;
  }

  .service-item {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
  }

  .service-image {
    flex: 0 0 auto;
    width: 100%;
  }

  .service-image img {
    height: 300px;
    width: 100%;
  }

  .service-link {
    align-self: center;
  }

  .service-text {
    text-align: center;
  }
}

/* Mobile */
@media screen and (max-width: 820px) {
  .services-layout {
    margin: 20px auto;
    padding: 0 15px;
  }

  .sidebar {
    margin-bottom: 25px;
  }

  .sidebar-nav ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .services-header {
    margin-bottom: 40px;
  }

  .services-header h1 {
    font-size: 2rem;
  }

  .services-header .intro-text {
    font-size: 1.05rem;
  }

  .service-item {
    margin-bottom: 40px;
  }

  .service-text h2 {
    font-size: 1.6rem;
  }

  .service-text p {
    font-size: 1rem;
  }

  .service-image img {
    height: 250px;
  }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
  .services-layout {
    padding: 0 10px;
    margin: 15px auto;
  }

  .sidebar {
    margin-bottom: 20px;
  }

  .services-header h1 {
    font-size: 1.8rem;
  }

  .services-header .intro-text {
    font-size: 1rem;
  }

  .service-item {
    margin-bottom: 35px;
  }

  .service-text h2 {
    font-size: 1.5rem;
  }

  .service-text p {
    font-size: 0.95rem;
  }

  .service-image img {
    height: 220px;
  }
}

/* Extra Small Mobile */
@media screen and (max-width: 360px) {
  .services-header h1 {
    font-size: 1.6rem;
  }

  .service-text h2 {
    font-size: 1.4rem;
  }

  .service-image img {
    height: 200px;
  }
}
