

/* ---------------------------------------------------------
   HEADER — transformação ao fixar (logo centralizado + hambúrguer + drawer lateral)
   --------------------------------------------------------- */
.site-header { transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.nav { position: relative; transition: height .3s ease; }
.brand { transition: transform .35s cubic-bezier(.2,.7,.2,1); }

.site-header.is-stuck .nav { height: 66px; }

/* hambúrguer sempre controla o drawer; visível no mobile (regra base) e no desktop quando fixo */
.site-header.is-stuck .nav__toggle { display: inline-flex; }

@media (min-width: 980px) {
  .site-header.is-stuck .nav { justify-content: center; }
  .site-header.is-stuck .nav__links,
  .site-header.is-stuck .nav__cta { display: none; }
  .site-header.is-stuck .brand { transform: none; }
  .site-header.is-stuck .nav__toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ---------------------------------------------------------
   DRAWER LATERAL
   --------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 120;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.side-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(86vw, 360px);
  background: #fff;
  z-index: 130;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  box-shadow: -24px 0 70px rgba(17,17,17,.18);
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.2,.7,.2,1);
  overflow-y: auto;
}
.side-drawer.is-open { transform: none; }

.side-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.side-drawer__head .brand__img { height: 36px; }
.side-drawer__close {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease;
}
.side-drawer__close:hover { background: var(--bg-soft); border-color: var(--ink); }

.side-drawer__nav { display: flex; flex-direction: column; }
.side-drawer__nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  padding: .95rem .25rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .15s ease, padding-left .15s ease;
}
.side-drawer__nav a:hover { color: var(--blue); padding-left: .5rem; }
.side-drawer__nav a svg { color: var(--slate-400); }
.side-drawer__nav a:hover svg { color: var(--blue); }
.side-drawer .btn { margin-top: 1.4rem; }
.side-drawer__foot {
  margin-top: auto;
  padding-top: 1.4rem;
  display: flex;
  gap: .6rem;
}
.side-drawer__foot a {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  color: var(--ink-700);
  transition: background .2s ease, color .2s ease;
}
.side-drawer__foot a:hover { background: var(--blue); color: #fff; }

/* ---------------------------------------------------------
   COOKIES (flutuante, canto inferior esquerdo)
   --------------------------------------------------------- */
.cookie-bar {
  position: fixed;
  left: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 95;
  width: min(92vw, 360px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .4s ease, visibility .4s ease;
}
.cookie-bar.is-visible { transform: none; opacity: 1; visibility: visible; }
.cookie-bar__ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-050);
  color: var(--blue);
  display: grid; place-items: center;
}
.cookie-bar h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.cookie-bar p { font-size: .88rem; color: var(--slate); }
.cookie-bar p a { color: var(--blue); font-weight: 600; }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-bar__actions .btn { flex: 1; padding: .7rem 1rem; font-size: .92rem; }
.btn--mini-ghost {
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--ink-700);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
}
.btn--mini-ghost:hover { border-color: var(--ink); }

/* ---------------------------------------------------------
   YOUTUBE
   --------------------------------------------------------- */
.yt-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
.yt-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.yt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.yt-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-blue);
}
.yt-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-card__thumb .ph { height: 100%; border: none; border-radius: 0; }
.yt-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(17,17,17,.62);
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.yt-card:hover .yt-play { background: var(--blue); transform: scale(1.08); }
.yt-play svg { color: #fff; margin-left: 3px; }
.yt-card__body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .45rem; }
.yt-card__body h3 {
  font-size: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-card__meta { font-size: .8rem; color: var(--slate); display: flex; align-items: center; gap: .4rem; }
.yt-card__meta .yt-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--slate-400); }
.yt-cta { text-align: center; margin-top: clamp(2rem, 4vw, 2.75rem); }
@media (min-width: 640px) { .yt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .yt-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------
   PÁGINAS INTERNAS (Themes / Labs)
   --------------------------------------------------------- */
.page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero--themes { background: radial-gradient(120% 120% at 85% -10%, var(--blue-600) 0%, var(--blue) 42%, var(--blue-700) 100%); }
.page-hero--labs { background: radial-gradient(120% 120% at 80% -10%, #2a2a2a 0%, var(--ink) 55%, #000 100%); }
.page-hero .container {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  align-items: center;
}
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .5rem .9rem; border-radius: var(--r-pill);
  margin-bottom: 1.3rem;
}
.page-hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; margin-bottom: 1.1rem; }
.page-hero p { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: rgba(255,255,255,.9); max-width: 56ch; margin-bottom: 1.9rem; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.page-hero__media { position: relative; }
.page-hero__media .ph {
  aspect-ratio: 4/3; border-radius: var(--r-lg);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
}
@media (min-width: 920px) { .page-hero .container { grid-template-columns: 1.05fr .95fr; } }

.breadcrumb { font-size: .85rem; color: var(--slate); padding-block: 1rem; }
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--line-strong); margin: 0 .4rem; }

/* faixas de conteúdo das páginas internas */
.steps {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.8rem;
  display: grid; gap: .6rem;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.1rem; color: var(--blue);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--slate); font-size: .92rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }

.price-grid {
  display: grid; gap: 1.4rem; grid-template-columns: 1fr;
  max-width: 640px; margin-inline: auto;
}
.price-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 2rem;
  display: grid; gap: 1rem; align-content: start;
}
.price-card--featured { border-color: var(--blue); box-shadow: var(--shadow-md); position: relative; }
.price-card__tag { font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.price-card__price { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.price-card__price small { font-size: .9rem; font-weight: 600; color: var(--slate); }
.price-card ul { display: grid; gap: .6rem; }
.price-card li { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; color: var(--ink-700); }
.price-card li svg { color: var(--blue); flex: none; margin-top: 3px; }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(2, 1fr); max-width: none; } }

.final-cta {
  background: var(--blue);
  border-radius: var(--r-xl);
  color: #fff;
  padding: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
  display: grid;
  gap: 1.2rem;
  justify-items: center;
}
.final-cta--dark { background: var(--ink); }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.final-cta p { color: rgba(255,255,255,.9); max-width: 54ch; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: .4rem; }

/* ---------------------------------------------------------
   ARTIGOS — listagem + tabs de filtro
   --------------------------------------------------------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter-tab {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-700);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  padding: .6rem 1.2rem;
  border-radius: var(--r-pill);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.filter-tab:hover { border-color: var(--blue); color: var(--blue); }
.filter-tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.articles-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}
.article-card { display: flex; flex-direction: column; }
.article-card.is-hidden { display: none; }
.articles-empty {
  text-align: center;
  color: var(--slate);
  padding: 3rem 1rem;
  display: none;
}
.articles-empty.is-shown { display: block; }
@media (min-width: 620px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

/* animação de filtro */
.article-card { transition: opacity .3s ease, transform .3s ease; }
.article-card.is-filtering { opacity: 0; transform: scale(.96); }

/* ---------------------------------------------------------
   CASE / PORTFÓLIO — detalhe
   --------------------------------------------------------- */
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.case-meta__item { display: grid; gap: .15rem; }
.case-meta__item span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.case-meta__item b { font-family: var(--font-display); font-size: 1.05rem; }

.case-result-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.case-result-bar .metric { text-align: center; }
.case-result-bar .metric__num { color: var(--blue); }
@media (min-width: 760px) { .case-result-bar { grid-template-columns: repeat(4, 1fr); } }

.split {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.split__body { display: grid; gap: 1.1rem; align-content: center; }
.split__body h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.split__body p { color: var(--slate); }
.split__media .ph { aspect-ratio: 4/3; border-radius: var(--r-lg); }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.tag-list span {
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  color: var(--blue-700); background: var(--blue-050);
  padding: .4rem .85rem; border-radius: var(--r-pill);
}

/* ---------- Antes & Depois (slider arrastável) ---------- */
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
  touch-action: none;
  background: var(--bg-soft);
}
.ba__layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: .85rem;
  color: #fff;
  text-align: center;
}
.ba__layer img { width: 100%; height: 100%; object-fit: cover; }
.ba__after {
  background: repeating-linear-gradient(135deg, rgba(13,110,253,.22) 0 16px, rgba(13,110,253,.10) 16px 32px), var(--blue);
}
.ba__before {
  background: repeating-linear-gradient(135deg, rgba(51,51,51,.22) 0 16px, rgba(51,51,51,.10) 16px 32px), #5b5b5b;
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.ba__tag {
  position: absolute;
  top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(17,17,17,.55);
  padding: .35rem .8rem;
  border-radius: var(--r-pill);
  z-index: 3;
}
.ba__tag--before { right: 1rem; }
.ba__tag--after { left: 1rem; background: rgba(13,110,253,.85); }
.ba__divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 0 0 1px rgba(17,17,17,.08);
}
.ba__handle {
  position: absolute;
  top: 50%; left: var(--pos, 50%);
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: var(--blue);
  z-index: 5;
  cursor: ew-resize;
}
.ba__handle svg { pointer-events: none; }
.ba:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* grade de cases relacionados reaproveita .cases__grid */
.related-cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* tornar os cards de case clicáveis */
a.case { color: inherit; }
a.case:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
