:root {
  /* Cores */
  --bg-color: #0a3150;
  --title-color: #f8f7f8;
  --font-primary-color: #040707;
  --font-secondary-color: #dcc3a9;
  --font-color: #252021;

  /* Fonte */
  --font-family: "Inter", sans-serif;

  --px-lg: 1.5rem;
  --py-base: 1rem
}

*,
::before,
::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
}

html {
  color: var(--title-color);
  scroll-behavior: smooth;
}

.grid {
  display: grid;
}

.flex {
  display: flex;
}

.gap-1 {
  gap: 1rem;
}

.gap-2 {
  gap: 2rem;
}

.flex-column {
  flex-direction: column;
}

.desktop-only {
  display: none;
}

.text-center {
  text-align: center;
}

.scroll-mt {
  scroll-margin-top: 80px;
}

.container {
  --max-width: 375px;
  width: min(var(--max-width), 100% - var(--px-lg) * 2);
  margin-inline: auto;
}

.py-base {
  padding-block: var(--py-base);
}

.border-radius-left {
  border-radius: 1rem 1rem 0 0;
}

.border-radius-right {
  border-radius: 0 0 1rem 1rem;
}

.fw-bold {
  font-weight: bold;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

nav {
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #dcc3a9;
  transition: background-color 0.3s ease-in-out;
}

nav.scrolled {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav .navbar {
  align-items: center;
  justify-content: space-between;
}

nav .navbar a {
  color: inherit;
  font-size: 1.3rem;
  text-decoration: none;
}

nav .navbar a:hover {
  color: var(--font-secondary-color);
}

nav .navbar img {
  width: 10rem;
}

nav .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav .nav-list li a {
  display: block;
}

.menu-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #f8f7f8;
  border-radius: 2px;
  position: relative;
  transition: background-color 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px;
  background-color: #f8f7f8;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  top: 8px;
}

.menu-toggler.open .hamburger-icon {
  background-color: transparent;
}

.menu-toggler.open .hamburger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggler.open .hamburger-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

.init {
  background-color: var(--bg-color);
  min-height: 88vh;

  & .logo {
    justify-content: center;
    align-items: center;

    & h2 {
      font-size: 1rem;
      font-style: italic;
    }
  }

  & img {
    width: 20rem;
  }
}

main {
  color: #0a3150;

  & #about {
    background-color: #dcc3a940;
    padding-block: 4rem;

    & h2 {
      color: inherit;
      font-weight: bold;
      font-size: 2rem;
    }

    & .about {
      gap: 0;

      & figure {

        & img {
          margin-block: 2rem;
          text-align: center;
        }
      }

      & .content {
        background-color: #f8f7f8;
        box-shadow: rgba(0, 0, 0, 0.5) -14px 20px 10px 0px;

        & h3 {
          border-radius: 8rem 0 0 0;
          padding: 3rem;
          font-size: 1.3rem;
          font-weight: 800;
        }

        & h3 .italico {
          font-style: italic;
        }

        & p {
          margin: 0;
          padding: 1rem;

          color: inherit;
          text-align: justify;

          & strong {
            font-weight: bold;
          }
        }
      }
    }
  }

  & #planning {
    background: url(./images/1711493534530.jpg) center/cover no-repeat;

    .tituloSectionAposentadoria {
      color: #0a3150;
      text-align: center;
      margin: 0;
      padding: 1rem 2.5rem 2.5rem 2.5rem;
      font-size: 2rem;
      font-weight: 700;
    }


    .boxTextAposentadoria {
      border-radius: 3rem;
      box-shadow: 0px 1px 3px 1px #000;
      color: #0a3150;
      margin: auto;
      background-color: #f8f7f8;
    }

    .textAposentadoria {
      padding: 1rem;
      grid-column: 2/3;
      border-radius: 2rem;
      background-color: #f8f7f891;
      box-shadow: rgba(0, 0, 0, 0.5) -14px 20px 10px 0px;
    }

    .textAposentadoria p {
      max-width: 40rem;
      font-weight: 500;
      font-size: 1rem;
      margin: 1rem 1rem 1rem 0;
    }

    .listaPlanejamentoAposentadoria {
      padding: 0 1rem;
    }

    .listaPlanejamentoAposentadoria li {
      max-width: 35rem;
      box-shadow: -8px 8px 10px 0px rgba(0, 0, 0, 0.5);
      /* box-shadow: -14px 20px 10px 0px rgba(0, 0, 0, 0.5); */
      font-size: 1.2rem;
      /* font-size: 0.8rem; */
      list-style: decimal;
      color: #0a3150;
      border-radius: 1rem;
      padding: 0.1rem 0;
      background-color: #f8f7f880;
      margin: 1rem;
    }

    .listaPlanejamentoAposentadoria li p {
      font-weight: 600;
      font-size: 0.9rem;
      margin-left: 1rem;
    }
  }

  & #beneficios {
    margin-bottom: 4rem;
    color: #dcc3a9;

    & h2 {
      font-weight: bold;
      margin-block: 4rem;
      font-size: 2rem;
      color: #0a3150;
    }

    & #area-atuacao {
      justify-content: center;
      align-items: center;
      gap: 3rem;


      & .elemento {
        margin-top: 2rem;

        #btn1,
        #btn2,
        #btn3,
        #btn4,
        #btn5,
        #btn6,
        #btn7,
        #btn8 {
          visibility: hidden;
          display: none;
        }

        #btn1:checked~.secao1,
        #btn2:checked~.secao2,
        #btn3:checked~.secao3,
        #btn4:checked~.secao4,
        #btn5:checked~.secao5,
        #btn6:checked~.secao6,
        #btn7:checked~.secao7,
        #btn8:checked~.secao8 {
          display: block;
          margin-top: 1rem;
        }

        #btn1:checked,
        #btn2:checked,
        #btn3:checked,
        #btn4:checked,
        #btn5:checked,
        #btn6:checked,
        #btn7:checked,
        #btn8:checked {
          display: block;
        }

        .cards {
          justify-content: center;
          align-items: center;
          flex-direction: column;
          gap: 1rem;
        }

        .card {
          display: flex;
          user-select: none;
          padding: 1rem;
          box-shadow: 6px 2px 6px rgba(0, 0, 0, 0.34);
          border-radius: 7px;
          background-color: #0a3150;
          transition: 0.6s;
          font-weight: bold;
          align-items: center;

          & i {
            margin-left: auto;
          }
        }

        .card:hover {
          cursor: pointer;
          transform: scale(1.02);
          box-shadow: rgba(0, 0, 0, 0.5) -14px 20px 10px 0px;
        }



        .secao {
          user-select: none;
          background-color: #0a3150;
          padding: 1.8rem;
          border-radius: 2.4rem 5px 2.4rem 5px;
          display: none;
          box-shadow: 6px 2px 6px rgba(0, 0, 0, 0.34);

          /* & p {
            font-weight: bold;
          } */

          & .content {
            gap: 2rem;
          }

          & .text-content {
            background-color: #dcc3a9;
            color: #0a3150;
            border: none;
            padding: 1rem;
            border-radius: 2.4rem 5px 2.4rem 5px;
            justify-content: space-around;

            & h3 {
              font-size: 1.5rem;
              font-weight: bold;
            }

            & strong {
              font-weight: bold;
            }
          }
        }

        form {
          flex-direction: column;
          background: url(./images/logo.ico) center/contain no-repeat;

          & label {
            color: #f8f7f8;
          }

          & input {
            padding: 0.5rem;
            border-radius: 0.4rem;
            border: 1px solid var(--bg-color);
          }

          & select {
            padding: 0.5rem;
            border-radius: 0.4rem;
            color: var(--bg-color);
          }

          & button {
            margin-top: 0.3rem;
            padding: 0.7rem;
            background-color: var(--font-secondary-color);
            color: var(--bg-color);
            font-size: 22px;
            font-weight: 500;
            border-radius: 0.4rem;
            border: 1px solid var(--bg-color);
            transition: 0.6s;
            & i {
              margin-right: .5rem;
            }
          }

          & button:hover {
            background-color: transparent;
            border: 1px solid var(--font-secondary-color);
            color: var(--font-secondary-color);
            cursor: pointer;
          }
        }
      }
    }

  }

  & #contato {
    background-color: #dcc3a940;
    padding-block: 4rem;
    user-select: none;
    background-image: url(./images/logo.ico);
    background-repeat: no-repeat;
    background-position: center;

    & h2 {
      font-weight: bold;
      font-size: 2rem;
      margin-bottom: 4rem;
    }

    & fieldset {
      padding: 1.5rem;
      border-radius: .5rem 1.8rem;
      width: 100%;
      margin-inline: auto;
      border: 1px solid var(--font-color);
      box-shadow: 0 0 2rem #949494ce;
      backdrop-filter: blur(1.5px);
    }

    & input {
      padding: 0.7rem;
      border-radius: 0.4rem;
      border: 1px solid var(--bg-color);
    }

    & label {
      font-size: 18px;
      font-weight: 500;
    }

    & button {
      padding: 0.7rem;
      background-color: var(--bg-color);
      color: var(--font-secondary-color);
      border: 1px solid var(--bg-color);
      font-size: 1.375rem;
      font-weight: 500;
      border-radius: 0.4rem;
      transition: 0.6s;

      & i {
        margin-right: .5rem;
      }
    }

    & textarea {
      height: 7rem;
      border-radius: 0.4rem;
    }

    & button:hover {
      color: var(--bg-color);
      background-color: transparent;
      cursor: pointer;
    }
  }

}

.footer {
  background-color: #0a3150;

  & .rgProfissional {
    padding-top: 1.3rem;
    text-align: center;
  }

  & .OAB {
    color: #dcc3a9;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    padding: 0 2rem 2rem 2rem;
  }
}

.rodape {
  padding-bottom: 1rem;
  border-bottom: solid 1px rgb(31, 70, 103);
  grid-auto-flow: row;
  gap: 2rem;
  justify-content: center;

  & .title {
    color: #dcc3a9;
    font-size: 1.5rem;
    font-weight: 700
  }

  & .marca {
    list-style: none;

    & h3 {
      color: #f8f7f8;
      text-align: start;
      font-size: 2.9rem;
      font-weight: 700;
    }

    & img {
      width: 20rem;
    }

    & .slogan {
      padding-top: 1rem;
      font-size: 1rem;
    }
  }

  & a {
    color: #f8f7f8;
    font-weight: 700;

    &:hover {
      color: #dcc3a9;
    }

    & i {
      margin-right: .5rem;
    }
  }

  & .contatos {
    list-style: none;
    gap: 1rem;

    & li {
      font-weight: 800;
    }
  }

  & .socialLinks {
    list-style: none;
    gap: 1rem;
  }
}

.consideracoesFinais {
  padding: 1.7rem;
  background-color: #0a3150;
  margin: auto;
  font-size: 0.6rem;

  & h4 {
    text-align: center;
    color: rgb(42, 93, 135);

    & a {
      font-weight: 600;
      color: rgb(42, 93, 135);
      font-style: italic;
      text-decoration: underline;
    }
  }
}

@media (width < 64em) {
  .container {
    --max-width: 64rem;
  }


  nav .navbar .nav-list {
    display: none;
    padding-block: 1rem;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-color);
    border-top: 1px solid #dcc3a9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  nav .navbar .nav-list.active {
    /* Classe para mostrar o menu */
    display: flex;
    /* Mostra o menu */
    opacity: 1;
    visibility: visible;
  }

  nav .navbar .nav-list li {
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  nav .navbar .nav-list li:last-child {
    border-bottom: none;
  }

  .menu-toggler {
    display: block;
  }
}

@media (width >=48em) and (width < 64em) {
  .init {
    & img {
      width: 30rem;
    }
    & .logo {
      & h2 {
        font-size: 1.5rem;
      }
    }
  }
  .rodape {
    grid-auto-flow: column;
    justify-content: space-between;
  }
}

@media (width >=64em) {
  :root {
    --px-lg: 2rem;
    --py-base: 1.5rem
  }

  .container {
    --max-width: 80rem;
  }

  .desktop-only {
    display: inline;
  }

  .border-radius-left {
    border-radius: 8rem 0 0 8rem;
  }

  .border-radius-right {
    border-radius: 0 8rem 8rem 0;
  }

  .init {
    & img {
      width: 40rem;
    }
    & .logo {
      & h2 {
        font-size: 2.5rem;
      }
    }
  }

  main {
    & #about {
      & h2 {
        font-size: 3rem;
        margin-block: 3rem;
      }

      & .about {
        gap: 2rem;
        grid-template-columns: repeat(2, 1fr);

        & figure {
          & img {
            text-align: center;
          }
        }

        & .content {
          align-self: center;

          & h3 {
            font-size: 1.5rem;
          }

          & p {
            font-size: 1.2rem;
          }

          & .primeiroParagrafo {
            padding: 3rem 3rem 2rem 2rem;
          }

          & .ultimoParagrafo1 {
            padding-bottom: 4rem;
          }

          & .ultimoParagrafo2 {
            padding: 2rem 4rem 3rem 2rem;
          }
        }
      }
    }

    & #planning {
      background: url(./images/1711493534530.jpg) center/cover no-repeat;
      padding-block: 5rem;

      & .planning {
        & .box-aposentadoria {
          grid-template-columns: repeat(2, 1fr);
        }
      }
    }

    & #beneficios {
      & #area-atuacao {
        & .elemento {
          & .secao {
            & .content {
              grid-template-columns: repeat(2, 1fr);
            }
          }
        }
      }

      & h2 {
        font-size: 3rem;
      }
    }

    & #contato {
      & h2 {
        font-size: 3rem;
      }

      & fieldset {
        width: 70%;
      }
    }
  }

  .rodape {
    grid-auto-flow: column;
    justify-content: space-between;
  }
}

.btn-whatsapp {
  display: block;
  width: fit-content;
  margin: 2rem auto 1rem;
  padding: 1rem 1.5rem;
  background-color: #25D366; /* Cor do WhatsApp */
  color: white;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: scale(1.05);
}

.btn-whatsapp i {
  margin-right: 0.8rem;
}