/* Global fix för att undvika overflow på sidan */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
  overflow: hidden;
  margin-bottom: 2rem;
  margin-top: 0; /* Remove gap between header and hero */
  padding-top: 100px; /* Account for fixed header height */
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Center full-width within container */
  background: url('../img/volvo-hero.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 6rem;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem 2rem;
  margin-top: -12rem; /* Move text down to give more space from header */
  background: rgba(0, 51, 102, 0.15); /* Subtle dark overlay behind text */
  backdrop-filter: blur(2px); /* Modern glass effect */
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
  line-height: 1.1;
  color: white;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.95;
}

.hero-section .cta-button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #003366, #0055aa);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-section .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.4);
  background: linear-gradient(135deg, #0055aa, #0077cc);
}

/* Featured Products */
.featured-products {
  padding: 3rem 1rem;
  background-color: #f8f8f8;
  text-align: center;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.product-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 300px;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 8px 16px rgba(0, 51, 102, 0.25);
  transform: translateY(-6px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}
.product-card h3 {
  margin: 0.5rem 0;
}

.add-to-cart-btn {
  background-color: #003366;
  color: white;
  border: none;
  padding: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

/* About Section */
.about-section {
  padding: 2rem 1rem;
  text-align: center;
}

.about-section ul {
  list-style: none;
  padding: 0;
}

.about-section li {
  margin: 0.5rem 0;
}

/* Mobilanpassning */
@media (max-width: 768px) {
  .hero-section {
    height: 50vh;
    padding-top: 2rem; /* Much smaller since header is now static */
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
  }

  .hero-content {
    margin-top: 0; /* Reset positioning on mobile - let section padding handle it */
    padding: 1.5rem 1rem;
    background: rgba(0, 51, 102, 0.25); /* Slightly stronger background on mobile */
    backdrop-filter: blur(3px);
    border-radius: 12px;
    max-width: 90%;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    color: white;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }

  .hero-section .cta-button {
    font-size: 0.9rem;
    padding: 0.7rem 1.4rem;
    letter-spacing: 0.5px;
  }

  .product-grid {
    gap: 0.8rem;
  }
  
  .product-card {
    width: calc(50% - 0.4rem);
    max-width: none;
    height: auto;
    min-height: 200px;
    padding: 0.6rem;
  }
  
  .product-card img {
    height: 80px;
    margin-bottom: 0.3rem;
  }
  
  .product-card h3 {
    font-size: 0.8rem;
    margin: 0.2rem 0;
    line-height: 1.1;
  }
  
  .product-card p {
    font-size: 0.75rem;
    margin: 0.2rem 0;
  }
  
  .add-to-cart-btn {
    font-size: 0.7rem;
    padding: 0.4rem 0.2rem;
    margin-top: 0.3rem;
  }
}
