:root {
    --bg: #FAF8F5;
    --surface: #FFFFFF;
    --surface-soft: #F3EFE8;
    --border: #E6E1D8;
    --text: #1F2421;
    --text-muted: #5A645E;
    --accent: #4A7856;
    --accent-dark: #385E42;
    --accent-soft: #EAF1EC;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 10px rgba(31, 36, 33, 0.04);
    --shadow-md: 0 10px 30px rgba(31, 36, 33, 0.07);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
    padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: all 0.2s ease;
}
.btn-sm { padding: 8px 15px; font-size: 0.875rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-soft); }

.icon-btn {
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    width: 40px; height: 40px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s ease; font-size: 1.2rem;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 248, 245, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--accent-soft); color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--text); }
.brand-text small { font-size: 0.75rem; color: var(--text-muted); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
    padding: 7px 13px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
    color: var(--text-muted); transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.is-active { background: var(--accent-soft); color: var(--accent-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.mobile-menu-btn { display: none; }

.search-drawer {
    border-top: 1px solid var(--border); background: var(--surface); padding: 16px 0;
}
.search-form { display: flex; gap: 10px; max-width: 680px; margin: 0 auto; }
.search-form input {
    flex: 1; padding: 11px 16px; border: 1px solid var(--border); border-radius: 999px;
    font-family: var(--font-sans); font-size: 0.95rem; background: var(--bg); color: var(--text);
}
.search-form input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.mobile-drawer {
    border-top: 1px solid var(--border); background: var(--surface); padding: 18px 0 24px;
}
.mobile-drawer__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 12px 0 8px; }
.mobile-drawer__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mobile-drawer__links a {
    padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg);
    font-weight: 500; font-size: 0.92rem;
}

/* Badges & Tags */
.cat-pill {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-dark);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
}

/* Hero */
.hero-section { padding: 36px 0 24px; }
.hero-card {
    display: grid; grid-template-columns: 1.25fr 1fr;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.hero-card__media { position: relative; min-height: 360px; background: var(--surface-soft); }
.hero-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-card__body {
    padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.hero-card__title {
    font-family: var(--font-serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.2; margin: 0; color: var(--text);
}
.hero-card__excerpt { margin: 0; color: var(--text-muted); font-size: 1rem; }
.hero-card__meta { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }

/* Category Strip */
.category-strip { padding: 16px 0 28px; }
.category-strip__grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.category-tile {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 16px 14px;
    transition: all 0.2s ease; display: flex; flex-direction: column; gap: 4px;
}
.category-tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.category-tile strong { font-size: 0.96rem; color: var(--text); }
.category-tile span { font-size: 0.78rem; color: var(--text-muted); }
.category-tile__count {
    margin-top: 6px; font-size: 0.74rem; font-weight: 600;
    color: var(--accent-dark); background: var(--accent-soft);
    display: inline-block; padding: 2px 9px; border-radius: 999px; width: fit-content;
}

/* Highlights & Recommendations */
.highlights-section { padding: 8px 0 28px; }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.highlight-mini {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px;
    display: flex; gap: 14px; align-items: center; transition: all 0.2s ease;
}
.highlight-mini:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.highlight-mini__thumb {
    width: 84px; height: 84px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0; background: var(--surface-soft);
}
.highlight-mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.highlight-mini__title {
    font-family: var(--font-serif); font-size: 0.98rem; line-height: 1.3; margin: 4px 0 0;
}

.recommendations-section { margin: 42px 0 18px; }
.recommendations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rec-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column;
    transition: all 0.2s ease;
}
.rec-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.rec-card__media { aspect-ratio: 16 / 10; background: var(--surface-soft); overflow: hidden; }
.rec-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rec-card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rec-card__title { font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.3; margin: 0; }

/* Pagination */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 8px; flex-wrap: wrap; margin: 36px 0 12px;
}
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 14px;
    border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.9rem;
    transition: all 0.2s ease;
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Section Header */
.section-header {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; margin: 16px 0 22px;
}
.section-header h2 {
    font-family: var(--font-serif); font-size: 1.65rem; margin: 0;
}
.section-header p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* Article Grid */
.articles-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.article-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden;
    display: flex; flex-direction: column; transition: all 0.22s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D5CFC4; }
.article-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-soft); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.article-card:hover .article-card__media img { transform: scale(1.03); }
.article-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card__title {
    font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.3; margin: 0;
}
.article-card__excerpt { margin: 0; font-size: 0.92rem; color: var(--text-muted); flex: 1; }
.article-card__footer {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.8rem; color: var(--text-muted); padding-top: 10px; border-top: 1px solid var(--surface-soft);
}

/* AdSense Container (limpo, sem poluição visual) */
.ad-slot {
    margin: 28px 0; padding: 14px; background: var(--surface-soft);
    border: 1px dashed #D8D2C5; border-radius: var(--radius-md);
    text-align: center; min-height: 110px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.ad-slot__label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted);
}
.ad-slot__placeholder { font-size: 0.85rem; color: var(--text-muted); }

/* Editorial Callout */
.editorial-callout {
    margin: 44px 0; padding: 34px; background: var(--accent-soft);
    border-radius: var(--radius-lg); display: flex; align-items: center;
    justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.editorial-callout h2 { font-family: var(--font-serif); margin: 0 0 6px; font-size: 1.5rem; }
.editorial-callout p { margin: 0; color: var(--text-muted); max-width: 600px; }

/* Article Single Page */
.article-shell { padding: 28px 0 56px; }
.breadcrumbs {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px;
}
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }

.article-header { max-width: 820px; margin: 0 auto 26px; text-align: left; }
.article-header h1 {
    font-family: var(--font-serif); font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    line-height: 1.18; margin: 14px 0 14px;
}
.article-lead { font-size: 1.12rem; color: var(--text-muted); margin: 0 0 18px; }
.article-meta {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    font-size: 0.88rem; color: var(--text-muted);
}

.article-cover {
    max-width: 980px; margin: 0 auto 32px;
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
    aspect-ratio: 16 / 9; background: var(--surface-soft);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-layout {
    max-width: 820px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px 44px; box-shadow: var(--shadow-sm);
}

.article-toc {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 28px;
}
.article-toc strong { display: block; margin-bottom: 8px; font-size: 0.92rem; color: var(--accent-dark); }
.article-toc ul { margin: 0; padding-left: 18px; }
.article-toc li { margin: 4px 0; font-size: 0.9rem; }
.article-toc a:hover { color: var(--accent); text-decoration: underline; }

.article-prose { font-size: 1.05rem; line-height: 1.78; color: var(--text); }
.article-prose h2 {
    font-family: var(--font-serif); font-size: 1.55rem; margin: 32px 0 12px; line-height: 1.3;
    scroll-margin-top: 90px;
}
.article-prose h3 { font-size: 1.18rem; margin: 22px 0 8px; color: var(--accent-dark); }
.article-prose p { margin: 0 0 16px; }
.article-prose ul, .article-prose ol { margin: 0 0 18px; padding-left: 22px; }
.article-prose li { margin-bottom: 8px; }
.tip-box {
    background: var(--accent-soft); border-left: 4px solid var(--accent);
    padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 22px 0; font-size: 0.97rem;
}
.warning-box {
    background: #FDF4EC; border-left: 4px solid #C86D2D;
    padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 22px 0; font-size: 0.97rem; color: #4A2810;
}
.article-figure {
    margin: 28px 0; border-radius: var(--radius-md); overflow: hidden;
    border: 1px solid var(--border); background: var(--bg);
}
.article-figure img { width: 100%; max-height: 440px; object-fit: cover; }
.article-figure figcaption {
    padding: 10px 16px; font-size: 0.85rem; color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.faq-section { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--border); }
.faq-section h2 { font-family: var(--font-serif); font-size: 1.55rem; margin: 0 0 16px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px 18px;
}
.faq-item summary {
    font-weight: 600; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); font-weight: 700; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 12px 0 0; font-size: 0.96rem; color: var(--text-muted); line-height: 1.68; }

.sources-box {
    margin-top: 32px; padding: 20px 24px; background: var(--bg);
    border: 1px solid var(--border); border-radius: var(--radius-md);
}
.sources-box h2 { font-family: var(--font-serif); font-size: 1.2rem; margin: 0 0 10px; }
.sources-box ul { margin: 0; padding-left: 18px; font-size: 0.9rem; color: var(--text-muted); }
.sources-box li { margin-bottom: 6px; }
.sources-box a { color: var(--accent-dark); text-decoration: underline; }

.author-box {
    margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border);
    display: flex; gap: 16px; align-items: center;
}
.author-avatar {
    width: 54px; height: 54px; border-radius: 999px; background: var(--accent);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}
.author-box h3 { margin: 0 0 4px; font-size: 1rem; }
.author-box p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

.related-section { margin-top: 48px; }

/* Static & Legal Pages */
.page-hero { padding: 36px 0 20px; }
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 10px 0 8px; }
.page-hero p { color: var(--text-muted); max-width: 700px; margin: 0; }

.prose-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 40px; margin: 20px 0 56px;
    max-width: 880px; box-shadow: var(--shadow-sm);
}
.prose-card h2 { font-family: var(--font-serif); font-size: 1.4rem; margin: 26px 0 10px; }
.prose-card h2:first-child { margin-top: 0; }
.prose-card p, .prose-card li { color: var(--text); }
.prose-card a { color: var(--accent-dark); text-decoration: underline; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; margin: 24px 0 56px; }
.form-card, .info-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 0.95rem;
    background: var(--bg); color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 2px solid var(--accent-soft); border-color: var(--accent);
}
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; }
.alert-success { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #C5DACB; }
.alert-error { background: #FBEAEA; color: #8B2626; border: 1px solid #EBC6C6; }

/* Footer */
.site-footer {
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 48px 0 28px; margin-top: 40px;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
}
.footer-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 14px; max-width: 320px; }
.footer-heading { font-size: 0.9rem; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-link-btn {
    color: var(--text-muted); font-size: 0.9rem; background: none; border: 0;
    padding: 0; font-family: inherit; cursor: pointer; text-align: left;
}
.footer-links a:hover, .footer-link-btn:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
    margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--surface-soft);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
    font-size: 0.84rem; color: var(--text-muted);
}

/* Cookie Banner & Modal */
.cookie-banner {
    position: fixed; bottom: 18px; left: 18px; right: 18px; z-index: 900;
    max-width: 980px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: 0 18px 45px rgba(0,0,0,0.14);
    padding: 20px 24px;
}
.cookie-banner__content { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-banner__text { flex: 1; min-width: 260px; }
.cookie-banner__text strong { display: block; margin-bottom: 4px; font-size: 0.98rem; }
.cookie-banner__text p { margin: 0; font-size: 0.86rem; color: var(--text-muted); }
.cookie-banner__text a { color: var(--accent-dark); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cookie-modal { position: fixed; inset: 0; z-index: 950; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal[hidden], .cookie-banner[hidden] { display: none; }
.cookie-modal__backdrop { position: fixed; inset: 0; background: rgba(20, 24, 21, 0.52); }
.cookie-modal__panel {
    position: relative; z-index: 2; width: 100%; max-width: 540px;
    background: var(--surface); border-radius: var(--radius-lg); padding: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.cookie-modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cookie-modal__header h2 { font-family: var(--font-serif); margin: 0; font-size: 1.35rem; }
.cookie-option {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 0; border-bottom: 1px solid var(--surface-soft);
}
.cookie-option strong { display: block; font-size: 0.94rem; }
.cookie-option p { margin: 2px 0 0; font-size: 0.82rem; color: var(--text-muted); }
.badge-fixed { font-size: 0.75rem; font-weight: 600; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.cookie-modal__footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* Responsive */
@media (max-width: 980px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: inline-flex; }
    .hero-card { grid-template-columns: 1fr; }
    .hero-card__media { min-height: 240px; }
    .category-strip__grid { grid-template-columns: repeat(3, 1fr); }
    .highlights-grid { grid-template-columns: 1fr; }
    .recommendations-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .category-strip__grid { grid-template-columns: repeat(2, 1fr); }
    .recommendations-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .article-layout, .prose-card { padding: 24px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
}
