/*
 * Climate Swap — Page-Specific Styles
 * swap.phoenixareahome.com/climate
 * Layered on top of /css/styles.css
 * Accent: amber (#b45309)
 */

/* === Climate Hero === */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* === Section Anchor Links (amber accent) === */

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

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

.climate-hero .section-anchor:hover {
  background: #b45309;
  color: #fff;
  border-color: #b45309;
}

/* === Seasonal Calendar Table === */

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

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

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

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

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

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

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

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

/* Grade colors */
.grade-a {
  color: #15803d;
  font-weight: 700;
}

.grade-b {
  color: #b45309;
  font-weight: 700;
}

.grade-c {
  color: #ea580c;
  font-weight: 600;
}

.grade-d {
  color: #dc2626;
  font-weight: 700;
}

/* === Climate Callout === */

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

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

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

.climate-callout--green {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #16a34a;
}

.climate-callout-title--green {
  color: #15803d;
}

/* === Outdoor Access Cards === */

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

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

.outdoor-card-header {
  margin: 0 0 0.75rem;
}

.outdoor-card-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.outdoor-card-meta {
  font-size: 0.8125rem;
  color: #475569;
}

.outdoor-card-trail {
  background: #fffbeb;
  border-radius: 6px;
  padding: 0.75rem;
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.outdoor-card-trail-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #92400e;
}

.outdoor-card-trail-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.outdoor-card-trail-detail {
  font-size: 0.8125rem;
  color: #475569;
}

.outdoor-card-feature {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* === Survival Guide List === */

.survival-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.survival-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
}

.survival-item-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #b45309;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
}

.survival-item-body {
  flex: 1;
  min-width: 0;
}

.survival-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

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

/* === Risk Blocks (dark section variant) === */

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

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

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

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

/* === Climate CTA === */

.climate-cta {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0 0;
}

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

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

/* === Responsive === */

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

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

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

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

  .risk-block {
    padding: 1rem;
  }

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

  .survival-item {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .outdoor-card-trail {
    padding: 0.625rem;
  }

  .survival-item {
    gap: 0.75rem;
  }

  .survival-item-number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
}
