/* Homepage only (loaded through META "css" on src/index.html). Other pages do not load this file. */
:root { --container: 1100px; }

/* Spacing: about 20% less than the site default */
section { padding: 88px 0; }
.section-head { margin-bottom: 40px; }
.section-head p { margin-top: 16px; }
main section p { max-width: 68ch; }
.help-grid { margin-top: 0; }
.hero-photo .container { max-width: var(--container); }

/* Assessment areas: three cards, then two centred cards of the same width */
.area-heading { margin-bottom: 14px; }
.area-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
.area-card { grid-column: span 2; padding: 22px 20px; }
.area-card:nth-child(4) { grid-column: 2 / span 2; }
.area-card:nth-child(5) { grid-column: 4 / span 2; }
.area-sum { font-size: 0.95rem; }
.area-more { padding-top: 6px; }

.assess-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; margin-top: 44px; }
.assess-detail > * { min-width: 0; }
.assess-detail p { font-weight: 600; color: var(--navy); }
.assess-detail .journey-strip { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 14px; }
.assess-detail .journey-strip li { font-weight: 400; font-size: 0.98rem; }
#assessments .hero-actions { margin-top: 32px; }
#assessments .direct-route { margin-top: 20px; }

/* Personalised recommendations: same section, two columns */
.recs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; align-items: start; margin-top: 64px; padding-top: 60px; position: relative; scroll-margin-top: 90px; }
.recs::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px; border-top: 1px solid rgba(15,39,64,0.12); }
.recs > * { min-width: 0; }
.recs h2 { margin-bottom: 18px; }
.recs .check-list { margin: 14px 0 18px; }
.recs .check-list + p { margin-bottom: 12px; }

/* Health Insights: compact cards, photo beside the text */
.photo-grid { gap: 20px; }
.photo-card { flex-direction: row; }
.photo-card picture { flex: 0 0 38%; aspect-ratio: auto; min-height: 100%; }
.photo-card picture img { width: 100%; height: 100%; object-fit: cover; }
.photo-card .body { padding: 20px 22px; gap: 8px; }
.photo-card h3 { font-size: 1.45rem; }
.photo-card .meta { font-size: 0.74rem; }
.photo-card .read { text-decoration: underline; text-underline-offset: 3px; }
.insights-more { margin-top: 28px; }

.split { gap: 56px; }
section.text-center { padding: 72px 0; }
section.text-center p { margin-left: auto; margin-right: auto; }

@media (max-width: 980px) {
  .area-grid { grid-template-columns: 1fr 1fr; }
  .area-card, .area-card:nth-child(4), .area-card:nth-child(5) { grid-column: auto; }
  .assess-detail, .recs { grid-template-columns: 1fr; }
  .recs { margin-top: 48px; padding-top: 44px; }
  .photo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  section { padding: 56px 0; }
  section.text-center { padding: 52px 0; }
  .section-head { margin-bottom: 28px; }
  .recs::before { left: 20px; right: 20px; }
  .photo-card picture { flex-basis: 34%; }
  .photo-card .body { padding: 16px 16px 18px; }
  .photo-card h3 { font-size: 1.3rem; }
  .hero-photo { padding: 64px 0 0; }
}
@media (max-width: 480px) {
  .area-grid { grid-template-columns: 1fr; }
  .photo-card { flex-direction: column; }
  .photo-card picture { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
}
