/* ============================================================
   VBS Site — Sociedade de Crédito Direto
   Design tokens from Figma
   ============================================================ */
:root {
  /* Cores */
  --c-bg:           #ffffff;
  --c-bg-soft:      #f6f8fc;
  --c-dark:         #000b1a;
  --c-dark-2:       #0f1c2e;
  --c-primary:      #0046e8;
  --c-primary-2:    #207bff;
  --c-accent:       #6eb0ff;
  --c-card-bg:      #e7ecfd;
  --c-card-stroke:  #a2cafb;
  --c-text:         #1f2937;
  --c-text-muted:   #4b5563;
  --c-text-on-dark: #d1d5db;
  --c-border:       #e5e7eb;

  /* Tipografia */
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Espaçamentos */
  --container-max: 1328px;
  --header-h:      80px;
  --radius:        12px;
  --radius-lg:     20px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  background: var(--c-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 1024px) {
  .container { padding: 0 57px; }
}

/* ============================================================
   Header — pill-shaped floating navbar (Figma 1327×51)
   ============================================================ */
.site-header {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 114px);
  height: 51px;
  padding: 8px 32px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #fff;
}
.site-nav {
  display: none;
  flex: 1;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 35px;
  letter-spacing: -0.16px;
}
.site-nav a {
  color: var(--c-text-on-dark);
  white-space: nowrap;
  transition: color .15s;
}
.site-nav a:hover { color: #fff; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 51px;
  height: 51px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 1023px) {
  .site-header {
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    top: 16px;
    left: 0;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
}

/* ============================================================
   Botões
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
  text-align: center;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--c-primary-2); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 20px;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline-accent {
  background: transparent;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
  border-radius: 9999px;
  padding: 16px 64px;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}
.btn-outline-accent:hover {
  background: rgba(110, 176, 255, 0.08);
}

.btn-pill {
  background: var(--c-primary);
  color: #fff;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 14px;
}
.btn-pill:hover { background: var(--c-primary-2); }
.btn-pill-light {
  background: #fff;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
}
.btn-pill-light:hover { background: var(--c-card-bg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--c-dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/financial_header.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(71.45% 71.45% at 50% 28.55%,
    rgba(43, 43, 43, 0) 0%,
    #000B1A 0.01%,
    rgba(34, 41, 52, 0.778548) 0.02%,
    rgba(18, 27, 40, 0.880733) 22.6%,
    #000B1A 100%);
  z-index: -1;
}
.hero-content {
  padding-top: 110px;
  padding-bottom: 60px;
  text-align: left;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 36px;
}
.hero-content .btn-outline-accent { width: 100%; padding-left: 24px; padding-right: 24px; }
.hero-logo {
  width: 128px;
  height: 60px;
  margin: 0;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.16px;
  color: var(--c-accent);
  margin: 0;
  line-height: 1.18;
  overflow-wrap: break-word;
}
.hero-content p {
  color: #fff;
  font-size: 16px;
  max-width: 960px;
  margin: 0;
  line-height: 1.4;
}
.hero-content .btn-outline-accent { margin: 0; }
@media (min-width: 768px) {
  .hero-content {
    padding-top: 160px;
    padding-bottom: 60px;
  }
  .hero-content h1 { font-size: 38px; line-height: 1.16; }
  .hero-content p { font-size: 18px; line-height: 25px; }
  .hero-content .btn-outline-accent { width: auto; padding-left: 64px; padding-right: 64px; }
}
@media (min-width: 1024px) {
  .hero-content {
    text-align: center;
    align-items: center;
  }
  .hero-content h1 { font-size: 45px; line-height: 52px; }
  .hero-logo { width: 167px; height: 80px; }
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 60px 0;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 35px);
  font-weight: 600;
  line-height: 52px;
  letter-spacing: -0.16px;
  color: var(--c-accent);
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  color: #E7ECFD;
}
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 40px;
}

/* Split layout (text + media) */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.split-text h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -0.16px;
  color: var(--c-accent);
  margin-bottom: 24px;
}
.split-text p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #D1D5DB;
  margin-bottom: 16px;
}
.split-text p:last-child { margin-bottom: 0; }
.split-text strong {
  font-weight: 700;
  color: #fff;
}
.split-media img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.section-como-atua .split-media img { aspect-ratio: 546 / 534; }
.section-solucoes .split-media img { aspect-ratio: 593 / 623; }
.section-acreditamos .split-media img { aspect-ratio: 638 / 352; }
.section-acreditamos .split-text { display: flex; flex-direction: column; gap: 24px; }
.section-acreditamos .split-text p { color: #E7ECFD; margin: 0; }
.section-acreditamos .split-text h2 { margin: 0; }

.image-placeholder {
  width: 100%;
  aspect-ratio: 546 / 534;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 682fr 546fr; gap: 100px; }
  .split-reverse .split-media { order: -1; }
  .split-text h2 { font-size: 35px; line-height: 52px; margin-bottom: 36px; }
  .section-solucoes .split { grid-template-columns: 593fr 635fr; align-items: stretch; }
  .section-acreditamos .split { grid-template-columns: 590fr 638fr; align-items: center; }
  .section-acreditamos .split-text { gap: 36px; }
}

/* ============================================================
   Cards bordered (Figma)
   ============================================================ */
.card-bordered {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--c-accent);
  background: transparent;
}
.card-bordered-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.card-bordered-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.16px;
  color: var(--c-accent);
  margin: 0;
}
.card-bordered p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #D1D5DB;
  margin: 0;
}
.card-icon-bordered {
  width: 58px;
  height: 58px;
  border: 1px solid var(--c-primary-2);
  border-radius: 8px;
  background: transparent;
  color: var(--c-primary-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

/* Soluções financeiras section */
.section-solucoes .split-text { justify-content: center; }
/* Mobile: imagem abaixo do texto (no desktop continua à esquerda) */
@media (max-width: 1023.98px) {
  .section-solucoes .split-text { order: 1; }
  .section-solucoes .split-media { order: 2; }
}
.solucoes-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* CIOT Público (revelado ao clicar no link, via :target) */
.section-ciot { display: none; padding-top: 120px; background: var(--c-dark); }
.section-ciot:target { display: block; }
/* Modo CIOT: esconde as demais seções — fica só header + CIOT + footer */
main:has(.section-ciot:target) > :not(.section-ciot) { display: none; }
.iframe-wrap {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-dark);
}
.iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Nossos contatos section */
.section-canais .container { display: flex; flex-direction: column; }
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .contact-cards { grid-template-columns: 1fr 1fr; }
}
.card-contact { padding: 30px; }
.card-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-bordered .card-contact-info p {
  color: #fff;
  font-weight: 400;
}
.card-bordered .card-contact-info p strong {
  color: var(--c-accent);
  font-weight: 700;
}

/* Links úteis section */
.section-links .container { display: flex; flex-direction: column; }
.quick-access {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}
.btn-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 20px;
  height: 58px;
  min-width: 236px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--c-dark);
  text-align: center;
  transition: opacity .15s;
}
@media (max-width: 767px) {
  .btn-quick { min-width: 0; width: 100%; }
}
.btn-quick:hover { opacity: 0.85; }
.btn-quick-primary { background: var(--c-accent); }
.btn-quick-secondary { background: #A2CAFB; }
.btn-quick-light { font-weight: 600; }

/* Separator line between Links úteis and Footer */
.section-separator {
  border: 0;
  border-top: 1px solid var(--c-accent);
  margin: 0;
  width: 100%;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--c-dark);
  color: var(--c-text-on-dark);
  padding: 60px 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand img {
  width: 125px;
  height: 60px;
  object-fit: contain;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  flex: 1;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 35px;
  letter-spacing: -0.16px;
  color: var(--c-text-on-dark);
  margin: 0;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col ul li { margin: 0; }
.footer-col a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #fff;
  transition: opacity .15s;
}
.footer-col a:hover { opacity: 0.8; }
.footer-col-quick a {
  color: var(--c-accent);
  text-decoration: underline;
}
.footer-col-vector {
  gap: 8px;
}
.footer-col-vector .footer-vector-logo {
  width: 122px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 4px;
}
.footer-legal p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--c-text-on-dark);
}
.footer-legal p strong { font-weight: 700; }
@media (min-width: 768px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 60px; }
}
@media (min-width: 1024px) {
  .footer-content { flex-direction: row; align-items: flex-start; gap: 127px; }
  .footer-cols { gap: 127px; }
}

/* ============================================================
   Mobile menu
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--c-dark);
  color: #fff;
  z-index: 100;
  padding: 24px;
  transform: translateX(-100%);
  transition: transform .3s ease;
  visibility: hidden;
}
.mobile-menu[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  font-size: 28px;
  color: #fff;
  margin-bottom: 32px;
}
.mobile-menu nav ul li {
  padding: 16px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
}
.mobile-menu nav a { color: var(--c-text-on-dark); }
.mobile-menu nav a:hover { color: var(--c-accent); }

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}
