/* =========================================================
   Natalie Evelyn Fox | Grand Central Realty — global stylesheet
   Loaded by every page. Sections:
   1. Tokens   2. Reset   3. Typography   4. Buttons
   5. Header / nav        6. Hero          7. Sections
   8. Cards & listings    9. Calculator   10. Contact
   11. Footer            12. Responsive   13. Motion
   14. Maintenance page (index.html only)
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --navy: #1b2a41;
  --navy-deep: #121c2b;
  --slate-blue: #2e4a6b;
  --slate-blue-light: #40628a;
  --charcoal: #2f3337;
  --charcoal-soft: #555c66;
  --ink: #2f3337;
  --ink-muted: #5f6873;
  --white: #ffffff;
  --surface: #f6f7f9;
  --surface-warm: #f1ede6;
  --border: #e2e5ea;
  --gold: #c8a961;
  --gold-deep: #a98a45;
  --gold-soft: rgba(200, 169, 97, 0.16);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(27, 42, 65, 0.06), 0 2px 8px rgba(27, 42, 65, 0.05);
  --shadow-md: 0 6px 18px rgba(27, 42, 65, 0.10);
  --shadow-lg: 0 20px 44px rgba(27, 42, 65, 0.18);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 76px;
  --container: 1180px;
}

/* ---------- 2. Reset ---------- */
*,
*::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: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--slate-blue);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- 3. Typography ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
}

p {
  margin: 0 0 var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--space-xs);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--slate-blue);
  white-space: nowrap;
}

.link-arrow span {
  transition: transform var(--transition);
}

.link-arrow:hover span {
  transform: translateX(4px);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-ghost:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
}

.brand:hover {
  color: var(--navy);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background-color: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--charcoal-soft);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-list a:hover {
  color: var(--navy);
}

.nav-list a:hover::after,
.nav-list a.is-active::after {
  transform: scaleX(1);
}

.nav-list a.is-active {
  color: var(--navy);
  font-weight: 600;
}

.nav-list .nav-cta {
  margin-left: 0.4rem;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-pill);
  background-color: var(--navy);
  color: var(--white);
}

.nav-list .nav-cta:hover {
  background-color: var(--slate-blue);
  color: var(--white);
}

.nav-list .nav-cta::after {
  display: none;
}

/* The pill keeps its own colors even on the page it points at. */
.nav-list a.nav-cta.is-active {
  background-color: var(--gold);
  color: var(--navy-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(460px, 72vh, 680px);
  padding-block: var(--space-2xl);
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  color: var(--white);
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(18, 28, 43, 0.92) 0%, rgba(27, 42, 65, 0.78) 45%, rgba(46, 74, 107, 0.45) 100%);
}

.hero-inner {
  max-width: 44rem;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.hero-title {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.hero-tagline {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ---------- 7. Sections ---------- */
.section {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.section-alt {
  background-color: var(--surface);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.section-head h2 {
  margin-bottom: 0;
}

.page-header {
  padding-block: clamp(2.75rem, 2rem + 3.5vw, 4.5rem);
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--slate-blue) 100%);
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
}

.page-header-sub {
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.cta-band {
  padding-block: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
  background-color: var(--navy);
  color: var(--white);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
  max-width: 38rem;
}

/* About */
.about-teaser,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

.profile-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background-color: var(--surface-warm);
}

.credential-list {
  margin-top: var(--space-md);
  display: grid;
  gap: 0.5rem;
}

.credential-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--charcoal-soft);
}

.credential-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-list li {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background-color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal-soft);
}

/* ---------- 8. Cards & listings ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

.grid-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--space-lg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--ink-muted);
  background-color: var(--white);
}

.grid-status code {
  font-size: 0.88em;
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  background-color: var(--surface-warm);
  color: var(--navy);
}

.listing-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 169, 97, 0.55);
}

.listing-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--surface-warm);
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1), filter var(--transition);
}

.listing-card:hover .listing-media img {
  transform: scale(1.06);
}

.badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge--active {
  background-color: rgba(255, 255, 255, 0.94);
  color: var(--navy);
}

.badge--sold {
  background-color: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 4px 12px rgba(18, 28, 43, 0.35);
}

.listing-card--sold .listing-media img {
  filter: saturate(0.72) brightness(0.94);
}

.listing-card--sold:hover .listing-media img {
  filter: saturate(0.9) brightness(1);
}

.listing-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-md);
}

.listing-price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.listing-title {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.listing-address {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-sm);
}

.listing-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.listing-specs li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background-color: var(--gold-soft);
  font-size: 0.82rem;
  color: var(--charcoal);
}

.listing-specs strong {
  color: var(--navy);
  font-weight: 700;
}

.listing-description {
  font-size: 0.93rem;
  color: var(--charcoal-soft);
  margin-bottom: var(--space-md);
}

.listing-footer {
  margin-top: auto;
}

/* Shared panel look for forms and result cards */
.card-panel {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

/* ---------- 9. Calculator ---------- */
.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  align-items: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-md);
}

.field:last-of-type {
  margin-bottom: 0;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--slate-blue);
  box-shadow: 0 0 0 3px rgba(46, 74, 107, 0.15);
}

.field input.has-error {
  border-color: #b4402f;
  box-shadow: 0 0 0 3px rgba(180, 64, 47, 0.12);
}

.field-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.calc-error {
  margin: var(--space-md) 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background-color: rgba(180, 64, 47, 0.08);
  color: #8f2f21;
  font-size: 0.9rem;
}

.calc-error[hidden] {
  display: none;
}

.calc-result {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--slate-blue) 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.calc-result-label {
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.calc-result-value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.calc-breakdown {
  margin: 0 0 var(--space-md);
  display: grid;
  gap: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: var(--space-sm);
}

.calc-breakdown > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.calc-breakdown dt {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.calc-breakdown dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.calc-disclaimer {
  font-size: 0.83rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--space-md);
}

/* ---------- 10. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  align-items: start;
}

.contact-form .btn {
  margin-top: var(--space-md);
  width: 100%;
}

.form-status {
  margin: var(--space-sm) 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate-blue);
  min-height: 1.4em;
}

.form-status.is-success {
  color: #1f6b4a;
}

.contact-details {
  padding: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.detail-list {
  margin: 0 0 var(--space-md);
  display: grid;
  gap: var(--space-sm);
}

.detail-list dt {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.detail-list dd {
  margin: 0.1rem 0 0;
  color: var(--charcoal);
}

.contact-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

/* ---------- 11. Footer ---------- */
.site-footer {
  background-color: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding-top: var(--space-xl);
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.site-footer h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.footer-blurb {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
}

.footer-list {
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

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

.footer-address {
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 960px) {
  .about-teaser,
  .about-grid,
  .calculator-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-media {
    max-width: 26rem;
  }

  .calc-result {
    order: -1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height var(--transition), visibility var(--transition);
  }

  .nav.is-open {
    max-height: 32rem;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
    padding-block: var(--space-sm);
  }

  .nav-list li + li {
    border-top: 1px solid var(--border);
  }

  .nav-list a {
    padding: 0.95rem 0.25rem;
    font-size: 1rem;
  }

  .nav-list a::after {
    left: 0.25rem;
    right: auto;
    width: 28px;
    bottom: 0.55rem;
  }

  .nav-list .nav-cta {
    margin: var(--space-sm) 0.25rem 0.25rem;
    text-align: center;
  }

  .nav-list li:has(.nav-cta) {
    border-top: none;
  }
}

@media (max-width: 640px) {
  .listing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 520px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-band-inner .btn {
    width: 100%;
  }

  .brand-sub {
    display: none;
  }

  .section-head {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* ---------- 13. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .listing-card:hover,
  .btn:hover {
    transform: none;
  }

  .listing-card:hover .listing-media img {
    transform: none;
  }
}

/* ---------- 14. Maintenance page (index.html only) ----------
   Additive block. Nothing above is overridden, so removing this
   section and the maintenance index.html restores the full site. */

.maintenance-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.maintenance-header {
  position: static;
  background-color: transparent;
  border-bottom: none;
}

.maintenance-header .header-inner {
  justify-content: center;
}

.maintenance-header .brand-name {
  font-size: 1.4rem;
}

.maintenance-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: clamp(2.5rem, 2rem + 4vw, 5rem);
  background-image: linear-gradient(
      160deg,
      rgba(18, 28, 43, 0.94) 0%,
      rgba(27, 42, 65, 0.88) 45%,
      rgba(46, 74, 107, 0.82) 100%
    ),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.maintenance-inner {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.maintenance-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.maintenance-title {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.maintenance-lede {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-lg);
}

.maintenance-rule {
  width: 72px;
  height: 2px;
  margin: 0 auto var(--space-lg);
  border: none;
  background-color: var(--gold);
}

.maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.maintenance-office {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.maintenance-office strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.maintenance-footer {
  padding-top: var(--space-md);
}

.maintenance-footer .footer-bottom {
  border-top: none;
  justify-content: center;
  text-align: center;
}

.maintenance-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  padding-bottom: var(--space-sm);
}

@media (max-width: 640px) {
  .maintenance-actions .btn {
    width: 100%;
  }

  /* The site header hides the brokerage line on phones; on the landing
     page it is the only place the brokerage is named, so keep it. */
  .maintenance-header .brand-sub {
    display: block;
  }
}
