/* =========================================================
   NOSSA HISTÓRIA
   ========================================================= */

.history {
  background-color: var(--color-white);
  padding-top: var(--space-10);
  padding-bottom: var(--space-20);
}

.history__inner {
  width: min(1600px, 95vw);
  padding-inline: var(--space-8);
  margin-inline: auto;
}

/* ---- Header da seção ---- */

.history__header {
  max-width: 720px;
  margin-bottom: var(--space-12);
}

.history__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.15;
}

/* =========================================================
   PARTE 1 — FUNDADOR
   ========================================================= */

.history__founder {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.3fr;
  gap: var(--space-12);
  align-items: center;
}

/* ---- Foto + caption ---- */

.history__founder-media {
  position: relative;
  margin: 0;
  width: fit-content;
  max-width: 100%;
  justify-self: center;
}

.history__founder-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 640px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.history__founder-caption {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--color-white);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.history__founder-role {
  font-family: var(--font-base);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.history__founder-name {
  font-family: var(--font-base);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
}

/* ---- Texto ---- */

.history__founder-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.history__founder-text {
  font-family: var(--font-base);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.8;
}

.history__founder-highlight {
  font-family: var(--font-base);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-dark);
  padding: var(--space-4) var(--space-5);
  padding-left: 10px;
  border-left: 4px solid var(--color-primary);
  background-color: rgba(140, 28, 42, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: var(--space-2);
}

.history__founder-highlight strong {
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* =========================================================
   PARTE 2 — A EMPRESA
   ========================================================= */

.history__company {
  display: grid;
  grid-template-columns: 1.25fr minmax(280px, 1fr);
  gap: var(--space-12);
  align-items: center;
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.history__company-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.history__company-label {
  font-family: var(--font-base);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
}

.history__company-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 2.2vw, var(--text-2xl));
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.25;
  margin-bottom: var(--space-1);
}

.history__company-text {
  font-family: var(--font-base);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.8;
}

/* ---- Galeria de 2 imagens (lado a lado, com leve stagger) ---- */

.history__company-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  align-items: start;
}

.history__company-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  display: block;
  transition: transform 280ms ease;
}

.history__company-image:hover {
  transform: translateY(-4px);
}

.history__company-image--bottom {
  margin-top: var(--space-10);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 900px) {
  .history__founder {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .history__founder-image {
    max-height: 520px;
  }

  .history__company {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-12);
    padding-top: var(--space-12);
  }

  .history__company-image--bottom {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .history__inner {
    padding-inline: var(--space-6);
  }

  .history__founder-image {
    max-height: 460px;
  }

  .history__founder-highlight {
    font-size: var(--text-base);
  }
}
