/* ===========================================================
   Circuito Maker - CSS proprio do tema
   =========================================================== */

/* ---------- Header ---------- */
.site-header {
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.25s ease;
  padding-block: 16px;
}

.site-header__bar {
  max-width: 1100px;
  margin-inline: auto;
}

/* nav escondida no estado normal */
.site-header__nav {
  display: none;
}

/* estado sticky: fundo preto + nav horizontal centralizada aparece */
.site-header.is-sticky {
  background: #080808;
}
.site-header.is-sticky .site-header__nav {
  display: flex;
}
.site-header.is-sticky .site-header__nav a {
  color: #FFFFFF;
}

/* ---------- Botao offcanvas (fora da faixa do header) ---------- */
.offcanvas-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.offcanvas-toggle__bar {
  width: 20px;
  height: 2px;
  background: #080808;
}

/* ---------- Offcanvas ---------- */
.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 90vw);
  background: #080808;
  color: #FFFFFF;
  z-index: 70;
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.offcanvas.is-open {
  transform: translateX(0);
}
.offcanvas__close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 28px;
  cursor: pointer;
}
.offcanvas__menu a {
  color: #FFFFFF;
  display: block;
  padding: 8px 0;
}
.offcanvas__social {
  display: flex;
  gap: 16px;
}

.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 65;
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #FFD957;
  color: #080808;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Marquee (CSS puro, sem lib) ---------- */
.marquee {
  overflow: hidden;
  width: 100%;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee--text .marquee__track {
  animation-duration: 18s;
  font-weight: 700;
  font-size: 20px;
  white-space: nowrap;
}
.marquee--images .marquee__track img {
  height: 220px;
  width: auto;
  object-fit: cover;
  margin-right: 12px;
  border-radius: 4px;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* respeita usuarios que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* ---------- Ajustes responsivos basicos ---------- */
@media (max-width: 768px) {
  .pillars__grid,
  .highlight .wp-block-columns,
  .guia-maker-teaser .wp-block-columns {
    flex-direction: column;
  }
}
