:root {
  --Primary-Color: #44d62c;
  --Dark-Color: #0a100d;
  --Black-Color: #1a1a1a;
  --Bg-White-Color: #f9f9f9;
  --Gray-Color: #a3a3a3;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 1rem;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow:
    0 0 0 0.1rem white,
    0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  /*margin-bottom: 60px;*/
  font-family: "Montserrat";
}

body.menu-open {
  overflow: hidden;
}

#navbar {
  width: 100%;
  z-index: 1030;
}

section {
  position: relative;
  height: 100vh;
  background-color: var(--Bg-White-Color);
}
@media (max-width: 425px) {
  section {
    position: relative;
    height: 100%;
    background-color: var(--Bg-White-Color);
  }
}

.bg_dark {
  background-color: var(--Dark-Color);
}

.bg_green {
  background-color: var(--Primary-Color);
}

.rounded_1 {
  border-radius: 0.8rem;
}

.text_green {
  color: var(--Primary-Color);
}
.text_gray {
  color: var(--Gray-Color);
}

.active {
  color: var(--Primary-Color) !important;
  font-weight: 700 !important;
}

.cases-pagination > span {
  background: var(--Primary-Color) !important;
}

/* Cookie popup */
#cookieConsent {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 2rem);
  max-width: 720px;
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.cookie-popup {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.cookie-popup__icon {
  flex-shrink: 0;
  color: var(--Primary-Color);
  display: flex;
}

.cookie-popup__text {
  flex: 1;
  font-size: 0.82rem;
  color: #444;
  line-height: 1.5;
}

.cookie-popup__link {
  color: var(--Primary-Color);
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.25rem;
  white-space: nowrap;
}

.cookie-popup__link:hover {
  text-decoration: underline;
}

.cookie-popup__btn {
  flex-shrink: 0;
  background: var(--Primary-Color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.cookie-popup__btn:hover {
  background: #38b825;
}

.cookie-popup__close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.cookie-popup__close:hover {
  color: #333;
}

@media (max-width: 576px) {
  .cookie-popup {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .cookie-popup__btn {
    width: 100%;
    text-align: center;
  }
}

.btn-uma-green {
  color: #fff;
  font-weight: 500;
  background: var(--Primary-Color);
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
  border: 2px solid var(--Primary-Color);
  border-radius: 10px;
}

.btn-uma-green:hover {
  background: transparent;
  color: var(--Primary-Color);
}

.form-control {
  border-radius: 0.7rem !important;
}

#backTop {
  background-color: transparent;
  border: 4px solid var(--Primary-Color);
  height: 50px;
  width: 50px;
  border-radius: 100%;
  position: fixed;
  bottom: 110px;
  right: 46px;
  transition:
    background-color 0.3s,
    opacity 0.5s,
    visibility 0.5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

#backTop:hover {
  cursor: pointer;
  background-color: var(--Primary-Color);
}

#backTop:hover svg {
  fill: white !important;
}

#backTop:active {
  background-color: var(--Primary-Color);
}

#backTop:active svg {
  fill: white !important;
}

#backTop.show {
  opacity: 1;
  visibility: visible;
}

/* ---- Header nav links: override Bootstrap .nav-link ---- */
#navbar .site-header__link,
#navbar .nav-link.site-header__link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Linha animada no hover */
#navbar .site-header__link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: #fff;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

#navbar .site-header__link:hover,
#navbar .site-header__link:focus-visible {
  color: #fff !important;
  text-decoration: none;
}

#navbar .site-header__link:hover::after,
#navbar .site-header__link:focus-visible::after {
  width: calc(100% - 2rem);
}

#navbar .site-header__link.active,
#navbar .nav-link.site-header__link.active {
  color: var(--Primary-Color) !important;
  font-weight: 700;
  text-decoration: none;
}

#navbar .site-header__link.active::after {
  width: calc(100% - 2rem);
  background: var(--Primary-Color);
}
