:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-alt: #f2ede4;
  --ink: #142634;
  --ink-muted: #4f5e68;
  --border: #e3dcd0;
  --accent: #b86b3b;
  --accent-hover: #9d572c;
  --sage: #356361;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 38, 52, 0.06);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.mono {
  font-family: var(--font-mono);
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

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

.site-nav .nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 600;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--ink-muted);
  margin: 0 0 28px;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-outline {
  width: 100%;
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin: 0;
}

.hero-stats dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.hero-stats dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.building-frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.building-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.building-frame figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
}

.building-frame figcaption .mono {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 72px 0;
}

.residences-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-sub {
  margin: 10px 0 0;
  color: var(--ink-muted);
  max-width: 60ch;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
}

.filter-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.unit-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.unit-card.hidden {
  display: none;
}

.unit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.unit-code {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.unit-tag {
  font-size: 0.8rem;
  color: var(--sage);
  font-weight: 600;
}

.unit-card h3 {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.unit-desc {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.unit-specs {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border-top: 1px solid var(--border);
}

.unit-specs li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.unit-specs span {
  color: var(--ink-muted);
}

/* Community */
.community-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.community-gallery {
  display: grid;
  gap: 14px;
}

.community-gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.community-gallery figcaption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.community-details > p {
  color: var(--ink-muted);
  margin: 14px 0 26px;
}

.amenity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.amenity-item {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.amenity-item h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.amenity-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* Contacts */
.contacts-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contacts-header {
  margin-bottom: 32px;
}

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

.contact-phone {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-phone a {
  color: var(--ink);
  text-decoration: none;
}

.contact-phone a:hover {
  color: var(--accent);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-initials {
  display: none;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.contact-avatar.fallback .avatar-initials {
  display: block;
}

.contact-info h3 {
  font-size: 1.55rem;
  margin-bottom: 4px;
}

.contact-role {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-note {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.text-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent);
}

/* Inquire */
.inquire-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.inquire-copy > p {
  color: var(--ink-muted);
  margin: 14px 0 24px;
}

.address-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
}

.address-box .mono {
  font-size: 0.72rem;
  color: var(--sage);
  letter-spacing: 0.08em;
}

.inquiry-form {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--ink);
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.4em;
}

.form-status.success {
  color: var(--sage);
}

.form-status.error {
  color: #a6342b;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .hero-grid,
  .community-layout,
  .contacts-grid,
  .inquire-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .amenity-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }
}
