/* ─────────────────────────────────────────
   empresa.css  –  Tercon / Página Empresa
   ───────────────────────────────────────── */

:root {
  --cor-principal: #FD883B;
  --cor-secundaria: #233D4C;
}

/* ── Reset mínimo (somente o que não veio do global) ── */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ── Body: padding-top vem do global.css, não repetir aqui ── */
body {
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  margin: 0;
}

/* ════════════════════════════════════════
   HERO DA EMPRESA
   ════════════════════════════════════════ */

.empresa-hero {
  position: relative;
  width: 100%;
  background: #f1f1f1;
  overflow: hidden;
  margin-top: 60px;
}

/* bloco superior: imagem + texto laranja */
.empresa-hero__top {
  display: flex;
  align-items: stretch;
  min-height: 360px;
}

/* lado esquerdo — imagem de fundo */
.empresa-hero__image {
  position: relative;
  width: 50%;
  min-height: 360px;
  background-image: url("../assets/images/trabalhadores.webp");
  background-size: cover;
  background-position: center;
}

.empresa-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(37, 44, 47, 0.72);
}

/* título sobre a imagem */
.empresa-hero__title-wrap {
  position: absolute;
  top: 110px;
  left: min(23vw, 420px);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 2;
  width: calc(100% - 80px);
}

.empresa-hero__title {
  margin: 0;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.empresa-hero__line {
  display: block;
  height: 1px;
  max-width: 100px;
  flex: 1;
  background: rgba(255, 255, 255, 0.6);
}

/* lado direito — texto laranja */
.empresa-hero__content {
  width: 50%;
  background: var(--cor-principal);
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 50px 50px 50px 80px;
}

.empresa-hero__content p {
  margin: 0;
  max-width: 480px;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}

/* ────────────────────────────────────────
   CARD DE VÍDEO  — no fluxo normal,
   centralizado, sem posicionamento absoluto
   ──────────────────────────────────────── */

.institutional-video-card {
  display: block;
  width: 55%;
  max-width: 840px;
  margin: -80px auto 0;   /* sobe 80 px sobre a seção anterior */
  position: relative;
  z-index: 4;
  background: var(--cor-secundaria);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.30);
  aspect-ratio: 16 / 9;
}

.institutional-video-card iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* ════════════════════════════════════════
   QUEM SOMOS
   ════════════════════════════════════════ */

.about-company {
  padding: 120px 0 90px;   /* compensa o vídeo que "sobe" */
}

.about-container {
  width: min(1200px, 90%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #232323;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

/* ════════════════════════════════════════
   CARDS DE ESTATÍSTICAS
   ════════════════════════════════════════ */

.institutional-cards {
  padding: 60px 20px 70px;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-left: 40px;
  color: #333;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.icon-img {
  width: 54px;
  height: 54px;
  display: block;
}

.stat-info p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.stat-info b {
  color: #333;
  font-weight: 600;
}

/* ════════════════════════════════════════
   SEÇÕES INSTITUCIONAIS
   ════════════════════════════════════════ */

.institutional-section {
  padding: 100px 0;
  background: #f4f4f4;
}

.section-light {
  background: #ece9e5;
}

.section-dark {
  background: #17384a;
  color: #fff;
}

.institutional-container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* Tag de seção */
.section-tag {
  display: inline-block;
  color: #f58220;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-tag.light {
  color: #ffb778;
}

/* Cabeçalho de seção */
.section-heading {
  margin-bottom: 50px;
}

.section-heading.center {
  text-align: center;
}

.section-heading h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 800;
  color: #232323;
}

.section-dark .section-heading h2 {
  color: #fff;
}

.section-heading p {
  max-width: 720px;
  margin: 14px auto 0;
  color: #666;
  font-size: 1rem;
  line-height: 1.75;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.82);
}

/* ── Grade de Princípios ── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.principle-card {
  background: #fff;
  border: 1px solid #e4e1dc;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.principle-card h3 {
  font-size: 1.15rem;
  color: #232323;
  margin-bottom: 12px;
}

.principle-card p {
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* ── Grade de Compromissos ── */
.commitment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.commitment-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
}

.commitment-card h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
}

.commitment-card p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin: 0;
}

/* ── Mensagem Final ── */
.final-message-section {
  padding: 100px 0 120px;
  background: #f4f4f4;
}

.final-message {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.final-message h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 800;
  color: #232323;
  margin-bottom: 18px;
}

.final-message p {
  color: #666;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 740px;
  margin: 0 auto;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */

/* O footer.css cuida do estilo principal.
   Aqui apenas garantimos que não haja
   conflito com as seções acima. */

.site-footer {
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════
   RESPONSIVO
   ════════════════════════════════════════ */

/* Tablet -------------------------------- */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 50px;
  }

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

  .institutional-video-card {
    width: 75%;
    margin-top: -50px;
  }
}

/* Mobile -------------------------------- */
@media (max-width: 768px) {
  /* Hero */
  .empresa-hero {
    margin-top: 0;
  }
  
  .empresa-hero__top {
    flex-direction: column;
    min-height: auto;
  }

  .empresa-hero__image {
    width: 100%;
    min-height: 180px;
    height: 180px;
  }

  .empresa-hero__title-wrap {
    top: 38px;
    left: 18px;
    gap: 14px;
  }

  .empresa-hero__title {
    font-size: 0.875rem;
  }

  .empresa-hero__line {
    display: none;
  }

  .empresa-hero__content {
    width: 100%;
    padding: 28px 24px 32px;
  }

  .empresa-hero__content p {
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 100%;
  }

  /* Vídeo */
  .institutional-video-card {
    width: 92%;
    margin-top: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
  }

  /* Quem somos */
  .about-company {
    padding: 60px 0 60px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    padding-left: 0;
    gap: 28px 20px;
  }

  .stat-item {
    align-items: flex-start;
  }

  /* Seções institucionais */
  .institutional-section {
    padding: 70px 0;
  }

  .section-heading h2,
  .final-message h2 {
    font-size: 1.75rem;
  }

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

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

/* Celular pequeno ----------------------- */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stat-item {
    align-items: center;
  }

  .institutional-video-card {
    width: 100%;
    margin-top: 0;
    box-shadow: none;
    border-radius: 0;
  }
}