/* ==========================================================================
   Página principal
   Medidas e cores extraídas da página original do GreatPages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Topo — foto da equipe e chamada principal
   -------------------------------------------------------------------------- */

.topo {
  height: 603px;
  background-image: url("../img/hero-fundo.jpg");
}

.topo__foto {
  position: absolute;
  left: -132px;
  top: 0;
  width: 756px;
  height: 603px;
  object-fit: cover;
}

.topo__conteudo {
  position: absolute;
  left: 568px;
  top: 0;
  width: 392px;
}

.topo__logo {
  width: 216px;
  height: 78px;
  margin-top: 60px;
}

.topo__titulo {
  width: 392px;
  margin-top: 20px;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 43.37px;
  line-height: 47.71px;
  color: var(--bege);
}

.topo__descricao {
  width: 341px;
  margin-top: 17px;
  font-size: 13.06px;
  line-height: 1.4;
  color: var(--cinza-claro);
}

.topo__areas {
  width: 314px;
  margin-top: 37px;
  margin-left: 17px;
  font-size: 12.89px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--cinza-claro);
}

.topo__cta {
  width: 347px;
  height: 38.66px;
  margin-top: 7px;
  font-size: 12.88px;
}

.topo__prova {
  width: 314px;
  margin-top: 7px;
  margin-left: 17px;
  font-size: 10.74px;
  line-height: 1.4;
  text-align: center;
  color: var(--cinza-claro);
}

.topo__prova b {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   2. Áreas de atuação
   -------------------------------------------------------------------------- */

.areas {
  height: 744px;
  background-image: url("../img/textura-bege.jpg");
  background-attachment: fixed;
  background-color: var(--bege);
}

.areas .secao__veu {
  background-color: var(--bege);
  opacity: 0.93;
}

.areas__titulo {
  position: absolute;
  left: -36px;
  top: 77px;
  width: 651px;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 46.48px;
  line-height: 1.1;
  color: var(--verde-escuro);
}

.areas__intro {
  position: absolute;
  left: -35px;
  top: 138px;
  width: 808px;
  font-size: 15px;
  line-height: 21px;
  color: var(--verde-escuro);
}

/* Painel verde que sangra para fora do miolo */
.areas__painel {
  position: absolute;
  left: -120px;
  top: 228px;
  width: 1200px;
  height: 441px;
  border-radius: 15px;
  background-color: var(--verde);
  /* Colunas com as larguras e folgas do layout original */
  display: grid;
  grid-template-columns: 273px 276px 304px;
  column-gap: 68px;
  padding-left: 110px;
  align-content: start;
}

.areas__painel::before,
.areas__painel::after {
  content: "";
  position: absolute;
  top: 147px;
  width: 1px;
  height: 216px;
  background-color: var(--dourado);
}

.areas__painel::before {
  left: 408px;
}

.areas__painel::after {
  left: 773px;
}

.area {
  text-align: center;
}

/* A terceira coluna fica um pouco mais afastada no layout original */
.area:last-child {
  padding-left: 17px;
}

.area__icone {
  margin: 79px auto 0;
  font-size: 62.8px;
  line-height: 1;
  color: var(--dourado);
  transition: color 0.25s ease-out;
}

.area:hover .area__icone {
  color: var(--bege);
}

.area__nome {
  margin-top: 25px;
  font-size: 25px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--dourado);
}

.area__texto {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  text-align: justify;
  color: var(--branco);
}

.areas__cta {
  position: absolute;
  left: 238px;
  top: 628px;
  width: 484px;
  height: 54px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   3. Depoimentos
   -------------------------------------------------------------------------- */

.depoimentos {
  height: 366px;
  background-image: url("../img/textura-bege.jpg");
  background-attachment: fixed;
  background-color: var(--bege);
}

.depoimentos .secao__veu {
  background-color: var(--bege);
  opacity: 0.93;
}

.depoimentos__titulo {
  position: absolute;
  left: -34px;
  top: 31px;
  width: 473px;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 46.48px;
  line-height: 1.1;
  color: var(--verde-escuro);
}

.depoimentos__texto {
  position: absolute;
  left: -34px;
  top: 201px;
  width: 429px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--verde-escuro);
}

.carrossel {
  position: absolute;
  left: 477px;
  top: 44px;
  width: 517px;
  height: 248px;
  overflow: hidden;
}

.carrossel__trilho {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carrossel__slide {
  flex: 0 0 100%;
  height: 100%;
  object-fit: contain;
}

.carrossel__seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--verde-escuro);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.carrossel:hover .carrossel__seta,
.carrossel__seta:focus-visible {
  opacity: 1;
}

.carrossel__seta--anterior {
  left: 0;
}

.carrossel__seta--proximo {
  right: 0;
}

/* --------------------------------------------------------------------------
   4. Sobre o escritório
   -------------------------------------------------------------------------- */

.sobre {
  height: 774px;
  background-image: url("../img/textura-dourada.jpg");
  background-attachment: fixed;
  background-color: var(--dourado);
}

.sobre .secao__veu {
  background-color: var(--dourado);
  opacity: 0.9;
}

.sobre__foto {
  position: absolute;
  left: 5px;
  top: 70px;
  width: 376px;
  height: 635px;
  border-radius: 10px;
  object-fit: cover;
  object-position: 61.36% 50.5%;
}

.sobre__conteudo {
  position: absolute;
  left: 398px;
  top: 95px;
  width: 556px;
}

.sobre__logo {
  width: 291px;
  height: 103px;
}

.sobre__texto {
  margin-top: 7px;
  font-size: 16.1px;
  line-height: 1.4;
  text-align: justify;
  color: var(--verde-escuro);
}

.sobre__texto p + p {
  margin-top: 1.4em;
}

/* --------------------------------------------------------------------------
   5. Contato
   -------------------------------------------------------------------------- */

.contato {
  height: 391px;
  background-image: url("../img/textura-verde.jpg");
  background-attachment: fixed;
  background-color: var(--verde);
}

.contato .secao__veu {
  background-color: var(--verde);
  opacity: 0.45;
}

.contato__mapa {
  position: absolute;
  left: -40px;
  top: 53px;
  width: 636px;
  height: 290px;
  border: 0;
}

.contato__painel {
  position: absolute;
  left: 595px;
  top: 53px;
  width: 405px;
  height: 290px;
  border-radius: 0 10px 10px 0;
  background-color: var(--dourado);
}

.contato__lista {
  position: absolute;
  left: 626px;
  top: 91px;
  width: 345px;
  display: grid;
  grid-template-columns: 27px 307px;
  column-gap: 11px;
  align-items: start;
  font-style: normal;
  font-size: 15px;
  line-height: 21px;
  color: var(--verde-escuro);
}

.contato__lista a {
  text-decoration: none;
}

.contato__lista a:hover {
  text-decoration: underline;
}

.contato__icone {
  font-size: 27px;
  line-height: 27px;
  color: var(--verde-escuro);
}

.contato__icone img {
  width: 26px;
  height: 26px;
}

/* Espaçamentos herdados do layout original, que não são uniformes */
.contato__dado:nth-of-type(1) {
  padding-bottom: 8px;
}

.contato__dado:nth-of-type(2) {
  padding-bottom: 38px;
}

.contato__dado:nth-of-type(3) {
  padding-bottom: 18px;
}

.contato__dado:nth-of-type(1) p + p {
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   6. Rodapé
   -------------------------------------------------------------------------- */

.rodape {
  height: 81px;
  background-image: url("../img/textura-verde.jpg");
  background-attachment: fixed;
  background-color: var(--verde);
}

.rodape .secao__veu {
  background-color: var(--verde);
  opacity: 0.45;
}

.rodape__aviso {
  position: absolute;
  left: 57px;
  top: 10px;
  width: 353px;
  font-size: 12px;
  line-height: 24px;
  color: var(--branco);
}

.rodape__assinatura {
  position: absolute;
  left: 782px;
  top: 18px;
  width: 121px;
  height: 33px;
}

.rodape__assinatura img {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 1000px) {
  /* 1. Topo */
  .topo {
    height: 720px;
  }

  .topo__conteudo {
    position: static;
    width: 100%;
    padding-top: 29px;
  }

  .topo__logo {
    width: 178px;
    height: 62px;
    margin: 0 auto;
  }

  .topo__titulo {
    width: 100%;
    margin-top: 0;
    font-size: 30px;
    line-height: 33px;
    text-align: center;
  }

  .topo__descricao {
    width: 100%;
    margin-top: 15px;
    font-size: 15px;
    line-height: 21px;
    text-align: justify;
  }

  .topo__areas {
    width: 100%;
    margin-top: 15px;
    margin-left: 0;
    font-size: 12px;
    line-height: 16.8px;
    text-align: center;
  }

  .topo__cta {
    width: 100%;
    height: 44px;
    margin-top: 26px;
    font-size: 16px;
  }

  .topo__prova {
    width: 100%;
    margin-top: 26px;
    margin-left: 0;
    font-size: 14px;
    line-height: 19.6px;
  }

  .topo__foto {
    position: absolute;
    left: 50%;
    top: 387px;
    transform: translateX(-50%);
    width: 385px;
    max-width: none;
    height: 334px;
    object-fit: contain;
    object-position: bottom;
  }

  /* 2. Áreas de atuação */
  .areas {
    height: auto;
    padding: 44px 0 40px;
    background-attachment: scroll;
  }

  .areas__titulo,
  .areas__intro {
    position: static;
    width: 100%;
  }

  .areas__titulo {
    max-width: 275px;
    margin: 0 auto;
    font-size: 40px;
    line-height: 1.1;
    text-align: center;
  }

  .areas__intro {
    margin-top: 22px;
    text-align: justify;
  }

  .areas__painel {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 32px;
    padding: 32px 12px;
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .area:last-child {
    padding-left: 0;
  }

  /* No celular os separadores ficam entre os cards, na horizontal */
  .areas__painel::before,
  .areas__painel::after {
    display: none;
  }

  .area + .area::before {
    content: "";
    display: block;
    width: 174px;
    height: 1px;
    margin: 0 auto 32px;
    background-color: var(--dourado);
  }

  .area__icone {
    margin-top: 0;
  }

  .area__nome {
    margin-top: 13px;
  }

  .area__texto {
    max-width: 275px;
    margin: 22px auto 0;
    text-align: center;
  }

  .areas__cta {
    position: static;
    width: 100%;
    margin-top: 32px;
  }

  /* 3. Depoimentos */
  .depoimentos {
    height: auto;
    padding: 56px 0 40px;
    background-attachment: scroll;
  }

  .depoimentos__titulo,
  .depoimentos__texto {
    position: static;
    width: 100%;
    text-align: center;
  }

  .depoimentos__titulo {
    max-width: 277px;
    margin: 0 auto;
    font-size: 40px;
  }

  .depoimentos__texto {
    margin-top: 24px;
    font-size: 16px;
    text-align: justify;
  }

  .carrossel {
    position: static;
    width: 100%;
    height: 164px;
    margin-top: 32px;
  }

  /* As setas não aparecem no celular, como no original — o carrossel gira
     sozinho. Continuam acessíveis pelo teclado. */
  .carrossel__seta:focus-visible {
    opacity: 1;
  }

  /* 4. Sobre */
  .sobre {
    height: auto;
    padding: 55px 0 48px;
    background-attachment: scroll;
  }

  /* No celular a ordem é logo, foto e texto — o `display: contents` deixa a logo
     e o texto participarem da mesma ordenação da foto. */
  .sobre .container {
    display: flex;
    flex-direction: column;
  }

  .sobre__conteudo {
    display: contents;
  }

  .sobre__logo {
    order: 1;
    width: 223px;
    height: 77px;
    margin: 0 auto;
  }

  .sobre__foto {
    order: 2;
    position: static;
    width: 100%;
    height: 188px;
    margin-top: 25px;
    object-position: 52.27% 19.7%;
  }

  .sobre__texto {
    order: 3;
    margin-top: 24px;
    font-size: 16px;
    text-align: center;
  }

  /* 5. Contato */
  .contato {
    height: auto;
    padding: 40px 0 48px;
    background-attachment: scroll;
  }

  .contato__mapa {
    position: static;
    width: 100%;
    height: 278px;
  }

  .contato__painel {
    display: none;
  }

  .contato__lista {
    position: static;
    width: 100%;
    margin-top: 32px;
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 8px;
    text-align: center;
    color: var(--branco);
  }

  .contato__icone {
    font-size: 28px;
    line-height: 28px;
    color: var(--branco);
  }

  .contato__icone img {
    width: 28px;
    height: 28px;
  }

  .contato__dado {
    padding-bottom: 20px;
  }

  /* 6. Rodapé */
  .rodape {
    height: auto;
    padding: 24px 0;
    background-attachment: scroll;
  }

  .rodape__aviso,
  .rodape__assinatura {
    position: static;
  }

  .rodape__assinatura {
    width: 111px;
    height: 30px;
    margin: 16px auto 0;
  }

  .rodape__aviso {
    width: 100%;
    font-size: 11px;
    line-height: 2;
    text-align: center;
  }
}
