/* ============================================================
   Dinheiro de Verdade — style.css
   dinheirodverdade.com.br
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Merriweather:wght@400;700&family=Inter:wght@400;500;600&display=swap');

/* ---- Variáveis ------------------------------------------- */
:root {
  --cream:      #F7F3EC;
  --dark-green: #0B3D2E;
  --mid-green:  #1A6B4A;
  --light-green:#2ECC8A;
  --gold:       #C9A84C;
  --text:       #1C1C1C;
  --text-light: #555;
  --border:     #DDD6C8;
  --white:      #FFFFFF;
  --shadow:     0 2px 16px rgba(11,61,46,.10);
  --radius:     10px;
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.85;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mid-green); text-decoration: none; }
a:hover { color: var(--light-green); }
ul, ol { padding-left: 1.4em; }

/* ---- Skip link ------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--dark-green);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* ---- Header ---------------------------------------------- */
.site-header {
  background: var(--dark-green);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo .brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -.3px;
}
.site-logo .tagline {
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--mid-green);
  color: #fff;
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--dark-green) !important;
  font-weight: 600 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: #e0ba5a !important; }

/* ---- Hero (index) ---------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--dark-green) 0%, #0f5238 100%);
  padding: 72px 24px 64px;
  text-align: center;
  color: #fff;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 580px;
  margin: 0 auto 28px;
}
.hero-search {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.hero-search input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 50px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s;
}
.hero-search input:focus { border-color: var(--gold); }
.hero-search button {
  background: var(--gold);
  color: var(--dark-green);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s;
}
.hero-search button:hover { background: #e0ba5a; }

/* ---- Section labels -------------------------------------- */
.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid-green);
  margin-bottom: 6px;
}

/* ---- Cards grid (index) ---------------------------------- */
.cards-section {
  max-width: 1200px;
  margin: 56px auto;
  padding: 0 24px;
}
.cards-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 8px;
}
.cards-section .subtitle {
  color: var(--text-light);
  margin-bottom: 36px;
  font-size: .95rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(11,61,46,.15);
}
.card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.card:hover .card-img-wrap img { transform: scale(1.05); }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--dark-green);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.card-body {
  padding: 22px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 10px;
  line-height: 1.4;
}
.card p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mid-green);
  font-weight: 600;
  font-size: .88rem;
  transition: gap .2s, color .2s;
}
.card-link:hover { color: var(--light-green); gap: 10px; }

/* ---- Featured card --------------------------------------- */
.card.featured {
  grid-column: span 2;
  flex-direction: row;
}
.card.featured .card-img-wrap { width: 45%; height: auto; min-height: 260px; }
.card.featured .card-body { padding: 32px; }
.card.featured h3 { font-size: 1.45rem; }

/* ---- Breadcrumb ------------------------------------------ */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-light);
}
.breadcrumb-inner a { color: var(--mid-green); }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #bbb; }

/* ---- Article layout -------------------------------------- */
.article-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.article-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.article-header { margin-bottom: 28px; }
.article-category {
  display: inline-block;
  background: var(--light-green);
  color: var(--dark-green);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--dark-green);
  line-height: 1.25;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: .82rem;
  color: var(--text-light);
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* ---- Article body typography ----------------------------- */
.article-body {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
}
.article-body p { margin-bottom: 1.5em; }
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-green);
  margin: 2em 0 .7em;
  line-height: 1.3;
}
.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mid-green);
  margin: 1.6em 0 .6em;
}
.article-body ul, .article-body ol {
  margin-bottom: 1.4em;
}
.article-body li { margin-bottom: .5em; }
.article-body strong { color: var(--dark-green); font-weight: 700; }
.article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 12px 20px;
  background: #fffbf0;
  margin: 1.6em 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #444;
}

/* ---- Highlight boxes ------------------------------------- */
.box-learn {
  background: #e8f6ef;
  border-left: 5px solid var(--mid-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 1.8em 0;
}
.box-learn .box-title {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mid-green);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.box-learn ul {
  margin: 0;
  padding-left: 1.3em;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
}
.box-learn li { margin-bottom: 6px; color: var(--text); }

.box-alert {
  background: #fffbef;
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 1.8em 0;
}
.box-alert .box-title {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.box-alert p {
  font-family: 'Inter', sans-serif;
  font-size: .93rem;
  color: #5a4a1e;
  margin: 0;
  line-height: 1.7;
}

/* ---- AdSense banners ------------------------------------- */
.adsense-wrap {
  margin: 2em 0;
  text-align: center;
}
.adsense-label {
  font-size: .7rem;
  color: #aaa;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.adsense-placeholder {
  background: #f0ede6;
  border: 1px dashed #ccc;
  border-radius: 6px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: .8rem;
  font-family: 'Inter', sans-serif;
}

/* ---- Share buttons --------------------------------------- */
.share-section {
  margin: 2.4em 0 1em;
  padding-top: 1.6em;
  border-top: 2px solid var(--border);
}
.share-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  font-family: 'Inter', sans-serif;
}
.share-btn:hover { opacity: .88; transform: translateY(-1px); }
.share-whatsapp { background: #25D366; color: #fff; }
.share-facebook { background: #1877F2; color: #fff; }
.share-twitter  { background: #1DA1F2; color: #fff; }

/* ---- Sidebar --------------------------------------------- */
.sidebar { position: sticky; top: 90px; }
.sidebar-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.sidebar-block-header {
  background: var(--dark-green);
  padding: 14px 20px;
}
.sidebar-block-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}
.sidebar-related { padding: 8px 0; }
.sidebar-related-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.sidebar-related-item:last-child { border-bottom: none; }
.sidebar-related-item:hover { background: #f9f7f3; }
.sidebar-related-item img {
  width: 60px;
  height: 46px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.sidebar-related-item a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark-green);
  line-height: 1.4;
}
.sidebar-related-item a:hover { color: var(--mid-green); }

/* ---- Newsletter CTA ------------------------------------- */
.newsletter-block {
  background: linear-gradient(135deg, var(--dark-green) 0%, #0f5238 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.newsletter-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.newsletter-block p {
  font-size: .83rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 18px;
  line-height: 1.6;
}
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  padding: 11px 16px;
  border-radius: 6px;
  border: none;
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.newsletter-form button {
  background: var(--gold);
  color: var(--dark-green);
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s;
}
.newsletter-form button:hover { background: #e0ba5a; }

/* ---- Footer ---------------------------------------------- */
.site-footer {
  background: var(--dark-green);
  color: rgba(255,255,255,.7);
  padding: 56px 24px 32px;
  margin-top: 64px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .875rem; }
.footer-col a:hover { color: var(--light-green); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--light-green); }

/* ---- Pagination ------------------------------------------ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 48px 0 24px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 9px 16px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--mid-green);
  transition: all .2s;
}
.pagination .active, .pagination a:hover {
  background: var(--mid-green);
  color: #fff;
  border-color: var(--mid-green);
}

/* ---- Utilities ------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 1024px) {
  .article-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .card.featured { grid-column: span 1; flex-direction: column; }
  .card.featured .card-img-wrap { width: 100%; height: 200px; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .hero { padding: 48px 20px 40px; }
  .cards-grid { grid-template-columns: 1fr; }
  .article-hero-img { height: 240px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .share-buttons { flex-direction: column; }
  .article-wrap { padding: 24px 16px 40px; }
  .hero-search { flex-direction: column; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .article-title { font-size: 1.45rem; }
  .breadcrumb-inner { font-size: .75rem; }
}
