/* ==========================================================================
   Ramos Express - PWA
   Base escura, um único acento (amarelo de tensão), vermelho só para avaria.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0F131A;
  --bg-deep: #0A0D13;
  --surface: #171C25;
  --surface-2: #1F2632;
  --line: #2A3240;
  --line-soft: #212936;

  --text: #F2F5F9;
  --text-2: #A8B3C2;
  --text-3: #7C8798;

  --volt: #FFC400;
  --volt-dim: #C89A12;
  --volt-ink: #191200;

  --alert: #FF6B57;
  --alert-text: #FF9484;
  --alert-bg: #241412;
  --alert-line: #4A231D;

  --wa: #25D366;

  --r-xs: 8px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 16px;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --fast: 160ms;
  --base: 230ms;

  --tabh: 62px;
  --shell: 480px;

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: -0.022em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; flex: none; }

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- shell ------------------------------------------------------ */

.shell {
  position: relative;
  max-width: var(--shell);
  min-height: 100dvh;
  margin-inline: auto;
  background: var(--bg);
  padding-bottom: calc(var(--tabh) + var(--sab) + 34px);
}

.deck { display: none; }

@media (min-width: 900px) {
  body {
    background:
      radial-gradient(58vw 52vh at 50% -6%, #182a3d 0%, transparent 62%),
      radial-gradient(40vw 40vh at 50% 108%, #1a1508 0%, transparent 60%),
      var(--bg-deep);
  }
  .shell {
    border-inline: 1px solid var(--line-soft);
    min-height: 100dvh;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- topbar ----------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: calc(56px + var(--sat));
  padding: var(--sat) 14px 0 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.brand { display: flex; align-items: center; }
.brand__logo { display: block; height: 25px; width: auto; }

.iconbtn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border-radius: 999px;
  color: var(--text-2);
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.iconbtn:active { background: var(--surface); color: var(--text); transform: scale(0.94); }

.offline {
  padding: 9px 16px;
  background: var(--alert-bg);
  border-bottom: 1px solid var(--alert-line);
  color: var(--alert-text);
  font-size: 13px;
}

/* ---------- views ------------------------------------------------------ */

main { padding: 0 16px; }

.view { padding-top: 22px; }
.view[hidden] { display: none; }
.view:focus { outline: none; }

.view-in { animation: viewIn var(--base) var(--ease) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

.view__h1 { font-size: 27px; font-weight: 800; }
.view__lead {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
  max-width: 34ch;
  text-wrap: pretty;
}

.sect {
  margin: 32px 0 13px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ---------- hero ------------------------------------------------------- */

.hero { padding: 6px 0 4px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
}
.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
}
.status.is-open .dot { background: #34D07F; box-shadow: 0 0 0 3px rgba(52, 208, 127, 0.16); }
.status.is-open { color: var(--text); }

.hero h1 {
  margin-top: 16px;
  font-size: clamp(30px, 8.4vw, 37px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero__sub {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15.5px;
  max-width: 33ch;
  text-wrap: pretty;
}

.hero__cta { display: flex; gap: 9px; margin-top: 20px; }
.hero__cta .btn { flex: 1; }

/* ---------- botões ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease),
              border-color var(--fast) var(--ease);
}
.btn:active { transform: scale(0.975); }

.btn--primary { background: var(--volt); color: var(--volt-ink); }
.btn--primary:hover { background: #FFCF2E; }

.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--ghost svg { color: var(--wa); }

.btn--alert { background: var(--alert); color: #2A0A05; width: 100%; }
.btn--alert:hover { background: #FF7E6C; }

.btn--small { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- avaria ----------------------------------------------------- */

.urgent {
  margin-top: 26px;
  padding: 18px 16px 16px;
  border: 1px solid var(--alert-line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--alert-bg), #1B1116);
}
.urgent__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--alert-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.urgent h2 { margin-top: 9px; font-size: 21px; font-weight: 800; }
.urgent p:not(.urgent__tag) {
  margin-top: 7px;
  color: #D6BDB7;
  font-size: 14.5px;
  text-wrap: pretty;
}
.urgent .btn { margin-top: 15px; }

/* ---------- linhas (listas tipo app) ----------------------------------- */

.rows {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.rows li + li { border-top: 1px solid var(--line-soft); }
.rows a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 12px 14px;
  transition: background var(--fast) var(--ease);
}
.rows a:active { background: var(--surface-2); }

.rows__ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--volt);
}
.rows__ic--wa { color: var(--wa); }

.rows__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.rows__txt strong { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }
.rows__txt small { color: var(--text-3); font-size: 13px; line-height: 1.35; }

.rows__ch { color: var(--text-3); }

.rows .is-new .rows__ic,
.is-new .rows__ic { background: rgba(255, 196, 0, 0.11); }

/* ---------- passos ----------------------------------------------------- */

.steps { counter-reset: s; }
.steps li {
  position: relative;
  counter-increment: s;
  padding: 0 0 20px 40px;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--volt);
  font-size: 12.5px;
  font-weight: 700;
}
.steps li::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 30px;
  bottom: 4px;
  width: 1px;
  background: var(--line-soft);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em; }
.steps span { display: block; margin-top: 3px; color: var(--text-2); font-size: 14px; }

/* ---------- caixa de informação ---------------------------------------- */

.infobox {
  margin-top: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.infobox p { display: flex; gap: 12px; padding: 15px 15px; }
.infobox p + p { border-top: 1px solid var(--line-soft); }
.infobox svg { color: var(--text-3); margin-top: 2px; }
.infobox span { display: block; color: var(--text-3); font-size: 13.5px; line-height: 1.45; }
.infobox b { display: block; color: var(--text); font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }

/* ---------- instalar --------------------------------------------------- */

.install {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.install--static { margin-top: 22px; }
.install__ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 196, 0, 0.11);
  color: var(--volt);
}
.install div { flex: 1; min-width: 0; }
.install b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -0.015em; }
.install small { display: block; color: var(--text-3); font-size: 12.5px; line-height: 1.35; }
.install .btn { background: var(--volt); color: var(--volt-ink); }

/* ---------- serviços (acordeão) ---------------------------------------- */

.svc {
  margin-top: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.svc:first-of-type { margin-top: 20px; }
.svc--hi { border-color: rgba(255, 196, 0, 0.28); }

.svc summary {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary:active { background: var(--surface-2); }

.svc__ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--volt);
}
.svc--hi .svc__ic { background: rgba(255, 196, 0, 0.13); }
.svc__t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.svc__t strong { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }
.svc__t small { color: var(--text-3); font-size: 13px; line-height: 1.35; }
.svc__ch { color: var(--text-3); transition: transform var(--base) var(--ease); }
.svc[open] .svc__ch { transform: rotate(90deg); }

.svc__body {
  padding: 2px 15px 16px;
  animation: svcIn var(--base) var(--ease) both;
}
@keyframes svcIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}
.svc__body > p { color: var(--text-2); font-size: 14.5px; text-wrap: pretty; }

.ticks { margin: 13px 0 16px; }
.ticks li {
  position: relative;
  padding: 5px 0 5px 22px;
  color: var(--text-2);
  font-size: 14px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--volt-dim);
}

/* espaço à direita para o botão flutuante não tapar o texto */
.note { margin-top: 22px; padding-right: 62px; color: var(--text-3); font-size: 13.5px; }
.lnk { color: var(--volt); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lnk--muted { display: inline-block; margin-top: 12px; background: none; border: 0; padding: 0; color: var(--text-3); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- formulário ------------------------------------------------- */

#form { margin-top: 22px; }

.field { margin-bottom: 17px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}
.opt { color: var(--text-3); font-weight: 400; }

input[type="text"], input[type="tel"], textarea, select {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #6C7788; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--volt); background: var(--surface-2); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--volt); outline-offset: 1px; }

.sel { position: relative; }
.sel select { appearance: none; padding-right: 42px; }
.sel svg {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  color: var(--text-3);
  pointer-events: none;
}

.hint { margin-top: 6px; color: var(--text-3); font-size: 12.5px; line-height: 1.4; }
.err { margin-top: 6px; color: var(--alert-text); font-size: 12.5px; font-weight: 600; }
.field.is-bad input, .field.is-bad textarea, .field.is-bad select { border-color: var(--alert); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  color: transparent;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.check input:checked + .check__box { background: var(--alert); border-color: var(--alert); color: #2A0A05; }
.check input:focus-visible + .check__box { outline: 2px solid var(--volt); outline-offset: 2px; }
.check__t b { display: block; font-size: 14.5px; font-weight: 700; }
.check__t small { display: block; color: var(--text-3); font-size: 12.5px; line-height: 1.35; }
.check:has(input:checked) { border-color: var(--alert-line); background: var(--alert-bg); }

.drop {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  margin-bottom: 0 !important;
}
.drop svg { color: var(--text-3); }
.drop:active { background: var(--surface-2); }

.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.alt { margin-top: 14px; text-align: center; color: var(--text-3); font-size: 13.5px; }

.mine { margin-top: 34px; }
.mine__list {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.mine__list li { padding: 13px 14px; }
.mine__list li + li { border-top: 1px solid var(--line-soft); }
.mine__list b { display: block; font-size: 14.5px; font-weight: 700; }
.mine__list span { display: block; margin-top: 2px; color: var(--text-3); font-size: 12.5px; }
.mine__list em { font-style: normal; color: var(--alert-text); font-weight: 700; }

.legal {
  margin-top: 28px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- fab -------------------------------------------------------- */

.fab {
  position: fixed;
  right: max(16px, calc(50vw - (var(--shell) / 2) + 16px));
  bottom: calc(var(--tabh) + var(--sab) + 16px);
  z-index: 25;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wa);
  color: #06341A;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform var(--fast) var(--ease);
}
.fab:active { transform: scale(0.93); }

/* nos ecrãs que já têm o WhatsApp à vista, o botão flutuante sai da frente */
body[data-view="orcamento"] .fab,
body[data-view="contacto"] .fab { display: none; }

/* ---------- tabs ------------------------------------------------------- */

.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabh) + var(--sab));
  padding-bottom: var(--sab);
  background: rgba(15, 19, 26, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
}
.tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: color var(--fast) var(--ease);
}
.tabs a[aria-current="page"] { color: var(--volt); }
.tabs a:active svg { transform: scale(0.9); }
.tabs svg { transition: transform var(--fast) var(--ease); }

/* ---------- sheet ------------------------------------------------------ */

.sheet {
  width: 100%;
  max-width: var(--shell);
  margin: auto auto 0;
  padding: 22px 18px calc(20px + var(--sab));
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  color: var(--text);
}
.sheet::backdrop { background: rgba(6, 9, 14, 0.66); }
.sheet[open] { animation: sheetIn 260ms var(--ease) both; }
@keyframes sheetIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.sheet h2 { font-size: 20px; font-weight: 800; padding-right: 40px; }
.sheet__x {
  position: absolute;
  top: 16px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
}
.howto { margin: 18px 0 20px; }
.howto li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.45;
}
.howto b { color: var(--text); font-weight: 700; }
.howto__ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--volt);
}

/* ---------- toast ------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabh) + var(--sab) + 82px);
  z-index: 60;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  animation: toastIn 220ms var(--ease) both;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ======================================================================
   VERSÃO DE COMPUTADOR
   A partir de 1100px mostra-se a página completa; a aplicação passa a
   viver dentro do telemóvel da secção "Aplicação" (iframe, embed=1).
   ====================================================================== */

.site { display: none; }

html.embed .site { display: none !important; }
html.embed .stage { display: block !important; }
html.embed .shell { border: 0; box-shadow: none; }
html.embed { scrollbar-width: none; }
html.embed::-webkit-scrollbar { width: 0; height: 0; }

@media (min-width: 1100px) {
  html:not(.embed) { scroll-behavior: smooth; }
  html:not(.embed) .site { display: block; }
  html:not(.embed) .stage { display: none; }
  html:not(.embed) body { background: var(--bg-deep); }
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 40px;
}

/* ---------- barra de navegação ----------------------------------------- */

.snav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 78px;
  padding-inline: max(40px, calc(50vw - 620px + 40px));
  border-bottom: 1px solid transparent;
  transition: background 260ms var(--ease), border-color 260ms var(--ease);
}
.snav.is-stuck {
  background: rgba(10, 13, 19, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
}
.snav__brand img { display: block; height: 24px; width: auto; }

.snav__links { display: flex; gap: 30px; margin-left: auto; }
.snav__links a {
  position: relative;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 180ms var(--ease);
}
.snav__links a:hover { color: var(--text); }
.snav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
.snav__links a:hover::after { transform: scaleX(1); }

.snav__cta { display: flex; align-items: center; gap: 20px; }
.snav__tel {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.snav__tel:hover { color: var(--volt); }

/* ---------- hero -------------------------------------------------------- */

.shero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}
.shero__bg {
  position: absolute;
  inset: -8% 0 -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 68% 46%;
  z-index: -2;
  will-change: transform;
}
.shero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg, #0A0D13 4%, rgba(10, 13, 19, 0.9) 32%, rgba(10, 13, 19, 0.34) 64%, rgba(10, 13, 19, 0.66) 100%),
    linear-gradient(0deg, #0A0D13 0%, rgba(10, 13, 19, 0.15) 22%, transparent 40%);
}

.shero__in {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 130px 40px 90px;
}

.status--site { margin-bottom: 26px; background: rgba(15, 19, 26, 0.7); }

.shero h1 {
  font-size: clamp(46px, 5.6vw, 84px);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.043em;
  max-width: 17ch;
}
.shero__sub {
  margin-top: 24px;
  max-width: 48ch;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}
.shero__cta { display: flex; gap: 12px; margin-top: 36px; }
.shero__cta .btn { min-height: 56px; padding: 0 28px; font-size: 16px; }

.shero__urg {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: var(--text-3);
  font-size: 14.5px;
}
.shero__urg svg { color: var(--alert-text); }
.shero__urg a {
  color: var(--alert-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.shero__urg a:hover { color: #FFB3A6; }

/* ---------- serviços ---------------------------------------------------- */

.ssvc {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 6vw, 96px);
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(90px, 10vw, 150px) 40px;
}
.ssvc__left { position: sticky; top: 122px; align-self: start; }
.ssvc h2 {
  font-size: clamp(32px, 3.1vw, 46px);
  font-weight: 800;
  letter-spacing: -0.038em;
  max-width: 12ch;
}
.ssvc__left > p {
  margin-top: 18px;
  max-width: 38ch;
  color: var(--text-2);
  font-size: 16.5px;
  text-wrap: pretty;
}
.ssvc__photo { margin: 34px 0 0; }
.ssvc__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.slist { border-top: 1px solid var(--line-soft); }
.slist li {
  padding: 30px 20px 30px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 320ms var(--ease);
}
.slist li:hover { padding-left: 14px; }
.slist h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.028em;
  transition: color 200ms var(--ease);
}
.slist li:hover h3 { color: var(--volt); }
.slist p {
  margin-top: 11px;
  max-width: 58ch;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.55;
  text-wrap: pretty;
}
.slist h3 span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.13);
  color: var(--volt);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.slist--hi { border-bottom-color: rgba(255, 196, 0, 0.24) !important; }

/* ---------- aplicação --------------------------------------------------- */

.sapp {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(80px, 8vw, 120px) 40px;
  border-top: 1px solid var(--line-soft);
}
.sapp h2 {
  font-size: clamp(32px, 3.1vw, 46px);
  font-weight: 800;
  letter-spacing: -0.038em;
  max-width: 13ch;
}
.sapp__text > p {
  margin-top: 18px;
  max-width: 44ch;
  color: var(--text-2);
  font-size: 16.5px;
  text-wrap: pretty;
}
.sapp__pts { margin-top: 34px; border-top: 1px solid var(--line-soft); }
.sapp__pts li { padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
.sapp__pts b {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sapp__pts span {
  display: block;
  margin-top: 4px;
  max-width: 46ch;
  color: var(--text-3);
  font-size: 14.5px;
}
.sapp__url { margin-top: 26px; color: var(--text-3); font-size: 14.5px; }
.sapp__url b { color: var(--volt); font-weight: 600; }

.phone { display: grid; place-items: center; }
.phone__frame {
  position: relative;
  width: 396px;
  height: min(792px, calc(100dvh - 176px));
  padding: 10px;
  border: 1px solid #333C4B;
  border-radius: 50px;
  background: linear-gradient(160deg, #242C39, #0C1017 46%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.05) inset,
    0 50px 90px rgba(0, 0, 0, 0.6);
}
.phone__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 42px;
  background: var(--bg);
}

/* ---------- contacto ---------------------------------------------------- */

.scta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(90px, 9vw, 140px) 0;
}
.scta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 50%;
  z-index: -2;
}
.scta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, #0A0D13 26%, rgba(10, 13, 19, 0.93) 52%, rgba(10, 13, 19, 0.8) 76%, rgba(10, 13, 19, 0.72) 100%),
    linear-gradient(0deg, rgba(10, 13, 19, 0.9) 0%, transparent 30%);
}
.scta__in {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 40px;
}
.scta h2 {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -0.038em;
  max-width: 19ch;
}
.scta__btns { display: flex; gap: 12px; margin-top: 34px; }
.scta__btns .btn { min-height: 56px; padding: 0 26px; font-size: 16px; width: auto; }

.scta__rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 940px;
}
.scta__rows a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(23, 28, 37, 0.72);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease), background 200ms var(--ease);
}
.scta__rows a:hover {
  border-color: var(--volt);
  background: rgba(31, 38, 50, 0.9);
  transform: translateY(-2px);
}
.scta__rows svg { color: var(--volt); }
.scta__rows a:first-child svg { color: var(--wa); }
.scta__rows b {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.scta__rows span { display: block; color: var(--text-3); font-size: 13px; }
.scta__rows b + br { display: none; }

.scta__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 40px;
  max-width: 940px;
  margin: 40px 0 0;
}
.scta__meta div { padding-top: 16px; border-top: 1px solid var(--line); }
.scta__meta dt { color: var(--text-3); font-size: 13px; }
.scta__meta dd { margin: 5px 0 0; color: var(--text-2); font-size: 15px; text-wrap: pretty; }

/* ---------- rodapé ------------------------------------------------------ */

.sfoot {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 40px 40px 56px;
  border-top: 1px solid var(--line-soft);
}
.sfoot img { height: 22px; width: auto; opacity: 0.75; }
.sfoot p { color: var(--text-3); font-size: 12.5px; max-width: 62ch; }

/* ---------- entradas ao rolar ------------------------------------------- */

.rv { opacity: 0; transform: translateY(16px); }
.rv.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

/* ---------- resposta ao toque nas superfícies grandes ------------------- */

.scta__rows a:active { transform: scale(0.99); }
.slist li:active h3 { color: var(--volt); }
.snav__links a:active { color: var(--volt); }

/* ---------- transparência e contraste do sistema ------------------------ */

@media (prefers-reduced-transparency: reduce) {
  .tabs { background: var(--bg); backdrop-filter: none; }
  .snav.is-stuck { background: var(--bg-deep); backdrop-filter: none; }
  .scta__rows a { background: var(--surface); }
}

@media (prefers-contrast: more) {
  :root { --line: #4A566B; --line-soft: #3A4557; --text-3: #97A3B3; }
  .scta__rows a { background: var(--surface); }
}

/* ---------- movimento reduzido ----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:active, .fab:active, .iconbtn:active, .tabs a:active svg { transform: none; }
  .rv, .rv.is-in { opacity: 1; transform: none; }
  html:not(.embed) { scroll-behavior: auto; }
}
