@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --navy: #182840;
  --navy-deep: #111d30;
  --gold: #b89058;
  --gold-ink: #7a5428;
  --ivory: #f7f4ed;
  --sand: #e8ddcc;
  --graphite: #2d3439;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
  --page-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(5.5rem, 11vw, 10rem);
  --ease: 220ms cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--graphite);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

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

.hero :focus-visible,
#destaque :focus-visible,
#relacionamento :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  color: var(--navy);
  background: var(--ivory);
  box-shadow: 0 8px 30px rgb(24 40 64 / .2);
  transform: translateY(-160%);
  transition: transform var(--ease);
}

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

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
}

.site-header .brand img {
  width: clamp(5.25rem, 9vw, 7.25rem);
  filter: brightness(0) invert(1);
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: .5rem .1rem;
  color: inherit;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-header nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 2.6rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a::after,
.site-footer > a:last-child::after {
  width: 0;
  height: 1px;
  margin-left: .35rem;
  background: var(--gold);
  content: '';
  transition: width var(--ease);
}

.site-header nav a:hover::after,
.site-footer > a:last-child:hover::after { width: .7rem; }

.hero {
  position: relative;
  display: grid;
  min-height: min(860px, 100svh);
  overflow: hidden;
  align-items: end;
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
}

.hero > picture,
.hero > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero > picture { z-index: 0; }

.hero > picture img { object-fit: cover; object-position: center; }

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgb(17 29 48 / .83) 0%, rgb(17 29 48 / .59) 43%, rgb(17 29 48 / .09) 76%), linear-gradient(0deg, rgb(17 29 48 / .55), transparent 48%);
  content: '';
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - (var(--gutter) * 2), var(--page-width));
  padding: clamp(6rem, 12vh, 9rem) 0 clamp(3rem, 6vh, 5rem);
  margin: 0 auto;
}

.hero-monogram { width: clamp(2.75rem, 5vw, 4.25rem); margin-bottom: clamp(2rem, 3.5vw, 3.25rem); }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-ink);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow,
#destaque .eyebrow,
#relacionamento .eyebrow { color: var(--gold); }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: .98;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3.45rem, 7vw, 6.5rem);
}

.hero-content > p:not(.eyebrow) {
  max-width: 43rem;
  margin-bottom: 2.1rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.button,
.relationship-actions .button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .88rem 1.25rem;
  border: 1px solid var(--gold);
  border-radius: 0;
  color: var(--navy);
  background: var(--gold);
  font-family: var(--sans);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--ease), background var(--ease), border-color var(--ease), transform var(--ease);
  cursor: pointer;
}

.button:hover,
.relationship-actions .button:hover {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
  transform: translateY(-2px);
}

.button-secondary {
  border-color: rgb(255 255 255 / .7);
  color: var(--white);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--white);
  color: var(--navy);
  background: var(--white);
}

main > section:not(.hero) {
  width: min(100%, calc(var(--page-width) + var(--gutter) * 2));
  padding: var(--section-space) var(--gutter);
  margin: 0 auto;
}

.section-intro h2 {
  max-width: 15ch;
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(2.85rem, 5vw, 5rem);
}

.section-intro > p:not(.eyebrow) {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  font-size: 1.02rem;
}

#manifesto {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(2.5rem, 10vw, 11rem);
  align-items: start;
}

.manifesto-copy {
  max-width: 42rem;
  padding-top: .45rem;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.22;
}

.manifesto-copy p + p {
  padding-top: 1.7rem;
  margin-top: 1.7rem;
  border-top: 1px solid rgb(45 52 57 / .22);
}

#destaque {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  padding-top: clamp(4rem, 8vw, 7rem);
  color: var(--ivory);
  background: var(--navy);
}

#destaque .section-intro { align-self: start; padding-top: clamp(.5rem, 4vw, 4rem); }
#destaque .section-intro h2 { color: var(--ivory); }
#destaque .section-intro > p:not(.eyebrow) { color: rgb(247 244 237 / .78); }

.feature-image { grid-column: 2; margin: 0; }
.feature-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 52%; }

figcaption {
  padding-top: .8rem;
  color: inherit;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.feature-copy {
  grid-column: 1;
  padding-right: clamp(0rem, 3vw, 3rem);
  margin-top: -6rem;
}

.feature-copy h3 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.feature-copy p { color: rgb(247 244 237 / .82); }
#destaque .button { margin-top: .75rem; }

.feature-gallery {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.5rem);
  margin-top: clamp(2.5rem, 6vw, 6rem);
}

.feature-gallery figure { width: 100%; margin: 0; }
.feature-gallery img { width: 100%; aspect-ratio: 67 / 100; object-fit: cover; }

#portfolio { padding-bottom: clamp(5rem, 12vw, 11rem); }

.collection-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, .8fr) auto;
  gap: 2rem;
  align-items: end;
  padding: clamp(2rem, 5vw, 5rem) 0 0;
  margin-top: clamp(3rem, 7vw, 7rem);
  border-top: 1px solid rgb(45 52 57 / .28);
}

.collection-card .eyebrow { align-self: start; }
.collection-card h3 { margin: 0; color: var(--navy); font-size: clamp(2.7rem, 4.4vw, 4.7rem); }
.collection-card > p { max-width: 30rem; margin: 0; }
.collection-card .button { align-self: end; color: var(--ivory); background: var(--navy); border-color: var(--navy); }
.collection-card .button:hover { color: var(--navy); border-color: var(--navy); background: transparent; }
.collection-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  align-self: end;
  color: var(--navy);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#metodo { border-top: 1px solid rgb(45 52 57 / .28); }

.method-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding: 0;
  margin: clamp(3.5rem, 8vw, 7rem) 0 0;
  counter-reset: method;
  list-style: none;
}

.method-list li {
  position: relative;
  padding-top: 4.2rem;
  border-top: 1px solid var(--gold);
  counter-increment: method;
}

.method-list li::before {
  position: absolute;
  top: 1.1rem;
  left: 0;
  color: var(--gold-ink);
  content: '0' counter(method);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.method-list h3 { margin-bottom: .85rem; color: var(--navy); font-size: clamp(2.25rem, 3.5vw, 3.5rem); }
.method-list p { max-width: 25rem; margin-bottom: 0; }

#relacionamento {
  width: 100%;
  max-width: none;
  padding-right: max(var(--gutter), calc((100% - var(--page-width)) / 2));
  padding-left: max(var(--gutter), calc((100% - var(--page-width)) / 2));
  color: var(--ivory);
  background: var(--navy);
}

#relacionamento .section-intro h2 { color: var(--ivory); }
#relacionamento .section-intro > p:not(.eyebrow) { color: rgb(247 244 237 / .7); }

#relacionamento .section-intro .prototype-note {
  margin-top: .65rem;
  font-size: .74rem;
  letter-spacing: .04em;
}

.relationship-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
}

.relationship-actions article {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.7rem, 4vw, 3.5rem);
  border: 1px solid rgb(247 244 237 / .25);
}

.relationship-actions h3 { max-width: 12ch; margin-bottom: 1rem; font-size: clamp(2.35rem, 3.5vw, 3.75rem); }
.relationship-actions p { max-width: 28rem; color: rgb(247 244 237 / .78); }
.relationship-actions .button { margin-top: auto; color: var(--navy); background: var(--ivory); border-color: var(--ivory); }
.relationship-actions .button:hover { color: var(--ivory); background: transparent; }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2.5rem var(--gutter);
  color: var(--ivory);
  background: var(--navy-deep);
  font-size: .72rem;
  letter-spacing: .07em;
}

.site-footer .brand img { width: 4.7rem; }
.site-footer p { margin: 0; }
.site-footer > a:last-child {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ivory);
  text-decoration: none;
}

@media (max-width: 800px) {
  .site-header { min-height: 5rem; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header nav {
    position: absolute;
    top: 100%;
    right: var(--gutter);
    left: var(--gutter);
    display: none;
    padding: 1rem 1.35rem;
    color: var(--navy);
    background: var(--ivory);
    box-shadow: 0 18px 40px rgb(17 29 48 / .25);
  }
  body[data-menu-open="true"] .site-header nav { display: block; }
  .site-header nav ul { display: grid; gap: 0; }
  .site-header nav a { width: 100%; color: var(--navy); border-bottom: 1px solid rgb(24 40 64 / .15); }
  .site-header nav :focus-visible { outline-color: var(--navy); }
  .site-header nav li:last-child a { border-bottom: 0; }

  #manifesto, #destaque { grid-template-columns: 1fr; }
  #destaque .section-intro, .feature-image, .feature-copy { grid-column: auto; }
  #destaque .section-intro { padding-top: 0; }
  .feature-copy { padding-right: 0; margin-top: 0; }
  .feature-copy h3 { max-width: 15ch; }
  .feature-gallery { margin-top: 1rem; }

  .collection-card { grid-template-columns: 1fr 1fr; }
  .collection-card .eyebrow { grid-column: 1 / -1; }
  .collection-card .button { justify-self: start; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.25rem; }
  body { line-height: 1.65; }
  .hero { min-height: 44rem; }
  .hero > picture img { object-position: 57% center; }
  .hero::before { background: linear-gradient(0deg, rgb(17 29 48 / .86) 0%, rgb(17 29 48 / .5) 60%, rgb(17 29 48 / .25) 100%); }
  .hero-content { padding-top: 10rem; padding-bottom: 4rem; }
  .hero-monogram { margin-bottom: 2rem; }
  h1 { max-width: 12ch; font-size: clamp(3.1rem, 15vw, 4.25rem); }
  .button, .relationship-actions .button { width: 100%; }
  .hero-actions { display: grid; }

  .section-intro h2 { font-size: clamp(2.7rem, 14vw, 3.65rem); }
  .manifesto-copy { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .feature-image { width: 100%; margin: 0; }
  .feature-image img { aspect-ratio: 4 / 5; }
  .feature-gallery { grid-template-columns: 1fr; gap: 2rem; }
  .feature-gallery img { aspect-ratio: 3 / 4; }

  .collection-card { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .collection-card .button { width: auto; }
  .method-list, .relationship-actions { grid-template-columns: 1fr; }
  .method-list { gap: 2.5rem; }
  .relationship-actions article { min-height: 16rem; }
  .relationship-actions .button { width: 100%; }

  .site-footer { grid-template-columns: 1fr; gap: .75rem; padding-top: 2rem; padding-bottom: 2rem; }
  .site-footer > a:last-child { margin-top: .5rem; }
}

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

/* Página de imóveis: capítulos de leitura, não uma grade de cards. */
.site-header--solid { position: relative; color: var(--navy); background: var(--ivory); border-bottom: 1px solid rgb(24 40 64 / .14); }
.site-header--solid .brand img { filter: none; }
.site-header--solid nav a { color: var(--navy); }
.properties-page { overflow: hidden; }
.properties-hero { display: grid; min-height: clamp(27rem, 58vw, 44rem); align-items: end; padding: clamp(5rem, 12vw, 10rem) var(--gutter) clamp(4rem, 9vw, 8rem); color: var(--ivory); background: var(--navy); }
.properties-hero > div, .properties-intro, .property-story, .collection-intro > div { width: min(100%, var(--page-width)); margin: 0 auto; }
.properties-hero h1 { max-width: 12ch; margin-bottom: 1.4rem; color: var(--ivory); }
.properties-hero .eyebrow, .collection-intro .eyebrow { color: var(--gold); }
.properties-hero p:not(.eyebrow) { max-width: 38rem; margin-bottom: 0; color: rgb(247 244 237 / .76); }
.properties-intro { padding: var(--section-space) var(--gutter); }
.properties-intro h2 { max-width: 15ch; margin-bottom: 1.3rem; color: var(--navy); font-size: clamp(2.8rem, 5vw, 5.5rem); }
.properties-intro > p:not(.eyebrow) { max-width: 42rem; margin-bottom: 0; }
.property-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); gap: clamp(2rem, 7vw, 8rem); align-items: center; padding: clamp(4.5rem, 10vw, 10rem) var(--gutter); }
.property-story + .property-story { border-top: 1px solid rgb(24 40 64 / .13); }
.property-media { width: 100%; margin: 0; }
.property-media img { width: 100%; height: auto; }
.property-copy { max-width: 32rem; }
.property-copy h2 { margin-bottom: 1rem; color: var(--navy); font-size: clamp(3rem, 5vw, 5.6rem); }
.property-copy > p:not(.eyebrow) { margin-bottom: 1.25rem; }
.property-copy .button { margin-top: .5rem; color: var(--ivory); background: var(--navy); border-color: var(--navy); }
.property-copy .button:hover { color: var(--navy); background: transparent; }
.property-headline { color: var(--gold-ink); font-family: var(--serif); font-size: clamp(1.55rem, 2.4vw, 2.25rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.property-story--portrait-left { grid-template-columns: minmax(0, .72fr) minmax(0, .9fr); }
.property-story--portrait-left .property-media { max-width: 38rem; }
.property-story--portrait-left .property-copy { padding-left: clamp(0rem, 4vw, 4rem); }
.property-story--panorama { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 5rem); }
.property-story--panorama .property-media { width: min(100%, 70rem); }
.property-story--panorama .property-copy { width: min(100%, 36rem); margin-left: auto; }
.property-story--media-right .property-media { grid-column: 2; }
.property-story--media-right .property-copy { grid-column: 1; grid-row: 1; justify-self: end; }
.property-story--media-left .property-media { grid-column: 1; }
.property-story--media-left .property-copy { grid-column: 2; }
.property-story--closing { padding-bottom: clamp(6rem, 13vw, 12rem); }
.collection-intro { width: 100%; padding: clamp(5rem, 11vw, 10rem) var(--gutter); color: var(--ivory); background: var(--navy); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.collection-intro > div { border-left: 1px solid var(--gold); padding-left: clamp(1.5rem, 5vw, 5rem); }
.collection-intro h2 { max-width: 14ch; margin-bottom: 1.35rem; color: var(--ivory); font-size: clamp(3rem, 6vw, 6.5rem); }
.collection-intro p:not(.eyebrow) { max-width: 38rem; margin-bottom: 2rem; color: rgb(247 244 237 / .76); }
.collection-intro .button-secondary { border-color: var(--gold); color: var(--ivory); }
.collection-intro .button-secondary:hover { color: var(--navy); background: var(--gold); }

@media (max-width: 800px) {
  .site-header--solid nav { color: var(--navy); }
  .properties-hero { min-height: 31rem; }
  .property-story, .property-story--portrait-left, .property-story--panorama { grid-template-columns: 1fr; gap: 2rem; }
  .property-story--portrait-left .property-media, .property-story--panorama .property-media, .property-story--panorama .property-copy, .property-copy { width: 100%; max-width: none; margin: 0; padding: 0; }
  .property-story--media-right .property-media, .property-story--media-left .property-media, .property-story--media-right .property-copy, .property-story--media-left .property-copy { grid-column: auto; grid-row: auto; justify-self: auto; }
  .property-media { width: 100%; margin: 0; }
  .property-media img { width: 100%; height: auto; }
}

@media (max-width: 560px) {
  .properties-hero { min-height: 29rem; }
  .properties-hero h1 { font-size: clamp(3.1rem, 15vw, 4.25rem); }
  .properties-intro, .property-story { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .collection-intro { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .collection-intro > div { padding-left: 1.25rem; }
  .property-copy .button { width: 100%; }
}
