/* =====================================================================
   Alethium Star Homes — main stylesheet
   Mobile-first, fluid typography, themable via CSS custom properties.
   All colors / fonts / sizing come from _data/themes/<active>.json
   (resolved into :root vars in _includes/layouts/base.njk).

   Sections
   ──────────────────────────────────────────────────────────────────────
   01. Reset + base
   02. Typography (fluid)
   03. Layout helpers
   04. Skip link
   05. Header / sticky nav
   06. Hero
   07. Buttons
   08. Cards + grids
   09. Status badges
   10. Page prose
   11. Tables
   12. Property + floorplan detail
   13. Galleries
   14. Contact form
   15. CTA band
   16. Footer
   17. Reveal animations + reduced motion
   ===================================================================== */


/* ── 01. Reset + base ─────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

::selection { background: var(--color-primary); color: #fff; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ── 02. Typography (fluid) ───────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 1.5em 0 0.6em;
  color: var(--color-text);
  font-weight: 600;
}

h1 { font-size: clamp(2rem,   3.5vw + 1.2rem, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.2vw + 0.9rem, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1.2vw + 0.85rem, 1.5rem); }
h4 { font-size: clamp(1.05rem, 0.6vw + 0.85rem, 1.2rem); }

p, ul, ol { margin: 0 0 1.1em; }

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
a:hover, a:focus { color: var(--color-primary-hover); }


/* ── 03. Layout helpers ───────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.main-content {
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--surface { background: var(--color-surface); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}


/* ── 04. Skip link ────────────────────────────────────────────────── */

a.skip { position: absolute; left: -9999px; top: 0; z-index: 1000; }
a.skip:focus {
  left: 1rem; top: 1rem;
  background: var(--color-accent);
  color: #000;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}


/* ── 05. Header / sticky nav ──────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-header-bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  color: var(--color-header-text);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.site-header__brand {
  color: var(--color-header-text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-header__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.site-header__tagline {
  font-size: 0.76rem;
  opacity: 0.78;
  max-width: 36ch;
  display: none;
  letter-spacing: 0.02em;
}
@media (min-width: 720px) {
  .site-header__name { font-size: 1.45rem; }
  .site-header__tagline { display: block; }
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.4rem;
  align-items: center;
}
.site-nav__item { position: relative; }
.site-nav a {
  color: var(--color-header-text);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-nav a:hover, .site-nav a:focus {
  background: rgba(255,255,255,0.08);
  color: var(--color-header-text);
}
.site-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.site-nav__submenu {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: var(--color-header-bg);
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 220px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 5;
}
.site-nav__submenu a { padding: 0.55rem 0.85rem; display: block; }
.site-nav__item--has-children:hover .site-nav__submenu,
.site-nav__item--has-children:focus-within .site-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header__cta {
  color: var(--color-header-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.site-header__cta:hover {
  background: var(--color-accent);
  color: #2b2420;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-header-text);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; order: 3; }
  .site-header__cta { display: none; }
  .site-nav { flex-basis: 100%; display: none; order: 4; }
  .site-nav.is-open { display: block; animation: slideDown 0.2s ease-out; }
  .site-nav__list { flex-direction: column; gap: 0.25rem; align-items: stretch; }
  .site-nav a { padding: 0.8rem 0.9rem; }
  .site-nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding-left: 1rem;
    background: transparent;
  }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── 06. Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background-color: var(--color-hero-from);
  background-image:
    linear-gradient(160deg, rgba(43,36,32,0.78) 0%, rgba(138,109,59,0.42) 60%, rgba(43,36,32,0.85) 100%),
    url('/assets/img/hero.jpg');
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 45%, rgba(43,36,32,0.5) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) 1.25rem clamp(3rem, 8vw, 6rem);
  display: grid;
  gap: 1.25rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  width: fit-content;
  backdrop-filter: blur(8px);
}
.hero__badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw + 1rem, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: #fff;
  max-width: 20ch;
  font-weight: 600;
}
.hero__title em { color: var(--color-accent); font-style: normal; }

.hero__lede {
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.3rem);
  line-height: 1.55;
  margin: 0;
  color: rgba(255,255,255,0.9);
  max-width: 54ch;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }


/* ── 07. Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  min-height: 44px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn--primary {
  background: var(--color-accent);
  color: #2b2420;
  box-shadow: 0 6px 18px rgba(198,154,76,0.32);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #2b2420;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(198,154,76,0.42);
}
.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn--ghost:hover { background: rgba(255,255,255,0.18); color: #fff; transform: translateY(-1px); }
/* Ghost button on a light background */
.btn--ghost.btn--dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}
.btn--ghost.btn--dark:hover { background: var(--color-surface); color: var(--color-primary-hover); }


/* ── 08. Cards + grids ────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(43, 36, 32, 0.12);
  border-color: var(--color-border-strong);
}
.card__media {
  display: block;
  margin: -1.4rem -1.4rem 0.4rem;
}
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card h3 { margin: 0; font-size: 1.25rem; }
.card h3 a { color: var(--color-text); text-decoration: none; }
.card h3 a:hover { color: var(--color-primary); }
.card__meta { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }
.card__body { color: var(--color-text); margin: 0.3rem 0; flex: 1; font-size: 0.98rem; }
.card__price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0.15rem 0 0;
}
.card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.card__cta::after { content: "→"; transition: transform 0.15s; }
.card__cta:hover { color: var(--color-primary-hover); }
.card__cta:hover::after { transform: translateX(3px); }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }


/* ── 09. Status badges ────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--available {
  background: rgba(63, 125, 84, 0.12);
  color: var(--color-success);
  border-color: rgba(63, 125, 84, 0.28);
}
.badge--reduced {
  background: rgba(181, 121, 31, 0.12);
  color: var(--color-warning);
  border-color: rgba(181, 121, 31, 0.28);
}
.badge--pending {
  background: rgba(138, 109, 59, 0.12);
  color: var(--color-primary);
  border-color: rgba(138, 109, 59, 0.28);
}
.badge--sold {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border-color: var(--color-border-strong);
}


/* ── 10. Page prose ───────────────────────────────────────────────── */

.page__title { margin-top: 0; }
.page__subtitle { color: var(--color-text-muted); font-size: 1.15rem; margin: -0.4rem 0 1.5rem; }
.prose { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin-bottom: 0.35em; }
.prose strong { color: var(--color-text); }


/* ── 11. Tables ───────────────────────────────────────────────────── */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  background: var(--color-surface-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
}
tr:last-child th, tr:last-child td { border-bottom: 0; }
th {
  background: var(--color-surface);
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }


/* ── 12. Property + floorplan detail ──────────────────────────────── */

.property, .floorplan { max-width: 900px; margin: 0 auto; }
.property__header, .floorplan__header { margin-bottom: 1.25rem; }
.property__name, .floorplan__name { margin: 0.2rem 0 0.4rem; }
.property__subtitle, .floorplan__subtitle {
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.property__headline { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.property__price {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  font-weight: 600;
  color: var(--color-primary);
}
.property__hero {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin: 1.25rem 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.floorplan__figure {
  display: block;
  margin: 1.25rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-elevated);
}
.floorplan__figure img { width: 100%; }

.property__specs {
  list-style: none;
  margin: 1.5rem 0;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
@media (min-width: 620px) { .property__specs { grid-template-columns: repeat(4, 1fr); } }
.property__specs li { display: flex; flex-direction: column; gap: 0.15rem; }
.property__spec-value { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; color: var(--color-text); }
.property__spec-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.5rem;
}
@media (min-width: 620px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li { position: relative; padding-left: 1.6rem; }
.feature-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.85rem;
  top: 0.15rem;
}

.property__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}
@media (min-width: 520px) { .property__facts { grid-template-columns: max-content 1fr; } }
.property__facts dt { font-weight: 600; color: var(--color-text-muted); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.property__facts dd { margin: 0; color: var(--color-text); }

.property__features { margin-top: 2rem; }
.property__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }


/* ── 13. Galleries ────────────────────────────────────────────────── */

/* CSS grid (NOT multi-column): reliable on iOS Safari, which drops
   alternate lazy-loaded images inside `columns` + `break-inside: avoid`.
   Uniform tiles (aspect-ratio + object-fit); clicking opens the full photo. */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
/* Definite box on the IMG itself (not the parent). iOS Safari skips loading
   lazy images that have no reserved size — giving every image its own
   aspect-ratio box fixes the "every other image is blank" bug. */
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-surface);
  transition: transform 0.3s ease;
}
.gallery a:hover img { transform: scale(1.04); }

/* Properties map (self-hosted Leaflet) */
.properties-map {
  height: 440px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin: 1.5rem 0 2.5rem;
  position: relative;
  z-index: 0;
  background: var(--color-surface);
}
.leaflet-popup-content { font-family: var(--font-body); font-size: 0.92rem; line-height: 1.5; }
.leaflet-popup-content strong { font-family: var(--font-heading); font-weight: 600; }
.leaflet-popup-content a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.leaflet-popup-content a:hover { text-decoration: underline; }


/* ── 14. Contact form ─────────────────────────────────────────────── */

form.contact {
  display: grid;
  gap: 1.1rem;
  max-width: 640px;
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
form.contact label { display: block; font-weight: 600; color: var(--color-text); font-size: 0.92rem; }
form.contact input, form.contact textarea, form.contact select {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  min-height: 44px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
  outline: 0;
}
form.contact button {
  justify-self: start;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s, transform 0.15s;
}
form.contact button:hover:not(:disabled) { background: var(--color-primary-hover); transform: translateY(-1px); }
form.contact button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

/* Slide-to-verify — human-interaction bot deterrent. */
.slider-verify {
  position: relative;
  height: 52px;
  max-width: 640px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.slider-verify__fill {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0;
  background: color-mix(in srgb, var(--color-success) 22%, transparent);
}
.slider-verify__label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.92rem; font-weight: 600; color: var(--color-text-muted);
  pointer-events: none;
}
.slider-verify__handle {
  position: absolute; top: 4px; left: 4px;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; touch-action: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.slider-verify__handle:active { cursor: grabbing; }
.slider-verify.is-verified { border-color: var(--color-success); }
.slider-verify.is-verified .slider-verify__handle { background: var(--color-success); cursor: default; }
.slider-verify.is-verified .slider-verify__label { color: var(--color-success); }
/* Honeypot — visually hidden but not display:none (so bots still see it). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Form feedback banners (shown via ?sent= param — see main.js). */
.form-alert {
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.form-alert--error {
  background: rgba(179, 64, 47, 0.08);
  color: var(--color-danger);
  border-color: rgba(179, 64, 47, 0.3);
}
.form-alert--warn {
  background: rgba(181, 121, 31, 0.1);
  color: var(--color-warning);
  border-color: rgba(181, 121, 31, 0.3);
}

.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.contact-details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; }
.contact-details h3 { margin-top: 0; }
.contact-details a { font-weight: 600; }


/* ── 15. CTA band ─────────────────────────────────────────────────── */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--color-hero-from), var(--color-primary));
  color: #fff;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band h2 { margin-bottom: 0.35rem; }


/* ── 16. Footer ───────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  font-size: 0.94rem;
  border-top: 4px solid var(--color-accent);
}
.site-footer__grid {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-footer-heading);
  margin: 0 0 0.85rem;
}
.site-footer__brand { line-height: 1.5; }
.site-footer__brand strong { color: var(--color-footer-heading); font-size: 1.1rem; font-family: var(--font-heading); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--color-footer-text); text-decoration: none; }
.site-footer a:hover { color: var(--color-footer-heading); text-decoration: underline; }
.social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-footer-text);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.social a:hover {
  background: var(--color-accent);
  color: #2b2420;
  transform: translateY(-2px);
  text-decoration: none;
}

.site-footer__realtor {
  max-width: var(--layout-max-width);
  margin: 2rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-footer-text);
}
.site-footer__realtor strong { color: var(--color-footer-heading); }
.site-footer__realtor a { color: var(--color-footer-text); text-decoration: none; }
.site-footer__realtor a:hover { color: var(--color-footer-heading); text-decoration: underline; }

.site-footer__legal {
  max-width: var(--layout-max-width);
  margin: 1.25rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--color-footer-text);
}


/* ── 17. Reveal animations + reduced motion ───────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(.2,.7,.2,1), transform 0.6s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible, .card, .btn, .gallery img,
  form.contact button, .site-nav__submenu, .card__cta::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
