/* Homepage (2026-09) */
.home-hero { padding: 118px 0 30px; }
.home-hero h1 { max-width: 900px; margin: 14px 0 16px; font-size: clamp(38px, 6vw, 70px); line-height: 1.1; }
.home-hero h1 em { color: var(--teal); font-style: italic; }
.home-lede { max-width: 760px; margin: 0 0 8px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.home-section { padding: 56px 0; }
/* First-screen task choice: plan, estimate or check a quote. */
.task-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 26px; }
.task-choice a { display: grid; align-content: start; gap: 3px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.task-choice a:hover { border-color: var(--teal); }
.task-choice strong { color: var(--text); font-size: 16px; line-height: 1.3; }
.task-choice strong::after { content: " →"; color: var(--teal); }
.task-choice span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.home-section .section-heading { margin-bottom: 28px; }
.home-section .section-heading h2 { font-size: clamp(30px, 4vw, 46px); }
.project-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.project-tile { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 3 / 4; background: var(--navy-2); }
.project-tile picture, .project-tile img { width: 100%; height: 100%; }
.project-tile img { object-fit: cover; transition: transform .4s ease; }
.project-tile:hover img { transform: scale(1.03); }
.project-tile > span { position: absolute; inset: auto 0 0 0; display: grid; gap: 2px; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; }
.project-tile strong { font-size: 18px; }
.project-tile small { font-size: 13px; opacity: .9; }
.home-index { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.home-index-copy h2 { margin: 12px 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.home-index-copy p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.home-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 14.5px; }
.home-table caption { padding: 12px 14px; text-align: left; color: var(--muted); font-size: 13px; }
.home-table th, .home-table td { padding: 11px 14px; text-align: left; border-top: 1px solid var(--border); }
.home-table thead th { color: var(--teal); background: var(--navy-2); font-size: 13px; }
.home-table td:nth-child(2) { color: var(--muted); }
.home-table td:last-child { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-table a { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust-grid article { padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.trust-grid h3 { margin: 0 0 8px; font-size: 20px; }
.trust-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.trust-grid a { color: var(--teal); text-decoration: underline; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.review { margin: 0; padding: 22px; border-radius: 16px; background: var(--navy-2); }
.review blockquote { margin: 0 0 12px; }
.review p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.review figcaption { color: var(--muted); font-size: 13px; }
.review figcaption span { font-weight: 700; color: var(--text); }
.reviews-note { margin-top: 12px; color: var(--muted); font-size: 13px; }
.reviews-note a { color: var(--teal); text-decoration: underline; }
.home-research > div { padding: 32px; border-radius: 18px; border: 1px solid var(--teal); background: #e7eeea; }
.home-research h2 { max-width: 760px; margin: 10px 0 12px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.18; }
.home-research p { max-width: 700px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.home-research .button-outline { width: auto; background: #fff; }
.download-qr { display: block; margin: 16px auto 0; }
@media (max-width: 900px) {
  .project-tiles { grid-template-columns: repeat(2, 1fr); }
  .home-index, .trust-grid, .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .task-choice { grid-template-columns: 1fr; gap: 8px; margin: 16px 0 22px; }
  .task-choice a { padding: 11px 14px; }
  .task-choice span { font-size: 13.5px; }
  .home-hero { padding-top: 100px; }
  .home-lede { font-size: 16px; }
  .home-section { padding: 38px 0; }
  .download-qr { display: none; }
}
@media (hover: none) and (pointer: coarse) { .download-qr { display: none; } }
/* The index table fits its column: fixed layout, wrapping basis, prices never wrap or clip. */
.cost-table.home-table { width: 100%; min-width: 0; table-layout: fixed; }
.home-table col.col-project { width: 31%; }
.home-table col.col-price { width: 7.5em; }
.cost-table.home-table th[scope="row"], .cost-table.home-table td { overflow-wrap: break-word; white-space: normal; }
.cost-table.home-table td.price { white-space: nowrap; text-align: right; }
.home-table thead th:last-child { text-align: right; }
@media (max-width: 600px) {
  /* Stacked rows on phones: project and price on one line, the basis underneath. Roles keep the table semantics. */
  .home-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .home-table, .home-table tbody { display: block; }
  .home-table caption { display: block; }
  .home-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border); }
  .home-table th, .home-table td { padding: 0; border: 0; }
  .home-table td.basis { grid-column: 1 / -1; grid-row: 2; margin-top: 3px; font-size: 13.5px; }
}
