/* =========================
   WHAT WE MAKE
========================= */

.what-we-make {
  background: #111827;
  padding: 120px 0;
}

.what-we-make-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* =========================
   INTRO
========================= */

.what-we-make-intro {
  max-width: 950px;
  margin-bottom: 80px;
}

.what-we-make-eyebrow {
  margin: 0 0 18px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.what-we-make-intro h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #ffffff;
}

/* =========================
   ACCORDION
========================= */

.what-we-make-accordion {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.accordion-button {
  width: 100%;
  min-height: 108px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;

  padding: 0;

  border: 0;
  background: transparent;

  color: #ffffff;
  font: inherit;
  text-align: left;

  cursor: pointer;
}

.accordion-button > span:first-child {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.accordion-icon {
  flex-shrink: 0;

  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;

  color: rgba(255, 255, 255, 0.62);

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.accordion-button:hover .accordion-icon {
  color: #ffffff;
}

.accordion-button:hover > span:first-child {
  color: rgba(255, 255, 255, 0.78);
}

/* =========================
   OPEN CONTENT
========================= */

.accordion-content {
  max-width: 760px;
  padding: 0 0 38px;
}

.accordion-content p {
  margin: 0;

  font-size: 1.05rem;
  line-height: 1.8;

  color: #ffffffff;
}

.accordion-button[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  color: #ffffff;
}

/* =========================
   ACCESSIBILITY
========================= */

.accordion-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 8px;
  border-radius: 2px;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {
  .what-we-make {
    padding: 100px 0;
  }

  .what-we-make-container {
    width: min(100% - 40px, 1180px);
  }

  .what-we-make-intro {
    max-width: 820px;
    margin-bottom: 68px;
  }

  .accordion-button {
    min-height: 96px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .what-we-make {
    padding: 80px 0;
  }

  .what-we-make-container {
    width: min(100% - 32px, 1180px);
  }

  .what-we-make-intro {
    margin-bottom: 52px;
  }

  .what-we-make-eyebrow {
    margin-bottom: 14px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }

  .what-we-make-intro h2 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.08;
  }

  .accordion-button {
    min-height: 82px;
    gap: 20px;
  }

  .accordion-button > span:first-child {
    font-size: 1.55rem;
  }

  .accordion-icon {
    width: 34px;
    height: 34px;
    font-size: 1.45rem;
  }

  .accordion-content {
    max-width: 100%;
    padding-bottom: 28px;
  }

  .accordion-content p {
    font-size: 0.98rem;
    line-height: 1.7;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {
  .what-we-make {
    padding: 68px 0;
  }

  .what-we-make-container {
    width: min(100% - 24px, 1180px);
  }

  .what-we-make-intro {
    margin-bottom: 44px;
  }

  .accordion-button {
    min-height: 76px;
  }
}
