/* NOMAD — Shared stylesheet */

:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #8a8680;
  --line: #e4dfd6;
  --line-soft: #efeae2;
  --cream: #f6f2ec;
  --paper: #fbf9f5;
  --white: #ffffff;
  --accent: #594a3c;
  --gold: #a08864;
  --serif: 'Cormorant Garamond', 'Didot', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity .3s ease, color .3s ease; }
a:hover { opacity: 0.7; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 48px; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 48px;
  background: rgba(251, 249, 245, 0);
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(251, 249, 245, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 48px;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 40px;
}
.header-nav-left, .header-nav-right {
  display: flex; gap: 36px;
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); transition: color .4s ease;
}
.header-nav-right { justify-content: flex-end; }
.site-header.scrolled .header-nav-left,
.site-header.scrolled .header-nav-right,
.site-header.scrolled .brand-wordmark,
.site-header.scrolled .brand-sub,
.site-header.solid .header-nav-left,
.site-header.solid .header-nav-right,
.site-header.solid .brand-wordmark,
.site-header.solid .brand-sub { color: var(--ink); }

.brand { text-align: center; color: var(--white); transition: color .4s ease; }
.brand-wordmark {
  font-family: var(--sans); font-weight: 500;
  font-size: 22px; letter-spacing: 0.42em; color: inherit;
}
.brand-sub {
  font-family: var(--serif); font-style: italic;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: inherit; opacity: 0.75; margin-top: 2px;
}
.header-contact { display: inline-flex; align-items: center; gap: 8px; }
.header-contact svg { width: 14px; height: 14px; }

/* ---------- SECTION PRIMITIVES ---------- */
.section-label {
  font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 500; margin-bottom: 24px;
}
.section-label::before {
  content: ''; display: inline-block;
  width: 32px; height: 1px; background: var(--gold);
  vertical-align: middle; margin-right: 14px; transform: translateY(-3px);
}
.section-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 4.8vw, 62px); line-height: 1.1;
  letter-spacing: -0.01em; color: var(--ink); max-width: 22ch;
}
.section-title em { font-style: italic; }
.section-intro {
  font-family: var(--serif); font-style: italic;
  font-size: 19px; font-weight: 300; line-height: 1.6;
  color: var(--ink-soft); max-width: 60ch; margin-top: 28px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase;
  padding: 16px 40px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--white);
  cursor: pointer; transition: all .3s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); opacity: 1; }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--white); opacity: 1; }
.btn.ghost {
  background: transparent; color: var(--ink); border-color: transparent;
  border-bottom: 1px solid var(--ink); padding: 10px 0;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--paper); color: var(--ink);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 64px; padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand-wordmark { color: var(--ink); font-size: 24px; }
.footer-brand .brand-sub { color: var(--muted); margin-top: 6px; }
.footer-tagline {
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: var(--ink-soft); margin-top: 24px; max-width: 34ch; line-height: 1.55;
}
.footer-col-title {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 24px; font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: var(--ink-soft); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; font-size: 12px; color: var(--muted); letter-spacing: 0.05em;
}
.footer-social { display: flex; gap: 20px; }
.footer-social a { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }

/* ---------- PROPERTY CARD (shared) ---------- */
.property-card {
  display: block; color: inherit; cursor: pointer;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.property-card:hover { opacity: 1; }
.property-image-wrap {
  position: relative; aspect-ratio: 4 / 5;
  overflow: hidden; background: var(--line-soft);
}
.property-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1);
}
.property-card:hover .property-image-wrap img { transform: scale(1.05); }
.property-badge {
  position: absolute; top: 18px; left: 18px;
  background: rgba(251, 249, 245, 0.92); backdrop-filter: blur(6px);
  padding: 8px 14px; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); font-weight: 500;
}
.property-meta { padding: 20px 2px 0; }
.property-region {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.property-name {
  font-family: var(--serif); font-size: 24px; font-weight: 400;
  line-height: 1.2; margin-bottom: 4px;
}
.property-code {
  font-family: var(--sans); font-weight: 500;
  letter-spacing: 0.18em; color: var(--gold); margin-right: 8px;
  font-size: 13px;
}
.property-location {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--muted); margin-top: 2px;
}
.property-bottom {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; margin-top: 14px;
  border-top: 1px solid var(--line);
}
.property-stats { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.property-stats strong { color: var(--ink); font-weight: 500; }
.property-price {
  font-family: var(--serif); font-size: 18px; color: var(--ink);
}
.property-price em {
  font-style: normal; font-size: 11px; color: var(--muted);
  letter-spacing: 0.1em; margin-left: 4px; font-family: var(--sans);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .site-header { padding: 16px 24px; }
  .site-header.scrolled, .site-header.solid { padding: 12px 24px; }
  .header-nav-left, .header-nav-right { display: none; }
  .header-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}
