@font-face {
  font-family: Inter;
  src: url('../fonts/InterVariable.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: Luxia;
  src: url('../fonts/Luxia-Regular.otf') format('opentype');
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: LuxiaDisplay;
  src: url('../fonts/Luxia-Display.otf') format('opentype');
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --viiv-blue: #0072bc;
  --viiv-blue-dark: #0067a8;
  --viiv-gold: #bd9b60;
  --viiv-gold-dark: #765b2b;
  --viiv-ink: #25282a;
  --viiv-muted: #606467;
  --viiv-gray: #f0f1f2;
  --viiv-gray-strong: #dedfe0;
  --viiv-white: #fff;
  --viiv-font-sans: Inter, Arial, sans-serif;
  --viiv-font-heading: Luxia, Georgia, serif;
  --viiv-font-display: LuxiaDisplay, Luxia, Georgia, serif;
  --viiv-container: 98.0625rem;
  --viiv-gutter: clamp(1.25rem, 4.3vw, 5.25rem);
  
  /* Shared rhythm: components 8–32px, sections 48–96px. */
  --viiv-space-xs: 0.5rem;
  --viiv-space-sm: 0.75rem;
  --viiv-space-md: 1rem;
  --viiv-space-lg: 1.5rem;
  --viiv-space-xl: 2rem;
  --viiv-section-space: clamp(3rem, 6vw, 6rem);
  --viiv-heading-space: clamp(2rem, 3vw, 3rem);
  --viiv-column-gap: clamp(2rem, 4vw, 4rem);
  --viiv-grid-gap: clamp(1.25rem, 2vw, 2rem);
  --viiv-panel-space: clamp(1.5rem, 2.5vw, 2.5rem);
  --viiv-control-height: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--viiv-header-height) + 1rem);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--viiv-ink);
  background: var(--viiv-white);
  font-family: var(--viiv-font-sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

select:not([multiple]) {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%234c4f51' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 0.75rem 0.5rem;
}

@media (forced-colors: active) {
  select:not([multiple]) {
    appearance: auto;
    background-image: none;
  }
}

:focus-visible {
  outline: 3px solid var(--viiv-blue-dark);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--viiv-white);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--viiv-blue);
}

.viiv-container {
  width: min(calc(100% - (2 * var(--viiv-gutter))), var(--viiv-container));
  margin-inline: auto;
}

.custom-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

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

  *,
*::before,
*::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.project-filter {
  display: grid;
  align-items: stretch;
  background: #fff;
  box-shadow: 0 0.65rem 1.8rem rgb(0 0 0 / 13%);
}

.project-filter > strong,
.project-filter > label,
.project-filter > button {
  min-width: 0;
  min-height: 2.75rem;
  border: 0;
}

.project-filter > strong,
.project-filter > label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(0.8rem, 1.35vw, 1.65rem);
  color: #3a3c3e;
  font-size: 0.78rem;
  font-weight: 400;
  white-space: nowrap;
}

.project-filter > strong {
  color: #6b6d6f;
  font-size: 1rem;
  font-weight: 600;
}

.project-filter input {
  width: 0.92rem;
  height: 0.92rem;
  margin: 0 0.7rem 0 0;
  accent-color: var(--viiv-blue);
}

.project-filter__city {
  border-left: 1px solid #d3d5d6 !important;
}

.project-filter select {
  width: 100%;
  min-height: 2.75rem;
  color: #4c4f51;
  background-color: transparent;
  border: 0;
}

.project-filter button {
  padding: 0 2rem;
  color: #fff;
  background: var(--viiv-blue);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.project-filter button:hover {
  background: var(--viiv-blue-dark);
}

.project-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #e3e3e4;
}

.project-card__link {
  position: relative;
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.project-card__status {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  display: grid;
  width: min(50%, 19.75rem);
  min-height: 3.85rem;
  place-items: center;
  margin: 0;
  color: #fff;
  background: #858789;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.project-card__status--lancamento {
  background: #0072bc;
}

.project-card__status--em-obras {
  background: #666a6d;
}

.project-card__status--pronto-para-construir {
  background: #337347;
}

.project-card__status--breve-lancamento {
  background: #25282a;
}

.project-card__content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 6.5625rem;
  align-content: center;
  padding: 1rem 2rem;
  color: #45484a;
  background: rgb(224 225 226 / 94%);
  text-align: center;
}

.project-card__title {
  margin: 0;
  font-family: var(--viiv-font-heading);
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  font-weight: 400;
  line-height: 1.25;
}

.project-card__city,
.project-card__lots {
  margin: 0.28rem 0 0;
  font-size: 0.92rem;
}

.project-card__lots,
.project-card__more {
  display: none;
}

.project-card:hover .project-card__image {
  transform: scale(1.025);
}

.floating-whatsapp {
  position: fixed;
  z-index: 90;
  right: clamp(1rem, 2.1vw, 2.75rem);
  bottom: 1.8rem;
  display: block;
  width: clamp(3.75rem, 4.5vw, 5.3125rem);
  height: clamp(3.75rem, 4.5vw, 5.3125rem);
  border-radius: 50%;
  box-shadow: 0 0.65rem 1.5rem rgb(0 0 0 / 24%);
}

.catalog-search {
  position: relative;
  display: grid;
  height: 17.75rem;
  overflow: hidden;
  place-items: center;
  color: #fff;
  background: #404346;
}

.catalog-search::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(34 37 40 / 68%);
}

.catalog-search > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: grayscale(1);
}

.catalog-search > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.catalog-search h1 {
  margin: 0 0 2.35rem;
  font-family: var(--viiv-font-display);
  font-size: clamp(1.9rem, 2.15vw, 2.5rem);
  font-weight: 400;
  text-transform: uppercase;
}

.project-filter--catalog {
  width: 100%;
  height: 3.875rem;
  margin-inline: auto;
  grid-template-columns: repeat(5, auto) minmax(9rem, 1fr) 9.5rem;
}

.catalog-filter-ui {
  width: min(100%, 80.5625rem);
  margin-inline: auto;
}

.catalog-filter__toggle[hidden],
.project-filter--catalog[hidden] {
  display: none;
}

.catalog-filter__toggle {
  display: none;
}

.catalog-grid {
  display: grid;
  width: min(100%, calc(var(--viiv-container) + 2 * var(--viiv-gutter)));
  padding: var(--viiv-heading-space) var(--viiv-gutter) var(--viiv-section-space);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--viiv-grid-gap);
}

.project-card--catalog {
  background: #f7f9fa;
  box-shadow: 0 0.35rem 1.25rem rgb(19 47 65 / 9%);
  transition: box-shadow 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card--catalog:hover,
.project-card--catalog:focus-within {
  box-shadow: 0 0.7rem 1.8rem rgb(19 47 65 / 16%);
}

.project-card--catalog .project-card__link {
  display: flex;
  flex-direction: column;
}

.project-card--catalog .project-card__status {
  top: 1rem;
  left: 1rem;
  width: auto;
  min-height: 2.15rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  transform: none;
}

.project-card--catalog .project-card__content {
  position: static;
  display: flex;
  flex: 1;
  min-height: 9.75rem;
  align-items: flex-start;
  flex-direction: column;
  padding: 1.35rem 1.45rem 1.2rem;
  color: var(--viiv-ink);
  background: #f7f9fa;
  text-align: left;
}

.project-card--catalog .project-card__image {
  position: static;
  flex: none;
  height: auto;
  aspect-ratio: 1.47 / 1;
}

.project-card--catalog .project-card__title {
  font-size: clamp(1.35rem, 1.65vw, 1.75rem);
  line-height: 1.08;
}

.project-card--catalog:hover .project-card__title,
.project-card--catalog:focus-within .project-card__title {
  color: var(--viiv-blue-dark);
}

.project-card--catalog .project-card__city {
  margin-top: 0.55rem;
  color: #4d5c66;
  font-size: 0.83rem;
  font-weight: 600;
}

.project-card--catalog .project-card__lots {
  display: block;
  color: #61717a;
  font-size: 0.78rem;
}

.project-card--catalog .project-card__more {
  display: block;
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--viiv-blue-dark);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}

.project-card--catalog .project-card__more::after {
  content: '↗';
  padding-left: 0.4rem;
  font-size: 0.95rem;
}

.project-card__more {
  margin-top: 8rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-more,
.catalog-empty {
  min-height: 7.9rem;
  padding: 2.9rem var(--viiv-gutter);
  text-align: center;
}

.catalog-more a {
  color: var(--viiv-blue);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 3rem;
  padding-block: 2.75rem 2.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 17%);
}

.footer-top__brand img {
  width: 9.75rem;
}

.footer-top__brand p {
  max-width: 21rem;
  margin: 0.5rem 0 0;
  color: #c7d8e5;
  font-size: 0.85rem;
}

.footer-top__contact h2,
.footer-navigation h2 {
  margin: 0 0 0.9rem;
  color: #dfbd81;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-top__phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.footer-top__phones a {
  display: grid;
  gap: 0.15rem;
  width: fit-content;
  text-decoration: none;
}

.footer-top__phones span {
  color: #c7d8e5;
  font-size: 0.82rem;
}

.footer-top__phones strong {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-navigation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  padding-block: 2.5rem 2.75rem;
}

.footer-navigation__group {
  min-width: 0;
}

.footer-navigation a {
  display: block;
  width: fit-content;
  padding-block: 0.27rem;
  color: #e4edf4;
  font-size: 0.85rem;
  line-height: 1.4;
  text-decoration: none;
}

.footer-top a:hover,
.footer-navigation a:hover,
.footer-bottom a:hover {
  color: #f2d39b;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgb(255 255 255 / 17%);
  color: #c7d8e5;
  font-size: 0.75rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  padding-right: 4.5rem;
}

.footer-bottom a {
  color: #e4edf4;
  text-decoration: none;
}

.footer-bottom__legal {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
}

@media (min-width: 120rem) {

  .project-card__title {
    font-size: 1.35rem;
  }
}

@media (max-width: 87.5rem) {

  .project-filter > label {
    padding-inline: 0.65rem;
    font-size: 0.68rem;
  }

}

@media (max-width: 68.75rem) {

  .project-filter > strong,
.project-filter > label,
.project-filter > button,
.project-filter select {
    min-height: 3.25rem;
  }

  .project-filter:not(.project-filter--home) .project-filter__city {
    border-top: 1px solid #e1e3e5 !important;
    border-left: 0 !important;
    grid-column: 1 / -1;
  }

  .footer-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 47.9375rem) {
  :root {
    --viiv-gutter: 1.25rem;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-search {
    height: auto;
    min-height: 0;
    padding-block: 2.15rem 2.35rem;
  }

  .catalog-search h1 {
    max-width: 20rem;
    margin-inline: auto;
    margin-bottom: 1.35rem;
  }

  .catalog-filter__toggle:not([hidden]) {
    display: grid;
    width: 100%;
    min-height: 4.2rem;
    align-items: center;
    padding: 0.7rem 1rem;
    border: 1px solid rgb(255 255 255 / 70%);
    color: #243c4d;
    background: #f7f9fa;
    grid-template-columns: 1fr auto;
    column-gap: 1rem;
    text-align: left;
    cursor: pointer;
  }

  .catalog-filter__toggle span:first-child {
    font-size: 0.9rem;
    font-weight: 700;
  }

  .catalog-filter__toggle small {
    font-size: 0.72rem;
    grid-column: 1;
  }

  .catalog-filter__toggle span:last-child {
    font-size: 1.5rem;
    line-height: 1;
    grid-column: 2;
    grid-row: 1 / 3;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .catalog-filter__toggle[aria-expanded='true'] span:last-child {
    transform: rotate(180deg);
  }

  .project-filter--catalog {
    width: 100%;
    height: auto;
    grid-template-columns: 1fr;
  }

  .project-filter--catalog > label {
    justify-content: flex-start;
    padding-inline: 1rem;
    border-bottom: 1px solid #eceeef;
  }

  .project-filter--catalog .project-filter__city {
    grid-column: auto;
  }

  .catalog-grid {
    gap: 1.2rem;
  }

  .project-card--catalog .project-card__image {
    aspect-ratio: 1.45 / 1;
  }

  .project-card--catalog .project-card__content {
    min-height: 9rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-block: 2rem 1.75rem;
  }

  .footer-top__phones {
    gap: 1rem;
  }

  .footer-navigation {
    gap: 1.75rem 1.25rem;
    padding-block: 2rem;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-right: 3.5rem;
  }

  .footer-bottom__social {
    justify-content: flex-start;
    padding-right: 0;
  }

  .footer-bottom__legal {
    grid-column: auto;
  }
}

@media (min-width: 48rem) and (max-width: 68.75rem) {
  .catalog-search {
    height: auto;
    min-height: 15rem;
    padding-block: 2rem;
  }

  .catalog-search h1 {
    margin-bottom: 1.5rem;
  }

  .catalog-filter__toggle:not([hidden]) {
    display: grid;
    width: min(100%, 35rem);
    min-height: 4.2rem;
    align-items: center;
    padding: 0.7rem 1rem;
    margin-inline: auto;
    border: 1px solid rgb(255 255 255 / 70%);
    color: #243c4d;
    background: #f7f9fa;
    grid-template-columns: 1fr auto;
    column-gap: 1rem;
    text-align: left;
    cursor: pointer;
  }

  .catalog-filter__toggle span:first-child {
    font-size: 0.9rem;
    font-weight: 700;
  }

  .catalog-filter__toggle small {
    font-size: 0.72rem;
    grid-column: 1;
  }

  .catalog-filter__toggle span:last-child {
    font-size: 1.5rem;
    line-height: 1;
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .catalog-filter__toggle[aria-expanded='true'] span:last-child {
    transform: rotate(180deg);
  }

  .project-filter--catalog {
    width: min(100%, 35rem);
    height: auto;
    grid-template-columns: 1fr;
  }

  .project-filter--catalog > label {
    justify-content: flex-start;
    padding-inline: 1rem;
    border-bottom: 1px solid #eceeef;
  }

  .project-filter--catalog .project-filter__city {
    grid-column: auto;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 25rem) {

  .project-filter > label {
    padding-inline: 0.45rem;
    font-size: 0.62rem;
  }
}

@media (max-width: 22rem) {
  .footer-top__phones {
    grid-template-columns: 1fr;
  }
}

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

  *,
*::before,
*::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Touch navigation keeps the same visual groups with comfortable targets. */
@media (max-width: 68.75rem) {
  .footer-navigation a,
.footer-social a {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    padding-block: var(--viiv-space-xs);
  }
}
