/* ==========================================================================
   MISTY FROZEN FOODS – QUALITY & FOOD SAFETY PAGE STYLES (quality.css)
   Matches the core Misty Frozen Foods visual identity, navy/blue color system,
   5-stage horizontal process cards, dark navy hygiene section, and certifications.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. QUALITY HERO SECTION
   -------------------------------------------------------------------------- */
.quality-hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 88px 0 84px;
  overflow: hidden;
  background-color: var(--navy-950);
  color: var(--white);
}

.quality-hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.quality-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.quality-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    94deg,
    rgba(2, 18, 36, 0.94) 0%,
    rgba(6, 33, 59, 0.87) 46%,
    rgba(6, 33, 59, 0.56) 76%,
    rgba(6, 33, 59, 0.34) 100%
  );
}

.quality-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.quality-hero-content {
  max-width: 700px;
}

.quality-hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #84C9FF;
  background: rgba(8, 102, 213, 0.24);
  border: 1px solid rgba(79, 179, 255, 0.36);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.quality-hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.1vw, 3.45rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 18px;
}

.quality-hero-desc {
  font-size: 1.05rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 650px;
}

.quality-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   2. OUR QUALITY PHILOSOPHY (SPLIT LAYOUT)
   -------------------------------------------------------------------------- */
.quality-philosophy-section {
  padding: 86px 0 88px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.quality-philosophy-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 54px;
  align-items: center;
}

.philosophy-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(6, 33, 59, 0.14);
  border: 1px solid rgba(8, 102, 213, 0.14);
  background-color: var(--white);
}

.philosophy-main-img {
  width: 100%;
  height: 490px;
  object-fit: contain;
  display: block;
  transition: transform 0.6s ease;
}

.philosophy-image-frame:hover .philosophy-main-img {
  transform: scale(1.03);
}

.philosophy-image-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(6, 33, 59, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(79, 179, 255, 0.28);
}

.philosophy-image-caption i {
  color: #4FB3FF;
  font-size: 1rem;
  flex-shrink: 0;
}

.philosophy-heading {
  margin-bottom: 18px;
}

.philosophy-paragraphs p {
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--text-body);
  margin-bottom: 14px;
}

.philosophy-paragraphs p:first-child {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--navy-900);
}

.philosophy-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.philosophy-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
  background-color: #F4F9FD;
  border: 1px solid #DCEBFA;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.philosophy-highlight-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(8, 102, 213, 0.34);
  background-color: var(--white);
}

.philosophy-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid #CBE2FA;
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.philosophy-highlight-icon svg {
  width: 24px;
  height: 24px;
}

.philosophy-highlight-text h3 {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 3px;
}

.philosophy-highlight-text p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   3. OUR QUALITY PROCESS (5 HORIZONTAL STAGES)
   -------------------------------------------------------------------------- */
.quality-process-section {
  padding: 84px 0 90px;
  background: linear-gradient(180deg, #F4F9FD 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-light);
}

.quality-five-stages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 42px;
}

.quality-stage-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #DCEBFA;
  box-shadow: 0 8px 24px rgba(6, 33, 59, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
}

.quality-stage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(8, 102, 213, 0.38);
}

.quality-stage-img-wrap {
  position: relative;
  height: 175px;
  overflow: hidden;
  background-color: var(--navy-900);
}

.quality-stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.quality-stage-card:hover .quality-stage-img {
  transform: scale(1.06);
}

.quality-stage-number {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #0866D5 0%, #054DA8 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(6, 33, 59, 0.32);
}

.quality-stage-body {
  padding: 20px 18px 22px;
  background-color: var(--white);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quality-stage-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.quality-stage-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   4. HYGIENIC PROCESSING (DARK NAVY SECTION WITH 4 WHITE FEATURE CARDS)
   -------------------------------------------------------------------------- */
.hygienic-priority-section {
  position: relative;
  padding: 88px 0 92px;
  overflow: hidden;
  background-color: var(--navy-950);
}

.hygiene-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hygiene-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
}

.hygiene-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 18, 36, 0.94) 0%,
    rgba(6, 33, 59, 0.9) 55%,
    rgba(5, 42, 82, 0.92) 100%
  );
}

.hygiene-priority-container {
  position: relative;
  z-index: 2;
}

.hygiene-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 46px;
}

.hygiene-main-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.16;
  color: var(--white);
  margin-bottom: 14px;
}

.hygiene-main-desc {
  font-size: 1.02rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.86);
}

.hygiene-four-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.hygiene-white-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: 0 16px 38px rgba(0, 12, 26, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hygiene-white-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(0, 12, 26, 0.38);
}

.hygiene-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background-color: #EEF6FE;
  border: 1.5px solid #CFE4FB;
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.hygiene-card-icon svg {
  width: 28px;
  height: 28px;
}

.hygiene-card-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.hygiene-card-desc {
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   5. OUR PRODUCT QUALITY SECTION (8 VISUAL PRODUCT CARDS)
   -------------------------------------------------------------------------- */
.quality-products-section {
  padding: 84px 0 88px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.quality-product-note {
  font-size: 0.78rem;
  color: #46617A;
  margin-bottom: 4px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE BREAKPOINTS FOR QUALITY PAGE
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .quality-five-stages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .quality-hero-section {
    min-height: 430px;
    padding: 68px 0 68px;
  }

  .quality-philosophy-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .philosophy-main-img {
    height: 390px;
  }

  .quality-five-stages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hygiene-four-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .quality-hero-section {
    min-height: 380px;
    padding: 52px 0 56px;
  }

  .quality-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quality-hero-actions .btn,
  .quality-hero-actions .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .quality-philosophy-section,
  .quality-process-section,
  .hygienic-priority-section,
  .quality-products-section {
    padding: 58px 0;
  }

  .philosophy-main-img {
    height: 300px;
  }

  .philosophy-highlights-grid {
    grid-template-columns: 1fr;
  }

  .quality-five-stages-grid {
    grid-template-columns: 1fr;
  }

  .quality-stage-img-wrap {
    height: 200px;
  }

  .hygiene-four-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 359px) {
  .quality-hero-heading {
    font-size: 1.85rem;
  }

  .philosophy-image-caption {
    font-size: 0.76rem;
    padding: 10px 12px;
  }
}
