/* ───────────  SECTION  ─────────── */
.hepa-filter-hero {
  background: #82cade;
  padding: 64px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  font-family: 'Outfit', sans-serif;
  border-radius: 24px;
}

/* 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: #ffffff;
  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: rgba(255, 255, 255, 0.85);
  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: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: #132A39; /* primary surface */
  color: #ffffff;
  border: none;
  margin-bottom: 20px;
  text-decoration: none;
}

/* Button inner content with static and hover text */
.hf-cta .button-inner {
  position: relative;
  z-index: 2;
  pointer-events: none;
  display: block;
}

.hf-cta .button-inner-static,
.hf-cta .button-inner-hover {
  display: block;
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s linear;
}

.hf-cta .button-inner-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(70%);
}

/* Background + ripple layers container */
.hf-cta .button-bg {
  overflow: hidden;
  border-radius: inherit;
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  z-index: 1;
  background: #132A39; /* keep base fill consistent */
}

.hf-cta .button-bg-layers {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  top: -60%;
  aspect-ratio: 1/1;
  width: max(200%, 10rem);
}

.hf-cta .button-bg-layer {
  border-radius: 9999px;
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  transform: scale(0);
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s linear;
  opacity: 0.35;
}

.hf-cta .button-bg-layer-1 { 
  background-color: #82CADE;  /* var(--blue-300) */
}

.hf-cta .button-bg-layer-2 { 
  background-color: #48ABC8;  /* var(--blue-400) */
}

.hf-cta .button-bg-layer-3 { 
  background-color: #B5E1EC;  /* var(--blue-200) */
}

/* Hover effects */
.hf-cta:hover .button-inner-static {
  opacity: 0;
  transform: translateY(-70%);
}

.hf-cta:hover .button-inner-hover {
  opacity: 1;
  transform: translateY(0);
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1), opacity 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.hf-cta:hover .button-bg-layer-1 { 
  transform: scale(1); 
}

.hf-cta:hover .button-bg-layer-2 { 
  transform: scale(1); 
  transition-delay: 0.1s; 
}

.hf-cta:hover .button-bg-layer-3 { 
  transform: scale(1); 
  transition-delay: 0.2s; 
}

/* Focus-visible for accessibility */
.hf-cta:focus-visible {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 2px;
}

/* Caption */
.hf-caption {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
  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: #333333;
  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 #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
  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; }
}