/*
Theme Name: Renda Gold Pro
Theme URI: https://rendagold.com.br/
Author: Renda Gold
Description: Tema editorial leve, responsivo e acessível para o portal Renda Gold.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: renda-gold-pro
*/

:root {
  --navy: #071c2c;
  --navy-2: #0d2b3f;
  --gold: #d9a928;
  --gold-soft: #fff6d9;
  --ink: #152330;
  --muted: #607180;
  --line: #dce4e9;
  --surface: #f4f7f9;
  --white: #fff;
  --success: #126b50;
  --radius: 18px;
  --shadow: 0 14px 38px rgba(7, 28, 44, .09);
  --wrap: min(1180px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); text-decoration-color: rgba(217,169,40,.65); text-underline-offset: 3px; }
a:hover { color: #9b7311; }
.wrap { width: var(--wrap); margin-inline: auto; }
.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; }
.skip-link:focus { position: fixed; z-index: 9999; top: 10px; left: 10px; width: auto; height: auto; padding: 10px 14px; clip: auto; background: var(--white); }

.topline { background: var(--navy); color: #dbe7ed; font-size: 13px; }
.topline .wrap { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; }
.topline strong { color: #ffd65e; }
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(220,228,233,.85); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.header-main { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 800; letter-spacing: -.7px; }
.brand-tag { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 9px 12px; color: var(--navy); font-weight: 800; }
.main-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: block; padding: 9px 11px; color: var(--navy); border-radius: 9px; font-size: 14px; font-weight: 750; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--gold-soft); color: #79570b; }

.market-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.market-strip .wrap { display: flex; gap: 24px; overflow-x: auto; padding: 9px 0; scrollbar-width: none; }
.market-item { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.market-item b { color: var(--navy); margin-right: 5px; }
.market-item .up { color: var(--success); font-weight: 800; }

.hero { padding: 48px 0 30px; background: radial-gradient(circle at 84% 0, #fff0b7 0, transparent 27%), linear-gradient(180deg,#f7fafb 0,#fff 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.75fr); gap: 28px; }
.lead-card { position: relative; min-height: 480px; overflow: hidden; border-radius: 24px; background: var(--navy); box-shadow: var(--shadow); }
.lead-card > a, .lead-card img { display: block; width: 100%; height: 100%; }
.lead-card img { position: absolute; inset: 0; object-fit: cover; opacity: .67; }
.lead-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 25%,rgba(7,28,44,.92) 90%); }
.lead-content { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 38px; color: #fff; }
.eyebrow { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: #221a06; font-size: 12px; font-weight: 850; letter-spacing: .5px; text-transform: uppercase; }
.lead-content h1 { max-width: 760px; margin: 14px 0 10px; color: #fff; font-family: Georgia,serif; font-size: clamp(31px,4vw,50px); line-height: 1.08; }
.lead-content a { color: inherit; text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 13px; }
.lead-content .meta { color: #e5edf1; }
.side-stack { display: grid; gap: 16px; }
.side-card { display: grid; grid-template-columns: 125px 1fr; min-height: 142px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 24px rgba(7,28,44,.05); }
.side-card img { width: 100%; height: 100%; min-height: 142px; object-fit: cover; }
.side-card-body { padding: 15px; }
.side-card h2 { margin: 7px 0 0; font-family: Georgia,serif; font-size: 19px; line-height: 1.28; }
.side-card h2 a { color: var(--navy); text-decoration: none; }

.section { padding: 42px 0; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:22px; border-bottom:1px solid var(--line); }
.section-head h2 { position:relative; margin:0; padding-bottom:12px; color:var(--navy); font-family:Georgia,serif; font-size:30px; line-height:1.2; }
.section-head h2::after { content:""; position:absolute; bottom:-1px; left:0; width:72px; height:3px; background:var(--gold); }
.section-head a { margin-bottom:12px; font-size:14px; font-weight:750; }
.posts-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 8px 28px rgba(7,28,44,.05); transition:transform .2s,box-shadow .2s; }
.post-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.post-card .thumb { display:block; aspect-ratio:16/9; overflow:hidden; background:#e8eef1; }
.post-card .thumb img { width:100%; height:100%; object-fit:cover; transition:transform .35s; }
.post-card:hover .thumb img { transform:scale(1.03); }
.post-card-body { padding:20px; }
.post-card h3 { margin:10px 0; font-family:Georgia,serif; font-size:23px; line-height:1.28; }
.post-card h3 a { color:var(--navy); text-decoration:none; }
.excerpt { color:var(--muted); font-size:15px; }
.trust-band { background:var(--navy); color:#dbe7ed; }
.trust-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; padding:30px 0; }
.trust-item { display:grid; grid-template-columns:42px 1fr; gap:12px; align-items:start; }
.trust-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:rgba(217,169,40,.15); color:#ffd45a; font-weight:900; }
.trust-item b { display:block; color:#fff; }
.trust-item span { display:block; margin-top:3px; font-size:13px; line-height:1.5; }

.content-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:38px; padding:46px 0; }
.article { min-width:0; }
.article-header { margin-bottom:28px; }
.article-header h1, .page-header h1 { margin:10px 0 14px; color:var(--navy); font-family:Georgia,serif; font-size:clamp(34px,5vw,52px); line-height:1.12; letter-spacing:-.6px; }
.article .featured { width:100%; margin:0 0 28px; border-radius:20px; }
.article-content { font-family:Georgia,"Times New Roman",serif; font-size:19px; line-height:1.85; }
.article-content h2, .article-content h3 { color:var(--navy); line-height:1.25; }
.article-content a { font-weight:650; }
.article-content blockquote { margin:28px 0; padding:18px 24px; border-left:4px solid var(--gold); background:var(--gold-soft); }
.article-content table { display:block; max-width:100%; overflow:auto; border-collapse:collapse; }
.article-content th,.article-content td { padding:10px; border:1px solid var(--line); }
.disclaimer { margin:28px 0; padding:18px; border:1px solid #ead89d; border-radius:14px; background:#fffaf0; color:#5c4b1d; font-family:Inter,sans-serif; font-size:14px; }
.author-box { display:grid; grid-template-columns:64px 1fr; gap:16px; margin-top:36px; padding:22px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }
.author-box img { border-radius:50%; }
.author-box h2 { margin:0 0 5px; font-size:20px; }
.sidebar-widget { margin-bottom:22px; padding:22px; border:1px solid var(--line); border-radius:var(--radius); }
.sidebar-widget h2 { margin-top:0; color:var(--navy); font-family:Georgia,serif; font-size:21px; }
.sidebar-widget ul { margin:0; padding-left:19px; }
.sidebar-widget li { margin:8px 0; }

.archive-header,.page-header { padding:44px 0 22px; background:var(--surface); }
.archive-grid { padding:36px 0 52px; }
.pagination { margin-top:34px; }
.pagination .nav-links { display:flex; flex-wrap:wrap; gap:8px; }
.pagination a,.pagination span { display:inline-grid; place-items:center; min-width:42px; min-height:42px; padding:8px; border:1px solid var(--line); border-radius:9px; text-decoration:none; }
.pagination .current { background:var(--navy); color:#fff; border-color:var(--navy); }
.empty-state { padding:70px 0; text-align:center; }

.site-footer { background:#061722; color:#b8c7d0; }
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:34px; padding:48px 0 34px; }
.footer-brand .brand { color:#fff; }
.footer-brand p { max-width:480px; font-size:14px; }
.site-footer h2 { color:#fff; font-size:16px; }
.site-footer ul { margin:0; padding:0; list-style:none; }
.site-footer li { margin:7px 0; }
.site-footer a { color:#dce6eb; }
.footer-bottom { padding:18px 0; border-top:1px solid rgba(255,255,255,.1); font-size:12px; }

.cookie-banner { position:fixed; z-index:9998; right:18px; bottom:18px; left:18px; display:none; max-width:800px; margin:auto; padding:20px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 18px 60px rgba(0,0,0,.2); }
.cookie-banner.is-open { display:block; }
.cookie-banner p { margin:0 0 14px; color:var(--muted); font-size:14px; line-height:1.55; }
.cookie-actions { display:flex; flex-wrap:wrap; gap:10px; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:10px 16px; border:1px solid var(--navy); border-radius:9px; background:var(--navy); color:#fff; font-weight:800; text-decoration:none; cursor:pointer; }
.btn:hover { color:#fff; background:var(--navy-2); }
.btn-secondary { background:#fff; color:var(--navy); }
.btn-secondary:hover { color:var(--navy); background:var(--surface); }

@media (max-width: 920px) {
  .menu-toggle { display:inline-flex; }
  .main-nav { position:absolute; top:78px; right:16px; left:16px; display:none; padding:12px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:var(--shadow); }
  .main-nav.is-open { display:block; }
  .main-nav ul { display:block; }
  .hero-grid,.content-layout { grid-template-columns:1fr; }
  .side-stack { grid-template-columns:repeat(3,1fr); }
  .side-card { display:block; }
  .posts-grid { grid-template-columns:repeat(2,1fr); }
  .sidebar { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
}
@media (max-width: 640px) {
  body { font-size:16px; }
  .topline .wrap { justify-content:center; }
  .topline span:last-child,.brand-tag { display:none; }
  .brand-name { font-size:24px; }
  .hero { padding-top:24px; }
  .lead-card { min-height:430px; }
  .lead-content { padding:24px; }
  .side-stack,.posts-grid,.trust-grid,.footer-grid,.sidebar { grid-template-columns:1fr; }
  .side-card { display:grid; }
  .content-layout { padding-top:30px; }
  .article-content { font-size:18px; }
}
