/* =========================
   FRONT PAGE LAYOUT
========================= */

/* ===== HERO ===== */

.front-hero-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.front-hero {
  width: 100%;
  height: 60vh;
  min-height: 380px;
  max-height: 600px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  position: relative;
}

.front-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
}

.front-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 20px;
  pointer-events: none;
}

.front-hero__content h1 {
  font-size: 2.4rem;
  margin-bottom: .5rem;
}

.front-hero__content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* ===== INTRO ===== */

.front-intro {
  margin: 60px auto;
  max-width: 800px;
  text-align: center;
}

.front-intro__content p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===== GENERELLA SEKTIONER ===== */

.front-section {
  margin-block: 60px;
}

.front-section .section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

/* ===== USP ===== */

.front-usps {
  margin: 80px auto;
  max-width: 1000px;
  text-align: center;
}

.front-usps .section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.front-usps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .front-usps__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =====================================================
   PROMO BLOCK #2  CONTAINER 1440px, RIKTIG HÖJD
===================================================== */

.front-promo2 {
  margin-block: 80px;
}

/* Promo-kort */
.front-category--promo {
  position: relative;
  display: block;
  width: 100%;

  /* ðŸ‘‡ ger riktig kampanj-pondus */
  aspect-ratio: 16 / 6;
  min-height: 460px;
  max-height: 620px;

  border-radius: 16px;
  overflow: hidden;
  background: #000;
  color: #fff;
  text-decoration: none;
}

/* Bild */
.front-category--promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transition: transform .45s ease;
}

/* Overlay */
.front-category--promo .front-category__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.55),
    rgba(0,0,0,.2)
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
}

/* Text */
.front-category--promo .front-category__content {
  max-width: 560px;
  text-align: center;
}

.front-category--promo h3 {
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  line-height: 1.2;
  margin: 0;
}

.front-category--promo p {
  font-size: 1.15rem;
  margin-top: 8px;
  opacity: 0.95;
}

/* Hover */
.front-category--promo:hover img {
  transform: scale(1.05);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .front-category--promo {
    aspect-ratio: 16 / 9;
    min-height: 300px;
    max-height: none;
  }

  .front-category--promo h3 {
    font-size: 1.5rem;
  }

  .front-category--promo p {
    font-size: 1rem;
  }
}

/* ===== KATEGORIER ===== */

.front-categories {
  margin-block: 60px;
}

.front-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.front-category {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  min-height: 240px;
}

.front-category img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.front-category__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.2));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

.front-category__overlay h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.front-category:hover img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .front-categories__grid {
    grid-template-columns: 1fr;
  }
}

.front-hero-link,
.front-hero-link * {
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* ===========================================================
   FRONTPAGE – SAFE PATCH (overlay text + buttons + USP cards)
   - Skriver INTE över dina gradients
   - Gör hero-knapp klickbar (pointer-events fix)
   =========================================================== */

/* 1) Säkerställ vit text i overlays + hero */
.front-category h3,
.front-category__overlay h3,
.front-category--promo h3,
.front-hero__content h1,
.front-hero__content p {
  color: #ffffff;
}

/* 2) Hero CTA-knapp (klickbar trots pointer-events:none på content) */
.front-hero__content .btn {
  pointer-events: auto;
  background: #b1122a;
  color: #fff;
  padding: .8rem 1.4rem;
  border-radius: 6px;
  display: inline-block;
  transition: background .25s ease, transform .15s ease;
  text-decoration: none;
}

.front-hero__content .btn:hover {
  background: #e11d48;
  transform: translateY(-1px);
}

/* 3) USP-kort (om dina USP-items har klassen .usp) */
.front-usps .usp {
  background: #f7f7f7;
  padding: 30px 20px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease;
}

.front-usps .usp:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
}

.front-usps .usp span {
  font-size: 2rem;
  margin-bottom: .6rem;
  display: inline-block;
}

/* 4) Promo CTA-knapp – matcha din promo-struktur (front-category--promo) */
.front-category--promo .btn {
  background: #fff;
  color: #111;
  padding: .8rem 1.4rem;
  border-radius: 6px;
  display: inline-block;
  text-decoration: none;
}

.front-category--promo .btn:hover {
  background: #f2f2f2;
}