/* ==========================================================
   TEOTONIO — BLOCO EDITORIAL DE VIDEO + MODAL YOUTUBE
   Reutilizavel em Home, Sobre e paginas internas.
   ========================================================== */

.video-story {
  position: relative;
  overflow: hidden;
}

.video-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(46px, 7vw, 110px);
  align-items: center;
}

.video-story__copy {
  max-width: 650px;
}

.video-story__copy .lead {
  max-width: 60ch;
}

.video-story__note {
  margin: 30px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(179, 126, 33, .34);
  color: #6c655d;
  font-size: .82rem;
  line-height: 1.65;
  letter-spacing: .02em;
}

.video-story__actions {
  margin-top: 28px;
}

.video-story__media {
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.video-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0C0C0C;
  border: 1px solid rgba(179, 126, 33, .22);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.18) 52%, rgba(0,0,0,.82) 100%);
  pointer-events: none;
}

.video-cover__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
  transition: transform .45s ease, filter .35s ease;
}

.video-cover:hover .video-cover__image,
.video-cover:focus-visible .video-cover__image {
  transform: scale(1.025);
  filter: brightness(.92);
}

.video-cover__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(205, 170, 71, .92);
  border-radius: 50%;
  background: rgba(12, 12, 12, .80);
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}

.video-cover:hover .video-cover__play,
.video-cover:focus-visible .video-cover__play {
  background: #B37E21;
  border-color: #B37E21;
  transform: translate(-50%, -50%) scale(1.05);
}

.video-cover__play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
  fill: currentColor;
}

.video-cover__meta {
  position: absolute;
  z-index: 3;
  left: clamp(22px, 4vw, 36px);
  right: clamp(22px, 4vw, 36px);
  bottom: clamp(22px, 4vw, 34px);
}

.video-cover__meta small {
  display: block;
  margin-bottom: 9px;
  color: #CDAA47;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.video-cover__meta strong {
  display: block;
  max-width: 18ch;
  color: #fff;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.25;
}

.video-cover:focus-visible,
.js-video-open:focus-visible {
  outline: 2px solid #B37E21;
  outline-offset: 4px;
}

/* MODAL ---------------------------------------------------- */

.video-modal {
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}

.video-modal::backdrop {
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(5px);
}

.video-modal__panel {
  position: relative;
  display: grid;
  place-items: center;
  min-width: min(92vw, 520px);
}

.video-modal__player {
  width: min(92vw, 520px);
  max-height: 88vh;
  aspect-ratio: 9 / 16;
  background: #000;
  border: 1px solid rgba(205, 170, 71, .38);
}

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

.video-modal__close {
  position: absolute;
  z-index: 2;
  top: -42px;
  right: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(205, 170, 71, .55);
  border-radius: 50%;
  background: #0C0C0C;
  color: #fff;
  font: 400 24px/1 Arial, sans-serif;
  cursor: pointer;
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
  background: #B37E21;
  border-color: #B37E21;
  outline: none;
}

body.video-modal-open {
  overflow: hidden;
}

@media (max-width: 850px) {
  .video-story__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .video-story__copy,
  .video-story__media {
    max-width: none;
  }

  .video-story__media {
    justify-self: stretch;
  }

  .video-cover {
    aspect-ratio: 4 / 5;
    max-height: 720px;
  }

  .video-cover__meta strong {
    max-width: 22ch;
  }
}

@media (max-width: 520px) {
  .video-story__note {
    font-size: .78rem;
  }

  .video-cover__play {
    width: 66px;
    height: 66px;
  }

  .video-modal__player {
    width: min(90vw, calc(82vh * 9 / 16));
    max-height: 82vh;
  }

  .video-modal__panel {
    min-width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-cover__image,
  .video-cover__play {
    transition: none;
  }
}


/* VIDEO INSTITUCIONAL — SOBRE NOS */

.video-story {
  background: #fff;
  color: #1C1B1B;
}

.video-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.video-story__copy h2 {
  margin: 14px 0 24px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  line-height: 1.16;
}

.video-story__highlight {
  display: block;
  color: #B37E21;
}

.video-story__rule {
  display: block;
  width: 70px;
  height: 2px;
  background: #B37E21;
  margin-bottom: 28px;
}

.video-story__copy .lead {
  margin-bottom: 18px;
}

.video-story__description {
  margin-top: 16px;
  line-height: 1.7;
  color: #504536;
}

.video-story__link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid #B37E21;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: #0C0C0C;
}

.video-story__link span {
  color: #B37E21;
}

/* CAPA HORIZONTAL */

.video-story .video-cover {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0C0C0C;
}

.video-story .video-cover__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-story .video-cover__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(205,170,71,.8);
  border-radius: 50%;
  background: rgba(12,12,12,.82);
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}

.video-story .video-cover__play svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.video-story .video-cover:hover .video-cover__play {
  background: #B37E21;
  transform: translate(-50%, -50%) scale(1.06);
}

.video-story .video-cover__meta {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 44px 24px 22px;
  color: #fff;
  background: linear-gradient(
    transparent,
    rgba(0,0,0,.82)
  );
}

.video-story .video-cover__meta small {
  color: #CDAA47;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.video-story .video-cover__meta strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

/* MODAL HORIZONTAL */

.video-modal {
  position: fixed;
  inset: 0;
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.video-modal::backdrop {
  background: rgba(0,0,0,.88);
}

.video-modal__panel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__player,
.video-modal__player iframe {
  width: 100%;
  height: 100%;
}

.video-modal__player iframe {
  display: block;
  border: 0;
}

.video-modal__close {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(100% + 10px);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.55);
  background: #0C0C0C;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

body.video-modal-open {
  overflow: hidden;
}

@media (max-width: 850px) {
  .video-story__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .video-story .video-cover__play {
    width: 58px;
    height: 58px;
  }

  .video-modal {
    width: calc(100vw - 20px);
  }
}

