:root {
  --bg: #f3ecdf;
  --surface: rgba(255, 250, 242, 0.72);
  --surface-strong: rgba(255, 249, 238, 0.92);
  --text: #261f18;
  --text-soft: #5a5144;
  --line: rgba(72, 58, 38, 0.12);
  --green-forest: #2f5c43;
  --green-moss: #6e8964;
  --earth: #a97a42;
  --sun: #e9b25a;
  --shadow: 0 26px 60px rgba(63, 46, 27, 0.16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1240px;
  --header-offset: 128px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(233, 178, 90, 0.18), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(47, 92, 67, 0.16), transparent 24%),
    linear-gradient(180deg, #f7f2e8 0%, #f0e8d8 100%);
}

#top,
#proiect,
#galerie,
#loturi,
#plan,
#locatie,
#contact {
  scroll-margin-top: var(--header-offset);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(58, 48, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 48, 36, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.35;
}

.ambient-one {
  top: -80px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: rgba(233, 178, 90, 0.34);
}

.ambient-two {
  right: -80px;
  top: 240px;
  width: 240px;
  height: 240px;
  background: rgba(47, 92, 67, 0.24);
}

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

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

.page-shell {
  width: min(calc(100% - 28px), var(--container));
  margin: 0 auto;
  padding-bottom: 72px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 16px 0 26px;
  padding: 10px 18px 10px 18px;
  background: rgba(255, 249, 238, 0.76);
  border: 1px solid rgba(87, 68, 43, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: 1;
  min-width: 96px;
  min-height: 74px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green-forest);
  font-weight: 800;
}

.eyebrow,
.map-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--green-moss);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 700;
  grid-column: 3;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active,
.project-badge:hover,
.project-badge:focus-visible {
  color: var(--green-forest);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: rgba(47, 92, 67, 0.1);
}

.site-nav .nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff8ee;
  background: var(--green-forest);
  box-shadow: 0 10px 22px rgba(47, 92, 67, 0.18);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible,
.site-nav .nav-cta.is-active {
  color: #fff8ee;
  background: #244b36;
}

.nav-project-link {
  display: none;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  grid-column: 2;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  color: #fff8ee;
  background: var(--green-forest);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(47, 92, 67, 0.2);
}

.menu-toggle span {
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 6px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease, width 180ms ease;
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 20px;
}

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

.header-residence-mark {
  position: relative;
  width: 170px;
  height: 82px;
  overflow: visible;
  flex: 0 0 auto;
}

.header-residence-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: 92px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transform-origin: center;
  filter: drop-shadow(0 4px 10px rgba(87, 68, 43, 0.12));
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
  background: rgba(47, 92, 67, 0.1);
  color: var(--green-forest);
  font-weight: 800;
}

.project-badge-label {
  font-size: 0.85rem;
  line-height: 1.1;
  white-space: nowrap;
}

.project-badge img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fffdf7;
  background: linear-gradient(135deg, #25d366, #118a43);
  box-shadow:
    0 18px 36px rgba(17, 138, 67, 0.28),
    0 6px 16px rgba(17, 138, 67, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-audio {
  position: fixed;
  right: 30px;
  bottom: 96px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(87, 68, 43, 0.16);
  border-radius: 50%;
  color: var(--green-forest);
  background: rgba(255, 249, 238, 0.94);
  box-shadow: 0 14px 32px rgba(44, 39, 28, 0.18);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible,
.floating-audio:hover,
.floating-audio:focus-visible {
  transform: translateY(-2px) scale(1.03);
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  box-shadow:
    0 22px 44px rgba(17, 138, 67, 0.32),
    0 8px 20px rgba(17, 138, 67, 0.22);
}

.floating-audio:hover,
.floating-audio:focus-visible,
.floating-audio.is-playing {
  color: #fff8ee;
  background: linear-gradient(135deg, var(--green-forest), #4d7357);
  box-shadow: 0 16px 34px rgba(47, 92, 67, 0.24);
}

.floating-whatsapp svg {
  width: 33px;
  height: 33px;
  fill: currentColor;
}

.floating-audio svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.hero-media {
  position: relative;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  min-height: 720px;
  overflow: hidden;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(33, 29, 28, 0) 0%, rgba(38, 30, 25, 0.08) 18%, rgba(78, 62, 44, 0.45) 72%, rgba(158, 148, 111, 0.72) 100%),
    url("./assets/images/soil-texture.jpg");
  background-position: center, left top;
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 360px auto;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 52%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 51%, rgba(35, 25, 21, 0.08) 52%, rgba(35, 25, 21, 0) 66%);
  pointer-events: none;
}

.hero-content {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  align-self: end;
  padding: 0 48px 48px;
  z-index: 2;
  color: #fff7ea;
}

.hero-highlights,
.hero-actions,
.grid,
.gallery-grid,
.lots-layout,
.plan-layout,
.contact-shell,
.location-panel {
  display: grid;
  gap: 18px;
}

.hero h1,
.section h2,
.contact-card h2 {
  margin: 10px 0 16px;
  font-family: "Bodoni Moda", serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 0.97;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(2.6rem, 5.6vw, 5.35rem);
}

.hero-count {
  display: inline-block;
  margin-right: 0.08em;
  font-family: "Manrope", sans-serif;
  font-size: 0.88em;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.84;
  color: #fff5e7;
  text-shadow:
    0 8px 24px rgba(18, 14, 10, 0.28),
    0 2px 6px rgba(18, 14, 10, 0.2);
  vertical-align: 0.06em;
}

.section h2,
.contact-card h2 {
  font-size: clamp(2.2rem, 3.75vw, 3.85rem);
}

.hero h2,
.card h3,
.lifestyle-card h3,
.lots-card h3 {
  margin: 0 0 14px;
  font-family: "Bodoni Moda", serif;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.08;
}

.lead,
.section p,
.card p,
.lifestyle-card p,
.contact-card p,
.aside-card p,
.form-note,
.map-note {
  line-height: 1.78;
}

.lead {
  max-width: 760px;
  color: rgba(255, 247, 234, 0.9);
  font-size: 1.1rem;
}

.hero-highlights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.highlight-card,
.aside-card,
.card,
.lifestyle-card,
.lots-card,
.location-panel,
.contact-card,
.form-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.highlight-card {
  min-height: 128px;
  padding: 18px;
  background: rgba(72, 58, 39, 0.4);
  border-color: rgba(255, 247, 234, 0.16);
  box-shadow: 0 18px 38px rgba(50, 39, 25, 0.18);
}

.highlight-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.36rem;
}

.highlight-card span {
  color: rgba(255, 247, 234, 0.82);
}

.highlight-card.accent {
  background: linear-gradient(135deg, rgba(191, 154, 91, 0.36), rgba(91, 134, 92, 0.24));
}

.hero-actions {
  grid-auto-flow: column;
  justify-content: start;
  margin-top: 24px;
}

.hero-aside {
  position: relative;
}

.aside-card {
  position: sticky;
  top: 110px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(47, 92, 67, 0.1), rgba(255, 249, 238, 0.94)),
    var(--surface-strong);
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--green-forest);
  background: rgba(255, 250, 242, 0.88);
  font-weight: 800;
}

.feature-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.check-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 22px;
  color: var(--text-soft);
  line-height: 1.65;
}

.feature-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--earth);
  transform: translateY(-50%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button-primary {
  color: #fff8ee;
  background: linear-gradient(135deg, var(--green-forest), #4d7357);
  box-shadow: 0 16px 34px rgba(47, 92, 67, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 249, 238, 0.86);
  border: 1px solid rgba(87, 68, 43, 0.12);
}

.story-banner {
  margin: 24px 0 8px;
  padding: 28px 30px;
  border-left: 4px solid var(--sun);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: rgba(255, 249, 238, 0.74);
  box-shadow: var(--shadow);
}

.story-banner p {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.7rem, 2.45vw, 2.55rem);
  font-weight: 600;
  line-height: 1.18;
}

.section {
  padding: 56px 0 0;
}

.section-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 42px 0 6px;
}

.section-divider span {
  position: relative;
  height: 18px;
}

.section-divider span::before,
.section-divider span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(87, 68, 43, 0.18);
}

.section-divider span::before {
  top: 5px;
}

.section-divider span::after {
  top: 12px;
}

.section-divider em {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green-moss);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 24px;
}

.section-heading p {
  color: var(--text-soft);
}

.project-grid {
  grid-template-columns: 1fr 1fr 1.1fr;
  align-items: stretch;
}

.card,
.lifestyle-card,
.lots-card,
.contact-card,
.form-card {
  padding: 28px;
}

.image-card {
  overflow: hidden;
  padding: 0;
}

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

.lifestyle-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.lifestyle-card.wide {
  background:
    linear-gradient(180deg, rgba(47, 92, 67, 0.09), rgba(255, 249, 238, 0.9)),
    var(--surface-strong);
}

.lifestyle-card.accent,
.lots-card.emphasis {
  background: linear-gradient(135deg, rgba(233, 178, 90, 0.14), rgba(255, 249, 238, 0.82));
}

.dream-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.2fr;
  gap: 22px;
  align-items: center;
}

.dream-copy {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(233, 178, 90, 0.08), rgba(255, 249, 238, 0.92)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.dream-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.dream-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 140px;
}

.gallery-item {
  overflow: hidden;
  margin: 0;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item.large {
  grid-column: 1 / span 7;
  grid-row: 1 / span 3;
}

.gallery-item.wide {
  grid-column: 4 / span 6;
  grid-row: 6 / span 2;
}

.gallery-item.top-right {
  grid-column: 8 / span 5;
  grid-row: 1 / span 3;
}

.gallery-item.mid-left {
  grid-column: 1 / span 4;
  grid-row: 4 / span 2;
}

.gallery-item.mid-center {
  grid-column: 5 / span 5;
  grid-row: 4 / span 2;
}

.gallery-brand {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 12px 10px;
  text-align: center;
  color: var(--green-forest);
  background:
    linear-gradient(180deg, rgba(47, 92, 67, 0.08), rgba(255, 249, 238, 0.94)),
    var(--surface-strong);
  border: 1px solid rgba(87, 68, 43, 0.1);
  grid-column: 10 / span 3;
  grid-row: 4 / span 2;
}

.gallery-item.winter {
  grid-column: 10 / span 3;
  grid-row: 6 / span 2;
}

.gallery-item.end-right {
  grid-column: 1 / span 3;
  grid-row: 6 / span 2;
}

.gallery-brand-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-moss);
}

.gallery-brand img {
  width: min(100%, 170px);
  height: auto;
  object-fit: contain;
}


.lots-layout {
  grid-template-columns: 1fr 1fr 1.08fr;
}

.plan-layout {
  grid-template-columns: 1.35fr 0.8fr;
  align-items: start;
}

.plan-card,
.plan-info {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.plan-card {
  overflow: hidden;
}

.plan-card img {
  width: 100%;
  height: auto;
}

.plan-info {
  padding: 28px;
}

.plan-info h3 {
  margin: 0 0 14px;
  font-family: "Bodoni Moda", serif;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.08;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.plan-note {
  margin: 18px 0 0;
  color: var(--text-soft);
}

.lot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.lot-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(233, 178, 90, 0.18);
  color: #714b20;
  font-weight: 800;
}

.lot-tags .lot-count {
  width: auto;
  background: rgba(47, 92, 67, 0.14);
  color: #7bc71f;
}

.lot-tags .lot-sold {
  width: auto;
  background: rgba(47, 92, 67, 0.14);
  color: var(--green-forest);
}

.location-panel {
  grid-template-columns: 1.2fr 0.78fr;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(47, 92, 67, 0.08), rgba(255, 249, 238, 0.92)),
    var(--surface-strong);
}

.location-actions,
.contact-buttons,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.map-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 251, 246, 0.84);
  border: 1px solid rgba(87, 68, 43, 0.12);
}

.map-link {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47, 92, 67, 0.12), rgba(233, 178, 90, 0.14));
}

.map-link span {
  color: var(--text-soft);
}

.map-link strong {
  font-size: 1.2rem;
}

.contact-shell {
  grid-template-columns: 1fr 1fr;
}

.contact-card {
  background:
    linear-gradient(180deg, rgba(233, 178, 90, 0.08), rgba(255, 249, 238, 0.94)),
    var(--surface-strong);
}

.contact-meta p {
  margin: 8px 0;
  color: var(--text-soft);
}

.inline-map-link {
  font-weight: 800;
  color: var(--green-forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.inline-map-link:hover,
.inline-map-link:focus-visible {
  color: #244b36;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form .privacy-consent {
  grid-template-columns: 22px 1fr;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(87, 68, 43, 0.12);
  border-radius: 16px;
  background: rgba(255, 249, 238, 0.64);
}

.lead-form span {
  font-weight: 700;
  color: var(--text-soft);
}

.lead-form .privacy-consent span {
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 600;
}

.lead-form .privacy-consent a,
.legal-card a {
  color: var(--green-forest);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(87, 68, 43, 0.14);
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 252, 247, 0.92);
}

.lead-form .privacy-consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green-forest);
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(47, 92, 67, 0.2);
  border-color: rgba(47, 92, 67, 0.34);
}

.form-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.form-status {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
}

.form-status-ok {
  color: var(--green-forest);
  background: rgba(47, 92, 67, 0.1);
}

.form-status-error {
  color: #8b2f2f;
  background: rgba(139, 47, 47, 0.1);
}

.form-sent-ok .form-status-ok,
.form-sent-error .form-status-error {
  display: block;
}

.reveal-block {
  opacity: 1;
  transform: none;
}

.js .reveal-block {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(87, 68, 43, 0.16);
  color: var(--text-soft);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: var(--text);
}

.site-footer a {
  font-weight: 800;
  color: var(--green-forest);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.legal-shell {
  padding-bottom: 44px;
}

.legal-hero,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 249, 238, 0.94), rgba(255, 249, 238, 0.82)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.legal-hero {
  margin-top: 34px;
  padding: clamp(28px, 5vw, 58px);
}

.legal-hero h1,
.legal-card h2 {
  margin: 10px 0 18px;
  font-family: "Bodoni Moda", serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--text);
}

.legal-hero h1 {
  max-width: 920px;
  font-size: clamp(2.8rem, 6.4vw, 5.3rem);
}

.legal-hero p,
.legal-card p,
.legal-card li {
  max-width: 920px;
  color: var(--text-soft);
  line-height: 1.78;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-offset) + 6px);
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 238, 0.86);
  backdrop-filter: blur(16px);
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 800;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--green-forest);
  background: rgba(47, 92, 67, 0.08);
}

.legal-card {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  scroll-margin-top: calc(var(--header-offset) + 96px);
}

.legal-card h2 {
  font-size: clamp(2rem, 3.7vw, 4rem);
}

.legal-card ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  width: min(720px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(87, 68, 43, 0.16);
  border-radius: 22px;
  background: rgba(255, 249, 238, 0.96);
  box-shadow: 0 22px 64px rgba(44, 39, 28, 0.24);
  backdrop-filter: blur(18px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  color: var(--text);
}

.cookie-banner p {
  margin: 6px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.92rem;
}

.cookie-banner p a {
  color: var(--green-forest);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto minmax(220px, 0.8fr);
    border-radius: 30px;
  }

  .brand {
    grid-column: 1;
  }

  .header-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

  .hero-aside {
    order: 3;
  }

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

  .aside-card {
    position: static;
  }

  .project-grid,
  .lifestyle-grid,
  .dream-layout,
  .lots-layout,
  .plan-layout,
  .location-panel,
  .contact-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  :root {
    --header-offset: 140px;
  }

  .site-header {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 12px;
    margin: 10px 0 18px;
    padding: 10px;
    top: 8px;
    border-radius: 22px;
  }

  .brand {
    display: inline-flex;
    grid-column: 1;
    justify-content: center;
    min-width: 0;
    min-height: 72px;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .header-residence-mark {
    width: 142px;
    height: 70px;
  }

  .header-residence-logo {
    height: 78px;
    transform: translate(-50%, -50%);
  }

  .project-badge {
    gap: 8px;
    min-height: 60px;
    padding: 6px 10px;
    border-radius: 22px;
  }

  .header-actions {
    gap: 8px;
    grid-column: 2;
    justify-content: flex-start;
  }

  .project-badge-label {
    font-size: 0.72rem;
  }

  .project-badge img {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    padding-top: 2px;
    font-size: 0.84rem;
    scrollbar-width: none;
  }

  .site-nav .nav-cta {
    padding: 6px 12px;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-content {
    padding: 0 24px 24px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    grid-auto-flow: row;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-item,
  .gallery-item.large,
  .gallery-item.top-right,
  .gallery-item.wide,
  .gallery-item.mid-left,
  .gallery-item.mid-center,
  .gallery-item.winter,
  .gallery-item.end-right,
  .gallery-brand {
    grid-column: auto;
    grid-row: span 1;
  }

  .gallery-brand {
    min-height: 210px;
    padding: 18px 14px;
  }

  .gallery-brand img {
    width: min(72%, 150px);
  }
}

@media (max-width: 640px) {
  :root {
    --header-offset: 112px;
  }

  .page-shell {
    width: min(calc(100% - 18px), var(--container));
  }

  .site-header,
  .card,
  .lifestyle-card,
  .lots-card,
  .location-panel,
  .contact-card,
  .form-card,
  .aside-card {
    border-radius: 24px;
  }

  .hero-media {
    min-height: 680px;
    border-radius: 28px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.7rem);
  }

  .lead {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .site-header {
    grid-template-columns: 44px 1fr;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
  }

  .brand {
    grid-column: 2;
    justify-content: center;
    min-height: 78px;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .header-residence-mark {
    width: 148px;
    height: 70px;
  }

  .header-residence-logo {
    height: 80px;
    transform: translate(-50%, -50%);
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    width: 38px;
    min-height: 38px;
    gap: 5px;
    border-radius: 0;
    color: #5c574e;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
  }

  .menu-toggle span {
    width: 30px;
    height: 3px;
    background: #5c574e;
  }

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

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

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .floating-audio {
    right: 22px;
    bottom: 84px;
    width: 44px;
    height: 44px;
  }

  .floating-whatsapp svg {
    width: 29px;
    height: 29px;
  }

  .floating-audio svg {
    width: 22px;
    height: 22px;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 7px;
    overflow: visible;
    white-space: normal;
    padding-top: 4px;
    font-size: 0.86rem;
  }

  .site-header.is-menu-open .site-nav {
    display: grid;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 11px 14px;
    text-align: left;
    background: rgba(255, 249, 238, 0.72);
  }

  .site-nav .nav-cta {
    justify-content: center;
  }

  .site-nav .nav-project-link {
    display: inline-flex;
    gap: 12px;
    margin-top: 4px;
    color: var(--green-forest);
    background: rgba(47, 92, 67, 0.1);
  }

  .nav-project-link img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .location-actions,
  .contact-buttons,
  .form-actions,
  .plan-actions {
    flex-direction: column;
  }

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

  .gallery-brand {
    min-height: 190px;
    align-content: center;
    gap: 10px;
  }

  .gallery-brand-kicker {
    font-size: 0.68rem;
  }

  .gallery-brand img {
    width: min(66%, 148px);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-nav {
    position: static;
    border-radius: 24px;
  }

  .legal-nav a,
  .cookie-actions .button {
    width: 100%;
  }

  .legal-grid,
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
