/* ============ CORES E FONTES (mude aqui) ============ */
:root {
  --fundo:    #01071A;   /* azul-noite (cor do site original) */
  --fundo-2:  #060f2b;   /* variação um pouco mais clara */
  --papel:    #F1EEE8;   /* seção clara (papel) */
  --tinta:    #01071A;   /* texto sobre fundo claro */
  --botao:    #9339A2;   /* roxo da marca */
  --rosa:     #E5007D;   /* extremo rosa das linhas do banner */
  --azul:     #2E86DE;   /* extremo azul das linhas do banner */
  --linha:    rgba(255,255,255,.16);
  --rodape:   #410341;
  --f-titulo: 'Bricolage Grotesque', sans-serif;
  --f-texto:  'Work Sans', sans-serif;
  --f-mono:   'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { background: var(--fundo); color: #fff; font-family: var(--f-texto); line-height: 1.65; }
h1, h2, h3, .btn, .navbar-brand { font-family: var(--f-titulo); }
a { color: inherit; }

/* Etiqueta pequena em fonte "técnica" */
.label { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--azul); display: block; margin-bottom: 1rem; }
.section-papel .label { color: var(--botao); }
.muted { opacity: .75; }

/* Menu */
.navbar { background: rgba(1,7,26,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha); }
.navbar-brand { font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.nav-link { font-size: .95rem; }
.nav-link.active { color: #fff !important; box-shadow: inset 0 -2px 0 var(--rosa); }
@media (max-width: 991px) { .nav-link.active { box-shadow: none; color: var(--rosa) !important; } }

/* Botão */
.btn-brand { background: var(--botao); color: #fff; border: 0; font-weight: 500; border-radius: 4px; padding: .55rem 1.4rem; transition: background .2s, transform .2s; }
.btn-brand:hover { background: var(--rosa); color: #fff; transform: translateY(-1px); }

/* Seções */
.section { padding: 110px 0; }
h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; }
.cabecalho { max-width: 640px; margin-bottom: 3.5rem; }
.cabecalho p, .frase { font-size: 1.25rem; opacity: .85; margin-top: 1rem; }

/* Início */
.hero { min-height: 100vh; padding-top: 120px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(1,7,26,.1), var(--fundo) 96%), url('../img/01.png') center / cover no-repeat; }
.hero .container { padding-bottom: 70px; }
.hero h1 { font-size: clamp(3.6rem, 13vw, 9.5rem); font-weight: 700; letter-spacing: -.045em; line-height: .92; margin-bottom: 2rem; }
/* Palavra em destaque: sublinhado rabiscado à mão (em vez de gradiente) */
.destaque { position: relative; display: inline-block; }
.destaque::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 30 2, 55 13, 90 7 S 150 3, 198 8' fill='none' stroke='%23E5007D' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform-origin: left; animation: traco .8s .9s ease-out both; }
@keyframes traco { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Título do hero: cada linha sobe de dentro de uma "máscara" */
.hero h1 .linha { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.12em; }
.hero h1 .linha > span { display: inline-block; animation: subir .9s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 .linha:nth-child(2) > span { animation-delay: .15s; }
@keyframes subir { from { transform: translateY(105%); } to { transform: none; } }

.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--linha); border-radius: 4px; font-weight: 500; padding: .55rem 1.4rem; transition: border-color .2s, color .2s; }
.btn-ghost:hover { border-color: var(--rosa); color: #fff; }
.lead-big { font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.4; }
.hero-faixa { border-top: 1px solid var(--linha); padding: 16px 0; font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; overflow: hidden; white-space: nowrap; }
.hero-faixa .trilho { display: flex; width: max-content; animation: rolar 38s linear infinite; }
.hero-faixa .grupo { display: flex; flex-shrink: 0; }
.hero-faixa span::after { content: "/"; margin: 0 28px; color: var(--rosa); }
@keyframes rolar { to { transform: translateX(-50%); } }

/* Soluções – seção clara em grade com linhas finas */
.section-papel { background: var(--papel); color: var(--tinta); }
.grade { border-top: 1px solid rgba(1,7,26,.2); border-left: 1px solid rgba(1,7,26,.2); }
.item-grade { height: 100%; padding: 36px 28px 40px; border-right: 1px solid rgba(1,7,26,.2); border-bottom: 1px solid rgba(1,7,26,.2); transition: background .25s; }
.item-grade:hover { background: #fff; }
.item-grade img { height: 72px; margin-bottom: 28px; }
.item-grade h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.item-grade p { margin: 0 0 1.2rem; opacity: .8; }
.item-grade .preco { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--botao); border-top: 1px dashed rgba(1,7,26,.3); padding-top: .8rem; display: block; }

/* Serviços – lista numerada */
.lista-servicos { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--linha); }
.lista-servicos li { display: grid; grid-template-columns: 70px 1fr 1.3fr 64px; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--linha); transition: padding .25s, background .25s; }
.lista-servicos li:hover { background: linear-gradient(90deg, rgba(147,57,162,.18), transparent); padding-left: 16px; }
.lista-servicos .num { font-family: var(--f-mono); color: var(--azul); }
.lista-servicos h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.lista-servicos p { margin: 0; opacity: .8; }
.lista-servicos img { height: 48px; justify-self: end; filter: invert(1); opacity: .85; } /* ícones são pretos: invertidos para aparecer no fundo escuro */
.lista-servicos i { font-size: 2.6rem; line-height: 1; justify-self: end; opacity: .85; } /* ícone da Bootstrap Icons (já branco), sem precisar inverter */
@media (max-width: 767px) {
  .lista-servicos li { grid-template-columns: 44px 1fr 44px; }
  .lista-servicos p { grid-column: 2 / 3; grid-row: 2; }
  .lista-servicos img { grid-column: 3; grid-row: 1; height: 36px; }
  .lista-servicos i { grid-column: 3; grid-row: 1; font-size: 2rem; }
}

/* Quem somos */
.section-sobre { background: linear-gradient(180deg, var(--fundo), var(--fundo-2)); position: relative; overflow: hidden; }
.section-sobre::before { content: ""; position: absolute; inset: 0; background: url('../img/about-eaupgrade-1.png') right center / cover no-repeat; opacity: .35; pointer-events: none; }
.section-sobre .container { position: relative; }
.texto-sobre { font-size: 1.15rem; }
.texto-sobre strong { color: #fff; box-shadow: inset 0 -.4em 0 rgba(147,57,162,.55); font-weight: 500; }

.foto-sobre { margin: 2rem 0 0; max-width: 320px; }
.foto-sobre img, .foto-vazia { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; transform: rotate(-2deg); }
.foto-vazia { display: grid; place-items: center; border: 1px dashed rgba(255,255,255,.35); font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.pontos { list-style: none; padding: 0; margin: 2.2rem 0 0; border-top: 1px solid var(--linha); }
.pontos li { padding: 1.2rem 0; border-bottom: 1px solid var(--linha); }
.pontos h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .2rem; }
.pontos p { font-size: 1rem; margin: 0; opacity: .8; }

/* Portfólio */
.section-portfolio { border-top: 1px solid var(--linha); }
.projeto { margin: 0; }
.projeto img { width: 100%; height: 380px; object-fit: cover; object-position: top; border: 1px solid var(--linha); border-radius: 4px; transition: transform .3s, border-color .3s; }
.projeto:hover img { transform: translateY(-6px); border-color: var(--rosa); }
.projeto figcaption { padding-top: 14px; }
.projeto figcaption strong { display: block; font-family: var(--f-titulo); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.projeto figcaption span { display: block; font-size: .92rem; opacity: .75; line-height: 1.45; margin-top: 2px; }

/* FAQ */
.accordion { --bs-accordion-bg: transparent; --bs-accordion-color: #fff; --bs-accordion-btn-color: #fff; --bs-accordion-border-color: var(--linha); --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-bg: transparent; --bs-accordion-active-color: #fff; --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; }
.accordion-item { border-width: 0 0 1px; }
.accordion-button { font-family: var(--f-titulo); font-size: 1.2rem; font-weight: 500; padding: 1.3rem 0; box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--azul); }
.accordion-button::after { filter: invert(1); }
.accordion-body { padding: 0 0 1.4rem; opacity: .85; }

/* Contato */
.section-contato { background: linear-gradient(180deg, rgba(1,7,26,.88), rgba(1,7,26,.97)), url('../img/01.png') center / cover; border-top: 1px solid var(--linha); }
.contact-list li { margin-bottom: .6rem; font-size: 1.15rem; }
.contact-list i { margin-right: 10px; color: var(--azul); }
.caixa-form { border: 1px solid var(--linha); border-radius: 6px; padding: 32px; background: rgba(255,255,255,.04); }
.form-label { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.form-control, .form-select { background-color: rgba(255,255,255,.07); border: 1px solid var(--linha); color: #fff; border-radius: 4px; }
.form-control:focus, .form-select:focus { background-color: rgba(255,255,255,.12); color: #fff; border-color: var(--azul); box-shadow: none; }
.form-control::placeholder { color: rgba(255,255,255,.4); }
.form-select option { color: #000; }
.social a { font-size: 1.5rem; margin-right: 16px; text-decoration: none; }
.social a:hover { color: var(--rosa); }

/* Rodapé */
.footer { background: var(--rodape); padding-top: 60px; }
.footer h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer a { text-decoration: none; opacity: .85; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { background: rgba(2,1,1,.25); padding: 16px 0; margin-top: 50px; }

/* WhatsApp flutuante */
.whats-fixo { position: fixed; right: 20px; bottom: 20px; z-index: 1030; display: flex; align-items: center; gap: 10px; background: var(--botao); color: #fff; text-decoration: none;
  font-family: var(--f-titulo); font-weight: 500; padding: 14px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: background .2s, transform .2s; }
.whats-fixo i { font-size: 1.4rem; line-height: 1; }
.whats-fixo:hover { background: var(--rosa); color: #fff; transform: translateY(-2px); }
@media (max-width: 575px) { .whats-fixo span { display: none; } .whats-fixo { padding: 14px; right: 16px; bottom: 16px; } }

/* Aparecer ao rolar */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; }
  .hero h1 .linha > span, .destaque::after { animation: none; }
  .hero-faixa .trilho { animation: none; }
}
