/* =============================================================
   SOBRE, estilos da página institucional
   ============================================================= */

/* -----------------------------------------------------------
   1. HERO
   ----------------------------------------------------------- */

.sobre-hero {
  position: relative;
  padding-block: clamp(var(--space-2xl), 6vw + 1rem, var(--space-4xl)) var(--section-py);
  background: var(--bg-primary);
  overflow: hidden;
}
.sobre-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../../assets/logos/obp-simbolo-branco.png');
  background-repeat: no-repeat;
  background-position: right -10% center;
  background-size: 60vmin;
  opacity: 0.04;
  pointer-events: none;
}
.sobre-hero__content {
  position: relative;
  z-index: 1;
  max-width: 920px;
}
.sobre-hero__title {
  font-size: clamp(2.5rem, 1.8rem + 4vw, 5rem);
  font-weight: var(--fw-light);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.sobre-hero__title strong {
  font-weight: var(--fw-semibold);
  color: var(--text-brand);
}
.sobre-hero__lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  margin-top: var(--space-lg);
  max-width: 58ch;
}

/* -----------------------------------------------------------
   2. MANIFESTO em destaque
   ----------------------------------------------------------- */

.manifest {
  max-width: 720px;
  margin-inline: auto;
}
.manifest__quote {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  font-weight: var(--fw-light);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}
.manifest__quote strong {
  font-weight: var(--fw-semibold);
  color: var(--text-brand);
}
.manifest__body {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.manifest__body p {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

/* -----------------------------------------------------------
   3. CICLO Construir, Operar, Otimizar
   ----------------------------------------------------------- */

.cycle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  position: relative;
}
@media (max-width: 768px) {
  .cycle { grid-template-columns: 1fr; }
}

.cycle__step {
  position: relative;
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.cycle__step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -32px;
  transform: translateY(-50%);
  color: var(--text-brand);
  font-size: 24px;
  font-weight: var(--fw-bold);
}
@media (max-width: 768px) {
  .cycle__step:not(:last-child)::after {
    top: auto;
    bottom: -28px;
    right: 50%;
    transform: translateX(50%);
    content: '↓';
  }
}

.cycle__step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--text-brand);
  letter-spacing: var(--ls-wide);
  font-weight: var(--fw-medium);
}
.cycle__step-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
}
.cycle__step-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* -----------------------------------------------------------
   4. DIFERENCIAIS, 4 cards numerados (compartilha com home)
   ----------------------------------------------------------- */

.sobre-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}
@media (max-width: 768px) { .sobre-diff-grid { grid-template-columns: 1fr; } }

.sobre-diff-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: start;
  transition: border-color var(--motion-base) var(--ease-out);
}
.sobre-diff-card:hover { border-color: var(--border-brand); }
.sobre-diff-card__num {
  font-size: clamp(3.5rem, 5vw, 5rem);
  font-weight: var(--fw-light);
  color: var(--text-brand);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.sobre-diff-card__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--text-primary);
}
.sobre-diff-card__title strong { color: var(--text-brand); font-weight: var(--fw-semibold); }
.sobre-diff-card__body {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-top: var(--space-sm);
}

/* -----------------------------------------------------------
   5. STACK DE PARCEIROS (mesma estética da Home, autônoma)
   ----------------------------------------------------------- */

.sobre-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-2xl);
}
@media (max-width: 1023px) { .sobre-stack { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px)  { .sobre-stack { grid-template-columns: repeat(2, 1fr); } }

.sobre-stack__cell {
  background: var(--bg-secondary);
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-sm);
  min-height: 240px;
  text-align: center;
  transition: background-color var(--motion-fast) var(--ease-out);
}
.sobre-stack__logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
}
.sobre-stack__cell img {
  max-height: 80px;
  max-width: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--motion-base) var(--ease-out);
}
.sobre-stack__label {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
  line-height: 1.2;
}
.sobre-stack__desc {
  font-size: var(--fs-caption);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
  max-width: 28ch;
}
.sobre-stack__cell:hover {
  background: var(--bg-elevated);
}
.sobre-stack__cell:hover img {
  transform: scale(1.06);
}

/* -----------------------------------------------------------
   6. CTA FINAL
   ----------------------------------------------------------- */

.sobre-cta {
  position: relative;
  text-align: center;
  padding-block: clamp(var(--space-3xl), 8vw, var(--space-4xl));
  background: var(--color-preto);
  overflow: hidden;
}
.sobre-cta__bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url('../../assets/logos/obp-simbolo-branco.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50vmin;
  pointer-events: none;
}
.sobre-cta__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}
.sobre-cta__title {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.sobre-cta__title strong {
  font-weight: var(--fw-semibold);
  color: var(--text-brand);
}
.sobre-cta__body {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  margin-top: var(--space-md);
}
