/* alexandrefs.com — sem dependências externas, fontes do sistema */

:root {
    --bg: #0e1720;
    --bg-alt: #131f2b;
    --surface: #1a2836;
    --border: #2a3b4d;
    --text: #e8eef4;
    --text-muted: #9fb0c0;
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --success: #34d399;
    --error: #f87171;
    --whatsapp: #25d366;
    --radius: 12px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Header sticky não pode cobrir o título da seção ao navegar por âncora */
section[id] { scroll-margin-top: 5rem; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn:hover { transform: none; }
}

/* Acessibilidade: link "pular para o conteúdo" e foco visível consistente */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent-strong);
    color: #04121c;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 0 0 8px 0;
    z-index: 100;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }

a { color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(14, 23, 32, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    flex-wrap: wrap;
}

.logo {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
}
.site-nav a:hover { color: var(--text); }

.site-nav a.active {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: var(--accent);
}

.site-nav .nav-cta { color: var(--accent); font-weight: 600; }

.lang-switch {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
    padding: clamp(4rem, 10vw, 7rem) 0 3.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 70% -10%, rgba(56, 189, 248, 0.12), transparent),
        var(--bg);
}

.eyebrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    letter-spacing: -0.02em;
    max-width: 18ch;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 62ch;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-note {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent-strong); color: #04121c; }
.btn-primary:hover { background: var(--accent); }

.btn-ghost {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-whatsapp { background: var(--whatsapp); color: #06250f; }

/* ---------- Trust strip ---------- */

.trust {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 2rem 0;
    text-align: center;
}

.trust-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.trust-groups {
    display: flex;
    justify-content: center;
    gap: 2rem 4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.trust-group-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.trust-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem 2rem;
    flex-wrap: wrap;
}

.trust-list li {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    opacity: 0.85;
}

.trust-note { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-subtitle {
    color: var(--text-muted);
    max-width: 60ch;
    margin-bottom: 2.5rem;
}

/* ---------- Service cards ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
}

.card-icon {
    display: block;
    margin-bottom: 0.9rem;
    color: var(--accent);
}
.card-icon svg { display: block; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-fit {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--border);
    color: var(--accent) !important;
    font-size: 0.85rem !important;
}

/* ---------- Timeline ---------- */

.timeline {
    list-style: none;
    display: grid;
    gap: 1.75rem;
    border-left: 2px solid var(--border);
    padding-left: 1.75rem;
}

.timeline-item { position: relative; }

.timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-1.75rem - 6px);
    top: 0.4rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-period {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.timeline-item p { color: var(--text-muted); font-size: 0.95rem; max-width: 72ch; }

/* ---------- Process steps ---------- */

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    counter-reset: step;
}

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--accent-strong);
    color: #04121c;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Formatos de contratação ---------- */

.engage {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.engage h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }

.engage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.engage-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
}

.engage-item h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.engage-item p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- About ---------- */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.about-grid p { color: var(--text-muted); max-width: 72ch; margin-bottom: 1rem; }
.about-grid p:first-of-type { color: var(--text); }
.about-location { font-size: 0.9rem; color: var(--accent) !important; }

.about-photo {
    aspect-ratio: 4 / 5;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    overflow: hidden;
}

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

@media (max-width: 760px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-photo { max-width: 280px; }
}

/* ---------- Trajetória: histórico antigo recolhível ---------- */

.timeline-more { border: none; padding: 0; }

.timeline-more > summary {
    cursor: pointer;
    list-style: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0.5rem 0 1rem;
}
.timeline-more > summary::-webkit-details-marker { display: none; }
.timeline-more > summary::before { content: "+ "; }
.timeline-more[open] > summary::before { content: "− "; }

.timeline-more .timeline {
    border-left: 2px solid var(--border);
    padding-left: 1.75rem;
}

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 0.75rem; max-width: 780px; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }

.faq-item[open] summary { color: var(--accent); }
.faq-item p { color: var(--text-muted); padding-top: 0.75rem; font-size: 0.95rem; }

/* ---------- Contact ---------- */

.section-contact { background: var(--bg-alt); }

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.contact-form { display: grid; gap: 1rem; }

.contact-form label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; }

.contact-form input,
.contact-form textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 0.7rem 0.9rem;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent-strong);
    outline-offset: 1px;
    border-color: transparent;
}

.contact-form .invalid { border-color: var(--error); }

.field-error {
    color: var(--error);
    font-weight: 400;
    font-size: 0.85rem;
}

.contact-form button[disabled] { opacity: 0.7; cursor: wait; }

.next-steps {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: 0.5rem;
}

.next-steps h3 { font-size: 0.95rem; margin-bottom: 0.7rem; }

.next-steps ol {
    list-style: none;
    counter-reset: next;
    display: grid;
    gap: 0.6rem;
}

.next-steps li {
    counter-increment: next;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    gap: 0.6rem;
}

.next-steps li::before {
    content: counter(next);
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.contact-links { display: grid; gap: 0.9rem; }

.flash {
    border-radius: var(--radius);
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.flash-success { background: rgba(52, 211, 153, 0.12); color: var(--success); border: 1px solid var(--success); }
.flash-error { background: rgba(248, 113, 113, 0.12); color: var(--error); border: 1px solid var(--error); }

/* ---------- Blog ---------- */

.blog-main { padding: clamp(3rem, 7vw, 4.5rem) 0 2rem; }
.blog-main .container { max-width: 780px; }

.blog-heading { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }

.blog-empty { color: var(--text-muted); padding: 2rem 0; }

.post-list { display: grid; gap: 1.5rem; margin-top: 2rem; }

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
}

.post-card h2 { font-size: 1.3rem; margin: 0.3rem 0 0.5rem; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }

.post-date { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.post-excerpt { color: var(--text-muted); font-size: 0.95rem; }

.post { padding-bottom: 2rem; }
.post .post-date { margin: 0.5rem 0 2rem; color: var(--text-muted); }

.post-body { font-size: 1.05rem; line-height: 1.75; }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote { margin-bottom: 1.25rem; }
.post-body h2 { font-size: 1.5rem; margin: 2.2rem 0 0.8rem; }
.post-body h3 { font-size: 1.2rem; margin: 1.8rem 0 0.6rem; }
.post-body ul, .post-body ol { padding-left: 1.5rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body img { max-width: 100%; border-radius: var(--radius); }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.post-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.5rem 1.25rem;
    background: var(--surface);
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
}

.post-body code {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.1rem 0.4rem;
    font-size: 0.9em;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.post-body pre {
    background: #0a1118;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.post-body pre code { background: none; border: none; padding: 0; font-size: 0.88rem; line-height: 1.6; }

.blog-cta { text-align: center; }
.blog-cta .section-subtitle { margin: 0.5rem auto 1.5rem; }

.btn-danger { border-color: var(--error); color: var(--error); }

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
    .contact-grid { grid-template-columns: 1fr; }
    .site-nav { gap: 0.9rem; font-size: 0.88rem; }
    .footer-inner { flex-direction: column; }
}

/* ================= Fase 2 UX — header mobile, idioma, stats, casos, blog v2, footer ================= */

/* ---------- H8: navegação mobile (checkbox-hack, sem JS) ---------- */

.header-inner { position: relative; }

.nav-check,
.nav-burger { display: none; }

.nav-burger {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}
.nav-burger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

@media (max-width: 760px) {
    .nav-burger { display: flex; }
    .nav-check {
        display: block;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        width: 2.6rem;
        height: 2.6rem;
        margin: 0;
        opacity: 0;
        z-index: 12;
        cursor: pointer;
    }
    .nav-check:focus-visible ~ .nav-burger {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }
    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        padding: 0.9rem 0 0.5rem;
    }
    .nav-check:checked ~ .site-nav { display: flex; }
}

/* ---------- H7: seletor de idioma único ---------- */

.lang-menu { position: relative; }
.lang-menu summary {
    list-style: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--text); }
.lang-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    display: grid;
    min-width: 8.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem;
    z-index: 20;
}
.lang-menu-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
}
.lang-menu-list a:hover { background: var(--bg-alt); color: var(--text); }

@media (max-width: 760px) {
    .lang-menu-list { position: static; margin-top: 0.4rem; }
}

/* ---------- H2: faixa de números ---------- */

.stats {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat {
    padding: 1.4rem 1rem;
    text-align: center;
    display: grid;
    gap: 0.15rem;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat-n {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}
.stat-label { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 760px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: none; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- H4: mini-casos ---------- */

.case-tag {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}
.case-card p:last-child { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- H5: Do blog na home ---------- */

.fromblog-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.fromblog-head a { font-weight: 600; text-decoration: none; }
.fromblog-head a:hover { text-decoration: underline; }

#fromblog .post-card h3 a { color: var(--text); text-decoration: none; }
#fromblog .post-card h3 a:hover { color: var(--accent); }

/* ---------- H6: footer completo ---------- */

.footer-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--border);
}
.footer-col { display: grid; gap: 0.45rem; align-content: start; }
.footer-col .logo { font-size: 1.05rem; }
.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    justify-self: start;
}
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.footer-muted { color: var(--text-muted); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.4rem;
}
.footer-langs a, .footer-langs span { margin-left: 0.8rem; }
.footer-langs span { color: var(--text); font-weight: 600; }
.footer-langs a { color: var(--text-muted); }

@media (max-width: 760px) {
    .footer-cols { grid-template-columns: 1fr; gap: 1.6rem; }
    .footer-langs a:first-child { margin-left: 0; }
}

/* ---------- B1/B3: chips de categoria e metadados ---------- */

.chip {
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.15rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}
a.chip:hover { color: var(--text); border-color: var(--text-muted); }
.chip-active {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #04121c;
}
a.chip-active:hover { color: #04121c; border-color: var(--accent); background: var(--accent); }

.cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 0.5rem;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* ---------- B2: destaque + grade ---------- */

.post-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 1.5rem;
}
.post-featured-text { padding: 1.8rem; }
.post-featured-text h2 { font-size: 1.5rem; margin: 0.4rem 0 0.6rem; }
.post-featured-text h2 a { color: var(--text); text-decoration: none; }
.post-featured-text h2 a:hover { color: var(--accent); }
.post-featured-cover { display: block; min-height: 100%; }
.post-featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}
.post-grid .post-card h3 { font-size: 1.05rem; }
.post-grid .post-card h3 a { color: var(--text); text-decoration: none; }
.post-grid .post-card h3 a:hover { color: var(--accent); }

@media (max-width: 760px) {
    .post-featured { grid-template-columns: 1fr; }
    .post-featured-cover { max-height: 200px; }
    .post-grid { grid-template-columns: 1fr; }
}

/* ---------- B5: paginação ---------- */

.pagination {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

/* ---------- B4: captura de e-mail ---------- */

.subscribe {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    margin-top: 2.5rem;
}
.subscribe h2 { font-size: 1.3rem; }
.subscribe .footer-muted { margin: 0.3rem 0 1rem; font-size: 0.95rem; }
.subscribe-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
    flex: 1 1 240px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    font-family: var(--font);
}
.subscribe-form input[type="email"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- B6: cabeçalho do artigo ---------- */

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.post-author-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0 1.8rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.post-author-line p { line-height: 1.4; }

.avatar-mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.05rem; }

/* ---------- B7: tipografia de leitura ---------- */

.post-body { max-width: 68ch; }
.post-body h2, .post-body h3 {
    border-left: 4px solid var(--accent);
    padding-left: 0.75rem;
    scroll-margin-top: 5rem;
}

/* ---------- B8: sumário ---------- */

.container-wide { max-width: 1080px; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }

.toc-desktop { display: none; }
.toc-mobile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.8rem;
}
.toc-mobile summary { cursor: pointer; font-weight: 700; }
.toc-mobile ol, .toc-desktop ol {
    list-style: none;
    padding: 0.6rem 0 0;
    display: grid;
    gap: 0.45rem;
}
.toc-mobile a, .toc-desktop a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.toc-mobile a:hover, .toc-desktop a:hover { color: var(--text); }
.toc-l3 { padding-left: 0.9rem; }
.toc-desktop a.active { color: var(--accent); font-weight: 700; }

@media (min-width: 1000px) {
    .post-layout.has-toc { grid-template-columns: minmax(0, 1fr) 230px; }
    .post-layout.has-toc .toc-desktop { display: block; }
    .post-layout.has-toc .toc-mobile { display: none; }
    .toc-inner { position: sticky; top: 5.5rem; }
}

/* ---------- B9: CTA no meio do artigo ---------- */

.cta-mid {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    margin: 2rem 0;
}
.cta-mid p { font-weight: 700; margin-bottom: 0.9rem; }

/* ---------- B10: compartilhar + autor ---------- */

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}
.post-share span { color: var(--text-muted); font-weight: 600; }
.btn-copy {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--accent);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
}
.btn-copy:hover { border-color: var(--accent); }

.author-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.7rem;
    margin-top: 1.8rem;
}
.author-card .footer-muted { font-size: 0.95rem; margin: 0.3rem 0 0.6rem; }
.author-links a { margin-right: 1.1rem; font-weight: 600; text-decoration: none; }
.author-links a:hover { text-decoration: underline; }

/* ---------- B11: continue lendo ---------- */

.related { margin-top: 3rem; }
.related > h2 { font-size: 1.4rem; margin-bottom: 0.8rem; }

/* ---------- B12: barra de progresso ---------- */

#read-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--accent);
    z-index: 200;
}

.toc-l4 { padding-left: 0.9rem; }
.post-body h4 { scroll-margin-top: 5rem; }
