/*
Theme Name: Dental GPO Blog
Theme URI: https://dentalgpo.com.br/
Author: B. Art Publicidade
Description: Tema editorial responsivo para o blog Dental GPO, com controles de tipografia e artigos.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dental-gpo-blog
*/

:root {
	--dg-green: #047857;
	--dg-green-dark: #065F46;
	--dg-green-light: #ECFDF5;
	--dg-ink: #111827;
	--dg-muted: #687385;
	--dg-paper: #F8FAFC;
	--dg-white: #fff;
	--dg-footer: #101828;
	--dg-line: #E3EAE4;
	--dg-radius: 20px;
	--dg-shadow: 0 16px 42px rgba(20, 54, 34, .08);
	--dg-font: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--dg-paper); color: var(--dg-ink); font: 16px/1.6 var(--dg-font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--dg-green); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #65AA79; outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dg-skip-link { position: fixed; z-index: 99; top: 10px; left: 10px; transform: translateY(-160%); padding: 10px 16px; border-radius: 9px; background: var(--dg-ink); color: #fff; }
.dg-skip-link:focus { transform: translateY(0); }

.dg-site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--dg-line); backdrop-filter: blur(14px); }
.dg-header-inner { width: min(1200px, calc(100% - 48px)); min-height: 84px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.dg-brand > a { display: flex; width: 68px; height: 68px; overflow: hidden; border-radius: 15px; }
.dg-brand img, .dg-brand .custom-logo { width: 100%; height: 100%; object-fit: cover; }
.dg-brand .custom-logo-link { display: block; width: 68px; height: 68px; }
.dg-primary-nav { display: flex; align-items: center; gap: 32px; }
.dg-menu, .dg-footer-menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.dg-menu a { color: var(--dg-ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .18s ease; }
.dg-menu a:hover, .dg-menu .current-menu-item > a { color: var(--dg-green); }
.dg-header-cta, .dg-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--dg-green); border-radius: 10px; background: var(--dg-green); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.dg-header-cta:hover, .dg-button:hover { transform: translateY(-1px); background: var(--dg-green-dark); color: #fff; }
.dg-menu-toggle { display: none; }

.dg-intro { overflow: hidden; position: relative; padding: 86px 24px 92px; background: var(--dg-green-light); text-align: center; }
.dg-intro::before, .dg-intro::after { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(4,120,87,.07); content: ""; }
.dg-intro::before { top: -148px; left: -55px; }
.dg-intro::after { right: -66px; bottom: -180px; }
.dg-intro-inner { position: relative; z-index: 1; width: min(780px, 100%); margin: auto; }
.dg-eyebrow { margin: 0 0 16px; color: var(--dg-green); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dg-intro h1 { margin: 0 auto 15px; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.dg-intro-inner > p:last-child { max-width: 620px; margin: 0 auto; color: var(--dg-muted); font-size: 18px; }
.dg-intro-compact { padding-top: 60px; padding-bottom: 62px; }
.dg-archive-description { color: var(--dg-muted); }
.dg-archive-description p { margin: 0; }

.dg-content-wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 88px; }
.dg-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.dg-post-card { min-width: 0; overflow: hidden; border: 1px solid var(--dg-line); border-radius: var(--dg-radius); background: #fff; box-shadow: 0 3px 14px rgba(20,54,34,.025); transition: transform .22s ease, box-shadow .22s ease; }
.dg-post-card:hover { transform: translateY(-4px); box-shadow: var(--dg-shadow); }
.dg-card-image { display: block; aspect-ratio: 1.63 / 1; overflow: hidden; background: var(--dg-green-light); }
.dg-card-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dg-post-card:hover .dg-card-image > img { transform: scale(1.035); }
.dg-image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(140deg, #EAF3EC, #d8e9dc); color: var(--dg-green); font-size: 38px; font-weight: 750; letter-spacing: -.06em; }
.dg-dot { color: #1D2140; }
.dg-card-content { padding: 23px 24px 26px; }
.dg-card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; color: var(--dg-muted); font-size: 12px; font-weight: 600; }
.dg-card-meta a { color: var(--dg-green); text-decoration: none; }
.dg-card-content h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.27; letter-spacing: -.025em; }
.dg-card-content h2 a { color: var(--dg-ink); text-decoration: none; }
.dg-card-content h2 a:hover { color: var(--dg-green); }
.dg-card-content > p { margin: 0 0 18px; color: var(--dg-muted); font-size: 14px; line-height: 1.65; }
.dg-read-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 750; text-decoration: none; }
.dg-read-more:hover { color: var(--dg-green-dark); }
.dg-empty-state { grid-column: 1/-1; padding: 60px 24px; border-radius: var(--dg-radius); background: #fff; text-align: center; }
.dg-empty-state h2 { margin-top: 0; }

.dg-main .navigation.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.dg-main .page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--dg-line); border-radius: 9px; background: #fff; color: var(--dg-ink); text-decoration: none; }
.dg-main .page-numbers.current, .dg-main .page-numbers:hover { border-color: var(--dg-green); background: var(--dg-green); color: #fff; }

.dg-site-footer { background: var(--dg-footer); color: rgba(255,255,255,.83); }
.dg-footer-main { display: grid; width: min(1200px, calc(100% - 48px)); grid-template-columns: 1.35fr .8fr .9fr; gap: 72px; margin: auto; padding: 62px 0 52px; }
.dg-footer-brand { max-width: 345px; }
.dg-footer-logo { display: inline-flex; width: 78px; height: 78px; overflow: hidden; margin-bottom: 18px; border-radius: 13px; }
.dg-footer-logo img, .dg-footer-logo .custom-logo { width: 100%; height: 100%; object-fit: cover; }
.dg-footer-logo .custom-logo-link { display: block; width: 78px; height: 78px; }
.dg-footer-brand p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }
.dg-footer-main h2 { margin: 4px 0 20px; color: #fff; font-size: 14px; font-weight: 750; }
.dg-footer-menu { display: grid; align-items: start; gap: 12px; }
.dg-footer-menu a, .dg-footer-contact p a, .dg-footer-contact-link { color: rgba(255,255,255,.72); font-size: 14px; text-decoration: none; }
.dg-footer-menu a:hover, .dg-footer-contact a:hover { color: #fff; }
.dg-footer-contact p { margin: 0 0 12px; }
.dg-footer-contact-link { display: block; width: fit-content; margin: 0 0 12px; }
.dg-comment-area { width: min(800px, calc(100% - 48px)); margin: 0 auto 54px; padding: 28px; border: 1px solid var(--dg-line); border-radius: var(--dg-radius); background: #fff; }
.dg-comment-area h2 { margin-top: 0; }
.dg-comment-list { padding-left: 22px; }
.dg-comment-list .comment { margin-block: 18px; }
.dg-comment-list .comment-body { padding: 14px; border-radius: 12px; background: var(--dg-paper); }
.dg-comment-form input, .dg-comment-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--dg-line); border-radius: 8px; }
.dg-comment-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 650; }
.dg-comment-submit { padding: 11px 18px; border: 0; border-radius: 9px; background: var(--dg-green); color: #fff; font-weight: 700; cursor: pointer; }
.dg-comment-submit:hover { background: var(--dg-green-dark); }
.dg-footer-bottom { display: flex; width: min(1200px, calc(100% - 48px)); justify-content: space-between; gap: 24px; margin: auto; padding: 20px 0 24px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.58); font-size: 12px; }
.dg-footer-bottom p { margin: 0; }
.dg-footer-bottom a { color: rgba(255,255,255,.72); text-decoration: none; }

.dg-article-main { min-height: 480px; }
.dg-error-page { width: min(760px, calc(100% - 48px)); margin: 90px auto; text-align: center; }
.dg-error-page .dg-search-form { margin: 28px auto; }
.dg-error-page .dg-button { margin-top: 6px; }
.dg-search-form { display: flex; width: min(520px, 100%); gap: 8px; margin: 24px 0 0; }
.dg-intro .dg-search-form { margin-right: auto; margin-left: auto; }
.dg-search-form label { flex: 1; }
.dg-search-form input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--dg-line); border-radius: 9px; background: #fff; }
.dg-search-form button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--dg-green); color: #fff; font-weight: 700; cursor: pointer; }
.dg-search-form button:hover { background: var(--dg-green-dark); }

@media (max-width: 900px) {
	.dg-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dg-footer-main { grid-template-columns: 1.1fr 1fr; gap: 40px; }
	.dg-footer-contact { grid-column: 2; }
}
@media (max-width: 700px) {
	.dg-header-inner { width: min(100% - 32px, 1200px); min-height: 72px; gap: 16px; }
	.dg-brand > a, .dg-brand .custom-logo-link { width: 58px; height: 58px; }
	.dg-menu-toggle { display: inline-flex; min-height: 42px; align-items: center; padding: 0 14px; border: 1px solid var(--dg-line); border-radius: 9px; background: #fff; color: var(--dg-ink); font-size: 14px; font-weight: 700; }
	.dg-primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; padding: 18px 20px 22px; border-bottom: 1px solid var(--dg-line); background: #fff; box-shadow: 0 16px 20px rgba(20,54,34,.07); }
	.dg-primary-nav.is-open { display: grid; gap: 18px; }
	.dg-menu { display: grid; gap: 0; }
	.dg-menu li a { display: block; padding: 12px 3px; }
	.dg-header-cta { width: 100%; }
	.dg-intro { padding: 66px 20px 70px; }
	.dg-intro-compact { padding: 46px 20px; }
	.dg-intro-inner > p:last-child { font-size: 16px; }
	.dg-content-wrap { width: calc(100% - 32px); padding: 40px 0 58px; }
	.dg-post-grid { grid-template-columns: 1fr; gap: 18px; }
	.dg-card-content { padding: 20px; }
	.dg-card-content h2 { font-size: 21px; }
	.dg-footer-main { width: calc(100% - 40px); grid-template-columns: 1fr 1fr; gap: 34px 22px; padding: 44px 0 36px; }
	.dg-footer-brand { grid-column: 1/-1; }
	.dg-footer-contact { grid-column: auto; }
	.dg-footer-bottom { width: calc(100% - 40px); flex-direction: column; gap: 8px; }
	.dg-error-page { margin: 60px auto; }
}
@media (max-width: 420px) {
	.dg-footer-main { grid-template-columns: 1fr; }
	.dg-footer-brand, .dg-footer-contact { grid-column: auto; }
	.dg-search-form { flex-wrap: wrap; }
	.dg-search-form label { flex-basis: 100%; }
}
