/* Site unificado MS Driver: seções e páginas novas.
   Usa apenas os tokens de styles.css; não altera os arquivos aprovados. */

html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-family: "Helvetica Neue", Arial, sans-serif; line-height: 1.5; }
main :target { scroll-margin-top: 24px; }

/* Navegação: item atual e menu do celular */
.navigation [aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px var(--brand-green); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { min-height: 44px; }
.mobile-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; display: grid; min-width: 220px; padding: 6px; border: 1px solid var(--control-stroke); border-radius: 10px; background: var(--surface); box-shadow: 0 12px 32px var(--shadow-deep); }
.mobile-menu-panel a { display: flex; align-items: center; min-height: 46px; padding: 0 12px; border-radius: 6px; font-weight: 650; }
.mobile-menu-panel a:hover, .mobile-menu-panel a[aria-current="page"] { background: var(--surface-active); }
@media (max-width: 760px) {
  .mobile-menu { display: block; }
  .navigation { gap: 8px; }
  .navigation .driver-link { display: none; }
}

/* Blocos de seção */
.section { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: clamp(18px, 5vw, 90px); margin-bottom: clamp(28px, 4.5vw, 60px); }
.section-head h2, .page-hero h1 { margin: 0; font-size: clamp(2.4rem, 4.6vw, 4.9rem); font-weight: 770; line-height: 1; letter-spacing: -.065em; text-wrap: balance; }
.section-head p, .page-hero p { margin: 0; max-width: 42ch; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.2rem); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--brand-vibrant); font-size: .91rem; font-weight: 730; }
.eyebrow::before { display: block; width: 20px; height: 1px; content: ""; background: currentColor; }
h2 em, .page-hero h1 em { color: var(--brand-green); font-style: normal; }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 100%; padding: clamp(20px, 2.2vw, 28px); border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--brand-graphite) 22%, var(--background)); }
.card h3 { margin: 0; font-size: clamp(1.25rem, 1.7vw, 1.5rem); letter-spacing: -.035em; line-height: 1.15; }
.card p { margin: 0; color: var(--muted); }
.card-index { font: 670 .75rem/1 ui-monospace, monospace; letter-spacing: .08em; color: var(--brand-vibrant); }
.card .text-link { margin-top: auto; padding-top: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); font-weight: 720; text-decoration: underline; text-decoration-color: var(--brand-green); text-underline-offset: .3em; }
.text-link:hover { color: var(--brand-vibrant); }

.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.stats li { flex: 1 1 220px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; }
.stats strong { display: block; font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 770; line-height: 1; letter-spacing: -.06em; color: var(--brand-green); }
.stats span { color: var(--muted); }
.trust { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 60px); align-items: end; }
.trust h3 { margin: 0 0 12px; font-size: clamp(1.7rem, 2.8vw, 2.6rem); letter-spacing: -.05em; line-height: 1.05; }
.trust p { margin: 0; color: var(--muted); max-width: 46ch; }

.services .card { border-color: var(--raised-stroke); }
.services .card h3 { font-size: clamp(1.5rem, 2.1vw, 1.9rem); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 12px 16px; border: 1px solid var(--control-stroke); border-radius: 999px; background: var(--surface); font-weight: 650; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 22px; border-top: 2px solid var(--brand-green); background: linear-gradient(180deg, var(--surface), transparent); border-radius: 0 0 12px 12px; font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
.steps li::before { display: block; margin-bottom: 26px; content: counter(step, decimal-leading-zero); font: 670 .8rem/1 ui-monospace, monospace; color: var(--brand-vibrant); }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 90px); align-items: start; }
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font-weight: 650; }
.check-list li::before { flex: none; width: 9px; height: 9px; content: ""; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-green) 22%, transparent); }

/* Perguntas frequentes */
.faq { display: grid; gap: 8px; max-width: 900px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--brand-graphite) 16%, var(--background)); }
.faq summary { display: flex; justify-content: space-between; width: 100%; min-height: 64px; padding: 14px 20px; border: 0; border-radius: 12px; background: transparent; font-size: 1.05rem; font-weight: 700; text-align: left; }
.faq summary:hover { background: var(--surface); }
.faq summary::after { flex: none; margin-left: 16px; }
.faq details > div { padding: 0 20px 20px; color: var(--muted); max-width: 68ch; }
.faq details > div p { margin: 0; }
.faq a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand-green); text-underline-offset: .25em; }

/* Botões */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 49px; padding: 0 18px; border: 1px solid var(--brand-green); border-radius: 6px; background: var(--brand-green); color: var(--background); font-size: .95rem; font-weight: 740; }
.button:hover { background: var(--brand-vibrant); border-color: var(--brand-vibrant); }
.button--ghost { background: var(--surface); color: var(--ink); border-color: var(--control-stroke); }
.button--ghost:hover { background: var(--surface-hover); border-color: var(--brand-green); }
.button svg { width: 18px; height: 18px; }

/* Chamada final */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: center; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--raised-stroke); border-radius: 20px; background: radial-gradient(ellipse at 90% 10%, color-mix(in srgb, var(--brand-green) 22%, transparent), transparent 60%), var(--surface); }
.cta-band h2 { margin: 0 0 12px; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.06em; }
.cta-band p { margin: 0; color: var(--muted); max-width: 40ch; }
.cta-band .stores, .cta-band .section-actions { margin-top: 0; justify-content: flex-end; }
.cta-actions { display: grid; gap: 12px; justify-items: end; }

/* Páginas internas */
.page-hero { padding-block: clamp(48px, 9vw, 120px) clamp(32px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 6rem); max-width: 16ch; }
.page-hero p { margin-top: 20px; max-width: 52ch; }
.prose { max-width: 68ch; font-size: 1.075rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose h2 { margin: 2em 0 .5em; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.04em; line-height: 1.15; }
.prose h3 { margin: 1.6em 0 .4em; font-size: 1.2rem; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand-green); text-underline-offset: .25em; }

.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.post-card { display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--brand-graphite) 18%, var(--background)); }
.post-card:hover { border-color: var(--brand-green); }
.post-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; }
.post-card div { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.post-card h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.04em; }
.post-card p { margin: 0; color: var(--muted); }
.post-meta { color: var(--muted); font-size: .875rem; }
.post-figure { margin: 0 0 32px; max-width: 520px; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.back-link { margin-top: 40px; }

.contact-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.contact-list a { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.contact-list a:hover { border-color: var(--brand-green); background: var(--surface); }
.contact-list span { color: var(--muted); font-size: .875rem; }
.contact-list strong { font-size: 1.2rem; letter-spacing: -.02em; }

/* Formulário (Empresas) */
.form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--raised-stroke); border-radius: 16px; background: var(--surface); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 680; font-size: .95rem; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--control-stroke); border-radius: 8px; background: var(--background); color: var(--ink); font: inherit; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .consent-check input:focus-visible { outline: 2px solid var(--brand-vibrant); outline-offset: 2px; }
.field small { color: var(--muted); }
.consent-check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.consent-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand-green); }
.consent-check a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 650; }
.form-status[data-state="ok"] { color: var(--brand-vibrant); }
.form-status[data-state="error"] { color: var(--vehicle-tail); }
.form button[disabled] { opacity: .6; cursor: progress; }

.draft-banner { margin: 0 0 32px; padding: 16px 20px; border: 1px solid var(--vehicle-tail); border-radius: 10px; background: color-mix(in srgb, var(--vehicle-tail) 12%, transparent); color: var(--ink); font-weight: 650; }
.pending { padding: 1px 6px; border-radius: 4px; background: color-mix(in srgb, var(--vehicle-tail) 22%, transparent); color: var(--ink); }

/* Rodapé */
.site-footer { margin-top: clamp(40px, 6vw, 80px); padding-block: clamp(40px, 6vw, 72px) 28px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { margin: 0 0 12px; color: var(--ink); font-size: .95rem; letter-spacing: 0; }
.footer-grid ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.footer-grid a, .footer-grid button { display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-align: left; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--brand-green); }
.footer-brand p { max-width: 34ch; margin: 8px 0 0; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .875rem; }

/* Aviso de cookies */
.consent { position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; padding: 20px; border: 1px solid var(--control-stroke); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 44px var(--shadow-deep); }
.consent h2 { margin: 0 0 6px; font-size: 1.1rem; }
.consent p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.consent p a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions .button { flex: 1 1 160px; }

/* Responsivo */
@media (max-width: 1150px) {
  .card-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .section-head, .split, .trust, .cta-band { grid-template-columns: 1fr; }
  .post-list { grid-template-columns: 1fr; }
  .cta-band .stores, .cta-band .section-actions { justify-content: flex-start; }
  .cta-actions { justify-items: start; }
}
@media (max-width: 560px) {
  .card-grid, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: clamp(2.2rem, 10vw, 3rem); }
}
