/* Goulart Soluções — protótipo
   Cores e medidas em variáveis: trocar aqui muda o site todo. */
:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --surface: #161616;
  --surface-2: #1f1f1f;
  --line: #2a2a2a;
  --text: #f4f4f4;
  --muted: #b0b0b0;
  --brand: #ff6600;
  --brand-hover: #ff7d24;
  --brand-soft: rgba(255, 102, 0, .12);
  --on-brand: #000000;
  --radius: 16px;
  --wrap: 1140px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 761px) { .wrap { padding: 0 32px; } }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.accent { color: var(--brand); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Faixa de protótipo: remover o elemento .proto-bar de cada página antes de ir ao ar */
.proto-bar {
  background: #ffd9bf; color: #000; text-align: center;
  font-size: .78rem; font-weight: 600; padding: 5px 16px;
}

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: cover; }
.brand-name { display: block; font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.brand-sub { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: .95rem; padding: 10px 14px; border-radius: 10px;
  transition: color .15s;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.nav .btn { margin-left: 10px; min-height: 44px; padding: 0 18px; font-size: .95rem; }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--on-brand); }

.menu-btn {
  display: none; width: 48px; height: 48px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  place-items: center;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px; font-size: 1.05rem; }
  .nav a[aria-current="page"] { background: var(--surface); }
  .nav a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .nav .btn { margin: 10px 0 0; min-height: 52px; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline { border-color: var(--brand); color: var(--text); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: #555; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #222; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .btn-row .btn { flex: 1 1 100%; } }
.link-arrow { color: var(--brand); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Seções ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 761px) { .section { padding: 96px 0; } }
.section-head { margin-bottom: 40px; }
.section-head.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head.split .lead { margin-bottom: 0; }

/* ---------- Destaque (início) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 48px 0 64px;
  background:
    radial-gradient(600px 400px at 85% 40%, rgba(255, 102, 0, .18), transparent 70%),
    var(--bg);
}
.hero .wrap { display: grid; gap: 28px; align-items: center; }
/* A logo tem fundo preto. Em vez de efeitos de mistura (que tremiam ao rolar a página),
   ela fica sempre sobre preto puro: num círculo preto com brilho laranja em volta. */
.hero-logo {
  width: min(220px, 56vw); margin: 0 auto;
  aspect-ratio: 1; object-fit: cover; /* o arquivo não é exatamente quadrado: recorta, nunca estica */
  border-radius: 50%; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 102, 0, .35), 0 0 90px rgba(255, 102, 0, .22);
}
.hero .lead { margin-bottom: 28px; }
@media (min-width: 761px) {
  .hero { padding: 96px 0 112px; }
  .hero .wrap { grid-template-columns: 1.35fr 1fr; gap: 48px; }
  .hero-logo { width: 380px; order: 2; }
}

/* Faixa de diferenciais */
.highlights { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.highlights ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.highlights li { display: flex; align-items: center; gap: 12px; padding: 20px 8px; font-weight: 600; font-size: .95rem; }
.highlights li svg { width: 26px; height: 26px; color: var(--brand); flex: none; }
@media (min-width: 900px) { .highlights ul { grid-template-columns: repeat(4, 1fr); } .highlights li { padding: 26px 16px; } }

/* ---------- Cabeçalho das páginas internas ---------- */
.page-head {
  padding: 56px 0 48px;
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(255, 102, 0, .16), transparent 70%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .3em; }
.page-head .lead { margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; }

/* ---------- Cartões ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, transform .2s;
}
.card p { color: var(--muted); font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; display: block; }
a.card:hover, .card.hoverable:hover { border-color: rgba(255, 102, 0, .6); transform: translateY(-2px); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.icon svg { width: 28px; height: 28px; }

/* Serviço detalhado */
.service { display: grid; gap: 20px; }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; align-content: center; }
.service h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
.service li { display: flex; gap: 10px; color: var(--text); font-size: .97rem; }
.service li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6600' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (min-width: 761px) { .service { grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px; } }

/* Passos */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 22px; left: 26px;
  font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1;
}

/* ---------- Vitrine ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: 12px; font-size: .93rem;
  border: 1px solid rgba(255, 102, 0, .45); background: rgba(255, 102, 0, .07);
  margin: 0 0 28px;
}
.notice svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }
[hidden] { display: none !important; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  font: inherit; font-size: .93rem; font-weight: 600;
}
.chip:hover { border-color: #555; }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-img {
  aspect-ratio: 4 / 3; display: grid; place-items: center; color: #6a6a6a;
  background: linear-gradient(135deg, #232323, #1a1a1a);
  border-bottom: 1px solid var(--line);
}
.product-img svg { width: 64px; height: 64px; }
.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin-bottom: .3em; }
.product-body p { margin-bottom: 18px; }
.tag { color: var(--brand); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.product .btn { margin-top: auto; width: 100%; min-height: 48px; font-size: .95rem; }

/* ---------- Sobre ---------- */
.about { display: grid; gap: 32px; align-items: center; }
.about-figure {
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background: #000; box-shadow: inset 0 0 120px rgba(255, 102, 0, .16);
  aspect-ratio: 16 / 9; display: grid; place-items: center;
}
.about-figure img { width: 40%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 900px) { .about-figure { aspect-ratio: 1; } .about-figure img { width: 70%; } }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.values li { margin-bottom: 10px; }
.soon { text-align: center; padding: 48px 24px; border-style: dashed; }
.soon .icon { margin: 0 auto 16px; }
.soon strong { display: block; font-size: 1.3rem; margin-bottom: 6px; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 32px; } }
a.card.contact-item, .contact-item { display: flex; align-items: center; gap: 16px; }
.contact-item .icon { margin: 0; flex: none; }
.contact-item small { display: block; color: var(--muted); font-size: .85rem; }
.contact-item strong { font-size: 1.1rem; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list span:first-child { color: var(--muted); }
.info-list span:last-child { font-weight: 600; text-align: right; }

/* Perguntas frequentes */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 22px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- Chamada final ---------- */
.cta-band {
  background: var(--brand); color: var(--on-brand);
  border-radius: 22px; padding: 40px 28px;
  display: grid; gap: 24px; align-items: center;
}
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; font-weight: 500; }
@media (min-width: 761px) { .cta-band { grid-template-columns: 1fr auto; padding: 48px 56px; } }

/* ---------- Rodapé ---------- */
.footer { background: #000; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; padding: 56px 0 0; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 761px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer h4 { color: var(--text); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--brand); }
.footer .brand { margin-bottom: 14px; color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 0 28px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem;
}

/* Botão flutuante do WhatsApp (celular) */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.wa-float svg { width: 30px; height: 30px; }
@media (min-width: 901px) { .wa-float { display: none; } }

/* ---------- Abertura com a logo (só na primeira página da visita) ----------
   0,2 s  o floco de neve congela (azul-gelo, brilho e cristais)
   0 s →  a metade da engrenagem gira
   1,5 s  a lâmpada acende (tudo amarelo) e o site entra */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: #000; display: grid; place-items: center; align-content: center; gap: 6px;
  transition: opacity .5s ease, visibility .5s ease;
  /* Se o JavaScript falhar, some sozinha depois de 4 s */
  animation: loader-fallback 0s linear 4s forwards;
}
.loader.done { opacity: 0; visibility: hidden; }
.no-intro .loader { display: none; }
.loader-name { font-weight: 800; letter-spacing: .04em; color: var(--text); font-size: 1.05rem;
  opacity: 0; animation: lg-in .5s ease .3s forwards; }
.loader-name span { color: var(--brand); }

.lg { position: relative; width: min(240px, 60vw); aspect-ratio: 1; isolation: isolate;
  animation: lg-in .35s ease both; }
.lg > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.lg img { pointer-events: none; }

/* Engrenagem: gira por inteiro, mas só a metade direita aparece */
.lg-gear-clip { clip-path: inset(0 0 37.9% 48.05%); }
/* Para em 270° (6 dentes) bem quando a luz acende, alinhada com a logo */
.lg-gear { transform-origin: 50.59% 38.09%; animation: lg-spin 1.5s cubic-bezier(.35,.1,.45,1) forwards; }

/* Floco: congela */
.lg-snow { animation: lg-freeze-glow 1s ease .2s forwards, lg-shiver .3s linear .75s 2; }
.lg-frost {
  -webkit-mask: url(/assets/loader/snow.png) center / 100% 100% no-repeat;
          mask: url(/assets/loader/snow.png) center / 100% 100% no-repeat;
  background:
    linear-gradient(115deg, transparent 35%, rgba(255,255,255,.95) 48%, transparent 60%) -150% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, #e8f8ff, #8fd8ff 55%, #5cc4f5);
  opacity: 0;
  animation: lg-frost-in .7s ease .2s forwards, lg-shine .9s ease .55s forwards,
    lg-shiver .3s linear .75s 2, lg-out .25s ease 1.5s forwards;
}
.lg-ice { inset: 18% 52% 38% 22%; width: auto; height: auto; animation: lg-out .25s ease 1.5s forwards; }
.lg-ice i { position: absolute; width: 10px; height: 10px; opacity: 0;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%),
    linear-gradient(90deg, transparent 45%, #dff6ff 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, #dff6ff 45% 55%, transparent 55%);
  filter: drop-shadow(0 0 3px #8fd8ff);
  animation: lg-twinkle .6s ease forwards; }
.lg-ice i:nth-child(1) { left: 0; top: 18%; animation-delay: .45s; }
.lg-ice i:nth-child(2) { left: 40%; top: -6%; animation-delay: .6s; width: 8px; height: 8px; }
.lg-ice i:nth-child(3) { left: 8%; top: 78%; animation-delay: .7s; }
.lg-ice i:nth-child(4) { left: 55%; top: 50%; animation-delay: .85s; width: 7px; height: 7px; }

/* Lâmpada: acende */
.lg-glow { inset: -20%; width: auto; height: auto; z-index: -1; opacity: 0; transform: scale(.6);
  background: radial-gradient(circle at 50% 41%, rgba(255,214,64,.55), rgba(255,170,0,.18) 32%, transparent 58%);
  animation: lg-glow .6s ease-out 1.5s forwards; }
.lg-light { opacity: 0; filter: drop-shadow(0 0 7px rgba(255,200,40,.9));
  animation: lg-flicker .45s steps(1, end) 1.5s forwards; }
.lg-light::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #fff6c2, #ffd23f 45%, #ffb300);
  -webkit-mask: url(/assets/loader/glass.png) center / 100% 100% no-repeat;
          mask: url(/assets/loader/glass.png) center / 100% 100% no-repeat; }

@keyframes lg-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes lg-out { to { opacity: 0; } }
@keyframes lg-spin { to { transform: rotate(270deg); } }
@keyframes lg-freeze-glow { to { filter: drop-shadow(0 0 6px rgba(143,216,255,.9)); } }
@keyframes lg-frost-in { to { opacity: 1; } }
@keyframes lg-shine { to { background-position: 150% 0, 0 0; } }
@keyframes lg-shiver { 0%,100% { transform: none; } 25% { transform: translateX(-1px); } 75% { transform: translateX(1px); } }
@keyframes lg-twinkle { 0% { opacity: 0; transform: scale(.2) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(45deg); } 100% { opacity: .85; transform: scale(1) rotate(45deg); } }
@keyframes lg-flicker { 0% { opacity: .5; } 25% { opacity: .1; } 45% { opacity: .8; } 60% { opacity: .35; } 75%,100% { opacity: 1; } }
@keyframes lg-glow { to { opacity: 1; transform: none; } }
@keyframes loader-fallback { to { opacity: 0; visibility: hidden; } }

/* ---------- Aviso "ainda não está pronto" ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px);
  background: #fff; color: #000; border-left: 5px solid var(--brand);
  padding: 14px 18px; border-radius: 12px; font-size: .95rem; font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast small { display: block; font-weight: 500; color: #444; margin-top: 2px; }
@media (min-width: 901px) { .toast { bottom: 32px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .loader, .loader *, .lg > * { animation: none !important; }
  .loader-name, .lg { opacity: 1; }
  .lg-light { opacity: 1; }
  .lg-glow { opacity: 1; transform: none; }
}
