/* === CSS Variables === */
:root {
  --dark-primary: #0d2137;
  --primary: #1a3a5c;
  --light-primary: #2c5f8a;
  --accent: #e8b84b;
  --accent-hover: #d4a030;
  --light-bg: #f8f9fa;
  --dark-text: #1a1a2e;
  --gray-text: #555;
  --light-gray: #e0e0e0;
  --footer-bg: #0a1628;
  --existing: #2d8a4e;
  --construction: #e67e22;
  --proposed: #c0392b;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  font-size: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

/* === Sections === */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--light-bg);
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--dark-text);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-text);
  max-width: 700px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* === Hero === */
.hero {
  background: linear-gradient(160deg, var(--dark-primary) 0%, var(--primary) 50%, var(--light-primary) 100%);
  padding: 120px 0 100px;
  text-align: center;
  color: #fff;
}

.badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
  color: #fff;
}

.hero-pitch {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 40px;
  opacity: 0.9;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 184, 75, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-full {
  width: 100%;
}

/* === Demo Badge === */
.demo-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(232, 184, 75, 0.15);
  color: var(--accent-hover);
  border: 1px solid rgba(232, 184, 75, 0.3);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
  display: block;
}

/* === Value Cards (Section 2) === */
.value-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* === Pitch Grid (Section 3) === */
.pitch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pitch-block {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--light-gray);
}

.pitch-block h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--dark-text);
}

.pitch-block p {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* === Build List (Section 4) === */
.build-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.build-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  background: var(--light-bg);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.build-item:hover {
  transform: translateX(4px);
}

.build-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 60px;
  line-height: 1;
}

.build-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.build-content p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* === Counter Grid (Section 5) === */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.counter-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--light-gray);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.counter-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--gray-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === Comparison Widget (Section 5) === */
.comparison-title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--dark-text);
}

.comparison-widget {
  max-width: 700px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comparison-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comparison-bar {
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  min-width: 80px;
  transition: width 0.8s ease;
}

.comparison-bar-sauga {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--dark-primary);
}

.comparison-bar-toronto {
  background: linear-gradient(90deg, #4a5568 0%, #2d3748 100%);
}

.comparison-legend {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--gray-text);
}

.legend-sauga::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.legend-toronto::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #4a5568;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

/* === Filter Buttons === */
.filter-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  background: #fff;
  color: var(--gray-text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* === Map (Section 6) === */
#map {
  height: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.map-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray-text);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.legend-existing { background: var(--existing); }
.legend-construction { background: var(--construction); }
.legend-proposed { background: var(--proposed); }

.legend-line {
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  position: relative;
}

/* === Condo Cards (Section 7) === */
.condos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.condo-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.condo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.condo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.condo-area {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-primary);
}

.status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-existing {
  background: rgba(45, 138, 78, 0.1);
  color: var(--existing);
}

.status-construction {
  background: rgba(230, 126, 34, 0.1);
  color: var(--construction);
}

.status-proposed {
  background: rgba(192, 57, 43, 0.1);
  color: var(--proposed);
}

.condo-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--dark-text);
}

.condo-address {
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-bottom: 4px;
}

.condo-developer {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 12px;
}

.condo-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.condo-completion {
  font-size: 0.8rem;
  color: var(--accent-hover);
  font-weight: 500;
  margin-bottom: 8px;
}

.condo-description {
  font-size: 0.85rem;
  color: var(--gray-text);
  line-height: 1.5;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-text);
  font-size: 1rem;
}

/* === Timeline (Section 8) === */
.timeline {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.timeline-year {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.timeline-year:hover {
  transform: translateY(-2px);
}

.timeline-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-bg);
  border: 2px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-text);
  transition: all 0.2s ease;
}

.timeline-year.active .timeline-bubble,
.timeline-year:hover .timeline-bubble {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.timeline-label {
  font-size: 0.75rem;
  color: var(--gray-text);
  font-weight: 500;
}

.timeline-year.active .timeline-label {
  color: var(--primary);
  font-weight: 700;
}

/* === Data Tables === */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: top;
}

.data-table tbody tr:hover {
  background: rgba(26, 58, 92, 0.03);
}

.data-table .desc-cell {
  max-width: 300px;
}

.table-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
  white-space: nowrap;
}

.data-source {
  text-align: center;
  font-size: 0.75rem;
  color: #999;
  margin-top: 16px;
}

/* === Stats Grid (Section 10) === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-text);
  font-weight: 500;
  margin-bottom: 6px;
}

.stat-trend {
  font-size: 0.75rem;
  color: #999;
}

.trend-up { color: var(--existing); }
.trend-down { color: var(--proposed); }

/* === Domains Grid (Section 11) === */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.domain-card {
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--dark-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.domain-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.domain-live {
  cursor: pointer;
}

.domain-current {
  border-color: var(--primary);
  border-width: 2px;
  background: rgba(26, 58, 92, 0.03);
}

.domain-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.domain-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-live {
  background: rgba(45, 138, 78, 0.1);
  color: var(--existing);
}

.badge-current {
  background: rgba(26, 58, 92, 0.1);
  color: var(--primary);
}

/* === Contact (Section 12) === */
.section-dark {
  background: linear-gradient(160deg, var(--dark-primary) 0%, var(--primary) 50%, var(--light-primary) 100%);
  padding: 80px 0;
  color: #fff;
}

.section-dark .section-title {
  color: #fff;
  text-align: left;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 24px;
}

.ideal-for {
  list-style: none;
  padding: 0;
}

.ideal-for li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
  opacity: 0.9;
}

.ideal-for li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 32px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

#form-status {
  margin-top: 16px;
  text-align: center;
  font-size: 0.95rem;
}

#form-status.success {
  color: var(--accent);
}

#form-status.error {
  color: #ff6b6b;
}

/* === Footer === */
footer {
  background: var(--footer-bg);
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

footer .disclaimer {
  margin-bottom: 8px;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .value-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .condos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .domains-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-dark {
    padding: 60px 0;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .value-cards {
    grid-template-columns: 1fr;
  }

  .pitch-grid {
    grid-template-columns: 1fr;
  }

  .counter-grid {
    grid-template-columns: 1fr;
  }

  .condos-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  #map {
    height: 350px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .contact-grid {
    gap: 32px;
  }

  .section-dark .section-title {
    text-align: center;
  }

  .ideal-for {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-pitch {
    font-size: 1rem;
  }

  #map {
    height: 280px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .counter-number {
    font-size: 2rem;
  }

  .comparison-bar {
    font-size: 0.8rem;
    padding: 0 10px;
  }

  .data-table {
    font-size: 0.75rem;
  }

  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }
}
