/* ============================================================
   catelani. — Folha de estilos compartilhada
   Identidade: preto & amarelo (rebrand 2026)
   Usada por todas as páginas do site. Tokens em :root.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --surface: rgba(18, 18, 18, 0.85);
  --surface-strong: rgba(23, 23, 23, 0.94);
  --text: #f4f4f2;
  --muted: #a8a8a3;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #facc15;
  --accent-strong: #eab308;
  --card-shadow: 0 24px 52px rgba(0, 0, 0, 0.32);
}

/* Barras de rolagem personalizadas */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid transparent;
  background-clip: padding-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

html {
  scroll-behavior: smooth;
  background-color: #070707;
  overflow-x: hidden;
}

body {
  background-color: #070707;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.07), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(250, 204, 21, 0.04), transparent 24%),
    linear-gradient(180deg, #070707 0%, #0b0b0a 38%, #121210 100%);
  color: var(--text);
  overflow-x: hidden;
}

/* Animação de entrada */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.kicker {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
}

/* Navegação */
.navbar-shell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 11, 0.24);
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.navbar-shell--hero {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 11, 0.24);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.55rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link:focus-visible,
.menu-trigger:focus-visible,
.mobile-link:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.9);
  outline-offset: 3px;
}

/* Superfícies */
.section-shell {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 20, 19, 0.92), rgba(26, 26, 24, 0.82));
  backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow);
}

.hero-shell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.1), transparent 34%),
    linear-gradient(180deg, #070707 0%, #0c0c0b 56%, #131311 100%);
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.28);
}

.editorial-card {
  border: 1px solid var(--line);
  background: rgba(21, 21, 20, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.editorial-card:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

/* Seção com glow interativo (usada na home) */
.services-section {
  position: relative;
  isolation: isolate;
  --services-glow-x: 50%;
  --services-glow-y: 50%;
  --services-glow-opacity: 0;
  transition: --services-glow-opacity 0.24s ease;
}

.services-section::before {
  content: "";
  position: absolute;
  inset: -5rem;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--services-glow-x) var(--services-glow-y),
      rgba(250, 204, 21, 0.1) 0%,
      rgba(250, 204, 21, 0.05) 22%,
      rgba(250, 204, 21, 0.02) 40%,
      transparent 68%);
  opacity: var(--services-glow-opacity);
  filter: blur(26px);
  will-change: background-position, opacity;
  transition: opacity 0.24s ease;
}

.services-section.is-interacting {
  --services-glow-opacity: 1;
}

.services-section > * {
  position: relative;
  z-index: 1;
}

.services-grid {
  position: relative;
  z-index: 1;
}

/* Selo de destaque */
.popular-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
  border-color: rgba(250, 204, 21, 0.25);
  background-color: rgba(250, 204, 21, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(250, 204, 21, 0.06),
    0 0 0 rgba(250, 204, 21, 0);
  animation: popular-badge-pulse 4.4s ease-in-out infinite;
  will-change: box-shadow, border-color, background-color, filter;
}

.popular-badge-label {
  position: relative;
  z-index: 2;
}

@keyframes popular-badge-pulse {

  0%,
  100% {
    border-color: rgba(250, 204, 21, 0.25);
    background-color: rgba(250, 204, 21, 0.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(250, 204, 21, 0.06),
      0 0 0 rgba(250, 204, 21, 0);
    filter: brightness(1);
  }

  52% {
    border-color: rgba(250, 204, 21, 0.42);
    background-color: rgba(250, 204, 21, 0.13);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 0 1px rgba(250, 204, 21, 0.12),
      0 0 18px rgba(250, 204, 21, 0.14),
      0 0 34px rgba(250, 204, 21, 0.06);
    filter: brightness(1.04);
  }
}

/* Botões */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #0a0a0a;
  box-shadow: 0 18px 36px rgba(250, 204, 21, 0.18);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 42px rgba(250, 204, 21, 0.26);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #e8e8e3;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-secondary:hover {
  border-color: rgba(250, 204, 21, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #d6d6d0;
}

/* Headline com efeito de digitação (home) */
.typing-headline-text {
  display: inline;
  white-space: pre-wrap;
}

.hero-emphasis {
  position: relative;
  display: inline-block;
  color: var(--accent);
}

.hero-emphasis::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.14em;
  width: 100%;
  height: 0.08em;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-emphasis.is-complete::after {
  opacity: 1;
  animation: hero-emphasis-underline 0.56s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hero-emphasis-underline {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.typing-char {
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.typing-char.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.typing-char--active {
  color: var(--accent);
}

/* Formulário */
.field-shell {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.field-shell input,
.field-shell textarea {
  background: transparent;
  color: var(--text);
}

.field-shell input::placeholder,
.field-shell textarea::placeholder {
  color: #8a8a85;
}

.modal-surface {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 18, 0.98);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

/* Cards das páginas internas */
.pillar-card {
  background: rgba(20, 20, 19, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.pillar-card:hover {
  border-color: rgba(250, 204, 21, 0.2);
  background: rgba(20, 20, 19, 0.65);
}

.process-step-card {
  background: rgba(20, 20, 19, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-step-card:hover {
  border-color: rgba(250, 204, 21, 0.25);
  background: rgba(20, 20, 19, 0.65);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.guarantee-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.guarantee-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .nav-link::after {
    display: none;
  }
}

/* Selo giratório da marca */
.logo-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 4.5rem;
  height: 4.5rem;
  pointer-events: none;
  user-select: none;
  opacity: 0.92;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
  animation: logo-badge-spin 22s linear infinite;
  z-index: 2;
}

@keyframes logo-badge-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .logo-badge {
    width: 3.25rem;
    height: 3.25rem;
    top: 1rem;
    right: 1rem;
  }
}

/* Logo como assinatura (em fluxo, ex.: fechamento do manifesto) */
.logo-signature {
  width: 5.5rem;
  height: 5.5rem;
  user-select: none;
  animation: logo-badge-spin 22s linear infinite;
}
