/* ==========================================
 * PÁGINA QUEM SOMOS - LITHO PLANT
 * ========================================== */

.quem-somos-page {
  min-height: 100vh;
  background-color: #f5f7fb;
}

/* HERO SIMPLES */

.hero-page {
  background: radial-gradient(circle at top left, #1f5bb3 0%, #174283 35%, #0b1b33 80%);
  color: #ffffff;
}

.hero-page.hero-page-slim {
  padding: 7.5rem 0 3.2rem;
}

.hero-page-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-page-container-slim {
  justify-content: center;
}

.hero-page-text {
  max-width: 540px;
}

.hero-page-text-centered {
  text-align: center;
  max-width: 640px;
}

.hero-badge-qs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 600;
}

.page-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin: 1.1rem 0 0.75rem;
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.96;
  max-width: 520px;
}

.hero-page-text-centered .page-subtitle {
  margin: 0 auto;
}

/* TITLES */

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #174283;
}

/* TIMELINE / HISTÓRIA */

.history-timeline {
  padding: 3.5rem 0 4.5rem;
  background: #ffffff;
}

.history-header {
  max-width: 720px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.history-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(23, 66, 131, 0.08);
  color: #174283;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.history-intro {
  font-size: 1rem;
  color: #4b5563;
}

.history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}

/* coluna esquerda (steps) */

.history-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.history-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  opacity: 0.35;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.history-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.history-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.history-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #174283;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.history-step.is-active .history-bullet {
  background: #174283;
}

.history-line {
  flex: 1;
  width: 2px;
  margin-top: 4px;
  background: linear-gradient(to bottom, rgba(23, 66, 131, 0.2), rgba(23, 66, 131, 0.05));
}

.history-line-end {
  background: none;
}

.history-step-content h3.history-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.4rem;
}

.history-step-content p {
  font-size: 0.96rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

/* coluna direita (highlight imagem) */

.history-highlight {
  display: flex;
  align-items: stretch;
}

.history-highlight-card {
  border-radius: 24px;
  overflow: hidden;
  background: #0b1b33;
  box-shadow: 0 18px 46px rgba(15, 46, 76, 0.45);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.history-highlight-image-wrapper {
  position: relative;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
}

.history-highlight-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.history-image-fade-out {
  opacity: 0;
  transform: scale(0.98);
}

.history-image-fade-in {
  opacity: 1;
  transform: scale(1.02);
}

.history-highlight-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 55%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* PORTFÓLIO */

.portfolio-litho-clean {
  padding: 4rem 0 4.3rem;
  background: #f5f7fb;
}

.portfolio-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.portfolio-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(23, 66, 131, 0.08);
  color: #174283;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.portfolio-title {
  margin-bottom: 0.6rem;
}

.portfolio-subtitle {
  font-size: 1rem;
  color: #4b5563;
}

.portfolio-grid-clean {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.portfolio-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 8px 26px rgba(15, 46, 76, 0.08);
  border: 1px solid rgba(23, 66, 131, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portfolio-card-main {
  grid-column: span 2;
  background: linear-gradient(135deg, #174283 0%, #1f5bb3 40%, #066839 100%);
  color: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 46, 76, 0.35);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(15, 46, 76, 0.18);
  border-color: rgba(23, 66, 131, 0.18);
}

.portfolio-card-header h3 {
  font-size: 1.15rem;
  margin-top: 0.5rem;
}

.portfolio-card-main h3 {
  font-size: 1.25rem;
}

.portfolio-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0.6rem;
  background: rgba(23, 66, 131, 0.08);
  color: #174283;
}

.portfolio-card-main .portfolio-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.portfolio-card p {
  font-size: 0.96rem;
  color: #4b5563;
  line-height: 1.7;
}

.portfolio-card-main p {
  color: #e5f2ff;
}

/* MISSÃO, VISÃO, VALORES */

.mission-vision {
  padding: 4.2rem 0;
  background: #ffffff;
}

.mission-container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.mission-left {
  max-width: 620px;
}

.mission-title {
  margin-bottom: 0.8rem;
}

.mission-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.mission-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #f3f4f6;
  margin: 1.4rem 0 0.9rem;
}

.mission-tab {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.mission-tab.is-active {
  background: #174283;
  color: #ffffff;
}

.mission-panels {
  position: relative;
  min-height: 130px;
}

.mission-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mission-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.mission-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.4rem;
}

.mission-panel p {
  font-size: 0.98rem;
  color: #4b5563;
  line-height: 1.8;
}

.mission-right {
  display: flex;
  justify-content: center;
}

.mission-image-stack {
  position: relative;
  width: 320px;
  height: 260px;
}

.mission-image {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
}

.mission-image-back {
  background: linear-gradient(135deg, #174283 0%, #1f5bb3 60%, #0b1b33 100%);
  transform: translate(18px, 18px);
  opacity: 0.7;
}

.mission-image-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 18px 40px rgba(15, 46, 76, 0.35);
}

/* EVOLUTION – LARGO */

.evolution-section {
  padding: 4rem 0 4.5rem;
  background: #f5f7fb;
}

.evolution-container-wide {
  width: 100%;
}

.evolution-card {
  border-radius: 24px;
  padding: 2.4rem 2.2rem;
  background: radial-gradient(circle at top left, #1f5bb3 0%, #174283 30%, #0b1b33 80%);
  color: #ffffff;
  box-shadow: 0 22px 50px rgba(12, 35, 70, 0.55);
}

.evolution-card-wide {
  max-width: 1180px;
  margin: 0 auto;
}

.evolution-header {
  margin-bottom: 1.1rem;
}

.evolution-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
}

.evolution-title {
  color: #ffffff;
  margin-top: 0.7rem;
}

.evolution-body p {
  font-size: 0.98rem;
  line-height: 1.9;
  color: #e5f2ff;
  margin-bottom: 0.7rem;
}

/* WHATSAPP FLUTUANTE */

.whatsapp-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 6px;
}

.whatsapp-floating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  font-size: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-floating-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  background-color: #1ebe5b;
}

.whatsapp-floating-message {
  position: relative;
  max-width: 220px;
  background: linear-gradient(135deg, #e0ebff 0%, #c7dafc 100%);
  color: #111827;
  border-radius: 18px;
  padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: left;
  word-break: break-word;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.whatsapp-floating-message span {
  display: block;
}

.whatsapp-floating-message::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #e0ebff 0%, #c7dafc 100%);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.whatsapp-floating-message::before {
  content: '';
  position: absolute;
  right: 12px;
  bottom: -18px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #e0ebff 0%, #c7dafc 100%);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.whatsapp-floating-message.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* RESPONSIVO */

@media (max-width: 992px) {
  .hero-page-container-slim {
    padding: 0 16px;
  }

  .history-grid {
    grid-template-columns: 1fr;
  }

  .history-highlight-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .mission-container {
    grid-template-columns: 1fr;
  }

  .mission-right {
    order: -1;
  }

  .mission-image-stack {
    margin: 0 auto 1.5rem;
  }

  .portfolio-grid-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-card-main {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero-page.hero-page-slim {
    padding: 6rem 0 2.8rem;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .portfolio-litho-clean {
    padding: 3.2rem 0 3.6rem;
  }

  .evolution-section {
    padding: 3.2rem 0 3.6rem;
  }

  .evolution-card {
    padding: 2rem 1.6rem;
  }

  .whatsapp-floating {
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-floating-button {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .whatsapp-floating-message {
    max-width: 190px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .portfolio-grid-clean {
    grid-template-columns: 1fr;
  }

  .portfolio-card-main {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .evolution-card {
    padding: 1.8rem 1.4rem;
  }

  .whatsapp-floating-message {
    display: none;
  }
}