/* === MisterSauga — Mississauga Real Estate Intelligence === */

:root {
  --navy-dark: #0b1d33;
  --navy: #142d4c;
  --navy-light: #1e3f5f;
  --gold: #c9a84c;
  --gold-hover: #b8943f;
  --gold-muted: #a8915a;
  --cream: #f5f0e8;
  --cream-dark: #e8e0d0;
  --white: #f8f9fa;
  --gray-text: #94a3b8;
  --gray-light: #e2e8f0;
  --success: #22c55e;
  --danger: #ef4444;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy-dark);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === SR Only === */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === Navigation === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem 2rem;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  padding: 0.7rem 2rem;
}

.nav.scrolled .nav-brand { color: var(--navy-dark); }
.nav.scrolled .nav-links a { color: rgba(11,29,51,0.5); }
.nav.scrolled .nav-links a:hover { color: var(--navy-dark); }
.nav.scrolled .nav-hamburger span { background: var(--navy-dark); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  text-decoration: none; color: var(--white);
  display: flex; align-items: baseline; gap: 0;
  text-transform: uppercase;
}

.nb-mister {
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 300;
  letter-spacing: 5px;
}

.nb-sauga {
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 1px;
  margin-left: 2px;
}

.nav.scrolled .nb-mister,
.nav.scrolled .nb-sauga { color: var(--navy-dark); }

.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  transition: color 0.3s;
}

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

.nav-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 0.5rem;
}

.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white); margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Hero === */
.hero {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: var(--navy-dark);
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(180deg, rgba(11,29,51,0) 60%, rgba(11,29,51,1) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 900px; }

.hero-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--white);
  animation: wordmark-enter 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wm-mister {
  font-family: var(--font-body);
  font-size: 4.5rem;
  font-weight: 300;
  letter-spacing: 14px;
  text-transform: uppercase;
}

.wm-sauga {
  font-family: var(--font-body);
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
}

.wm-towers {
  width: 28px;
  height: 48px;
  color: var(--gold);
  margin: 0 0.3rem;
  flex-shrink: 0;
  animation: towers-fade 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes wordmark-enter {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes towers-fade {
  0% { opacity: 0; transform: translateY(8px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 500;
  color: rgba(255,255,255,0.4); letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.hero-subtitle {
  font-size: 1.15rem; color: var(--gray-text);
  max-width: 500px; margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex; gap: 1.25rem;
  justify-content: center; flex-wrap: wrap;
}

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 400;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.65rem; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 2px;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px; height: 30px;
  background: rgba(255,255,255,0.1);
}

.btn {
  display: inline-block; padding: 1rem 2.5rem;
  border-radius: 2px; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  letter-spacing: 1px; text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
}

.btn-gold {
  background: var(--gold); color: var(--navy-dark);
}

.btn-gold:hover {
  background: var(--gold-hover);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--white); color: var(--white);
}

/* === Section Layout === */
section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1200px; margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 400;
  margin-bottom: 0.75rem; color: var(--navy-dark);
  letter-spacing: 0.5px;
}

.section-subtitle {
  font-size: 1rem; color: #64748b;
  margin-bottom: 3.5rem; max-width: 550px;
  line-height: 1.7;
}

/* Alternating section backgrounds */
.section-light {
  background: #f8f8f6;
}

.section-warm {
  background: var(--cream);
  color: var(--navy-dark);
}

/* === Market Pulse === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e5e7eb;
  margin-bottom: 3.5rem;
}

.stat-card {
  background: #f8f8f6;
  border: none;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background 0.3s;
}

.stat-card:hover {
  background: #f0f0ec;
}

.stat-label {
  font-size: 0.7rem; color: #64748b;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 400;
  color: var(--navy-dark);
}


.stat-change {
  font-size: 0.8rem; margin-top: 0.5rem;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

.chart-container {
  background: #f8f8f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2.5rem;
}

.chart-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 2rem;
}

.chart-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400;
  color: var(--navy-dark);
}

.chart-source {
  font-size: 0.7rem; color: #94a3b8;
  letter-spacing: 0.5px;
}

.data-updated {
  text-align: center; margin-top: 2rem;
  font-size: 0.75rem; color: #94a3b8;
  letter-spacing: 0.5px;
}

/* === Neighborhood Explorer (Map) === */
.map-section {
  padding-bottom: 4rem;
  padding-top: 6rem;
}

.map-container {
  position: relative;
  overflow: hidden;
  margin-left: -2rem;
  margin-right: -2rem;
}

@media (min-width: 769px) {
  .map-container {
    margin-left: 0;
    margin-right: 0;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  }
}

#neighborhood-map {
  height: 550px;
  width: 100%;
  background: #f0f0ee;
}

.map-legend {
  position: absolute; bottom: 20px; right: 20px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  padding: 0.6rem 1rem; z-index: 500;
  font-size: 0.7rem; color: #64748b;
  letter-spacing: 0.5px;
  border: 1px solid #e5e7eb;
}

.map-legend-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--navy-dark);
  margin-right: 6px; vertical-align: middle;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  background: #ffffff !important;
  color: var(--navy-dark) !important;
  border-radius: 4px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}

.leaflet-popup-tip { background: #ffffff !important; }

.leaflet-popup-content {
  margin: 1.25rem !important;
  font-family: var(--font-body) !important;
  line-height: 1.5 !important;
}

.popup-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 400;
  color: var(--navy-dark); margin-bottom: 0.75rem;
}

.popup-stat {
  display: flex; justify-content: space-between;
  padding: 0.3rem 0; font-size: 0.85rem;
  border-bottom: 1px solid #f0f0f0;
}

.popup-stat-label { color: #64748b; }
.popup-stat-value { font-weight: 600; color: var(--navy-dark); }

.popup-link {
  display: block; text-align: center;
  color: var(--navy); font-size: 0.8rem;
  margin-top: 0.75rem; text-decoration: none;
  font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase;
}

.popup-link:hover { text-decoration: underline; }

/* === Neighborhood Profiles === */
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.neighborhood-card {
  background: var(--white);
  border: none;
  padding: 1.75rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.neighborhood-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.neighborhood-card-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 0.75rem;
}

.neighborhood-name {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400;
  color: var(--navy-dark);
}

.neighborhood-price {
  font-size: 0.85rem; color: #64748b;
  font-weight: 600; white-space: nowrap;
}

.neighborhood-desc {
  font-size: 0.85rem; color: rgba(11,29,51,0.6);
  margin-bottom: 1rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.neighborhood-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}

.neighborhood-tag {
  font-size: 0.65rem; padding: 0.25rem 0.6rem;
  background: var(--cream);
  color: var(--navy-light);
  border-radius: 2px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Expanded neighborhood detail */
.neighborhood-detail {
  display: none;
  background: var(--navy-dark);
  border: none;
  padding: 2.5rem;
  margin-top: 0;
  grid-column: 1 / -1;
  color: var(--white);
}

.neighborhood-detail.active { display: block; }

.detail-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 2rem;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 400;
}

.detail-close {
  background: none; border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}

.detail-close:hover { border-color: var(--white); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-bottom: 2rem;
  background: rgba(255,255,255,0.06);
}

.detail-stat {
  background: var(--navy-dark);
  padding: 1.25rem; text-align: center;
}

.detail-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 400; color: var(--white);
}

.detail-stat-label {
  font-size: 0.7rem; color: var(--gray-text);
  text-transform: uppercase; letter-spacing: 1px;
}

.detail-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.detail-section h4 {
  font-family: var(--font-body);
  font-size: 0.7rem; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.detail-section ul {
  list-style: none; padding: 0;
}

.detail-section li {
  font-size: 0.85rem; color: var(--gray-text);
  padding: 0.3rem 0;
}

.detail-section li::before {
  content: '\2014'; color: rgba(255,255,255,0.2);
  margin-right: 0.5rem;
}

.detail-description {
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem; color: var(--gray-text);
  line-height: 1.8;
}

/* === Development Pipeline === */
#development {
  background: var(--navy-dark);
  color: var(--white);
}

#development .section-title { color: var(--white); }
#development .section-subtitle { color: var(--gray-text); }

.pipeline-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 3rem;
}

.pipeline-stat {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  padding: 1.5rem;
  text-align: center;
}

.pipeline-stat:last-child {
  border-right: none;
}

.pipeline-stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 400; color: var(--white);
}

.pipeline-stat-label {
  font-size: 0.7rem; color: var(--gray-text);
  text-transform: uppercase; letter-spacing: 2px;
}

.permits-table-wrap {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0;
  overflow: hidden;
}

.permits-header {
  display: flex; justify-content: space-between;
  align-items: center; padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.permits-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 400;
}

.permits-filter {
  display: flex; gap: 0.5rem;
}

.filter-btn {
  padding: 0.35rem 0.9rem; border-radius: 2px;
  font-size: 0.7rem; border: 1px solid rgba(255,255,255,0.12);
  background: transparent; color: var(--gray-text);
  cursor: pointer; transition: all 0.2s;
  font-family: var(--font-body);
  letter-spacing: 0.5px; text-transform: uppercase;
}

.filter-btn.active, .filter-btn:hover {
  border-color: var(--white); color: var(--white);
  background: rgba(255,255,255,0.08);
}

.permits-table {
  width: 100%;
  border-collapse: collapse;
}

.permits-table th {
  text-align: left; padding: 0.75rem 1.5rem;
  font-size: 0.7rem; color: var(--gray-text);
  text-transform: uppercase; letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 500;
}

.permits-table td {
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.permits-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.permit-type-badge {
  display: inline-block; padding: 0.2rem 0.5rem;
  border-radius: 2px; font-size: 0.65rem;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px;
}

.permit-type-badge.residential {
  background: rgba(34,197,94,0.12); color: var(--success);
}

.permit-type-badge.commercial {
  background: rgba(59,130,246,0.12); color: #3b82f6;
}

.permit-type-badge.industrial {
  background: rgba(168,85,247,0.12); color: #a855f7;
}

.permits-empty {
  padding: 3rem; text-align: center;
  color: var(--gray-text); font-size: 0.9rem;
}

/* === Home Valuation Form === */
.valuation-section {
  background: var(--navy-dark);
  position: relative;
  padding: 7rem 2rem;
}

.valuation-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.valuation-section::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.valuation-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  position: relative;
}

.valuation-pitch h2 {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 400;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  color: var(--white);
}

.valuation-pitch h2 span { color: var(--gold); }

.valuation-pitch p {
  color: var(--gray-text); font-size: 1rem;
  line-height: 1.8; margin-bottom: 2rem;
}

.valuation-badges {
  display: flex; flex-direction: column; gap: 1rem;
}

.valuation-badge {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem; color: var(--gray-text);
}

.valuation-badge-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--white);
  flex-shrink: 0;
}

.valuation-form {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2.5rem;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400;
  margin-bottom: 2rem; text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.form-input::placeholder { color: rgba(255,255,255,0.3); }

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.form-select option { background: var(--navy); }

.form-checkboxes {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.form-checkbox {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--gray-text);
  cursor: pointer;
}

.form-checkbox input {
  accent-color: var(--navy-dark);
}

.form-label-small {
  font-size: 0.75rem; color: var(--gray-text);
  margin-bottom: 0.4rem; display: block;
  letter-spacing: 0.5px; text-transform: uppercase;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--gold);
  color: var(--navy-dark);
  border: none; border-radius: 2px;
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  font-family: var(--font-body);
  margin-top: 0.75rem;
  letter-spacing: 1px; text-transform: uppercase;
}

.form-submit:hover {
  background: var(--gold-hover);
}

.form-status {
  text-align: center; padding: 1.5rem;
  font-size: 1rem;
}

.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

/* === About === */
.about-section {
  background: #f8f8f6;
  border-top: 1px solid #e5e7eb;
}

.about-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-content .section-title {
  margin-bottom: 1.5rem;
}

.about-content p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.about-sources {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.about-sources h3 {
  font-size: 0.7rem; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 1rem;
}

.about-sources ul {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center;
}

.about-sources li {
  font-size: 0.75rem; color: #64748b;
  background: #ffffff;
  padding: 0.35rem 0.9rem; border-radius: 2px;
  border: 1px solid #e5e7eb;
}

/* === Footer === */
footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 4rem 2rem 3rem;
}

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.footer-brand {
  display: flex; align-items: baseline;
  gap: 0;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.fb-mister {
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 300;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.7);
}

.fb-sauga {
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 1px;
  margin-left: 2px;
  color: var(--white);
}

.footer-text {
  font-size: 0.85rem; color: rgba(255,255,255,0.4);
  line-height: 1.7; margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.25rem;
}

.footer-links a {
  color: rgba(255,255,255,0.4); text-decoration: none;
  font-size: 0.8rem; transition: color 0.3s;
  letter-spacing: 0.5px;
}

.footer-links a:hover { color: var(--white); }

.footer-contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 400;
  margin-bottom: 1.25rem;
}

.footer-form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem; margin-bottom: 0.75rem;
}

.footer-form textarea.form-input {
  resize: vertical; min-height: 80px;
  margin-bottom: 0.75rem;
}

.footer-submit {
  padding: 0.7rem 2rem;
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 2px;
  font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
  font-family: var(--font-body);
  letter-spacing: 1px; text-transform: uppercase;
}

.footer-submit:hover {
  border-color: var(--white); color: var(--white);
}

.footer-bottom {
  max-width: 1200px; margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex; justify-content: space-between;
  font-size: 0.7rem; color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

.footer-disclaimer {
  max-width: 700px; line-height: 1.6;
}

.footer-meta {
  display: flex; align-items: center; gap: 1.5rem;
  flex-shrink: 0;
}

.footer-meta a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-meta a:hover {
  color: rgba(255,255,255,0.7);
}

/* === Focus & Accessibility === */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.nav a:focus-visible, .hero a:focus-visible, #development a:focus-visible,
footer a:focus-visible, footer button:focus-visible,
.valuation-section a:focus-visible, .valuation-section button:focus-visible {
  outline-color: var(--white);
}

.nav-links a {
  padding: 0.5rem 0;
}

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

/* === Scroll Animations === */
.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-in.pending {
  opacity: 0;
  transform: translateY(20px);
  transition: none;
}

.animate-in.pending.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .neighborhoods-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-sections { grid-template-columns: 1fr 1fr; }
  .pipeline-stats { grid-template-columns: repeat(3, 1fr); }
  .valuation-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11,29,51,0.98);
    backdrop-filter: blur(8px);
    padding: 1.5rem 2rem 2rem;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.active a {
    padding: 0.75rem 0;
    font-size: 0.9rem;
  }
  .nav-hamburger { display: block; }

  .hero-wordmark { flex-wrap: wrap; }
  .wm-mister { font-size: 2.5rem; letter-spacing: 8px; }
  .wm-sauga { font-size: 2.8rem; letter-spacing: 1px; }
  .wm-towers { width: 20px; height: 34px; }
  .hero-tagline { font-size: 0.7rem; letter-spacing: 4px; }
  .hero-subtitle { font-size: 1rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }

  .section-title { font-size: 2.2rem; }
  section { padding: 4rem 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .neighborhoods-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-sections { grid-template-columns: 1fr; }
  .pipeline-stats { grid-template-columns: 1fr; }
  .pipeline-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 1.25rem 0; }
  .pipeline-stat:last-child { border-bottom: none; }

  #neighborhood-map { height: 350px; }

  .form-row { grid-template-columns: 1fr; }
  .form-checkboxes { grid-template-columns: 1fr; }
  .valuation-section { padding: 4rem 1.5rem; }
  .valuation-form { padding: 1.75rem; }
  .valuation-pitch h2 { font-size: 2.2rem; }

  .permits-table-wrap { overflow-x: auto; }

  .footer-form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; }
  .footer-meta { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero { padding: 6rem 1.5rem 4rem; }
  .wm-mister { font-size: 1.5rem; letter-spacing: 4px; }
  .wm-sauga { font-size: 1.7rem; letter-spacing: 0; }
  .wm-towers { width: 12px; height: 20px; margin: 0 0.2rem; }
  .hero-stats { flex-direction: column; gap: 1rem; align-items: center; }
  .hero-stat-divider { width: 30px; height: 1px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 2rem; }
  section { padding: 3.5rem 1.5rem; }
  #neighborhood-map { height: 280px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-title { font-size: 1.4rem; }
  .neighborhood-card { padding: 1.25rem; }
  .valuation-pitch h2 { font-size: 1.8rem; }
}
