/* Homepage preview, 2026-09-09. Existing brand, photos and lead workflow retained. */
#popular-projects, #built-homes, #project-selector { scroll-margin-top: 160px; }
.project-filters { display:grid; grid-template-columns:1.15fr 1fr 1fr auto; gap:14px; align-items:end; padding:22px; margin:0 0 12px; border:1px solid var(--line); border-radius:16px; background:var(--green-soft); }
.project-filters label { display:grid; gap:7px; min-width:0; color:var(--green-dark); font-size:14px; font-weight:700; }
.project-filters select { width:100%; min-width:0; min-height:48px; padding:10px 32px 10px 12px; border:1px solid #adc9bf; border-radius:9px; background:#fff; color:var(--ink); font:inherit; }
.filter-reset { min-height:48px; padding:10px 15px; border:1px solid #9abdb3; border-radius:9px; background:#fff; color:var(--green-dark); font:inherit; font-weight:700; cursor:pointer; }
.filter-reset:hover { background:var(--yellow); }
.project-results { margin:0 0 20px; color:var(--muted); font-size:14px; }
#popular-projects .projects { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
#popular-projects .project-card[hidden] { display:none; }
#popular-projects .project-card > img { height:235px; padding:10px; object-fit:contain; }
#popular-projects .project-body { padding:20px; }
#popular-projects .project-title { font-size:21px; line-height:1.3; }
#popular-projects .project-price-label { margin-top:12px; font-size:13px; }
#popular-projects .project-price { margin:2px 0 16px; font-size:24px; line-height:1.25; }
#popular-projects .project-specs { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#popular-projects .project-spec { min-height:55px; padding:9px 7px; font-size:12px; line-height:1.25; }
#popular-projects .project-spec strong { font-size:14px; overflow-wrap:normal; }
#popular-projects .project-link { margin-top:16px; min-height:46px; padding:12px; font-size:15px; }
.project-link:hover { background:var(--green-dark); }
.project-empty { margin:18px 0; padding:24px; border:1px solid var(--line); border-radius:12px; background:var(--green-soft); }
.project-empty[hidden], .projects-more[hidden] { display:none; }
#built-homes .portfolio { gap:20px; }
#built-homes .portfolio figure { display:flex; flex-direction:column; height:auto; margin:0; padding:10px; background:#fff; border:1px solid var(--line); border-radius:17px; overflow:hidden; }
#built-homes .portfolio figure > img { width:100%; height:210px; padding:0; object-fit:contain; background:#f0f5f2; border-radius:10px; }
#built-homes .portfolio figcaption { position:static; display:flex; flex:1; flex-direction:column; justify-content:space-between; gap:14px; padding:16px 6px 6px; background:transparent; color:var(--green-dark); font-size:16px; line-height:1.4; }
.portfolio-case-link { display:inline-flex; align-items:center; min-height:44px; color:var(--green); font-size:14px; text-decoration:underline; text-underline-offset:4px; }
.portfolio-case-link:hover { color:var(--green-dark); }
.evidence-card.has-photo { display:flex; flex-direction:column; }
.evidence-card.has-photo img { height:245px; min-height:0; object-fit:contain; background:#eaf2ef; }
.evidence-photo-copy { position:static; padding:20px; background:var(--green-dark); }
.evidence-card.has-photo p { font-size:14px; }
.finder-engineer > img { object-fit:contain; background:#eef4f1; }
.assurance-visual { display:flex; flex-direction:column; }
.assurance-visual img { height:340px; min-height:0; }
.assurance-visual span { position:static; display:block; margin-top:10px; background:var(--green-dark); }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline:3px solid #b19400; outline-offset:4px; }
@media (max-width:1000px) {
  #popular-projects .projects { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .project-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #built-homes .portfolio { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  #popular-projects, #built-homes, #project-selector { scroll-margin-top:112px; }
  .project-filters { grid-template-columns:1fr; padding:16px; gap:12px; }
  #popular-projects .projects, #built-homes .portfolio { grid-template-columns:1fr; }
  #popular-projects .project-card > img { height:205px; }
  #popular-projects .project-body { padding:17px; }
  #popular-projects .project-price { font-size:24px; }
  #built-homes .portfolio figure > img { height:230px; }
  .projects-action .btn { width:100%; min-width:0; }
}
@media (prefers-reduced-motion:reduce) { html, .category-links { scroll-behavior:auto; } }

.project-filter-panel { border:0; border-radius:0; padding:0; background:transparent; margin:0; }
.project-filter-panel > summary { display:none; }
@media (max-width:600px) {
 .project-filter-panel { margin-bottom:14px; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
 .project-filter-panel > summary { display:flex; align-items:center; min-height:54px; padding:14px 16px; background:var(--green-soft); font-size:15px; color:var(--green-dark); }
 .project-filter-panel[open] > summary { border-bottom:1px solid var(--line); }
 .project-filter-panel .project-filters { margin:0; border:0; border-radius:0; }
}
@media (min-width:601px) and (max-width:1000px) {
 .assurance-layout .assurances { grid-template-columns:1fr; }
 .assurance-visual { align-self:start; }
}
