/* =========================================================
   Temas: escuro por defeito, claro com [data-theme="light"]
   ========================================================= */
:root {
  --acento: #ff3b1f;
  --acento-2: #ff6a2b;
  --acento-escuro: #d42a12;
  --raio: 18px;
  --wrap: 1180px;

  /* escuro (defeito) */
  --bg: #0d0f12;
  --bg-alt: #14171c;
  --surface: #1a1e25;
  --surface-2: #14171c;
  --borda: rgba(255,255,255,.08);
  --texto: #e4e7eb;
  --titulo: #ffffff;
  --suave: #a9afb9;
  --num: rgba(255,255,255,.08);
  --glow: rgba(255,59,31,.12);
  --topo-solido: rgba(13,15,18,.9);
  --topo-link: #dfe2e7;
  --topo-link-hover: #ffffff;
  --rodape-bg: #08090b;
  --rodape-txt: #8b919b;
  --sombra: 0 26px 50px -30px rgba(0,0,0,.85);
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --borda: #e3e5e9;
  --texto: #1b1e24;
  --titulo: #111317;
  --suave: #5d636e;
  --num: rgba(17,19,23,.07);
  --glow: rgba(255,59,31,.07);
  --topo-solido: rgba(255,255,255,.92);
  --topo-link: #2a2f38;
  --topo-link-hover: #000000;
  --rodape-bg: #f3f4f6;
  --rodape-txt: #5d636e;
  --sombra: 0 26px 50px -30px rgba(16,18,22,.35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; color: var(--texto); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; }
h2, h3 { color: var(--titulo); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ico { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; margin-left: 6px; }
.ico--esq { margin-left: 0; margin-right: 9px; width: 20px; height: 20px; vertical-align: -4px; }

/* ---------- Botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  padding: 15px 26px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--acento), var(--acento-2));
  color: #fff; font-weight: 750; text-decoration: none; letter-spacing: .01em;
  box-shadow: 0 10px 30px -10px rgba(255, 59, 31, .65);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(255, 59, 31, .8); filter: brightness(1.05); }
.btn--vidro { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--vidro:hover { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1.5px #fff; }
.btn--sm { padding: 9px 18px; font-size: .95rem; box-shadow: none; }
.btn--ig { background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%); box-shadow: 0 10px 30px -10px rgba(221,42,123,.7); }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 3px solid #ffb199; outline-offset: 3px; }

/* ---------- Etiquetas / cabecas ---------- */
.etiqueta {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  color: var(--acento); font-weight: 800; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
}
.etiqueta::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: currentColor; }
.cabeca { margin-bottom: 44px; }
.cabeca h2 { margin: 0; font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.cabeca__txt { margin: 16px 0 0; color: var(--suave); font-size: 1.08rem; max-width: 52ch; }
.cabeca--centro { text-align: center; }
.cabeca--centro .cabeca__txt { margin-left: auto; margin-right: auto; }

/* ---------- Topo ---------- */
.topo { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .25s, box-shadow .25s; }
.topo--solido { background: var(--topo-solido); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--borda); }
.topo__in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.topo__dir { display: flex; align-items: center; gap: 20px; }
.marca { display: flex; align-items: center; text-decoration: none; flex: none; }
.marca img { height: 30px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { color: #dfe2e7; text-decoration: none; font-weight: 600; font-size: .97rem; transition: color .2s; }
.menu a:not(.btn):hover { color: #fff; }
.topo--solido .menu a:not(.btn) { color: var(--topo-link); }
.topo--solido .menu a:not(.btn):hover { color: var(--topo-link-hover); }

/* botao de tema */
.tema {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  transition: background .2s, color .2s, transform .2s;
}
.tema:hover { transform: rotate(-12deg); background: rgba(255,255,255,.16); }
.topo--solido .tema { color: var(--titulo); background: var(--surface); box-shadow: inset 0 0 0 1px var(--borda); }
.tema svg { width: 20px; height: 20px; }
.tema .i-lua { display: none; }
:root[data-theme="light"] .tema .i-sol { display: none; }
:root[data-theme="light"] .tema .i-lua { display: block; }

/* ---------- Hero (sempre escuro, fundo tecnico com conta-rotacoes) ---------- */
.hero {
  position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden;
  background:
    radial-gradient(700px 520px at 78% 48%, rgba(255,59,31,.16), transparent 65%),
    radial-gradient(900px 600px at 0% 100%, rgba(255,106,43,.06), transparent 60%),
    linear-gradient(180deg, #0b0d10 0%, #111419 100%);
}
.hero__fundo {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 50%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 70% at 70% 50%, #000 20%, transparent 75%);
}
.hero__gauge {
  position: absolute; top: 50%; right: max(-40px, calc((100vw - var(--wrap)) / 2 - 20px));
  width: min(46vw, 600px); height: auto; transform: translateY(-46%); pointer-events: none;
}
.g-arco { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 2; }
.g-arco--fino { stroke: rgba(255,255,255,.09); stroke-width: 1.5; }
.g-zona { fill: none; stroke: var(--acento); stroke-width: 6; stroke-linecap: round; opacity: .9; }
.g-traco { fill: none; stroke: rgba(255,255,255,.26); stroke-width: 1.5; }
.g-traco--maior { stroke: rgba(255,255,255,.62); stroke-width: 3; stroke-linecap: round; }
.g-num { fill: rgba(255,255,255,.5); font: 700 26px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-anchor: middle; dominant-baseline: central; }
.g-num--zona { fill: var(--acento); }
.g-ponteiro {
  fill: none; stroke: var(--acento); stroke-width: 4; stroke-linecap: round;
  transform-box: view-box; transform-origin: 300px 300px; animation: ponteiro 1.8s cubic-bezier(.2,.8,.2,1) .2s both;
}
.g-centro { fill: #0f1216; stroke: rgba(255,255,255,.55); stroke-width: 2; }
.g-legenda { fill: rgba(255,255,255,.38); font: 600 15px system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: .22em; text-anchor: middle; }
@keyframes ponteiro { from { transform: rotate(-94.5deg); } to { transform: rotate(0); } }
.hero__in { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 80px; width: 100%; }
.hero h1 { margin: 0; max-width: 15ch; font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 850; color: #fff; }
.hero__sub { margin: 22px 0 34px; font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: #d3d7de; max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
.hero__local { display: flex; align-items: center; margin: 0; color: #c9ced6; font-weight: 700; letter-spacing: .04em; }
.hero__local .ico { color: var(--acento); }

/* ---------- Faixa animada ---------- */
.faixa { background: linear-gradient(135deg, var(--acento), var(--acento-2)); color: #fff; overflow: hidden; white-space: nowrap; }
.faixa__in { display: inline-flex; align-items: center; gap: 28px; padding: 14px 0; animation: correr 28s linear infinite; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; }
.faixa i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.7); display: inline-block; }
@keyframes correr { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Seccoes (alternam bg / bg-alt nos dois temas) ---------- */
.sec { padding: 104px 0; background: var(--bg); transition: background-color .3s; }
.sec--alt { background: var(--bg-alt); }
.sec--escuro { background: var(--bg); }

/* ---------- Servicos ---------- */
.servicos-sec { background: radial-gradient(900px 420px at 88% 0%, var(--glow), transparent 60%), var(--bg); }
.servicos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.servico {
  position: relative; overflow: hidden; padding: 30px 26px 32px; border-radius: 16px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--borda);
  transition: transform .25s, border-color .25s, box-shadow .25s, background .3s;
}
.servico::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--acento), var(--acento-2)); transform: scaleX(.2); transform-origin: left; transition: transform .35s; }
.servico:hover { transform: translateY(-4px); border-color: rgba(255,106,43,.4); box-shadow: var(--sombra); }
.servico:hover::before { transform: scaleX(1); }
.servico__topo { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.servico__ico { width: 54px; height: 54px; fill: none; stroke: var(--acento-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.servico__num { font-weight: 800; font-size: 2.7rem; line-height: 1; letter-spacing: -.04em; color: var(--num); }
.servico h3 { margin: 0 0 12px; font-size: 1.2rem; }
.servico p { margin: 0; color: var(--suave); font-size: .98rem; }

/* ---------- Sinais ---------- */
.sinais-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.sinais-grid .cabeca { margin-bottom: 0; }
.sinais-grid .btn { margin-top: 28px; }
.sinais { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sinais li {
  position: relative; padding: 18px 20px 18px 60px; border-radius: 14px; font-weight: 550;
  background: var(--surface); border: 1px solid var(--borda); color: var(--texto);
}
.sinais li::before {
  content: "!"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,59,31,.16); color: var(--acento); font-weight: 900;
}

/* ---------- Quem somos ---------- */
.sobre { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sobre .cabeca { margin-bottom: 0; }
.sobre .passos {
  padding: 32px; border-radius: var(--raio); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--borda), var(--sombra); transition: background-color .3s;
}
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: passo; }
.passos li { counter-increment: passo; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start; }
.passos li::before { content: counter(passo, decimal-leading-zero); grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: var(--acento); box-shadow: inset 0 0 0 2px rgba(255,59,31,.55); }
.passos strong { font-size: 1.1rem; margin-top: 3px; color: var(--titulo); }
.passos span { color: var(--suave); }

/* ---------- Redes ---------- */
.redes-sec { background: var(--bg-alt); }
.redes-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.rede {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--raio);
  color: #fff; text-decoration: none; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.rede:hover { transform: translateY(-4px); }
.rede--fb { background: linear-gradient(135deg, #1877f2, #0b5bd3); box-shadow: 0 18px 40px -22px rgba(24,119,242,.9); }
.rede--ig { background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%); box-shadow: 0 18px 40px -22px rgba(221,42,123,.9); }
.rede__ico { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.rede__ico svg { width: 30px; height: 30px; }
.rede__txt { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.rede__txt strong { font-size: 1.25rem; }
.rede__txt span { opacity: .88; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.rede__btn { flex: none; padding: 9px 16px; border-radius: 999px; background: #fff; color: #111; font-weight: 800; font-size: .92rem; display: inline-flex; align-items: center; }
.rede--fb .rede__btn { color: #1877f2; }
.rede--ig .rede__btn { color: #c1306b; }


/* ---------- Contactos ---------- */
.contactos { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contactos .cabeca { margin-bottom: 0; }
.info-contacto { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.info-contacto li { display: flex; align-items: center; color: var(--texto); font-size: 1.08rem; font-weight: 600; }
.info-contacto .ico { color: var(--acento); }
.info-contacto a { color: var(--titulo); text-decoration: none; border-bottom: 1px solid var(--borda); }
.info-contacto a:hover { color: var(--acento); border-color: var(--acento); }
.marcar { display: grid; gap: 16px; align-self: center; }
.marcar .rede { padding: 26px 26px; }

/* ---------- Rodape ---------- */
.rodape { background: var(--rodape-bg); color: var(--rodape-txt); font-size: .93rem; border-top: 1px solid var(--borda); transition: background-color .3s; }
.rodape__in { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 30px; padding-bottom: 22px; flex-wrap: wrap; }
.rodape p { margin: 0; }
.marca--pequena img { height: 22px; }
.rodape__redes { display: flex; gap: 10px; }
.rodape__redes a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--borda); color: var(--titulo);
  transition: background .18s, color .18s, transform .18s;
}
.rodape__redes a:hover { background: var(--acento); color: #fff; transform: translateY(-2px); }
.rodape__redes svg { width: 20px; height: 20px; }
.rodape__copy { text-align: center; padding: 0 20px 26px; font-size: .85rem; color: var(--rodape-txt); opacity: .75; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .servicos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .sinais-grid, .contactos, .sobre { grid-template-columns: 1fr; gap: 36px; }
  .hero__gauge { width: min(70vw, 520px); right: -12vw; opacity: .55; }
}
@media (max-width: 720px) {
  .menu a:not(.btn) { display: none; }
  .marca img { height: 22px; }
  .sec { padding: 72px 0; }
  .servicos { grid-template-columns: 1fr; }
  .redes-cards { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .hero__gauge { width: 118vw; max-width: none; top: 4%; right: -46vw; transform: none; opacity: .38; }
  .hero__in { padding-top: 110px; padding-bottom: 56px; align-self: flex-end; }
  .hero__cta .btn { flex: 1 1 auto; }
  .sobre .passos { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .menu { display: none; }
  .marca img { height: 20px; }
}
@media (max-width: 420px) {
  .rede { padding: 18px; gap: 14px; }
  .rede__btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faixa__in { animation: none; }
  .g-ponteiro { animation: none; }
  body, .sec, .servico, .btn, .rede, .tema { transition: none; }
}
