/* components.css — AUTH.ONE Componentes reutilizáveis */

/* ─── Bottom blur fog zone ───────────────────────────── */

.page-blur-fade {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  z-index: 30;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 18%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 18%, rgba(0,0,0,0) 100%);
  transition: opacity 0.4s ease;
}

.page-blur-fade.is-hidden { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .page-blur-fade { display: none; }
}

/* ─── Cursor ring ─────────────────────────────────────── */

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--cream);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 320ms var(--ease-fast), height 320ms var(--ease-fast), background 320ms var(--ease-fast), opacity 200ms ease;
  z-index: 9999;
  opacity: 0;
}
.cursor-ring.active { opacity: 1; }
.cursor-ring.hover  { width: 56px; height: 56px; background: rgba(255,255,230,0.12); }

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-ring { display: none; }
}

@media (pointer: fine) {
  body, a, button, [role="button"] { cursor: none; }
}

/* ─── Header ─────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 72px;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

@media (max-width: 768px) {
  .header-inner { padding: 0 24px; }
}

.header-logo img {
  height: 20px;
  width: auto;
}

.logo-full  { display: block; }
.logo-icon  { display: none; }

@media (max-width: 1024px) {
  .logo-full { display: none; }
  .logo-icon { display: block; height: 28px; width: auto; }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-300);
  transition: color 0.2s;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
}

.nav-link:hover {
  color: var(--cream);
}

.nav-link.active {
  color: var(--cream);
}

/* Dropdown de Especialidades */
.nav-dropdown {
  position: relative;
}

/* Ponte invisível que cobre o gap e mantém o hover ativo */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 16px;
}

.dropdown-chevron {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform 0.2s var(--ease-fast);
  position: relative;
  top: -1px;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--ink-900);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 6px 0;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-fast), transform 0.18s var(--ease-fast);
  z-index: 300;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.5);
}

/* Seta apontando para o botão */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--ink-900);
  border-top: 1px solid var(--border-mid);
  border-left: 1px solid var(--border-mid);
  rotate: 45deg;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--ink-300);
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
  border-left: 2px solid transparent;
}

.dropdown-menu a.active,
.dropdown-menu a:hover {
  color: var(--cream);
  background: rgba(255,255,230,0.04);
  border-left-color: rgba(255,255,230,0.25);
  padding-left: 22px;
}

.header-cta {
  margin-left: 8px;
  padding: 9px 18px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--ink-900);
  border-top: 1px solid var(--border-subtle);
  z-index: 190;
  padding: 40px 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  font-size: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu .btn {
  margin-top: 24px;
  width: 100%;
  text-align: center;
}

@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .header-cta {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }
}

/* ─── Botões ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms var(--ease-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--cream);
  color: var(--ink-900);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(255,255,230,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(255,255,230,0.04);
}

.btn-ghost-to-primary {
  background: transparent;
  color: var(--cream);
  border-color: var(--border-strong);
}
.btn-ghost-to-primary:hover {
  background: var(--cream);
  color: var(--ink-900);
  border-color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(255,255,230,0.25);
}

/* ─── Footer video ───────────────────────────────────── */

.ft-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.32;
}

.ft-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  pointer-events: none;
}

.ft-video-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  background: linear-gradient(to bottom, #0B0B0B 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* ─── Footer ─────────────────────────────────────────── */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  border-top: 1px solid var(--border-subtle);
}

/* Footer inner container */
.ft {
  position: relative;
  z-index: 3;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 64px 48px;
}

/* Manifesto */
.ft-manifesto-wrap {
  margin-bottom: 64px;
}

.ft-manifesto {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--cream);
}

.ft-manifesto .dim {
  color: var(--ink-500);
  font-weight: 400;
}

/* Nav grid */
.ft-nav {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Brand column */
.ft-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ft-brand-desc {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.7;
  max-width: 280px;
}

/* Flags carousel */
.ft-flags {
  overflow: hidden;
  width: 100%;
  margin-top: 4px;
}

.ft-flags-track {
  display: flex;
  gap: 10px;
  animation: flags-scroll 18s linear infinite;
}

.ft-flags-set {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.ft-flags-set img {
  height: 16px;
  width: auto;
  opacity: 0.5;
  border-radius: 2px;
  flex-shrink: 0;
}

@keyframes flags-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 5px)); }
}

/* Footer columns */
.ft-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-col-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 4px;
}

.ft-col a {
  font-size: 13px;
  color: var(--ink-400, var(--ink-500));
  transition: color 0.2s;
  line-height: 1.5;
}

.ft-col a:hover {
  color: var(--cream);
}

/* Legal line */
.ft-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ft-legal-left {
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}

.ft-legal-right {
  display: flex;
  gap: 24px;
}

.ft-legal-right a {
  font-size: 12px;
  color: var(--ink-500);
  transition: color 0.2s;
}

.ft-legal-right a:hover {
  color: var(--cream);
}

@media (max-width: 1024px) {
  .ft-nav {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .ft-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .ft {
    padding: 56px 24px 40px;
  }
  .ft-manifesto {
    font-size: 1.9rem;
  }
  .ft-manifesto br {
    display: none;
  }
  .ft-nav {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .ft-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .ft-nav {
    grid-template-columns: 1fr;
  }
}

.footer-sig {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.5vw, 40px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-700);
  text-align: center;
  margin-bottom: 72px;
  line-height: 1.2;
}

.footer-sig strong {
  color: var(--ink-500);
  font-weight: 400;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 20px;
}

.footer-col a,
.footer-col p,
.footer-col span {
  display: block;
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 10px;
  transition: color 0.2s;
  line-height: 1.5;
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom span {
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}

.footer-frase {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-700);
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-sig {
    font-size: clamp(16px, 5vw, 28px);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── Separador de seção ─────────────────────────────── */

.section-sep {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

/* ─── Bloco de credencial ────────────────────────────── */

.cred-block {
  padding: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.cred-block:hover {
  border-color: var(--border-strong);
}

/* ─── Card de serviço/pilar ──────────────────────────── */

.pillar-card {
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.12em;
  padding-top: 3px;
}

.pillar-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 4px;
}

.pillar-body {
  font-size: 14px;
  color: var(--ink-300);
  line-height: 1.6;
}

/* ─── Flags row ──────────────────────────────────────── */

.flags-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.flags-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.flags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.flags img {
  height: 16px;
  width: 26px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  display: inline-block;
}

/* ─── Linha divisória com label ──────────────────────── */

.divider-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.divider-label span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
}

.divider-label::before,
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ─── Service tags grid ──────────────────────────────── */

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-300);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 8px 14px;
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--border-strong);
  color: var(--cream);
}

/* ─── IA destaque section ────────────────────────────── */

.section-ia {
  border-top: 1px solid rgba(255, 255, 230, 0.12);
  border-bottom: 1px solid rgba(255, 255, 230, 0.12);
  background: rgba(255, 255, 230, 0.015);
}
