:root {
  --navy: #071d33;
  --navy-2: #0d2d4d;
  --gold: #b88824;
  --gold-2: #d6ad57;
  --ink: #172331;
  --muted: #657282;
  --stone: #f5f2eb;
  --paper: #fffdf8;
  --line: rgba(7, 29, 51, 0.12);
  --shadow: 0 24px 70px rgba(7, 29, 51, 0.14);
  --font-title: Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.container {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 10px max(16px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: 150px;
  height: 56px;
  align-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-header nav a,
.header-cta,
.button,
.text-link,
.floating-whatsapp {
  text-decoration: none;
}

.header-cta {
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 84px 0 96px;
  background:
    linear-gradient(115deg, rgba(7, 29, 51, 0.97) 0%, rgba(7, 29, 51, 0.91) 48%, rgba(7, 29, 51, 0.72) 100%),
    url("assets/06-casa-guriri-lado-sul-sm-es.jpg") center / cover;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--stone));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
  gap: 64px;
  align-items: center;
}

.hero-copy,
.hero-media,
.catalog-header > *,
.advisor-grid > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 0.96;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 86px);
}

h2 {
  font-size: clamp(34px, 4.8vw, 62px);
}

h3 {
  font-size: 21px;
  line-height: 1.12;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 13px 20px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--navy);
  box-shadow: 0 16px 34px rgba(184, 136, 36, 0.26);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(184, 136, 36, 0.32);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 46px 0 0;
}

.trust-strip div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.trust-strip dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-strip dd {
  margin: 4px 0 0;
  color: #fff;
  font-weight: 900;
}

.hero-media {
  position: relative;
  display: grid;
  gap: 16px;
}

.hero-banner,
.hero-property,
.advisor-card,
.lead-box,
.catalog-panel,
.benefits article,
.property-card {
  border-radius: 8px;
}

.hero-banner {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.hero-property {
  width: 74%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  margin-left: auto;
  border: 8px solid rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.advisor-card {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: min(290px, 78%);
  padding: 18px;
  background: var(--paper);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.advisor-card span,
.advisor-card small {
  display: block;
  color: var(--muted);
}

.advisor-card strong {
  display: block;
  margin: 3px 0;
  font-family: var(--font-title);
  font-size: 24px;
}

.section {
  padding: 92px 0;
}

.intro-grid,
.advisor-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 50px;
  align-items: start;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.benefits article {
  min-height: 230px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(7, 29, 51, 0.06);
}

.benefits span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--gold);
  font-weight: 900;
}

.benefits p,
.advisor p,
.property-card p {
  color: var(--muted);
}

.featured {
  background: var(--paper);
}

.section-head,
.catalog-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.text-link {
  color: var(--navy);
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
}

.catalog {
  background: linear-gradient(180deg, var(--paper), var(--stone));
}

.catalog-panel {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-box {
  display: grid;
  width: min(390px, 100%);
  gap: 8px;
}

.search-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  font: inherit;
  outline: none;
}

.search-box input:focus {
  border-color: var(--gold);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filters button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.filters button.is-active {
  background: var(--navy);
  color: #fff;
}

.catalog-count {
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 800;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.property-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(7, 29, 51, 0.08);
}

.property-card.is-featured:first-child {
  grid-row: span 2;
}

.property-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dde4e8;
}

.is-featured:first-child .property-image {
  aspect-ratio: 4 / 3.7;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.property-card:hover .property-image img {
  transform: scale(1.045);
}

.property-type {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(7, 29, 51, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.property-info {
  padding: 18px;
}

.property-location {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.price {
  display: block;
  margin: 14px 0;
  color: var(--navy);
  font-family: var(--font-title);
  font-size: 25px;
  font-weight: 700;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.card-actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.details-link {
  border: 1px solid var(--line);
  color: var(--navy);
}

.whatsapp-link {
  background: var(--navy);
  color: #fff;
}

.advisor {
  background: var(--navy);
  color: #fff;
}

.advisor p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-lines a {
  color: #fff;
  font-weight: 900;
}

.lead-box {
  padding: 28px;
  background: var(--paper);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.lead-box p {
  color: var(--muted);
}

.lead-box .button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.lead-box small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.site-footer {
  padding: 26px 0;
  background: #061728;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer-grid img {
  width: 96px;
  height: 56px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.footer-grid a {
  color: #fff;
  font-weight: 900;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #19a863;
  color: #fff;
  box-shadow: 0 18px 36px rgba(25, 168, 99, 0.32);
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 150px 1fr;
  }

  .site-header nav {
    display: none;
  }

  .header-cta {
    justify-self: end;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .intro-grid,
  .advisor-grid {
    grid-template-columns: 1fr;
  }

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

  .property-card.is-featured:first-child {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100vw - 28px, 1160px);
  }

  .site-header {
    min-height: 66px;
    padding: 8px 14px;
  }

  .brand {
    width: 126px;
    height: 48px;
  }

  .header-cta {
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 48px 0 72px;
  }

  h1 {
    font-size: clamp(39px, 13vw, 54px);
  }

  h2 {
    font-size: clamp(31px, 10vw, 42px);
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions,
  .trust-strip,
  .section-head,
  .catalog-header,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-head,
  .catalog-header {
    display: grid;
    align-items: start;
  }

  .button {
    width: 100%;
  }

  .trust-strip,
  .benefits,
  .featured-grid,
  .property-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-property {
    width: 88%;
  }

  .advisor-card {
    position: relative;
    bottom: auto;
    width: 100%;
  }

  .section {
    padding: 66px 0;
  }

  .catalog-panel {
    padding: 18px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
  }
}
