@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #302f2c;
  --muted: #6e6960;
  --paper: #f6f1e8;
  --surface: #ffffff;
  --line: #ddd5c7;
  --gold: #dd7a2b;
  --gold-dark: #b95f1e;
  --green: #263b37;
  --green-dark: #111f1d;
  --sage: #7d8d6e;
  --shadow: 0 18px 42px rgba(17, 31, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, Helvetica, sans-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: minmax(0, 1fr) auto 54px;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 1160px;
  height: 94px;
  min-height: 94px;
  margin: 0 auto;
  padding: 0 28px;
  background: var(--paper);
  border-bottom: 0;
  position: relative;
  top: 0;
  z-index: 20;
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 94px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 194px;
  max-width: 100%;
  max-height: 58px;
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-self: center;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 32px;
  color: #3e4643;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 27px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.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 {
  align-self: center;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: white;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.24);
  transition: transform 180ms ease, background 180ms ease;
}

.whatsapp-link:hover {
  background: #1eb85a;
  transform: translateY(-1px);
}

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

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: max-content;
}

.language-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(221, 213, 199, 0.86);
  border-radius: 50%;
  background: white;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.language-button:hover,
.language-button.is-active {
  border-color: var(--gold);
  box-shadow: 0 8px 18px rgba(17, 31, 29, 0.1);
  transform: translateY(-1px);
}

.flag {
  display: block;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(17, 31, 29, 0.16);
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 31, 29, 0.42), rgba(17, 31, 29, 0.68)),
    rgba(0, 0, 0, 0.26);
}

.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: 0;
  border: 0;
  background: transparent;
  text-align: center;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-card p {
  margin: 0;
  color: white;
  font-size: 42px;
  line-height: 1.18;
  font-weight: 700;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.58);
}

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

.intro {
  padding-top: 84px;
}

.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: "Inter", 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-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 400;
  text-transform: uppercase;
}

.lead {
  max-width: 820px;
  margin: 0 auto;
  color: #5f625a;
  font-size: 20px;
  line-height: 1.7;
  text-align: center;
}

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

.apartment-card {
  background: var(--surface);
  border: 1px solid rgba(221, 213, 199, 0.86);
  box-shadow: 0 14px 34px rgba(17, 31, 29, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
  min-width: 0;
}

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

.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.035);
}

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

.card-body h2,
.detail-panel h2,
.site-footer h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
}

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

.card-body p,
.detail-panel p,
.detail-copy p,
.site-footer p,
.site-footer a {
  color: var(--muted);
  font-family: "Inter", 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: "Inter", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.view-link:hover,
.back-link:hover {
  color: var(--gold-dark);
}

.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-family: "Playfair Display", Georgia, "Times New Roman", serif;
  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);
  box-shadow: 0 14px 34px rgba(17, 31, 29, 0.08);
}

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

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  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;
  box-shadow: var(--shadow);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  padding: 54px 42px 28px;
  background: linear-gradient(135deg, var(--green-dark), 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 auto;
    gap: 12px;
    height: auto;
    min-height: auto;
    padding: 12px 24px;
  }

  .brand {
    height: 72px;
  }

  .brand img {
    width: 186px;
    max-height: 54px;
  }

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

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

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

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

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    height: auto;
    min-height: auto;
    padding: 10px 16px;
  }

  .brand {
    height: 62px;
  }

  .brand img {
    width: 158px;
    max-height: 48px;
  }

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

  .whatsapp-link svg {
    width: 21px;
    height: 21px;
  }

  .language-switch {
    gap: 6px;
  }

  .language-button {
    width: 34px;
    height: 34px;
  }

  .flag {
    width: 22px;
    height: 15px;
  }

  .hero {
    min-height: 380px;
  }

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

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

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

  h1 {
    font-size: 32px;
    line-height: 1.12;
  }

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

  .intro {
    padding-top: 56px;
  }

  .apartments {
    gap: 22px;
    padding-top: 44px;
    padding-bottom: 58px;
  }

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

  .detail-copy h2 {
    font-size: 27px;
    line-height: 1.16;
  }

  .detail-copy p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.65;
  }

  .detail-panel {
    padding: 22px 18px;
  }

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

  .detail-layout {
    gap: 22px;
    padding-bottom: 38px;
  }

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

  .photo-gallery {
    gap: 12px;
    padding-bottom: 56px;
  }

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

  .map-frame {
    height: 300px;
  }

  .site-footer {
    gap: 26px;
    padding: 38px 18px 22px;
  }
}

@media (max-width: 390px) {
  .brand {
    height: 58px;
  }

  .brand img {
    width: 132px;
    max-width: 100%;
    max-height: 42px;
  }

  .site-header {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .language-button {
    width: 32px;
    height: 32px;
  }

  .flag {
    width: 21px;
    height: 14px;
  }

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

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