:root {
  --bg: #faf9f7;
  --bg-alt: #f0eeea;
  --ink: #1c1b19;
  --ink-muted: #5c5954;
  --line: #e2ded6;
  --gold: #a68b5b;
  --gold-hover: #8f7549;
  --hero-overlay: rgba(18, 16, 14, 0.45);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", system-ui, sans-serif;
  --space: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1120px;
  --nav-h: 56px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
}

h1,
h2,
h3,
.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

a {
  color: var(--gold-hover);
}

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

/* —— Top bar —— */
.site-top {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-top__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-top__link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-top__link:hover {
  color: #fff;
}

.site-top__cta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.site-top__cta:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__text {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
}

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

.nav__pill {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.45rem 1rem;
}

.nav__pill:hover {
  background: var(--ink);
  color: #fff;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: clamp(3rem, 10vw, 6rem) var(--space);
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(58, 82, 98, 0.35) 0%, transparent 45%),
    linear-gradient(315deg, rgba(166, 139, 91, 0.25) 0%, transparent 40%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(200, 190, 175, 0.5), transparent),
    linear-gradient(180deg, #8a9ba8 0%, #c4b8a8 40%, #d8cfc0 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--hero-overlay) 0%, transparent 55%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 500;
  color: #fff;
}

.hero__address {
  margin: 0.5rem 0 1.5rem;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

.hero__price-btn {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hero__price-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.hero__price-value {
  letter-spacing: 0.06em;
}

/* —— Stat bar —— */
.stat-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.stat-bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--space);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
}

.stat__label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* —— Sections —— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--space);
}

.section--narrow {
  max-width: 42rem;
}

.section--alt {
  background: var(--bg-alt);
  max-width: none;
  padding-left: var(--space);
  padding-right: var(--space);
}

.section--alt .section__title,
.section--alt .feature-list {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.section__head {
  margin-bottom: 2rem;
}

.section__subtitle {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.lede {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ink-muted);
}

/* —— Documents —— */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.doc-card__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-list li + li {
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.doc-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9375rem;
}

.doc-link:hover {
  color: var(--gold-hover);
}

.doc-link__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

/* —— Gallery placeholders —— */
.gallery-feature__frame {
  border-radius: 2px;
  overflow: hidden;
}

.gallery-feature__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.gallery-btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-muted);
  cursor: not-allowed;
}

.gallery-meta {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.gallery-meta em {
  font-style: normal;
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gallery-grid__cell {
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  overflow: hidden;
}

.ph {
  position: relative;
  background:
    linear-gradient(135deg, #dfe5e8 0%, #e8e4de 50%, #dcd6cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph--lg {
  min-height: min(52vh, 520px);
  aspect-ratio: auto;
}

.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255, 255, 255, 0.12) 12px,
    rgba(255, 255, 255, 0.12) 13px
  );
  pointer-events: none;
}

.ph__label {
  position: relative;
  z-index: 1;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28, 27, 25, 0.35);
}

/* —— Features —— */
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
}

@media (min-width: 640px) {
  .feature-list {
    columns: 2;
    column-gap: 2.5rem;
  }
}

.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  break-inside: avoid;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
}

/* —— Media tabs —— */
.media-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.media-tab {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--ink-muted);
  cursor: pointer;
}

.media-tab:hover {
  color: var(--ink);
}

.media-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.media-panel[hidden] {
  display: none !important;
}

.media-panel.is-active {
  display: block;
}

.media-placeholder {
  background: #fff;
  border: 1px dashed var(--line);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ink-muted);
}

.plan-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-link {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.plan-link span {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

/* —— Map —— */
.section--map .map__address {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.map__note {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.map__embed {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  aspect-ratio: 16 / 9;
  max-height: 420px;
}

.map__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* —— Agents —— */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.agent-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.75rem;
  text-align: center;
}

.agent-card__avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-alt), var(--line));
}

.agent-card__name {
  margin: 0;
  font-size: 1.35rem;
}

.agent-card__role {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.agent-card__co {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
}

.agent-card__tel {
  display: inline-block;
  margin-top: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.agent-card__tel:hover {
  color: var(--gold-hover);
}

.agent-card__license {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* —— Contact —— */
.section--contact {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
}

.contact-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-intro__text {
  margin: 0;
  color: var(--ink-muted);
}

.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field__label abbr {
  text-decoration: none;
  color: var(--gold);
}

.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.inquiry-form .btn {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
}

.btn {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border: none;
  cursor: pointer;
}

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

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

.btn--dark {
  background: var(--ink);
  color: #fff;
  width: 100%;
}

.btn--dark:hover {
  background: #333;
}

/* —— Footer —— */
.footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem var(--space) 6rem;
  text-align: center;
}

.footer__legal {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* —— Sticky CTA —— */
.sticky-tour {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem var(--space);
  background: linear-gradient(to top, rgba(250, 249, 247, 0.98), transparent);
  z-index: 40;
  pointer-events: none;
}

.sticky-tour .btn {
  pointer-events: auto;
  max-width: 320px;
  margin: 0 auto;
  display: block;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* —— Responsive —— */
@media (max-width: 640px) {
  .stat-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: 1;
  }
}
