/*
 * Money Swap — Page-Specific Styles
 * swap.phoenixareahome.com/money
 * Layered on top of /css/styles.css
 */

/* === Money Hero === */

.money-hero {
  background: #fff;
  padding: 3.5rem 1.5rem 2.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.money-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.money-hero-tag {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0891b2;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.money-hero-inner h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 1rem;
}

.money-hero-inner .lead {
  font-size: 1.1875rem;
  color: #334155;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 1.25rem;
}

.money-hero-note {
  font-size: 0.9375rem;
  color: #475569;
  max-width: 600px;
  line-height: 1.5;
}

/* === Section Layout === */

.money-section {
  padding: 3rem 1.5rem;
  scroll-margin-top: 80px;
}

.money-section--alt {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.money-section--dark {
  background: #0f172a;
  color: #f8fafc;
}

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

.money-section-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.money-section--dark h2 {
  color: #f8fafc;
}

.money-section-inner .section-subtitle {
  font-size: 1rem;
  color: #475569;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

.money-section--dark .section-subtitle {
  color: #94a3b8;
}

/* === Body Copy === */

.money-prose {
  font-size: 1.0625rem;
  color: #334155;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.money-prose:last-child {
  margin-bottom: 0;
}

.money-section--dark .money-prose {
  color: #cbd5e1;
}

.money-prose strong {
  color: #0f172a;
  font-weight: 600;
}

.money-section--dark .money-prose strong {
  color: #f1f5f9;
}

/* === Tax Comparison Table === */

.tax-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.tax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 580px;
}

.tax-table thead {
  background: #f1f5f9;
}

.tax-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.tax-table td,
.tax-table tbody th {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: top;
}

.tax-table tbody th {
  font-weight: 700;
  text-align: left;
}

.tax-table tbody tr:last-child td,
.tax-table tbody tr:last-child th {
  border-bottom: none;
}

.tax-table tbody tr:hover {
  background: #f8fafc;
}

.tax-savings {
  color: #15803d;
  font-weight: 700;
}

.tax-loss {
  color: #dc2626;
  font-weight: 600;
}

.tax-callout-seattle {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 0;
}

.tax-callout-seattle-title {
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 0.5rem;
}

.tax-callout-seattle-text {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

/* === Housing Translation Cards === */

.city-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0 0 1.5rem;
}

.city-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
}

.city-card-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.375rem;
}

.city-card-prices {
  display: flex;
  gap: 1.5rem;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.city-card-price {
  display: flex;
  flex-direction: column;
}

.city-card-price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  font-weight: 600;
}

.city-card-price-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.city-card-price-value--phoenix {
  color: #0891b2;
}

.equity-scenario {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.equity-scenario:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.equity-scenario-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0891b2;
  margin: 0 0 0.25rem;
}

.equity-scenario-text {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* === Cost Comparison Table === */

.cost-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 700px;
}

.cost-table thead {
  background: #f1f5f9;
}

.cost-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.cost-table td,
.cost-table tbody th {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}

.cost-table tbody th {
  font-weight: 600;
  text-align: left;
}

.cost-table tbody tr:last-child td,
.cost-table tbody tr:last-child th {
  border-bottom: none;
}

.cost-table tbody tr:hover {
  background: #f8fafc;
}

.cost-phoenix {
  background: #f0fdfa;
  font-weight: 600;
  color: #0891b2;
}

.cost-higher {
  color: #dc2626;
  font-weight: 600;
}

/* === Surplus Heading === */

.money-surplus-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2rem 0 0.5rem;
}

/* === Surplus Cards === */

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

.surplus-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

.surplus-card-income {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #475569;
  margin: 0 0 0.25rem;
}

.surplus-card-city {
  font-size: 0.8125rem;
  color: #475569;
  margin: 0 0 0.5rem;
}

.surplus-card-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: #15803d;
  line-height: 1.2;
}

.surplus-card-label {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 0.25rem;
}

.surplus-card-note {
  font-size: 0.8125rem;
  color: #475569;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* === Risk Blocks (reused from career pattern) === */

.risk-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #dc2626;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1rem;
}

.risk-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.risk-block-text {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.money-section--dark .risk-block {
  background: #1e293b;
  border-color: #475569;
  border-left-color: #f59e0b;
}

.money-section--dark .risk-block-title {
  color: #f8fafc;
}

.money-section--dark .risk-block-text {
  color: #94a3b8;
}

/* === Insight Callout === */

.insight-callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 0;
}

.insight-callout-title {
  font-size: 1rem;
  font-weight: 700;
  color: #15803d;
  margin: 0 0 0.5rem;
}

.insight-callout-text {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

/* === Money CTA === */

.money-cta {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0 0;
}

.money-cta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.money-cta p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 1.25rem;
}

/* === Section Anchor Links (page-specific color) === */

.money-hero .section-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.money-hero .section-anchor {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 44px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.money-hero .section-anchor:hover {
  background: #0891b2;
  color: #fff;
  border-color: #0891b2;
}

/* === Responsive === */

@media (max-width: 767px) {
  .money-hero-inner h1 {
    font-size: 1.875rem;
  }

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

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

  .money-section {
    padding: 2rem 1rem;
  }

  .money-hero {
    padding: 2.5rem 1rem 2rem;
  }

  .risk-block {
    padding: 1rem;
  }

  .money-cta {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .city-card-prices {
    flex-direction: column;
    gap: 0.5rem;
  }
}
