
/* FONTES GLOBAIS */
.archivo-normal {
  font-family: "Archivo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
  "wdth" 100;
}

.archivo-bold {
  font-family: "Archivo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings:
  "wdth" 100;
}

/* BODY */

body {
  font-family: "Archivo", sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  visibility: hidden;
}

body.ready {
  visibility: visible;
}

/* HEADER MOBILE */
#header {
  background-color: #406444;
  padding: 1.5rem 1rem 1rem 1rem;
  margin: 0;
}

#headerSection {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

#headerSection ul {
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  flex-direction: column;
  align-items: flex-end;
}

#headerSection li {
  list-style-type: none;
}

#headerSection li a {
  text-decoration: none;
  color: #FFEABD;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.6em;
  border-radius: 10px;
}

#RegBotao{
  background-color: #F97A00;
}

#headerSection li a:hover {
  background-color: #F97A00;
  transition: 0.2s ease-in-out;
}

#header a img {
  height: 10em;
}

/* HERO SECTION */
#videoDiv {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}


#horizontalBackground{
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

#mainVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Esconde a imagem de fallback por padrÃ£o */
#mainVideoFallback {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#videoOverlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(80, 128, 62, 0.356);
  z-index: 1;
}

/* TEXTO DO HERO */
#horizontalDiv {
  background-color: #406444;
  width: 100%;
  position: relative;
  z-index: 2;
  color: white;
  text-align: left;
  padding: 2rem 0rem 6rem 2rem;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 0 100%);
  overflow: hidden;
}



#horizontalDiv h1 {
  color: #FFEABD;
  font-size: 2rem; /* menor para mobile */
  font-weight: 400;
  margin-bottom: 0.5rem;
}

#horizontalDiv h2 {
  color: #FFEABD;
  font-size: 1rem;
  font-weight: 200;
}

/* BOTÃƒO PRINCIPAL */
#mainButton {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

#mainButton a {
  text-decoration: none;
  background-color: #F97A00;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

#mainButton a:hover, #part1 a:hover {
  background-color: #FFEABD;
  color: #406444;
  transition: 0.2s ease-in-out;
}

#prefeitura a:hover{
  background-color: #406444;
  transition: 0.3s ease-in-out;
}

#cartorio a:hover, #outros a:hover{
  background-color: #F97A00;
  transition: 0.3s ease-in-out;
}

/* PRIMEIRO GRID */
#part1{
  display: grid;
  grid-template-areas:
    "texto1 texto1"
    "text2 text2";
  grid-template-columns: 50% 50%;
  grid-template-rows: auto;
  gap: 0;
  justify-content: center;
}

#part1 a{
  text-decoration: none;
  background-color: #F97A00;
  padding: 10px;
  border-radius: 10px;
}

#texto1{
  grid-area: texto1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

#texto1 h2 {
  text-align: right;
  width: 100vw;
  margin-left: calc(-60vw + 10%);
  color: #FFEABD;
  background-color: #F97A00;
  padding: 0.8em 0.7em;
  font-size: 3em;
  font-weight: 500;
  border-radius: 20px;
}

#texto1 h3{
  font-weight: 600;
  font-size: 2rem;
  color: #386641;
}

#texto1 p{
  font-size: 1.5rem;
  color: #828282;
  padding: 0 3%;
  text-align: center;
}

#side-photo{
  grid-area: side-photo;
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

#side-photo img{
  max-width: 80%;
  height: auto;
  display: block;
  position: relative;
  top: 12%;
}

#text2{
  grid-area: text2;
  display: flex;
  flex-direction: column;
  background-color: #406444;
  padding: 0 4% 4%;
  margin-left: calc(5vw + 10%);
  border-radius: 15px 0px 0px 15px;
  align-items: center;
}

#text2 h2, p, a{
  color: #FFEABD;
  text-align: left;
}

#text2 h2{
  text-align: center;
  font-weight: 500;
  font-size: 2.8em;
}

/* SEGUNDO GRID */

#serviceGrid ul li{ 
  list-style: none; 
  text-align: center;
  color: #828282;; 
}

#serviceGrid {
  font-family: "Archivo", sans-serif;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
  justify-items: center;
  overflow: hidden;
}

#serviceGrid ul{
  padding: 0;
}

#serviceGrid img {
  max-width: 200px; 
  width: 60%;       
  height: auto;
}

#cartorio, #prefeitura, #outros {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  width: 70%;
  max-width: 400px;
  align-items: center;
}

#cartorio, #outros h3{
  color: #386641;
}

#prefeitura h3{
  color: #F97A00;
}

#cartorio a, #prefeitura a, #outros a{
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
}

#cartorio a, #outros a{
  background-color: #386641;
}

#prefeitura a{
  background-color: #F97A00;
}

#thirdDiv h2{
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: #386641;
  text-align: center;
}

/* FOOTER BASE */

#footer {
  font-family: "Archivo", sans-serif;
  padding: 1.5rem 1rem;
}

/* Mobile first: coluna */
#footer section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

/* Left side */
#leftSideFooter h4 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

#leftSideImgs {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

#leftSideImgs img {
  width: 30px;
  height: auto;
  transition: transform 0.2s ease-in-out;
}

#leftSideImgs img:hover {
  transform: scale(1.1);
}

/* Right side */
#rightSide {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 400;
}

#rightSide a {
  font-size: 0.9rem;
  color: #406444;
}

#rightSide p {
  font-size: 0.8rem;
  margin: 0;
  color: #828282;
}

/* Desktop: lado a lado */
@media (min-width: 1208px) {
  #headerSection ul {
  display: flex;
  gap: 1rem;
  padding: 0 5em 0 0;
  margin: 0;
  flex-direction: row;
  align-items: flex-end;
  }

  #horizontalDiv h1 {
  font-size: 4rem;
  }
    
  #footer section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  #leftSideFooter {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  #leftSideFooter h4 {
    margin: 0;
    font-size: 1.1rem;
  }

  #rightSide {
    align-items: flex-end;
    text-align: right;
  }

  #part1{
  display: grid;
  grid-template-areas:
    "texto1 side-photo"
    "text2 text2";
  grid-template-columns: 50% 50%;
  grid-template-rows: auto;
  gap: 0;
  margin-top: 3em;
  justify-content: center;
  }


  #part1 a{
    text-decoration: none;
  }


  #texto1{
    grid-area: texto1;
    display: inline-flex;
    flex-direction: column;
    flex-wrap: wrap;
  }

  #texto1 h2{
    text-align: right;
    color: #FFEABD;
    background-color: #F97A00;
    padding: 0.8em 0.7em 0.8em 5.9em;
    font-size: 3em;
    font-weight: 500;
    width: 68vw;
  }

  #texto1 h3{
    font-weight: 600;
    font-size: 2rem;
    color: #386641;
  }

  #texto1 p{
    font-size: 1.5rem;
    color: #828282;
  }

  #side-photo{
    grid-area: side-photo;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    position: relative;
    z-index: 2;
    align-content: space-around;
    justify-content: center;
  }

  #side-photo img{
    max-width: 65%;
    height: auto;
    display: block;
    position: relative;
    top: 12%;
    left: 10%;
  }

  #text2{
    grid-area: text2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 5%;
    background-color: #406444;
    margin-left: 35%;
  }

  #text2 h2, p, a{
    color: #FFEABD;
  }

  #text2 h2{
    font-weight: 500;
    font-size: 3em;
  }

  #serviceGrid{
    grid-template-columns: 33.3% 33.3% 33.3%;
  }

  #serviceGrid img{
    max-width: 240px;
    width: 60%;
  }

  #serviceGrid h3{
    font-size: 1.5em;
  }
}

/* Substituir vÃ­deo por imagem em telas pequenas */
@media (max-width: 563px) {
  #mainVideo {
    display: none;
  }
  
  #mainVideoFallback {
    display: block;
  }
}

/* animacoes pro index */

/* impede que a pÃ¡gina crie scroll lateral */
html, body { 
  overflow-x: hidden;
}


@media (prefers-reduced-motion: no-preference){
  .hiddenRight{
    opacity: 0;
    filter: blur(5px);
    transform: translateX(50%);
    transition: all 1s;
  }

    .hiddenLeft{
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-50%);
    transition: all 1s;
  }
  
  .show{
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
  }

  .logo-transition {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(50%);
    transition: all 1s;
  }

  .logo-transition.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  .logo-transition:nth-child(2) {
    transition-delay: 100ms;
  }
  .logo-transition:nth-child(3) {
    transition-delay: 200ms;
  }
}


