/*
Theme Name: Paisadecor Child
Theme URI: https://www.paisadecor.com.br/
Description: Tema filho do Kadence criado para o portal Paisadecor.
Author: Paisadecor
Version: 1.0.0
Template: kadence
Text Domain: paisadecor
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --pd-ink: #17332a;
  --pd-muted: #5c6f67;
  --pd-leaf: #2f6b50;
  --pd-leaf-dark: #24543f;
  --pd-leaf-soft: #dcebdd;
  --pd-terra: #b85d3f;
  --pd-cream: #f7f4ec;
  --pd-paper: #ffffff;
  --pd-line: #d9e1db;
  --pd-shadow: 0 16px 40px rgba(21, 50, 40, 0.09);
  --pd-radius: 20px;
  --pd-content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.paisadecor-site {
  margin: 0;
  color: var(--pd-ink);
  background: var(--pd-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
}
.paisadecor-site a { color: var(--pd-leaf); text-decoration-thickness: .08em; text-underline-offset: .18em; }
.paisadecor-site a:hover { color: var(--pd-terra); }
.paisadecor-site img { max-width: 100%; height: auto; display: block; }
.pd-skip { position: fixed; left: 1rem; top: -5rem; z-index: 1000; background: #fff; padding: .7rem 1rem; border: 2px solid var(--pd-leaf); }
.pd-skip:focus { top: 1rem; }
.pd-container { width: min(calc(100% - 48px), var(--pd-content)); margin-inline: auto; }

.pd-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--pd-line); backdrop-filter: blur(12px); }
.admin-bar .pd-header { top: 32px; }
.pd-header-inner { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.pd-brand { flex: none; color: var(--pd-ink) !important; text-decoration: none; }
.pd-brand img, .pd-brand .custom-logo { width: auto; max-height: 44px; }
.pd-brand-text { display: flex; align-items: baseline; gap: 4px; font: 700 1.7rem Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.pd-brand-text span { color: var(--pd-terra); }
.pd-menu { display: flex; align-items: center; gap: 18px; margin-left: auto; padding: 0; list-style: none; }
.pd-menu a, .pd-search-link { color: var(--pd-ink) !important; text-decoration: none; font-weight: 700; font-size: .88rem; }
.pd-menu .current-menu-item > a, .pd-menu .current-cat > a { color: var(--pd-terra) !important; }
.pd-search-link { border: 1px solid var(--pd-line); border-radius: 999px; padding: .55rem .85rem; }
.pd-menu-toggle { display: none; margin-left: auto; font: inherit; border: 1px solid var(--pd-leaf); border-radius: 999px; background: #fff; color: var(--pd-leaf); padding: .55rem .85rem; font-weight: 800; cursor: pointer; }

.pd-main { min-height: 65vh; }
.pd-hero { background: linear-gradient(120deg, #e8f1e7 0%, #f8f4e9 55%, #f0d8c8 100%); padding: 72px 0; }
.pd-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
.pd-kicker, .pd-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 800; color: var(--pd-terra); }
.paisadecor-site h1, .paisadecor-site h2, .paisadecor-site h3 { color: var(--pd-ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.16; margin: 0 0 .65em; }
.paisadecor-site h1 { font-size: clamp(2.35rem, 6vw, 4.8rem); letter-spacing: -.045em; }
.paisadecor-site h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.paisadecor-site h3 { font-size: 1.3rem; }
.pd-hero-copy p { font-size: 1.16rem; max-width: 62ch; color: #3c544b; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.pd-button, .paisadecor-site .wp-element-button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--pd-leaf); color: #fff !important; padding: .8rem 1.15rem; text-decoration: none; font-weight: 800; }
.pd-button:hover, .paisadecor-site .wp-element-button:hover { background: var(--pd-leaf-dark); }
.pd-button.is-secondary { background: transparent; border: 1px solid var(--pd-leaf); color: var(--pd-leaf) !important; }
.pd-feature { background: #fff; border-radius: 30px; box-shadow: var(--pd-shadow); overflow: hidden; }
.pd-feature-content { padding: 24px; }
.pd-feature h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.pd-feature h2 a { color: var(--pd-ink); text-decoration: none; }

.pd-section { padding-block: 68px; }
.pd-section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.pd-section-head p { max-width: 60ch; color: var(--pd-muted); }
.pd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pd-grid.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pd-card { border: 1px solid var(--pd-line); border-radius: var(--pd-radius); overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(21,50,40,.05); }
.pd-card-media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--pd-leaf-soft); }
.pd-card-media img { width: 100%; height: 100%; object-fit: cover; transition: .35s transform; }
.pd-card:hover .pd-card-media img { transform: scale(1.025); }
.pd-card-body { padding: 20px; }
.pd-card h2, .pd-card h3 { font-size: 1.3rem; }
.pd-card h2 a, .pd-card h3 a { color: var(--pd-ink); text-decoration: none; }
.pd-card p, .pd-card time { color: var(--pd-muted); font-size: .93rem; }
.pd-category-band { background: var(--pd-cream); }
.pd-category-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pd-category-links a { background: #fff; border: 1px solid var(--pd-line); border-radius: 16px; padding: 20px; text-decoration: none; font-weight: 800; }
.pd-category-links small { display: block; margin-top: .5rem; color: var(--pd-muted); font-weight: 500; line-height: 1.45; }
.pd-empty { border: 1px dashed var(--pd-line); border-radius: var(--pd-radius); padding: 32px; color: var(--pd-muted); text-align: center; }

.pd-breadcrumbs { margin-block: 24px; }
.pd-breadcrumbs ol { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; font-size: .88rem; color: var(--pd-muted); }
.pd-breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 8px; }
.pd-article { padding: 12px 0 80px; }
.pd-article-head { max-width: 850px; }
.pd-article-head h1 { font-size: clamp(2.35rem, 5vw, 4.5rem); }
.pd-dek { font-size: 1.2rem; color: var(--pd-muted); }
.pd-byline { font-size: .9rem; color: var(--pd-muted); margin: 18px 0 30px; }
.pd-hero-image { margin: 0 0 36px; }
.pd-hero-image img, .pd-entry-content figure img { border-radius: var(--pd-radius); }
.pd-article-layout { display: grid; grid-template-columns: minmax(0, 790px) 280px; gap: 50px; }
.pd-entry-content { min-width: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; }
.pd-entry-content > *:first-child { margin-top: 0; }
.pd-entry-content h2 { margin-top: 2.2em; }
.pd-entry-content h3 { margin-top: 1.6em; }
.pd-entry-content p { margin: 0 0 1.35em; }
.pd-entry-content .answer, .pd-entry-content .tip, .pd-entry-content .warning, .pd-entry-content .toc,
.pd-entry-content .wp-block-group.is-style-pd-answer, .pd-entry-content .wp-block-group.is-style-pd-tip, .pd-entry-content .wp-block-group.is-style-pd-warning {
  border-radius: 16px; padding: 20px 22px; margin: 24px 0;
}
.pd-entry-content .answer, .pd-entry-content .wp-block-group.is-style-pd-answer { background: var(--pd-leaf-soft); border-left: 5px solid var(--pd-leaf); }
.pd-entry-content .tip, .pd-entry-content .wp-block-group.is-style-pd-tip { background: #eef3e7; }
.pd-entry-content .warning, .pd-entry-content .wp-block-group.is-style-pd-warning { background: #fff2e7; border-left: 5px solid var(--pd-terra); }
.pd-entry-content .toc { background: var(--pd-cream); font-family: Inter, system-ui, sans-serif; }
.pd-entry-content .toc ol { columns: 2; gap: 30px; }
.pd-entry-content table { width: 100%; border-collapse: collapse; font-family: Inter, system-ui, sans-serif; font-size: .9rem; display: block; overflow-x: auto; }
.pd-entry-content th, .pd-entry-content td { border: 1px solid var(--pd-line); padding: 12px; text-align: left; min-width: 170px; }
.pd-entry-content th { background: var(--pd-leaf-soft); }
.pd-entry-content figure { margin: 36px 0; }
.pd-entry-content figcaption, .pd-hero-image figcaption { font-size: .8rem; color: var(--pd-muted); margin-top: 8px; }
.pd-sidebar-card { border: 1px solid var(--pd-line); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.pd-sidebar-card h2 { font-size: 1.35rem; }
.pd-sidebar-card a { display: block; margin: .8rem 0; font-weight: 700; }
.pd-post-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--pd-line); padding-top: 24px; margin-top: 34px; }
.pd-post-nav > div { max-width: 46%; }
.pd-author { display: flex; gap: 18px; align-items: center; background: var(--pd-cream); border-radius: 18px; padding: 24px; margin-top: 34px; }
.pd-author img { border-radius: 50%; }
.pd-author h2 { font-size: 1.4rem; margin-bottom: .25rem; }
.pd-author p { font: .95rem/1.65 Inter, system-ui, sans-serif; }

.pd-page-head { background: var(--pd-cream); padding: 60px 0; }
.pd-page-head-inner, .pd-prose { max-width: 920px; }
.pd-page-head h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.pd-prose { padding-block: 52px 80px; }
.pd-prose h2 { margin-top: 2em; }
.pd-search-form { display: flex; gap: 10px; margin-bottom: 30px; }
.pd-search-form label { flex: 1; }
.pd-search-form input { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #9aaa9f; border-radius: 10px; }
.pd-pagination { margin-top: 36px; }
.pd-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-pagination a, .pd-pagination span { border: 1px solid var(--pd-line); border-radius: 999px; padding: .45rem .8rem; text-decoration: none; }

.pd-footer { background: var(--pd-ink); color: #dce8e1; padding: 60px 0 20px; }
.pd-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.pd-footer h2 { font-size: 1.25rem; color: #fff; }
.pd-footer a { display: block; color: #dce8e1; margin: .55rem 0; }
.pd-footer-brand { max-width: 300px; }
.pd-footer-logo { filter: brightness(0) invert(1); width: 184px; }
.pd-footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid #496259; font-size: .85rem; }
.pd-back-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; border: 0; border-radius: 50%; width: 44px; height: 44px; background: var(--pd-ink); color: #fff; font-size: 1.3rem; display: none; cursor: pointer; }
.pd-back-top.is-visible { display: block; }

@media (max-width: 1024px) {
  .admin-bar .pd-header { top: 32px; }
  .pd-header-inner { flex-wrap: wrap; padding-block: 12px; }
  .pd-menu-toggle { display: block; }
  .pd-primary-nav { display: none; width: 100%; order: 3; }
  .pd-primary-nav.is-open { display: block; }
  .pd-menu { flex-direction: column; align-items: stretch; margin: 0; padding-block: 8px; }
  .pd-search-link { display: none; }
  .pd-hero-grid, .pd-article-layout { grid-template-columns: 1fr; }
  .pd-grid, .pd-grid.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-category-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-aside { display: none; }
}
@media (max-width: 782px) { .admin-bar .pd-header { top: 46px; } }
@media (max-width: 620px) {
  .pd-container { width: min(calc(100% - 36px), var(--pd-content)); }
  .pd-grid, .pd-grid.is-four, .pd-category-links { grid-template-columns: 1fr; }
  .pd-hero { padding-block: 50px; }
  .pd-hero-grid { gap: 28px; }
  .pd-section { padding-block: 52px; }
  .pd-section-head { align-items: flex-start; flex-direction: column; }
  .pd-entry-content .toc ol { columns: 1; }
  .pd-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-author { align-items: flex-start; }
  .pd-search-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
:focus-visible { outline: 3px solid #e68a5f; outline-offset: 3px; }
.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; }

