/*
Theme Name: PequenaRendas Finanças
Theme URI: https://pequenarendas.com/
Author: PequenaRendas
Author URI: https://pequenarendas.com/sobre-nos/
Description: Tema editorial independente, leve e responsivo para educação financeira, renda extra, crédito e investimentos.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: pequenarendas-financas
*/

:root {
  --pr-ink: #14212a;
  --pr-muted: #5d6b73;
  --pr-teal-900: #083b48;
  --pr-teal-800: #0f4c5c;
  --pr-teal-700: #176679;
  --pr-teal-100: #dff1f3;
  --pr-gold: #e0a21b;
  --pr-gold-dark: #a96e00;
  --pr-paper: #ffffff;
  --pr-canvas: #f3f6f7;
  --pr-border: #dfe6e8;
  --pr-success: #126149;
  --pr-radius: 18px;
  --pr-shadow: 0 12px 36px rgba(8, 59, 72, .09);
  --pr-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--pr-ink);
  background: var(--pr-canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pr-teal-700); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--pr-gold-dark); }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--pr-gold); 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;
}
.screen-reader-text:focus { width: auto; height: auto; clip: auto; margin: 8px; padding: 12px 16px; background: #fff; z-index: 99999; }
.skip-link { position: fixed; top: 0; left: 0; }
.pr-container { width: min(calc(100% - 40px), var(--pr-container)); margin-inline: auto; }

.site-header { position: relative; z-index: 20; background: var(--pr-paper); border-bottom: 1px solid var(--pr-border); }
.site-header__top { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 104px; padding-block: 18px; }
.site-branding { display: flex; align-items: center; min-width: 0; }
.custom-logo-link { flex: 0 0 auto; margin-right: 12px; }
.custom-logo { width: 58px; max-height: 64px; object-fit: contain; }
.site-branding__text { min-width: 0; }
.site-title { margin: 0; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1; letter-spacing: -.045em; }
.site-title a { color: var(--pr-ink); text-decoration: none; }
.site-description { margin: 8px 0 0; color: var(--pr-muted); font-size: .88rem; line-height: 1.35; }
.header-search { width: min(100%, 330px); }
.search-form { display: flex; position: relative; }
.search-field { width: 100%; min-height: 48px; padding: 10px 48px 10px 16px; border: 1px solid var(--pr-border); border-radius: 999px; background: var(--pr-canvas); color: var(--pr-ink); }
.search-submit { position: absolute; inset: 5px 5px 5px auto; width: 38px; border: 0; border-radius: 50%; color: #fff; background: var(--pr-teal-800); }

.main-navigation { background: var(--pr-teal-900); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
.primary-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-menu li { position: relative; }
.primary-menu a { display: block; padding: 16px 17px; color: #fff; font-size: .94rem; font-weight: 700; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current-menu-ancestor > a { color: #fff; background: rgba(255,255,255,.1); }
.primary-menu .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; margin: 0; padding: 8px; list-style: none; background: var(--pr-teal-900); box-shadow: var(--pr-shadow); }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.menu-toggle { display: none; align-items: center; gap: 9px; padding: 10px 14px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; font-weight: 750; }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 20px; height: 2px; background: currentColor; content: ""; }
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before { position: absolute; top: -6px; }
.menu-toggle__icon::after { position: absolute; top: 6px; }
.nav-trust { color: #d6eef1; font-size: .8rem; font-weight: 650; }

.home-hero { padding: 58px 0 44px; color: #fff; background: linear-gradient(135deg, var(--pr-teal-900), var(--pr-teal-700)); overflow: hidden; }
.home-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); align-items: center; gap: 56px; }
.home-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #ffe7ad; font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.home-hero h1 { max-width: 760px; margin: 0; font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.06; letter-spacing: -.05em; }
.home-hero__lead { max-width: 720px; margin: 20px 0 0; color: #dceff1; font-size: clamp(1rem, 2vw, 1.18rem); }
.home-hero__card { padding: 24px; color: var(--pr-ink); background: #fff; border-radius: var(--pr-radius); box-shadow: 0 22px 60px rgba(0,0,0,.16); }
.home-hero__card strong { display: block; color: var(--pr-teal-800); font-size: 1.05rem; }
.home-hero__card p { margin: 8px 0 0; color: var(--pr-muted); font-size: .9rem; line-height: 1.55; }
.category-strip { padding: 18px 0; background: var(--pr-paper); border-bottom: 1px solid var(--pr-border); }
.category-list { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.category-list a { display: block; padding: 8px 14px; white-space: nowrap; color: var(--pr-teal-900); background: var(--pr-teal-100); border-radius: 999px; font-size: .84rem; font-weight: 750; text-decoration: none; }

.site-content { padding-block: 44px 64px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 38px; align-items: start; }
.main-column { min-width: 0; }
.section-heading { margin: 0 0 22px; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.15; letter-spacing: -.035em; }
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.article-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--pr-paper); border: 1px solid var(--pr-border); border-radius: var(--pr-radius); box-shadow: 0 7px 24px rgba(8,59,72,.055); transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--pr-shadow); }
.article-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pr-teal-100); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .article-card__media img { transform: scale(1.025); }
.article-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.post-category { align-self: flex-start; margin-bottom: 10px; color: var(--pr-gold-dark); font-size: .74rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.article-card__title { margin: 0; font-size: clamp(1.16rem, 2vw, 1.42rem); line-height: 1.25; letter-spacing: -.025em; }
.article-card__title a { color: var(--pr-ink); text-decoration: none; }
.article-card__excerpt { margin: 13px 0 18px; color: var(--pr-muted); font-size: .92rem; line-height: 1.62; }
.post-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--pr-muted); font-size: .78rem; }
.post-meta a { color: inherit; }
.read-more { margin-top: auto; font-size: .86rem; font-weight: 800; text-decoration: none; }

.sidebar { display: grid; gap: 22px; }
.widget { padding: 24px; background: var(--pr-paper); border: 1px solid var(--pr-border); border-radius: var(--pr-radius); }
.widget-title { margin: 0 0 15px; padding-bottom: 12px; font-size: 1rem; line-height: 1.25; border-bottom: 3px solid var(--pr-gold); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li + li { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--pr-border); }
.widget a { color: var(--pr-ink); font-size: .9rem; font-weight: 650; text-decoration: none; }
.widget a:hover { color: var(--pr-teal-700); }
.widget select { max-width: 100%; }

.page-header, .entry-article { background: var(--pr-paper); border: 1px solid var(--pr-border); border-radius: var(--pr-radius); box-shadow: 0 8px 30px rgba(8,59,72,.05); }
.page-header { margin-bottom: 24px; padding: 30px; }
.page-title { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.08; letter-spacing: -.05em; }
.archive-description { color: var(--pr-muted); }
.entry-article { overflow: hidden; }
.entry-article__header { padding: clamp(26px, 5vw, 52px) clamp(24px, 6vw, 68px) 24px; }
.entry-title { margin: 8px 0 16px; font-size: clamp(2rem, 5vw, 3.45rem); line-height: 1.08; letter-spacing: -.05em; }
.entry-article__image { margin: 0; }
.entry-article__image img { width: 100%; max-height: 620px; object-fit: cover; }
.entry-content { padding: 34px clamp(24px, 6vw, 68px) 52px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.05rem, 2vw, 1.18rem); line-height: 1.82; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1020px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--pr-ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.2; letter-spacing: -.03em; }
.entry-content h2 { margin-top: 2.1em; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.entry-content h3 { margin-top: 1.8em; font-size: 1.4rem; }
.entry-content blockquote { padding: 18px 24px; color: var(--pr-teal-900); background: var(--pr-teal-100); border-left: 5px solid var(--pr-gold); }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--pr-border); }
.entry-content .wp-block-button__link { color: #fff; background: var(--pr-teal-800); border-radius: 10px; }
.page .addtoany_share_save_container,
.page .a2a_kit { display: none !important; }
.breadcrumbs { margin-bottom: 22px; color: var(--pr-muted); font-size: .78rem; }
.breadcrumbs a { color: inherit; }
.financial-note { max-width: 760px; margin: 0 auto 42px; padding: 20px 22px; color: #5a4400; background: #fff8df; border: 1px solid #efdc94; border-radius: 14px; font-size: .86rem; line-height: 1.55; }
.author-box { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 18px; max-width: 760px; margin: 0 auto 52px; padding: 22px; background: var(--pr-canvas); border-radius: 14px; }
.author-box img { border-radius: 50%; }
.author-box h2 { margin: 0 0 5px; font-size: 1.1rem; }
.author-box p { margin: 0; color: var(--pr-muted); font-size: .86rem; }
.related-posts { max-width: 100%; padding: 32px clamp(24px, 6vw, 68px) 52px; border-top: 1px solid var(--pr-border); }
.related-posts h2 { margin: 0 0 20px; }
.related-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.related-posts a { color: var(--pr-ink); font-weight: 750; line-height: 1.35; text-decoration: none; }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.page-numbers { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: 7px 12px; color: var(--pr-ink); background: #fff; border: 1px solid var(--pr-border); border-radius: 9px; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { color: #fff; background: var(--pr-teal-800); border-color: var(--pr-teal-800); }
.empty-state { padding: 44px; text-align: center; background: #fff; border-radius: var(--pr-radius); }

.site-footer { color: #d8e7ea; background: #062f39; }
.footer-widgets { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; padding-block: 48px; }
.footer-brand .site-title a, .site-footer a { color: #fff; }
.footer-brand p { max-width: 390px; color: #acc6cc; font-size: .88rem; }
.site-footer .widget { padding: 0; background: transparent; border: 0; border-radius: 0; }
.site-footer .widget-title { color: #fff; border-color: var(--pr-gold); }
.site-footer .widget li + li { border-color: rgba(255,255,255,.12); }
.site-footer .widget a { color: #d8e7ea; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { font-size: .83rem; text-decoration: none; }
.footer-bottom { padding: 19px 0; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 18px; color: #aac2c8; font-size: .78rem; }

@media (max-width: 980px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .home-hero__card { max-width: 620px; }
  .nav-trust { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .pr-container { width: min(calc(100% - 28px), var(--pr-container)); }
  .site-header__top { min-height: 86px; }
  .site-description, .header-search { display: none; }
  .custom-logo { width: 48px; max-height: 52px; }
  .menu-toggle { display: inline-flex; margin: 9px 0; }
  .nav-shell { align-items: flex-start; flex-direction: column; }
  .primary-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 4px 0 12px; }
  .primary-menu.is-open { display: flex; }
  .primary-menu a { padding: 12px 14px; }
  .primary-menu .sub-menu { display: block; position: static; margin-left: 14px; box-shadow: none; }
  .home-hero { padding: 42px 0 34px; }
  .posts-grid, .sidebar, .footer-widgets, .related-posts__grid { grid-template-columns: 1fr; }
  .site-content { padding-block: 30px 48px; }
  .entry-article__header, .entry-content { padding-left: 22px; padding-right: 22px; }
  .entry-title { font-size: clamp(1.85rem, 10vw, 2.65rem); }
  .footer-bottom__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .main-navigation, .header-search, .sidebar, .site-footer, .related-posts { display: none !important; }
  body { color: #000; background: #fff; }
  .content-grid { display: block; }
  .entry-article { border: 0; box-shadow: none; }
}
