:root{
    --marrom: #421E12;
    --marrom-chocolate: #814827; 
    --marrom-clarinho: #C1864A;
    --marrom-escuro: #512814;
    --marrom-esverdeado: #433021;
    --marrom-opaco: #55382c;
    --branco: #fdfdfd;
    --amarelo: #f2ab1a;
    --cinza-claro: #a6a6a6;
    --cinza-escuro: #cbcbcb;
}

html{
  scroll-behavior: smooth;
}

*{
  box-sizing: border-box;
}

body{
  overflow-x: hidden;
}

/* NAV PRINCIPAL */
.cabecalho__nav {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  align-items: center;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  box-sizing: border-box;
  display: flex;
}

main {
  margin-top: 100px;
}

/* LINHA: menu hamburguer, título, ícones */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

/* TÍTULO */
.cabecalho__nav--titulo {
  font-family: 'Great Vibes', cursive;
  font-size: 28px;
  color: var(--marrom);
  flex-grow: 1;
  text-align: center;
}

/* MENU DE LINKS (em telas grandes) */
.cabecalho__nav--lista {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  text-align: center;
  color: var(--marrom-chocolate);
  z-index: 10;
}

.cabecalho__lista--link {
  text-decoration: none;
  color: var(--marrom-chocolate);
  cursor: pointer;
  font-size: 16px;
}

.cabecalho__lista--link:hover {
  text-decoration: none;
  color: var(--marrom-clarinho);
}

/* ÍCONES */
.cabecalho__nav--icons {
  display: flex;
  gap: 5px;
  z-index: 10;
}

.cabecalho__icons--item img {
  width: 13px;
  height: 13px;
  cursor: pointer;
}

/* MENU TOGGLE (hamburguer) escondido por padrão */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--marrom);
}

/* ===== Selo Home ===== */
.conteudo__home--selo {
  position: absolute;   
  top: 20px;           
  right: 20px;         
  display: inline-block;
}

.conteudo__home--selo img {
  width: 100px;  
  height: auto; 
  transition: transform 0.3s ease;
  cursor: pointer;
}

.conteudo__home--selo img:hover {
  transform: scale(1.1); /* efeito de zoom no hover */
}


/* Responsividade */
@media screen and (max-width: 768px) {
  .nav-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .menu-toggle {
    display: block;
  }

 /* Lista inicial escondida */
.cabecalho__nav--lista {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-20px);
  transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

/* Lista ativa */
.cabecalho__nav--lista.active {
  max-height: 1000px; /* bem grande para caber todos os links */
  opacity: 1;
  transform: translateY(0);
}

  .cabecalho__lista--link {
  text-decoration: none;
  color: var(--marrom-chocolate);
  cursor: pointer;
  font-size: 16px;
}

.cabecalho__lista--link:hover {
  text-decoration: none;
  color: var(--marrom-clarinho);
}
.cabecalho__icons--item img {
  width: 13px;
  height: 13px;
  cursor: pointer;
}

  .cabecalho__nav {
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .cabecalho__nav--titulo {
    order: 2;
    text-align: center;
    font-size: 24px;
    margin: 0;
    flex-grow: 1;
  }

  .cabecalho__nav--icons {
    order: 3;
  }

  /*menu aparece suavemente e desaparece quando clicado*/
 .cabecalho__nav--lista {
  position: absolute;
  top: 70px; /* abaixo do cabeçalho */
  left: 0;
  width: 100%;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #ccc;
  gap: 15px;
  padding: 20px 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 998;
}

  .cabecalho__nav--lista.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }


.conteudo__home--selo img {
  width: 80px;  
  height: auto; 
  transition: transform 0.3s ease;
  cursor: pointer;
}
}

/*Responsividade em telas maiores sem o icone de menu*/
@media screen and (min-width: 769px) {
  .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: none !important;
    
  }

  .cabecalho__nav--titulo {
    order: 1;
    font-size: 28px;
    text-align: left;
    flex: 0 0 auto; /* ocupa só o espaço necessário */
  }

  .cabecalho__nav--lista {
    order: 2;
    display: flex !important;
    flex-grow: 1;
    justify-content: center;
    gap: 40px;
    align-items: center;
    padding: 0 30px;
  }

  .cabecalho__nav--icons {
    order: 3;
    display: flex;
    gap: 20px;
  }
  
}

/*  HOME    */
.conteudo__home{
    display: flex;
    justify-content: space-around;
    height: 60vh;
     position: relative; 
}

.conteudo__home--esquerda{
    display: flex;
    flex-direction: column;
    margin-top: 100px;  /* aumenta a distância do topo da tela */
    animation: slideFromLeft 0.5s ease-out forwards;
}


.conteudo__home--graocafedeitado{
    height: 90px;
    width: 90px;
    position: absolute;
    right: 85%;          /* afasta da lateral direita */
    top: 80px;           /* altura desejada */
}

.conteudo__home--txt{
    font-size: 20px;
    color: #C1864A;
    font-family: 'Comfortaa';
}

.conteudo__home--titulo{
    font-size: 60px;
    width: 400px;
    color: #421E12;
    font-family: 'Katibeh', cursive;
}

.conteudo__home--btn{
    margin-top: 30px;
    font-size: 16px;
    background-color: var(--marrom-escuro);
    padding: 9px;
    text-align: center;
    color: white;
    border-radius: 5px;
    width: 120px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.conteudo__home--btn:hover{
  background-color: var(--marrom-chocolate);
}

.conteudo__img--fundo{
    width: 710px;
    position: absolute;
    right: 0;
    top: -70px;
}

.conteudo__img--xicara{
    width: 500px;
    position: absolute;
    right: 0px;
    top: 50px;
}

.conteudo__img--cel{
  display: none;
}

.conteudo__img--xicara, .conteudo__img--fundo{
  animation: slideFromRight 0.5s ease-out forwards;
}

/* ANIMAÇÕES  */

@keyframes slideFromLeft {
    0% {
      transform: translateX(-100%);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes slideFromRight {
  0% {
    transform: translateX(100%); /* começa fora da tela pela direita */
    opacity: 0;
  }
  100% {
    transform: translateX(0); /* posição normal */
    opacity: 1;
  }
}

@media screen and (max-width: 1660px){
  .conteudo__home{
    height: 65vh;
  }
}

@media screen and (max-width: 1024px){
  .conteudo__img--fundo{
    width: 500px;
  }

  .conteudo__img--xicara{
    width: 400px;
  }

  .conteudo__home{
    height: auto;
  }
}

@media screen and (max-width: 768px){
  .conteudo__img--fundo, 
  .conteudo__img--xicara{
    display: none;
  }

  .conteudo__home--titulo{
    width: 320px;
  }

  .conteudo__home{
    flex-direction: column;
    align-items: center;
    height: auto;
    text-align: center;
  }

  .conteudo__img--cel{
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .conteudo__home--container{
    display: flex;
    justify-content: center;
    position: relative;
  }

  .conteudo__home--btn{
    margin: 0 auto;
    width: 30%;
     margin-top: 2rem; 
  }

  .conteudo__home--graocafedeitado{
    height: 80px;
    width: 80px;
    right: 65%;    
    top: 80px;           
}
}
