/*
Theme Name: PoaDigital Child
Theme URI: https://www.poadigital.com.br
Description: Tema filho da PoaDigital baseado no Oria. Novo header e footer seguindo o modelo do index.html (landing page), mantendo o menu atual do site e os posts.
Author: PoaDigital / Hermes Agent
Template: oria
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: poadigital-child
Tags: hosting, business, custom-menu, custom-colors
*/

/* ==========================================================================
   PoaDigital Child — estilos herdados do modelo index.html
   As classes abaixo (hero, plans, services, about, faq, cta, footer, etc.)
   espelham o design do index.html para que o conteúdo da home (criada no
   Elementor via widget HTML) e as páginas/blogs fiquem com a mesma cara.
   ========================================================================== */

:root {
    --red: #e30613;
    --red-dark: #b9000b;
    --yellow: #ffd233;
    --ink: #111827;
    --muted: #5b6472;
    --line: #e6e9ef;
    --surface: #ffffff;
    --soft: #f6f7fb;
    --green: #138a4a;
    --blue: #185abc;
    --shadow: 0 18px 50px rgba(17, 24, 39, .12);
    --radius: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

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

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

/* ─── HEADER (gerado pelo child theme / wp_nav_menu) ─── */
.site-header-poa {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-poa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--red);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}
.logo-text { font-size: 22px; font-weight: 700; color: var(--ink); }
.logo-text span { color: var(--red); }
.nav-poa { display: flex; gap: 8px; align-items: center; }
.nav-poa ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.nav-poa li { position: relative; }
.nav-poa a {
    display: block;
    color: var(--muted);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all .15s;
}
.nav-poa a:hover { color: var(--ink); background: var(--soft); }
.nav-poa .btn-header > a,
.nav-poa a.btn-header {
    background: var(--red) !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.nav-poa a.btn-header:hover { background: var(--red-dark) !important; }
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
}

/* ─── HERO ─── */
.hero {
    padding: 80px 0 64px;
    background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.hero-badge strong { color: var(--green); }
.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    max-width: 800px;
    margin: 0 auto 20px;
    color: var(--ink);
}
.hero h1 span { color: var(--red); }
.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 32px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .15s;
}
.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(227, 6, 19, .3);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-outline:hover { border-color: #cbd5e1; background: var(--soft); }

/* ─── BARRA DE CONFIANÇA ─── */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

/* ─── SEÇÃO TÍTULOS ─── */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}
.section-title p {
    font-size: 16px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto;
}

/* ─── PLANOS ─── */
.plans { padding: 80px 0; background: var(--soft); }
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.plan-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    transition: all .2s;
}
.plan-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.plan-card.featured { border: 2px solid var(--red); }
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: #fff;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.plan-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.plan-desc { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.plan-price { font-size: 36px; font-weight: 800; margin-bottom: 4px; color: var(--ink); }
.plan-price .currency { font-size: 20px; font-weight: 600; vertical-align: top; }
.plan-period { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 24px; }
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    padding: 6px 0;
    color: #374151;
}
.plan-features li svg { flex-shrink: 0; margin-top: 2px; }
.btn-plan {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all .15s;
}
.btn-plan-primary { background: var(--red); color: #fff; }
.btn-plan-primary:hover { background: var(--red-dark); }
.btn-plan-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-plan-outline:hover { border-color: #cbd5e1; }

/* ─── SERVIÇOS ─── */
.services { padding: 80px 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.service-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: all .2s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}
.service-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ─── SOBRE ─── */
.about { padding: 80px 0; background: var(--soft); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.about p { font-size: 16px; color: var(--muted); margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}
.stat-number { font-size: 28px; font-weight: 800; color: var(--red); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ─── FAQ ─── */
.faq { padding: 80px 0; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}
.faq-question:hover { color: var(--red); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding-bottom: 20px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-toggle { font-size: 20px; transition: transform .2s; color: var(--muted); }

/* ─── CTA FINAL ─── */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
    text-align: center;
    color: #fff;
}
.cta h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; margin-bottom: 16px; color: #fff; }
.cta p { font-size: 16px; color: #94a3b8; max-width: 480px; margin: 0 auto 32px; }
.cta .btn-primary { font-size: 18px; padding: 16px 36px; }

/* ─── FOOTER (gerado pelo child theme) ─── */
.site-footer-poa {
    background: var(--ink);
    color: #94a3b8;
    padding: 48px 0 24px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 12px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    padding: 4px 0;
    transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ─── CONTEÚDO / PÁGINAS / BLOG (templates do child theme) ─── */
.content-area-poa { background: var(--surface); }
.site-main-poa { padding: 0 0 64px; }

.entry-poa { padding: 48px 0 24px; }
.entry-header-poa { margin-bottom: 24px; }
.entry-title-poa {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 8px;
}
.entry-content { padding: 24px 0; }
.entry-content h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--ink); margin: 32px 0 12px; }
.entry-content h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.entry-content h4 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
.entry-content p { color: #374151; margin-bottom: 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 24px; color: #374151; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { color: var(--red); font-weight: 500; }
.entry-content a:hover { text-decoration: underline; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
    border-left: 4px solid var(--red);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}
.page-links { margin-top: 24px; font-weight: 500; }
.page-links a { background: var(--soft); padding: 4px 10px; border-radius: 6px; margin: 0 4px; }

/* ─── SINGLE (post) ─── */
.single-poa { padding-top: 48px; }
.post-title-poa { font-size: clamp(28px, 4.5vw, 42px); }
.post-thumbnail-poa { margin: 20px 0; }
.post-featured-poa { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.post-meta-poa {
    color: var(--muted);
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.post-meta-poa a { color: var(--red); font-weight: 600; }
.entry-footer-poa {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}
.tags-label { font-weight: 600; color: var(--ink); }

/* Navegação de posts */
.post-navigation { margin: 32px 0; }
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.post-navigation .nav-previous, .post-navigation .nav-next {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 18px;
    flex: 1;
    font-weight: 500;
}
.post-navigation a { color: var(--ink); }
.post-navigation a:hover { color: var(--red); }
.post-navigation .nav-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: 4px;
}

/* ─── ARCHIVE / LISTAGEM (grid) ─── */
.page-title-poa {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    margin: 48px 0 8px;
    color: var(--ink);
}
.archive-description-poa { color: var(--muted); margin-bottom: 24px; }
.post-grid-poa {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.post-card-poa {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s, box-shadow .15s;
}
.post-card-poa:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-thumb-poa { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-card-thumb-poa img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body-poa { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta-poa {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.post-card-meta-poa a { color: var(--red); }
.post-card-cat a::before { content: '· '; }
.post-card-title-poa { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.post-card-title-poa a { color: var(--ink); }
.post-card-title-poa a:hover { color: var(--red); }
.post-card-excerpt-poa { color: #374151; font-size: 15px; margin-bottom: 16px; flex: 1; }
.post-card-excerpt-poa p { margin-bottom: 0; }
.post-card-more-poa { font-size: 14px; font-weight: 600; color: var(--red); margin-top: auto; }
.post-card-more-poa:hover { color: var(--red-dark); }

/* Paginação */
.pagination { margin-top: 48px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 500;
}
.pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .page-numbers:hover { border-color: var(--red); color: var(--red); }

.no-posts-poa { padding: 48px 0; color: var(--muted); text-align: center; }

/* Comentários */
.comments-area { margin-top: 40px; }
.comments-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.comment-list { list-style: none; }
.comment-list li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.comment-body { color: #374151; font-size: 15px; }
.comment-author { font-weight: 700; color: var(--ink); }
.comment-meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.comment-reply-link { color: var(--red); font-weight: 600; font-size: 13px; }
.comment-form { margin-top: 24px; }
.comment-form label { display: block; font-weight: 600; margin: 12px 0 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--red); }
.comment-form .submit {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    font-size: 15px;
}
.comment-form .submit:hover { background: var(--red-dark); }

/* ─── RESPONSIVO ─── */
@media (max-width: 1200px) {
    .post-grid-poa { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .post-grid-poa { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-poa { display: none; }
    .nav-poa.open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 24px; }
    .nav-poa.open ul { flex-direction: column; }
    .nav-toggle { display: inline-block; }
    .header-poa { height: 60px; }
    .hero { padding: 48px 0 40px; }
    .trust-bar { gap: 20px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 576px) {
    .post-grid-poa { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Portfólio (página /sites/)
   ========================================================================== */
.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	max-width: 1120px;
	margin: 0 auto;
}
.portfolio-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .15s, box-shadow .15s;
}
.portfolio-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}
.portfolio-card a { display: block; }
.portfolio-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}
.portfolio-body {
	padding: 18px 20px 22px;
}
.portfolio-body h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 6px;
}
.portfolio-body p {
	font-size: 14px;
	color: var(--muted);
	margin: 0;
}

/* ==========================================================================
   CORREÇÃO: fonte branca nos botões PRIMÁRIOS (fundo vermelho) dentro de
   .entry-content — o Oria/.entry-content a { color: var(--red) } sobrescrevia
   a cor branca do texto. Os botões outline (fundo claro) mantêm texto escuro.
   ========================================================================== */
.entry-content a.btn-primary,
.entry-content a.btn-plan-primary,
a.btn-primary,
a.btn-plan-primary,
.btn-primary,
.btn-plan-primary {
	color: #fff !important;
}
.entry-content a.btn-primary:hover,
.entry-content a.btn-plan-primary:hover,
a.btn-primary:hover,
a.btn-plan-primary:hover,
.btn-primary:hover,
.btn-plan-primary:hover {
	color: #fff !important;
	background: var(--red-dark);
}

/* ==========================================================================
   CORREÇÃO: cores do CTA (fundo escuro) dentro de .entry-content nas páginas
   internas — .entry-content h2/p sobrescrevia a cor branca do .cta.
   ========================================================================== */
.entry-content .cta h2,
.cta h2 {
	color: #fff;
}
.entry-content .cta p,
.cta p {
	color: #94a3b8;
}
