/* ==========================================================
   BF Empreendimentos Digitais — Estilos do site
   ----------------------------------------------------------
   1. Variáveis
   2. Base
   3. Cabeçalho
   4. Botões
   5. Hero
   6. Seções
   7. Sobre / Fundador
   8. Serviços
   9. Como trabalhamos
   10. Contato
   11. Rodapé
   12. Páginas legais
   13. Animações
   14. Responsivo
   ========================================================== */

/* 1. Variáveis */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --ink: #0b1324;
  --muted: #4b5a70;
  --brand: #1d4ed8;
  --brand-2: #4f7cff;
  --brand-dark: #1a3fae;
  --brand-soft: #e6edff;
  --dark: #0a1120;
  --darker: #060b16;
  --line: #e3e8f0;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .04), 0 4px 12px rgba(11, 19, 36, .04);
  --shadow-md: 0 20px 45px -15px rgba(11, 19, 36, .18);
  --shadow-brand: 0 24px 60px -20px rgba(29, 78, 216, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
}

/* 2. Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--brand); color: #fff; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: linear-gradient(100deg, var(--brand) 10%, var(--brand-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 3. Cabeçalho */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.is-scrolled { background: rgba(255, 255, 255, .9); border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(11, 19, 36, .15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.logo-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 6px 16px -6px rgba(29, 78, 216, .6);
}
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) {
  position: relative; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px;
  transition: color .2s;
}
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.menu a:not(.btn):hover, .menu a.is-active { color: var(--ink); }
.menu a:not(.btn):hover::after, .menu a.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.is-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 4. Botões */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent;
  box-shadow: 0 10px 24px -10px rgba(29, 78, 216, .7);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(29, 78, 216, .75); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #c9d3e3; box-shadow: var(--shadow-md); }
.btn-ghost-light { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* 5. Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .6;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 124, 255, .28), transparent 65%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.badge-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.badge-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.06; letter-spacing: -.03em; margin: 22px 0 22px; }
.lead { font-size: clamp(17px, 1.8vw, 19px); color: var(--muted); max-width: 590px; }
.hero-panel {
  position: relative; background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-brand);
  animation: float 7s ease-in-out infinite;
}
.hero-panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(79, 124, 255, .6), transparent 40%, transparent 60%, rgba(29, 78, 216, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.hero-panel-title { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 20px; }
.hero-panel ul { list-style: none; display: grid; gap: 6px; }
.hero-panel li { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 12px; transition: background .25s; }
.hero-panel li:hover { background: var(--bg-alt); }
.hero-panel li div { display: flex; flex-direction: column; }
.hero-panel strong { font-size: 15px; }
.hero-panel small { color: var(--muted); font-size: 14px; }
.check {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand);
}
.check svg { width: 16px; height: 16px; }

/* 6. Seções */
.section { padding: 104px 0; }
section[id] { scroll-margin-top: var(--nav-h); }
.section-alt { background: var(--bg-alt); }
.section-dark { position: relative; overflow: hidden; background: var(--dark); color: #cdd6e4; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #8fb0ff; }
.section-dark .eyebrow::before { background: #8fb0ff; }
.section p + p { margin-top: 14px; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand); }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.025em; margin: 14px 0 18px; }
h3 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* 7. Sobre / Fundador */
.about { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: center; }
.about-text p { color: var(--muted); }
.founder { position: relative; margin: 0; width: 100%; }
.founder-photo { position: relative; }
.founder-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: 0; border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); opacity: .9;
}
.founder img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 20px; box-shadow: var(--shadow-md);
}
.founder figcaption {
  position: absolute; z-index: 2; left: 20px; bottom: 20px;
  display: flex; flex-direction: column; padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); box-shadow: var(--shadow-md);
}
.founder figcaption strong { font-size: 15px; }
.founder figcaption span { color: var(--muted); font-size: 13px; }
.pillars { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.pillars li {
  display: flex; flex-direction: column; gap: 4px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.pillars li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cbd6ee; }
.pillars .pill-num { font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .06em; }
.pillars strong { font-size: 16px; }
.pillars span { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* 8. Serviços */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d3dcef; }
.card:hover::before { transform: scaleX(1); }
.card p { color: var(--muted); font-size: 15px; }
.card-icon {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.card-icon svg { width: 24px; height: 24px; }
.card:hover .card-icon { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; transform: rotate(-6deg) scale(1.05); }

/* 9. Como trabalhamos */
.steps { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, #c7d4f3 15%, #c7d4f3 85%, transparent);
}
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; color: var(--brand); font-weight: 800; font-size: 18px;
  border: 2px solid var(--brand-soft); box-shadow: 0 0 0 6px var(--bg-alt), var(--shadow-sm);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.steps li:hover .step-num { background: var(--brand); color: #fff; transform: scale(1.08); }
.steps p { color: var(--muted); font-size: 15px; }

/* 10. Contato */
.section-dark::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: -250px; bottom: -400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 124, 255, .22), transparent 65%);
}
.section-dark .container { position: relative; }
.section-dark p { color: #a9b6cb; }
.contact-list {
  list-style: none; display: grid; gap: 4px; padding: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px;
  backdrop-filter: blur(6px);
}
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 14px; transition: background .25s; }
.contact-list li:hover { background: rgba(255, 255, 255, .05); }
.contact-icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(79, 124, 255, .15); color: #8fb0ff;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: #7f8ea8; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.contact-list li > div { min-width: 0; }
.contact-list a, .contact-list .contact-value { color: #fff; text-decoration: none; overflow-wrap: break-word; }
.contact-list a:hover { color: #8fb0ff; }

/* 11. Rodapé */
.footer { background: var(--darker); color: #8494ad; font-size: 14px; padding: 48px 0 28px; }
.footer strong { color: #e2e8f0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #c0cbdb; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin-top: 32px; padding-top: 22px; border-top: 1px solid #172033; font-size: 13px; }

/* 12. Páginas legais */
.legal { padding: 80px 0 100px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.025em; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--brand); }

/* 13. Animações */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
/* usa "translate" (separado de "transform") para não conflitar com os efeitos de hover */
.reveal {
  opacity: 0; translate: 0 24px;
  transition: opacity .8s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s),
              transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, background .35s;
}
.reveal.is-visible, .no-js .reveal { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
}

/* 14. Responsivo */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps::before { display: none; }
  .grid-2, .about, .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .founder { max-width: 380px; }
  .hero-panel { animation: none; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav.is-open .menu { opacity: 1; transform: none; pointer-events: auto; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 16px; justify-content: center; }
  .logo { font-size: 14px; }
  .cards, .steps, .pillars { grid-template-columns: 1fr; }
  .hero { padding: 28px 0 64px; }
  .section { padding: 72px 0; }
  .founder-photo::before { inset: 12px -12px -12px 12px; }
  .btn-group .btn { flex: 1 1 100%; justify-content: center; }

  /* Ordem no celular — Hero: texto → "O que entregamos" → botões */
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy .badge { align-self: flex-start; }
  .hero-side { order: 1; margin-top: 32px; }
  .hero-copy .btn-group { order: 2; margin-top: 28px; }

  /* Contato no celular: mais compacto */
  .contact-list { padding: 8px; }
  .contact-list li { gap: 14px; padding: 14px 12px; align-items: flex-start; }
  .contact-icon { width: 40px; height: 40px; }
  .contact-list a, .contact-list .contact-value { font-size: 15px; line-height: 1.5; }

  /* Ordem no celular — Sobre: texto → foto */
  .about-text { order: 1; }
  .founder { order: 2; }

  /* Etapas no celular: linha do tempo vertical que se preenche ao rolar */
  .steps { row-gap: 36px; }
  .steps::before, .steps::after {
    content: ""; display: block; position: absolute; left: 27px; right: auto; top: 28px; width: 2px; border-radius: 2px;
  }
  .steps::before { bottom: 28px; height: auto; background: #d6def0; }
  .steps::after {
    height: calc((100% - 56px) * var(--progress, 0));
    background: linear-gradient(var(--brand), var(--brand-2));
  }
  .steps li { flex-direction: row; align-items: flex-start; text-align: left; gap: 18px; }
  .step-num { flex: none; position: relative; z-index: 1; transition: background .4s, color .4s, border-color .4s; }
  .steps li:hover .step-num { transform: none; }
  .steps li.is-active .step-num { background: var(--brand); color: #fff; border-color: var(--brand); }
  .steps li > div { padding-top: 14px; }
}
