/* ========================================
   Renata Marchese — Site Pessoal
   Paleta: Preto & Dourado (Berry como segunda voz)
   Fonte canônica: rmm/identidade_visual
   ======================================== */

/* --- Variáveis --- */
:root {
    --bg:          #FAF7F5;   /* creme — fundo claro */
    --bg-alt:      #F3EDE3;   /* creme alternado */
    /* Escala ink NEUTRA da plataforma_educ (DESIGN.md) — preto de verdade, sem marrom */
    --bg-dark:     #0A0A0A;   /* ink-950 — fundo escuro (hero, contato, footer) */
    --ink-900:     #121212;   /* ink-900 — cards sobre escuro */
    --ink-800:     #171717;   /* ink-800 — seções escuras */
    --ink-700:     #1F1F1F;   /* ink-700 — bordas sobre escuro */
    --ink-600:     #2A2A2A;   /* ink-600 — hover sutil */

    /* Dourado — TEXTO no creme usa o profundo (AA); fills/botões usam o vivo */
    --accent:      #8A6D1B;   /* dourado profundo — texto/links sobre creme (4,6:1) */
    --accent-light:#B8941E;   /* hover de texto dourado */
    --accent-pale: #EFE6CF;   /* badges/bordas em dourado pálido */
    --gold:        #D4AF37;   /* dourado vivo — botões, divisores, molduras */
    --gold-claro:  #E0BE55;   /* texto dourado sobre escuro (10,3:1) */

    /* Berry — segunda voz (tags, badge Educação, detalhe pessoal) */
    --berry:       #B83D71;   /* fill/tag */
    --berry-text:  #7C2E50;   /* texto berry sobre creme (8,3:1) */
    --berry-light: #DD7FA8;   /* texto berry sobre escuro (6,8:1) */

    --text:        #2D2620;   /* texto principal sobre creme */
    --text-muted:  #6B6258;   /* texto secundário sobre creme */
    --text-on-dark:#FAF7F5;   /* texto sobre escuro (creme da marca) */
    --muted-on-dark:#A3A3A3;  /* secundário sobre escuro (cinza neutro da plataforma) */
    --white:       #FFFFFF;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, sans-serif;

    --max-width:   1100px;
    --nav-height:  72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Foco visível (acessibilidade por teclado) */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.btn:focus-visible,
.contact-card:focus-visible,
.project-card:focus-visible,
.blog-card:focus-visible,
.home-post:focus-visible {
    outline-offset: 4px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 12px;
    background: var(--accent);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 2000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
    color: var(--white);
}

strong {
    font-weight: 600;
    color: var(--accent);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navegação --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s ease;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--ink-700);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.nav-logo:hover {
    color: var(--gold-claro);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-on-dark);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold-claro);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    background: var(--bg-dark);
}

.hero-content {
    max-width: 700px;
}

.hero-greeting {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-claro);
    margin-bottom: 22px;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-on-dark);
    margin-bottom: 24px;
}

.hero-divider {
    width: 64px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 24px;
}

.hero-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--gold-claro);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--muted-on-dark);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Botões */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg-dark);
    border: 1.5px solid var(--gold);
}

.btn-primary:hover {
    background: var(--gold-claro);
    border-color: var(--gold-claro);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent-pale);
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
}

/* Outline sobre fundo escuro (hero) */
.hero .btn-outline {
    color: var(--gold-claro);
    border-color: var(--accent);
}

.hero .btn-outline:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.10);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 2.5s ease-in-out infinite;
}

.hero-scroll a {
    color: var(--muted-on-dark);
    transition: color 0.3s ease;
}

.hero-scroll a:hover {
    color: var(--gold-claro);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Seções --- */
.section {
    padding: 100px 0;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-bottom: 56px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 42px;
    height: 2px;
    background: var(--gold);
    margin: 16px auto 0;
}

/* --- Sobre --- */
.about-photo-row {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}

.about-photo {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(22, 19, 15, 0.15);
    aspect-ratio: 4 / 5;
    max-width: 420px;
    justify-self: center;
    width: 100%;
}

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

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text);
}

.about-lead {
    font-size: 1.15rem !important;
    font-weight: 400;
    line-height: 1.8;
}

.about-closing {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem !important;
    color: var(--accent);
    margin-top: 8px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.highlight-card {
    background: var(--bg-alt);
    padding: 24px 16px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(22, 19, 15, 0.1);
}

.highlight-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.highlight-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* --- Timeline --- */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1.5px;
    background: var(--accent-pale);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 8px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--accent-pale);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(22, 19, 15, 0.15);
}

.timeline-content {
    background: var(--white);
    padding: 24px 28px;
    border-radius: 8px;
    border: 1px solid rgba(22, 19, 15, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(22, 19, 15, 0.08);
}

.timeline-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.timeline-badge.current {
    background: var(--accent-pale);
    color: var(--accent);
}

.timeline-badge.education {
    background: rgba(184, 61, 113, 0.14);
    color: var(--berry-text);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-role {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 2px;
}

.timeline-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--accent-pale);
}

/* --- Formação --- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.education-card {
    background: var(--bg-alt);
    padding: 28px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.education-card:hover {
    border-color: var(--accent-pale);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(22, 19, 15, 0.08);
}

.education-year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    background: var(--accent-pale);
    padding: 2px 10px;
    border-radius: 20px;
}

.education-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.education-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Certificações */
.certifications {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--accent-pale);
}

.certifications-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.cert-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cert-tag {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    background: var(--accent-pale);
    padding: 8px 20px;
    border-radius: 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cert-tag:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* --- Projetos --- */
.projects-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-weight: 300;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.projects-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(22, 19, 15, 0.08);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent-pale);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(22, 19, 15, 0.1);
}

.project-card-link {
    cursor: pointer;
    color: var(--text);
}

.project-card-link:hover {
    border-color: var(--accent);
    color: var(--text);
}

.project-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-pale);
    color: var(--accent);
    margin-bottom: 16px;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.project-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
}

.project-status.coming-soon {
    background: var(--bg);
    color: var(--text-muted);
}

.project-status.active {
    background: var(--accent-pale);
    color: var(--accent);
}

/* --- Contato --- */
.contact-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-weight: 300;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    padding: 32px 24px;
    border-radius: 8px;
    border: 1px solid rgba(22, 19, 15, 0.08);
    transition: all 0.3s ease;
    color: var(--text);
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(22, 19, 15, 0.12);
    color: var(--text);
}

.contact-card svg {
    color: var(--accent);
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.contact-card:hover svg {
    transform: scale(1.1);
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
}

/* Contato sobre fundo escuro (âncora premium do fim da home) */
#contato {
    background: var(--bg-dark);
}

#contato .section-title {
    color: var(--text-on-dark);
}

#contato .contact-intro {
    color: var(--muted-on-dark);
}

#contato .contact-card {
    background: var(--ink-900);
    border-color: var(--ink-700);
    color: var(--text-on-dark);
}

#contato .contact-card:hover {
    border-color: var(--gold);
    color: var(--text-on-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

#contato .contact-card svg {
    color: var(--gold);
}

#contato .contact-label {
    color: var(--muted-on-dark);
}

#contato .contact-value {
    color: var(--gold-claro);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 32px 24px;
    font-size: 0.8rem;
    color: var(--muted-on-dark);
    background: var(--bg-dark);
    border-top: 1px solid var(--ink-700);
}

/* --- Animações --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Cabeçalho de página interna (sobre, etc.) --- */
.section-page-header {
    padding: 140px 0 60px;
    text-align: center;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.10) 0%, transparent 50%),
        var(--bg);
}

.section-page-header .section-title {
    margin-bottom: 16px;
}

.page-breadcrumb {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.page-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-breadcrumb a:hover {
    color: var(--accent-light);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 16px auto 0;
    line-height: 1.7;
    font-weight: 300;
}

/* --- Bloco de prosa (texto longo centralizado) --- */
.prose {
    max-width: 760px;
    margin: 0 auto;
}

.prose p {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.85;
    margin-bottom: 20px;
}

.prose p strong {
    color: var(--text);
    font-weight: 600;
}

.prose p em {
    font-style: italic;
    color: var(--accent);
}

/* --- Link "saiba mais" da home pra /sobre --- */
.about-more {
    text-align: center;
    margin-top: 32px;
}

.about-more a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.about-more a:hover {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

/* --- Responsivo --- */
@media (max-width: 768px) {

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 16px 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 14px 24px;
    }

    .section {
        padding: 72px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .about-photo-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }

    .hero-tagline br {
        display: none;
    }

    .hero-name {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .section-page-header {
        padding: 110px 0 40px;
    }

    .page-subtitle {
        font-size: 1rem;
        padding: 0 16px;
    }

    .prose p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cert-tags {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   Últimos textos (home)
   ======================================== */
.home-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.home-post {
    display: block;
    background: var(--white);
    border: 1px solid rgba(22, 19, 15, 0.08);
    border-radius: 8px;
    padding: 28px;
    color: var(--text);
    transition: all 0.3s ease;
}

.home-post:hover {
    border-color: var(--accent-pale);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(22, 19, 15, 0.1);
    color: var(--text);
}

.home-post-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--berry-text);
    background: rgba(184, 61, 113, 0.12);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.home-post h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.home-post p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.home-post-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.home-posts-footer {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .home-posts {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(22, 19, 15, 0.08);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
    border-color: var(--accent-pale);
    box-shadow: 0 4px 20px rgba(22, 19, 15, 0.06);
}

.faq-item summary {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 32px;
    line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--accent-pale);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.faq-item p a {
    text-decoration: underline;
    text-decoration-color: var(--accent-pale);
    text-underline-offset: 3px;
}

/* ========================================
   Blog
   ======================================== */

/* --- Blog listing --- */
.blog-hero {
    padding: 140px 24px 60px;
    text-align: center;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.10) 0%, transparent 50%),
        var(--bg);
}

.blog-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.blog-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.blog-list {
    padding: 48px 0 100px;
}

.blog-card {
    display: block;
    background: var(--white);
    border: 1px solid rgba(22, 19, 15, 0.08);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    color: var(--text);
}

.blog-card:hover {
    border-color: var(--accent-pale);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(22, 19, 15, 0.1);
    color: var(--text);
}

.blog-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--berry-text);
    background: rgba(184, 61, 113, 0.12);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.blog-card h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
}

/* --- Blog post (article) --- */
.post-header {
    padding: 140px 24px 48px;
    text-align: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(184, 61, 113, 0.06) 0%, transparent 50%),
        var(--bg);
}

.post-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--berry-text);
    background: rgba(184, 61, 113, 0.12);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.post-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.post-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 20px;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.post-divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto;
}

/* Article body */
.post-body {
    padding: 48px 0 80px;
}

.post-body p {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
    margin: 3rem 0 1rem;
    position: relative;
}

.post-body h2::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent);
    margin-top: 8px;
}

.post-body h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 0.75rem;
}

.post-body strong {
    font-weight: 700;
    color: var(--text);
}

.post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-pale);
    text-underline-offset: 3px;
}

.post-body a:hover {
    color: var(--accent-light);
}

/* Callout box */
.callout {
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.callout p {
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
}

.callout p:last-child {
    margin-bottom: 0 !important;
}

.callout-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

/* Personal aside */
.aside-personal {
    background: var(--white);
    border: 1px solid rgba(22, 19, 15, 0.12);
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.aside-personal::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 1rem;
    border-radius: 2px;
}

.aside-personal p {
    color: var(--text-muted) !important;
}

/* Numbered steps */
.post-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}

.post-steps li {
    counter-increment: step;
    padding: 1.25rem 0 1.25rem 3.5rem;
    position: relative;
    border-bottom: 1px solid var(--accent-pale);
}

.post-steps li:last-child {
    border-bottom: none;
}

.post-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1.25rem;
    width: 2.2rem;
    height: 2.2rem;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-steps li strong {
    font-family: var(--font-body);
    display: block;
    margin-bottom: 0.25rem;
}

.post-steps li p {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
}

/* CTA block */
.post-cta {
    background: var(--text);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
}

.post-cta h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white) !important;
    margin-bottom: 0.75rem;
}

.post-cta h3::after {
    display: none;
}

.post-cta p {
    color: #bbb !important;
    font-size: 0.95rem !important;
}

/* Back link */
.post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.post-back:hover {
    color: var(--accent);
}

/* --- Selection color --- */
::selection {
    background: var(--accent-pale);
    color: var(--text);
}

/* --- Blog responsive --- */
@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 24px 40px;
    }

    .post-header {
        padding: 120px 24px 36px;
    }

    .post-body h2 {
        font-size: 1.35rem;
    }

    .post-steps li {
        padding-left: 3rem;
    }

    .post-steps li::before {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }

    .post-cta {
        padding: 2rem 1.5rem;
    }
}

/* --- Cursos na página inicial (grade gerada por gerador/gerar_cursos.py) --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.course-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 24px 22px 20px;
    border-radius: 8px;
    border: 1px solid rgba(22, 19, 15, 0.08);
    border-top: 4px solid var(--cor, var(--gold));
    color: var(--text);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(22, 19, 15, 0.1);
    color: var(--text);
}

.course-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.course-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.course-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.course-meta strong {
    color: var(--text);
    font-weight: 600;
}

.course-nota {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--accent-pale);
    color: var(--accent);
}

.courses-more {
    text-align: center;
    margin: 40px 0 0;
}

.courses-extra {
    max-width: 440px;
    margin: 56px auto 0;
}

@media (max-width: 1024px) {
    .courses-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 640px) {
    .courses-grid { grid-template-columns: 1fr; }
}

.courses-extra .project-card {
    display: block;
}

.course-nota {
    margin-left: 0;
    margin-top: 6px;
}

.course-meta strong::after {
    content: "";
    display: block;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .education-grid { grid-template-columns: 1fr 1fr; }
}
