/*
Theme Name: Of North Invest
Theme URI: https://ofnorthinvest.com.br
Author: Of North Invest
Description: Tema personalizado para o blog de investimentos Of North Invest
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: ofnorthinvest
*/

:root {
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --blue-deeper: #1E3A8A;
  --blue-light:  #EFF6FF;
  --blue-pale:   #DBEAFE;
  --blue-mid:    #3B82F6;
  --slate:       #0F172A;
  --gold:        #D97706;
  --gold-light:  #FEF3C7;
  --green:       #059669;
  --red:         #DC2626;
  --text:        #0F172A;
  --text-mid:    #334155;
  --text-light:  #64748B;
  --border:      #E2E8F0;
  --surface:     #F8FAFC;
  --white:       #FFFFFF;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); }

/* ─── SVG ICON SYSTEM ─── */
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon svg { display: block; }

/* ─── COMPASS LOGO ─── */
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; position: relative; flex-shrink: 0; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.logo-name span { color: var(--blue); }
.logo-sub { font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light); margin-top: 2px; }

/* ─── NAV ─── */
nav.oni-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 7px 13px;
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-links a:hover { background: var(--blue-light); color: var(--blue); }
.nav-links a.active, .nav-links .current-menu-item > a { color: var(--blue); background: var(--blue-light); font-weight: 600; }
.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  font-weight: 600 !important;
  border-radius: 7px !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

/* ─── TICKER ─── */
.ticker {
  background: var(--slate);
  padding: 9px 0;
  overflow: hidden;
  border-bottom: 2px solid var(--blue);
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.ticker-name { font-weight: 700; color: rgba(255,255,255,0.9); }
.up { color: #34D399; font-weight: 600; }
.dn { color: #F87171; font-weight: 600; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(160deg, var(--slate) 0%, #162040 50%, var(--blue-deeper) 100%);
  padding: 88px 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-compass-bg {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 360px;
  height: 360px;
  opacity: 0.04;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 28px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--blue-mid);
}
.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: white;
  line-height: 1.22;
  margin-bottom: 22px;
  max-width: 680px;
}
.hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--blue);
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,0.4); }
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: white; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.stat-value { font-size: 26px; font-weight: 800; color: white; letter-spacing: -0.5px; display: block; }
.stat-label { font-size: 11.5px; color: rgba(255,255,255,0.45); margin-top: 3px; letter-spacing: 0.05em; }

/* ─── SECTION ─── */
.section { padding: 72px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--blue); }
.section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}
.section-sub { font-size: 14.5px; color: var(--text-light); line-height: 1.65; }
.section-header { margin-bottom: 40px; }

/* ─── CATEGORIES ─── */
.categories { background: var(--surface); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 14px;
}
.cat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cat-card:hover { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.08), 0 4px 16px rgba(37,99,235,0.1); transform: translateY(-2px); }
.cat-card:hover .cat-icon-wrap { background: var(--blue); }
.cat-card:hover .cat-icon-wrap svg { stroke: white; }
.cat-icon-wrap {
  width: 46px; height: 46px;
  background: var(--blue-light);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.cat-icon-wrap svg { stroke: var(--blue); transition: stroke 0.18s; }
.cat-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.cat-count { font-size: 11.5px; color: var(--text-light); }

/* ─── ARTICLES ─── */
.articles-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 22px; }
.article-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.09); transform: translateY(-2px); }
.article-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.article-card.featured .article-thumb { height: 240px; }
.article-thumb::before {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  border: 2px solid rgba(37,99,235,0.15);
  border-radius: 50%;
}
.article-thumb::after {
  content: '';
  position: absolute;
  bottom: -50px; right: -50px;
  width: 180px; height: 180px;
  border: 2px solid rgba(37,99,235,0.08);
  border-radius: 50%;
}
.thumb-icon { position: relative; z-index: 1; }
.article-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.article-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.article-title {
  font-family: 'Merriweather', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--text);
}
.article-card.featured .article-title { font-size: 19px; }
.article-excerpt { font-size: 13.5px; color: var(--text-light); line-height: 1.65; flex: 1; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }
.read-time { margin-left: auto; font-weight: 500; color: var(--blue); font-size: 12px; }
.articles-side { display: flex; flex-direction: column; gap: 14px; }
.article-mini {
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 16px;
  display: flex;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.18s;
  align-items: flex-start;
}
.article-mini:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.07); }
.mini-thumb {
  width: 58px; height: 58px;
  background: var(--blue-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mini-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); margin-bottom: 5px; }
.mini-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); }
.mini-read { font-size: 11px; color: var(--text-light); margin-top: 5px; }

/* ─── CALC BANNER ─── */
.calc-banner {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 100%);
  border-radius: 16px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
}
.calc-text h3 {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  color: white;
  margin-bottom: 5px;
  font-weight: 700;
}
.calc-text p { font-size: 13.5px; color: rgba(255,255,255,0.55); }
.calc-fields { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.calc-field { display: flex; flex-direction: column; gap: 5px; }
.calc-field label { font-size: 10.5px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.calc-field input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  width: 115px;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s;
}
.calc-field input:focus { border-color: rgba(255,255,255,0.4); }
.calc-btn {
  background: var(--gold);
  color: white;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
  align-self: flex-end;
}
.calc-result { text-align: right; }
.calc-result-value { font-size: 30px; font-weight: 800; color: #6EE7B7; display: block; letter-spacing: -1px; line-height: 1; }
.calc-result-label { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 4px; }

/* ─── NEWSLETTER ─── */
.newsletter { background: var(--slate); padding: 72px 40px; }
.newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter-icon {
  width: 52px; height: 52px;
  background: rgba(37,99,235,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(37,99,235,0.3);
}
.newsletter h2 {
  font-family: 'Merriweather', serif;
  font-size: 24px;
  color: white;
  margin-bottom: 10px;
  line-height: 1.3;
}
.newsletter p { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 28px; line-height: 1.65; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: white;
  font-size: 14px;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form input:focus { border-color: var(--blue-mid); }
.newsletter-form button {
  background: var(--blue);
  color: white;
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.newsletter-form button:hover { background: var(--blue-dark); }
.newsletter-note { font-size: 11.5px; color: rgba(255,255,255,0.28); margin-top: 14px; }

/* ─── PROOF ─── */
.proof { background: var(--surface); }
.proof-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 36px;
}
.proof-num { background: white; padding: 28px 24px; text-align: center; }
.proof-num-value { font-size: 34px; font-weight: 800; color: var(--blue); display: block; letter-spacing: -1px; line-height: 1; }
.proof-num-label { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proof-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.proof-stars { display: flex; gap: 3px; margin-bottom: 12px; }
.proof-text { font-size: 13.5px; color: var(--text-mid); line-height: 1.65; font-style: italic; margin-bottom: 16px; }
.proof-author { font-size: 13px; font-weight: 700; color: var(--text); }
.proof-role { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ─── AFILIADOS ─── */
.afiliados {
  background: white;
  padding: 28px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.afiliados-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.afiliados-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  white-space: nowrap;
}
.afiliado-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-mid);
}

/* ─── FOOTER ─── */
footer.oni-footer { background: var(--slate); padding: 56px 40px 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 12px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: rgba(255,255,255,0.4); font-size: 13px; text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-divider { max-width: 1100px; margin: 0 auto; border: none; border-top: 1px solid rgba(255,255,255,0.07); margin-bottom: 20px; }
.footer-disclaimer { max-width: 1100px; margin: 0 auto 20px; font-size: 11px; color: rgba(255,255,255,0.22); line-height: 1.7; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── SINGLE POST ─── */
.single-hero {
  background: linear-gradient(160deg, var(--slate) 0%, #162040 60%, var(--blue-deeper) 100%);
  padding: 60px 40px;
  position: relative;
}
.single-hero-inner { max-width: 820px; margin: 0 auto; }
.single-tag {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-mid); background: rgba(37,99,235,0.15); padding: 4px 12px;
  border-radius: 4px; margin-bottom: 20px;
  border: 1px solid rgba(59,130,246,0.3);
}
.single-hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; color: white; line-height: 1.25; margin-bottom: 16px;
}
.single-meta { font-size: 13px; color: rgba(255,255,255,0.45); display: flex; gap: 16px; flex-wrap: wrap; }

.single-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 40px;
}
.single-content h2 { font-family: 'Merriweather', serif; font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 40px 0 16px; line-height: 1.3; }
.single-content h3 { font-family: 'Merriweather', serif; font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 32px 0 12px; }
.single-content p { font-size: 16px; line-height: 1.85; color: var(--text-mid); margin-bottom: 20px; }
.single-content ul, .single-content ol { margin: 0 0 20px 24px; }
.single-content li { font-size: 16px; line-height: 1.85; color: var(--text-mid); margin-bottom: 8px; }
.single-content a { color: var(--blue); text-decoration: underline; }
.single-content strong { color: var(--text); font-weight: 700; }
.single-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  background: var(--blue-light);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-mid);
}
.single-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }

/* ─── BLOG INDEX ─── */
.blog-hero {
  background: linear-gradient(160deg, var(--slate) 0%, #162040 60%);
  padding: 56px 40px;
}
.blog-hero-inner { max-width: 1100px; margin: 0 auto; }
.blog-hero h1 { font-family: 'Merriweather', serif; font-size: 2rem; color: white; margin-bottom: 8px; }
.blog-hero p { font-size: 15px; color: rgba(255,255,255,0.5); }

.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

/* ─── ADMIN BAR OFFSET ─── */
.admin-bar nav.oni-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar nav.oni-nav { top: 46px; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav.oni-nav { padding: 0 16px; }
  .nav-links { display: none; }
  .hero, .section, .newsletter { padding-left: 20px; padding-right: 20px; }
  .articles-grid, .proof-numbers, .proof-grid, .footer-grid { grid-template-columns: 1fr; }
  .calc-banner { grid-template-columns: 1fr; }
  .afiliados { padding: 24px 20px; }
  .single-content, .blog-grid { padding: 40px 20px; }
  .single-hero, .blog-hero { padding: 40px 20px; }
}
