/* ==========================================================================
   FRONTIER PUMPS — SECTION 05: CERTIFICATIONS & APPROVALS
   Dark Premium Industrial Glassmorphism Architecture
   Matching Mockup Reference: media_1794648738048_9ead634b.jpg
   ========================================================================== */

:root {
  --fp-cert-red: #E3262E;
  --fp-cert-red-hover: #C51B22;
  --fp-cert-bg: #111111;
  --fp-cert-bg-sec: #1B1B1B;
  --fp-cert-white: #FFFFFF;
  --fp-cert-muted: #B8B8B8;
  --fp-cert-glass: rgba(255, 255, 255, 0.08);
  --fp-cert-glass-border: rgba(255, 255, 255, 0.18);
  --fp-cert-glass-highlight: rgba(255, 255, 255, 0.35);
  --fp-cert-font-head: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --fp-cert-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fp-cert-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Section Wrapper */
.fp-cert-section {
  position: relative;
  width: 100%;
  min-height: 850px;
  background-color: var(--fp-cert-bg);
  background-image: url('assets/certifications/frontier_cert_pump_bg_hd.jpg?v=4.0');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  padding: 120px 0 110px 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Controlled Vignette & Atmospheric Radial Glow */
.fp-cert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(8, 15, 22, 0.45) 0%, rgba(8, 15, 22, 0) 52%);
  pointer-events: none;
  z-index: 1;
}

/* Subtle Red Ambient Edge Glow */
.fp-cert-red-ambient {
  display: none;
  position: absolute;
  top: 25%;
  left: 35%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(227, 38, 46, 0.12) 0%, rgba(227, 38, 46, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

/* Main Container (Boxed 1440px) */
.fp-cert-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* Two-Column Flex Composition */
.fp-cert-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 45px;
}

/* Left Column (55% Text Stack) */
.fp-cert-text-col {
  flex: 0 0 58%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Eyebrow with Red Indicator Bar */
.fp-cert-eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.fp-cert-eyebrow-bar {
  width: 28px;
  height: 4px;
  background-color: var(--fp-cert-red);
  border-radius: 2px;
}

.fp-cert-eyebrow-text {
  font-family: var(--fp-cert-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fp-cert-white);
}

/* Heading: Certified Performance. Trusted Protection. */
.fp-cert-heading {
  font-family: var(--fp-cert-font-head);
  font-size: clamp(38px, 4.3vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--fp-cert-white);
  margin: 0 0 20px 0;
}

.fp-cert-head-line {
  display: block;
  white-space: nowrap;
}

.fp-cert-head-red {
  color: var(--fp-cert-red);
  margin-top: 4px;
}

/* Supporting Text */
.fp-cert-description {
  font-family: var(--fp-cert-font-body);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--fp-cert-muted);
  margin: 0;
  max-width: 620px;
}

/* Right Visual Spacer (Machinery showcased through background) */
.fp-cert-visual-col {
  flex: 0 0 38%;
  min-height: 200px;
}

/* --------------------------------------------------------------------------
   03. LARGE HORIZONTAL FROSTED-GLASS CERTIFICATION PANEL
   -------------------------------------------------------------------------- */
.fp-cert-glass-panel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--fp-cert-glass-border);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 1px var(--fp-cert-glass-highlight);
  margin: 0 0 36px 0;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fp-cert-glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

/* Top Subtle Glossy Edge Reflection */
.fp-cert-glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 60%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Grid of 7 Equal-Width Logo Cells */
.fp-cert-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  width: 100%;
}

.fp-cert-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 116px;
  padding: 16px 20px;
  box-sizing: border-box;
  transition: transform 0.3s var(--fp-cert-ease);
}

.fp-cert-cell:hover {
  transform: translateY(-2px);
}

/* Subtle Vertical Divider between logo cells */
.fp-cert-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.fp-cert-cell img {
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.fp-cert-cell:hover img {
  filter: brightness(1.2) drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2));
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   04. STANDARDS STRIP
   -------------------------------------------------------------------------- */
.fp-cert-standards-row {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.fp-standard-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fp-standard-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fp-cert-red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(227, 38, 46, 0.45);
  flex-shrink: 0;
}

.fp-standard-check svg {
  width: 12px;
  height: 12px;
  stroke: #FFFFFF;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.fp-standard-label {
  font-family: var(--fp-cert-font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--fp-cert-white);
  letter-spacing: -0.01em;
}

.fp-standard-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.18);
}

/* --------------------------------------------------------------------------
   05. CALL TO ACTION BUTTONS
   -------------------------------------------------------------------------- */
.fp-cert-btn-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Primary Red Button */
.fp-btn-cert-red {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--fp-cert-red);
  color: var(--fp-cert-white);
  font-family: var(--fp-cert-font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 15px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(227, 38, 46, 0.4);
  transition: all 0.3s var(--fp-cert-ease);
}

.fp-btn-cert-red:hover {
  background: var(--fp-cert-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(227, 38, 46, 0.6);
}

.fp-btn-cert-red svg {
  transition: transform 0.3s ease;
}

.fp-btn-cert-red:hover svg {
  transform: translateX(4px);
}

/* Secondary Transparent Button */
.fp-btn-cert-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fp-cert-white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  font-family: var(--fp-cert-font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s var(--fp-cert-ease);
}

.fp-btn-cert-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.fp-btn-cert-secondary svg {
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   06. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .fp-cert-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .fp-cert-cell:nth-child(4)::after {
    display: none;
  }
}

@media (max-width: 991px) {
  .fp-cert-section {
    padding: 90px 0 80px 0;
    background-position: 70% center;
  }
  .fp-cert-hero-row {
    flex-direction: column;
    gap: 30px;
  }
  .fp-cert-text-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .fp-cert-visual-col {
    display: none;
  }
  .fp-cert-glass-panel {
    border-radius: 22px;
  }
}

@media (max-width: 768px) {
  .fp-cert-section {
    padding: 70px 0 60px 0;
  }
  .fp-cert-container {
    padding: 0 20px;
  }
  .fp-cert-head-line {
    white-space: normal;
  }
  .fp-cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fp-cert-cell:nth-child(even)::after {
    display: none;
  }
  .fp-cert-cell {
    height: 95px;
    padding: 12px 14px;
  }
  .fp-cert-standards-row {
    gap: 16px;
  }
  .fp-standard-divider {
    display: none;
  }
  .fp-cert-btn-cluster {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .fp-btn-cert-red,
  .fp-btn-cert-secondary {
    justify-content: center;
    width: 100%;
  }
}
