/*
 * Utilifarm features page (App/Views/Home/features.html): a row of links to the six sections, the sections, and the
 * closing buttons (UI/UX plan, Phase 2, 2026-10-29; four tabs and their script before). Header, footer, the page band
 * and the buttons: css/public.css. A section's screenshot (Shared/feature-shot.html) is drawn only when site.php
 * names one; without it the section is a single column.
 */
.features-jump {
  /* Materialize styles every <nav> as a bar (height and line-height 64px, floated items, tall icons): undone here */
  height: auto;
  line-height: normal;
  box-shadow: none;
  color: inherit;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 1.4rem var(--gutter);
}
.features-jump ul li { float: none; }
.features-jump ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.features-jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
}
.features-jump a:hover { color: var(--primary); border-color: var(--primary); }
.features-jump a:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }
.features-jump i { font-size: 1.15rem; height: auto; line-height: 1; display: inline-block; float: none; color: var(--primary); }

.feature-block {
  padding: 4rem var(--gutter);
  background: #fff;
  scroll-margin-top: var(--nav-h);   /* a jump lands below the fixed header */
}
.feature-block:nth-of-type(even) { background: var(--cream); }
.feature-block-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.feature-block.has-shot .feature-block-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.feature-block-text { max-width: 720px; }
.feature-block-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(46,204,113,0.12), rgba(27,94,94,0.12));
  color: var(--primary);
  margin-bottom: 1rem;
}
.feature-block-icon i { font-size: 1.6rem; }
.feature-block h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.feature-problem {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.4rem;
}
.feature-checklist { list-style: none; margin: 0; padding: 0; }
.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.45rem 0;
  color: var(--ink-soft);
  font-weight: 500;
}
.feature-checklist i { color: var(--accent-dark); font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }

.feature-shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgba(15,63,63,0.35);
  background: var(--cream);
}
.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 750;
  object-fit: cover;
  object-position: top left;
}

.features-cta {
  background: linear-gradient(160deg, var(--primary-deeper) 0%, var(--primary-dark) 60%, var(--primary) 100%);
  color: #fff;
  padding: 4rem var(--gutter);
  text-align: center;
}
.features-cta-inner { max-width: 720px; margin: 0 auto; }
.features-cta h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 0.6rem;
  color: #fff;
}
.features-cta p { color: rgba(255,255,255,0.85); margin: 0 0 1.6rem; }
.features-cta .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.features-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.features-cta .btn-outline:hover { background: #fff; color: var(--primary-dark); }
.features-cta a:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }

@media only screen and (max-width: 992px) {
  .feature-block.has-shot .feature-block-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media only screen and (max-width: 600px) {
  .features-jump { padding: 1rem; }
  .features-jump a { font-size: 0.85rem; padding: 0.45rem 0.8rem; }
  .feature-block { padding: 2.8rem 1.2rem; }
  .features-cta { padding: 3rem 1.2rem; }
}
