/* Residencial Alto da Serra · modelo 91. Luxo: preto, dourado e marfim; Marcellus e Jost; fios finos,
   muito respiro, a torre num painel alto que sangra pela esquerda. */

:root {
  --preto: #0d0d0d;
  --grafite: #141414;
  --ouro: #c8a96a;
  --ouro-claro: #d8bf8a;
  --ouro-escuro: #7a6132;
  --marfim: #f3eee4;
  --cinza: #a39d92;
  --cinza-escuro: #5f5a52;
  --fio: rgb(200 169 106 / 0.28);
  --fio-claro: rgb(243 238 228 / 0.1);
  --fio-marfim: #d9cfbd;
  --mola: cubic-bezier(0.23, 1, 0.32, 1);
  --larg: 1240px;
  --margem: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--preto);
  color: var(--marfim);
  font: 300 17px/1.65 'Jost', system-ui, sans-serif;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
dl,
dd,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ouro);
  outline-offset: 4px;
}

.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pular {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 14px 22px;
  background: var(--ouro);
  color: var(--preto);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform 200ms var(--mola);
}

.pular:focus {
  transform: none;
}

/* Rótulo fino com fio, usado acima dos títulos */

.sobrelinha {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--ouro);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1.6;
  text-transform: uppercase;
}

.sobrelinha::before {
  content: '';
  flex: none;
  width: 40px;
  height: 1px;
  margin-top: 0.8em;
  background: currentColor;
}

.sobrelinha-escura {
  color: var(--ouro-escuro);
}

/* Topo */

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--margem);
  border-bottom: 1px solid var(--fio-claro);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.marca-pico {
  width: 30px;
  height: 18px;
  color: var(--ouro);
}

.marca-nome {
  display: grid;
  font-family: 'Marcellus', serif;
  font-size: 14px;
  letter-spacing: 0.22em;
  line-height: 1.15;
  text-transform: uppercase;
}

.marca-nome small {
  color: var(--cinza);
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.46em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.4vw, 36px);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.nav .nav-link {
  display: none;
}

.nav .nav-book {
  padding: 0 18px;
  border: 1px solid var(--fio);
  color: var(--ouro);
  transition:
    border-color 200ms ease,
    color 200ms ease;
}

.so-largo {
  display: none;
}

@media (min-width: 560px) {
  .marca-pico {
    width: 34px;
    height: 20px;
  }

  .marca-nome {
    font-size: 16px;
    letter-spacing: 0.26em;
  }

  .so-largo {
    display: inline;
  }
}

@media (min-width: 860px) {
  .nav .nav-link {
    display: inline-flex;
  }
}

@media (hover: hover) and (pointer: fine) {
  .nav .nav-link:hover {
    color: var(--ouro);
  }

  .nav .nav-book:hover {
    border-color: var(--ouro);
  }
}

/* Abertura: painel alto com a torre e o texto com muito respiro */

.abertura {
  display: grid;
}

.abertura-foto {
  position: relative;
  aspect-ratio: 10 / 11;
  overflow: hidden;
  background: #1b1b1b;
}

.abertura-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 84% 50%;
  filter: grayscale(1) contrast(1.12) brightness(0.84);
}

/* grão de filme e véu: a foto de 960 px não aparece lavada nem esticada */
.abertura-foto::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.32;
  pointer-events: none;
}

.abertura-foto::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(13 13 13 / 0) 55%, rgb(13 13 13 / 0.78) 100%),
    linear-gradient(270deg, rgb(13 13 13 / 0.62) 0, rgb(13 13 13 / 0) 64px),
    linear-gradient(200deg, rgb(200 169 106 / 0.16), rgb(200 169 106 / 0) 45%);
  pointer-events: none;
}

.abertura-foto figcaption {
  position: absolute;
  bottom: 18px;
  left: var(--margem);
  z-index: 2;
  color: rgb(243 238 228 / 0.8);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.altitude {
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 2;
  color: var(--ouro);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.abertura-texto {
  align-self: center;
  max-width: 700px;
  padding: 48px var(--margem) 80px;
}

h1 {
  margin-top: 26px;
  color: var(--marfim);
  font-size: clamp(46px, 6.2vw, 98px);
  line-height: 1.02;
  letter-spacing: -0.005em;
}

.apoio {
  max-width: 27em;
  margin-top: 26px;
  color: var(--cinza);
  font-size: clamp(17px, 1.3vw, 19px);
}

.fatos {
  margin-top: 40px;
  border-top: 1px solid var(--fio);
}

.fatos div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--fio-claro);
}

.fatos dt {
  color: var(--cinza);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.fatos dd {
  font-family: 'Marcellus', serif;
  font-size: 20px;
  white-space: nowrap;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
  margin-top: 40px;
}

.botao {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 34px;
  overflow: hidden;
  border: 1px solid var(--ouro);
  color: var(--ouro);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 280ms var(--mola),
    transform 160ms var(--mola);
}

.botao::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ouro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--mola);
}

.botao:active {
  transform: scale(0.98);
}

.link-linha {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: var(--marfim);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-decoration: none;
  text-transform: uppercase;
}

.link-linha::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ouro);
  transform-origin: left;
  transition: transform 280ms var(--mola);
}

.link-linha-escuro {
  color: var(--preto);
}

.link-linha-escuro::before {
  background: var(--ouro-escuro);
}

@media (hover: hover) and (pointer: fine) {
  .botao:hover {
    color: var(--preto);
  }

  .botao:hover::before {
    transform: scaleX(1);
  }

  .link-linha:hover::before {
    transform: scaleX(1.6);
  }
}

@media (min-width: 640px) {
  .fatos {
    display: flex;
    border-bottom: 1px solid var(--fio);
  }

  .fatos div {
    display: block;
    padding: 18px 28px 18px 0;
    border-bottom: 0;
  }

  .fatos div + div {
    padding-left: 28px;
    border-left: 1px solid var(--fio);
  }

  .fatos dd {
    margin-top: 8px;
    font-size: clamp(20px, 1.8vw, 26px);
  }
}

@media (min-width: 960px) {
  .abertura {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    min-height: clamp(640px, calc(100svh - 81px), 900px);
  }

  .abertura-foto {
    aspect-ratio: auto;
    height: 100%;
  }

  .abertura-foto figcaption {
    left: 32px;
    bottom: 28px;
  }

  .altitude {
    right: 24px;
  }

  .abertura-texto {
    padding: 72px var(--margem) 72px clamp(56px, 7vw, 128px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .abertura-foto {
    animation: revela 600ms var(--mola) both;
  }

  .abertura-texto > * {
    animation: aparece 520ms var(--mola) both;
  }

  .abertura-texto > :nth-child(1) {
    animation-delay: 160ms;
  }

  .abertura-texto > :nth-child(2) {
    animation-delay: 220ms;
  }

  .abertura-texto > :nth-child(3) {
    animation-delay: 280ms;
  }

  .abertura-texto > :nth-child(4) {
    animation-delay: 340ms;
  }

  .abertura-texto > :nth-child(5) {
    animation-delay: 400ms;
  }
}

@keyframes revela {
  from {
    clip-path: inset(100% 0 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes aparece {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* As plantas: tabela em fundo marfim */

.plantas {
  padding: clamp(80px, 11vw, 160px) var(--margem);
  background: var(--marfim);
  color: var(--preto);
}

.plantas-dentro {
  max-width: var(--larg);
  margin: 0 auto;
}

.plantas-cabeca {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(44px, 6vw, 80px);
}

.plantas h2 {
  margin-top: 22px;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.04;
}

.plantas-lead {
  max-width: 30em;
  color: var(--cinza-escuro);
  font-size: clamp(17px, 1.3vw, 18px);
}

.tabela {
  width: 100%;
  border-collapse: collapse;
}

.tabela thead th {
  padding: 0 24px 18px 0;
  border-bottom: 1px solid var(--preto);
  color: var(--cinza-escuro);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-align: left;
  text-transform: uppercase;
}

.tabela tbody th,
.tabela td {
  padding: 30px 24px 30px 0;
  border-bottom: 1px solid var(--fio-marfim);
  text-align: left;
  vertical-align: middle;
}

.tabela tbody th {
  font-weight: 300;
}

.tabela td {
  color: var(--cinza-escuro);
  font-size: 15px;
}

.tipo {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}

.planta {
  flex: none;
  width: clamp(104px, 10vw, 136px);
  height: auto;
  color: var(--preto);
}

.tipo-nome {
  display: block;
  font-family: 'Marcellus', serif;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}

.tipo-nota {
  display: block;
  margin-top: 6px;
  color: var(--cinza-escuro);
  font-size: 15px;
}

.num {
  margin-right: 4px;
  color: var(--preto);
  font-family: 'Marcellus', serif;
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1;
}

.plantas-pe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: 32px;
  color: var(--cinza-escuro);
  font-size: 14px;
}

.plantas-pe p {
  max-width: 36em;
}

.plantas :focus-visible {
  outline-color: var(--ouro-escuro);
}

@media (max-width: 759px) {
  .tabela,
  .tabela tbody,
  .tabela tr,
  .tabela th,
  .tabela td {
    display: block;
  }

  .tabela thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .tabela tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    padding: 28px 0 12px;
    border-top: 1px solid var(--preto);
  }

  .tabela tbody tr + tr {
    margin-top: 28px;
  }

  .tabela tbody th {
    grid-column: 1 / -1;
    padding: 0 0 18px;
    border-bottom: 0;
  }

  .tabela td {
    padding: 14px 0;
  }

  .tabela td::before {
    content: attr(data-rotulo);
    display: block;
    margin-bottom: 6px;
    color: var(--cinza-escuro);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
}

@media (min-width: 960px) {
  .plantas-cabeca {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 64px;
  }
}

/* A localização: curvas de nível, distâncias e o formulário */

.localizacao {
  position: relative;
  overflow: clip;
  padding: clamp(80px, 11vw, 160px) var(--margem);
}

.curvas {
  position: absolute;
  top: 50%;
  right: -380px;
  width: 1280px;
  height: auto;
  color: var(--ouro);
  opacity: 0.2;
  transform: translateY(-50%);
  pointer-events: none;
}

.loc-grade {
  position: relative;
  display: grid;
  gap: 64px;
  max-width: var(--larg);
  margin: 0 auto;
}

.localizacao h2 {
  margin-top: 22px;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.04;
}

.loc-lead {
  max-width: 28em;
  margin-top: 24px;
  color: var(--cinza);
  font-size: clamp(17px, 1.3vw, 19px);
}

.distancias {
  margin-top: 44px;
  padding: 0;
  border-top: 1px solid var(--fio);
  list-style: none;
}

.distancias li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--fio);
}

.tempo {
  color: var(--cinza);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tempo span {
  display: inline-block;
  min-width: 1.3em;
  margin-right: 10px;
  color: var(--ouro);
  font-family: 'Marcellus', serif;
  font-size: 36px;
  letter-spacing: 0;
  line-height: 1;
}

.destino {
  font-size: 17px;
}

.loc-endereco {
  max-width: 30em;
  margin-top: 28px;
  color: var(--cinza);
  font-size: 15px;
}

@media (min-width: 560px) {
  .distancias li {
    grid-template-columns: 11.5rem 1fr;
    align-items: baseline;
    gap: 24px;
  }
}

/* Formulário de interesse: campos com fio, sem caixa */

.interesse {
  align-self: start;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--fio);
  background: rgb(20 20 20 / 0.94);
  scroll-margin-top: 24px;
}

.interesse h3 {
  font-size: clamp(30px, 2.6vw, 38px);
  line-height: 1.1;
}

.interesse-apoio {
  margin-top: 12px;
  color: var(--cinza);
  font-size: 16px;
}

.campo {
  margin-top: 26px;
}

.campo label {
  display: block;
  color: var(--cinza);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.campo input,
.campo select {
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgb(243 238 228 / 0.3);
  border-radius: 0;
  background: transparent;
  color: var(--marfim);
  font: 300 18px/1.3 'Jost', system-ui, sans-serif;
  transition: border-color 200ms ease;
}

.campo select {
  padding-right: 32px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23c8a96a' stroke-width='1.2'/%3E%3C/svg%3E");
  background-position: right 2px center;
  background-repeat: no-repeat;
  background-size: 14px;
  cursor: pointer;
}

.campo select option {
  background: var(--grafite);
  color: var(--marfim);
}

.campo input::placeholder {
  color: #8e887e;
}

.campo input:focus-visible,
.campo select:focus-visible {
  border-bottom-color: var(--ouro);
  outline: 2px solid var(--ouro);
  outline-offset: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .campo input:hover,
  .campo select:hover {
    border-bottom-color: rgb(243 238 228 / 0.6);
  }
}

.check {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-top: 22px;
  font-size: 15px;
  cursor: pointer;
}

.check input {
  display: grid;
  flex: none;
  place-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--ouro);
  appearance: none;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.check input::after {
  content: '';
  width: 10px;
  height: 5px;
  border-bottom: 1.5px solid var(--preto);
  border-left: 1.5px solid var(--preto);
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg) scale(0.6);
  transition:
    opacity 160ms ease,
    transform 160ms var(--mola);
}

.check input:checked {
  background: var(--ouro);
}

.check input:checked::after {
  opacity: 1;
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.envio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.botao-cheio {
  min-height: 56px;
  padding: 0 34px;
  border: 1px solid var(--ouro);
  border-radius: 0;
  background: var(--ouro);
  color: var(--preto);
  font: 500 12.5px/1 'Jost', system-ui, sans-serif;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    transform 160ms var(--mola);
}

.botao-cheio:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .botao-cheio:hover {
    background: var(--ouro-claro);
  }
}

.aviso {
  color: var(--ouro);
  font-size: 14px;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 240ms ease;
}

.aviso.visivel {
  opacity: 1;
}

.nota {
  margin-top: 22px;
  color: var(--cinza);
  font-size: 13px;
}

@media (min-width: 1000px) {
  .loc-grade {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(64px, 8vw, 128px);
  }

  .interesse {
    margin-top: 40px;
  }
}

/* Rodapé */

.rodape {
  padding: 48px var(--margem) 56px;
  border-top: 1px solid var(--fio-claro);
}

.rodape-dentro {
  display: grid;
  gap: 18px;
  max-width: var(--larg);
  margin: 0 auto;
}

.rodape-marca {
  font-family: 'Marcellus', serif;
  font-size: 15px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.rodape-legal,
.rodape-fim {
  color: var(--cinza);
  font-size: 13px;
  line-height: 1.7;
}

.rodape-legal {
  max-width: 40em;
}

@media (min-width: 960px) {
  .rodape-dentro {
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pular,
  .botao,
  .botao::before,
  .link-linha::before,
  .botao-cheio,
  .check input::after {
    transition-property: color, background-color, opacity;
  }
}
