/* Aguiar Automóveis · histórias dos modelos (índice e artigo) */

/* ===================== Índice ===================== */
.st-index-head { padding-top: clamp(56px, 9vw, 128px); padding-bottom: clamp(40px, 6vw, 80px); }
.st-index-head .eyebrow { margin-bottom: 20px; }
.st-index-head .display { max-width: 14ch; }
.st-index-head__foot { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.st-index-head__foot .lead { max-width: 56ch; }
.st-index-head__count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.st-index-head__count strong { color: var(--ink); font-weight: 600; }
.st-empty { padding-bottom: 96px; }

/* Chips de marca */
.st-filter { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(14px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.st-chips { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.st-chips::-webkit-scrollbar { display: none; }
.st-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 500; border: 1px solid var(--line-2); background: #fff; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.st-chip small { font-size: 12px; color: var(--muted); font-weight: 500; }
.st-chip:hover { border-color: var(--ink); }
.st-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.st-chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .6); }

/* Grupos por marca */
.st-groups { padding-bottom: clamp(32px, 5vw, 64px); }
.st-group { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: 32px 48px; padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.st-group:first-child { border-top: 0; }
.st-group[hidden] { display: none; }
.st-group__head { align-self: start; position: sticky; top: calc(var(--nav-h) + 96px); display: flex; flex-direction: column; gap: 6px; }
.st-group__title { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.03em; }
.st-group__count { font-size: 14px; color: var(--muted); }
.st-group__cars { margin-top: 18px; font-size: 14px; min-height: 44px; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }

/* Cartão de história */
.story-card { position: relative; display: flex; flex-direction: column; }
.story-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.story-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.story-card:hover .story-card__media img { transform: scale(1.03); }
.story-card__type { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2.4vw, 28px); background: var(--soft); transition: background-color .4s var(--ease); }
.story-card:hover .story-card__type { background: var(--soft-2); }
.story-card__type-brand { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.story-card__type-gen { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 6vw, 88px); line-height: .95; letter-spacing: -0.04em; color: var(--ink); overflow-wrap: anywhere; }
.story-card__type-years { font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: 12px; }
.story-card__body { padding-top: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.story-card__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.story-card__title { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.story-card:hover .story-card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.story-card__summary { font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-card__meta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.story-card__sale { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.story-card__sale::before { content: ''; width: 6px; height: 6px; background: var(--brand); }
.story-card__link { position: absolute; inset: 0; z-index: 1; }
.story-card__link:focus-visible { outline-offset: 4px; }

/* Chamada final */
.st-cta { border-top: 1px solid var(--line); }
.st-cta__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.st-cta .eyebrow { margin-bottom: 14px; }
.st-cta .lead { margin-top: 16px; max-width: 52ch; }

@media (max-width: 1080px) {
  .st-group { grid-template-columns: 1fr; }
  .st-group__head { position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
  .st-group__cars { margin: 0 0 0 auto; }
}
@media (max-width: 640px) {
  .st-grid { grid-template-columns: 1fr; gap: 48px; }
  .st-group__cars { margin: 0; width: 100%; }
  .st-cta .btn-row { width: 100%; }
  .st-cta .btn { flex: 1 1 100%; }
}

/* ===================== Artigo ===================== */
.ar-head { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 56px); }
.ar-head__eyebrow { margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.ar-head__eyebrow a:hover { color: var(--ink); }
.ar-head__title { font-size: clamp(36px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; max-width: 18ch; text-wrap: balance; }
.ar-head__sub { margin-top: clamp(20px, 2.4vw, 28px); max-width: 54ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); }
.ar-head__meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.ar-head__meta span { display: inline-flex; align-items: center; gap: 8px; }

.ar-hero { margin: 0; }
.ar-hero__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.ar-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.ar-hero figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 14px; font-size: 13px; color: var(--muted); }
.ar-hero figcaption a { color: var(--ink); font-weight: 500; }

.ar-type { aspect-ratio: 21 / 8; background: var(--soft); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(20px, 4vw, 48px); }
.ar-type__gen { font-family: var(--font-display); font-size: clamp(64px, 14vw, 220px); line-height: .85; letter-spacing: -0.05em; font-weight: 500; overflow-wrap: anywhere; }
.ar-type__years { font-size: 14px; color: var(--ink-2); white-space: nowrap; }

/* Destaques */
.ar-facts { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.ar-facts li { padding: 20px 24px 4px 0; }
.ar-facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.ar-facts dt, .ar-facts .k { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ar-facts .v { margin-top: 10px; font-family: var(--font-display); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }

/* Corpo */
.ar-body { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 70ch) minmax(0, 1fr); gap: 48px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.ar-toc { align-self: start; position: sticky; top: calc(var(--nav-h) + 32px); }
.ar-toc p { margin-bottom: 14px; }
.ar-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.ar-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; color: var(--muted); line-height: 1.4; transition: color .2s var(--ease), border-color .2s var(--ease); }
.ar-toc a:hover, .ar-toc a.is-on { color: var(--ink); border-left-color: var(--ink); }
.ar-prose { font-size: 18px; }
.ar-prose > p:first-child { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; color: var(--ink); }
.ar-prose h2 { scroll-margin-top: calc(var(--nav-h) + 24px); font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.02em; }
.ar-prose ul { list-style: none; padding: 0; }
.ar-prose ul li { position: relative; padding-left: 22px; }
.ar-prose ul li::before { content: ''; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--ink); }
.ar-prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--ink); font-family: var(--font-display); font-size: 1.25em; color: var(--ink); }

/* Fontes */
.ar-sources { margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
.ar-sources h2 { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ar-sources ol { margin: 0; padding-left: 1.4em; font-size: 14px; color: var(--muted); }
.ar-sources li + li { margin-top: 6px; }
.ar-sources a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.ar-sources a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.ar-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* À venda */
.ar-sale .section__head .lead { margin-top: 12px; max-width: 52ch; }
.ar-alert { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; align-items: start; }
.ar-alert .lead { margin-top: 18px; max-width: 46ch; }
.ar-alert form { background: #fff; padding: clamp(24px, 3vw, 40px); }

/* Mais histórias */
.ar-more .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .ar-body { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 760px; }
  .ar-toc, .ar-body__aside { display: none; }
  .ar-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-facts li, .ar-facts li + li { padding: 18px 16px 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ar-facts li:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .ar-alert { grid-template-columns: 1fr; }
  .ar-more .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ar-hero { margin: 0 calc(var(--gutter) * -1); }
  .ar-hero figcaption { padding: 12px var(--gutter) 0; }
  .ar-hero__media { aspect-ratio: 3 / 2; }
  .ar-type { aspect-ratio: 4 / 3; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .ar-prose { font-size: 17px; }
  .ar-more .st-grid { grid-template-columns: 1fr; }
  .ar-alert form { padding: 24px 20px; margin: 0 calc(var(--gutter) * -1); }
}

/* Ajustes */
.story-card__type-gen.is-long { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.02; }
.ar-type__gen.is-long { font-size: clamp(48px, 8vw, 128px); line-height: .95; }
.ar-prose > h2:first-child { margin-top: 0; }
@media (max-width: 1080px) {
  .ar-facts li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.nw { white-space: nowrap; }
.ar-alert .eyebrow { margin-bottom: 14px; }
