/* ==========================================================================
   Brands section + trust bar
   ========================================================================== */

.brands-section {
  --brands-yellow: #fab72a;
  --brands-navy: #00274e;
  /* Figma: yellow band 1920x674; grid 1100x260 at top 294 / left 410 (centered);
     cells 260x120. 78 (pad) + 144 (title) + 72 (margin) = 294 grid top */
  --brands-h: 674px;
  --brands-grid-w: 1100px;
  --brands-cell-w: 260px;
  --brands-cell-h: 120px;
  background: var(--brands-yellow);
  min-height: var(--brands-h);
  padding: 78px 0 0;
}

.brands-section__title {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 72px;
  text-align: center;
  font-family: 'Gilroy-ExtraBoldItalic', var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 54px;
  line-height: 72px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--brands-navy);
}

.brands-section__title-line {
  display: block;
}

.brands-section__grid {
  display: grid;
  grid-template-columns: repeat(4, var(--brands-cell-w));
  gap: 20px;
  width: var(--brands-grid-w);
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
  opacity: 1;
}

.brands-section__cell {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: var(--brands-cell-w);
  height: var(--brands-cell-h);
  padding: 10px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .35);
}

/* ------------------------------ Brand logos ------------------------------ */

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  white-space: nowrap;
}

.brand-logo sup {
  font-size: .5rem;
  align-self: flex-start;
}

.brand-logo--rinnai {
  color: #e2231a;
  font-size: 1.55rem;
  letter-spacing: -.5px;
}

.brand-logo--bosch {
  color: #ea0016;
  letter-spacing: 1px;
}

.brand-logo--bosch svg {
  width: 26px;
  height: 26px;
}

.brand-logo--rheem i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 56px;
  border-radius: 50%;
  background: #e2231a;
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-logo--aquamax {
  position: relative;
  font-style: italic;
  letter-spacing: -.5px;
}

.brand-logo--aquamax .brand-logo__aqua { color: #00a7e1; }
.brand-logo--aquamax .brand-logo__max { color: #e2231a; }

.brand-logo--aquamax small {
  position: absolute;
  right: 8px;
  bottom: -11px;
  font-size: .52rem;
  font-weight: 700;
  font-style: normal;
  color: #00a7e1;
  letter-spacing: .4px;
}

.brand-logo--dux i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 48px;
  border-radius: 50%;
  background: #d6001c;
  border: 3px solid #9e9e9e;
  color: #fff;
  font-style: italic;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -1px;
}

.brand-logo--vulcan {
  color: #1e7d34;
  letter-spacing: .5px;
}

.brand-logo--vulcan svg {
  width: 22px;
  height: 22px;
}

.brand-logo--solahart {
  color: #005baa;
  font-size: 1.45rem;
  letter-spacing: -.5px;
}

.brand-logo--solahart svg {
  width: 22px;
  height: 22px;
}

.brand-logo--stiebel {
  color: #111;
  font-size: 1.05rem;
  letter-spacing: .3px;
  border-bottom: 3px solid #e2231a;
  padding-bottom: 4px;
}

/* -------------------------------- Trust bar ------------------------------- */

.brands-trustbar {
  /* Figma: blue band 1920x80; list 1687x34 at top 23 / left 117 (centered) */
  background: #1c45c2;
  color: #fff;
  min-height: 80px;
}

.brands-trustbar .container {
  max-width: calc(1687px + 36px); /* list width + container side padding */
}

.brands-trustbar ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px; /* Figma gap is 50px; space-between distributes the rest */
  margin: 0;
  padding: 23px 0;
  list-style: none;
}

.brands-trustbar li {
  white-space: nowrap;
}

.brands-trustbar li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Gilroy-SemiBold', var(--font);
  font-weight: 400;
  font-size: 24px;
  line-height: 34px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
}

.brands-trustbar li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brands-yellow, #fab72a);
  flex: 0 0 auto;
}

/* ------------------------------- Responsive ------------------------------- */

@media (max-width: 1700px) {
  .brands-trustbar li {
    font-size: 20px;
    line-height: 30px;
  }
}

@media (max-width: 1400px) {
  .brands-trustbar li {
    font-size: 17px;
    line-height: 26px;
  }
}

@media (max-width: 1024px) {
  .brands-trustbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .brands-section {
    min-height: 0;
    padding-bottom: 56px;
  }

  .brands-section__title {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    line-height: 1.25;
    margin-bottom: 40px;
  }

  .brands-section__grid {
    grid-template-columns: repeat(2, 1fr);
    width: auto;
    max-width: 560px;
  }

  .brands-section__cell {
    width: auto;
  }

  .brands-trustbar ul {
    justify-content: center;
  }

  .brands-trustbar li {
    font-size: 15px;
    line-height: 22px;
  }
}

@media (max-width: 560px) {
  .brands-section {
    padding: 48px 0 56px;
  }

  .brands-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .brands-section__cell {
    height: 80px;
  }

  .brand-logo {
    font-size: 1.1rem;
  }
}
