@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Smooch+Sans:wght@100..900&display=swap');

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: #F2F2F2;
}

/* CORREÇÃO: Remover padding-top do main */
main {
  padding-top: 0 !important;
  transition: none;
}

a {
  text-decoration: none;
}

/* ===== HEADER FIXO ===== */
#cabecalho {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  color: #fff;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
  background: rgba(23, 23, 23, 0.27);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 70px;
}

#cabecalho:hover {
  background: rgba(32, 32, 32, 0.8);
  backdrop-filter: blur(8px);
}

#cabecalho.scrolled {
  background: rgba(23, 23, 23, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 5px 20px;
  min-height: 60px;
}

/* ===== LOGO E NOME ===== */
#emp {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

#nomemph {
  white-space: nowrap;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 550;
  font-family: "Manrope", sans-serif;
  transition: all 0.3s ease;
  line-height: 1.2;
}

#cabecalho.scrolled #nomemph {
  font-size: clamp(1.1rem, 3.5vw, 1.7rem);
}

#imgl {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  line-height: 0;
  padding: 0;
  margin: 0;
}

#logoheader {
  width: 70px;
  height: 70px;
  border-radius: 0;
  background-color: transparent;
  object-fit: contain;
  object-position: center;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  box-shadow: none;
}

#cabecalho.scrolled #logoheader {
  width: 55px;
  height: 55px;
}

/* ===== MENU HAMBURGER ===== */
.menu-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1002;
}

.menu-hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.menu-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== MENU DE NAVEGAÇÃO (DESKTOP) ===== */
#linkssecoes {
  display: flex;
  align-items: center;
}

#ulsecoes {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex-wrap: nowrap;
}

#ulsecoes li {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

#ulsecoes li:hover {
  color: rgb(248, 38, 52);
  background-color: rgba(255, 255, 255, 0.15);
  padding-left: 16px;
  padding-right: 16px;
  transform: scale(0.98);
  font-weight: 700;
}

#cabecalho.scrolled #ulsecoes li {
  padding: 6px 10px;
  font-size: 0.85rem;
}

/* ===== OVERLAY ===== */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* ===== CORREÇÃO PARA A PRIMEIRA SEÇÃO ===== */
#inicio {
  position: relative;
  margin-top: 0;
  padding-top: 0;
}

#inicio #inc {
  padding-top: 90px;
  box-sizing: border-box;
  height: 100vh;
}

#cabecalho.scrolled ~ main #inicio #inc {
  padding-top: 70px;
}

section {
  scroll-margin-top: 90px;
}

#cabecalho.scrolled ~ main section {
  scroll-margin-top: 70px;
}

/* ===== MEDIA QUERIES PARA DESKTOP ===== */
@media (max-width: 1200px) {
  #ulsecoes li {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 1100px) {
  #ulsecoes li {
    padding: 8px 8px;
    font-size: 0.8rem;
  }
  
  #nomemph {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  }
  
  #logoheader {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 950px) {
  #ulsecoes {
    gap: 2px;
  }
  
  #ulsecoes li {
    padding: 6px 6px;
    font-size: 0.75rem;
  }
}

/* ===== MOBILE - ATÉ 750px ===== */
@media (max-width: 750px) {
  /* Ajustes de padding */
  #inicio #inc {
    padding-top: 75px;
  }
  
  section {
    scroll-margin-top: 75px;
  }
  
  #cabecalho.scrolled ~ main #inicio #inc {
    padding-top: 65px;
  }
  
  #cabecalho.scrolled ~ main section {
    scroll-margin-top: 65px;
  }

  /* Header mais compacto */
  #cabecalho {
    padding: 10px 15px;
    background: rgba(23, 23, 23, 0.98);
    backdrop-filter: blur(10px);
    min-height: 65px;
  }

  #cabecalho.scrolled {
    padding: 5px 15px;
    min-height: 55px;
  }

  #logoheader {
    width: 50px;
    height: 50px;
  }

  #cabecalho.scrolled #logoheader {
    width: 45px;
    height: 45px;
  }

  #nomemph {
    font-size: clamp(1rem, 4vw, 1.4rem);
  }

  #cabecalho.scrolled #nomemph {
    font-size: clamp(0.9rem, 3.5vw, 1.2rem);
  }

  /* Mostrar hamburger */
  .menu-hamburger {
    display: flex;
  }

  /* Reset do menu desktop e configuração do menu mobile */
  #linkssecoes {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    backdrop-filter: blur(10px);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding: 80px 15px 30px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    display: block;
  }

  #linkssecoes.active {
    right: 0;
  }

  /* Container dos links */
  #ulsecoes {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding: 0;
  }

  /* Estilo dos links no mobile */
  #ulsecoes li {
    width: 100%;
    padding: 16px 18px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    margin: 0;
    box-sizing: border-box;
  }

  /* Efeito hover nos links */
  #ulsecoes li:hover,
  #ulsecoes li:active {
    padding-left: 25px;
    background-color: #df2935;
    color: #fff;
    border-color: #df2935;
    transform: scale(1.02);
  }

  /* Garantir que todos os links sejam visíveis */
  #ulsecoes li:last-child {
    margin-bottom: 20px;
  }

  /* Ajuste para telas muito pequenas em altura */
  @media (max-height: 600px) {
    #linkssecoes {
      padding-top: 70px;
    }
    
    #ulsecoes li {
      padding: 12px 16px;
      font-size: 1rem;
    }
  }
}

/* ===== TELEMÓVEIS PEQUENOS (até 480px) ===== */
@media (max-width: 480px) {
  #inicio #inc {
    padding-top: 65px;
  }
  
  section {
    scroll-margin-top: 65px;
  }
  
  #cabecalho.scrolled ~ main #inicio #inc {
    padding-top: 55px;
  }
  
  #cabecalho.scrolled ~ main section {
    scroll-margin-top: 55px;
  }

  #cabecalho {
    padding: 8px 12px;
    min-height: 60px;
  }

  #cabecalho.scrolled {
    padding: 5px 12px;
    min-height: 50px;
  }

  #logoheader {
    width: 45px;
    height: 45px;
  }

  #cabecalho.scrolled #logoheader {
    width: 40px;
    height: 40px;
  }

  #nomemph {
    font-size: clamp(0.9rem, 3.5vw, 1.2rem);
  }

  #linkssecoes {
    width: 90%;
    max-width: 280px;
    padding: 70px 12px 20px;
  }

  #ulsecoes li {
    padding: 14px 16px;
    font-size: 1rem;
  }
}

/* ===== ORIENTAÇÃO PAISAGEM EM MOBILE ===== */
@media (max-height: 500px) and (max-width: 750px) {
  #linkssecoes {
    padding-top: 60px;
  }
  
  #ulsecoes {
    gap: 5px;
  }
  
  #ulsecoes li {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

/* ===== GARANTIAS ===== */
#logoheader,
#imgl,
#emp {
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}

.no-background {
  background-color: transparent !important;
  background-image: none !important;
}