/* ============================================================
   TopEstampa Sites — componentes
   ============================================================ */

/* Altura da barra topo: desktop maior para a logo de 100px */
:root { --nav-h: 120px; }

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--white);
  color: #000;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Aurora (fundo animado, estilo antigravity) ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora__blob {
  position: absolute;
  width: 54vw;
  height: 54vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
  will-change: transform;
  opacity: 0.62;
}
.aurora__blob--1 { left: -14%; top: -20%; background: radial-gradient(circle at 35% 35%, rgba(255, 0, 127, 0.85), rgba(255, 0, 127, 0) 62%); }
.aurora__blob--2 { right: -16%; top: 4%; background: radial-gradient(circle at 60% 40%, rgba(57, 255, 20, 0.58), rgba(57, 255, 20, 0) 60%); }
.aurora__blob--3 { left: 6%; bottom: -26%; background: radial-gradient(circle at 50% 50%, rgba(255, 0, 127, 0.5), rgba(255, 0, 127, 0) 58%); }
.aurora__blob--4 { right: 4%; bottom: -20%; background: radial-gradient(circle at 45% 45%, rgba(57, 255, 20, 0.5), rgba(57, 255, 20, 0) 62%); }
.aurora__blob--5 { left: 38%; top: -22%; background: radial-gradient(circle at 50% 50%, rgba(255, 0, 127, 0.32), rgba(255, 0, 127, 0) 60%); }
.aurora__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.aurora__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .aurora__blob { opacity: 0.35; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.preloader--done { pointer-events: none; }
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.preloader__logo { font-size: 20px; letter-spacing: 0.18em; }
.preloader__bar {
  width: min(260px, 60vw);
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.preloader__fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--gradient);
}
.preloader__count { font-size: 44px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 0, 127, 0.30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav--scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo-text { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo-img { display: block; height: 100px; width: auto; }
.nav__list { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.35s var(--ease);
}
.nav__list a:hover { color: var(--text); }
.nav__list a:hover::after { width: 100%; }
.nav__cta { padding: 11px 22px; font-size: 14px; }

.nav__burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
}
.nav__burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { bottom: 14px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }

.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.nav__overlay--open { opacity: 1; visibility: visible; }
.nav__overlay-list { list-style: none; text-align: center; display: grid; gap: 20px; padding: 0; margin: 0; }
.nav__overlay-list a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.nav__overlay--open .nav__overlay-list a { opacity: 1; transform: none; }
.nav__overlay--open .nav__overlay-list a:nth-child(2) { transition-delay: 0.06s; }
.nav__overlay--open .nav__overlay-list a:nth-child(3) { transition-delay: 0.12s; }
.nav__overlay--open .nav__overlay-list a:nth-child(4) { transition-delay: 0.18s; }
.nav__overlay-footer { position: absolute; bottom: 40px; }

@media (max-width: 900px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 6vh) 0 0;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.72), rgba(10, 10, 12, 0.22) 42%, #0A0A0C 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block-end: clamp(40px, 7vh, 90px);
  display: grid;
  gap: clamp(28px, 5vh, 56px);
}
.hero__title {
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
}
.hero__title-glow {
  text-shadow:
    0 0 12px rgba(255, 0, 127, 0.55),
    0 0 26px rgba(57, 255, 20, 0.28);
}
.hero__title [data-split] { display: block; overflow: hidden; }
.hero__type {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4ch;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.8rem);
  letter-spacing: 0.04em;
  min-height: 1.6em;
  color: var(--text-dim);
}
.hero__type-word {
  color: #ffd0ea;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(255, 255, 255, 0.8),
    0 0 26px rgba(255, 255, 255, 0.55),
    0 0 46px rgba(255, 0, 127, 0.28);
  animation: heroGlow 2.6s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% {
    text-shadow:
      0 0 6px rgba(255, 255, 255, 0.95),
      0 0 14px rgba(255, 255, 255, 0.8),
      0 0 26px rgba(255, 255, 255, 0.55),
      0 0 46px rgba(255, 0, 127, 0.28);
  }
  50% {
    text-shadow:
      0 0 8px rgba(255, 255, 255, 1),
      0 0 20px rgba(255, 255, 255, 0.9),
      0 0 38px rgba(255, 255, 255, 0.68),
      0 0 66px rgba(255, 0, 127, 0.38);
  }
}
.hero__type-cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  align-self: center;
  background: var(--accent-pink);
  animation: heroBlink 0.9s steps(2, start) infinite;
}
@keyframes heroBlink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .hero__type-cursor { animation: none; }
  .hero__type-word { animation: none; }
}
.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 520px) auto;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
}
.hero__sub { color: var(--text-dim); font-size: 17px; margin: 0; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 12px;
}
@media (max-width: 760px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__meta { gap: 10px; flex-direction: column; }
}

@media (max-width: 760px) {
  :root { --nav-h: 80px; }
  .nav__logo-img { height: 60px; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; white-space: nowrap; }
.marquee__group span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  text-transform: uppercase;
  padding: 0 18px;
}
.marquee__group b { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Cards / serviços ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); }
.service--featured {
  background: var(--bg-3);
  border-color: rgba(255, 0, 127, 0.45);
  box-shadow: 0 0 60px rgba(255, 0, 127, 0.14);
}
.service__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.service__price { color: var(--accent-pink); }
.service__title { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.service__desc { color: var(--text-dim); font-size: 15px; margin: 0; }
.service__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.service__items li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: 14.5px; }
.service__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}
.service__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.service__link .arrow { color: var(--accent-pink); font-size: 20px; }
@media (max-width: 820px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ---------- Portfólio (horizontal) ---------- */
.portfolio__wrap { overflow: hidden; }
.portfolio__track {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  padding: 0 var(--gutter);
  width: max-content;
}
.portfolio__item {
  margin: 0;
  width: min(78vw, 640px);
  flex-shrink: 0;
}
.portfolio__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 2;
  background: var(--bg-3);
}
.portfolio__media img { width: 100%; height: 100%; object-fit: cover; }
.portfolio__note {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  backdrop-filter: blur(8px);
}
.portfolio__meta { display: flex; align-items: baseline; gap: 14px; padding-top: 18px; flex-wrap: wrap; }
.portfolio__cat { color: var(--accent-pink); }
.portfolio__title { font-size: clamp(1.6rem, 3vw, 2.4rem); flex-basis: 100%; }

/* ---------- Métricas ---------- */
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.metric {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
}
.metric__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  color: var(--white);
}
.metric__value .metric__num { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric__label { color: var(--text-dim); margin: 14px 0 0; font-size: 15px; }
@media (max-width: 900px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- FAQ ---------- */
.faq__list { max-width: 820px; }
.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__q {
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 700;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__n { color: var(--accent-pink); }
.faq__icon {
  margin-left: auto;
  font-size: 28px;
  font-weight: 400;
  transition: transform 0.4s var(--ease);
  color: var(--accent-green);
  line-height: 1;
}
.faq__a { padding: 18px 0 0 58px; color: var(--text-dim); max-width: 640px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta__title { font-size: clamp(2.6rem, 8vw, 7rem); line-height: 0.98; }
.cta__sub { color: var(--text-dim); max-width: 520px; margin: 26px auto 36px; }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: clamp(70px, 10vw, 130px);
  flex-wrap: wrap;
}
.footer__headline { font-size: clamp(2.4rem, 6vw, 5rem); }
.footer__marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; }
.footer__marquee-track { display: flex; gap: 30px; width: max-content; white-space: nowrap; font-size: 12px; letter-spacing: 0.2em; will-change: transform; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: 60px;
}
.footer__tagline { color: var(--text-dim); font-size: 15px; max-width: 320px; }
.footer__logo { display: flex; align-items: center; gap: 12px; }
.footer__logo-img { display: block; height: 90px; width: auto; }
@media (max-width: 760px) { .footer__logo-img { height: 48px; } }
.footer__label { margin: 0 0 18px; color: var(--text-dim); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__list a { color: var(--text-dim); transition: color 0.3s var(--ease); }
.footer__list a:hover { color: var(--text); }
.footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-block: 24px;
  flex-wrap: wrap;
  font-size: 12px;
}
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Contato ---------- */
.contato__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contato__channels { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.contato__channels a { display: inline-flex; flex-direction: column; gap: 2px; font-weight: 600; }
.contato__channels a:hover span { color: var(--accent-green); }
.contato__channels span { color: var(--text-dim); font-weight: 400; font-size: 12px; }
.contato__form {
  display: grid;
  gap: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
}
.contato__status {
  min-height: 1.4em;
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}
.contato__status.is-ok { color: var(--accent-green); }
.contato__status.is-err { color: var(--accent-pink); }
.field { display: grid; gap: 8px; }
.field__label { font-size: 11px; color: var(--text-dim); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent-pink); }
.field select option { background: var(--bg-2); }
.contato__form .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 820px) {
  .contato__grid { grid-template-columns: 1fr; }
}

/* ---------- Page interna / conteúdo ---------- */
.page-hero { padding-bottom: 0; }
.page-hero .section__sub { margin-top: 20px; }
.entry-content { color: var(--text-dim); max-width: 680px; }
.entry-content h2, .entry-content h3 { color: var(--text); margin: 32px 0 14px; }
.entry-content a { color: var(--accent-pink); text-decoration: underline; }

/* ---------- Reveal base (sem JS fica visível) ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; }

.line-mask {
  display: block;
  overflow: hidden;
}
.js .line-mask { padding-bottom: 0.08em; margin-bottom: -0.08em; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; }
  .nav__overlay-list a { opacity: 1; transform: none; }
}
/* Neon cursor — threejs-toys */
#neon-cursor {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	overflow: hidden;
	mix-blend-mode: screen;
}
#neon-cursor canvas {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
}
