/* JB Soluções — landing page
   Marca: Azul Primário #004AAD, Azul Secundário #17A1FE, Preto #000, Branco #FFF; fonte Manrope.
   Contraste: #004AAD sobre branco 8,6:1 (texto ok). #17A1FE sobre branco 2,7:1 (só decoração);
   sobre o fundo escuro passa AA (> 7:1). */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue-700: #004aad;
  --blue-400: #17a1fe;
  --black: #000;
  --white: #fff;
  --ink: #0b1220;
  --ink-soft: #3d4a5c;
  --surface: #f5f8fc;
  --line: #e2e8f1;
  --dark: #050a14;
  --dark-2: #0b1526;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(0, 74, 173, 0.25);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue-700); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--blue-700); color: var(--white); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-700); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: #003d8f; }
.btn-ghost { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.btn-ghost:hover { background: rgba(0, 74, 173, 0.06); }
.btn-light { background: var(--white); color: var(--blue-700); }
.btn-sm { min-height: 40px; padding: 0.45rem 1.1rem; font-size: 0.95rem; }
.btn-lg { min-height: 56px; padding: 0.9rem 2rem; font-size: 1.1rem; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 18, 32, 0.4); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { height: 44px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; position: relative; padding: 0.4rem 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue-700); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; border-radius: 12px;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform 0.3s var(--ease), background-color 0.3s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .site-nav a:not(.btn) { display: block; padding: 0.8rem 0.25rem; }
  .site-nav .btn { margin-top: 0.5rem; width: 100%; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(5rem, 10vw, 8rem); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45; }
.orb-1 { width: 520px; height: 520px; background: var(--blue-400); top: -180px; right: -120px; animation: float 14s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: var(--blue-700); bottom: -200px; left: -140px; opacity: 0.25; animation: float 18s ease-in-out infinite reverse; }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0, 74, 173, 0.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 74, 173, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
}
@keyframes float { 50% { transform: translate3d(-30px, 40px, 0) scale(1.05); } }

.hero-inner { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 3rem; }
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: 1rem;
}
.eyebrow-light { color: var(--blue-400); }
.text-gradient {
  background: linear-gradient(100deg, var(--blue-700) 10%, #0a73d9 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.hero-visual { display: flex; justify-content: center; }
.logo-card {
  width: min(320px, 70vw); aspect-ratio: 1; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 36px; box-shadow: 0 30px 60px -25px rgba(0, 74, 173, 0.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: float-card 8s ease-in-out infinite;
}
.logo-card img { width: 62%; }
@keyframes float-card { 50% { transform: translateY(-12px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 28px; height: 44px; border: 2px solid rgba(0, 74, 173, 0.5); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--blue-700); border-radius: 2px; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; }
  .logo-card { width: 160px; border-radius: 28px; }
  .scroll-cue { display: none; }
}

/* Seções */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(0, 74, 173, 0.25); }
.card p { color: var(--ink-soft); margin: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, rgba(23, 161, 254, 0.16), rgba(0, 74, 173, 0.12));
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Projetos */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project p { color: var(--ink-soft); }
.project-top h3 { font-size: 1.5rem; margin-top: 0.75rem; }
.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem; border-radius: 999px; background: #e8eef7; color: var(--ink-soft);
}
.badge-live { background: rgba(0, 74, 173, 0.1); color: var(--blue-700); }
.tags { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li { font-size: 0.85rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 8px; background: var(--surface); color: var(--ink-soft); }
.link-arrow { margin-top: auto; font-weight: 700; text-decoration: none; }
.link-arrow span[aria-hidden] { display: inline-block; transition: transform 0.25s var(--ease); }
.link-arrow:hover span[aria-hidden] { transform: translateX(4px); }
.project-cta {
  background: linear-gradient(140deg, var(--blue-700), #0a5fd0); color: var(--white); border: 0; justify-content: center;
}
.project-cta p { color: rgba(255, 255, 255, 0.88); }
.project-cta .btn-primary { background: var(--white); color: var(--blue-700); align-self: flex-start; box-shadow: none; }

@media (max-width: 960px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .projects { grid-template-columns: 1fr; } }

/* CEO */
.section-dark {
  background: radial-gradient(1000px 500px at 85% 0%, rgba(23, 161, 254, 0.18), transparent 60%), var(--dark);
  color: #e8eef7;
}
.ceo { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.ceo-photo { margin: 0; position: relative; }
.ceo-photo::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--blue-400), var(--blue-700), var(--blue-400));
  animation: spin 12s linear infinite;
}
.ceo-photo picture { position: relative; display: block; }
.ceo-photo img {
  width: clamp(200px, 26vw, 320px); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 6px solid var(--dark);
}
@keyframes spin { to { transform: rotate(360deg); } }
.ceo-copy h2 { color: var(--white); margin-bottom: 0.2em; }
.ceo-role { color: var(--blue-400); font-weight: 700; margin-bottom: 1.4rem; }
.ceo-copy p { color: #c9d3e1; max-width: 60ch; }
.ceo-highlights { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ceo-highlights li {
  padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid rgba(23, 161, 254, 0.45);
  color: #e8eef7; font-weight: 600; font-size: 0.92rem;
}

@media (max-width: 760px) {
  .ceo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ceo-copy p { margin-inline: auto; }
  .ceo-highlights { justify-content: center; }
}

/* Textos provisórios: bem visíveis para não irem a produção por engano */
.placeholder {
  outline: 2px dashed #f0b429; outline-offset: 4px; border-radius: 6px; color: #f0b429 !important;
}
.placeholder-link { outline: 2px dashed #f0b429; outline-offset: 4px; }

/* Contato */
.contact { text-align: center; max-width: 720px; }
.contact .section-sub { margin-inline: auto; max-width: 48ch; margin-bottom: 2rem; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.contact-phone { margin-top: 1.5rem; color: var(--ink-soft); font-weight: 600; }
.contact-phone a { font-weight: 700; }

/* Rodapé */
.site-footer { background: var(--black); color: #c9d3e1; padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--white); text-decoration: none; font-weight: 700; }
.footer-brand img { width: 40px; height: 40px; }
.footer-copy { margin: 0; font-size: 0.92rem; }
.footer-top { color: var(--blue-400); text-decoration: none; font-weight: 600; }

/* Revelação ao rolar (o JS adiciona .js; sem JS tudo aparece) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
