:root {
  --bg: #44474B;
  --bg-alt: #3B3E42;
  --card: #4A4D51;
  --tile: #505357;
  --border: #5C6064;
  --input-border: #6E7276;
  --outline: #7A7E82;
  --text: #F0F2F3;
  --text-soft: #DADDE0;
  --text-muted: #C4C8CC;
  --heading: #FFFFFF;
  --accent: #CFD68D;
  --rule: #E07A4F;
  --on-accent: #1E2022;
  --font-body: Inter, system-ui, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: #EEF0D8; text-decoration: none; }
a:hover { color: #FFFFFF; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--heading); }
p { margin: 0; }

.container { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.band { background: var(--bg-alt); }
.section { padding-top: 96px; padding-bottom: 96px; }

.top-rule { height: 4px; background: var(--rule); }

/* Header */
.site-header {
  padding-top: 24px; padding-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: 0.02em; color: #F3F4EE;
}
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; font-weight: 500; font-size: 16px;
  line-height: 1.2; font-family: inherit; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); font-weight: 600; border: 0; }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.06); }
.btn-outline { border: 1px solid var(--outline); color: #F3F4EE; background: transparent; }
.btn-outline:hover { border-color: #A4A8AC; }
.btn-sm { padding: 10px 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Eyebrow */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; display: block; width: 48px; height: 2px; background: var(--rule); flex: none; }

.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-head h2 { font-size: 42px; line-height: 1.15; }

/* Hero */
.hero {
  padding-top: 72px; padding-bottom: 96px;
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.05; }
.hero-lede { font-size: 19px; line-height: 1.6; color: var(--text-soft); max-width: 560px; }
.hero-copy .btn-row { margin-top: 8px; }
.hero-img {
  flex: 1 1 420px; min-width: 0; height: 460px; border-radius: 20px;
  object-fit: cover; object-position: 60% 50%;
}

/* Buy */
.buy-inner { display: flex; flex-direction: column; gap: 40px; }
.buy-inner .section-head { max-width: 760px; }
.listing {
  border-radius: 24px; background: var(--card); border: 1px solid var(--border);
  display: flex; flex-wrap: wrap; overflow: hidden;
}
.listing-img { flex: 1 1 440px; min-width: 0; min-height: 420px; object-fit: cover; object-position: 55% 40%; }
.listing-body { flex: 1 1 440px; min-width: 0; padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.listing-body > p:first-child { font-size: 17px; line-height: 1.6; color: var(--text-soft); }
.facts {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
}
.facts li { padding: 16px; border-radius: 12px; background: var(--tile); display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--heading); }
.facts span { font-size: 14px; color: var(--text-muted); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-top: 4px; }
.price { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--accent); }
.price-note { font-size: 15px; color: var(--text-muted); }
.valuation { margin-top: -8px; font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.valuation strong { color: var(--heading); font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.gallery img { width: 100%; height: 300px; object-fit: cover; border-radius: 16px; }

/* Rent */
.rent { display: flex; flex-direction: column; gap: 40px; }
.rent-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.rent-head > p { font-size: 16px; color: var(--text-soft); max-width: 420px; }
.rentals {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 290px));
  justify-content: center; gap: 24px;
}
.rental {
  border-radius: 16px; overflow: hidden; background: var(--card);
  border: 1px solid var(--border); border-top: 4px solid var(--rule);
  display: flex; flex-direction: column;
}
.rental img { width: 100%; height: 200px; object-fit: cover; }
.rental-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rental h3 { font-size: 22px; font-weight: 700; }
.rental-specs { font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.rental-price { margin-top: 6px; font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.rental-monthly { padding-top: 10px; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.rental-monthly strong { color: var(--heading); font-weight: 600; }
.rental .btn { margin-top: auto; padding: 12px 0; }

/* Services */
.services-inner { display: flex; flex-direction: column; gap: 48px; }
.services-inner .section-head { max-width: 640px; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service { padding: 32px; border-radius: 16px; background: var(--tile); display: flex; flex-direction: column; gap: 14px; }
.service svg { color: var(--accent); }
.service h3 { font-size: 22px; font-weight: 700; }
.service p { font-size: 16px; line-height: 1.6; color: var(--text-soft); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-copy > p { font-size: 17px; line-height: 1.6; color: var(--text-soft); }
.contact-copy .btn { align-self: flex-start; margin-top: 8px; }
.contact-details { margin-top: 8px; font-size: 16px; line-height: 1.9; color: var(--text-soft); font-style: normal; }
.contact-form { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-soft); }
.contact-form input, .contact-form select, .contact-form textarea {
  border-radius: 10px; border: 1px solid var(--input-border); background: var(--bg-alt);
  color: var(--heading); font-size: 16px; font-family: inherit;
}
.contact-form input, .contact-form select { height: 48px; padding: 0 14px; }
.contact-form textarea { padding: 12px 14px; resize: vertical; }
.contact-form .btn { align-self: flex-start; height: 52px; padding: 0 32px; }
.form-hint { font-size: 14px; color: var(--text-muted); }

/* Footer */
.footer-rule { max-width: 1176px; margin: 0 auto; height: 2px; background: var(--rule); }
.site-footer {
  padding-top: 32px; padding-bottom: 32px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  font-size: 14px; color: #BFC3C7;
}
.site-footer .copyright { display: flex; align-items: center; gap: 10px; }
.site-footer img { height: 24px; width: auto; }

@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 40px; padding-bottom: 64px; }
  .hero-img { height: 300px; }
  .main-nav { gap: 18px; }
  .section-head h2 { font-size: 32px; }
  .listing-body { padding: 28px 20px; }
  .listing-img { min-height: 260px; }
  .gallery img { height: 240px; }
  .footer-rule { margin: 0 16px; }
}
