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

* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100svh;
}

body {
  line-height: 1.5;
  interpolate-size: allow-keywords;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

@media (hover: hover) {
  body {
    scrollbar-gutter: stable;
  }
}

:root {
  --navy: #144365;
  --deep-navy: #0c2a40;
  --gold: #9c7141;
  --mist: #eef2f5;
  --line: #c5d1da;
  --radius: 0.5rem;
  --gap: 4rem;
}

/* o reset fixa height: 100svh; deixa a página crescer com o conteúdo */
html,
body {
  height: auto;
  min-height: 100svh;
}

html {
  background: var(--mist);
  /* sem o "elástico" ao rolar além do topo/rodapé no celular */
  overscroll-behavior-y: none;
}

body {
  /* rodapé sempre no fim da tela, mesmo com pouco conteúdo */
  display: flex;
  flex-direction: column;
  font-family: Montserrat, sans-serif;
  color: var(--navy);
  background: var(--mist);
}

main {
  flex: 1;
}

/* coluna central compartilhada por todas as seções */
.wrap {
  width: min(72rem, 100% - 2.5rem);
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.button {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  transition: filter 0.2s;

  &:hover {
    filter: brightness(1.1);
  }
}

header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.5rem;

  & #logo_header {
    width: 12rem;
    margin-right: auto;
  }
}

.hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1rem 2rem;

  /* símbolo da marca ao lado do título */
  & .hero_mark {
    flex-shrink: 0;
    width: clamp(3.5rem, 7vw, 5rem);
  }

  & h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  & p {
    margin-top: 0.4rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #3d5568;
  }
}

.services {
  padding-bottom: var(--gap);

  & h2 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
  }

  & li {
    border-top: 1px solid var(--line);

    &:last-child {
      border-bottom: 1px solid var(--line);
    }
  }

  /* a linha inteira é o link */
  & li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1.25rem;
  }

  & .service_text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  & strong {
    font-size: clamp(1.4rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-decoration: underline 3px transparent;
    text-underline-offset: 0.2em;
    transition: text-decoration-color 0.25s;
  }

  & .service_text > span {
    font-size: 1.1rem;
    color: #3d5568;
  }

  & em {
    font-style: normal;
    font-weight: 600;
    color: var(--gold);
  }

  & .service_img {
    flex-shrink: 0;
    width: 8rem;
    background: center / cover no-repeat;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
  }

  & .venda_imoveis {
    background-image: url("public/venda_imoveis.webp");
  }

  & .consultoria_bnb {
    background-image: url("public/consultoria_bnb.webp");
  }

  & .avaliacao_imoveis {
    background-image: url("public/avaliacao_imoveis.webp");
  }

  & li > a:hover strong {
    text-decoration-color: var(--gold);
  }
}

footer {
  background: var(--deep-navy);
  color: #d6e0e8;

  & .contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 3rem;

    & h2 {
      font-size: 2rem;
      font-weight: 800;
      color: #fff;
    }

    & p {
      max-width: 36rem;
      margin-top: 0.5rem;
      line-height: 1.6;
    }

    & p a {
      color: #fff;
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
  }

  & .legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.15);
    font-size: 0.85rem;

    & a {
      color: #fff;
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }

    /* logo em branco sobre o fundo escuro */
    & img {
      width: 8rem;
      filter: brightness(0) invert(1);
    }
  }
}

a.whatsapp_float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  place-items: center;
  width: 3.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.25);
  transition: filter 0.2s;

  &:hover {
    filter: brightness(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (max-width: 600px) {
  :root {
    --gap: 2.5rem;
  }

  .mobile_hidden {
    display: none;
  }

  header {
    justify-content: center;

    & #logo_header {
      width: min(55vw, 14rem);
      margin-right: 0;
    }
  }

  .services {
    & li > a {
      gap: 1rem;
      padding-block: 1rem;
    }

    & .service_text > span {
      font-size: 0.95rem;
    }

    & .service_img {
      width: 5.5rem;
    }

    & .venda_imoveis {
      background-image: url("public/venda_imoveis_sm.webp");
    }

    & .consultoria_bnb {
      background-image: url("public/consultoria_bnb_sm.webp");
    }

    & .avaliacao_imoveis {
      background-image: url("public/avaliacao_imoveis_sm.webp");
    }
  }

  footer {
    & .contact,
    & .legal {
      flex-direction: column;
      align-items: flex-start;
    }

    /* espaço para o botão flutuante do WhatsApp */
    & .legal {
      padding-bottom: 6rem;
    }
  }
}

/* ---------- componentes das páginas de serviço ---------- */

header nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;

  & a:hover {
    color: var(--gold);
  }
}

/* imagem ainda não definida */
.placeholder {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, #dfe6ec 0 12px, #e7edf1 12px 24px);
  color: #6b8193;
  font-size: 0.85rem;
  font-weight: 600;
}

.page_hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3rem;
  padding-block: 1rem var(--gap);

  & h1 {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  & p {
    margin-block: 1rem 1.75rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #3d5568;
  }

  & .placeholder {
    aspect-ratio: 4 / 3;
  }
}

.section {
  padding-block: var(--gap);
  border-top: 1px solid var(--line);

  & > h2 {
    max-width: 40rem;
    font-size: clamp(1.4rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }

  & > p {
    max-width: 44rem;
    margin-top: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #3d5568;
  }

  & > .button {
    margin-top: 2rem;
  }
}

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
}

/* lista com marcador dourado */
.checklist {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;

  & li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1.05rem;
    line-height: 1.5;

    &::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.45em;
      width: 0.7rem;
      aspect-ratio: 1;
      border-radius: 50%;
      background: var(--gold);
    }
  }
}

/* cartões em grade */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;

  & li {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  & strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
  }

  & p {
    margin-top: 0.5rem;
    line-height: 1.55;
    color: #3d5568;
  }
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;

  & .placeholder {
    aspect-ratio: 1;
    margin-bottom: 1rem;
  }

  & strong {
    font-size: 1.2rem;
    font-weight: 800;
  }

  & span {
    display: block;
    margin-top: 0.25rem;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
  }

  & p {
    margin-top: 0.75rem;
    line-height: 1.55;
    color: #3d5568;
  }
}

.faq {
  margin-top: 2rem;

  & details {
    border-top: 1px solid var(--line);

    &:last-child {
      border-bottom: 1px solid var(--line);
    }
  }

  & summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;

    &::-webkit-details-marker {
      display: none;
    }

    &::after {
      content: "+";
      color: var(--gold);
      font-size: 1.5rem;
      line-height: 1;
      transition: rotate 0.2s;
    }
  }

  & details[open] summary::after {
    rotate: 45deg;
  }

  & details > :not(summary) {
    max-width: 48rem;
    padding-bottom: 1.25rem;
    line-height: 1.6;
    color: #3d5568;
  }
}

/* faixa de destaque em azul */
.callout {
  margin-block: var(--gap);
  padding: 2.5rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;

  & p {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    text-wrap: balance;
  }

  & .button {
    margin-top: 1.5rem;
  }
}

@media (max-width: 800px) {
  header nav {
    display: none;
  }

  .page_hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .callout {
    padding: 1.75rem;
  }
}

#logo_header img {
  width: 100%;
}
