/* Bela Vista Ciudad Natural — landing */

:root {
  --forest: #143528;
  --moss: #2a5740;
  --leaf: #3d7a58;
  --mist: #dfece4;
  --haze: #f2f7f4;
  --ink: #101a15;
  --muted: #4a5c52;
  --line: rgba(20, 53, 40, 0.12);
  --sand: #c9b896;
  --gold: #b8954a;
  --white: #ffffff;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--forest);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--forest);
  color: var(--white);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(242, 247, 244, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header.is-scrolled .brand img {
  filter: invert(1);
}

.header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  height: 2.35rem;
  width: auto;
  transition: filter 0.35s var(--ease);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.78;
  transition: opacity 0.25s;
}

.nav a:hover {
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
  background: var(--forest);
  color: var(--white) !important;
  opacity: 1 !important;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}

.nav-cta:hover {
  background: var(--moss);
  transform: translateY(-1px);
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--white);
  transition: background 0.3s;
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--ink);
}

.nav-mobile {
  position: absolute;
  inset: var(--header-h) 0 auto;
  background: rgba(16, 26, 21, 0.96);
  padding: 1.25rem 1.5rem 1.75rem;
  display: grid;
  gap: 0.35rem;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.08);
  animation: hero-drift 18s var(--ease) forwards;
}

@keyframes hero-drift {
  to {
    transform: scale(1);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 16, 0.35) 0%, rgba(10, 22, 16, 0.15) 35%, rgba(10, 22, 16, 0.72) 100%),
    linear-gradient(90deg, rgba(10, 22, 16, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0 5.5rem;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 6.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero-tag {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
}

.hero-title {
  margin: 1.6rem 0 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
}

.hero-lead {
  margin: 1.1rem 0 0;
  max-width: 36ch;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  display: grid;
  justify-content: center;
  padding-top: 0.45rem;
}

.scroll-hint span {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: var(--white);
  animation: scroll-pulse 1.6s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(8px);
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: #c9a45a;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-block {
  width: 100%;
}

/* Sections */

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf);
}

.display {
  margin: 0.65rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--forest);
}

.lede {
  margin: 1rem 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 38rem;
}

/* Project */

.project-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.stat-row {
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

.stat-row dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-row dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--forest);
  line-height: 1;
}

.stat-accent {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem) !important;
  color: var(--gold) !important;
}

.project-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.project-visual img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

/* Apartment */

.apartment {
  background:
    linear-gradient(180deg, rgba(20, 53, 40, 0.04), transparent 30%),
    linear-gradient(120deg, #e7f0ea 0%, #f4f8f5 100%);
}

.apartment-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.apartment-visual {
  margin: 0;
}

.apartment-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.living-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.living-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.living-list strong {
  display: block;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 0.35rem;
}

.living-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Notices / cartelera */

.notices {
  background:
    radial-gradient(800px 360px at 0% 0%, rgba(61, 122, 88, 0.1), transparent 55%),
    var(--haze);
}

.notice-board {
  display: grid;
  gap: 1.25rem;
}

.notice {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.notice:last-child {
  border-bottom: 1px solid var(--line);
}

.notice time {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.55rem;
}

.notice h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.2;
}

.notice p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 52ch;
}

/* Amenities */

.amenity-showcase {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.amenity-showcase img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.amenity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
}

.amenity-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--forest);
}

.amenity-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.gallery-item {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

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

.legal-inline {
  margin: 1.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 70ch;
}

/* Location */

.location {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.location-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(16, 38, 28, 0.92), rgba(20, 53, 40, 0.88)),
    url("../img/general-8.jpg") center / cover;
  transform: scale(1.02);
}

.location .wrap {
  position: relative;
}

.location .display,
.location .eyebrow {
  color: var(--white);
}

.location .eyebrow {
  color: var(--sand);
}

.location .lede {
  color: rgba(255, 255, 255, 0.78);
}

.nearby {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.nearby li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nearby strong {
  font-weight: 400;
  font-size: 0.98rem;
}

.nearby-icon {
  width: 2rem;
  height: 2rem;
  color: var(--sand);
  flex-shrink: 0;
}

.nearby-icon svg {
  width: 100%;
  height: 100%;
}

.map-embed {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: min(420px, 55vw);
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
}

/* Contact */

.contact {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(184, 149, 74, 0.12), transparent 60%),
    var(--haze);
}

.contact-wrap {
  display: grid;
  gap: 2.5rem;
}

.contact-meta {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.contact-meta li span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-meta a,
.contact-meta p {
  margin: 0;
  color: var(--forest);
  font-weight: 400;
  text-decoration: none;
}

.contact-meta a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--white);
  padding: 1.75rem 1.35rem;
  border: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--forest);
}

.optional {
  font-weight: 300;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--haze);
  border-radius: 0;
  padding: 0.9rem 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--moss) 50%),
    linear-gradient(135deg, var(--moss) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--moss);
  background-color: var(--white);
}

.field-row {
  display: grid;
  gap: 1rem;
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  margin-top: 0.2rem;
  accent-color: var(--moss);
}

.form-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.88rem;
  color: var(--moss);
}

.form-status.is-error {
  color: #8b2e2e;
}

/* Footer */

.site-footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-logo {
  height: 2.2rem;
  width: auto;
  margin-bottom: 0.85rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}

.footer-grid a {
  display: block;
  text-decoration: none;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  max-width: 70ch;
  opacity: 0.7;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 14, 11, 0.92);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: min(85vh, 900px);
  max-width: min(96vw, 1100px);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* Reveal motion */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-content .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.hero-content .reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.hero-content .reveal:nth-child(3) {
  transition-delay: 0.28s;
}
.hero-content .reveal:nth-child(4) {
  transition-delay: 0.4s;
}
.hero-content .reveal:nth-child(5) {
  transition-delay: 0.52s;
}

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

  .hero-img,
  .scroll-hint span,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Breakpoints */

@media (min-width: 720px) {
  .stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .amenity-showcase {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .amenity-showcase img:first-child {
    grid-row: 1 / -1;
    aspect-ratio: auto;
    height: 100%;
  }

  .amenity-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-item:first-child {
    grid-column: span 2;
  }

  .gallery-item:first-child img {
    aspect-ratio: 16 / 9;
  }

  .nearby {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
  }

  .notice-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 2rem;
  }

  .notice {
    padding: 0 0 0.25rem;
    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid var(--line);
    padding-left: 1.35rem;
  }

  .notice:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form {
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .nav {
    display: flex;
  }

  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }

  .project-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }

  .apartment-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }

  .contact-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .site-header:not(.is-scrolled) .nav a:not(.nav-cta) {
    color: var(--white);
  }

  .site-header:not(.is-scrolled) .nav-cta {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white) !important;
  }

  .site-header:not(.is-scrolled) .nav-cta:hover {
    background: var(--white);
    color: var(--forest) !important;
  }
}
