:root {
  --forest: #0c2b22;
  --pine: #16483a;
  --leaf: #3d8a68;
  --mint: #d8f0df;
  --clay: #c86f42;
  --gold: #d69d3f;
  --sky: #e7f1f4;
  --ink: #111816;
  --muted: #65716d;
  --paper: #f6f3ec;
  --panel: rgba(255, 255, 255, 0.84);
  --white: #ffffff;
  --line: rgba(17, 24, 22, 0.12);
  --soft-line: rgba(255, 255, 255, 0.3);
  --shadow: 0 24px 70px rgba(12, 43, 34, 0.18);
  --tight-shadow: 0 14px 34px rgba(12, 43, 34, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(216, 240, 223, 0.58), transparent 30%),
    linear-gradient(180deg, #f9f7f1 0%, var(--paper) 36%, #eef4ef 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

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

.site-header {
  position: fixed;
  top: 18px;
  left: clamp(14px, 4vw, 44px);
  right: clamp(14px, 4vw, 44px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(10, 31, 25, 0.34);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(12, 43, 34, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  padding-right: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  color: var(--white);
  font-weight: 900;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.3;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.main-nav a {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  transition: background 160ms ease, color 160ms ease;
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.header-cta,
.search-panel button,
.contact-form button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--clay), #dc8f4c);
  box-shadow: 0 12px 24px rgba(200, 111, 66, 0.26);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.header-cta:hover,
.search-panel button:hover,
.contact-form button:hover,
.primary-link:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.header-cta svg,
button svg,
.feature svg,
.parcel-card svg {
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  padding: 132px clamp(18px, 5vw, 64px) 30px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("imagenes/el-dorado-3.webp");
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 20, 16, 0.92), rgba(5, 20, 16, 0.62) 44%, rgba(5, 20, 16, 0.18)),
    linear-gradient(0deg, rgba(5, 20, 16, 0.88), rgba(5, 20, 16, 0.04) 50%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(246, 243, 236, 0.08) 55%, var(--paper));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.hero .eyebrow {
  color: #ffd09a;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 14px;
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  font-size: 1.08rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.58;
}

.search-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr)) auto;
  gap: 10px;
  width: min(100%, 980px);
  margin-top: 34px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel label,
.contact-form label {
  display: grid;
  gap: 7px;
}

.search-panel label {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(17, 24, 22, 0.08);
  border-radius: 8px;
  background: #fbfaf7;
}

.search-panel span,
.contact-form span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.search-panel select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  outline: 0;
}

.search-panel select {
  min-height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  font-weight: 800;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(61, 138, 104, 0.7);
  box-shadow: 0 0 0 4px rgba(61, 138, 104, 0.12);
}

.hero-strip {
  position: absolute;
  left: clamp(18px, 5vw, 64px);
  right: clamp(18px, 5vw, 64px);
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 -8px 34px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.hero-strip div {
  padding: 22px clamp(14px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.hero-strip div:last-child {
  border-right: 0;
}

.hero-strip strong {
  display: block;
  color: var(--forest);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1;
}

.hero-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding: clamp(70px, 9vw, 118px) clamp(18px, 5vw, 64px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 36px;
  padding-bottom: 36px;
  background:
    linear-gradient(135deg, rgba(12, 43, 34, 0.96), rgba(22, 72, 58, 0.98)),
    var(--forest);
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 126px;
  padding: 30px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
}

.feature svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #ffc27c;
}

.feature strong,
.feature span {
  display: block;
}

.feature span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.52;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 292px 1fr;
  gap: 24px;
  align-items: start;
}

.filters,
.parcel-card,
.steps article,
.quote-grid figure,
.backing-grid article,
.contact-form,
.parcel-modal {
  border: 1px solid rgba(17, 24, 22, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--tight-shadow);
  backdrop-filter: blur(14px);
}

.filters {
  position: sticky;
  top: 104px;
  padding: 18px;
}

.filters h3 {
  margin-bottom: 14px;
}

.filter-chip {
  width: 100%;
  min-height: 42px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--forest);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-chip:hover {
  transform: translateX(2px);
}

.filter-chip.active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--forest), var(--leaf));
}

.location-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.location-list a {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(17, 24, 22, 0.09);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.location-list a:hover {
  transform: translateX(2px);
  border-color: rgba(33, 112, 76, 0.28);
  background: rgba(239, 247, 240, 0.92);
}

.location-list span {
  display: grid;
  gap: 3px;
}

.location-list strong {
  color: var(--forest);
  font-size: 0.96rem;
  line-height: 1.2;
}

.location-list small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.location-list i {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 8px;
  color: var(--white);
  background: var(--clay);
}

.filters p {
  color: var(--muted);
  line-height: 1.55;
}

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

.featured-project-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1.12fr);
}

.parcel-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.parcel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.parcel-card.is-hidden {
  display: none;
}

.parcel-card img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
  transition: transform 260ms ease;
}

.parcel-card:hover img {
  transform: scale(1.035);
}

.parcel-card::before {
  content: "Disponible";
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  color: var(--white);
  background: rgba(12, 43, 34, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 850;
}

.parcel-body {
  padding: 20px;
}

.featured-project-card .parcel-body {
  display: grid;
  align-content: center;
  padding: clamp(22px, 4vw, 38px);
}

.premium-project-card .parcel-body,
.upcoming-project-card .parcel-body {
  position: relative;
}

.project-status-badge,
.high-ticket-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(190, 128, 42, 0.28);
  border-radius: 8px;
  color: #7b4b0e;
  background: rgba(255, 247, 225, 0.92);
  box-shadow: 0 12px 26px rgba(80, 51, 16, 0.12);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.project-status-badge svg,
.high-ticket-badge svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.coming-soon-badge {
  border-color: rgba(36, 112, 78, 0.24);
  color: var(--forest);
  background: rgba(235, 247, 236, 0.94);
  box-shadow: 0 12px 26px rgba(20, 73, 49, 0.11);
}

.premium-project-card .parcel-top,
.upcoming-project-card .parcel-top {
  padding-right: 136px;
}

.project-gallery-placeholder {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 100%;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(12, 43, 34, 0.88), rgba(22, 72, 58, 0.72)),
    var(--forest);
}

.gallery-expand {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: var(--white);
  background: rgba(12, 43, 34, 0.72);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.project-gallery-placeholder.rich-gallery {
  align-content: start;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  max-height: none;
  overflow: hidden;
}

.premium-project-card .project-gallery-placeholder {
  background:
    linear-gradient(135deg, rgba(150, 97, 24, 0.92), rgba(214, 157, 63, 0.72)),
    var(--gold);
}

.premium-project-card .project-image-slot {
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0 12px, transparent 12px 24px);
}

.upcoming-gallery {
  place-items: center;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(16, 68, 48, 0.9), rgba(101, 151, 91, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
    var(--forest);
}

.upcoming-gallery::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.upcoming-visual {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 260px;
  padding: 28px;
  color: var(--white);
  text-align: center;
}

.upcoming-visual svg {
  width: 48px;
  height: 48px;
  color: #dfeecf;
  stroke-width: 1.8;
}

.upcoming-visual strong {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
}

.upcoming-visual span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.project-image-slot {
  display: grid;
  place-items: end start;
  min-height: 160px;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 12px, transparent 12px 24px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  background-size: cover;
  background-position: center;
}

.project-image-slot.main-slot {
  grid-row: 1 / -1;
  min-height: 360px;
}

.rich-gallery .project-image-slot.main-slot {
  grid-row: auto;
  min-height: 0;
}

.estancia-gallery .estancia-cover {
  background-position: 68% center;
}

.estancia-gallery .estancia-thumb-sign {
  background-position: center 58%;
}

.estancia-gallery .estancia-thumb-gate {
  background-position: 64% center;
}

.project-image-slot.gallery-only {
  display: none;
}

.rich-gallery .project-image-slot {
  min-height: 0;
}

.rich-gallery .project-image-slot.has-image {
  background-color: rgba(17, 55, 42, 0.78);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
}

.project-image-slot.has-image {
  border-style: solid;
}

.project-image-slot.has-image span {
  display: none;
}

.parcel-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.parcel-top strong {
  color: var(--forest);
  font-size: 1rem;
}

.parcel-body h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.26rem;
}

.parcel-body p {
  color: var(--muted);
  line-height: 1.52;
}

.parcel-body ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.parcel-body li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.parcel-body svg {
  color: var(--leaf);
}

.price-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 4px;
}

.price-strip span {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(200, 111, 66, 0.22);
  border-radius: 8px;
  background: rgba(200, 111, 66, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
}

.price-strip strong {
  color: var(--forest);
  font-size: clamp(0.92rem, 1.05vw, 1.08rem);
}

.upcoming-project-card .price-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.project-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-actions.single-action {
  grid-template-columns: minmax(0, 1fr);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(12, 43, 34, 0.28);
  border-radius: 8px;
  background: rgba(216, 240, 223, 0.3);
  color: var(--forest);
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ghost-button:hover {
  border-color: rgba(12, 43, 34, 0.48);
  background: rgba(216, 240, 223, 0.58);
}

.ghost-button.is-disabled,
.ghost-button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  background: rgba(17, 24, 22, 0.06);
  color: var(--muted);
}

.process-section {
  background:
    linear-gradient(180deg, rgba(231, 241, 244, 0.8), rgba(255, 255, 255, 0.3)),
    var(--sky);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps article {
  min-height: 220px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 42px;
  border: 1px solid rgba(200, 111, 66, 0.28);
  border-radius: 8px;
  color: var(--clay);
  background: rgba(200, 111, 66, 0.08);
  font-weight: 900;
}

.steps p {
  color: var(--muted);
  line-height: 1.55;
}

.investment {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  min-height: 650px;
  background: var(--forest);
  color: var(--white);
}

.investment-media {
  background-image:
    linear-gradient(0deg, rgba(12, 43, 34, 0.18), rgba(12, 43, 34, 0.18)),
    url("imagenes/financiamiento-estancia.webp");
  background-size: cover;
  background-position: center;
}

.investment-content {
  display: grid;
  align-content: center;
  padding: clamp(42px, 7vw, 88px);
  background:
    linear-gradient(135deg, rgba(12, 43, 34, 0.96), rgba(22, 72, 58, 0.94)),
    var(--forest);
}

.investment-content h2 {
  color: var(--white);
}

.investment-content p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
  font-size: 1.08rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.metrics div {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.metrics svg {
  color: var(--copper);
  width: 28px;
  height: 28px;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: #fff4df;
  font-size: 1.05rem;
}

.metrics span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
}

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

.quote-grid figure {
  margin: 0;
  padding: 26px;
  background: rgba(255, 255, 255, 0.68);
}

.backing-section {
  background: linear-gradient(180deg, rgba(241, 247, 239, 0.92), rgba(232, 241, 229, 0.92));
}

.backing-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

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

.backing-brand {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(17, 24, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.backing-brand img {
  width: min(100%, 230px);
  height: auto;
  display: block;
}

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

.backing-grid article {
  display: grid;
  align-content: center;
  min-height: 184px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
}

.backing-grid strong {
  color: var(--pine);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.backing-grid span {
  max-width: 12ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.advisor-section {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: center;
  padding: clamp(58px, 8vw, 98px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(12, 43, 34, 0.98), rgba(22, 72, 58, 0.95)),
    var(--forest);
  color: var(--white);
}

.advisor-content {
  display: grid;
  align-content: center;
}

.advisor-content h2 {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.advisor-content > p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  line-height: 1.65;
}

.advisor-note {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  max-width: 820px;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.advisor-note svg {
  width: 28px;
  height: 28px;
  color: var(--copper);
}

.advisor-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.advisor-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.advisor-points span {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff4df;
  font-weight: 800;
  line-height: 1.2;
}

.advisor-points svg {
  width: 19px;
  height: 19px;
  color: var(--copper);
  flex: 0 0 auto;
}

.advisor-photo {
  min-height: 540px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.advisor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center top;
}

blockquote {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.56;
}

blockquote::before {
  content: "“";
  display: block;
  height: 28px;
  color: var(--clay);
  font-size: 3.1rem;
  line-height: 0.8;
}

figcaption {
  color: var(--muted);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 0.62fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: center;
  padding: clamp(70px, 9vw, 118px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(216, 240, 223, 0.84), rgba(246, 243, 236, 0.94)),
    var(--paper);
}

.contact-copy p:not(.eyebrow) {
  max-width: 610px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.1rem;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: #0a1d18;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  margin-bottom: 6px;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.parcel-modal {
  width: min(92vw, 520px);
  padding: 30px;
  color: var(--ink);
}

.parcel-modal::backdrop {
  background: rgba(12, 22, 19, 0.62);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.gallery-modal {
  width: min(96vw, 1180px);
  max-height: 92vh;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 19, 16, 0.96);
  color: var(--white);
}

.gallery-modal::backdrop {
  background: rgba(5, 12, 10, 0.76);
  backdrop-filter: blur(8px);
}

.gallery-close {
  z-index: 4;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.gallery-viewer {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 10px;
  align-items: center;
}

.gallery-viewer figure {
  margin: 0;
}

.zoom-stage {
  display: grid;
  place-items: center;
  max-height: 72vh;
  overflow: hidden;
  border-radius: 8px;
  background: #050c0a;
  touch-action: none;
  user-select: none;
}

.gallery-viewer img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  transform-origin: center;
  transition: transform 160ms ease;
  will-change: transform;
}

.gallery-modal.single-image {
  width: min(96vw, 960px);
}

.gallery-modal.single-image .gallery-viewer {
  grid-template-columns: 1fr;
}

.gallery-modal.single-image .gallery-nav,
.gallery-modal.single-image .gallery-thumbs {
  display: none;
}

.masterplan-controls {
  display: none;
  grid-template-columns: repeat(7, 42px);
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.gallery-modal.masterplan-view .masterplan-controls {
  display: grid;
}

.masterplan-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.masterplan-controls button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.gallery-viewer figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.gallery-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(12, minmax(64px, 1fr));
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

.gallery-thumbs button {
  min-width: 72px;
  aspect-ratio: 1.5;
  border: 2px solid transparent;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.66;
}

.gallery-thumbs button.active {
  border-color: var(--gold);
  opacity: 1;
}

@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }

  .search-panel,
  .catalog-layout,
  .listing-grid,
  .featured-project-card,
  .steps,
  .quote-grid,
  .backing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .backing-heading {
    grid-template-columns: 1fr;
  }

  .backing-brand {
    justify-self: start;
    width: min(100%, 300px);
  }

  .advisor-section {
    grid-template-columns: 1fr;
  }

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

  .advisor-photo,
  .advisor-photo img {
    min-height: 460px;
  }

  .search-panel button {
    grid-column: 1 / -1;
  }

  .filters {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 10px;
    gap: 10px;
  }

  .brand {
    flex: 0 0 auto;
    padding-right: 0;
  }

  .brand strong,
  .brand small {
    display: none;
  }

  .header-cta {
    display: inline-flex;
    flex: 1 1 auto;
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .location-list,
  .filters > p {
    display: none;
  }

  .hero {
    min-height: 98vh;
    padding: 112px 16px 0;
  }

  .hero-content {
    padding-bottom: 84px;
  }

  .search-panel,
  .hero-strip,
  .intro-band,
  .catalog-layout,
  .listing-grid,
  .featured-project-card,
  .price-strip,
  .project-benefits,
  .project-actions,
  .steps,
  .investment,
  .metrics,
  .quote-grid,
  .backing-grid,
  .advisor-points,
  .contact-section,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .search-panel {
    padding: 9px;
  }

  .hero-strip {
    left: 16px;
    right: 16px;
  }

  .hero-strip div {
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section,
  .advisor-section,
  .contact-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .advisor-note {
    grid-template-columns: 1fr;
  }

  .advisor-photo,
  .advisor-photo img {
    min-height: 420px;
  }

  .feature {
    min-height: auto;
  }

  .project-image-slot.main-slot {
    grid-row: auto;
    min-height: 220px;
  }

  .rich-gallery .project-image-slot.main-slot {
    min-height: 0;
  }

  .gallery-viewer {
    grid-template-columns: 1fr;
  }

  .gallery-nav {
    display: none;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(6, minmax(72px, 1fr));
  }

  .masterplan-controls {
    grid-template-columns: repeat(4, 42px);
  }

  .investment {
    min-height: auto;
  }

  .investment-media {
    min-height: 340px;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
