/*
Theme Name: Desenhos para Colorir
Theme URI: https://example.invalid/
Description: Child theme portable para o projeto Desenhos para Colorir Grátis.
Author: Site editorial
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-colorir-child
*/

:root {
	--ink: #172033;
	--muted: #5e687a;
	--paper: #fffdf8;
	--surface: #ffffff;
	--line: #e6e9ef;
	--purple: #7257d9;
	--purple-dark: #553ab8;
	--yellow: #ffd85a;
	--mint: #8fe3c1;
	--coral: #ff8e7a;
	--blue: #8cc9ff;
	--radius: 22px;
	--shadow: 0 18px 45px rgba(36, 43, 69, .10);
	--content: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 17px;
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--purple-dark); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--purple); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }

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

.skip-link:focus {
	top: 10px; left: 10px; width: auto; height: auto; margin: 0; padding: 10px 16px;
	clip: auto; z-index: 9999; color: #fff; background: var(--purple-dark); border-radius: 10px;
}

.site-shell { width: min(calc(100% - 32px), var(--content)); margin-inline: auto; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid rgba(23, 32, 51, .08);
	background: rgba(255, 253, 248, .94);
	backdrop-filter: blur(14px);
}

.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 850; text-decoration: none; letter-spacing: -.035em; }
.brand-mark {
	display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 13px;
	background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); font-size: 24px; transform: rotate(-2deg);
}
.brand-copy { line-height: 1.05; }
.brand-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.main-navigation ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { display: block; padding: 9px 11px; border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 750; text-decoration: none; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { background: #eee9ff; color: var(--purple-dark); }
.menu-toggle { display: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; cursor: pointer; }

.site-main { min-height: 60vh; }
.content-shell { width: min(calc(100% - 32px), 820px); margin: 48px auto 80px; }
.wide-shell { width: min(calc(100% - 32px), var(--content)); margin: 48px auto 80px; }

h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.04em; }
h1 { font-size: clamp(2.25rem, 6vw, 4.7rem); }
h2 { margin-top: 2.4em; font-size: clamp(1.65rem, 4vw, 2.55rem); }
h3 { margin-top: 1.8em; font-size: 1.35rem; }
p { margin: 0 0 1.25em; }

.hero { position: relative; overflow: hidden; padding: clamp(66px, 10vw, 126px) 0 86px; background: linear-gradient(145deg, #f1edff, #fff8db 54%, #eafff7); }
.hero::before, .hero::after { content: ""; position: absolute; border: 3px solid var(--ink); opacity: .11; }
.hero::before { width: 180px; height: 180px; top: -65px; right: 7%; border-radius: 42% 58% 48% 52%; transform: rotate(18deg); }
.hero::after { width: 120px; height: 120px; left: 5%; bottom: -55px; border-radius: 50%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: clamp(36px, 7vw, 90px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 12px; border: 1px solid rgba(85, 58, 184, .2); border-radius: 999px; color: var(--purple-dark); background: rgba(255,255,255,.72); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { max-width: 830px; margin: 0 0 22px; }
.hero h1 span { position: relative; white-space: nowrap; }
.hero h1 span::after { content: ""; position: absolute; right: 0; bottom: .04em; left: 0; height: .18em; background: var(--yellow); z-index: -1; transform: rotate(-1deg); }
.hero-copy { max-width: 690px; color: #485268; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px;
	border: 2px solid var(--ink); border-radius: 13px; color: #fff; background: var(--purple); box-shadow: 4px 4px 0 var(--ink);
	font-size: 15px; font-weight: 800; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { color: #fff; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button-secondary { color: var(--ink); background: #fff; }
.button-secondary:hover { color: var(--ink); }
.hero-doodle { display: grid; place-items: center; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 35% 65% 58% 42%; background: #fff; box-shadow: 12px 12px 0 var(--mint); transform: rotate(3deg); }
.hero-doodle span { font-size: clamp(95px, 15vw, 170px); filter: grayscale(1); transform: rotate(-3deg); }

.home-section { padding: 76px 0; }
.home-section.alt { background: #fff; border-block: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; }
.section-heading p { max-width: 570px; margin: 0; color: var(--muted); }

.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.category-tile {
	min-height: 178px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px;
	border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); background: var(--tile, #fff); box-shadow: 5px 5px 0 var(--ink); text-decoration: none;
	transition: transform .16s ease, box-shadow .16s ease;
}
.category-tile:nth-child(4n+1) { --tile: #fff1ee; }
.category-tile:nth-child(4n+2) { --tile: #eefff8; }
.category-tile:nth-child(4n+3) { --tile: #f2efff; }
.category-tile:nth-child(4n+4) { --tile: #fff9dd; }
.category-tile:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.category-icon { font-size: 38px; line-height: 1; }
.category-name { font-size: 17px; font-weight: 850; line-height: 1.15; }
.category-count { color: var(--muted); font-size: 12px; font-weight: 700; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 30px rgba(36, 43, 69, .07); }
.post-card-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #f2f3f6; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.post-card:hover .post-card-media img { transform: scale(1.025); }
.post-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-size: 65px; filter: grayscale(1); }
.post-card-body { padding: 20px; }
.post-card-kicker { margin: 0 0 7px; color: var(--purple-dark); font-size: 12px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.post-card h3 { margin: 0; font-size: 1.2rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--purple-dark); }

.home-copy { max-width: 820px; }
.home-copy h2:first-child { margin-top: 0; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.trust-card { padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.trust-card strong { display: block; margin-bottom: 5px; }
.trust-card span { color: var(--muted); font-size: 14px; }

.archive-header { padding: 64px 0 42px; background: linear-gradient(135deg, #f2efff, #fff9df); border-bottom: 1px solid var(--line); }
.archive-header h1 { margin: 5px 0 16px; font-size: clamp(2.4rem, 6vw, 4.5rem); }
.archive-description { max-width: 760px; color: var(--muted); font-size: 1.08rem; }

.breadcrumbs { margin: 24px 0; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: inherit; }

.article-header { margin-bottom: 30px; }
.article-header h1 { margin: 8px 0 18px; font-size: clamp(2.3rem, 7vw, 4.55rem); }
.article-lead { color: var(--muted); font-size: 1.08rem; }
.article-featured { overflow: hidden; margin: 30px 0 44px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; box-shadow: 8px 8px 0 var(--yellow); }
.article-featured img { width: 100%; }
.entry-content > * { max-width: 760px; margin-inline: auto; }
.entry-content > .coloring-sheet, .entry-content > .wp-block-image, .entry-content > .wide-content { max-width: 940px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }

.coloring-sheet { margin-block: 46px !important; padding: 18px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; box-shadow: 8px 8px 0 #dcd4ff; }
.coloring-sheet-image { display: block; overflow: hidden; border-radius: 13px; background: #fff; }
.coloring-sheet-image img { width: 100%; }
.coloring-sheet figcaption { padding: 15px 3px 5px; color: var(--muted); font-size: 14px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 11px; padding: 8px 2px 3px; }
.sheet-actions .button { flex: 1 1 150px; }
.sheet-actions .print-button { color: var(--ink); background: var(--yellow); }

.colorir-faq { margin-top: 56px; padding: 28px; border-radius: var(--radius); background: #f2efff; }
.colorir-faq h2 { margin-top: 0; }
.faq-item { padding-block: 17px; border-top: 1px solid rgba(23, 32, 51, .13); }
.faq-item:first-of-type { border-top: 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 1.08rem; letter-spacing: -.02em; }
.faq-item p { margin: 0; }

.related-section { margin-top: 72px; padding-top: 46px; border-top: 1px solid var(--line); }
.related-section h2 { margin-top: 0; }
.related-section .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.page-header h1 { margin-bottom: 24px; }
.notice-box { padding: 18px 20px; border-left: 5px solid var(--purple); border-radius: 8px; background: #f2efff; }
.empty-state { padding: 50px; border: 1px dashed #b9bfcb; border-radius: var(--radius); color: var(--muted); text-align: center; background: #fff; }

.site-footer { padding: 54px 0 28px; color: #e9eaf0; background: #172033; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 46px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { color: var(--ink); }
.footer-copy { max-width: 440px; margin-top: 18px; color: #b9c0cf; font-size: 14px; }
.footer-title { margin: 0 0 14px; color: #fff; font-size: 14px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 7px 0; }
.footer-links a { color: #cbd1dc; font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #939cad; font-size: 12px; }

@media (max-width: 980px) {
	.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero-grid { grid-template-columns: 1fr; }
	.hero-doodle { width: min(360px, 80vw); justify-self: center; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	.site-shell, .content-shell, .wide-shell { width: min(calc(100% - 24px), var(--content)); }
	.header-inner { min-height: 68px; }
	.brand-copy small { display: none; }
	.menu-toggle { display: inline-flex; }
	.main-navigation { display: none; position: absolute; top: 68px; right: 12px; left: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
	.main-navigation.is-open { display: block; }
	.main-navigation ul { display: block; }
	.main-navigation a { padding: 12px; }
	.hero { padding: 56px 0 64px; }
	.hero-doodle { width: 240px; }
	.category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.category-tile { min-height: 150px; }
	.post-grid, .related-section .post-grid { grid-template-columns: 1fr; }
	.section-heading { display: block; }
	.section-heading p { margin-top: 12px; }
	.trust-row { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.coloring-sheet { margin-inline: 0 !important; padding: 10px; box-shadow: 5px 5px 0 #dcd4ff; }
}

@media print {
	.site-header, .site-footer, .breadcrumbs, .sheet-actions, .related-section, .colorir-faq, .ad-slot { display: none !important; }
	body { background: #fff; }
	.content-shell { width: 100%; margin: 0; }
	.coloring-sheet { break-inside: avoid; border: 0; box-shadow: none; }
}

