/* ========================================
   EMPRESA ANTIGA — CSS TEMPORÁRIO
======================================== */

.old-empresa-page {
  padding-top: 82px;
  background: #faf8f5;
  color: #5a4736;
}

.oldempresa-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   BANNER
========================= */

.old-empresa-banner {
  height: 360px;
  overflow: hidden;
  background: #79472a;
}

.old-empresa-banner img {
width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  
}

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

.old-historia {
  padding: 75px 0 55px;
  background: #ffeccd;
}

.old-titulo {
  margin-bottom: 35px;
  text-align: center;
}

.old-titulo span,
.old-video-intro span,
.old-proposito-titulo span {
  display: block;
  margin-bottom: 9px;
  color: #e79058;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.old-titulo h1 {
  margin: 0;
  color: #e79058;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
}

.old-linha-titulo {
  width: 260px;
  height: 1px;
  margin: 18px auto 0;
  background: #e79058;
}

.old-historia-texto {
  max-width: 900px;
  margin: 0 auto;
}

.old-historia-texto p {
  margin: 0 0 20px;
  color: #643b00;
  font-size: 16px;
  line-height: 1.65;
  text-align: justify;
}

/* =========================
   VÍDEO
========================= */

.old-video {
  padding: 65px 0 90px;
  background: #faf8f5;
}

.old-video-intro {
  margin-bottom: 25px;
  text-align: center;
}

.old-video-intro h2 {
  margin: 0;
  color: #79472a;
  font-size: clamp(27px, 2.5vw, 36px);
}

.old-video-link {
  position: relative;
  display: block;
  width: min(760px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: #50331f;
  box-shadow: 0 18px 42px rgba(65, 42, 25, 0.2);
  text-decoration: none;
}

.old-video-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
}

.old-video-link:hover img {
  transform: scale(1.04);
}

.old-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(41, 25, 15, 0.48),
    rgba(41, 25, 15, 0.14)
  );
}

.old-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(231, 144, 88, 0.95);
  color: #fff;
  font-size: 24px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.old-video-link:hover .old-video-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.old-video-texto {
  position: absolute;
  left: 30px;
  bottom: 28px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

/* =========================
   MISSÃO / VISÃO / VALORES
========================= */

.old-proposito {
  padding: 80px 0 100px;
  background: #f7f3ee;
}

.old-proposito-titulo {
  margin-bottom: 38px;
  text-align: center;
}

.old-proposito-titulo h2 {
  margin: 0;
  color: #79472a;
  font-size: clamp(30px, 2.7vw, 42px);
}

.old-proposito-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.old-proposito-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, rgba(240, 235, 228, 0.92));
  box-shadow: 0 18px 38px rgba(65, 64, 25, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.old-proposito-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px rgba(65, 64, 25, 0.22);
}

.old-proposito-valores {
  grid-column: auto;
  width: auto;
  justify-self: stretch;
}

.old-proposito-icone {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  border-radius: 24px 0 24px 24px;
  background: #e79058;
}

.old-proposito-icone img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.old-proposito-conteudo {
  width: 100%;
  flex: 1;
  min-width: 0;
}

.old-proposito-cabecalho {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.old-proposito-cabecalho h3 {
  margin: 0;
  color: #6b492a;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.old-proposito-cabecalho img {
  min-width: 35px;
  height: 11px;
  flex: 1;
  object-fit: fill;
  opacity: 0.55;
}

.old-proposito-card p {
  margin: 0;
  color: #5a4736;
  font-size: 14px;
  line-height: 1.55;
}

/* =========================
   TABLET
========================= */

@media (max-width: 950px) {
  .old-empresa-banner {
    height: 290px;
  }

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

  .old-proposito-valores {
    grid-column: 1 / -1;
    width: min(520px, 100%);
    justify-self: center;
  }
}

/* =========================
   CELULAR
========================= */

@media (max-width: 650px) {
  .oldempresa-container {
    width: min(100% - 30px, 1120px);
  }

  .old-empresa-banner {
    height: 220px;
  }

  .old-historia {
    padding: 60px 0 45px;
  }

  .old-historia-texto p {
    font-size: 15px;
    text-align: left;
  }

  .old-video {
    padding: 55px 0 65px;
  }

  .old-video-link {
    aspect-ratio: 16 / 10;
  }

  .old-video-play {
    width: 62px;
    height: 62px;
    font-size: 20px;
  }

  .old-video-texto {
    left: 20px;
    bottom: 20px;
    font-size: 16px;
  }

  .old-proposito {
    padding: 65px 0 75px;
  }

  .old-proposito-grid {
    grid-template-columns: 1fr;
  }

  .old-proposito-card,
  .old-proposito-valores {
    grid-column: auto;
    width: auto;
  }

  .old-proposito-card {
    min-height: auto;
    padding: 22px 18px;
    gap: 16px;
  }

  .old-proposito-icone {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
    border-radius: 22px 0 22px 22px;
  }

  .old-proposito-icone img {
    width: 40px;
    height: 40px;
  }

  .old-proposito-cabecalho h3 {
    font-size: 19px;
  }
}

/* MODAL DO VÍDEO */

.old-video-link {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.modal-video {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.modal-video.ativo {
  display: flex;
}

.modal-video-fundo {
  position: absolute;
  inset: 0;
  background: rgba(21, 14, 10, 0.84);
}

.modal-video-caixa {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
}

.modal-video-player {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.modal-video-player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.modal-video-fechar {
  position: absolute;
  top: -46px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #79472a;
  font-size: 21px;
  cursor: pointer;
}