
:root {
  /* Colors */
  --navy: #0A192F;
  --navy-soft: #13294B;
  --gold: #C5A059;
  --gold-dark: #A9824A;
  --white: #FFFFFF;
  --soft-grey: #F8F9FA;
  --charcoal: #1E1E1E;
  --outline: rgba(10, 25, 47, 0.1);
  --outline-strong: rgba(10, 25, 47, 0.2);
  --navy-text-soft: rgba(255, 255, 255, 0.7);
  --navy-text-softer: rgba(255, 255, 255, 0.45);

  /* Type */
  --font-display: 'Libre Caslon Text', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-max: 1280px;
  --gutter: 32px;
  --margin-desktop: 64px;
  --margin-mobile: 20px;
  --unit: 8px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body, h1, h2, h3, h4, h5, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}
@media (min-width: 1024px) {
  .container { padding-inline: var(--margin-desktop); }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -40px; left: 12px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px;
  font-size: 13px; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Type scale ---------- */
.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.headline em { font-style: italic; }
.headline--sm { font-size: clamp(24px, 3vw, 30px); }
.headline--inverse { color: var(--white); }

.label-caps {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.label-caps--gold { color: var(--gold-dark); }

.rule { display: inline-block; height: 1px; width: 48px; background: currentColor; }
.rule--gold { background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--gold); color: var(--navy); }

.btn--secondary { background: transparent; color: var(--gold-dark); border: 1px solid var(--gold); }
.btn--secondary:hover { background: var(--gold); color: var(--navy); }

.btn--outline { background: transparent; color: var(--navy); border: 1px solid var(--outline-strong); }
.btn--outline:hover { border-color: var(--navy); }

.btn--ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--outline-strong);
  padding-bottom: 6px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.text-link svg { color: var(--gold-dark); transition: transform 0.3s var(--ease); }
.text-link:hover { border-color: var(--gold); color: var(--gold-dark); }
.text-link:hover svg { transform: translate(2px, -2px); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; color: var(--navy);
  transition: color 0.25s var(--ease);
}
.icon-btn:hover { color: var(--gold-dark); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--outline);
  box-shadow: 0 1px 12px rgba(10, 25, 47, 0.06);
}

.header__inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand__mark { color: var(--gold); flex-shrink: 0; }
.brand__name { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; }
.brand--inverse { color: var(--white); }

.nav {
  display: none;
  align-items: center;
  gap: 40px;
}
.nav__link {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 8px 0;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--gold-dark); }
.nav__link:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
}
.menu-toggle span {
  width: 22px; height: 1.5px; background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav {
    display: flex;
    position: static;
    background: none;
    padding: 0;
    height: auto;
  }
  .menu-toggle { display: none; }
}

/* Mobile nav panel */
@media (max-width: 899px) {
  .nav {
    position: fixed;
    top: 80px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--margin-mobile) 24px;
    border-bottom: 1px solid var(--outline);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__link { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--outline); }
  .nav__link::after { display: none; }
}

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 25, 47, 0.97);
  display: flex;
  align-items: center;
}
.search-overlay[hidden] { display: none; }
.search-overlay__inner { position: relative; width: 100%; }
.search-overlay__close {
  position: absolute;
  top: -56px; right: var(--margin-mobile);
  color: var(--white);
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
@media (min-width: 1024px) {
  .search-overlay__close { right: var(--margin-desktop); top: 32px; }
}
.search-form { max-width: 640px; }
.search-form .label-caps { color: var(--gold); display: block; margin-bottom: 16px; }
.search-form input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 36px);
  padding: 12px 0;
  outline: none;
  margin-bottom: 28px;
}
.search-form input::placeholder { color: rgba(255,255,255,0.35); }
.search-form input:focus { border-color: var(--gold); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 80px;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,25,47,0.88) 0%, rgba(10,25,47,0.35) 55%, rgba(10,25,47,0.15) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 96px;
  max-width: 700px;
}
.hero__eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.hero__eyebrow .label-caps { color: var(--gold); }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 28px;
}

.hero__desc {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero__side {
  display: none;
  position: absolute;
  right: var(--margin-desktop);
  bottom: 220px;
  z-index: 1;
  writing-mode: vertical-rl;
  align-items: center;
  gap: 24px;
  color: rgba(255,255,255,0.4);
}
.hero__side-line { width: 1px; height: 100px; background: rgba(255,255,255,0.25); }

.hero__scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.6);
}
.hero__scroll-line { width: 1px; height: 44px; background: linear-gradient(180deg, var(--gold), transparent); }

@media (min-width: 1024px) {
  .hero__side { display: flex; }
}

/* ==========================================================================
   Manifesto / Sobre
   ========================================================================== */
.manifesto { padding: 96px 0; background: var(--white); }
.manifesto__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
.manifesto__text > .label-caps { display: block; margin-bottom: 16px; }
.manifesto__text .headline { margin-bottom: 28px; }
.manifesto__body { display: flex; flex-direction: column; gap: 20px; color: rgba(30,30,30,0.75); margin-bottom: 32px; max-width: 46ch; }

.manifesto__visual { position: relative; }
.manifesto__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soft-grey);
}
.manifesto__image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.55);
  transform: scale(1.04);
  transition: filter 0.8s var(--ease), transform 0.8s var(--ease);
}
.manifesto__visual:hover .manifesto__image img { filter: grayscale(0); transform: scale(1); }

.manifesto__badge {
  position: absolute;
  left: 24px; bottom: -32px;
  background: var(--navy);
  color: var(--white);
  padding: 32px;
  box-shadow: 0 10px 30px rgb(237, 237, 240);
  display: none;
}
.manifesto__badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 6px;
}

@media (min-width: 1024px) {
  .manifesto { padding: 140px 0; }
  .manifesto__grid { grid-template-columns: 5fr 6fr; gap: var(--gutter); }
  .manifesto__badge { display: block; left: -40px; bottom: -40px; }
}

/* ==========================================================================
   Properties
   ========================================================================== */
.properties { padding: 96px 0; background: var(--soft-grey); }

.properties__header {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 56px;
}
.properties__intro .label-caps { display: block; margin-bottom: 14px; }
.properties__intro .headline em { color: var(--gold-dark); }

.properties__nav { display: none; gap: 12px; }
.carousel-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--outline-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.carousel-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.carousel-btn--solid { background: var(--navy); color: var(--white); border-color: var(--navy); }
.carousel-btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

@media (min-width: 1024px) {
  .properties__header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .properties__nav { display: flex; }
}

.properties__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;

  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;

  padding-bottom: 12px;
}

/* Cada card ocupa 1/3 da área no desktop */
.property-card {
  flex: 0 0 calc((100% - 80px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

/* Tablet: mostra 2 cards */
@media (max-width: 1023px) {
  .property-card {
    flex: 0 0 calc((100% - 40px) / 2);
  }
}

/* Celular: mostra 1 card */
@media (max-width: 699px) {
  .property-card {
    flex: 0 0 100%;
  }
}

.property-card__link { display: block; }
.property-card__image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--outline);
}
.property-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.property-card:hover .property-card__image img { transform: scale(1.08); }

.property-card__tag {
  position: absolute; top: 20px; left: 20px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.property-card__body h4 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
  transition: color 0.25s var(--ease);
}
.property-card:hover .property-card__body h4 { color: var(--gold-dark); }

.property-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(30,30,30,0.55);
  font-size: 10px;
}
.property-card__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }

.properties__cta { margin-top: 64px; text-align: center; }
@media (min-width: 1024px) { .properties__cta { display: none; } }
.properties__cta .btn { width: 100%; justify-content: center; }
@media (min-width: 480px) { .properties__cta .btn { width: auto; } }

.properties__grid {
  /* Firefox */
  scrollbar-width: none;

  /* Internet Explorer/Edge antigo */
  -ms-overflow-style: none;
}

/* Chrome, Edge e Safari */
.properties__grid::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative;
  padding: 120px 0;
  background: var(--navy);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(197,160,89,0.18), transparent 60%);
}
.cta__inner {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.cta__inner > .label-caps { display: block; margin-bottom: 24px; letter-spacing: 0.25em; }
.cta__inner .headline { margin-bottom: 24px; }
.cta__desc { color: rgba(255,255,255,0.65); font-size: 18px; max-width: 520px; margin-inline: auto; margin-bottom: 44px; }
.cta__actions { display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; }
@media (min-width: 560px) { .cta__actions { flex-direction: row; } }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter { padding: 72px 0 32px; background: var(--white); border-top: 1px solid var(--outline); }
.newsletter__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.newsletter__inner h5 { font-family: var(--font-display); font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.newsletter__inner p { color: rgba(30,30,30,0.6); }

.newsletter__form {
  display: flex;
  width: 100%;
  border-bottom: 2px solid var(--navy);
  padding: 12px 0;
  transition: border-color 0.25s var(--ease);
}
.newsletter__form:focus-within { border-color: var(--gold); }
.newsletter__form input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 8px;
  font-size: 15px;
}
.newsletter__form input::placeholder { color: rgba(30,30,30,0.4); }
.newsletter__form button {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); padding: 8px 16px;
  transition: color 0.25s var(--ease);
}
.newsletter__form button:hover { color: var(--gold-dark); }

.newsletter__feedback {
  max-width: var(--container-max);
  margin: 16px auto 0;
  padding-inline: var(--margin-mobile);
  min-height: 16px;
  color: var(--gold-dark);
}
@media (min-width: 1024px) {
  .newsletter__inner { flex-direction: row; align-items: center; }
  .newsletter__form { max-width: 380px; }
  .newsletter__feedback { padding-inline: var(--margin-desktop); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 80px 0 32px; }
.footer__grid {
  display: grid;
  gap: 48px;
  margin-bottom: 64px;
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer__brand .brand { margin-bottom: 20px; }
.footer__brand p { max-width: 32ch; }
.footer__col h4 { margin-bottom: 22px; }
.footer__col ul { display: flex; flex-direction: column; gap: 14px; }
.footer__col a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.footer__social a:hover { background: rgba(197,160,89,0.2); color: var(--gold); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer__legal { display: flex; gap: 28px; }
.footer__legal a:hover { color: var(--gold); }
@media (min-width: 700px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
