/* ==========================================================================
   Império Tecnologia — Componentes
   Estrutura do n8n (nav, cards, pills, nós, footer mega-nav) com a pele da Império.
   ========================================================================== */

/* ==========================================================================
   1. Nav fixa
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 24, 35, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-nav);
  transition: background var(--dur) var(--ease);
}
.site-header.is-scrolled { background: rgba(0, 24, 35, 0.96); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  height: 100%;
}
.nav__brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo {
  height: 42px;
  width: auto;
  transition: height var(--dur) var(--ease);
}
@media (min-width: 768px) {
  .nav-logo { height: 50px; }
  .is-scrolled .nav-logo { height: 44px; }
}

.nav__links {
  display: none;
  gap: var(--s-4);
  list-style: none;
  padding: 0;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text-head); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--text-head); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__actions { display: none; align-items: center; gap: var(--s-2); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__actions { display: flex; }
  .nav .nav__toggle { display: none; } /* especificidade maior que a regra base abaixo */
}
@media (min-width: 900px) and (max-width: 1099px) {
  .nav__actions .pill-social { display: none; } /* economiza espaço entre 900–1100px */
}

/* Hambúrguer animado */
.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-btn);
  border: 1px solid var(--border);
  background: rgba(0, 22, 32, 0.5);
}
.nav__toggle-bars { position: relative; width: 20px; height: 14px; }
.nav__toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text-head);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav__toggle-bars span:nth-child(1) { top: 0; }
.nav__toggle-bars span:nth-child(2) { top: 6px; }
.nav__toggle-bars span:nth-child(3) { top: 12px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Painel mobile em tela cheia */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5) var(--gutter) var(--s-6);
  background: var(--bg-hero);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-menu__links { list-style: none; padding: 0; display: grid; gap: var(--s-1); }
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding-block: var(--s-1);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-head);
}
.mobile-menu__link[aria-current="page"] { color: var(--teal); }
.mobile-menu__actions { display: grid; gap: var(--s-2); margin-top: auto; }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ==========================================================================
   2–4. Botões
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-head);
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: var(--text-sm); }
.btn--block { width: 100%; }

/* Primário — gradiente CTA da Império */
.btn--primary { background: var(--grad-cta); }
.btn--primary:hover { background: var(--grad-cta-hover); box-shadow: var(--glow-teal); }

/* Secundário — Ghost Outline */
.btn--ghost { background: transparent; border-color: rgba(181, 198, 217, 0.35); }
.btn--ghost:hover { border-color: var(--teal); }

/* Frosted — ícone / pill */
.btn--frosted {
  background: rgba(0, 22, 32, 0.5);
  border-color: var(--border);
  color: var(--text-body);
}
.btn--frosted:hover { border-color: var(--border-teal); color: var(--text-head); }
.btn--icon { width: 44px; min-height: 44px; padding: 0; }

/* Pill do Instagram (frosted, como na capa do PDF) */
.pill-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(0, 22, 32, 0.5);
  border: 1px solid var(--border-teal);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pill-social .icon { width: 16px; height: 16px; color: var(--teal); }
.pill-social:hover { color: var(--text-head); border-color: var(--teal); }

/* ==========================================================================
   5. Feature card (card padrão do PDF)
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-teal); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--s-1); }
.card__title { font-size: var(--text-h4); }
.card__text { font-size: 15px; line-height: 1.6; color: var(--text-soft); }
.card__footer { margin-top: auto; padding-top: var(--s-2); }

/* Caixinha de ícone 48px (teal / azul alternando) */
.icon-box {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: var(--r-icon);
  background: var(--icon-bg-teal);
  color: var(--teal);
}
.icon-box--blue { background: var(--icon-bg-blue); color: var(--blue); }
.icon-box--sm { width: 40px; height: 40px; }
.icon-box--sm .icon { width: 20px; height: 20px; }

/* Bolinha de status 6px no topo-direita */
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 176, 188, 0.12);
}
.status-dot--blue { background: var(--blue); box-shadow: 0 0 0 4px rgba(63, 124, 186, 0.14); }

/* Tag de rodapé do card: "• MONITORAMENTO INTELIGENTE" */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}
.tag::before {
  content: "";
  width: 6px; height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal);
}
.tag--blue::before { background: var(--blue); }

/* ==========================================================================
   6. Card em destaque (Glowing Inset Card)
   ========================================================================== */
.card--highlight {
  background: var(--grad-card-teal);
  border-color: var(--border-teal);
  border-radius: var(--r-card-lg);
  box-shadow: var(--glow-inset), var(--glow-teal);
}

/* Mini-card (VISÃO / Foco estratégico…) */
.mini-card {
  display: grid;
  gap: 4px;
  padding: var(--s-2);
  border-radius: var(--r-node);
  background: var(--bg-chip);
  border: 1px solid var(--border);
}
.mini-card__label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
}
.mini-card__text { font-size: var(--text-sm); color: var(--text-head); font-weight: 500; }

/* Nota com barra teal à esquerda */
.note {
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-btn) var(--r-btn) 0;
  background: rgba(31, 176, 188, 0.06);
  color: var(--text-body);
}

/* ==========================================================================
   7. Dark Feature Panel (split texto ⟷ imagem)
   ========================================================================== */
.feature-panel {
  display: grid;
  gap: var(--s-5);
  padding: clamp(var(--s-3), 5vw, var(--s-8));
  border-radius: var(--r-card-lg);
  background: var(--bg-feature-panel);
  border: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .feature-panel { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--s-8); }
}
.feature-panel__media { position: relative; }
.feature-panel__media img { width: 100%; border-radius: var(--r-card); object-fit: cover; }
.feature-panel__chips {
  position: absolute;
  left: var(--s-2); right: var(--s-2); bottom: var(--s-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}

/* Chip sobreposto ("100% custom / Sem pacote padrão") */
.chip {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--r-node);
  background: rgba(0, 22, 32, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-teal);
}
.chip__title { font-family: var(--font-head); font-size: var(--text-sm); font-weight: 700; color: var(--text-head); }
.chip__text { font-size: 12px; color: var(--text-soft); }

/* Badge flutuante sobre imagem ("Qualidade + Prazos") */
.float-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-card);
  background: rgba(0, 22, 32, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-teal);
  box-shadow: var(--glow-inset);
}
.float-badge__title { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--text-head); line-height: 1.3; }
.float-badge__text { font-size: 13px; color: var(--text-soft); line-height: 1.4; }

/* ==========================================================================
   8. Pill / badge de status (bolinha pulsando)
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(0, 22, 32, 0.6);
  border: 1px solid var(--border-teal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-head);
  line-height: 1.3;
}
.pill__dot {
  position: relative;
  width: 7px; height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal);
}
.pill__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .7; }
  70%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ==========================================================================
   9. Nós de workflow ("Como trabalhamos")
   ========================================================================== */
/* Vertical no mobile, horizontal a partir de 1024px.
   Cada conector traz duas linhas SVG (vertical / horizontal) e só uma aparece. */
.workflow {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
}
.workflow__node {
  display: grid;
  align-content: start;
  gap: var(--s-1);
  padding: var(--s-3);
  border-radius: var(--r-node);
  background: var(--bg-card-top);
  border: 1px solid var(--border);
  box-shadow: var(--glow-inset);
}
.workflow__step {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--text-muted);
}
.workflow__node .icon-box { margin-bottom: 4px; }
.workflow__title { font-size: var(--text-lg); }
.workflow__text { font-size: var(--text-sm); line-height: 1.55; color: var(--text-soft); }

.workflow__link { display: flex; justify-content: center; height: 40px; }
.workflow__link svg { width: 4px; height: 100%; overflow: visible; }
.workflow__link .wf-h { display: none; }
.wf-track { fill: none; stroke-width: 2; opacity: .6; }
.wf-spark {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 20 120;
  stroke-dashoffset: 20;
  filter: drop-shadow(0 0 4px var(--teal));
  opacity: 0;
}
.workflow.is-active .wf-spark { opacity: 1; animation: spark 2.2s linear infinite; }
.workflow.is-active li:nth-child(4) .wf-spark { animation-delay: .4s; }
.workflow.is-active li:nth-child(6) .wf-spark { animation-delay: .8s; }
.workflow.is-active li:nth-child(8) .wf-spark { animation-delay: 1.2s; }
@keyframes spark { to { stroke-dashoffset: -100; } }

@media (min-width: 1024px) {
  .workflow { flex-direction: row; }
  .workflow__node { flex: 1 1 0; min-width: 0; }
  .workflow__link { flex: 0 0 36px; height: auto; align-items: center; }
  .workflow__link svg { width: 100%; height: 4px; }
  .workflow__link .wf-v { display: none; }
  .workflow__link .wf-h { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .workflow.is-active .wf-spark { animation: none; opacity: 0; }
}

/* ==========================================================================
   10. Barra de prova social
   ========================================================================== */
.proof {
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.proof__label {
  display: block;
  margin-bottom: var(--s-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
.proof__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  list-style: none;
  padding: 0;
  animation: marquee 32s linear infinite;
}
.proof__item {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-body);
  white-space: nowrap;
  opacity: .85;
}
.proof__item[aria-hidden="true"] { display: list-item; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (min-width: 1024px) {
  .proof__track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--s-2);
    animation: none;
  }
  .proof__item[aria-hidden="true"] { display: none; } /* duplicatas só servem ao marquee */
}
@media (prefers-reduced-motion: reduce) {
  .proof__track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: var(--s-2); animation: none; }
  .proof__item[aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   Faixa CTA ("Vamos desenhar sua segurança?") — botão grande clicável do PDF
   ========================================================================== */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: clamp(var(--s-3), 4vw, var(--s-6));
  border-radius: var(--r-card-lg);
  background: var(--grad-cta);
  color: var(--text-head);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cta-band:hover { background: var(--grad-cta-hover); box-shadow: var(--glow-teal); }
.cta-band__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cta-band__text { margin-top: var(--s-1); font-size: 15px; color: var(--text-head); opacity: .9; }
.cta-band__arrow {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: var(--r-card);
  background: rgba(0, 24, 35, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.cta-band__arrow .icon { width: 28px; height: 28px; transition: transform var(--dur) var(--ease); }
.cta-band:hover .cta-band__arrow .icon { transform: translateX(4px); }

/* ==========================================================================
   11. Footer mega-nav
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: var(--s-10);
  background:
    radial-gradient(circle farthest-side at 100% -60%, rgba(31,176,188,.22), rgba(63,124,186,.14) 40%, transparent 60%),
    var(--bg-base);
  border-top: 1px solid var(--border);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--border);
}
.footer__brand { display: grid; gap: var(--s-2); }
.footer__logo { height: 72px; width: auto; }
.footer__slogan { font-family: var(--font-head); font-size: var(--text-lg); font-weight: 600; color: var(--text-head); }
.footer__social { display: flex; gap: var(--s-1); }
.footer__social a { color: var(--text-body); }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5) var(--s-4);
  padding-block: var(--s-6);
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer__title {
  margin-bottom: var(--s-2);
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-head);
}
.footer__list { list-style: none; padding: 0; display: grid; gap: 6px; }
.footer__list a, .footer__list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: var(--text-sm);
  color: var(--text-soft);
  transition: color var(--dur) var(--ease);
}
.footer__list a:hover { color: var(--teal); }
.footer__list .icon { width: 16px; height: 16px; color: var(--teal); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-1) var(--s-3);
  padding-block: var(--s-3);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.footer__credit { color: var(--text-faint); }
.footer__credit a:hover { color: var(--text-soft); }

/* ==========================================================================
   12. Botão flutuante de WhatsApp
   ========================================================================== */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: var(--text-head);
  box-shadow: var(--glow-teal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wa-float:hover { background: var(--grad-cta-hover); }
.wa-float .icon { width: 28px; height: 28px; stroke-width: 2; }
.wa-float__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 8px 12px;
  border-radius: var(--r-btn);
  background: var(--bg-card-top);
  border: 1px solid var(--border-teal);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-head);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wa-float:hover .wa-float__tip,
.wa-float:focus-visible .wa-float__tip { opacity: 1; transform: translate(0, -50%); }
@media (hover: none) { .wa-float__tip { display: none; } }
