/* Sobre — dobra “Relação comercial” (editorial alinhado ao manifesto) */

.about-relation {
  --rel-ink: #192419;
  --rel-muted: #4a584a;
  --rel-soft: rgba(26, 34, 25, 0.68);
  --rel-line: rgba(56, 75, 56, 0.14);
  --font-serif: "freight-big-pro", serif;
  --font-sans: "aktiv-grotesk", sans-serif;
  --font-label: "aktiv-grotesk", sans-serif;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  background: linear-gradient(165deg, #faf9f6 0%, #f0f4ee 48%, #e8f0e4 100%);
  border-top: 1px solid rgba(56, 75, 56, 0.08);
  color: var(--rel-ink);
}

.about-relation::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 40% at 88% 18%, rgba(143, 208, 132, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 36% at 8% 82%, rgba(229, 160, 122, 0.08), transparent 50%);
}

.about-relation__inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: center;
}

/* Copy primeiro (leitura), mídia à direita — padrão do manifesto */
.about-relation__copy {
  order: 1;
  max-width: 36rem;
  min-width: 0;
}

.about-relation__visual {
  order: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(0.35rem, 1.5vw, 1.25rem);
  min-width: 0;
}

.about-relation__media {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: min(430px, 92%);
  aspect-ratio: 4 / 5;
  border-radius: clamp(16px, 2vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(56, 75, 56, 0.14);
  background: #f4f6f2;
  box-shadow:
    0 4px 0 rgba(56, 75, 56, 0.05),
    0 28px 56px rgba(13, 30, 12, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.about-relation__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.about-relation__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-relation.is-inview .about-relation__media:hover img {
  transform: scale(1.05);
}

.about-relation__kicker {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(56, 75, 56, 0.62);
  margin: 0 0 0.85rem;
}

.about-relation__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 3.05rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--rel-ink);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.about-relation__lede {
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.5vw, 1.0625rem);
  line-height: 1.7;
  color: var(--rel-muted);
  margin: 0 0 0.85rem;
  max-width: 42ch;
  text-wrap: pretty;
}

.about-relation__body {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.35vw, 1.02rem);
  line-height: 1.7;
  color: var(--rel-soft);
  margin: 0 0 clamp(1.35rem, 2.5vw, 1.75rem);
  max-width: 44ch;
  text-wrap: pretty;
}

.about-relation__beats {
  list-style: none;
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  border-top: 1px solid var(--rel-line);
  padding-top: 1.15rem;
}

.about-relation__beat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0;
  border: 0;
}

.about-relation__beat-num {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(56, 75, 56, 0.5);
}

.about-relation__beat-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.about-relation__beat-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: var(--rel-ink);
}

.about-relation__beat-text {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--rel-soft);
}

/* CTAs lado a lado — sobrescreve .btn { width:100% } do hero shell em ≤980px */
.about-relation__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  max-width: min(34rem, 100%);
}

.about-relation__actions .btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  padding: 0.85rem clamp(0.85rem, 1.8vw, 1.35rem);
  font-size: clamp(0.68rem, 1.2vw, 0.78rem);
  letter-spacing: 0.055em;
  min-height: 2.85rem;
  box-shadow: 0 8px 24px rgba(13, 30, 12, 0.1);
}

.about-relation__actions .btn-light {
  background: #fff;
  color: var(--brand-primary, #384b38);
  border-color: rgba(56, 75, 56, 0.22);
}

.about-relation__actions .btn-light:hover {
  background: var(--brand-primary, #384b38);
  border-color: var(--brand-primary, #384b38);
  color: #fff;
}

@media (max-width: 899px) {
  .about-relation__inner {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.25rem);
  }

  .about-relation__copy {
    order: 2;
    max-width: none;
  }

  .about-relation__visual {
    order: 1;
    padding: 0;
  }

  .about-relation__media {
    max-width: min(360px, 78%);
  }

  .about-relation__lede {
    max-width: none;
  }

  /* Segundo parágrafo é redundante ao lede em telas estreitas — os 3 beats
     abaixo já resumem o relacionamento (mantém o texto completo no HTML/SEO). */
  .about-relation__body {
    display: none;
  }

  .about-relation__beats {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
    border-top: 0;
  }

  .about-relation__beat {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rel-line);
  }

  .about-relation__beat:first-child {
    border-top: 1px solid var(--rel-line);
  }

  .about-relation__actions {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .about-relation__actions {
    flex-wrap: wrap;
  }

  .about-relation__actions .btn {
    flex: 1 1 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-relation__media img,
  .about-relation.is-inview .about-relation__media:hover img {
    transform: none;
    transition: none;
  }
}
