/* ============================================================= */
/*  VIVALEN INFORMÁTICA — Folha de estilos                        */
/*  Para mudar as CORES do site, edite as variáveis abaixo.       */
/* ============================================================= */

:root {
  /* Cores principais — Identidade Vivalen */
  --bg:        #06070A;   /* preto da marca                    */
  --bg-2:      #0B0E13;   /* fundo de seções alternadas        */
  --surface:   #11161D;   /* cartões / superfícies             */
  --primary:   #2E9BF0;   /* azul elétrico (destaque)          */
  --primary-2: #0A4699;   /* azul profundo (gradiente)         */
  --accent:    #25D366;   /* verde (WhatsApp)                  */
  --text:      #E6EBF0;   /* texto principal                   */
  --muted:     #7E8794;   /* texto secundário                  */
  --border:    rgba(255,255,255,.08);

  --radius:    14px;
  --maxw:      1180px;
  --shadow:    0 20px 60px -20px rgba(0,0,0,.6);
  --glow:      0 0 40px -8px var(--primary);
}

/* ---------- Reset básico ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Saira', sans-serif; line-height: 1.12; letter-spacing: -.01em; font-weight: 800; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* Texto com gradiente */
.grad {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================= */
/*  BOTÕES                                                        */
/* ============================================================= */
.btn {
  --b1: var(--primary); --b2: var(--primary-2);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  font-weight: 600; font-size: .98rem;
  color: #fff;
  background: linear-gradient(120deg, var(--b1), var(--b2));
  border: none; border-radius: 100px; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  box-shadow: 0 10px 30px -10px var(--primary);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px var(--primary); filter: brightness(1.08); }
.btn:active { transform: translateY(-1px); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--small { padding: 9px 20px; font-size: .9rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--ghost {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,.09); box-shadow: none; }

/* ============================================================= */
/*  CABEÇALHO / MENU                                              */
/* ============================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.header.is-scrolled {
  background: rgba(7,11,26,.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 11px; font-family: 'Saira'; font-weight: 800; }
.logo__mark {
  width: 40px; height: 40px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.logo__text { font-size: 1.3rem; letter-spacing: .06em; font-weight: 800; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { color: var(--muted); font-weight: 500; font-size: .96rem; position: relative; transition: color .2s; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width .25s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__cta { color: #fff; }

/* Botão hambúrguer (celular) */
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================= */
/*  HERO (TOPO)                                                   */
/* ============================================================= */
.hero { position: relative; padding: 180px 0 120px; overflow: hidden; }

/* Fundo com gradientes animados (mesh) */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before, .hero__bg::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .55;
}
.hero__bg::before {
  width: 520px; height: 520px; top: -120px; right: -80px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  animation: float1 14s ease-in-out infinite;
}
.hero__bg::after {
  width: 480px; height: 480px; bottom: -160px; left: -100px;
  background: radial-gradient(circle, var(--primary-2), transparent 70%);
  animation: float2 18s ease-in-out infinite;
}
@keyframes float1 { 50% { transform: translate(-40px, 60px) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(50px, -40px) scale(1.15); } }

/* Grade sutil sobre o fundo */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: .4;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}

.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 780px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; margin-bottom: 26px;
  font-size: .85rem; font-weight: 500; color: var(--primary);
  background: rgba(46,155,240,.08);
  border: 1px solid rgba(46,155,240,.25);
  border-radius: 100px;
}
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.hero__title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; margin-bottom: 22px; }
.hero__text { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 600px; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 60px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 48px; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: 'Saira'; font-size: 2.2rem; font-weight: 800; }
.hero__stats strong { background: linear-gradient(120deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stats span { color: var(--muted); font-size: .92rem; }

/* ============================================================= */
/*  SEÇÕES GERAIS                                                 */
/* ============================================================= */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-2); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
}
.section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 16px; }
.section__sub { color: var(--muted); font-size: 1.1rem; }

/* ============================================================= */
/*  CARDS DE SERVIÇOS                                             */
/* ============================================================= */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  position: relative;
  padding: 38px 32px;
  background: linear-gradient(180deg, var(--surface), rgba(17,25,54,.5));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  overflow: hidden;
}
/* Brilho que segue ao passar o mouse */
.card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(46,155,240,.12), transparent 60%);
}
.card:hover { transform: translateY(-8px); border-color: rgba(46,155,240,.4); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card--featured {
  border-color: rgba(46,155,240,.35);
  background: linear-gradient(180deg, rgba(46,155,240,.06), var(--surface));
}
.card__tag {
  position: absolute; top: 18px; right: 18px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  color: #fff; background: linear-gradient(120deg, var(--primary), var(--primary-2));
}

.card__icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: 24px;
  border-radius: 16px;
  color: var(--primary);
  background: rgba(46,155,240,.1);
  border: 1px solid rgba(46,155,240,.2);
}
.card__icon svg { width: 30px; height: 30px; }
.card__title { font-size: 1.4rem; margin-bottom: 12px; }
.card__text { color: var(--muted); margin-bottom: 22px; }
.card__list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.card__list li { position: relative; padding-left: 28px; color: var(--text); font-size: .95rem; }
.card__list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem; font-weight: 800;
  color: #fff; background: var(--primary);
}

/* ============================================================= */
/*  PRODUTOS DE PARCEIROS                                         */
/* ============================================================= */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), rgba(17,25,54,.5));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.product:hover { transform: translateY(-8px); border-color: rgba(46,155,240,.4); box-shadow: var(--shadow); }
.product__media {
  display: grid; place-items: center;
  height: 168px;
  color: var(--primary);
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(46,155,240,.16), transparent 62%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.product__media svg { width: 58px; height: 58px; opacity: .92; }
.product__photo { height: 200px; width: 100%; object-fit: contain; padding: 18px; background: #fff; border-bottom: 1px solid var(--border); }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.product__cat {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.product__name { font-size: 1.25rem; margin-bottom: 10px; }
.product__desc { color: var(--muted); font-size: .95rem; margin-bottom: 22px; flex: 1; }
.product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.product__quote {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 100px;
  font-weight: 600; font-size: .92rem; color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 28px -12px rgba(37,211,102,.85);
  transition: transform .25s, filter .25s;
}
.product__quote:hover { transform: translateY(-2px); filter: brightness(1.07); }
.product__quote svg { width: 17px; height: 17px; }
.product__mail {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .92rem; font-weight: 600; color: var(--primary);
  transition: color .2s;
}
.product__mail:hover { color: var(--text); }
.product__mail svg { width: 17px; height: 17px; }
.products__empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px 0; }

/* ============================================================= */
/*  CARROSSEL DE MARCAS                                           */
/* ============================================================= */
.marquee {
  position: relative; overflow: hidden;
  margin-top: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 18px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brand {
  flex: none;
  display: grid; place-items: center;
  height: 92px; min-width: 178px; padding: 0 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -16px rgba(0,0,0,.6);
  transition: transform .3s, box-shadow .3s;
}
.brand:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -16px rgba(46,155,240,.6); }
.brand__logo { max-height: 50px; max-width: 132px; width: auto; object-fit: contain; }
.brand__name {
  font-family: 'Saira', sans-serif; font-weight: 800; font-size: 1.35rem;
  letter-spacing: .01em; color: #0A2540; white-space: nowrap;
}

/* ============================================================= */
/*  DIFERENCIAIS                                                  */
/* ============================================================= */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  padding: 32px 26px; text-align: center;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s, background .3s;
}
.feature:hover { transform: translateY(-6px); background: rgba(255,255,255,.05); }
.feature__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin: 0 auto 18px;
  border-radius: 16px;
  color: var(--primary);
  background: rgba(46,155,240,.1);
  border: 1px solid rgba(46,155,240,.2);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .94rem; }

/* ============================================================= */
/*  SOBRE                                                         */
/* ============================================================= */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about__media { display: flex; justify-content: center; }
.about__card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 50px 44px; max-width: 360px;
  border-radius: 26px;
  background: linear-gradient(150deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 30px 70px -25px var(--primary);
}
.about__big { font-family: 'Saira'; font-size: 4.5rem; font-weight: 800; line-height: 1; }
.about__emblem { width: 96px; height: 96px; margin-bottom: 6px; filter: drop-shadow(0 8px 22px rgba(0,0,0,.35)); }
.about__card span:last-child { font-weight: 600; font-size: 1.1rem; }
.about__content p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.about__content .section__title { text-align: left; margin-bottom: 22px; }
.about__content .btn { margin-top: 8px; }

/* ============================================================= */
/*  CONTATO                                                       */
/* ============================================================= */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 34px; align-items: start; }

.contact__info { display: flex; flex-direction: column; gap: 16px; }
.contact__item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform .25s, border-color .25s;
}
a.contact__item:hover { transform: translateX(6px); border-color: rgba(46,155,240,.4); }
.contact__ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  color: var(--primary);
  background: rgba(46,155,240,.1);
  border: 1px solid rgba(46,155,240,.22);
}
.contact__item span:last-child { line-height: 1.4; }
.contact__item strong { color: var(--text); }

.contact__form {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-weight: 500; font-size: .92rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text); font-family: inherit; font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46,155,240,.12);
}
.field input::placeholder, .field textarea::placeholder { color: #56608a; }

/* ============================================================= */
/*  RODAPÉ                                                        */
/* ============================================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 60px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 40px; }
.footer__brand { max-width: 320px; }
.footer__brand .logo { margin-bottom: 14px; }
.footer__brand p { color: var(--muted); margin-top: 12px; font-size: .95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer__links a { color: var(--muted); transition: color .2s; }
.footer__links a:hover { color: var(--primary); }
.footer__bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer__bottom p { color: var(--muted); font-size: .88rem; text-align: center; }

/* ============================================================= */
/*  BOTÃO FLUTUANTE DO WHATSAPP                                   */
/* ============================================================= */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  color: #fff; background: var(--accent);
  box-shadow: 0 12px 30px -6px rgba(34,197,94,.6);
  transition: transform .25s;
  animation: bob 2.6s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes bob { 50% { transform: translateY(-7px); } }

/* ============================================================= */
/*  ANIMAÇÃO DE ENTRADA AO ROLAR                                  */
/* ============================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================= */
/*  RESPONSIVO (CELULAR / TABLET)                                 */
/* ============================================================= */
@media (max-width: 940px) {
  .cards { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; }

  /* Menu vira painel deslizante */
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78%, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 40px;
    background: rgba(12,18,40,.97); backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform .35s ease;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { font-size: 1.2rem; }
  .nav__toggle { display: flex; z-index: 101; }
}

@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 90px; }
  .hero__stats { gap: 30px; }
  .section { padding: 80px 0; }
  .contact__form { padding: 26px; }
}
