/* ==========================================================================
   Instituto Financeiro Brasil (IFB) — Institutional Site
   Design tokens
   ========================================================================== */

:root {
  --navy: #001A4D;
  --navy-deep: #000C29;
  --navy-mid: #0A2A63;
  --blue: #5AC8FF;
  --blue-deep: #2E9FE0;
  --white: #FFFFFF;
  --gray-bg: #F5F7FA;
  --gray-line: #E2E7F0;
  --text: #333333;
  --text-soft: #5C6472;
  --green: #28A745;
  --green-deep: #1F8838;

  --font-display: "Montserrat", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1160px;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(0, 26, 77, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 26, 77, 0.10);
  --shadow-lg: 0 20px 60px rgba(0, 12, 41, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
  display: inline-block;
}

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.bg-gray { background: var(--gray-bg); }
.bg-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head p { color: var(--text-soft); font-size: 17px; }
.section-head.left { margin: 0 0 44px; text-align: left; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(40,167,69,0.28);
}
.btn-green:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-navy-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-line);
}
.btn-navy-outline:hover { border-color: var(--navy); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--navy);
  overflow: hidden;
  height: 78px;
}
.logo-img {
  height: 40px;
  max-height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.logo .mark {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
  position: relative;
  overflow: hidden;
}
.logo .mark::after {
  content: "";
  position: absolute;
  right: 6px; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue);
}
.logo small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav-links a.active, .nav-links a:hover { color: var(--navy); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue-deep);
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; font-size: 14px; }
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy);
  position: relative; transition: all .2s ease;
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }
.mobile-cta { display: none; }

@media (max-width: 900px) {
  .nav-links { 
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column;
    padding: 30px 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .menu-toggle { display: flex; }
  .nav-cta .nav-desktop-only { display: none; }
  .mobile-cta { display: block; margin-top: 6px; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 50px;
  align-items: center;
}
.hero h1 { font-size: 44px; }
.hero .lede { font-size: 18px; color: rgba(255,255,255,0.78); max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 22px; font-size: 13.5px; color: rgba(255,255,255,0.55); display:flex; align-items:center; gap:8px;}
.hero-graphic {
  position: relative;
  align-self: end;
  margin-bottom: -100px;
  height: 640px;
}
.hero-graphic svg { width: 100%; height: auto; }
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px 18px 0 0;
  display: block;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 60px 0 70px; }
  .hero-graphic { height: 380px; margin-bottom: -70px; }
}

/* ---------------- Stats bar ---------------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 40px 0;
}
.stat { text-align: center; }
.stat-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.stat-icon svg { width: 22px; height: 22px; stroke: var(--blue-deep); }
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  color: var(--navy);
}
.stat .num span { color: var(--blue-deep); }
.stat .label {
  font-size: 13px; color: var(--text-soft); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px;
}
@media (max-width: 720px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Cards ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 9px;
  background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--navy); }
.card h3 { font-size: 18px; }
.card p { color: var(--text-soft); font-size: 14.5px; margin: 0; }

/* Bank partner badges */
.bank-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.bank-badge {
  height: 72px;
  min-width: 130px;
  padding: 0 24px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--gray-line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.bank-badge img {
  max-height: 34px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.bank-badge img.logo-tall {
  max-height: 54px;
  max-width: 70px;
}
.bank-badge img.logo-bb {
  max-height: 58px;
  max-width: 100px;
}
@media (max-width: 720px) {
  .bank-row { gap: 14px; }
  .bank-badge { height: 58px; min-width: 104px; padding: 0 16px; }
  .bank-badge img { max-height: 26px; max-width: 88px; }
  .bank-badge img.logo-tall { max-height: 42px; max-width: 56px; }
  .bank-badge img.logo-bb { max-height: 46px; max-width: 80px; }
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step { position: relative; padding-top: 6px; }
.step .step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--blue-deep);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: block;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.8px; color: var(--text-soft); }
.step::before {
  content: "";
  position: absolute; top: 8px; left: -12px;
  width: 1px; height: calc(100% - 8px);
  background: var(--gray-line);
}
.step:first-child::before { display: none; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2,1fr); }
  .step::before { display: none; }
}

/* ---------------- Founder / about split ---------------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } }

.founder-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 40px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.founder-card .initials {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(90,200,255,0.16);
  border: 1.5px solid rgba(90,200,255,0.4);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 22px;
}
.founder-card h3 { color: #fff; font-size: 20px; margin-bottom: 2px; }
.founder-card .role { color: var(--blue); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ---------------- Checklist ---------------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.checklist .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(40,167,69,0.12); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.checklist .tick svg { width: 12px; height: 12px; }

/* ---------------- Divider line motif (signature element, used sparingly) --- */
.recovery-divider { width: 100%; height: 60px; display: block; }

/* ---------------- CTA band ---------------- */
.cta-band {
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; max-width: 460px; }
@media (max-width: 720px) { .cta-band { padding: 40px 28px; } }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 46px;
}
.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-grid a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 18px; margin-bottom: 14px; overflow: hidden; }
.footer-logo-img { height: 34px; max-height: 34px; width: auto; max-width: 180px; object-fit: contain; display: block; filter: brightness(0) invert(1); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px;
}
.social-list li a { display: flex; align-items: center; gap: 10px; }
.social-list svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------- WhatsApp floating button ---------------- */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(40,167,69,0.4);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------------- Page hero (interior pages) ---------------- */
.page-hero {
  padding: 64px 0 56px;
}
.page-hero .eyebrow { color: var(--blue); }
.page-hero h1 { color: #fff; font-size: 36px; max-width: 620px; }
.page-hero p.lede { color: rgba(255,255,255,0.75); max-width: 560px; font-size: 16.5px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }

/* ---------------- Photo carousel (Sobre o IFB) ---------------- */
.carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.carousel-track {
  display: flex;
  transition: transform .45s ease;
}
.carousel-slide {
  flex: none;
  width: 100%;
  height: 380px;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background .18s ease;
}
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active { background: #fff; }
@media (max-width: 720px) {
  .carousel-slide { height: 260px; }
}

/* ---------------- Testimonials ---------------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.testimonial-card .stars { color: #F5A623; font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card p.quote { color: var(--text); font-size: 15px; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.testimonial-author strong { display: block; font-size: 14px; color: var(--navy); }
.testimonial-author span { font-size: 12.5px; color: var(--text-soft); }

/* ---------------- CTA form (hero-style lead capture band) ---------------- */
.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  margin-top: 30px;
  width: 100%;
}
.cta-form input {
  padding: 15px 16px;
  border-radius: 8px;
  border: none;
  background: var(--gray-bg);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
}
.cta-form input:focus { outline: 2px solid var(--blue); }
.cta-form button { justify-content: center; }
@media (max-width: 900px) {
  .cta-form { grid-template-columns: 1fr; }
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Form (contato) ---------------- */
.form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--gray-line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  background: var(--gray-bg);
  transition: border-color .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-deep); background: #fff;
}
.field textarea { resize: vertical; min-height: 90px; }

.contact-info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-info-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-list .ic {
  flex: none; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(90,200,255,0.14);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-list .ic svg { width: 20px; height: 20px; stroke: var(--blue-deep); }
.contact-info-list strong { display: block; color: var(--navy); font-size: 15px; }
.contact-info-list span { color: var(--text-soft); font-size: 14px; }

/* Faq */
.faq-item {
  border-bottom: 1px solid var(--gray-line);
  padding: 22px 0;
}
.faq-item h3 { font-size: 16px; margin-bottom: 8px; color: var(--navy); }
.faq-item p { color: var(--text-soft); font-size: 14.5px; margin: 0; }

:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
