/* ==========================================================================
   REAL CUSTO — COMPONENTS
   Todos os componentes reutilizáveis do site.
   Importar DEPOIS de tokens.css e base.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   NAVBAR
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--section-pad-x);
  transition:
    background var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.nav.nav--light {
  background: var(--surface-light);
  border-bottom: 1px solid var(--border-light);
}

.nav.nav--transparent {
  background: transparent;
}

.nav.nav--scrolled {
  background: var(--surface-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.20);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: var(--space-8);
}

.nav__logo {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  color: var(--brand-navy);
  text-decoration: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.nav--scrolled .nav__logo,
.nav--transparent .nav__logo { color: var(--text-inverse); }

/* Logo do menu principal: sempre azul (pedido do Lucas — a branca ficava
   invisível sobre os fundos claros do site). */
.nav__logo-img {
  height: 32px;
  width: auto;
  display: block;
  content: url('../../assets/marca/logo-azul.png');
}

/* Landing pages (topo): sempre azul, MESMO tamanho do menu principal.
   Exceção: páginas de obrigado, que têm fundo escuro — usam
   .lp-header__logo-img--white para manter a branca (ver abaixo). */
.lp-header__logo-img {
  height: 32px;
  width: auto;
  display: block;
  content: url('../../assets/marca/logo-azul.png');
}
.lp-header__logo-img--white {
  content: url('../../assets/marca/logo-branca.png');
}

/* Footer: fundo sempre escuro — sempre a branca, tamanho fixo pequeno */
.footer__logo img { height: 28px; width: auto; display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0; padding: 0;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: var(--space-1) 0;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width var(--duration-base) var(--ease-out);
}
.nav__link:hover,
.nav__link.active { color: var(--accent); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav--scrolled .nav__link,
.nav--transparent .nav__link { color: var(--neutral-300); }
.nav--scrolled .nav__link:hover,
.nav--transparent .nav__link:hover { color: var(--neutral-0); }

/* Link de Login / portal — destaque em pill */
.nav__link--login {
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.nav__link--login::after { display: none !important; }
.nav__link--login:hover { border-color: var(--accent); }

@media (max-width: 768px) {
  .nav { padding: 0 var(--space-5); }
  .nav__links { display: none; }
}

/* --------------------------------------------------------------------------
   BOTÕES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--weight-semi);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }

/* Tamanhos */
.btn--lg {
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
}
.btn--md {
  font-size: var(--text-sm);
  padding: 11px 24px;
  border-radius: var(--radius-pill);
}
.btn--sm {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

/* Variantes */
.btn--primary {
  background: var(--accent);
  color: var(--neutral-0);
  box-shadow: 0 2px 12px rgba(7, 134, 255, 0.30);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
}

.btn--navy {
  background: var(--brand-navy);
  color: var(--neutral-0);
}
.btn--navy:hover { background: var(--neutral-800); }

.btn--outline-dark {
  background: transparent;
  color: var(--brand-navy);
  border: 1.5px solid var(--brand-navy);
}
.btn--outline-dark:hover {
  background: var(--brand-navy);
  color: var(--neutral-0);
}

.btn--outline-light {
  background: transparent;
  color: var(--neutral-0);
  border: 1.5px solid rgba(255, 255, 255, 0.40);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.70);
}

.btn--ghost {
  background: var(--accent-light);
  color: var(--accent);
}
.btn--ghost:hover { background: rgba(7, 134, 255, 0.16); }

.btn--gold {
  background: var(--gold);
  color: var(--neutral-950);
  box-shadow: 0 2px 12px rgba(248, 186, 0, 0.30);
}
.btn--gold:hover { background: #E0A800; }

/* --------------------------------------------------------------------------
   EYEBROW
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}

.eyebrow--gold  { color: var(--gold); }
.eyebrow--muted { color: var(--text-muted); }
.eyebrow--white { color: var(--neutral-0); }

/* --------------------------------------------------------------------------
   BADGE / TAG
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.badge--blue    { background: var(--accent-light); color: var(--accent); }
.badge--navy    { background: var(--brand-navy); color: var(--neutral-0); }
.badge--gold    { background: var(--gold-light); color: #8C6900; }
.badge--neutral { background: var(--neutral-100); color: var(--text-secondary); }
.badge--success { background: rgba(0, 168, 107, 0.10); color: #007A4D; }

/* --------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.card {
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.card--light {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}
.card--light-alt {
  background: var(--surface-light-alt);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.card--dark {
  background: var(--surface-dark);
  color: var(--text-inverse);
}
.card--darker {
  background: var(--surface-darker);
  color: var(--text-inverse);
}
.card--accent {
  background: var(--accent-light);
  border: 1px solid rgba(7, 134, 255, 0.20);
  color: var(--text-primary);
}
.card--gold {
  background: var(--gold-light);
  border: 1px solid rgba(248, 186, 0, 0.25);
  color: var(--text-primary);
}

.card__eyebrow  { margin-bottom: var(--space-4); }
.card__title    { font-size: var(--text-xl); font-weight: var(--weight-semi); line-height: var(--leading-snug); margin: 0 0 var(--space-3); }
.card__body     { font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-secondary); margin: 0 0 var(--space-6); }
.card--dark  .card__body,
.card--darker .card__body { color: var(--text-inverse-muted); }

/* Card de solução (vitrine da home) */
.card-solution {
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--duration-base) var(--ease-out);
}
.card-solution:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

/* --------------------------------------------------------------------------
   FORMULÁRIOS
   -------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.field__input {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--surface-light);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  outline: none;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  width: 100%;
}
.field__input::placeholder { color: var(--text-muted); }
.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Input sobre fundo escuro */
.field--dark .field__label { color: var(--neutral-200); }
.field--dark .field__input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--neutral-0);
}
.field--dark .field__input::placeholder { color: var(--neutral-400); }
.field--dark .field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(7, 134, 255, 0.20);
}

/* --------------------------------------------------------------------------
   DEPOIMENTO / TESTIMONIAL
   -------------------------------------------------------------------------- */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.testimonial__quote {
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  position: relative;
}
.testimonial__quote::before {
  content: '"';
  font-size: 4rem;
  line-height: 0.6;
  color: var(--accent-light);
  font-weight: var(--weight-black);
  display: block;
  margin-bottom: var(--space-3);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--neutral-100);
}
.testimonial__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
}
.testimonial__role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   NÚMERO DE AUTORIDADE (STAT)
   -------------------------------------------------------------------------- */
.stat { display: flex; flex-direction: column; gap: var(--space-1); }

.stat__value {
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--brand-navy);
}
.stat__value--accent { color: var(--accent); }
.stat__value--gold   { color: var(--gold); }
.stat__value--white  { color: var(--neutral-0); }

.stat__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}
.stat__label--white { color: var(--text-inverse-muted); }

/* --------------------------------------------------------------------------
   LOGO STRIP (faixa de clientes / logos)
   -------------------------------------------------------------------------- */
.logo-strip {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}
.logo-strip__item {
  filter: grayscale(100%);
  opacity: 0.50;
  transition:
    filter var(--duration-base) var(--ease-out),
    opacity var(--duration-base) var(--ease-out);
}
.logo-strip__item:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   DIVISOR / SEPARADOR
   -------------------------------------------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0;
}
.divider--dark { border-top-color: var(--border-dark); }

/* --------------------------------------------------------------------------
   SEÇÃO HERO
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-20);
  position: relative;
  overflow: hidden;
}

.hero__eyebrow { margin-bottom: var(--space-5); }

.hero__headline {
  font-size: var(--text-6xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  max-width: 760px;
  margin: 0 0 var(--space-6);
}

.hero__sub {
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 var(--space-10);
}

.hero--dark .hero__sub { color: var(--text-inverse-muted); }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Glow decorativo do hero */
.hero__glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}
.hero__glow--blue {
  width: 600px; height: 600px;
  background: rgba(7, 134, 255, 0.12);
  top: -100px; right: -150px;
}
.hero__glow--navy {
  width: 400px; height: 400px;
  background: rgba(0, 0, 155, 0.10);
  bottom: 0; left: -100px;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--surface-darker);
  color: var(--text-inverse);
  padding: var(--space-20) 0 var(--space-10);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: var(--space-10);
}

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__logo {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--neutral-0);
  margin-bottom: var(--space-4);
  display: block;
}
.footer__tagline {
  font-size: var(--text-sm);
  color: var(--text-inverse-muted);
  line-height: var(--leading-relaxed);
  max-width: 260px;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--neutral-0);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__link {
  font-size: var(--text-sm);
  color: var(--text-inverse-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.footer__link:hover { color: var(--neutral-0); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Social icons */
.social-links {
  display: flex;
  gap: var(--space-3);
}
.social-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark);
  color: var(--text-inverse-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}
.social-links__item:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
