:root {
  --green: #314239;
  --olive: #5b6f61;
  --sage: #dce2dc;
  --cream: #f4f1ea;
  --sand: #ddd2c2;
  --ink: #242925;
  --muted: #697069;
  --white: #fff;
  --line: rgba(49, 66, 57, .15);
  --container: min(1240px, calc(100vw - 64px));
  --display: "Libre Baskerville", Georgia, serif;
  --text: "Inter", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 58px);
  background: rgba(244, 241, 234, .96);
  box-shadow: 0 1px 0 var(--line);
  color: var(--green);
  transition: background .3s ease, box-shadow .3s ease;
  backdrop-filter: blur(16px);
}

.site-header.scrolled {
  background: rgba(244, 241, 234, .96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand span {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

.brand small {
  margin-top: 4px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav > a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.main-nav > a:not(.nav-cta) {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.main-nav > a:not(.nav-cta):hover,
.main-nav > a:not(.nav-cta):focus-visible {
  border-color: currentColor;
}

.nav-cta {
  padding: 12px 19px;
  border: 1px solid var(--green);
  transition: background .25s ease, color .25s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--green);
  color: var(--white);
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  min-height: 780px;
  height: 100svh;
  max-height: 940px;
  grid-template-columns: 44% 56%;
  background: var(--cream);
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 110px clamp(40px, 6vw, 90px) 48px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--olive);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--green);
  font-weight: 400;
  letter-spacing: -.035em;
}

h1 {
  max-width: 570px;
  margin-bottom: 22px;
  font-size: clamp(4rem, 6.4vw, 6.7rem);
  line-height: .98;
}

h2 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-subtitle {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.35;
}

.hero-text {
  max-width: 440px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: .98rem;
}

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--olive);
}

.hero-facts {
  display: grid;
  width: 100%;
  max-width: 490px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.hero-facts li {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.hero-facts strong {
  color: var(--green);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.hero-facts span {
  margin-top: 5px;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--sand);
  cursor: zoom-in;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .8s var(--ease);
}

.hero-image:hover img {
  transform: scale(1.02);
}

.scroll-cue {
  display: none;
}

.section {
  padding: 92px 0;
}

.section-heading {
  width: var(--container);
  margin: 0 auto 48px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.intro {
  background: var(--white);
}

.feature-grid {
  display: grid;
  width: var(--container);
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.feature-grid article {
  min-height: 205px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #faf9f6;
}

.feature-grid article span {
  color: var(--olive);
  font-family: var(--display);
  font-size: .9rem;
}

.feature-grid h3 {
  margin-top: 28px;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.apartment-story {
  background: var(--cream);
}

.story-grid {
  display: grid;
  width: var(--container);
  margin: 0 auto;
  align-items: stretch;
  grid-template-columns: .82fr 1.18fr;
  grid-template-rows: auto auto;
  gap: 16px 30px;
}

.story-copy {
  display: flex;
  grid-row: 1 / span 2;
  flex-direction: column;
  justify-content: center;
  padding: 24px 32px 24px 0;
}

.story-copy h2 {
  font-size: clamp(2.6rem, 3.8vw, 3.8rem);
}

.story-copy > p:not(.eyebrow),
.focus-copy p:not(.eyebrow),
.building-copy > p:not(.eyebrow),
.location-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: .95rem;
}

.clean-list {
  display: grid;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
  gap: 9px 20px;
  list-style: none;
}

.clean-list li {
  color: var(--green);
  font-size: .82rem;
  font-weight: 600;
}

.media,
.image-button {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--sand);
  cursor: zoom-in;
}

.media img,
.image-button img {
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  filter: none;
  transition: transform .65s var(--ease);
}

.media:hover img,
.image-button:hover img {
  transform: scale(1.018);
}

.story-grid > .media:nth-of-type(1) {
  min-height: 360px;
}

.story-grid > .media:last-child {
  width: 100%;
  min-height: 250px;
  transform: none;
}

.focus-section {
  display: grid;
  width: var(--container);
  margin: 0 auto 16px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr);
  gap: 0;
}

.focus-section.section {
  padding: 0;
}

.apartment-story + .focus-section {
  margin-top: 76px;
}

.focus-section + .focus-section {
  padding-top: 0;
}

.focus-media {
  min-height: 440px;
  padding: 0;
}

.focus-media .media {
  width: 100%;
  height: 100%;
  min-height: 440px;
  aspect-ratio: auto;
}

.focus-media img {
  filter: contrast(1.04) saturate(1.03);
}

.focus-copy {
  display: flex;
  width: 100%;
  max-width: 500px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 5vw, 68px);
}

.focus-copy h2 {
  max-width: 440px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 3.5vw, 3.4rem);
}

.focus-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-size: .75rem;
  opacity: 1;
}

.focus-copy .eyebrow::before {
  width: 30px;
  height: 1px;
  background: var(--olive);
  content: "";
}

.focus-copy p:not(.eyebrow) {
  max-width: 410px;
  margin-bottom: 0;
  color: #555f58;
  font-size: .96rem;
  line-height: 1.72;
}

.focus-reverse .focus-media {
  order: 2;
  padding: 0;
}

.focus-reverse .focus-copy {
  justify-self: end;
}

.bedrooms {
  background: var(--white);
}

.bedroom-grid {
  display: grid;
  width: var(--container);
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bedroom-grid .media:first-child,
.bedroom-grid .media:last-child {
  min-height: 0;
  margin-top: 0;
  aspect-ratio: 4 / 3;
}

.gallery-section {
  background: var(--green);
  color: var(--white);
}

.gallery-section .eyebrow {
  color: var(--sand);
}

.gallery-section h2 {
  color: var(--white);
}

.gallery {
  display: grid;
  width: var(--container);
  margin: 0 auto;
  grid-auto-rows: 330px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-item.wide {
  grid-column: span 2;
}

.building-intro {
  display: grid;
  width: var(--container);
  min-height: 0;
  margin: 92px auto;
  background: var(--white);
  grid-template-columns: .92fr 1.08fr;
}

.building-image,
.building-image > button {
  width: 100%;
  height: 100%;
}

.building-image {
  min-height: 620px;
}

.building-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.building-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 6vw, 86px);
}

.building-copy h2 {
  font-size: clamp(2.7rem, 3.8vw, 3.8rem);
}

.amenities {
  display: flex;
  margin-top: 26px;
  flex-wrap: wrap;
  gap: 7px;
}

.amenities span,
.nearby span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  color: var(--green);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.leisure {
  background: var(--cream);
}

.leisure-grid {
  display: grid;
  width: var(--container);
  margin: 0 auto;
  grid-auto-rows: 330px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.leisure-card.large {
  grid-column: span 2;
}

.location {
  display: grid;
  width: var(--container);
  min-height: 0;
  margin: 92px auto;
  background: var(--white);
  grid-template-columns: .82fr 1.18fr;
}

.location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 78px);
}

.location-copy h2 {
  font-size: clamp(2.7rem, 3.8vw, 3.8rem);
}

.nearby {
  display: flex;
  margin: 22px 0 26px;
  flex-wrap: wrap;
  gap: 7px;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-wrap,
.map-wrap iframe {
  min-height: 520px;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(.72) contrast(.94);
}

.final-cta {
  display: grid;
  min-height: 490px;
  padding: 72px 24px;
  background: var(--green);
  color: var(--white);
  text-align: center;
  place-items: center;
}

.final-cta-inner {
  max-width: 780px;
}

.final-cta .eyebrow {
  color: var(--sand);
}

.final-cta h2 {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(2.9rem, 4.6vw, 4.6rem);
}

.final-cta p:not(.eyebrow) {
  margin-bottom: 26px;
  color: rgba(255,255,255,.72);
}

.button-light {
  margin: 0 auto;
  background: var(--cream);
  color: var(--green);
}

.brand-signature {
  padding: 58px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.brand-signature-inner {
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.brand-signature .eyebrow {
  margin-bottom: 26px;
}

.signature-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 4vw, 54px);
}

.signature-macoto {
  width: min(350px, 34vw);
  height: auto;
  object-fit: contain;
}

.signature-divider {
  width: 1px;
  height: 56px;
  background: var(--line);
}

.signature-partner {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.signature-partner p {
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.signature-partner img {
  width: min(220px, 25vw);
  height: auto;
  object-fit: contain;
}

.site-footer {
  display: grid;
  padding: 44px max(32px, calc((100vw - 1240px) / 2));
  align-items: end;
  background: #26322b;
  color: rgba(255,255,255,.68);
  grid-template-columns: 1fr 1fr auto;
  gap: 28px;
}

.site-footer div {
  display: flex;
  flex-direction: column;
}

.site-footer strong,
.site-footer a {
  color: var(--white);
  font-family: var(--display);
  font-size: 1rem;
}

.site-footer span,
.site-footer p {
  margin: 4px 0 0;
  font-size: .75rem;
}

.whatsapp-float {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 10px 28px rgba(36,41,37,.22);
  place-items: center;
  transition: transform .25s var(--ease), background .25s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: var(--green);
  transform: translateY(-2px);
}

.whatsapp-float svg {
  width: 24px;
  fill: var(--white);
}

.lightbox {
  position: fixed;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 52px 72px;
  border: 0;
  background: rgba(21, 28, 24, .97);
  color: var(--white);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(21, 28, 24, .82);
}

.lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 104px);
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 2;
  display: grid;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  place-items: center;
}

.lightbox-close {
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 1.9rem;
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 64px;
  font-size: 2.7rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 8px;
}

.lightbox-next {
  right: 8px;
}

/* O conteúdo permanece visível mesmo sem JavaScript. */
.reveal,
.reveal.visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1060px) {
  :root {
    --container: min(100% - 48px, 980px);
  }

  .main-nav {
    gap: 18px;
  }

  .hero {
    grid-template-columns: 46% 54%;
  }

  .hero-copy {
    padding-right: 44px;
    padding-left: 44px;
  }

  .hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
  }

  .gallery {
    grid-auto-rows: 280px;
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100% - 32px, 680px);
  }

  .site-header {
    height: 74px;
    padding: 0 18px;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 11px 7px;
    border: 0;
    background: transparent;
  }

  .menu-toggle span {
    display: block;
    width: 27px;
    height: 1px;
    align-self: center;
    background: var(--green);
    transition: transform .25s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 110px 26px 40px;
    background: var(--cream);
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .3s var(--ease);
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .main-nav > a {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: -.02em;
    text-transform: none;
  }

  .main-nav .nav-cta {
    margin-top: 8px;
    font-family: var(--text);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .hero {
    display: flex;
    height: auto;
    min-height: 0;
    max-height: none;
    flex-direction: column;
  }

  .hero-copy {
    min-height: 670px;
    padding: 106px 24px 48px;
  }

  h1 {
    font-size: clamp(3.7rem, 17vw, 5.4rem);
  }

  .hero-image {
    aspect-ratio: 2 / 3;
  }

  .hero-image img {
    object-fit: contain;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

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

  .feature-grid article {
    min-height: 185px;
    padding: 24px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }

  .story-copy {
    grid-row: auto;
    padding: 0 0 24px;
  }

  .story-grid > .media:nth-of-type(1),
  .story-grid > .media:last-child {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .focus-section,
  .focus-section.focus-reverse {
    display: flex;
    width: var(--container);
    margin-right: auto;
    margin-bottom: 14px;
    margin-left: auto;
    flex-direction: column;
    gap: 0;
  }

  .focus-section.section {
    padding: 0;
  }

  .apartment-story + .focus-section {
    margin-top: 56px;
  }

  .focus-section + .focus-section {
    margin-top: 0;
    padding-top: 0;
  }

  .focus-reverse .focus-media,
  .focus-reverse .focus-copy {
    order: initial;
  }

  .focus-media {
    width: 100%;
    min-height: 0;
  }

  .focus-media .media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .focus-copy {
    width: 100%;
    max-width: none;
    padding: 34px 28px 40px;
  }

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

  .gallery {
    grid-auto-rows: 58vw;
    grid-template-columns: 1fr;
  }

  .gallery-item.wide {
    grid-column: auto;
  }

  .building-intro,
  .location {
    width: 100%;
    margin: 68px 0;
    grid-template-columns: 1fr;
  }

  .building-image {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .building-copy,
  .location-copy {
    padding: 58px 24px;
  }

  .brand-signature {
    padding: 46px 24px;
  }

  .signature-logos {
    flex-direction: column;
    gap: 22px;
  }

  .signature-macoto {
    width: min(320px, 80vw);
  }

  .signature-divider {
    width: 46px;
    height: 1px;
  }

  .signature-partner img {
    width: min(220px, 58vw);
  }

  .leisure-grid {
    grid-auto-rows: 58vw;
    grid-template-columns: 1fr;
  }

  .leisure-card.large {
    grid-column: auto;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 430px;
  }

  .site-footer {
    padding: 40px 24px;
    grid-template-columns: 1fr 1fr;
  }

  .site-footer p {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  h2,
  .story-copy h2,
  .focus-copy h2,
  .building-copy h2,
  .location-copy h2 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .hero-copy {
    min-height: 640px;
  }

  .hero-facts strong {
    font-size: 1.2rem;
  }

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

  .feature-grid article {
    min-height: 0;
  }

  .clean-list {
    grid-template-columns: 1fr;
  }

  .gallery,
  .leisure-grid {
    gap: 6px;
  }

  .final-cta {
    min-height: 430px;
  }

  .final-cta h2 {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer p {
    grid-column: auto;
  }

  .lightbox {
    padding: 54px 10px;
  }

  .lightbox-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
