:root {
  color-scheme: light;
  --ink: #302f2c;
  --muted: #6e6960;
  --paper: #f8f5ee;
  --surface: #ffffff;
  --line: #ddd5c7;
  --gold: #c49a55;
  --green: #244e45;
  --green-dark: #183830;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

body,
button,
input,
textarea {
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 0 42px;
  background: rgba(248, 245, 238, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 6px 18px rgba(24, 56, 48, 0.06);
}

.brand {
  color: var(--green-dark);
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.nav a,
.view-link,
.site-footer a,
.back-link,
.whatsapp-link {
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover,
.back-link:hover {
  color: var(--gold);
}

.whatsapp-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: white;
}

.whatsapp-link:hover {
  background: #1eb85a;
}

.whatsapp-link svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.hero {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--green-dark);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 56, 48, 0.34);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 40px));
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.hero-card p {
  margin: 0;
  color: var(--green-dark);
  font-size: 34px;
  line-height: 1.18;
}

.intro,
.apartments,
.page-heading,
.detail-layout,
.photo-gallery {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.intro {
  padding-top: 72px;
}

.section-title,
.page-heading {
  text-align: center;
}

.section-title {
  margin-bottom: 34px;
}

.section-title p,
.page-heading p,
.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: 42px;
  line-height: 1.08;
  font-weight: 400;
  text-transform: uppercase;
}

.lead {
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
  text-align: center;
}

.apartments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
  padding-top: 58px;
  padding-bottom: 82px;
}

.apartment-card {
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}

.image-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d8d0c1;
}

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

.apartment-card:hover img {
  transform: scale(1.04);
}

.card-body {
  padding: 24px 24px 26px;
}

.card-body h2,
.detail-panel h2,
.site-footer h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
}

.card-body h2 {
  margin-bottom: 18px;
}

.card-body p,
.detail-panel p,
.detail-copy p,
.site-footer p,
.site-footer a {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.card-body p {
  margin: 0 0 10px;
}

.card-body strong,
.detail-panel strong {
  color: var(--ink);
}

.view-link,
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-heading {
  padding-top: 72px;
  padding-bottom: 42px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.4fr);
  gap: 48px;
  padding-bottom: 54px;
}

.detail-copy h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: 34px;
  line-height: 1.12;
  font-weight: 400;
}

.detail-copy p {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.75;
}

.detail-panel {
  align-self: start;
  padding: 28px;
  border-top: 4px solid var(--gold);
  background: var(--surface);
}

.detail-panel p {
  margin: 14px 0 0;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 82px;
}

.photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d8d0c1;
}

.map-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px 82px;
}

.map-section .section-title {
  margin-bottom: 24px;
}

.map-frame {
  width: 100%;
  height: 420px;
  border: 1px solid var(--line);
  background: #d8d0c1;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  padding: 54px 42px 28px;
  background: var(--green);
  color: #f8f5ee;
}

.site-footer h2 {
  color: white;
  margin-bottom: 18px;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 9px;
  color: rgba(248, 245, 238, 0.82);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px 18px;
    padding: 16px 24px 14px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 8px 18px;
  }

  .whatsapp-link {
    justify-self: end;
  }

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

  .detail-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    padding: 14px 18px 12px;
  }

  .brand {
    font-size: 23px;
    line-height: 1.1;
  }

  .nav {
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    font-size: 12px;
  }

  .nav a {
    min-height: 38px;
    padding: 0 4px;
  }

  .whatsapp-link {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: 390px;
  }

  .hero-card {
    width: calc(100% - 32px);
    padding: 24px 20px;
  }

  .hero-card p {
    font-size: 27px;
    line-height: 1.18;
  }

  .intro,
  .apartments,
  .page-heading,
  .detail-layout,
  .photo-gallery,
  .map-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 18px;
    line-height: 1.6;
  }

  .intro {
    padding-top: 56px;
  }

  .apartments {
    gap: 24px;
    padding-top: 44px;
    padding-bottom: 62px;
  }

  .card-body {
    padding: 22px 20px 24px;
  }

  .detail-copy h2 {
    font-size: 28px;
  }

  .detail-panel {
    padding: 24px 20px;
  }

  .page-heading {
    padding-top: 54px;
    padding-bottom: 34px;
  }

  .detail-layout {
    gap: 28px;
    padding-bottom: 42px;
  }

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

  .photo-gallery {
    gap: 14px;
    padding-bottom: 62px;
  }

  .map-section {
    padding-bottom: 62px;
  }

  .map-frame {
    height: 320px;
  }

  .site-footer {
    padding: 42px 20px 24px;
  }
}

@media (max-width: 390px) {
  .nav {
    font-size: 11px;
  }

  .brand {
    font-size: 21px;
  }

  .hero-card p {
    font-size: 24px;
  }
}
