/* ============================================================
   Finanza Capital — Stylesheet Global
   Fonte títulos: Manrope | Fonte corpo: Inter
   ============================================================ */

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

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; color: #FFFFFF; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* ─── Variáveis ─── */
:root {
  --bg:          #07091C;
  --bg-2:        #0D1125;
  --bg-3:        #111929;
  --bg-card:     #0F1320;
  --bg-light:    #FFFFFF;
  --bg-gray:     #F5F7FC;
  --accent:      #D4185A;
  --accent-h:    #B81249;
  --primary:     #3730A3;
  --primary-h:   #4338CA;
  --primary-bg:  rgba(55, 48, 163, 0.12);
  --text:        #FFFFFF;
  --text-m:      #FFFFFF;
  --text-dk:     #0F1225;
  --text-mid:    #475070;
  --border-d:    rgba(255, 255, 255, 0.07);
  --border-l:    #E2E8F0;
  --max-w:       1200px;
  --nav-h:       72px;
  --ff-h:        'Manrope', sans-serif;
  --ff-b:        'Inter', sans-serif;
  --radius:      4px;
  --shadow:      0 4px 24px rgba(0,0,0,0.3);
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 { font-family: var(--ff-h); font-weight: 700; line-height: 1.15; }
p { line-height: 1.75; }

/* ─── Layout ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }

/* ─── Section Label ─── */
.label {
  display: inline-block;
  font-family: var(--ff-b);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.label--dark { color: var(--accent); }
.label--light { color: var(--accent); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-b);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
}
.btn-primary:hover { background: var(--primary-h); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.28);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.05); }

.btn-outline-dark {
  background: transparent;
  color: var(--text-dk);
  border: 1.5px solid var(--border-l);
  font-size: 0.75rem;
}
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }

.btn-accent {
  background: var(--accent);
  color: var(--text);
}
.btn-accent:hover { background: var(--accent-h); transform: translateY(-1px); }

.btn svg { flex-shrink: 0; }

/* ─── Logo Images ─── */
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-img {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 14px;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(7, 9, 28, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-d);
  transition: border-color 0.3s;
}

.nav.scrolled { border-bottom-color: rgba(255,255,255,0.1); }

.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li a {
  display: block;
  padding: 0 20px;
  height: var(--nav-h);
  line-height: var(--nav-h);
  font-family: var(--ff-b);
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-m);
  transition: color 0.2s;
  position: relative;
}

.nav-links li a:hover { color: var(--text); }

.nav-links li a.active { color: var(--text); }

.nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-b);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--primary);
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--primary-h); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
  border-radius: 2px;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(7,9,28,0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--ff-h);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-m);
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--text); }
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: var(--text-m);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}
.mobile-nav-close:hover { color: var(--text); }
.mobile-nav .btn-accent { margin-top: 8px; font-size: 0.82rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border-d);
}

.footer-top {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-m);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-d);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-m);
  transition: all 0.2s;
}
.social-btn:hover { border-color: rgba(255,255,255,0.3); color: var(--text); background: rgba(255,255,255,0.05); }

.footer-col h4 {
  font-family: var(--ff-b);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-nav-links { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-links a {
  font-size: 0.88rem;
  color: var(--text-m);
  transition: color 0.2s;
}
.footer-nav-links a:hover { color: var(--text); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-m);
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer-contact-item svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid var(--border-d);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-m);
  line-height: 1.5;
}

.footer-policy-links {
  display: flex;
  gap: 20px;
}
.footer-policy-links a {
  font-size: 0.75rem;
  color: var(--text-m);
  transition: color 0.2s;
}
.footer-policy-links a:hover { color: var(--text); }

/* ─── PRE-FOOTER CTA ─── */
.prefooter-cta {
  background: var(--bg-2);
  border-top: 1px solid var(--border-d);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.prefooter-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(55,48,163,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.prefooter-cta .container { position: relative; z-index: 1; }

.prefooter-cta h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  color: var(--text);
  margin-bottom: 12px;
}

.prefooter-cta h2 .accent { color: var(--accent); }

.prefooter-cta p {
  font-size: 0.95rem;
  color: var(--text-m);
  margin-bottom: 36px;
}

/* ─── PAGE HEADER (páginas internas) ─── */
.page-header {
  background: var(--bg);
  padding: calc(var(--nav-h) + 72px) 0 80px;
  border-bottom: 1px solid var(--border-d);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(55,48,163,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-header .container { position: relative; z-index: 1; }

.page-header-inner { max-width: 680px; }

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
  margin-bottom: 20px;
}

.page-header h1 .accent { color: var(--accent); }

.page-header p {
  font-size: 1rem;
  color: var(--text-m);
  max-width: 560px;
}

/* ─── SCROLL FADE ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-policy-links { flex-wrap: wrap; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(55,48,163,0.5); border-radius: 2px; }

::selection { background: var(--accent); color: #fff; }
