:root {
    --color-white: #FFFFFF;
    --color-off-white: #F8F8F5;
    --color-border: #E5E5E5;
    --color-muted: #6B6B6B;
    --color-text: #1F1F1F;

    --font-title: "Merriweather", Georgia, serif;
    --font-body: "Source Sans 3", Arial, sans-serif;

    --container: 1180px;
    --container-narrow: 820px;

    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --shadow-soft: 0 24px 70px rgba(31, 31, 31, 0.08);
    --shadow-card: 0 18px 50px rgba(31, 31, 31, 0.07);
}

/* Reset básico */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin-top: 0;
}

ul,
ol {
    padding-left: 1.25rem;
}

button,
input,
textarea,
select {
    font: inherit;
}

::selection {
    background: var(--color-text);
    color: var(--color-white);
}

/* Tipografia */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    color: var(--color-text);
    line-height: 1.18;
    margin-top: 0;
    font-weight: 900;
}

h1 {
    font-size: clamp(2.55rem, 5vw, 5rem);
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(2rem, 3vw, 3.15rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 1.65rem;
}

h4 {
    font-size: 1.35rem;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.container.narrow {
    width: min(100% - 40px, var(--container-narrow));
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    gap: 32px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    max-height: 58px;
    width: auto;
}

.site-title {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.primary-menu,
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.primary-menu a {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--color-muted);
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 22px;
    border-left: 1px solid var(--color-border);
}

.header-socials a {
    font-size: 0.88rem;
    color: var(--color-muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

.header-socials a:hover {
    color: var(--color-text);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text);
    margin: 4px auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* Layout principal */
.site-main {
    min-height: 70vh;
}

/* Botões */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button-primary {
    background: var(--color-text);
    color: var(--color-white);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.button-secondary {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
}

.button-secondary:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Eyebrow */
.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Hero Home */
.hero-section {
    padding: 96px 0 72px;
    background:
        radial-gradient(circle at top right, rgba(229, 229, 229, 0.65), transparent 34%),
        var(--color-off-white);
    border-bottom: 1px solid var(--color-border);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 56px;
    align-items: center;
}

.hero-content p {
    max-width: 680px;
    margin-bottom: 32px;
    color: var(--color-muted);
    font-size: 1.22rem;
    line-height: 1.75;
}

.hero-card {
    position: relative;
    padding: 42px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius-lg) - 10px);
    pointer-events: none;
}

.hero-card-label {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-card h2 {
    position: relative;
    margin-bottom: 20px;
    font-size: clamp(2rem, 3vw, 3.5rem);
}

.hero-card p {
    position: relative;
    margin-bottom: 0;
    color: var(--color-muted);
}

/* Cabeçalhos de seção */
.featured-posts-section,
.blog-listing,
.page-content-section,
.contact-section {
    padding: 84px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 42px;
}

.section-heading p {
    color: var(--color-muted);
    font-size: 1.12rem;
}

.section-action {
    margin-top: 48px;
    text-align: center;
}

/* Page Hero */
.page-hero {
    padding: 90px 0;
    background: var(--color-off-white);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.page-hero.compact {
    padding: 70px 0;
}

.page-hero p {
    max-width: 760px;
    margin: 18px auto 0;
    color: var(--color-muted);
    font-size: 1.16rem;
}

/* Grid de posts */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* Card de post */
.post-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.post-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--color-off-white);
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 240px;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(31, 31, 31, 0.05), rgba(31, 31, 31, 0)),
        var(--color-off-white);
}

.post-card-placeholder span {
    font-family: var(--font-title);
    font-weight: 900;
    color: var(--color-muted);
}

.post-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.post-meta span + span::before {
    content: "•";
    margin-right: 10px;
    color: var(--color-border);
}

.post-meta.centered {
    justify-content: center;
}

.post-card h2 {
    margin-bottom: 14px;
    font-size: 1.45rem;
    letter-spacing: -0.025em;
}

.post-card h2 a {
    transition: color 0.2s ease;
}

.post-card h2 a:hover {
    color: var(--color-muted);
}

.post-card p {
    margin-bottom: 24px;
    color: var(--color-muted);
    font-size: 1rem;
}

.read-more {
    margin-top: auto;
    font-weight: 800;
    color: var(--color-text);
}

.read-more:hover {
    color: var(--color-muted);
}

/* Single Post */
.single-header {
    padding: 78px 0 42px;
    text-align: center;
    background: var(--color-off-white);
    border-bottom: 1px solid var(--color-border);
}

.single-header h1 {
    margin-bottom: 20px;
}

.single-excerpt {
    max-width: 720px;
    margin: 0 auto;
    color: var(--color-muted);
    font-size: 1.22rem;
}

.single-featured-image {
    margin-top: 56px;
}

.single-featured-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.single-content {
    padding: 62px 0 24px;
}

.single-content > *:first-child {
    margin-top: 0;
}

.single-content p,
.single-content li {
    color: var(--color-text);
    font-size: 1.12rem;
}

.single-content p {
    margin-bottom: 1.35em;
}

.single-content a {
    border-bottom: 1px solid currentColor;
    font-weight: 700;
}

.single-content blockquote {
    margin: 42px 0;
    padding: 28px 32px;
    border-left: 4px solid var(--color-text);
    background: var(--color-off-white);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: var(--font-title);
    font-size: 1.25rem;
    line-height: 1.65;
}

.single-content blockquote p:last-child {
    margin-bottom: 0;
}

.single-content figure {
    margin: 42px 0;
}

.single-content figcaption {
    margin-top: 10px;
    color: var(--color-muted);
    font-size: 0.92rem;
    text-align: center;
}

.single-content img {
    border-radius: var(--radius-md);
}

.single-content h2,
.single-content h3,
.single-content h4 {
    margin-top: 1.55em;
    margin-bottom: 0.6em;
}

.page-links {
    margin-top: 32px;
    font-weight: 700;
}

/* Tags do single */
.single-tags {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.single-tags > span {
    display: block;
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.single-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.single-tags-list a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-off-white);
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.single-tags-list a:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-white);
}

/* Navegação entre posts */
.post-navigation {
    margin: 56px 0 24px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.post-navigation a {
    display: block;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    font-family: var(--font-title);
    font-weight: 900;
    line-height: 1.35;
    transition: background 0.2s ease, transform 0.2s ease;
}

.post-navigation a:hover {
    background: var(--color-off-white);
    transform: translateY(-2px);
}

.post-navigation span {
    display: block;
    margin-bottom: 8px;
    color: var(--color-muted);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Páginas institucionais */
.page-content {
    color: var(--color-text);
}

.page-content > *:first-child {
    margin-top: 0;
}

.page-content p,
.page-content li {
    font-size: 1.1rem;
}

.page-content p {
    margin-bottom: 1.25em;
}

.page-content a {
    border-bottom: 1px solid currentColor;
    font-weight: 700;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: 1.6em;
    margin-bottom: 0.55em;
}

.legal-content {
    color: var(--color-muted);
}

.legal-content h2,
.legal-content h3 {
    color: var(--color-text);
}

/* Contato */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 30px;
    align-items: start;
}

.contact-card {
    padding: 34px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
}

.contact-card.light {
    background: var(--color-off-white);
    box-shadow: none;
}

.contact-card h2 {
    margin-bottom: 22px;
    font-size: 1.8rem;
}

.contact-card p {
    color: var(--color-muted);
}

.contact-card a {
    font-weight: 800;
    color: var(--color-text);
}

.contact-card a:hover {
    color: var(--color-muted);
}

/* Paginação */
.pagination {
    margin-top: 52px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-text);
    font-weight: 700;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-white);
}

/* Busca e 404 */
.error-404 {
    min-height: 58vh;
    display: flex;
    align-items: center;
}

/* Rodapé */
.site-footer {
    margin-top: 40px;
    background: var(--color-text);
    color: var(--color-white);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 40px;
    padding: 58px 0;
}

.footer-brand strong {
    display: inline-block;
    margin-bottom: 14px;
    font-family: var(--font-title);
    font-size: 1.4rem;
}

.footer-logo {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--color-white);
}

.footer-logo .custom-logo {
    max-height: 54px;
}

.footer-brand p {
    max-width: 520px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-navigation {
    justify-self: end;
}

.footer-menu {
    display: grid;
    gap: 10px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.footer-menu a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
}

/* Elementos nativos do WordPress */
.alignwide {
    width: min(100vw - 40px, 1040px);
    margin-left: calc((100% - min(100vw - 40px, 1040px)) / 2);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
    color: var(--color-muted);
    font-size: 0.92rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.bypostauthor {
    display: block;
}

/* Formulários */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea,
select {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(31, 31, 31, 0.18);
    outline-offset: 2px;
}

button,
input[type="submit"] {
    cursor: pointer;
}

/* Responsivo */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 720px;
    }

    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-navigation {
        justify-self: start;
    }
}

@media (max-width: 860px) {
    body {
        font-size: 17px;
    }

    .header-inner {
        min-height: 76px;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .main-navigation {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
        border-bottom: 1px solid var(--color-border);
        background: var(--color-white);
        box-shadow: var(--shadow-soft);
    }

    .main-navigation.is-open {
        display: flex;
    }

    .primary-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-menu li {
        border-bottom: 1px solid var(--color-border);
    }

    .primary-menu a {
        display: block;
        padding: 14px 0;
        font-size: 1.02rem;
    }

    .header-socials {
        margin-top: 18px;
        padding-left: 0;
        border-left: 0;
    }

    .hero-section {
        padding: 70px 0 56px;
    }

    .page-hero {
        padding: 68px 0;
    }

    .page-hero.compact {
        padding: 56px 0;
    }

    .featured-posts-section,
    .blog-listing,
    .page-content-section,
    .contact-section {
        padding: 64px 0;
    }

    .single-header {
        padding: 62px 0 36px;
    }

    .single-featured-image {
        margin-top: 36px;
    }

    .single-content {
        padding-top: 46px;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container,
    .container.narrow {
        width: min(100% - 28px, var(--container));
    }

    h1 {
        font-size: clamp(2.25rem, 12vw, 3.2rem);
    }

    h2 {
        font-size: clamp(1.8rem, 9vw, 2.45rem);
    }

    .hero-card {
        padding: 30px;
        border-radius: 22px;
    }

    .hero-card::before {
        inset: 12px;
        border-radius: 16px;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .post-card-content {
        padding: 22px;
    }

    .contact-card {
        padding: 26px;
        border-radius: 22px;
    }

    .footer-inner {
        padding: 46px 0;
    }

    .post-meta.centered {
        justify-content: flex-start;
    }

    .single-header {
        text-align: left;
    }

    .single-excerpt {
        margin-inline: 0;
    }

    .page-hero {
        text-align: left;
    }

    .page-hero p {
        margin-inline: 0;
    }
}

.single-tags {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.single-tags > span {
    display: block;
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.single-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.single-tags-list a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-off-white);
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.single-tags-list a:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-white);
}

.site-branding .custom-logo {
    max-height: 68px;
    width: auto;
    display: block;
}

.site-branding {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .site-branding .custom-logo {
        max-height: 54px;
        width: auto;
    }
}

