/* ==========================================================================
   Brands section + trust bar
   Figma: yellow band 1920×674; grid 1100×260 at top 294 / left 410 (centred)
   Cells: 260×120. Trust bar: blue 1920×80
   ========================================================================== */

   .brands-section {
    --brands-yellow: #fab72a;
    --brands-navy:   #00274e;
    --cell-w:        260px;
    --cell-h:        120px;
    --grid-w:        1100px;   /* 4 × 260 + 3 × 20 = 1100 */
  
    background: var(--brands-yellow);
    padding: 78px 0 80px;
  }
  
  /* ==========================================================================
     Title
     ========================================================================== */
  
  .brands-section__title {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 72px;
    text-align: center;
    font-family: 'Gilroy-ExtraBoldItalic', sans-serif;
    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__title-desktop {
    display: contents;
  }

  .brands-section__title-mobile {
    display: none;
  }
  
  /* ==========================================================================
     Brand grid — 4 columns on desktop
     ========================================================================== */
  
  .brands-section__grid {
    display: grid;
    grid-template-columns: repeat(4, var(--cell-w));
    gap: 20px;
    width: var(--grid-w);
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
  }
  
  /* ==========================================================================
     Individual brand cells
     ========================================================================== */
  
  .brands-section__cell {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--cell-w);
    height: var(--cell-h);
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .35);
  }
  
  /* ==========================================================================
     Brand logos
     ========================================================================== */

  .brand-logo-img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }
  
  .brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1;
    white-space: nowrap;
  }
  
  .brand-logo sup {
    font-size: .5rem;
    align-self: flex-start;
  }
  
  /* Rinnai */
  .brand-logo--rinnai {
    color: #e2231a;
    font-size: 1.75rem;
    font-style: italic;
    letter-spacing: -.5px;
    font-family: 'Gilroy-ExtraBoldItalic', serif;
  }
  
  /* Bosch */
  .brand-logo--bosch {
    color: #ea0016;
    letter-spacing: 1px;
    font-size: 1.35rem;
  }
  
  .brand-logo--bosch svg {
    width: 26px;
    height: 26px;
  }
  
  /* Rheem */
  .brand-logo--rheem i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 60px;
    border-radius: 50%;
    background: #e2231a;
    color: #fff;
    font-style: italic;
    font-weight: 800;
    font-size: 1.3rem;
    font-family: 'Gilroy-ExtraBoldItalic', serif;
  }
  
  /* AquaMAX */
  .brand-logo--aquamax {
    position: relative;
    letter-spacing: -.5px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  
  .brand-logo--aquamax .brand-logo__aqua {
    color: #00a7e1;
    font-size: 1.2rem;
    font-style: italic;
  }
  
  .brand-logo--aquamax .brand-logo__max {
    color: #e2231a;
    font-size: 1.55rem;
    letter-spacing: 1px;
  }
  
  .brand-logo--aquamax small {
    font-size: .5rem;
    font-weight: 700;
    font-style: normal;
    color: #00a7e1;
    letter-spacing: .4px;
    margin-top: 2px;
  }
  
  /* Dux */
  .brand-logo--dux i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 52px;
    border-radius: 50%;
    background: #d6001c;
    border: 3px solid #9e9e9e;
    color: #fff;
    font-style: italic;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -1px;
    font-family: 'Gilroy-ExtraBoldItalic', serif;
  }
  
  /* Vulcan */
  .brand-logo--vulcan {
    color: #1e7d34;
    letter-spacing: .5px;
    font-size: 1.2rem;
  }
  
  .brand-logo--vulcan svg {
    width: 22px;
    height: 22px;
  }
  
  /* Solahart */
  .brand-logo--solahart {
    color: #005baa;
    font-size: 1.4rem;
    letter-spacing: -.3px;
  }
  
  .brand-logo--solahart svg {
    width: 22px;
    height: 22px;
  }
  
  /* Stiebel Eltron */
  .brand-logo--stiebel {
    color: #111;
    font-size: 1rem;
    letter-spacing: .3px;
    border-bottom: 3px solid #e2231a;
    padding-bottom: 4px;
    white-space: nowrap;
  }
  
  /* ==========================================================================
     Trust bar — blue band below brands section
     Figma: 1920×80, list 1687×34 at top 23 centred
     ========================================================================== */
  
  .brands-trustbar {
    background: #1c45c2;
    color: #fff;
    min-height: 80px;
    overflow: hidden;
  }
  
  .brands-trustbar .container {
    max-width: 1780px;
    padding: 0 24px;
    box-sizing: border-box;
  }
  
  .brands-trustbar ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 23px 0;
    list-style: none;
  }
  
  .brands-trustbar li {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Gilroy-SemiBold', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 34px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
  }
  
  .brands-trustbar li::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #F8BC18;
    flex: 0 0 auto;
  }
  
  /* ==========================================================================
     Responsive
     ========================================================================== */
  
  /* ── Large desktop: trust bar font holds at 24px ── */
  @media (min-width: 1600px) {
    .brands-trustbar li {
      font-size: 24px;
    }
  }
  
  /* ── 1280px – 1440px ── */
  @media (max-width: 1440px) {
    .brands-section__grid {
      grid-template-columns: repeat(4, 1fr);
      width: auto;
      padding: 0 40px;
      gap: 18px;
    }
  
    .brands-section__cell {
      width: auto;
    }
  
    .brands-trustbar li {
      font-size: 16px;
    }
  }
  
  /* ── Tablet: 769px – 1024px — 2-col grid, title scales ── */
  @media (max-width: 1024px) {
    .brands-section {
      padding: 56px 0 64px;
    }
  
    .brands-section__title {
      font-size: clamp(1.6rem, 4vw, 2.6rem);
      line-height: 1.2;
      margin-bottom: 40px;
    }
  
    .brands-section__grid {
      grid-template-columns: repeat(2, 1fr);
      width: auto;
      max-width: 560px;
      padding: 0 20px;
      gap: 16px;
      margin: 0 auto;
    }
  
    .brands-section__cell {
      width: auto;
      height: 100px;
    }
  
    /* Trust bar wraps on tablet */
    .brands-trustbar ul {
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px 24px;
      padding: 16px 0;
    }
  
    .brands-trustbar li {
      font-size: 14px;
      line-height: 24px;
    }
  }
  
  /* ── Mobile: ≤ 768px ── */
  @media (max-width: 768px) {
    .brands-section {
      padding: 40px 0 48px;
    }
  
    /* Title: left-aligned, bold italic, 3 lines — matches screenshot */
    .brands-section__title {
      text-align: left;
      font-family: 'Gilroy-ExtraBoldItalic', sans-serif;
      font-weight: 400;
      font-style: italic;
      font-size: 30px;
      line-height: 40px;
      letter-spacing: 0;
      text-transform: uppercase;
      color: #00274e;
      margin-bottom: 28px;
      padding: 0 16px;
    }

    .brands-section__title-desktop {
      display: none;
    }

    .brands-section__title-mobile {
      display: contents;
    }
  
    .brands-section__title-line {
      display: block;
      text-align: left;
      font-family: 'Gilroy-ExtraBoldItalic', sans-serif;
      font-weight: 400;
      font-style: italic;
      font-size: 30px;
      line-height: 40px;
      letter-spacing: 0;
      text-transform: uppercase;
      color: #00274e;
    }
  
    /* 2-column grid fills the screen */
    .brands-section__grid {
      grid-template-columns: repeat(2, 1fr);
      width: auto;
      max-width: 100%;
      padding: 0 16px;
      gap: 14px;
      margin: 0;
    }
  
    .brands-section__cell {
      width: auto;
      height: 90px;
      padding: 8px 12px;
      box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
    }
  
    /* Scale logos down slightly for smaller cells */
    .brand-logo {
      font-size: 1.1rem;
    }
  
    .brand-logo--rinnai {
      font-size: 1.4rem;
    }
  
    .brand-logo--rheem i {
      width: 70px;
      height: 50px;
      font-size: 1.1rem;
    }
  
    .brand-logo--dux i {
      width: 80px;
      height: 44px;
      font-size: 1.35rem;
    }
  
    .brand-logo--stiebel {
      font-size: .85rem;
      white-space: nowrap;
    }
  
    .brand-logo--solahart {
      font-size: 1.15rem;
    }
  
    /* Trust bar: single horizontal scrollable row, no wrap — matches screenshot */
    .brands-trustbar {
      min-height: 44px;
    }
  
    .brands-trustbar .container {
      padding: 0;
      max-width: 100%;
    }
  
    .brands-trustbar ul {
      flex-wrap: nowrap;
      justify-content: flex-start;
      gap: 0;
      padding: 0;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      min-height: 44px;
    }
  
    .brands-trustbar ul::-webkit-scrollbar {
      display: none;
    }
  
    /* Each item: bold uppercase, yellow dot, tight padding for compact bar */
    .brands-trustbar li {
      font-family: 'Gilroy-SemiBold', sans-serif;
      font-size: 11px;
      line-height: 1;
      letter-spacing: .5px;
      text-transform: uppercase;
      color: #fff;
      padding: 14px 14px;
      gap: 8px;
      flex-shrink: 0;
      white-space: nowrap;
    }
  
    .brands-trustbar li::before {
      content: "";
      display: inline-block;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #F8BC18;
      flex-shrink: 0;
    }
  }
  
  /* ── Small mobile: ≤ 400px ── */
  @media (max-width: 400px) {
    .brands-section__title,
    .brands-section__title-line {
      font-size: 26px;
      line-height: 34px;
    }
  
    .brands-section__grid {
      gap: 12px;
      padding: 0 12px;
    }
  
    .brands-section__cell {
      height: 80px;
    }
  
    .brand-logo {
      font-size: 1rem;
    }
  
    .brand-logo--rinnai  { font-size: 1.25rem; }
    .brand-logo--stiebel { font-size: .78rem;  }
  }