/* ==========================================================================
   Casa Primavera Microsite — Bajacore brand
   Self-contained CSS. Subset of the Bajacore design system.
   ========================================================================== */

/* Fonts ------------------------------------------------------------------- */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('../fonts/fraunces-latin-ext-300_500.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('../fonts/fraunces-latin-300_500.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/geist-latin-300.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/geist-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/geist-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/geist-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 200; font-display: swap; src: url('../fonts/jost-latin-200.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jost-latin-400.woff2') format('woff2'); }

/* Tokens ------------------------------------------------------------------ */
:root {
  --midnight: #0A1828;
  --navy: #111827;
  --charcoal: #1E293B;
  --slate: #4B5563;
  --steel: #64748B;
  --silver: #94A3B8;
  --mist: #CBD5E1;
  --ivory: #F2EEE7;
  --snow: #F8FAFC;
  --white: #FFFFFF;
  --gold: #C5A465;
  --gold-light: #D5B788;
  --gold-dark: #A28548;
  --gold-deep: #6B5226;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-wordmark: 'Jost', sans-serif;

  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --container: 1280px;
  --container-narrow: 880px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(197, 164, 101, 0.15);

  --tracking-wider: 0.1em;
  --tracking-widest: 0.2em;
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.05rem);
  line-height: 1.6;
  color: var(--ivory);
  background: var(--midnight);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* Layout ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }

.section-overline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin-bottom: 1.5rem;
}

/* Brand wordmark — BAJA Jost 200 + CORE Jost 400 (canonical lockup) ------ */
.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-wordmark);
  letter-spacing: 0.04em;
  color: var(--ivory);
  line-height: 1;
}
.brand__baja { font-weight: 200; }
.brand__core { font-weight: 400; color: var(--gold); }
.site-header .brand { font-size: 1.4rem; }
.brand--footer { font-size: 1.1rem; opacity: 0.75; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  cursor: pointer;
}
.btn--primary { background: var(--gold); color: var(--midnight); }
.btn--primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--ivory); border-color: rgba(242, 238, 231, 0.4); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--ghost { background: transparent; color: var(--ivory); padding: 0.55rem 1rem; font-size: 0.78rem; }
.btn--ghost:hover { color: var(--gold); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.78rem; }
.btn--full { width: 100%; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 24, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 238, 231, 0.06);
  transition: background 0.3s var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem var(--gutter);
}
.site-header__actions { display: flex; align-items: center; gap: 1.25rem; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.lang-toggle__btn {
  background: none;
  border: none;
  padding: 0.3rem 0.2rem;
  color: var(--silver);
  letter-spacing: 0.12em;
  transition: color 0.2s var(--ease);
}
.lang-toggle__btn:hover { color: var(--ivory); }
.lang-toggle__btn.is-active { color: var(--gold); }
.lang-toggle__divider { color: var(--steel); }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__media--placeholder {
  background:
    radial-gradient(ellipse at top right, rgba(197, 164, 101, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(30, 41, 59, 0.6), transparent 70%),
    linear-gradient(135deg, var(--midnight) 0%, var(--navy) 50%, var(--charcoal) 100%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 24, 40, 0.35) 0%, rgba(10, 24, 40, 0.55) 55%, rgba(10, 24, 40, 0.85) 100%);
}
.hero__content {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 7rem var(--gutter) 6rem;
}
.hero__overline {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  color: var(--gold);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 1.5rem + 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 1rem;
}
.hero__tagline {
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.25rem);
  font-weight: 300;
  max-width: 38ch;
  color: rgba(242, 238, 231, 0.85);
  margin-bottom: 2rem;
}
.hero__price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem);
  color: var(--ivory);
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
}
.hero__currency {
  font-family: var(--font-body);
  font-size: 0.55em;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-left: 0.4rem;
  vertical-align: 0.25em;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.hero__mls {
  font-size: 0.78rem;
  letter-spacing: var(--tracking-wider);
  color: var(--silver);
  text-transform: uppercase;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1px solid rgba(242, 238, 231, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero__scroll span {
  width: 2px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollPulse 1.8s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Specs strip ------------------------------------------------------------- */
.specs {
  padding: 4rem 0;
  background: var(--navy);
  border-bottom: 1px solid rgba(242, 238, 231, 0.04);
}
.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem 2rem;
  text-align: center;
}
.spec { display: flex; flex-direction: column; gap: 0.35rem; }
.spec__value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1;
}
.spec__label {
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--silver);
}
.spec__sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--gold);
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.section--light .spec__sub { color: var(--gold-deep); }
.specs__note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--silver);
  border-top: 1px solid rgba(242, 238, 231, 0.08);
}
.section--light .specs__note {
  color: var(--slate);
  border-top-color: rgba(10, 24, 40, 0.1);
}

/* Story ------------------------------------------------------------------- */
.story {
  padding: 6rem 0;
  background: var(--midnight);
}
.story__body p {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.18rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(242, 238, 231, 0.9);
  margin-bottom: 1.25rem;
}
.story__body p:last-child { margin-bottom: 0; }

/* Gallery ----------------------------------------------------------------- */
.gallery {
  padding: 6rem 0;
  background: var(--charcoal);
}
.gallery__carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  padding: 0 var(--gutter) 0.5rem;
  margin: 2.5rem calc(-1 * var(--gutter)) 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.gallery__carousel::-webkit-scrollbar { display: none; }
.gallery__slide {
  flex: 0 0 min(85%, 1100px);
  scroll-snap-align: center;
  aspect-ratio: 3 / 2;
  border-radius: 2px;
  overflow: hidden;
  background: var(--navy);
  position: relative;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease);
}
.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.gallery__slide:hover img { transform: scale(1.03); }

.gallery__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.gallery__btn {
  background: transparent;
  border: 1px solid rgba(242, 238, 231, 0.25);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.gallery__btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(197, 164, 101, 0.06);
}
.gallery__btn:active { transform: scale(0.95); }
.gallery__btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  border-color: rgba(242, 238, 231, 0.15);
  color: var(--steel);
  background: transparent;
}
.gallery__counter {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--silver);
  min-width: 90px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.section--light .gallery__btn {
  border-color: rgba(10, 24, 40, 0.2);
  color: var(--midnight);
}
.section--light .gallery__btn:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
  background: rgba(197, 164, 101, 0.08);
}
.section--light .gallery__btn:disabled {
  border-color: rgba(10, 24, 40, 0.1);
  color: var(--mist);
}
.section--light .gallery__counter { color: var(--slate); }

@media (max-width: 768px) {
  .gallery__slide { flex: 0 0 92%; aspect-ratio: 4 / 3; }
  .gallery__btn { width: 42px; height: 42px; }
}
.gallery__item--placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(197, 164, 101, 0.08),
      rgba(197, 164, 101, 0.08) 12px,
      rgba(197, 164, 101, 0.04) 12px,
      rgba(197, 164, 101, 0.04) 24px
    ),
    var(--navy);
  position: relative;
}
.gallery__item--placeholder::after {
  content: 'IMG';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: var(--tracking-widest);
  color: rgba(197, 164, 101, 0.5);
}
.gallery__note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--silver);
  text-align: center;
}
.gallery__note code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--gold-light);
}

/* Features ---------------------------------------------------------------- */
.features {
  padding: 6rem 0;
  background: var(--midnight);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem 2rem;
  margin-top: 2rem;
}
.feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(242, 238, 231, 0.06);
  font-size: 0.98rem;
}
.feature__icon { color: var(--gold); font-size: 1rem; }
.feature__label { color: rgba(242, 238, 231, 0.88); }
.features__community {
  margin-top: 2.5rem;
  padding: 1.5rem 0 0;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(242, 238, 231, 0.72);
  border-top: 1px solid rgba(242, 238, 231, 0.1);
  max-width: 720px;
}
.section--light .features__community {
  color: var(--slate);
  border-top-color: rgba(10, 24, 40, 0.1);
}

/* Spaces ------------------------------------------------------------------ */
.spaces {
  padding: 6rem 0;
  background: var(--navy);
}
.spaces__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.space-card {
  padding: 2.5rem 2rem;
  background: rgba(10, 24, 40, 0.6);
  border: 1px solid rgba(197, 164, 101, 0.15);
  border-radius: 2px;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.space-card:hover { border-color: rgba(197, 164, 101, 0.4); transform: translateY(-3px); }
.space-card__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}
.space-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}
.space-card__body {
  color: rgba(242, 238, 231, 0.78);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.space-card__chip {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(197, 164, 101, 0.3);
  border-radius: 2px;
}

/* Location ---------------------------------------------------------------- */
.location {
  padding: 6rem 0;
  background: var(--midnight);
}
.location__intro {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(242, 238, 231, 0.85);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}
.location__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.location__map {
  min-height: 380px;
  background: var(--navy);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.location__map iframe {
  filter: grayscale(0.4) brightness(0.85) contrast(1.05);
  width: 100%;
  height: 100%;
  min-height: 380px;
}
.location__points {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.location__points li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(242, 238, 231, 0.06);
}
.location__points li:last-child { border-bottom: none; }
.location__points strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ivory);
}
.location__points span {
  font-size: 0.85rem;
  color: var(--silver);
  letter-spacing: 0.03em;
}

/* Contact ----------------------------------------------------------------- */
.contact {
  padding: 6rem 0;
  background: var(--charcoal);
}
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  margin-top: 2.5rem;
}
.contact__agent {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.contact__photo,
.contact__avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  flex: 0 0 104px;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  box-shadow: 0 6px 24px rgba(10, 24, 40, 0.18), 0 0 0 1px rgba(197, 164, 101, 0.2);
}
.contact__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-wordmark);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--midnight);
  letter-spacing: 0.04em;
}
.contact__person { flex: 1 1 auto; min-width: 0; }
.contact__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ivory);
  line-height: 1.2;
}
.contact__role {
  font-size: 0.82rem;
  color: var(--silver);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.contact__license {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
}
.contact__channels li {
  border-top: 1px solid rgba(242, 238, 231, 0.08);
}
.contact__channels li:last-child { border-bottom: 1px solid rgba(242, 238, 231, 0.08); }
.contact__channel {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0;
  transition: color 0.2s var(--ease);
}
a.contact__channel:hover { color: var(--gold); }
.contact__channel-label {
  font-size: 0.7rem;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--silver);
}
.contact__channel-value {
  font-size: 0.95rem;
  color: var(--ivory);
  word-break: break-word;
}
.contact__channel--static { cursor: default; }

/* MLS BCS member badge */
.contact__badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 238, 231, 0.08);
}
.mls-badge-img {
  width: 72px;
  height: auto;
  flex: 0 0 72px;
  display: block;
  /* Default (dark sections): invert to white so the blue logo reads on dark bg */
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.contact__badge-label {
  font-size: 0.72rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--silver);
  line-height: 1.4;
}
.section--light .contact__badge { border-top-color: rgba(10, 24, 40, 0.1); }
.section--light .mls-badge-img { filter: none; opacity: 1; }
.section--light .contact__badge-label { color: var(--slate); }

/* Footer legal line */
.site-footer__legal {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--steel);
  opacity: 0.8;
}

.contact__form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field__label {
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--silver);
}
.field input, .field textarea {
  background: rgba(10, 24, 40, 0.5);
  border: 1px solid rgba(242, 238, 231, 0.15);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(10, 24, 40, 0.8);
}
.field textarea { resize: vertical; min-height: 90px; font-family: var(--font-body); }
.contact__form-note {
  font-size: 0.78rem;
  color: var(--silver);
  margin-top: 0.25rem;
  text-align: center;
}
.contact__form-status {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  text-align: center;
  min-height: 1.2em;
}
.contact__form-status[data-state="ok"] { color: #84e1a8; }
.contact__form-status[data-state="err"] { color: #f5a3a3; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  padding: 3rem 0 2.5rem;
  background: var(--midnight);
  border-top: 1px solid rgba(242, 238, 231, 0.06);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer__meta {
  font-size: 0.8rem;
  color: var(--silver);
  text-align: right;
  line-height: 1.6;
}
.site-footer__meta a { color: var(--gold); }
.site-footer__meta p { margin: 0; }
.site-footer__meta p + p { margin-top: 0.4rem; }

/* Reveal on scroll -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Section tone modifiers — Belposto pattern (light Sandstone Ivory / dark Midnight)
   Add `section--light` on a <section> to switch the whole palette.
   Defaults assume dark; add modifier only where needed.
   ========================================================================== */
.section--light {
  background: var(--ivory);
  color: var(--charcoal);
}
.section--light .section-overline { color: var(--gold-deep); }
.section--light .section-title { color: var(--midnight); }

/* Specs on light */
.section--light .spec__value { color: var(--gold-deep); }
.section--light .spec__label { color: var(--slate); }

/* Story on light */
.section--light .story__body p { color: var(--slate); }

/* Features on light */
.section--light .feature { border-bottom-color: rgba(10, 24, 40, 0.1); }
.section--light .feature__icon { color: var(--gold-deep); }
.section--light .feature__label { color: var(--charcoal); }

/* Spaces cards on light */
.section--light .space-card {
  background: var(--white);
  border-color: rgba(197, 164, 101, 0.3);
  box-shadow: 0 4px 24px rgba(10, 24, 40, 0.06);
}
.section--light .space-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(10, 24, 40, 0.1);
}
.section--light .space-card__num { color: var(--gold); opacity: 1; }
.section--light .space-card__title { color: var(--midnight); }
.section--light .space-card__body { color: var(--slate); }
.section--light .space-card__chip { color: var(--gold-deep); border-color: rgba(107, 82, 38, 0.35); }

/* Location on light */
.section--light .location__intro { color: var(--slate); }
.section--light .location__points li { border-bottom-color: rgba(10, 24, 40, 0.1); }
.section--light .location__points strong { color: var(--midnight); }
.section--light .location__points span { color: var(--steel); }
.section--light .location__map { background: var(--snow); }
.section--light .location__map iframe { filter: grayscale(0.2) contrast(1.02); }

/* Gallery placeholder on light (kept legible on ivory) */
.section--light .gallery__item { background: var(--cloud); }
.section--light .gallery__item--placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(10, 24, 40, 0.05),
      rgba(10, 24, 40, 0.05) 12px,
      rgba(10, 24, 40, 0.02) 12px,
      rgba(10, 24, 40, 0.02) 24px
    ),
    var(--snow);
}
.section--light .gallery__item--placeholder::after { color: rgba(107, 82, 38, 0.55); }
.section--light .gallery__note { color: var(--slate); }
.section--light .gallery__note code { background: rgba(10, 24, 40, 0.06); color: var(--gold-deep); }

/* Contact on light */
.section--light .contact__avatar {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(107, 82, 38, 0.25);
}
.section--light .contact__name { color: var(--midnight); }
.section--light .contact__role { color: var(--slate); }
.section--light .contact__channels li { border-top-color: rgba(10, 24, 40, 0.12); }
.section--light .contact__channels li:last-child { border-bottom-color: rgba(10, 24, 40, 0.12); }
.section--light .contact__channel-label { color: var(--slate); }
.section--light .contact__channel-value { color: var(--midnight); }
.section--light a.contact__channel:hover { color: var(--gold-deep); }

.section--light .field__label { color: var(--slate); }
.section--light .field input,
.section--light .field textarea {
  background: var(--white);
  border-color: rgba(10, 24, 40, 0.18);
  color: var(--charcoal);
}
.section--light .field input::placeholder,
.section--light .field textarea::placeholder { color: var(--steel); }
.section--light .field input:focus,
.section--light .field textarea:focus {
  background: var(--white);
  border-color: var(--gold-dark);
}
.section--light .contact__form-note { color: var(--slate); }
.section--light .contact__form-status[data-state="ok"] { color: #1a7f3e; }
.section--light .contact__form-status[data-state="err"] { color: #b91c1c; }

/* Buttons on light */
.section--light .btn--outline {
  color: var(--midnight);
  border-color: rgba(10, 24, 40, 0.25);
}
.section--light .btn--outline:hover {
  color: var(--gold-deep);
  border-color: var(--gold-deep);
}

/* Section dividers — soft hairline between adjacent lights, none between light↔dark (organic) */
.section--light + .section--light { border-top: 1px solid rgba(10, 24, 40, 0.06); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .location__layout, .contact__layout { grid-template-columns: 1fr; }
  .hero__content { padding-top: 5rem; padding-bottom: 5rem; }
  .specs, .story, .gallery, .features, .spaces, .location, .contact { padding: 4rem 0; }
  .location__map, .location__map iframe { min-height: 320px; }
}

@media (max-width: 640px) {
  /* Header: collapse to brand + lang toggle only; CTA moves into hero */
  .site-header__inner { padding: 0.85rem var(--gutter); }
  .site-header__actions { gap: 0.6rem; }
  .site-header .brand { font-size: 1.15rem; }
  .site-header .btn--sm { display: none; }

  /* Lang toggle: ensure 44px touch targets */
  .lang-toggle__btn { min-width: 32px; min-height: 32px; padding: 0.5rem 0.35rem; }

  /* Hero: less vertical padding, stack CTAs */
  .hero { min-height: 92vh; min-height: 92svh; }
  .hero__content { padding: 4.5rem var(--gutter) 4rem; }
  .hero__cta-row { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero__cta-row .btn { width: 100%; }
  .hero__scroll { display: none; }
  .hero__tagline { max-width: 100%; }

  /* Specs: 4 cards → 2x2 grid (clean symmetry) */
  .specs { padding: 3rem 0; }
  .specs__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1rem;
  }
  .spec__value { font-size: clamp(1.6rem, 1.4rem + 1vw, 2rem); }
  .specs__note {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    padding-inline: 0.5rem;
    font-size: 0.8rem;
  }

  /* Story / Features / Spaces / Location / Contact: tighten padding */
  .story, .gallery, .features, .spaces, .location, .contact { padding: 3.5rem 0; }
  .story__body p { font-size: 1rem; }
  .features__grid { gap: 0; }
  .feature { padding: 0.85rem 0; font-size: 0.92rem; }

  /* Spaces cards: less internal padding */
  .space-card { padding: 1.75rem 1.5rem; }

  /* Gallery carousel: tighter gaps, smaller controls */
  .gallery__carousel { gap: 0.75rem; }
  .gallery__nav { gap: 1rem; margin-top: 1.5rem; }
  .gallery__counter { font-size: 0.75rem; min-width: 72px; letter-spacing: 0.15em; }

  /* Contact: tighten gap between agent card and form */
  .contact__layout { gap: 2rem; }
  .contact__header { gap: 1rem; }
  .contact__photo,
  .contact__avatar { width: 84px; height: 84px; flex-basis: 84px; font-size: 1.5rem; }
  .contact__name { font-size: 1.2rem; }
  .contact__badge { gap: 0.7rem; margin-top: 1.25rem; padding-top: 1rem; }
  .mls-badge-img { width: 60px; flex-basis: 60px; }
  .contact__badge-label { font-size: 0.68rem; }

  /* Footer: stack and left-align */
  .site-footer { padding: 2.5rem 0 2rem; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__meta { text-align: left; }

  /* Section overline + title smaller */
  .section-overline { font-size: 0.7rem; margin-bottom: 0.85rem; }
  .section-title { margin-bottom: 1.25rem; }
}

@media (max-width: 380px) {
  /* Very small phones (iPhone SE 1st gen, older Androids) */
  .specs__grid { gap: 1.25rem 0.5rem; }
  .spec__value { font-size: 1.5rem; }
  .spec__label { font-size: 0.68rem; }
  .spec__sub { font-size: 0.95rem; }
  .hero__title { font-size: clamp(2.25rem, 1.2rem + 5vw, 3rem); }
  .hero__price { font-size: 1.4rem; }
  .btn { padding: 0.75rem 1rem; font-size: 0.78rem; }
}

/* iOS safe-area: respect notch/home-indicator on iPhone */
@supports (padding: env(safe-area-inset-left)) {
  .site-header__inner {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  .container {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  .site-footer { padding-bottom: max(2.5rem, calc(2rem + env(safe-area-inset-bottom))); }
}
