/* Importação de fontes otimizada */
@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Monsieur+La+Doulaise&family=Open+Sans:wght@400;600;700&display=swap");

/* Variáveis CSS */
:root {
  --dourado: #d7b661;
  --gelo: #f5f7fa;
  --texto: #333333;
  --branco: #ffffff;
  --sombra: rgba(0, 0, 0, 0.1);

  /* Tipografia */
  --fonte-principal: "Open Sans", sans-serif;
  --fonte-titulos: "Merriweather", serif;
  --fonte-logo: "Monsieur La Doulaise", cursive;

  /* Espaçamentos */
  --espacamento-padrao: 20px;
  --espacamento-grande: 40px;
  --espacamento-maior: 60px;

  /* Breakpoints */
  --mobile: 768px;
  --tablet: 1024px;

  /* Transições */
  --transicao: 0.3s ease;
}

/* Reset e configurações globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  display: none;
}
.main {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--gelo);
  color: #333;
}

.header {
  background-color: var(--gelo);
  height: 5rem;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
}
.logomarca {
  display: flex;
  align-items: center;
  font-family: "Monsieur La Doulaise", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  color: var(--dourado);
}
nav {
  padding: 10px 20px;
  position: relative;
  z-index: 1000;
}

.menu-toggle {
  font-size: 1.8em;
  background: none;
  color: var(--dourado);
  border: none;
  cursor: pointer;
  display: none;
  z-index: 1001;
  position: relative;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nav-links a {
  color: var(--dourado);
  text-decoration: none;
  padding: 15px 20px;
  display: block;
  transition: background 0.3s;
  font-family: Arial, sans-serif;
  font-size: 18px;
}
.nav-links a:hover {
  color: #333;
  transition: 0.9s;
}
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)),
    url("./images/malhete.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding-left: 40px;
}

.hero h1 {
  font-size: 3em;
  color: #ffffff;
  padding: 10px;
}

.hero p {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #ffffff;
  padding: 10px;
}
.btn {
  background-color: var(--dourado);
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  font-size: 1.11em;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
  width: 300px;
  padding: 12px;
  text-align: center;
  animation: balanca 1s ease-in-out infinite;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: both;
  /* alternando a pausa com steps */
  animation-name: animacao-pulso;
  animation-duration: 4s; /* 1s animado + 3s parado */
  animation-timing-function: linear;
}

@keyframes animacao-pulso {
  0% {
    transform: rotate(0deg);
  }
  5% {
    transform: rotate(5deg);
  }
  10% {
    transform: rotate(-5deg);
  }
  15% {
    transform: rotate(5deg);
  }
  20% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg); /* parado de 20% a 100% = 80% do tempo */
  }
}
.btn:hover {
  background-color: #ffffff;
  color: var(--dourado);
}
.sobre {
  padding: 80px 20px;
  background-color: var(--dourado);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sobre-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

.sobre-imagem {
  flex: 0 0 300px;
}

.sobre-imagem img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sobre-conteudo {
  flex: 1;
  color: white;
}

.sobre h3 {
  font-size: 2em;
  margin-bottom: 20px;
  font-weight: 600;
}

.sobre-info {
  margin-bottom: 30px;
}

.sobre-info .nome {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 10px;
}

.sobre-info .titulo {
  font-size: 1.2em;
  margin-bottom: 5px;
  opacity: 0.9;
}

.sobre-info .oab {
  font-size: 1.1em;
  opacity: 0.9;
}

.sobre-texto p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.1em;
  text-align: justify;
  font-family: "Open Sans", sans-serif;
}

/* Como Funciona */
.como-funciona {
  padding: 60px 20px;
  background-color: var(--dourado);
  color: white;
  text-align: center;
}

.como-funciona h2 {
  /*font-size: 2.5em;*/
  margin-bottom: 50px;
  color: rgb(255, 255, 255);
  margin: auto;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  flex: 1;
  min-width: 250px;
  padding: 20px;
}

.step i {
  font-size: 3em;
  margin-bottom: 20px;
}

.step h3 {
  margin: 15px 0;
  font-size: 1.5em;
}

/* Benefícios do Especialista */
.beneficios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.beneficio {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  width: 80vw;
  padding: 30px;
  text-align: center;
  align-items: center;
}

.beneficio i {
  font-size: 2.5em;
  color: var(--dourado);
  margin-bottom: 20px;
}

.beneficio h3 {
  margin: 15px 0;
  color: var(--dourado);
}

/* FAQ */
.faq {
  padding: 60px 20px;
  background-color: var(--dourado);
}

.faq h2 {
  text-align: center;
  color: white;
  font-size: 2.5em;
  margin-bottom: 50px;
  margin: auto;
  padding: 10px;
}

.faq-items {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

.faq-item h3 {
  color: var(--dourado);
  margin-bottom: 15px;
  font-size: 1.3em;
}

.faq-item p {
  color: #333;
  line-height: 1.6;
}
.section {
  padding: 40px 20px;
  max-width: 100vw;
  margin: auto;
  height: 100vh;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.section .btn {
  margin-top: 25px;
}
.section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1100px;
  height: 100vh;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 35px;
  flex: 1 1 300px;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.section2 {
  padding: 40px 20px;
  max-width: 100vw;
  margin: auto;
  height: 100vh;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.section2 p {
  font-size: 1.13em;
  margin: 40px;
}
footer {
  background-color: var(--dourado);
  color: white;
  padding: 50px 20px 20px;
  font-family: "Open Sans", sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h4 {
  font-size: 1.2em;
  margin-bottom: 20px;
  font-weight: 600;
  color: white;
}

.footer-section p {
  margin-bottom: 15px;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section i {
  width: 20px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: white;
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9em;
}

/* Responsivo */
@media (max-width: 1024px) {
  .sobre-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .sobre-texto p {
    text-align: center;
  }
  .hero h1 {
    font-size: 1.8em;
    margin-top: 100px;
  }
  .nav-links a:hover {
    color: var(--dourado);
  }
  .perfil img {
    visibility: visible;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: -46px;
    margin-top: 22px;
    text-align: start;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    padding-right: auto;
    color: var(--gelo);
  }
  .logomarca p {
    visibility: hidden;
  }
  .logo {
    max-width: 120px;
    max-height: 120px;
  }
  .card {
    font-size: 1.5em;
  }
  .section {
    height: fit-content;
  }
  .services {
    height: fit-content;
  }
  .resumo {
    width: 80vw;
    font-size: 1.5em;
  }
  .section2 p,
  h2 {
    width: 80vw;
    font-size: 1.5em;
  }
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  footer {
    font-size: 1.4em;
  }
}
@media (max-width: 920px) {
  .hero {
    align-items: center;
    padding-left: 0;
  }
  .hero p,
  h1 {
    font-size: 1.6em;
  }
  .section {
    height: fit-content;
  }
  .card {
    width: fit-content;
    font-size: 1.6em;
  }
  .resumo {
    width: 80vw;
    font-size: 1.6em;
  }
  .section2 p,
  h2 {
    width: 80vw;
    font-size: 1.6em;
  }
  .section2 {
    height: 100vh;
  }
  footer {
    font-size: 1.2em;
  }
  .btn {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .sobre {
    padding: 60px 20px;
  }

  .sobre-imagem {
    flex: 0 0 250px;
  }

  .sobre-imagem img {
    width: 250px;
    height: 250px;
  }

  .sobre h3 {
    font-size: 2em;
  }

  .sobre-info .nome {
    font-size: 1.5em;
  }

  .sobre-texto p {
    font-size: 1em;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-section {
    min-width: 100%;
  }

  .footer-section p {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
  .steps,
  .beneficios {
    flex-direction: column;
  }
  .step,
  .beneficio {
    min-width: 100%;
  }
  .como-funciona,
  .faq {
    padding: 40px 20px;
  }
  .como-funciona h2,
  .faq h2 {
    font-size: 2em;
  }
}
@media (max-width: 540px) {
  .hero p,
  h1 {
    text-align: center;
    font-size: 1.11em;
  }
  .card {
    font-size: 1.11em;
  }
  .section {
    height: fit-content;
  }
  .sobre {
    height: fit-content;
  }
  .resumo {
    width: 80vw;
    font-size: 1.11em;
  }
  .section2 {
    height: fit-content;
  }
  .section2 p,
  h2 {
    width: 80vw;
    font-size: 1.11em;
  }
  .services {
    height: fit-content;
  }
  footer {
    font-size: 1em;
  }
  .btn {
    font-size: 1em;
  }
}
