/* General reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
}

:root {
  --bg-color: #fcfaff;
  --second-bg-color: #e3cfe2;
  --main-color: #5a276c;
  --text-color: #fff;
  --second-color: #666;
  --other-color: #623565;
  --contrast-color: #603f3a;
  --h1-font: 7rem;
  --h5-font: 2rem;
  --h2-font: 3.5rem;
  --p-font: 1.1rem;
  --h2-ih: 5rem;
  --menu-font: 1.3rem;
  --body-font: "Work Sans", sans-serif;
  --title-font: "Mulish", serif;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100vw;
}

body {
  width: 100vw;
  overflow-x: hidden;
}

header {
  height: 10vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: rgb(255, 255, 255);
  position: relative;
  transition: top 0.3s;
  z-index: 1000;
  width: 100vw;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%; /* Garante que a largura siga o contêiner pai */
  z-index: 1000;
  background-color: #fff;
}



.main {
  margin-top: 10vh;
}

/* Hamburger menu icon styling */
#menu-toggle {
  display: none;
}

.menu-button-container {
  display: none;
  width: 60px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  background-color: #000;
  height: 4px;
  width: 30px;
  transition: transform 400ms;
  border-radius: 2px;
  position: relative;
}

.menu-button::before {
  content: "";
  position: absolute;
  top: -8px;
}

.menu-button::after {
  content: "";
  position: absolute;
  top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  transform: rotate(45deg);
  top: 0;
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Navigation list styling */

.nav-link {
  text-decoration: none;
  color: #643456;
}

#logo-img {
  margin-left: 5%;
}

#logo-img img {
  width: 90%;
}

.navlist {
  width: 60vw;
  display: flex;
  justify-content: flex-end;
}

.navlist ul {
  display: flex;
  flex-direction: row;
  gap: 2%;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .navlist {
    margin-left: 0%;
  }

  .navlist ul {
    gap: 0% !important;
  }

  .nav-item {
    margin: 0 5px;
    font-size: 1.2rem;
  }

  ol,
  ul {
    padding-left: 1rem;
  }

  .nav-item {
    padding: 0;
    margin: 0;
  }
}

.navlist ul li {
  font-size: var(--menu-font);
  color: #5a276c;
}

.nav-item {
  margin: 0 15px;
  font-size: 1.2rem;
}

.nav-item:hover {
  background-color: #dfd5e0;
  font-weight: 400;
  color: #290935;
}

/* Responsive styling */
@media (max-width: 700px) {
  #menu-toggle {
    display: none;
  }

  .menu-button-container {
    display: flex;
    left: 90% !important;
    top: 0 !important;
    font-size: 0.8rem;
    color: #772d2d;
  }

  .nav-item {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .nav-link {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .navlist {
    display: none;
    list-style: none;
    position: absolute;
    top: 77px;
    right: 0;
    background-color: #f1e4ec;
    width: 100%;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease-in-out;
    padding-left: 0;
    gap: 2%;
    width: 100vw !important;
    align-items: center;
    justify-content: center;
    height: 25vh;

    /* vidro efeito */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(17, 25, 40, 0.25);

    border: 1px solid rgba(255, 255, 255, 0.125);
    padding: 38px;
    filter: drop-shadow(0 30px 10px rgba(0, 0, 0, 0.125));
  }

  .navlist.open {
    display: flex;
    width: 100vw !important;
    z-index: 100;
  }

  #menu-toggle:checked ~ .navlist {
    display: flex;
  }

  .navlist ul {
    flex-direction: column;
    gap: 0;
  }

  .navlist ul li {
    padding: 1rem 0;
  }
}

@media (max-width: 768px) {
  .navlist {
    margin-left: 5%;
    z-index: 1000;
    display: none;
  }

  .nav-link {
    text-decoration: none;
    color: #ffffff;
  }

  .navlist ul {
    margin-top: 5%;
  }

  .nav-item {
    margin: 0 5px;
    font-size: 1.2rem;
  }

  ol,
  ul {
    padding-left: 1rem;
  }

  .nav-item {
    padding: 0;
    margin: 0;
  }
  /* Hamburger menu icon styling */
  #menu-toggle {
    display: none;
  }

  .menu-button-container {
    display: none;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 5%;
  }

  @media (max-width: 768px) {
    /* Adicione isso para telas menores */
    .menu-button-container {
      display: flex !important;
    }
  }

  .menu-button,
  .menu-button::before,
  .menu-button::after {
    background-color: #000;
    height: 4px;
    width: 30px;
    transition: transform 400ms;
    border-radius: 2px;
    position: relative;
  }

  .menu-button::before {
    content: "";
    position: absolute;
    top: -8px;
  }

  .menu-button::after {
    content: "";
    position: absolute;
    top: 8px;
  }

  #menu-toggle:checked + .menu-button-container .menu-button::before {
    transform: rotate(45deg);
    top: 0;
  }

  #menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
  }

  #menu-toggle:checked + .menu-button-container .menu-button::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* Estilo para o estado sticky */
  .container-fluid.sticky #logo-img img {
    width: 18vw;
    /* margin-top: 5%; */
  }

  .container-fluid.sticky .navlist {
    margin-left: 0;
  }

  .container-fluid.sticky .navlist ul {
    gap: 0% !important;
  }

  .container-fluid.sticky .nav-item {
    margin: 0 0;
    font-size: 1.2rem;
  }

  .container-fluid.sticky {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
  }

  .container-fluid {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
  }

  .container-fluid.sticky .nav-item {
    margin: 0 0;
  }

  .container-fluid.sticky .nav-item:hover {
    width: 100vw !important;
    background-color: #dfd5e0;
    font-weight: 400;
    color: #290935;
  }

  .container-fluid.sticky #logo-img img,
  .container-fluid #logo-img img {
    width: 35vw;
  }

  #logo-img {
    margin-left: 5%;
  }
}

@media (max-width: 768px) {
  .container-fluid.sticky,
  .container-fluid {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw;
    display: flex;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  /* Exibe o botão hamburguer */
  .menu-button-container {
    display: flex;
    position: absolute;
    right: 10px;
    top: 34px !important;
  }

  /* Esconde o menu por padrão */
  .navlist {
    display: none;
    list-style: none;
    position: absolute;
    top: 77px;
    right: 0;
    background-color: #f1e4ec;
    width: 100%;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease-in-out;
    padding-left: 0;
    gap: 2%;
    width: 100vw !important;
    align-items: center;
    justify-content: center;
    height: 25vh;

    /* vidro efeito */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(17, 25, 40, 0.25);

    border: 1px solid rgba(255, 255, 255, 0.125);
    padding: 38px;
    filter: drop-shadow(0 30px 10px rgba(0, 0, 0, 0.125));
  }

  .container-fluid.sticky .nav-item:hover {
    width: 100vw !important;
    background-color: #dfd5e0;
    font-weight: 400;
    color: #290935;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navlist ul {
    flex-direction: column;
    gap: 10px;
  }

  /* Torna o menu visível quando ativado */
  #menu-toggle:checked ~ .navlist {
    display: flex;
  }
}
