@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,500;1,500&display=swap');

:root {
  --cream: #f4f0e8;
  --paper: #fffaf2;
  --ink: #27231f;
  --muted: #756d64;
  --brown: #322d29;
  --sage: #cbe1c8;
  --orange: #ee643a;
  --border: rgba(39, 35, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6vw;
  border-bottom: 1px solid var(--border);
  background: rgba(244, 240, 232, 0.88);
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  width: auto;
  height: 54px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw 6vw;
  color: var(--cream);
  background: var(--brown);
}

.kicker {
  margin: 0 0 22px;
  color: rgba(244, 240, 232, 0.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.quote,
.card h3,
.footer h2 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(56px, 9vw, 128px);
  font-style: italic;
}

.hero p {
  max-width: 560px;
  margin: 0 0 36px;
  color: rgba(244, 240, 232, 0.82);
  font-size: clamp(18px, 2vw, 24px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button.primary {
  color: var(--brown);
  border-color: var(--cream);
  background: var(--cream);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-image {
  min-height: 420px;
  background: #ddd;
}

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

.section {
  padding: 90px 6vw;
  border-bottom: 1px solid var(--border);
}

.section.sage {
  background: var(--sage);
}

.quote {
  max-width: 1120px;
  margin: 0 auto;
  font-size: clamp(36px, 6vw, 76px);
  text-align: center;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.section-head > p {
  max-width: 460px;
  color: var(--muted);
}

.section-title {
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
}

.small-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.apartment {
  background: var(--paper);
}

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

.apartment-card {
  position: relative;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, var(--cream));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
  z-index: 1;
}

.apartment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(50, 45, 41, 0.18);
  z-index: 5;
}

.apartment-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.apartment-card h3 {
  margin: 0 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.apartment-card p {
  margin: 0;
  color: var(--muted);
}

.apartment-detail {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 20;
  width: min(520px, 92vw);
  padding: 30px;
  border: 1px solid var(--border);
  color: var(--ink);
  background: rgba(255, 250, 242, 0.98);
  box-shadow: 0 34px 100px rgba(50, 45, 41, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -40%) scale(0.94);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.apartment-card:hover .apartment-detail {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.apartment-detail strong {
  display: block;
  margin-bottom: 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.apartment-detail p {
  margin-bottom: 18px;
}

.apartment-detail ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.apartment-detail li::before {
  content: '✓';
  margin-right: 8px;
  color: var(--orange);
  font-weight: 700;
}

.card {
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--paper);
}

.photo-zoom {
  display: block;
  width: 100%;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  background: #e8e0d6;
  cursor: zoom-in;
}

.photo-zoom img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.photo-zoom:hover img {
  transform: scale(1.16);
  filter: contrast(1.06) saturate(1.08);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(20, 17, 15, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  width: min(1100px, 100%);
  margin: 0;
  color: var(--cream);
  text-align: center;
}

.lightbox-content img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.lightbox-content figcaption {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(244, 240, 232, 0.45);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 34px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-box {
  padding: 42px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.42);
}

.feature-box ul {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-box li::before {
  content: '✓';
  margin-right: 10px;
  color: var(--orange);
  font-weight: 700;
}

.location {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: center;
  overflow: hidden;
  color: white;
  text-align: center;
}

.location img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.location-content {
  position: relative;
  width: min(680px, calc(100% - 32px));
  padding: 54px;
  background: rgba(50, 45, 41, 0.78);
}

.location-content h2 {
  margin: 0 0 18px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.9;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 80px 6vw 40px;
  background: var(--brown);
  color: var(--cream);
}

.footer h2 {
  margin: 0 0 24px;
  font-size: clamp(44px, 6vw, 76px);
}

.footer p {
  margin: 0 0 12px;
  color: rgba(244, 240, 232, 0.78);
}

.contact-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: min(760px, 100%);
  margin: 10px auto 0;
  padding: 20px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: rgba(244, 240, 232, 0.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 240, 232, 0.22);
  border-radius: 0;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  padding: 10px 12px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cream);
  background: rgba(255, 255, 255, 0.12);
}

.contact-form .full {
  grid-column: 1 / -1;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 240, 232, 0.18);
  color: rgba(244, 240, 232, 0.58);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .cards,
  .apartment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .hero,
  .cards,
  .apartment-grid,
  .feature,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-text {
    min-height: 62vh;
  }

  .section {
    padding: 64px 22px;
  }

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

  .feature-box,
  .location-content {
    padding: 28px;
  }

  .footer {
    padding: 64px 22px 32px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .apartment-card:hover {
    transform: none;
  }

  .apartment-detail {
    position: static;
    width: 100%;
    margin-top: 20px;
    padding: 22px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .apartment-card:hover .apartment-detail {
    transform: none;
  }
}
