/* =========================================================================
   julio.api.br — folha de estilo principal
   Paleta: branco dominante + verde e azul da marca
   ========================================================================= */

:root {
  --green:       #0F9D58;
  --green-dark:  #0B7B45;
  --green-soft:  #E8F7EF;
  --blue:        #1565D8;
  --blue-dark:   #0F4CAB;
  --blue-soft:   #E8F1FE;

  --ink:         #0E1726;
  --body:        #475569;
  --muted:       #7A889C;
  --line:        #E4E9F0;
  --bg:          #FFFFFF;
  --bg-alt:      #F7FAFC;

  --radius:      14px;
  --radius-lg:   20px;
  --shadow:      0 1px 2px rgba(14,23,38,.04), 0 8px 24px rgba(14,23,38,.06);
  --shadow-lg:   0 20px 48px rgba(14,23,38,.12);
  --container:   1160px;
  --grad:        linear-gradient(100deg, var(--green) 0%, var(--blue) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--blue); text-decoration-color: rgba(21,101,216,.3); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container.narrow { max-width: 760px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ------------------------------- Header -------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }

.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; color: var(--ink); }
.brand-text small { font-size: .76rem; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--body); text-decoration: none; font-size: .96rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--green-dark); font-weight: 600; }
.site-nav a.btn { color: #fff; }

.nav-toggle, .nav-burger { display: none; }

/* ------------------------------- Botões -------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.4rem;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .96rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }
.btn-block { width: 100%; margin-bottom: .6rem; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(15,157,88,.25); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(21,101,216,.3); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--blue-dark); }

.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-danger { background: #FEF2F2; color: #B42318; border-color: #FEE4E2; }
.btn-danger:hover { background: #FEE4E2; color: #912018; }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 0; }
.cta-row-center { justify-content: center; }

/* -------------------------------- Hero --------------------------------- */

.hero {
  background:
    radial-gradient(1000px 420px at 12% -10%, var(--green-soft), transparent 60%),
    radial-gradient(900px 400px at 88% 0%, var(--blue-soft), transparent 62%),
    #fff;
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.hero-inner { display: grid; grid-template-columns: 1.35fr .65fr; gap: 3rem; align-items: center; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .1em; font-size: .78rem;
  font-weight: 700; color: var(--green-dark); margin-bottom: .8rem;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lead { font-size: 1.1rem; color: var(--body); max-width: 62ch; }

.hero-badges {
  list-style: none; padding: 0; margin: 1.8rem 0 0;
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  font-size: .92rem; color: var(--muted);
}

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow); text-align: center;
}
.stat strong {
  display: block; font-size: 1.9rem; line-height: 1.1; color: var(--ink);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: .82rem; color: var(--muted); }

/* ------------------------------- Seções -------------------------------- */

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.section-head .lead { margin-inline: auto; }

.page-head {
  background: linear-gradient(180deg, var(--green-soft), #fff);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem;
}

.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-dark); }

.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D5E3F5; }

.card-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--green-soft); color: var(--green-dark);
}
.icon { width: 24px; height: 24px; }

.service-card p { margin: 0; font-size: .97rem; }

/* ------------------------------ Portfólio ------------------------------ */

.project-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.project-head img { width: 56px; height: 56px; border-radius: 13px; box-shadow: var(--shadow); }
.project-head h3 { margin: 0; font-size: 1.08rem; }
.project-cat { margin: 0; font-size: .78rem; color: var(--green-dark); font-weight: 600;
               text-transform: uppercase; letter-spacing: .06em; }
.project-card p { font-size: .95rem; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.1rem; }
.tags li {
  font-size: .74rem; padding: .28rem .68rem; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-dark); font-weight: 600;
}
.tags-lg { margin: 2.5rem 0; }
.tags-lg li { font-size: .82rem; padding: .4rem .9rem; }

.project-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--blue);
}
.project-link:hover { gap: .55rem; }
.project-link-off { color: var(--muted); }

/* -------------------------------- Split -------------------------------- */

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}

.stack-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
             padding: 1.7rem; box-shadow: var(--shadow); }
.stack-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
               color: var(--muted); margin-bottom: 1rem; }
.stack-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.stack-list li {
  font-size: .84rem; padding: .35rem .8rem; border-radius: 8px;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink); font-weight: 500;
}

/* --------------------------------- Blog -------------------------------- */

.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-body time { font-size: .8rem; color: var(--muted); display: block; margin-bottom: .5rem; }
.post-body h2, .post-body h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.post-body h2 a, .post-body h3 a { color: var(--ink); text-decoration: none; }
.post-body h2 a:hover, .post-body h3 a:hover { color: var(--blue); }
.post-body p { font-size: .93rem; flex: 1; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 3rem; }
.page-info { font-size: .9rem; color: var(--muted); }

.empty { text-align: center; padding: 3.5rem 1rem; background: var(--bg-alt);
         border: 1px dashed var(--line); border-radius: var(--radius-lg); }

/* ------------------------------- Artigo -------------------------------- */

.article-meta { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem; }
.article-cover { margin: 2rem auto; }
.article-cover img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow); }
.article-cover figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: .7rem; }

.prose { font-size: 1.06rem; padding-top: 1.5rem; }
.prose h2 { margin-top: 2.4rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.9rem; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose img { border-radius: var(--radius); margin: 1.8rem 0; box-shadow: var(--shadow); }
.prose blockquote {
  margin: 1.8rem 0; padding: 1rem 1.5rem;
  border-left: 4px solid var(--green); background: var(--green-soft);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px;
  padding: .12em .4em; font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose pre {
  background: var(--ink); color: #E6EDF3; padding: 1.2rem; border-radius: var(--radius);
  overflow-x: auto; margin: 1.8rem 0;
}
.prose pre code { background: none; border: none; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; }
.prose th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }

.author-box {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem; margin: 2.5rem 0 3rem;
}
.author-box p { margin: .3rem 0 0; font-size: .93rem; }

/* --------------------------------- FAQ --------------------------------- */

.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: .8rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.1rem 1.4rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--green); flex: 0 0 auto; }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { margin: 0; font-size: 1.03rem; font-weight: 600; }
.faq details p { padding: 0 1.4rem 1.3rem; margin: 0; font-size: .97rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-left: 3.2rem; margin-bottom: 1.4rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}

/* ------------------------------- Serviços ------------------------------ */

.service-list { display: grid; gap: 1.2rem; }
.service-row {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow); scroll-margin-top: 90px;
}
.service-row h2 { font-size: 1.3rem; }
.service-row p { font-size: .98rem; }

/* ------------------------------- Contato ------------------------------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .35rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--green); }
.contact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
                 color: var(--green-dark); font-weight: 700; }
.contact-card strong { color: var(--ink); font-size: 1.06rem; word-break: break-word; }
.contact-hint { font-size: .85rem; color: var(--muted); }
.contact-help { margin-top: 3rem; }

/* --------------------------------- CTA --------------------------------- */

.cta-band { background: var(--grad); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.92); margin-inline: auto; }

/* -------------------------------- Rodapé ------------------------------- */

.site-footer { background: var(--ink); color: #A9B6C8; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { margin-bottom: 1rem; }
.footer-brand .brand-text strong { color: #fff; }
.footer-about { font-size: .92rem; max-width: 42ch; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em;
                color: #fff; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55rem; }
.footer-list a { color: #A9B6C8; text-decoration: none; font-size: .93rem; }
.footer-list a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; }
.footer-bottom p { font-size: .85rem; margin: 0; }

/* ------------------------------ Responsivo ----------------------------- */

@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .service-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; cursor: pointer; padding: 10px;
  }
  .nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px;
                     transition: transform .2s ease, opacity .2s ease; }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.2rem; display: none; box-shadow: var(--shadow-lg);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a.btn { margin-top: .8rem; border-bottom: none; justify-content: center; }

  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .pagination { flex-direction: column; gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-burger { display: none; }
  body { font-size: 12pt; }
}

/* ---------------------------- Banner de cookies ------------------------- */

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.3rem 1.5rem;
  max-width: 720px; margin-inline: auto;
  opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cookie-text { flex: 1 1 320px; }
.cookie-text strong { display: block; color: var(--ink); margin-bottom: .25rem; }
.cookie-text p { margin: 0; font-size: .88rem; line-height: 1.55; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.footer-legal { margin: .4rem 0 0; }
.footer-legal a { color: #A9B6C8; text-decoration: none; font-size: .85rem; }
.footer-legal a:hover { color: #fff; }

@media (max-width: 560px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
