/* Manuais, modais e canal de denúncias — hydros */

/* Submenu «Manual do Colaborador»: texto maior e cores mais escuras */
.navbar .hydros-manuals-dropdown .nav__item .nav__item-link {
  font-size: 17px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  line-height: 44px !important;
}
.navbar .hydros-manuals-dropdown .nav__item .nav__item-link .color-gray {
  color: #334155 !important;
  font-weight: 400 !important;
}
.navbar .hydros-manuals-dropdown .nav__item .nav__item-link:hover {
  color: #14532d !important;
}
.navbar .hydros-manuals-dropdown .nav__item .nav__item-link:hover .color-gray {
  color: #166534 !important;
}
.navbar .hydros-manuals-dropdown .nav__item .nav__item-link:after {
  background-color: #166534 !important;
}

.hydros-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.hydros-modal.is-open {
  visibility: visible;
  opacity: 1;
}
.hydros-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  cursor: pointer;
}
.hydros-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
}
.hydros-modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}
.hydros-modal__header-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.hydros-modal__logo {
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
}
.hydros-modal__header-main h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
}
.hydros-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0.25rem 0.5rem;
}
.hydros-modal__close:hover {
  color: #0f172a;
}
.hydros-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
}
.hydros-modal__footer {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 0 0 6px 6px;
}
.hydros-modal__footer .btn {
  margin: 0;
}
.hydros-markdown h1,
.hydros-markdown h2,
.hydros-markdown h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
  font-weight: 600;
}
.hydros-markdown h1 {
  font-size: 1.35rem;
}
.hydros-markdown h2 {
  font-size: 1.15rem;
}
.hydros-markdown h3 {
  font-size: 1.05rem;
}
.hydros-markdown p,
.hydros-markdown li {
  margin-bottom: 0.65rem;
}
.hydros-markdown ul {
  padding-left: 1.25rem;
}
.hydros-markdown blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid #4caf50;
  background: #f1f8e9;
  font-size: 0.9rem;
}
.hydros-markdown img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.hydros-denuncia-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #0f172a;
}
.hydros-denuncia-form .form-control {
  width: 100%;
  margin-bottom: 1rem;
}
.hydros-denuncia-form .form-text {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}
.hydros-denuncia-alert {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: none;
}
.hydros-denuncia-alert.is-visible {
  display: block;
}
.hydros-denuncia-alert--ok {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}
.hydros-denuncia-alert--err {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}
body.hydros-modal-open {
  overflow: hidden;
}

/* ------------------------------------------------------------------
   Película sobre imagens de fundo (slider + secções) — texto legível
   O tema usa .bg-overlay:before com z-index:-1 (fica atrás do fundo).
   Aqui usamos ::after com z-index 0 entre o fundo e o conteúdo.
------------------------------------------------------------------ */
.slider .slide-item.bg-img,
.features-layout1.bg-img,
.banner-layout3.bg-img {
  position: relative;
  isolation: isolate;
}

.slider .slide-item.bg-img::after,
.features-layout1.bg-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(15, 23, 42, 0.58) 45%,
    rgba(15, 23, 42, 0.28) 100%
  );
}

/* Projetos: já existe overlay verde; reforço escuro por cima da foto */
.banner-layout3.bg-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(20, 83, 45, 0.45) 55%,
    rgba(74, 171, 61, 0.35) 100%
  );
}

.slider .slide-item.bg-img > .container,
.features-layout1.bg-img > .container,
.banner-layout3.bg-img > .container {
  position: relative;
  z-index: 1;
}

.slider .slide-item.bg-img .slide__subtitle,
.slider .slide-item.bg-img .slide__title,
.slider .slide-item.bg-img .slide__desc,
.slider .slide-item.bg-img .video__btn-title {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.65);
}
