:root {
  --page-background: #383838;
  --hero-background: #000000;
  --text-color: #ffffff;
  --muted-text: #e2e2e2;
  --placeholder-background: #555555;
  --placeholder-border: #777777;
  --content-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--page-background);
  color: var(--text-color);
  font-family: Arial, Helvetica, sans-serif;
}

main {
  flex: 1 0 auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/*
* Top spacer area from the reference design.
* Remove this section from the HTML if you do not need it.
*/
.top-bar {
  height: 105px;
  background: var(--page-background);
}

/*
* Hero
*/
.hero {
  position: relative;
  min-height: 500px;
  background: var(--hero-background);
  overflow: hidden;
}

.hero-inner {
  width: min(100% - 40px, var(--content-width));
  min-height: 390px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 32px;
}

.main-logo {
  width: min(285px, 65vw);
  height: auto;
}

/*
* Angled transition between the black hero
* and the dark-gray brands area.
*/

.hero::after {
  content: "";
  position: absolute;
  left: -5%;
  bottom: -80px;
  width: 130%;
  height: 250px;
  background: var(--page-background);
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
  transform: rotate(1.5deg);
  transform-origin: center;
}

.brands-section {
  position: relative;
  z-index: 2;
  margin-top: -120px;
  padding: 40px 40px 85px;
  background: var(--page-background);
}

.brands-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-title {
  margin: 0 0 48px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 70px;
}

.brand-card {
  min-width: 0;
  text-align: left;
}

.brand-image-wrapper {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.brand-logo {
  width: 105px;
  height: 105px;
  object-fit: contain;
}

.brand-name {
  margin: 0 0 17px;
  text-align: center;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand-description {
  margin: 0;
  color: var(--muted-text);
  text-align: justify;
  font-size: 0.76rem;
  line-height: 1.45;
}

.brand-card a {
  display: block;
  transition:
      transform 160ms ease,
      opacity 160ms ease;
}

.brand-card a:hover {
  transform: translateY(-4px);
}

.brand-card a:hover .brand-image-wrapper {
  opacity: 0.85;
}

.brand-card a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 8px;
}

/*
* Footer
*/
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 30px 40px;
  background: #2d2d2d;
  color: #cccccc;
  font-size: 0.78rem;
  text-align: center;
}

/*
* Tablet
*/
@media (max-width: 950px) {
  .brand-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 65px 50px;
  }

  .brands-section {
      padding-top: 115px;
  }
}

/*
* Mobile
*/
@media (max-width: 560px) {
  .top-bar {
      height: 45px;
  }

  .hero {
      min-height: 350px;
  }

  .hero-inner {
      min-height: 305px;
      padding-top: 25px;
  }

  .main-logo-placeholder {
      width: 210px;
      height: 185px;
  }

  .hero::after {
      content: "";
      position: absolute;
      left: -5%;
      bottom: -85px;
      width: 110%;
      height: 150px;
      background: var(--page-background);
      border-radius: 50% 50% 0 0 / 35% 35% 0 0;
      transform: rotate(1.5deg);
      transform-origin: center;
}

  .brands-section {
      padding: 90px 24px 65px;
  }

  .section-title {
      margin-bottom: 42px;
      text-align: center;
  }

  .brand-grid {
      grid-template-columns: 1fr;
      gap: 58px;
  }

  .brand-card {
      max-width: 390px;
      margin: 0 auto;
  }

  .brand-description {
      font-size: 0.85rem;
      text-align: center;
  }
}