/* =============================================================================
   Support Panel 2WP — portfolio.css
   Hub e casos do portfólio. Depende dos tokens e componentes de home-v2.css.
   ============================================================================= */

.pf h1 {
  color: var(--hv-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.pf main h2 { color: var(--hv-ink); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.pf .hv-cta h2 { color: #fff; font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.pf-muted { margin-top: 10px; color: var(--hv-muted); line-height: 1.7; }
.pf-lead { margin-top: 18px; color: var(--hv-body); font-size: 1.1rem; line-height: 1.75; }
.pf-center { margin-top: 36px; text-align: center; }

/* Breadcrumb */
.pf-crumbs { padding-top: 22px; }
.pf-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; color: var(--hv-muted); font-size: .85rem; }
.pf-crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--hv-line); }
.pf-crumbs a { color: var(--hv-muted) !important; }
.pf-crumbs a:hover { color: var(--hv-primary-600) !important; }
.pf-crumbs [aria-current] { color: var(--hv-text); font-weight: 600; }

/* Hero do caso */
.pf-hero { position: relative; padding: 36px 0 72px; overflow: hidden; isolation: isolate; }
.pf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 60% at 90% 10%, rgba(14, 165, 233, .14), transparent 70%),
    radial-gradient(40% 45% at 0% 100%, rgba(99, 102, 241, .08), transparent 70%);
}
.pf-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.pf-hero .hv-tag { margin-bottom: 18px; }

.pf-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-top: 28px; }
.pf-facts dt { color: var(--hv-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pf-facts dd { margin-top: 4px; color: var(--hv-text); font-weight: 600; line-height: 1.45; }
.pf-facts div:last-child { grid-column: 1 / -1; }

.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chips li { padding: 3px 10px; border: 1px solid var(--hv-sky-100); border-radius: 999px; background: var(--hv-sky-50); color: var(--hv-primary-700); font-size: .78rem; font-weight: 600; }

.pf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.pf-shot {
  overflow: hidden;
  border: 1px solid var(--hv-line);
  border-radius: var(--hv-radius-lg);
  background: #fff;
  box-shadow: var(--hv-shadow-lg);
}
.pf-shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--hv-line-soft); background: #fbfdff; }
.pf-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.pf-shot-bar i:nth-child(1) { background: #fda4af; }
.pf-shot-bar i:nth-child(2) { background: #fcd34d; }
.pf-shot-bar i:nth-child(3) { background: #86efac; }
.pf-shot-bar span {
  flex: 1;
  margin-left: 10px;
  padding: 3px 10px;
  overflow: hidden;
  border: 1px solid var(--hv-line-soft);
  border-radius: 7px;
  background: #fff;
  color: var(--hv-muted);
  font-size: .78rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pf-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* Seções do caso */
.pf-section { padding: 72px 0; }
.pf-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.pf-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pf-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--hv-line-soft);
  border-radius: var(--hv-radius);
  background: #fff;
  box-shadow: var(--hv-shadow-sm);
  color: var(--hv-text);
  font-weight: 500;
  line-height: 1.5;
}
.pf-check { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #ecfdf5; color: #059669; }

.pf-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pf-service { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.pf-service h3 { font-size: 1.05rem; }
.pf-service h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pf-service p { flex: 1; font-size: .9rem; line-height: 1.6; }
.pf-note { margin-top: 26px; color: var(--hv-muted); text-align: center; }

/* Cards de projeto */
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pf-card { display: flex; flex-direction: column; overflow: hidden; }
.pf-card-shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--hv-line-soft); background: var(--hv-soft); }
.pf-card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--hv-ease); }
.pf-card:hover .pf-card-shot img { transform: scale(1.04); }
.pf-card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 20px 22px 22px; }
.pf-card-cat { color: var(--hv-primary-600); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pf-card-title { font-size: 1.15rem; }
.pf-card-title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pf-card-seg { margin-bottom: 8px; font-size: .9rem; line-height: 1.5; }
.pf-card .pf-chips { margin-top: auto; }
.pf-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--hv-primary-600); font-size: .875rem; font-weight: 600; }
.pf-card-more svg { transition: transform .2s var(--hv-ease); }
.hv-card:hover .pf-card-more svg { transform: translateX(3px); }

/* Hub */
.pf-hero-hub { padding-bottom: 40px; }
.pf-hub-head { max-width: 860px; text-align: center; }
.pf-hub-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 26px; color: var(--hv-muted); font-size: .95rem; }
.pf-hub-stats b { margin-right: 4px; color: var(--hv-ink); font-size: 1.35rem; font-weight: 800; }
.pf-cat { padding: 40px 0; }
.pf-cat h2 { margin-bottom: 22px; }

.pf-service-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 920px; margin: 0 auto; }
.pf-service-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--hv-line);
  border-radius: 12px;
  background: #fff;
  color: var(--hv-text) !important;
  font-size: .9rem;
  font-weight: 600;
  transition: border-color .2s, color .2s;
}
.pf-service-links a:hover { border-color: var(--hv-sky-200); color: var(--hv-primary-700) !important; }

.pf-footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }

/* ── Páginas de solução (criação, exemplos e preços) ── */
.sl-actions { justify-content: center; }
.sl-price {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 22px;
  padding: 10px 18px;
  border: 1px solid var(--hv-sky-200);
  border-radius: 999px;
  background: var(--hv-sky-50);
  color: var(--hv-body);
  font-size: .95rem;
}
.sl-price b { color: var(--hv-primary-700); font-size: 1.1rem; }
.sl-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.sl-tier { display: flex; flex-direction: column; gap: 8px; padding: 26px; }
.sl-tier h3 { font-size: 1.05rem; }
.sl-tier-price { color: var(--hv-primary-700); font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.sl-tier p:last-child { font-size: .92rem; line-height: 1.6; }
@media (min-width: 1025px) {
  .sl-steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .sl-steps { grid-template-columns: repeat(2, 1fr); }
  .sl-steps::before, .sl-steps::after { display: none; }
}
.sl-pricebox-wrap { padding-top: 0; }
.sl-pricebox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 28px 32px; }
.sl-pricebox h2 { font-size: 1.35rem; }
.sl-pricebox p { margin-top: 6px; color: var(--hv-body); }

/* ── Diagnóstico grátis (usa o hero escuro do geo-report.css) ── */
.dg-hero-list { display: grid; gap: 14px; align-self: center; }
.dg-group { padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: rgba(255, 255, 255, .06); }
.pf main .geo-hero h1 { color: #fff; }
.pf main .dg-group h2 { margin-bottom: 10px; color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.dg-group li { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; color: #cbd5e1; font-size: .92rem; line-height: 1.5; }
.dg-group svg { flex: none; margin-top: 3px; color: #34d399; }

/* Responsivo */
@media (max-width: 1024px) {
  .pf .hv-nav-cta { grid-template-columns: minmax(0, 1fr); }
  .pf-footer-grid { grid-template-columns: repeat(3, 1fr); }
  .pf-hero-inner, .pf-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .pf-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pf-hero { padding: 24px 0 48px; }
  .pf-section { padding: 52px 0; }
  .pf-grid, .pf-highlights, .pf-facts { grid-template-columns: minmax(0, 1fr); }
  .pf-actions .hv-btn { width: 100%; }
}
