/*
Theme Name: Auto Dondza
Description: Tema da Auto Dondza: landing page do pacote de 25 exames teóricos do INATRO, checkout com M-Pesa e páginas simples para o resto do site.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Auto Dondza
Text Domain: autodondza
*/

:root {
  --navy: #13213f;
  --navy-2: #24407c;
  --navy-soft: #eef2f9;
  --red: #d31f2a;
  --red-dark: #b01822;
  --red-soft: #fdeeee;
  --gold: #f7c61f;
  --gold-dark: #d99d08;
  --white: #ffffff;
  --ink: #0d1424;
  --muted: #5a6478;
  --line: #e6e9f0;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
svg { display: block; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2 { font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; }
h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: 1168px; margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.sec { padding-block: clamp(64px, 8vw, 96px); }
.sec-head { display: grid; gap: 10px; justify-items: center; text-align: center; margin-bottom: 48px; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 14px 32px; border-radius: 999px; background: var(--red); color: var(--white); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-align: center; text-decoration: none; box-shadow: 0 12px 28px rgba(211, 31, 42, .3); transition: background .15s, transform .15s; }
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }

/* Navegação */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; min-width: 0; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: var(--white); flex: none; }
.nav .btn { min-height: 40px; padding: 8px 20px; font-size: .875rem; box-shadow: none; white-space: nowrap; }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 24px; font-size: .8125rem; color: var(--muted); }

/* Cabeçalho */
.admin-bar .nav { top: 32px; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.brand img { max-height: 40px; width: auto; }
.menu { display: flex; gap: 20px; font-size: .9375rem; font-weight: 600; }
.menu a { color: var(--ink); text-decoration: none; }
.menu a:hover, .menu .current-menu-item > a { color: var(--red); }
.menu .sub-menu { display: none; }
.secure { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.secure .ico { width: 16px; height: 16px; color: #11804a; }

/* Rodapé */
footer { border-top: 1px solid var(--line); }
footer .menu { font-size: .8125rem; font-weight: 500; gap: 16px; flex-wrap: wrap; }
footer .menu a { color: var(--muted); }

/* Páginas e artigos */
.page-main { padding-block: clamp(40px, 6vw, 72px); }
.narrow { max-width: 760px; }
.page-title { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; margin-bottom: 24px; }
.meta { color: var(--muted); font-size: .875rem; margin: -12px 0 24px; }
.prose { font-size: 1.0625rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.75rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose a { color: var(--navy-2); }
.prose .btn { color: var(--white); }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose blockquote { margin-inline: 0; padding-left: 18px; border-left: 4px solid var(--red); color: var(--muted); }
.alignwide, .alignfull { max-width: 100%; }
.aligncenter { margin-inline: auto; }
.posts { display: grid; gap: 16px; }
.post-card { display: grid; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
.post-card h2 { font-size: 1.375rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card p { color: var(--muted); }
.pagination { margin-top: 32px; display: flex; gap: 8px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
  .nav .menu { display: none; }
}
@media (max-width: 600px) {
  .admin-bar .nav { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
