/* Nossas marcas — Figma S03Cards (node 2125:1949) */

.brands {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  background: var(--background-color);
  color: var(--brand-color-primary);
  font-family: "Manrope", system-ui, sans-serif;
  scroll-margin-top: 96px;
}

.brands__inner {
  box-sizing: border-box;
  max-width: 1024px;
  margin: 0 auto;
  padding: 80px 32px 80px;
}

.brands__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
  padding-bottom: 16px;
  min-height: 143px;
}

.brands__header-left {
  flex: 0 1 263px;
  min-width: 0;
  max-width: 263px;
}

.brands__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.brands__eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 32px;
  height: 1px;
  background: var(--brand-color-secondary);
}

.brands__eyebrow span {
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brand-color-secondary);
}

.brands__title {
  margin: 0;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2;
  color: var(--brand-color-primary);
  text-wrap: balance;
}

.brands__title-line {
  display: block;
}

.brands__lead {
  flex: 0 1 320px;
  margin: 0;
  max-width: 320px;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-details);
  overflow-wrap: anywhere;
  text-align: right;
}

.brands__rule {
  height: 1px;
  max-width: 960px;
  margin: 0 auto 57px;
  background: linear-gradient(
    90deg,
    var(--brand-color-secondary) 0%,
    rgba(239, 124, 0, 0.3) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.brand-card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 392.5px;
  margin: 0;
  padding: 0 0 3px;
  overflow: hidden;
  background: var(--background-color);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.brand-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-color-secondary) 0%, rgba(239, 124, 0, 0.4) 100%);
  border-radius: 0 0 14px 14px;
}

.brand-card__index {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--surface-border);
  pointer-events: none;
}

.brand-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 0 40px;
}

.brand-card__logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

.brand-card--movelaria .brand-card__logo {
  padding: 0;
}

.brand-card--movelaria .brand-card__logo-inner {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 50%;
  position: relative;
}

.brand-card--movelaria .brand-card__logo-inner img {
  position: absolute;
  width: 282%;
  height: 158%;
  max-width: none;
  left: -92%;
  top: -31%;
  object-fit: cover;
}

.brand-card--office .brand-card__logo img {
  width: 222px;
  height: 60px;
  object-fit: contain;
}

.brand-card--bentec .brand-card__logo img {
  width: 170px;
  height: 46px;
  object-fit: contain;
}

.brand-card__divider {
  height: 1px;
  margin: 0 32px;
  background: rgba(239, 124, 0, 0.25);
  flex-shrink: 0;
}

.brand-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 32px 28px;
  min-height: 0;
}

.brand-card__tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
}

.brand-card__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-color-secondary);
  flex-shrink: 0;
}

.brand-card__tag span {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--brand-color-secondary);
}

.brand-card__copy {
  margin: 0 0 auto;
  padding-bottom: 24px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-details);
  overflow-wrap: anywhere;
}

.brand-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.325px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-color-primary);
  width: fit-content;
  border-radius: 4px;
  touch-action: manipulation;
  transition: color 180ms ease;
}

.brand-card__link:hover {
  color: var(--brand-color-secondary);
}

.brand-card__link:focus-visible {
  outline: 2px solid var(--brand-color-secondary);
  outline-offset: 2px;
}

.brand-card__link img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .brands__inner {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .brands__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .brands__lead {
    flex: 0 1 0px;
    width: min(100%, 240px);
    text-align: left;
    max-width: 240px;
  }

  .brands__header-left {
    max-width: 100%;
  }

  .brands__title {
    font-size: clamp(32px, 6vw, 42px);
  }

  .brands__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .brand-card--office .brand-card__logo img {
    width: min(222px, 100%);
    height: auto;
    max-height: 60px;
  }

  .brand-card--bentec .brand-card__logo img {
    width: min(170px, 100%);
    height: auto;
    max-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-card__link {
    transition: none;
  }
}
