/* ============================================================
   Dúvidas — hub de conteúdo + páginas internas
   ============================================================ */

/* ---------- header sólido nas páginas internas ---------- */

body.page-inner .site-header {
  background: rgba(247, 244, 239, .96);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.page-inner.drawer-open .site-header {
  background: var(--wine-deep);
  color: #fff;
  box-shadow: none;
}

/* ============================================================
   1. HUB — /duvidas/
   ============================================================ */

.hub-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(38px, 7vw, 74px)) 0 clamp(34px, 5vw, 56px);
  background:
    radial-gradient(80% 120% at 88% -10%, rgba(198, 164, 90, .22), transparent 58%),
    linear-gradient(155deg, #3a161a 0%, var(--wine-deep) 58%, #1c0b0d 100%);
  color: #fff;
  overflow: hidden;
}

.hub-hero::before,
.hub-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(198, 164, 90, .18);
  border-radius: 50%;
  pointer-events: none;
}

.hub-hero::before {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -120px;
}

.hub-hero::after {
  width: 660px;
  height: 660px;
  right: -260px;
  top: -240px;
}

.hub-hero__inner { position: relative; z-index: 1; }

.hub-hero__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(54px, 13vw, 104px);
  line-height: .94;
  letter-spacing: -.025em;
}

.hub-hero__lead {
  max-width: 54ch;
  margin-top: 20px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .74);
}

.hub-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hub-hero__chips a {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .24);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  transition: border-color .25s var(--ease), color .25s var(--ease),
              background .25s var(--ease);
}

.hub-hero__chips a:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(198, 164, 90, .08);
}

.hub-hero__count {
  margin-top: 24px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}

.hub {
  padding: clamp(46px, 8vw, 88px) 0 clamp(56px, 8vw, 96px);
  background: var(--cream);
}

.hub__inner { display: grid; gap: clamp(52px, 8vw, 92px); }

/* cabeçalho de categoria */

.cat { display: grid; gap: 0; scroll-margin-top: calc(var(--header-h) + 20px); }

.cat__head {
  display: grid;
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.cat__num {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
}

.cat__title {
  margin-top: 6px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(27px, 5.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -.01em;
}

.cat__desc {
  max-width: 48ch;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #555f6b;
}

.cat__count {
  margin-top: 14px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.cat__media {
  margin: 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 1px solid rgba(198, 164, 90, .42);
  border-radius: 140px 140px 2px 2px;
  background: var(--wine-deep);
}

.cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* lista de páginas */

.qgrid {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.qcard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px 11px 11px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}

.qcard:hover {
  border-color: rgba(198, 164, 90, .65);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(23, 36, 59, .09);
}

.qcard__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 32px 32px 2px 2px;
  background: var(--wine-deep);
}

.qcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.75);
}

/* foto editorial da página: sem o zoom do ícone */
.qcard__thumb--foto img {
  transform: none;
  filter: saturate(1.08) contrast(1.04);
}

.qcard__thumb picture { display: block; width: 100%; height: 100%; }

.qcard__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.qcard__num {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--gold);
}

.qcard__title {
  font-family: var(--font-title);
  font-size: 15.5px;
  line-height: 1.32;
  color: var(--navy);
}

.qcard__arrow {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 12px;
  color: var(--gold);
  transition: transform .25s var(--ease);
}

.qcard:hover .qcard__arrow { transform: translate(2px, -2px); }

/* CTA do hub */


/* hub sem nenhum artigo publicado (tudo em rascunho) */

.hub-vazio {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: clamp(28px, 4vw, 46px) clamp(20px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
}

.hub-vazio p:not(.kicker) {
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.8;
  color: #555f6b;
}

.hub-cta {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding-top: clamp(34px, 5vw, 54px);
  border-top: 1px solid var(--line);
}

.hub-cta p:not(.kicker) {
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.8;
  color: #555f6b;
}

/* item atual do menu */
.site-header .nav a[aria-current="page"] { color: var(--burgundy); }
.site-header .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* no mobile a imagem grande da categoria é redundante (o card já traz a marca) */
.cat__media { display: none; }

@media (min-width: 640px) {
  .qgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qcard__thumb { width: 72px; height: 72px; }
  .qcard__title { font-size: 16.5px; }
}

@media (min-width: 760px) {
  .cat__media { display: block; }
}

@media (min-width: 900px) {
  .cat__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    align-items: center;
    gap: 48px;
  }

  .qgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }

  .hub-hero { padding-bottom: 64px; }
}

@media (min-width: 1180px) {
  .qgrid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   2. PÁGINA INTERNA — /duvidas/<categoria>/<slug>.php
   ============================================================ */

.pagina {
  padding: calc(var(--header-h) + clamp(26px, 4vw, 44px)) 0 clamp(56px, 8vw, 92px);
  background: var(--cream);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: clamp(22px, 3vw, 34px);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--burgundy); }
.crumbs span[aria-hidden] { color: rgba(23, 36, 59, .28); }

.pagina__inner {
  display: grid;
  gap: 44px;
}

.artigo { min-width: 0; }

/* conteúdo vindo dos fragmentos (section.texto-seo) */

.texto-seo { counter-reset: h2; }

.texto-seo h1 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(29px, 6.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -.018em;
  color: var(--navy);
  text-wrap: balance;
  margin-bottom: 18px;
}

.texto-seo > p:first-of-type {
  margin-bottom: 26px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-size: 16px;
  line-height: 1.8;
  color: #3c4653;
}

.texto-seo h2 {
  counter-increment: h2;
  margin: 34px 0 12px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(21px, 3.6vw, 26px);
  line-height: 1.3;
  color: var(--navy);
}

.texto-seo h2::before {
  content: counter(h2, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--gold);
}

.texto-seo p {
  margin-bottom: 15px;
  font-size: 14.5px;
  line-height: 1.85;
  color: #4b5563;
}

.texto-seo p:last-child { margin-bottom: 0; }

.texto-seo ul { margin: 24px 0 0; }

/* FAQ (lista com <strong>) */

.texto-seo ul:has(strong) {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.texto-seo ul:has(strong) li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.75;
  color: #4b5563;
}

.texto-seo ul:has(strong) strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.35;
  color: var(--navy);
}

/* links internos (lista com <a>) */

.texto-seo ul:has(a) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.texto-seo ul:has(a) a {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid rgba(23, 36, 59, .14);
  background: #fff;
  font-size: 12px;
  color: var(--burgundy);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.texto-seo ul:has(a) a:hover {
  border-color: var(--gold);
  background: var(--sand);
}

/* imagem editorial da página */

.artigo__media {
  margin: 0 0 30px;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 1px solid rgba(198, 164, 90, .42);
  border-radius: 140px 140px 2px 2px;
  background: var(--wine-deep);
}

.artigo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artigo__nota {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

/* aside */

.artigo__aside { display: grid; gap: 26px; align-content: start; }

.aside-card {
  padding: 26px;
  background:
    radial-gradient(90% 100% at 100% 0%, rgba(72, 26, 54, .55), transparent 62%),
    var(--wine-deep);
  color: #fff;
}

.aside-card__kicker {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.aside-card__title {
  margin: 10px 0 8px;
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 1.3;
}

.aside-card__text {
  margin-bottom: 18px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .66);
}

.aside-card__note {
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

.aside-links__label {
  margin-bottom: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.aside-links li { border-bottom: 1px solid var(--line); }
.aside-links li:first-child { border-top: 1px solid var(--line); }

.aside-links a {
  display: block;
  padding: 11px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #3f4a57;
}

.aside-links a:hover { color: var(--burgundy); }

@media (min-width: 900px) {
  .pagina__inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(44px, 5vw, 64px);
    align-items: start;
  }

  .artigo { max-width: 760px; }

  .artigo__aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .texto-seo p { font-size: 15px; }
  .texto-seo > p:first-of-type { font-size: 17px; }
  .texto-seo h2 { margin-top: 42px; }
}
