/* ==========================================================================
   Dario Romeu — estilos complementares (páginas internas e notícias)
   Reaproveita os tokens de estilo.css (:root). Não faz parte do mock aprovado
   da landing; cobre conteúdos dinâmicos adicionados (produtos, notícias).
   ========================================================================== */

/* --- Faixa de cabeçalho das páginas internas --------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-900) 100%);
  color: #fff;
  padding: 132px 0 56px;
}
.page-hero .container-x { position: relative; }
.page-hero .eyebrow { color: rgba(255, 255, 255, .82); }
.page-hero h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 10px 0 6px;
}
.page-hero p { color: rgba(255, 255, 255, .88); max-width: 640px; }
.page-hero .crumbs { font-size: .92rem; color: rgba(255, 255, 255, .75); margin-bottom: 10px; }
.page-hero .crumbs a { color: #fff; text-decoration: none; }
.page-hero .crumbs a:hover { text-decoration: underline; }

/* --- Card de notícia ---------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-tint);
}
.post-thumb {
  aspect-ratio: 16 / 9;
  background: var(--brand-50);
  overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-300);
}
.post-thumb.placeholder svg { width: 54px; height: 54px; }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-date { font-size: .82rem; color: var(--slate); font-family: var(--font-mono); }
.post-body h3 { font-size: 1.18rem; line-height: 1.2; }
.post-body p { color: var(--slate); font-size: .98rem; margin: 0; }
.post-link {
  margin-top: auto; padding-top: 6px;
  color: var(--brand); font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.post-link svg { width: 16px; height: 16px; }

/* --- Paginação ---------------------------------------------------------- */
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .is-disabled { opacity: .4; pointer-events: none; }

/* --- Conteúdo de artigo (prose) ---------------------------------------- */
.prose { color: var(--ink); font-size: 1.06rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--font-display); margin-top: 1.6em; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose a { color: var(--brand-500); }
.prose ul, .prose ol { padding-left: 1.4em; }

/* --- Detalhe do produto ------------------------------------------------- */
.prod-detail-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start;
}
.prod-detail-media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--brand-50);
}
.prod-detail-media img { width: 100%; display: block; }
.prod-detail-media.placeholder {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--brand-300);
}
.prod-detail-media.placeholder svg { width: 96px; height: 96px; }
.prod-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.prod-thumbs img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: pointer; }
.prod-detail-spec { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.prod-video-grid { display: grid; gap: 16px; margin-top: 16px; }
.prod-video-grid iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); }

@media (max-width: 860px) {
  .prod-detail-grid { grid-template-columns: 1fr; gap: 26px; }
  .page-hero { padding: 116px 0 44px; }
}

/* --- Banners da home ---------------------------------------------------- */
.hero-banners { position: relative; width: 100%; background: var(--brand-50); }
.hb-track { position: relative; }
.hb-slide { display: none; position: relative; }
.hb-slide.is-active { display: block; }
.hb-slide img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.hb-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(20px, 6vw, 80px); gap: 8px; color: #fff;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.05));
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.hb-caption.align-center { align-items: center; text-align: center; background: rgba(0,0,0,.30); }
.hb-caption.align-start  { align-items: flex-start; text-align: left; }
.hb-caption.align-end    { align-items: flex-end; text-align: right; background: linear-gradient(270deg, rgba(0,0,0,.45), rgba(0,0,0,.05)); }
.hb-texto { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2.4rem); font-weight: 700; margin: 0; }
.hb-subtexto { font-size: clamp(.95rem, 1.8vw, 1.25rem); margin: 0; opacity: .95; }
.hb-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 8px; justify-content: center; }
.hb-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.5); padding: 0; }
.hb-dot.is-active { background: #fff; }

@media (max-width: 860px) {
  .hb-slide img { max-height: 300px; }
}
