/* V31: clean, high-resolution factory concept background selected by the client.
   Live HTML text and the FSSC badge are kept separate to preserve the 2.5s pause+slide.
   Full-width image uses cover (crop only, never distort or stretch). This image is a
   visual concept and must be approved/replaced by client-supplied photography for launch. */
/* FLEXO LINE V28 — restrained smoked industrial Liquid Glass certification.
   The factory backdrop is a crop of the user's original image, not regenerated,
   stretched, extrapolated, or replaced by the concept-mockup screenshot.
   Existing V21/V20 4.5s keyframe is untouched: 2.5 seconds stationary; 1s
   exit right; 1s re-enter left. Entire badge moves; text remains live HTML. */
.fl20-cert-section {
  isolation:isolate;
  overflow:hidden;
  min-height:clamp(270px,21.5vw,346px);
  padding:clamp(38px,3.5vw,58px) clamp(22px,4vw,68px);
  border-color:rgba(227,236,246,.10);
  background:#080a0f;
}
.fl20-cert-section::before {
  content:"";
  position:absolute; inset:0; z-index:-2; pointer-events:none;
  background-image:
    linear-gradient(90deg,
      rgba(5,7,12,.94) 0%,
      rgba(5,7,12,.88) 20%,
      rgba(5,7,12,.74) 32%,
      rgba(5,7,12,.38) 46%,
      rgba(5,7,12,.10) 66%,
      rgba(5,7,12,.13) 100%),
    linear-gradient(180deg,rgba(3,5,9,.04),rgba(3,5,9,.16)),
    url('../images/flexoline-certification-clean-factory-v31.png');
  background-position:center center,center center,center 50%;
  background-size:cover,cover,cover;
  background-repeat:no-repeat;
  transform:none; /* never distort source machine/photo geometry */
}
.fl20-cert-section::after {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(ellipse 40% 100% at -10% 60%,rgba(113,9,37,.19),transparent 80%),
    radial-gradient(ellipse 25% 83% at 105% 90%,rgba(124,5,37,.19),transparent 80%);
}
.fl20-cert-inner {
  width:min(100%,1430px);
  min-height:clamp(185px,15.5vw,236px);
  grid-template-columns:minmax(0, .93fr) minmax(0, 1.07fr);
  gap:clamp(22px,3vw,50px);
  align-items:center;
}
.fl20-cert-copy {position:relative;z-index:2;min-width:0;}
.fl20-cert-eyebrow {
  color:#e4e8ee!important;
  font-size:clamp(10px,.8vw,12px)!important;
  letter-spacing:.16em!important;
}
.fl20-cert-eyebrow::before {background:#f02d53;}
.fl20-cert-copy h2 {
  font-size:clamp(30px,3.2vw,54px)!important;
  letter-spacing:-.042em!important;
  line-height:1.12!important;
  text-wrap:normal;
  max-width:650px;
  margin-bottom:15px!important;
  text-shadow:0 2px 18px rgba(0,0,0,.18);
}
.fl20-cert-copy h2 em {color:#e93355!important;}
.fl20-cert-summary {color:#e0e2e6!important;font-size:clamp(15px,1.1vw,18px)!important;}
.fl20-cert-track {
  height:clamp(155px,14.5vw,207px);
  overflow:hidden;
  z-index:1;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 7%,#000 93%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0%,#000 7%,#000 93%,transparent 100%);
}
.fl20-cert-track::before,.fl20-cert-track::after {
  height:1px;
  background:linear-gradient(90deg,transparent 0%,rgba(248,66,104,.32) 26%,rgba(255,255,255,.07) 65%,transparent 100%);
}
.fl20-cert-track::before{top:10px;}
.fl20-cert-track::after{bottom:10px;}
.fl20-cert-tile {
  width:min(90%,555px);
  min-height:clamp(128px,11vw,166px);
  padding:clamp(18px,2.1vw,31px) clamp(20px,2.5vw,35px);
  gap:clamp(12px,1.5vw,24px);
  color:#f8faff;
  border:1px solid rgba(246,248,253,.62);
  border-radius:clamp(23px,2.25vw,34px);
  background:
    linear-gradient(155deg,rgba(255,255,255,.23) 0%,rgba(255,255,255,.07) 13%,rgba(11,15,21,.63) 41%,rgba(11,15,21,.79) 79%,rgba(115,27,48,.23) 100%);
  -webkit-backdrop-filter:blur(9px) saturate(125%);
  backdrop-filter:blur(9px) saturate(125%);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.34),
    inset 0 -1px 2px rgba(253,151,167,.28),
    0 20px 35px rgba(0,0,0,.36),
    0 8px 32px rgba(235,30,72,.15);
}
.fl20-cert-tile::before{
  content:"";position:absolute;inset:1px 2px auto 2px;height:31%;
  border-radius:inherit;pointer-events:none;
  background:linear-gradient(177deg,rgba(255,255,255,.18),rgba(255,255,255,0));
}
.fl20-cert-tile::after {
  content:"";position:absolute;bottom:0;left:8%;right:8%;height:2px;
  background:linear-gradient(90deg,transparent,rgba(238,40,78,.45) 17%,rgba(255,98,126,.98) 50%,rgba(238,40,78,.45) 83%,transparent);
  box-shadow:0 0 16px 2px rgba(244,36,82,.45);
}
.fl28-cert-icon {display:flex;align-items:center;justify-content:center;flex:none;color:rgba(255,255,255,.95);filter:drop-shadow(0 2px 5px rgba(0,0,0,.25));}
.fl28-cert-icon svg{width:clamp(35px,3.4vw,54px);height:auto;max-height:65px;}
.fl28-cert-divider{height:clamp(46px,4.2vw,66px);width:1px;flex:none;background:linear-gradient(180deg,transparent,rgba(255,255,255,.82) 25%,rgba(255,255,255,.65) 75%,transparent);}
.fl20-cert-label {
  position:relative;
  white-space:nowrap;
  font-size:clamp(26px,3.25vw,54px);
  letter-spacing:-.048em;
  text-shadow:0 2px 10px rgba(0,0,0,.22);
}
.fl20-cert-label strong{color:#ee3156;}
/* Keep the prior CSS animation intact: style changes only, not timing. */
@media (max-width:920px){
 .fl20-cert-inner{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);gap:14px;}
 .fl20-cert-tile{width:min(94%,530px);gap:13px;padding:18px;}
 .fl20-cert-copy h2{font-size:clamp(29px,4.3vw,42px)!important;}
 .fl20-cert-label{font-size:clamp(25px,3.7vw,38px);}
}
@media (max-width:700px){
 .fl20-cert-section{padding:32px 20px 30px;min-height:0;}
 .fl20-cert-section::before{
   background-position:center center,center center,63% center;
   background-image:
     linear-gradient(180deg,rgba(5,7,12,.84) 0%,rgba(6,8,13,.71) 48%,rgba(6,8,13,.35) 100%),
     linear-gradient(90deg,rgba(6,8,13,.4),transparent),
     url('../images/flexoline-certification-clean-factory-v31.png');
 }
 .fl20-cert-inner{grid-template-columns:1fr;gap:10px;min-height:0;}
 .fl20-cert-copy h2{font-size:clamp(30px,6.5vw,41px)!important;max-width:530px;}
 .fl20-cert-track{height:145px;}
 .fl20-cert-tile{width:min(94%,485px);min-height:114px;gap:15px;padding:17px 19px;}
 .fl20-cert-label{font-size:clamp(27px,5vw,40px);}
}
@media (max-width:420px){
 .fl20-cert-section{padding:28px 16px 25px;}
 .fl20-cert-copy h2{font-size:clamp(28px,7.2vw,34px)!important;}
 .fl20-cert-track{height:125px;}
 .fl20-cert-tile{width:min(96%,360px);min-height:99px;gap:11px;padding:13px; border-radius:24px;}
 .fl28-cert-icon svg{width:34px;}
 .fl28-cert-divider{height:43px;}
 .fl20-cert-label{font-size:clamp(25px,7.1vw,31px);}
}
@media (prefers-reduced-transparency:reduce){
 .fl20-cert-tile{background:rgba(14,17,24,.95);}
}
