/* =============================================
   Finjus — Investimentos e Consultoria Ltda.
   Site estático — fonte única de estilos
   ============================================= */

:root {
  --bg-primary: #14102a;
  --bg-secondary: #1c1638;
  --bg-elevated: #1f1740;
  --accent-purple: #a78bfa;
  --accent-purple-dim: rgba(167, 139, 250, 0.18);
  --accent-purple-soft: rgba(167, 139, 250, 0.06);
  --accent-purple-border: rgba(167, 139, 250, 0.2);
  --accent-teal: #5fd4b8;
  --accent-teal-dim: rgba(95, 212, 184, 0.18);
  --accent-teal-soft: rgba(95, 212, 184, 0.06);
  --accent-teal-border: rgba(95, 212, 184, 0.2);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-subtle: rgba(255, 255, 255, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-input: rgba(255, 255, 255, 0.18);
  --container-max: 1180px;
  --content-max: 720px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
img, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

h1, h2, h3 {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-primary);
}
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.5vw, 32px); }
h3 { font-size: clamp(20px, 2.8vw, 26px); }

p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
strong { color: var(--text-primary); font-weight: 500; }

.eyebrow {
  color: var(--accent-teal);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 500;
  margin: 0 0 16px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.accent-purple { color: var(--accent-purple); }
.accent-teal   { color: var(--accent-teal); }

/* LAYOUT */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-darker { background: var(--bg-secondary); }
.section-head { max-width: var(--content-max); margin: 0 auto 56px; text-align: center; }
.section-sub { margin-top: 12px; }

/* HEADER */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; max-width: 1320px; margin: 0 auto;
}
.logo-link { display: inline-flex; align-items: center; gap: 10px; }
.logo-img { display: block; height: 36px; width: auto; }
.site-nav { display: flex; gap: 36px; }
.site-nav a {
  font-size: 11px; letter-spacing: 0.18em; color: var(--text-secondary); font-weight: 500;
}
.site-nav a:hover, .site-nav a.active { color: var(--text-primary); }

/* HERO */
.hero { padding: 96px 0 80px; text-align: center; }
.hero .container { max-width: 880px; }
.hero-title { margin: 18px 0 22px; font-size: clamp(40px, 6vw, 60px); line-height: 1.1; }
.hero-sub { max-width: 640px; margin: 0 auto 32px; font-size: 16px; }
.hero-ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* BOTÕES */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  border: 0.5px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  cursor: pointer; font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--accent-purple); color: #14102a; }
.btn-primary:hover { background: #b89cff; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-input); }
.btn-secondary:hover { border-color: var(--text-primary); }
.btn-block { width: 100%; padding: 14px 22px; }

/* QUEM SOMOS */
.about-grid {
  display: grid; grid-template-columns: 80px 1fr; gap: 28px;
  align-items: start; max-width: 880px; margin: 0 auto;
}
.icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-purple-soft); border: 0.5px solid var(--accent-purple-border);
  display: flex; align-items: center; justify-content: center;
}

/* TOGGLES */
.toggles { display: grid; gap: 20px; max-width: 760px; margin: 0 auto; }
.toggle {
  background: var(--bg-elevated); border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.toggle summary {
  list-style: none; cursor: pointer; padding: 22px 24px;
  display: flex; align-items: center; gap: 18px;
  transition: background-color 0.2s ease;
}
.toggle summary::-webkit-details-marker { display: none; }
.toggle-icon-box {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--accent-purple-dim);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-box-teal { background: var(--accent-teal-dim); }
.toggle-titles { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.toggle-title { font-family: 'Source Serif 4', serif; font-size: 17px; color: var(--text-primary); font-weight: 500; }
.toggle-sub { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
.toggle-chevron {
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg); transition: transform 0.3s ease;
}
.toggle[open] .toggle-chevron { transform: rotate(-135deg); }
.toggle-purple summary:hover { background-color: rgba(167, 139, 250, 0.04); }
.toggle-teal summary:hover { background-color: rgba(95, 212, 184, 0.04); }
.toggle-purple[open] {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 0.5px rgba(167, 139, 250, 0.15);
}
.toggle-teal[open] {
  border-color: rgba(95, 212, 184, 0.45);
  box-shadow: 0 0 0 0.5px rgba(95, 212, 184, 0.15);
}
.toggle[open] .toggle-icon-box {
  background: rgba(167, 139, 250, 0.28);
  transition: background 0.3s ease;
}
.toggle-teal[open] .toggle-icon-box { background: rgba(95, 212, 184, 0.28); }

.bullets { padding: 4px 24px 24px 80px; display: grid; gap: 8px; }
.bullets li { position: relative; color: var(--text-secondary); font-size: 14px; padding-left: 16px; }
.bullets li::before { content: '\2022'; position: absolute; left: 0; top: 0; font-size: 14px; }
.bullets-teal li::before { color: var(--accent-teal); }
.bullets-purple li::before { color: var(--accent-purple); }

/* CONTATO */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  max-width: 1040px; margin: 0 auto; align-items: start;
}
.contact-grid h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin-bottom: 18px; }
.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form textarea {
  background: transparent; border: 0.5px solid var(--border-input);
  border-radius: var(--radius-sm); padding: 13px 14px;
  font-size: 14px; color: var(--text-primary); font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-purple); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-msg { margin-top: 8px; font-size: 13px; color: var(--accent-teal); min-height: 18px; }
.form-msg.error { color: #ff8b8b; }

/* FOOTER */
.site-footer { border-top: 0.5px solid var(--border-subtle); padding: 28px 0; margin-top: 40px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
.footer-info { font-size: 12px; color: var(--text-subtle); letter-spacing: 0.04em; }

/* PÁGINA EQUIPE */
.team-intro { padding: 80px 0 32px; text-align: center; }
.team-head { max-width: 720px; margin: 0 auto; }
.team-head h1 { font-size: clamp(36px, 5vw, 56px); margin-top: 12px; }
.team-cards { padding: 24px 0 96px; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1040px; margin: 0 auto; }
.team-card {
  background: var(--bg-elevated); border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 32px 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.team-card:hover { transform: translateY(-3px); }
.team-card-purple:hover { border-color: rgba(167, 139, 250, 0.45); }
.team-card-teal:hover { border-color: rgba(95, 212, 184, 0.45); }
.team-card h2 { font-size: 24px; margin-bottom: 4px; }
.team-card p { font-size: 14px; line-height: 1.7; }
.team-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 0.5px solid var(--border-subtle); flex-wrap: wrap; }
.action-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 0.5px solid var(--border-input); border-radius: var(--radius-sm);
  font-size: 11px; color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.action-pill:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.action-pill svg { flex-shrink: 0; }

/* FOCO VISÍVEL */
:focus-visible { outline: 2px solid var(--accent-purple); outline-offset: 2px; border-radius: 2px; }

/* ANIMAÇÕES — FADE-IN AO SCROLL */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: 0.08s; }
.fade-in.delay-2 { transition-delay: 0.16s; }
.fade-in.delay-3 { transition-delay: 0.24s; }
.fade-in.delay-4 { transition-delay: 0.32s; }
.fade-in.delay-5 { transition-delay: 0.40s; }
.fade-in.delay-6 { transition-delay: 0.48s; }
.fade-in.no-shift { transform: none; }

/* STAGGER NOS BULLETS AO ABRIR TOGGLE */
@media (prefers-reduced-motion: no-preference) {
  .toggle[open] .bullets li {
    animation: bulletIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .toggle[open] .bullets li:nth-child(1) { animation-delay: 0.05s; }
  .toggle[open] .bullets li:nth-child(2) { animation-delay: 0.11s; }
  .toggle[open] .bullets li:nth-child(3) { animation-delay: 0.17s; }
  .toggle[open] .bullets li:nth-child(4) { animation-delay: 0.23s; }
  .toggle[open] .bullets li:nth-child(5) { animation-delay: 0.29s; }
  .toggle[open] .bullets li:nth-child(6) { animation-delay: 0.35s; }
  .toggle[open] .bullets { animation: bulletsContainer 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
  .toggle[open] .bullets li::before {
    animation: dotPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  }
  .toggle[open] .bullets li:nth-child(1)::before { animation-delay: 0.18s; }
  .toggle[open] .bullets li:nth-child(2)::before { animation-delay: 0.24s; }
  .toggle[open] .bullets li:nth-child(3)::before { animation-delay: 0.30s; }
  .toggle[open] .bullets li:nth-child(4)::before { animation-delay: 0.36s; }
  .toggle[open] .bullets li:nth-child(5)::before { animation-delay: 0.42s; }
  .toggle[open] .bullets li:nth-child(6)::before { animation-delay: 0.48s; }
}

@keyframes bulletIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes bulletsContainer {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes dotPop {
  from { transform: scale(0); }
  60%  { transform: scale(1.4); }
  to   { transform: scale(1); }
}

/* RESPONSIVO */
@media (max-width: 820px) {
  .site-header { padding: 16px 20px; flex-direction: column; gap: 14px; }
  .site-nav { gap: 22px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .icon-circle { margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-grid { grid-template-columns: 1fr; }
  .bullets { padding: 4px 20px 20px 60px; }
  .footer-grid { flex-direction: column; text-align: center; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .team-card { transition: none; }
  html { scroll-behavior: auto; }
}
