
/* FULL WIDTH BLUE BACKGROUND */

.melors-factory-flow {
  width:100vw;
  position:relative;
  left:50%;
  margin-left:-50vw;
  padding:55px 24px 65px;
  background:#EAF3F8;
  font-family:Arial,Helvetica,sans-serif;
  color:#20394b;
  box-sizing:border-box;
  overflow:hidden;
}

.melors-factory-flow * {
  box-sizing:border-box;
}

.mff-container {
  width:100%;
  max-width:1280px;
  margin:0 auto;
}

/* HEADER */

.mff-header {
  max-width:850px;
  margin:0 auto 36px;
  text-align:center;
}

.mff-header h2 {
  margin:0 0 14px;
  color:#12354e;
  font-size:36px;
  line-height:1.3;
  font-weight:700;
}

.mff-header p {
  max-width:760px;
  margin:0 auto;
  color:#60798b;
  font-size:14px;
  line-height:1.8;
}

/* GRID */

.mff-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px 18px;
  align-items:stretch;
}

/* CARD */

.mff-card {
  min-width:0;
  overflow:hidden;
  background:#fff;
  border:1px solid #dce8ef;
  border-radius:7px;
  transition:transform .25s ease,box-shadow .25s ease;
}

.mff-card:hover {
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(22,62,87,.09);
}

/* IMAGE */

.mff-photo {
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#e8eff3;
}

.mff-photo img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}

.mff-card:hover .mff-photo img {
  transform:scale(1.035);
}

.mff-number {
  position:absolute;
  top:13px;
  left:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:39px;
  height:39px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:50%;
  background:#0b5275;
  color:#fff;
  font-size:13px;
  font-weight:700;
}

/* CONTENT */

.mff-info {
  padding:19px 17px 22px;
}

.mff-category {
  display:inline-block;
  margin-bottom:9px;
  color:#1685ad;
  font-size:9px;
  line-height:1.4;
  font-weight:700;
  letter-spacing:1.1px;
}

.mff-info h3 {
  margin:0 0 10px;
  color:#183a51;
  font-size:17px;
  line-height:1.4;
  font-weight:700;
}

.mff-info p {
  margin:0;
  color:#71808b;
  font-size:12px;
  line-height:1.8;
}

/* TABLET */

@media(max-width:1050px) {
  .mff-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .mff-header h2 {
    font-size:32px;
  }
}

/* MOBILE */

@media(max-width:680px) {
  .melors-factory-flow {
    padding:38px 15px 45px;
  }

  .mff-header {
    margin-bottom:25px;
  }

  .mff-header h2 {
    font-size:26px;
    line-height:1.35;
  }

  .mff-header p {
    font-size:13px;
    line-height:1.8;
  }

  .mff-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px 11px;
  }

  .mff-number {
    top:9px;
    left:9px;
    width:32px;
    height:32px;
    font-size:11px;
  }

  .mff-info {
    padding:13px 11px 15px;
  }

  .mff-category {
    font-size:8px;
    letter-spacing:.5px;
    margin-bottom:7px;
  }

  .mff-info h3 {
    font-size:14px;
    line-height:1.4;
    margin-bottom:7px;
  }

  .mff-info p {
    font-size:11px;
    line-height:1.65;
  }
}

/* SMALL MOBILE */

@media(max-width:360px) {
  .mff-grid {
    grid-template-columns:1fr;
  }
}

/* REDUCED MOTION */

@media(prefers-reduced-motion:reduce) {
  .mff-card,
  .mff-photo img {
    transition:none;
  }
}
