:root {
  --ink: #161310;
  --muted: #6e665d;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --line: #ded6ca;
  --gold: #c99b4a;
  --gold-dark: #8b6426;
  --green: #2f4b3d;
  --charcoal: #24211d;
  --shadow: 0 20px 60px rgba(22, 19, 16, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 244, 238, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(22, 19, 16, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 7px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-weight: 700;
  font-size: 14px;
}

.nav a {
  opacity: 0.88;
}

.nav a:hover {
  color: var(--gold);
}

.nav a.active {
  color: var(--gold);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 10px;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
  padding: 120px clamp(18px, 5vw, 72px) 52px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: 50% 35%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.88), rgba(12, 10, 8, 0.46) 52%, rgba(12, 10, 8, 0.16)),
    linear-gradient(0deg, rgba(12, 10, 8, 0.82), rgba(12, 10, 8, 0.05) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  color: #fff;
}

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

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.16;
}

.hero-content > p:not(.eyebrow) {
  width: min(650px, 100%);
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-weight: 900;
}

.button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #161310;
}

.button.ghost {
  color: #fff;
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 52px;
  z-index: 2;
  width: min(340px, calc(100vw - 36px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(18px);
}

.hero-panel span,
.apartment-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-panel strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 22px;
}

.hero-panel small {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero {
  position: relative;
  min-height: 64vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 136px clamp(18px, 5vw, 72px) 72px;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.88), rgba(12, 10, 8, 0.42) 58%, rgba(12, 10, 8, 0.12)),
    linear-gradient(0deg, rgba(12, 10, 8, 0.78), rgba(12, 10, 8, 0.08) 60%),
    var(--hero-image),
    var(--charcoal);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.page-hero::after {
  content: none;
}

.page-hero img {
  display: none;
}

.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.page-hero p:not(.eyebrow) {
  width: min(650px, 100%);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 21px);
}

.section,
.showcase,
.video-band,
.contact {
  padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 36px;
}

.section-heading.split {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

.intro-grid article {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 23px;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--charcoal);
  color: #fff;
}

.showcase-copy p:not(.eyebrow),
.video-copy p,
.contact p {
  color: var(--muted);
  font-size: 17px;
}

.showcase-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 34px 0 0;
}

.stats div {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stats dt {
  color: var(--gold);
  font-size: 34px;
  font-weight: 900;
}

.stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.showcase-media {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 16px;
  align-items: end;
}

.showcase-media img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: 8px;
}

.showcase-media img:last-child {
  height: 500px;
}

.text-link {
  color: var(--gold-dark);
  font-weight: 900;
  white-space: nowrap;
}

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

.apartment-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(22, 19, 16, 0.06);
}

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

.apartment-card div {
  padding: 22px;
}

.apartment-card p,
.intro-grid p {
  color: var(--muted);
}

.video-band {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: #ece4d7;
}

.video-band video {
  width: 100%;
  max-height: 680px;
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 14px;
}

.gallery-grid.expanded {
  grid-auto-rows: 230px;
}

.render-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 14px;
}

.render-grid.compact {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 190px;
}

.mini-gallery-block + .mini-gallery-block {
  margin-top: 30px;
}

.mini-gallery-block h3 {
  margin-bottom: 14px;
}

.gallery-item {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ddd;
  cursor: zoom-in;
}

.gallery-item.tall {
  grid-row: span 2;
}

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

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

.gallery-item.plan-thumb {
  background: #fff;
}

.gallery-item.plan-thumb img {
  object-fit: cover;
  padding: 0;
}

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

.gallery-item.plan-thumb:hover img {
  transform: scale(1.02);
}

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

.kat-grid article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.kat-card-visual {
  width: 100%;
  height: 108px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  object-fit: cover;
  object-position: center;
}

.kat-grid span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  font-weight: 900;
}

.kat-grid p {
  color: var(--muted);
}

.kat-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 72px);
  background: var(--charcoal);
  color: #fff;
}

.kat-showcase p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.kat-showcase img {
  width: 100%;
  height: min(680px, 72vh);
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.82);
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 34px;
  align-items: center;
  background: var(--green);
  color: #fff;
}

.contact p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.contact-card a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-card a.whatsapp {
  background: #1f7a4d;
  color: #fff;
}

.contact.compact,
.contact.contact-page {
  min-height: auto;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 72px);
  background: #111;
  color: rgba(255, 255, 255, 0.68);
}

footer img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
}

.lightbox {
  width: min(920px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.lightbox button {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 920px) {
  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: 88vh;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 28px;
  }

  .intro-grid,
  .kat-grid,
  .apartment-grid,
  .showcase,
  .kat-showcase,
  .video-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .showcase-media img,
  .showcase-media img:last-child {
    height: 460px;
  }

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

  .render-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
  }

  .render-grid.compact {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 190px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand span {
    font-size: 15px;
  }

  .hero {
    padding: 104px 16px 36px;
  }

  .page-hero {
    min-height: 62vh;
    padding: 112px 16px 44px;
  }

  h1 {
    font-size: 42px;
  }

  .section-heading.split {
    align-items: start;
    flex-direction: column;
  }

  .showcase-media,
  .stats {
    grid-template-columns: 1fr;
  }

  .showcase-media img,
  .showcase-media img:last-child {
    height: 380px;
  }

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

  .render-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 360px;
  }

  .render-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 154px;
    gap: 10px;
  }

  .render-grid.compact.render-strip {
    grid-auto-rows: 148px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
  }

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