/* Homepage-only styles for the Phase 1 content below the hero. */
#home-phase1 {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #475569;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

#home-phase1,
#home-phase1 * {
  box-sizing: border-box;
  font-family: inherit;
  font-weight: 400;
}

#home-phase1 .hp-container {
  width: min(100%, 1000px);
  max-width: 1000px;
  margin-inline: auto;
}

#home-phase1 .hp-section {
  padding: 72px 0 !important;
  background: #fff;
}

#home-phase1 .hp-section-muted {
  background: #f8fafc;
}

#home-phase1 .hp-eyebrow {
  margin: 0 0 12px;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

#home-phase1 .hp-h2 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: left;
}

#home-phase1 .hp-lead {
  max-width: 640px;
  margin: 12px 0 28px;
  color: #475569;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}

#home-phase1 .hp-card-title {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

#home-phase1 .hp-body {
  margin: 0;
  color: #475569;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

#home-phase1 .hp-small {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

#home-phase1 .home-estimate-steps-inner {
  width: min(100%, 1000px);
  max-width: 1000px;
}

#home-phase1 .home-estimate-steps-inner b {
  color: #4f46e5;
  font-size: 13px;
  font-weight: 700;
}

#home-phase1 .home-estimate-steps-inner span {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

#home-phase1 .service-grid-section {
  border: 0;
}

#home-phase1 .service-grid-inner,
#home-phase1 .trends-inner,
#home-phase1 .popular-inner {
  display: block;
  width: min(100%, 1000px);
  max-width: 1000px;
  padding-inline: 0;
}

#home-phase1 .service-grid-inner > * {
  grid-column: auto;
}

#home-phase1 .service-grid-inner > .hp-h2 {
  margin: 0;
}

#home-phase1 .service-grid-inner > .hp-lead {
  margin-bottom: 32px;
}

#home-phase1 .hp-service-groups {
  display: grid;
  gap: 28px;
}

#home-phase1 .hp-service-group {
  min-width: 0;
}

#home-phase1 .hp-group-label {
  margin: 0 0 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#home-phase1 .hp-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#home-phase1 .service-card,
#home-phase1 .hp-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#home-phase1 .service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

#home-phase1 .service-card:hover,
#home-phase1 .hp-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

#home-phase1 .service-card:focus-visible,
#home-phase1 .hp-card:focus-visible,
#home-phase1 .hp-section-link:focus-visible,
#home-phase1 .hp-contractor-submit:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.35);
  outline-offset: 3px;
}

#home-phase1 .hp-service-card {
  min-height: 98px;
}

#home-phase1 .hp-range {
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#home-phase1 .hp-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

#home-phase1 .hp-section-heading .hp-eyebrow {
  margin-bottom: 10px;
}

#home-phase1 .hp-section-link {
  flex: 0 0 auto;
  color: #4f46e5;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

#home-phase1 .hp-city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#home-phase1 .hp-city-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  gap: 9px;
}

#home-phase1 .city-card-top {
  display: block;
}

#home-phase1 .city-card-name {
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

#home-phase1 .city-card-state,
#home-phase1 .city-card-climate {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

#home-phase1 .city-card-cta {
  margin-top: auto;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 700;
}

#home-phase1 .hp-research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#home-phase1 .trend-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

#home-phase1 .trend-badge {
  color: #4f46e5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

#home-phase1 .trend-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

#home-phase1 .trend-card p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

#home-phase1 .trend-link {
  margin-top: auto;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

#home-phase1 .hp-contractor-band {
  background: #4f46e5;
  color: #fff;
}

#home-phase1 .hp-contractor-band .hp-eyebrow {
  color: #e0e7ff;
}

#home-phase1 .hp-contractor-band .hp-h2,
#home-phase1 .hp-contractor-band .hp-lead {
  color: #fff;
}

#home-phase1 .hp-contractor-band .hp-band-title {
  max-width: 820px;
}

#home-phase1 .hp-contractor-band .hp-band-lead {
  margin-bottom: 24px;
  color: #eef2ff;
}

#home-phase1 .hp-contractor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr) 170px;
  align-items: end;
  gap: 12px;
  max-width: 900px;
}

#home-phase1 .hp-form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

#home-phase1 .hp-form-label {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

#home-phase1 .hp-contractor-form select,
#home-phase1 .hp-contractor-form input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 400;
}

#home-phase1 .hp-contractor-form select:focus,
#home-phase1 .hp-contractor-form input:focus {
  border-color: #c7d2fe;
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 1px;
}

#home-phase1 .hp-contractor-submit {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: #4338ca;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease;
}

#home-phase1 .hp-contractor-submit:hover {
  background: #eef2ff;
  transform: translateY(-1px);
}

#home-phase1 .hp-band-note {
  margin: 14px 0 0;
  color: #e0e7ff;
}

#home-phase1 .hp-methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

#home-phase1 .hp-method-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

#home-phase1 .hp-methodology-note {
  max-width: 760px;
  margin: 24px 0 0;
}

#home-phase1 p a {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#home-phase1 .hp-faq {
  margin-top: 64px;
}

#home-phase1 .hp-faq-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

#home-phase1 .hp-faq-item {
  padding: 20px;
}

#home-phase1 .hp-faq-item summary {
  position: relative;
  padding-right: 28px;
  cursor: pointer;
  list-style: none;
}

#home-phase1 .hp-faq-item summary::-webkit-details-marker {
  display: none;
}

#home-phase1 .hp-faq-item summary::after {
  position: absolute;
  top: 0;
  right: 0;
  color: #4f46e5;
  content: '+';
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

#home-phase1 .hp-faq-item[open] summary::after {
  content: '−';
}

#home-phase1 .hp-faq-answer {
  padding-top: 14px;
}

#home-phase1 a {
  text-decoration: none;
}

#home-phase1 .hp-section-link:hover,
#home-phase1 .trend-link:hover,
#home-phase1 .city-card-cta:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 880px) and (min-width: 761px) {
  #home-phase1 .hp-container {
    width: calc(100% - 48px);
  }

  #home-phase1 .home-estimate-steps-inner {
    width: min(100%, 1000px);
  }
}

@media (max-width: 1048px) and (min-width: 881px) {
  #home-phase1 .hp-container {
    width: calc(100% - 48px);
  }

  #home-phase1 .home-estimate-steps-inner {
    width: min(100%, 1000px);
  }
}

@media (max-width: 760px) and (min-width: 641px) {
  #home-phase1 .home-estimate-steps {
    padding-inline: 18px;
  }

  #home-phase1 .hp-container {
    width: calc(100% - 36px);
  }

  #home-phase1 .home-estimate-steps-inner {
    width: min(100%, 1000px);
  }

  #home-phase1 .hp-service-grid,
  #home-phase1 .hp-city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #home-phase1 .hp-research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #home-phase1 .hp-methodology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #home-phase1 .hp-contractor-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  }

  #home-phase1 .hp-contractor-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  #home-phase1 .hp-section {
    padding: 48px 18px !important;
  }

  #home-phase1 .home-estimate-steps {
    padding-inline: 18px;
  }

  #home-phase1 .hp-container {
    width: 100%;
  }

  #home-phase1 .home-estimate-steps-inner {
    width: min(100%, 1000px);
  }

  #home-phase1 .hp-h2 {
    font-size: 24px;
  }

  #home-phase1 .hp-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  #home-phase1 .hp-section-heading .hp-eyebrow {
    margin-bottom: 8px;
  }

  #home-phase1 .hp-service-grid,
  #home-phase1 .hp-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #home-phase1 .hp-research-grid,
  #home-phase1 .hp-methodology-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #home-phase1 .hp-range {
    font-size: 14px;
    white-space: nowrap;
  }

  #home-phase1 .hp-contractor-form {
    grid-template-columns: minmax(0, 1fr);
  }

  #home-phase1 .hp-contractor-submit {
    width: 100%;
  }

  #home-phase1 .hp-faq {
    margin-top: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #home-phase1 .service-card,
  #home-phase1 .hp-card,
  #home-phase1 .hp-contractor-submit {
    scroll-behavior: auto;
    transition: none;
  }
}
