/* ============================================================
   Página inicial (usa as variáveis de style.css)
   ============================================================ */
.home { max-width: 1100px; margin: 0 auto; padding: 32px 24px 48px; }

.hero {
  display: flex; align-items: center; gap: 24px;
  padding: 28px 32px;
  border-radius: 16px;
  background: linear-gradient(120deg, #f2fbf1 0%, #e3f5e1 60%, #d3efcf 100%);
  border: 1px solid var(--green-line);
  position: relative; overflow: hidden;
  margin-bottom: 24px;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, var(--green-2), var(--green)); opacity: .15;
}
.hero-logo { height: 84px; flex-shrink: 0; }
.hero h1 { margin: 0 0 6px; font-size: 26px; color: var(--navy); font-weight: 800; }
.hero p { margin: 0; color: #374151; font-size: 15px; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.toolbar input {
  flex: 1; max-width: 360px;
  font: inherit; font-size: 14px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.toolbar input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,181,42,.15); }
.count { font-size: 13px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.sheet-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.sheet-card:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 12px 32px rgba(16,41,90,.12); }
a.sheet-card:focus-visible { outline: 3px solid rgba(45,181,42,.4); outline-offset: 2px; }

.sheet-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green);
  margin-bottom: 6px;
}
.sheet-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.sheet-card h2 { margin: 0; font-size: 17px; color: var(--navy); line-height: 1.3; }
.sheet-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.sheet-cta { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--green); }

.sheet-card.soon { border-style: dashed; box-shadow: none; background: rgba(255,255,255,.6); }
.sheet-card.soon .sheet-icon { background: #f3f4f6; color: var(--muted); }
.sheet-card.soon .sheet-cat, .sheet-card.soon .sheet-cta { color: var(--muted); }

.empty { color: var(--muted); text-align: center; padding: 32px; }

.home-footer {
  text-align: center; font-size: 12px; color: var(--muted);
  padding: 20px 16px 28px; border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .home { padding: 20px 16px 40px; }
  .hero { flex-direction: column; align-items: flex-start; padding: 22px; }
  .hero-logo { height: 64px; }
  .hero h1 { font-size: 22px; }
}
