:root {
  --header-height: 80px;
  --header-height-mobile: 64px;
  --menu-transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Estilos para screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #006fc9, #005CA9 );
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  padding: 0 20px;
}

.header__logo img {
  height: 48px;
  width: auto;
  max-width: 180px;
  transition: transform 0.3s;
}

.header__logo:hover img {
  transform: scale(1.05);
}

.header__nav {
  display: flex;
  align-items: center;
  z-index: 1002; /* Aumente para ficar acima do overlay */
}

.header__menu {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
}

.header__menu-item {
  display: flex;
  align-items: center;
}

.header__menu a {
  position: relative;
  color: white;
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: var(--semi-bold);
  letter-spacing: 0.5px;
  transition: color 0.2s;
  padding: 8px 0;
}

.header__menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: rgb(0, 221, 255);
  transition: width 0.3s;
}

.header__menu a:hover::after,
.header__menu a:focus::after {
  width: 100%;
}

.header__menu a:hover {
  color: rgb(0, 221, 255);
}

.header__menu a:focus {
  outline: 2px solid var(--cor-blue-light);
  outline-offset: 4px;
  border-radius: 2px;
}
.header-barra-zap {
  background: linear-gradient(90deg, #2EBC36, #25A02C);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}
.header-barra-zap-cont {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  width: 85vw;
}
.header-zap-texto {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-barra-zap h2 {
  font-weight: 400;
  font-size: 16px;
}
.header-barra-zap a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #2EBC36, #1a701e);
  border: 1px solid white;
  border-radius: 50px;
  padding: 5px 20px;
  position: relative;
  padding-left: 40px;
  color: white;
  font-weight: 600;
  font-size: 16px;
  transition: 0.3s ease;
}
.header-barra-zap a:hover {
  transform: scale(1.1);
}
.header-barra-zap a img {
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: auto;
}
.header__dot {
  color: var(--cor-blue-light);
  margin-left: 2px;
  font-size: 17px;
}

/* HAMBURGUER */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  z-index: 1003;
  position: relative;
  transition: transform 0.3s;
}

.header__hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: rgb(0, 200, 255);
  border-radius: 2px;
  transition: 0.3s;
  transform-origin: center;
}

.header__hamburger:hover span {
  width: 24px;
}

.header__hamburger:hover span:nth-child(1) {
  transform: translateY(-2px);
}

.header__hamburger:hover span:nth-child(3) {
  transform: translateY(2px);
}

.header__hamburger.active {
  transform: rotate(180deg);
}

.header__hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.header__hamburger:focus {
  outline: 2px solid var(--cor-blue-light);
  outline-offset: 4px;
  border-radius: 4px;
}

.btn-zap-flutuante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  background: #25D366;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s;
}
.btn-zap-flutuante img {
  width: 32px;
  height: 32px;
}

.fechar-barra-zap {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
  min-height: 40px;
  min-width: 40px;
}
.fechar-barra-zap:hover {
  color: #ddd;
}

@media (max-width: 1040px) {
  .header__menu {
    gap: 10px;
  }
  .header__menu a {
    font-size: 13px;
  }
}

@media (max-width: 940px) {
  .header__menu a {
    font-size: 11px;
  }
  .header__menu {
    gap: 5px;
  }
}


/* OVERLAY E SCROLL LOCK */
.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.header__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999; /* Aumente para ficar acima do overlay */
}

.header__overlay.active {
  opacity: 1;
  visibility: visible;
}

/* MENU MOBILE */
@media (max-width: 840px) {
  .header__container {
    height: var(--header-height-mobile);
  }
  
  .header__logo img {
    height: 36px;
  }
  
  .header__hamburger {
    display: flex;
  }
  
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(85vw, 300px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transform: translateX(100%);
    transition: var(--menu-transition);
    z-index: 1001;
    padding-top: calc(var(--header-height-mobile) + 20px);
    will-change: transform;
  }
  
  .header__nav.active {
    transform: translateX(0);
  }
  
  .header__menu {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    padding: 0 24px;
  }
  
  .header__menu-item {
    width: 100%;
  }
  
  .header__menu a {
    font-size: 18px;
    color: var(--cor-blue);
    width: 100%;
    display: block;
    padding: 12px 0;
  }
  .header-barra-zap-cont {
    gap: 5px;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .header-barra-zap h2 {
    text-align: right;
    font-size: 14px;
  }
  .header-barra-zap a {
    font-size: 13px;
    padding-left: 25px;
  }
  .header-barra-zap a img {
    width: 25px;
  }
  .header-barra-zap-cont {
    width: 92vw;
  }
  #hero-section {
    margin-top: 0;
  }
}

@media (max-width: 635px) {
  .header-barra-zap h2 {
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .header-barra-zap h2 {
    font-size: 10px;
  }
  .header-barra-zap h2 {
    text-align: center;
    max-width: max-content;
  }
  .header-zap-texto {
    gap: 5px;
    flex-direction: column;
  }
}

  