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

:root {
  --ink: #1c1c1a;
  --ink-soft: #3d3d38;
  --cream: #f7f5f0;
  --stone: #e8e4dc;
  --warm: #c9a227;
  --warm-dark: #a8861e;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --nav-h: 168px;
  --nav-logo-h: 148px;
  --nav-logo-h-scrolled: 148px;
  --banner-h: 0px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--banner-h));
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.mockup-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Navigation — always pinned to the viewport */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 32px);
  padding: 0 clamp(24px, 5vw, 64px);
  background: rgba(28, 28, 26, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.nav-logo img {
  height: var(--nav-logo-h);
  width: auto;
  max-width: none;
  max-height: var(--nav-logo-h);
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: clamp(10px, 1.4vw, 28px);
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--warm); }

.nav-right {
  --nav-chip-h: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  min-height: var(--nav-chip-h);
  line-height: 1.15;
}

.nav-phone {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--warm);
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-phone:hover { color: var(--white); }

.nav-email {
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  color: var(--warm);
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-email:hover { color: var(--white); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-chip-h);
  padding: 0 16px;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--warm);
  color: var(--ink);
  border-color: var(--warm);
}

.nav-weather {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: var(--nav-chip-h);
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  box-sizing: border-box;
  transition: border-color 0.3s, background 0.3s;
}

.nav-weather[hidden] {
  display: none !important;
}

.nav-weather:hover {
  border-color: rgba(201, 162, 39, 0.55);
  background: rgba(201, 162, 39, 0.12);
}

.nav-weather-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--warm);
  flex-shrink: 0;
}

.nav-weather-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
}

.nav-weather-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.nav-weather-temp {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-weather-place {
  font-size: 0.52rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  line-height: 1;
}

.nav-toggle { display: none; }

/* Trust bar — slow continuous ticker (duplicated set for seamless loop) */
.trust-bar {
  overflow: hidden;
  padding: 14px 0;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: calc(var(--nav-h) + var(--banner-h));
}

.trust-bar-track {
  display: flex;
  width: max-content;
  animation: trust-bar-scroll 50s linear infinite;
}

.trust-bar:hover .trust-bar-track {
  animation-play-state: paused;
}

.trust-bar-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.trust-item {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.7);
  font-weight: 500;
  white-space: nowrap;
}

.trust-item strong {
  color: var(--warm);
  font-weight: 600;
  font-size: 0.78rem;
}

.trust-divider {
  flex-shrink: 0;
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
}

/* Content travels left → right; duplicated set keeps the loop seamless */
@keyframes trust-bar-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-bar-track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .trust-bar-set {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 0 clamp(24px, 5vw, 64px);
  }

  .trust-bar-set[aria-hidden='true'] {
    display: none;
  }
}

/* Typography */
.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Page headers — tighter top when trust-bar already provides dark band above */
.page-header {
  padding: clamp(24px, 3vw, 36px) clamp(24px, 5vw, 64px) clamp(32px, 4vw, 48px);
  background: var(--ink);
  color: var(--cream);
}

.page-header-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(32px, 5vw, 56px);
  align-items: end;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 16px;
}

.page-header p {
  color: rgba(247, 245, 240, 0.65);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.7;
}

.page-header .section-eyebrow { color: rgba(201, 162, 39, 0.85); }

.page-header-stats {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(20px, 3vw, 28px);
}

.page-header-stats-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 600;
  margin-bottom: 16px;
}

.page-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
}

.page-stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.page-stat-num-sm {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.15;
  word-break: break-word;
}

.page-stat-span {
  grid-column: 1 / -1;
}

.page-stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

a.page-stat-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.15s ease;
}

a.page-stat-link:hover {
  opacity: 0.85;
}

a.page-stat-link:hover .page-stat-label {
  color: rgba(255, 255, 255, 0.75);
}

.property-listing-office {
  margin-top: 10px;
  font-size: 0.88rem;
  color: rgba(247, 245, 240, 0.45) !important;
}

/* Market quick links */
.market-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--stone);
  border-bottom: 1px solid var(--stone);
}

.market-quick a {
  background: var(--white);
  padding: 20px clamp(16px, 2vw, 24px);
  text-align: center;
  transition: background 0.3s;
}

.market-quick a:hover { background: var(--cream); }

.market-quick-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}

.market-quick-name {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 32px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--ink);
  transition: all 0.3s var(--ease);
}

.btn-primary:hover {
  background: transparent;
  color: var(--ink);
}

/* Footer */
footer {
  background: var(--ink);
  color: rgba(247, 245, 240, 0.6);
  padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 64px) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  display: block;
  margin-bottom: 20px;
  line-height: 0;
}

.footer-logo img {
  height: 200px;
  width: auto;
  display: block;
}

.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: 0.88rem;
  font-weight: 300;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--cream); }

.footer-tagline {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 280px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
}

.footer-credit {
  margin-top: 20px;
  text-align: center;
  font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #4AF626;
}

.footer-credit a {
  color: #4AF626;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.3s;
}

.footer-credit a:hover {
  color: #7CFF5A;
}


@media (max-width: 1180px) {
  .nav-cta { display: none; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.66rem; letter-spacing: 0.08em; }
  .nav-email { font-size: 0.62rem; }
  .nav-weather-place { display: none; }
  .nav-right { gap: 12px; }
}

@media (max-width: 1024px) {
  .page-header-layout { grid-template-columns: 1fr; }
  .page-header-stats { max-width: 360px; }
  .market-quick { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-divider { display: none; }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 96px;
    --nav-logo-h: 76px;
    --nav-logo-h-scrolled: 76px;
  }

  html, body { overflow-x: hidden; max-width: 100%; }

  .nav {
    height: var(--nav-h);
    padding: 0 16px;
  }

  /* Mobile nav menu / logo sizes live in mobile.css + theme-fixes.css */
  .market-quick { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo img {
    height: 96px;
    max-width: 100%;
  }
  .trust-bar-set {
    gap: 16px;
    padding-right: 16px;
  }

  .page-header { padding: 20px 16px 24px; }

  .prop-image {
    overflow: hidden;
    max-height: 220px;
  }

  .prop-image img {
    width: 100%;
    height: 220px;
    max-height: 220px;
    min-height: 0;
    object-fit: cover;
  }

  .search-panel,
  .results-bar,
  .listings-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-h: 84px;
    --nav-logo-h: 68px;
    --nav-logo-h-scrolled: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
