/* ───────────  SECTION  ─────────── */
.hepa-filter-hero {
  background: #F0FDF4;
  /* Mint Fresh - Health & Nature */
  padding: 64px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  font-family: 'Outfit', sans-serif;
  border-radius: 24px;
  transition: background-color 0.3s ease;
}

/* Inner container with top/bottom margins */
.hf-inner-container {
  margin-top: 0;
  margin-bottom: 0;
}

/* Headings */
.hf-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 40px;
  /* Desktop: 40px */
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--palette-black);
  padding: 0 40px;
  letter-spacing: -0.02em;
}

.hf-sub {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 16px;
  /* Desktop: 16px */
  max-width: 540px;
  margin: 0 auto 20px;
  color: var(--palette-gray-2);
  line-height: 1.4;
  padding: 0 40px;
}

/* ---------- CTA Button (Updated to match primary button style) ---------- */
.hf-cta {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 3rem;
  /* consistent height */
  padding: 0 2rem;
  border-radius: 9999px;
  /* pill shape */
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  position: relative;
  overflow: hidden;
  background: #3B82F6 !important;
  /* Tier 1 Primary Blue */
  color: #FFFFFF !important;
  border: none;
  margin-bottom: 20px;
  text-decoration: none;
}

.hf-cta:hover {
  background: #2563EB !important;
  opacity: 0.95;
}

.hf-cta:active {
  background: #1D4ED8 !important;
  opacity: 1;
}

/* Focus-visible for accessibility */
.hf-cta:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

/* Caption */
.hf-caption {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--palette-gray-3);
  margin-top: 32px;
}

/* Card grid - Two cards layout */
.hf-card-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.hf-card-container {
  width: 100%;
  max-width: 500px;
  position: relative;
}

/* Card base style */
.hf-card {
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  padding-bottom: 85%;
  height: 0;
}

/* Placeholder styling */
.hf-card .placeholder-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--palette-gray-2);
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  z-index: 2;
  width: 80%;
  padding: 20px;
  border: 2px dashed var(--palette-gray-6);
  border-radius: 8px;
  background: var(--palette-white);
  opacity: 0.9;
}

/* Image styling */
.hf-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Remove hover effects from cards */
.hf-card {
  transition: none;
}

.hf-card:hover {
  transform: none;
}

/* Tablet responsiveness */
@media (max-width: 1024px) {
  .hepa-filter-hero {
    padding: 56px 0 64px;
  }

  .hf-card-grid {
    gap: 18px;
    padding: 0 32px;
  }

  .hf-title,
  .hf-sub {
    padding: 0 32px;
  }
}

/* Mobile responsiveness - Tablet to Mobile transition */
@media (max-width: 768px) {
  .hepa-filter-hero {
    padding: 48px 0 56px;
    border-radius: 24px;
    /* Maintain 24px radius */
  }

  .hf-title {
    font-size: 36px;
    /* Transition size */
    padding: 0 24px;
  }

  .hf-sub {
    font-size: 15px;
    /* Transition size */
    padding: 0 24px;
  }

  .hf-card-grid {
    gap: 16px;
    padding: 0 24px;
    flex-direction: column;
    align-items: center;
  }

  .hf-card-container {
    max-width: 100%;
    margin-bottom: 0;
  }

  .hf-card {
    padding-bottom: 90%;
  }

  /* CTA size tuning for mobile transition */
  .hf-cta {
    height: 2.75rem;
    padding: 0 1.5rem;
    font-size: 1.05rem;
  }
}

/* Mobile responsiveness - Primary mobile breakpoint */
@media (max-width: 767px) {
  .hepa-filter-hero {
    padding: 40px 0 36px;
    /* Bottom padding: 36px */
    border-radius: 24px;
    /* Maintain 24px radius */
  }

  .hf-title {
    font-size: 32px;
    /* Mobile: 32px as specified */
    line-height: 1.1;
    margin: 0 0 16px;
    padding: 0 20px;
  }

  .hf-sub {
    font-size: 14px;
    /* Mobile: 14px as specified */
    line-height: 1.5;
    margin: 0 auto 32px;
    padding: 0 20px;
  }

  .hf-card-grid {
    gap: 8px;
    /* Spacing between images: 8px */
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
  }

  .hf-card-container {
    max-width: 100%;
    margin-bottom: 0;
  }

  .hf-card {
    padding-bottom: 0;
    /* Remove percentage-based height */
    height: 400px;
    /* Fixed height: 400px */
    width: 100%;
  }

  .hf-card .placeholder-content {
    font-size: 1.2rem;
    padding: 15px;
  }

  /* CTA for this breakpoint */
  .hf-cta {
    height: 2.75rem;
    padding: 0 1.4rem;
    font-size: 1.05rem;
  }

  .hf-caption {
    font-size: 1.2rem;
    margin-bottom: 40px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .hepa-filter-hero {
    padding: 32px 0 36px;
    /* Bottom padding: 36px */
    border-radius: 24px;
    /* Maintain 24px radius */
  }

  .hf-title {
    font-size: 32px;
    /* Keep 32px even on smallest screens */
    padding: 0 16px;
    margin: 0 0 12px;
  }

  .hf-sub {
    font-size: 14px;
    /* Keep 14px even on smallest screens */
    padding: 0 16px;
    margin: 0 auto 28px;
  }

  .hf-card-grid {
    gap: 8px;
    padding: 0 16px;
  }

  .hf-card {
    height: 400px;
    padding-bottom: 0;
  }

  /* Slightly more compact CTA on very small screens */
  .hf-cta {
    height: 2.5rem;
    padding: 0 1.25rem;
    font-size: 1rem;
  }

  .hf-caption {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {

  .hf-title,
  .hf-sub {
    padding: 0 12px;
  }

  .hf-card-grid {
    padding: 0 12px;
  }
}