/* Paleta e variáveis globais */
:root {
  --navy: #152a50;
  --ink: #172a42;
  --muted: #66717e;
  --line: #dbe1e5;
  --soft: #f1f4f4;
  --sand: #f4f1e9;
  --accent: #416f73;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  font-family: Outfit, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:hover,
.primary:hover {
  filter: brightness(1.13);
}
:focus-visible {
  outline: 3px solid #55898d;
  outline-offset: 4px;
}
/* Cabeçalho e marca */
header {
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: relative;
  z-index: 3;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 19px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.8px;
  font-weight: 400;
  margin-top: 5px;
}
nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
}
.outline {
  background: white;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 13px 20px;
  border-radius: 6px;
}
/* Apresentação principal */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 530px;
  background: var(--sand);
}
.hero-copy {
  padding: 65px 5vw 90px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2.1px;
  color: var(--accent);
}
h1 {
  font-size: clamp(32px, 3.7vw, 57px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 24px 0;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}
.hero-copy > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.8;
  color: #5a6570;
}
.text-link {
  display: inline-flex;
  gap: 50px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #889799;
  padding: 12px 0;
}
.hero-sign {
  font-size: 11px;
  margin-top: 32px;
  color: var(--muted);
}
.hero-sign span {
  display: block;
  margin-top: 7px;
  letter-spacing: 1.6px;
}
.hero-art {
  position: relative;
  overflow: hidden;
}
.hero-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-caption {
  position: absolute;
  bottom: 60px;
  left: 30px;
  color: #fff;
  letter-spacing: 4px;
  font-size: 11px;
}
.art-caption span {
  display: block;
  font-family: Georgia, serif;
  letter-spacing: 0;
  font-size: 27px;
  margin-top: 8px;
}
/* Busca */
.search-panel {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: -40px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 30px;
  box-shadow: none;
}
.search-tabs {
  display: flex;
  gap: 24px;
  font-size: 14px;
  margin-bottom: 20px;
}
.search-tabs label {
  cursor: pointer;
}
.search-tabs input {
  accent-color: var(--navy);
}
.search-row {
  display: flex;
  gap: 24px;
  align-items: end;
}
.search-row label {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
}
.search-row .location {
  flex: 2;
}
input,
select {
  color: var(--ink);
  background: white;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px;
  width: 100%;
  margin-top: 7px;
  min-width: 0;
}
.primary {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 15px 25px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
/* Catálogo, filtros e cards */
.catalog {
  max-width: 1240px;
  margin: auto;
  padding: 70px 30px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 500;
  letter-spacing: -1.2px;
  margin: 12px 0 20px;
  line-height: 1.2;
}
.section-heading p:last-child {
  font-size: 13px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filters label {
  flex: 1;
  font-size: 11px;
  color: var(--muted);
}
.filters select,
.filters input {
  font-size: 13px;
}
.plain {
  background: transparent;
  text-decoration: underline;
  color: var(--ink);
  padding: 13px 3px;
  font-size: 12px;
}
.demo-note {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 22px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #152a5012;
}
.card-media {
  position: relative;
}
.card img {
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
  display: block;
}
.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: white;
  padding: 7px 11px;
  font-size: 10px;
  border-radius: 3px;
}
.card-body {
  padding: 21px;
}
.card h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 10px 0;
  line-height: 1.4;
}
.card p {
  font-size: 12px;
  color: var(--muted);
}
.features {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}
.card-bottom b {
  font-size: 21px;
}
.card-bottom span {
  font-size: 18px;
}
/* Apresentação do corretor */
.about {
  background: var(--soft);
  padding: 70px max(5vw, 24px);
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 80px;
}
.about-mark {
  background: #e4eae9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  letter-spacing: 4px;
  font-size: 23px;
}
.about-mark small {
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 16px;
}
.about p {
  line-height: 1.8;
  color: var(--muted);
  max-width: 540px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0;
}
.steps p {
  font-size: 12px;
}
.steps b {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}
/* Rodapé */
footer {
  padding: 40px 5vw 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
footer > .brand {
  display: block;
  font-size: 14px;
}
footer p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.floating {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--navy);
  color: #fff;
  padding: 15px 22px;
  border-radius: 30px;
  z-index: 5;
  box-shadow: 0 4px 20px #152a5033;
}
/* Janela de contato */
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 480px;
  padding: 35px;
  color: var(--ink);
}
dialog::backdrop {
  background: #152a5080;
}
dialog p {
  line-height: 1.7;
}
.close {
  float: right;
  background: var(--soft);
  font-size: 24px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 70px;
  background: var(--soft);
  border-radius: 8px;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 50;
  background: white;
  padding: 15px;
}
.skip:focus {
  top: 0;
}
/* Motion de abertura */
#intro:not([hidden]) {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introExit 0.18s 1.62s forwards;
  pointer-events: none;
}
#intro video {
  width: min(90vw, 850px);
  height: 80vh;
  object-fit: contain;
}
#skipIntro {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: transparent;
  color: white;
  padding: 15px;
  pointer-events: auto;
}
@keyframes introExit {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
/* Página de detalhes */
.detail {
  max-width: 1180px;
  margin: auto;
  padding: 35px 24px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 35px;
}
.detail-image {
  width: 100%;
  border-radius: 10px;
}
.detail-info {
  background: var(--soft);
  padding: 30px;
  border-radius: 10px;
  align-self: start;
}
.detail-info h1 {
  font-size: 32px;
  letter-spacing: -1px;
}
.price {
  font-size: 30px;
  margin: 25px 0;
}
.detail-description {
  max-width: 740px;
  line-height: 1.8;
  padding: 30px 0;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pills span {
  background: var(--sand);
  padding: 8px 13px;
  border-radius: 4px;
  font-size: 13px;
}
#contactDialog {
  width: calc(100% - 32px);
}
/* Responsividade: tablets */
@media (max-width: 1000px) {
  nav {
    gap: 18px;
  }
  .search-panel {
    margin: -25px 24px 0;
  }
  .hero-copy {
    padding: 45px 30px 75px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters label {
    flex-basis: 28%;
  }
  .about {
    gap: 35px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero {
    min-height: 480px;
  }
}
/* Responsividade: celulares */
@media (max-width: 640px) {
  header {
    height: 82px;
    padding: 0 20px;
  }
  .brand {
    font-size: 14px;
    gap: 6px;
    letter-spacing: 1px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .brand img {
    width: 34px;
  }
  nav a {
    display: none;
  }
  nav button {
    font-size: 11px;
    padding: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 35px 24px 40px;
  }
  h1 {
    font-size: 37px;
    letter-spacing: -1.4px;
  }
  .hero-art {
    height: 240px;
  }
  .art-caption {
    bottom: 40px;
  }
  .hero-sign {
    margin-top: 20px;
  }
  .search-panel {
    padding: 20px;
    margin: -20px 16px 0;
  }
  .search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .catalog {
    padding: 45px 20px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 0;
  }
  .section-heading h2 {
    margin-bottom: 0;
  }
  .filters {
    gap: 12px;
  }
  .filters label {
    flex-basis: 44%;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .about {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 30px;
  }
  .about-mark {
    min-height: 270px;
  }
  .about-mark img {
    width: 145px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  footer {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-info {
    padding: 24px;
  }
  .floating {
    font-size: 13px;
    padding: 13px 18px;
  }
  .empty {
    padding: 35px 20px;
  }
}
/* Acessibilidade: movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

.card img {
  height: auto;
}
.search-tabs input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0 6px 0 0;
  vertical-align: middle;
}
.search-tabs label {
  display: flex;
  align-items: center;
}
.card-media {
  overflow: hidden;
}
.card-media img {
  aspect-ratio: 1.48;
  object-fit: cover;
}

/* Fontes locais */
@font-face {
  font-family: Outfit;
  src: url('assets/outfit-400.ttf') format('truetype');
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url('assets/outfit-600.ttf') format('truetype');
  font-weight: 600 800;
  font-display: swap;
}

/* Revisão: presença de marca e abertura baseada no início real da reprodução. */
.hero-copy {
  background: var(--navy);
  color: #fff;
}
.hero-copy .eyebrow {
  color: #b9d6df;
}
.hero-copy h1 em {
  color: #bed4e4;
}
.hero-copy > p:not(.eyebrow) {
  color: #d3ddeb;
}
.hero-copy .hero-sign {
  color: #c3cfe1;
}
.hero-copy .text-link {
  border-color: #758ba8;
}
.about-mark {
  background: var(--navy);
  color: #fff;
}
.about-mark img {
  filter: brightness(0) invert(1);
}
footer {
  background: var(--navy);
  color: #fff;
}
footer p {
  color: #d0dbee;
}
.section-heading h2 {
  color: var(--navy);
}
.search-panel {
  border: 0;
  border-radius: 12px;
  background-clip: border-box;
  box-shadow: inset 0 0 0 1px var(--line);
}
.card-bottom b {
  color: var(--navy);
}
#intro:not([hidden]) {
  animation: none;
  pointer-events: auto;
  transition: opacity 0.18s ease;
  opacity: 1;
  visibility: visible;
}
#intro.leaving:not([hidden]) {
  opacity: 0;
  pointer-events: none;
}
#intro video {
  opacity: 0;
  position: relative;
  z-index: 2;
}
#intro.is-playing video {
  opacity: 1;
}
.intro-brand {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: white;
  letter-spacing: 4px;
  font-size: 28px;
}
.intro-brand img {
  filter: brightness(0) invert(1);
}
.intro-brand small {
  font-size: 9px;
  letter-spacing: 2px;
}
#intro.is-playing .intro-brand {
  visibility: hidden;
}
#skipIntro {
  z-index: 3;
}
