/* =========================================================================
   Arcoeletrico · Moreira & Lopes, Lda.
   Estilos do site e do assistente. Sem dependências externas.
   Cores da marca: azul-marinho do logótipo (#323B4C) + âmbar funcional para ações.
   ========================================================================= */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #323b4c;
  --navy-950: #161b26;
  --navy-900: #1c2230;
  --navy-800: #252c3b;
  --navy-700: #2e3647;
  --navy-300: #9aa3b5;
  --navy-100: #e9ecf2;
  --navy-50: #f4f6f9;
  --ink: #1b2130;
  --muted: #555e70;
  --line: #e1e5ec;
  --bg: #ffffff;
  --amber: #f2b400;
  --amber-600: #d99f00;
  --amber-100: #fff4cc;
  --ok: #17784a;
  --ok-bg: #e9f7ef;
  --err: #b42318;
  --err-bg: #fef3f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(22, 27, 38, 0.1);
  --shadow-lg: 0 24px 60px rgba(22, 27, 38, 0.28);
  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
  --gutter: 16px;
  --header-h: 68px;
}

@media (min-width: 720px) {
  :root { --gutter: 28px; --header-h: 76px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--amber); color: var(--navy-950); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

/* Marcadores de conteúdo por preencher (bem visíveis de propósito) */
.preencher { background: var(--amber-100); color: #6b4e00; outline: 1px dashed var(--amber-600); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.on-dark .preencher, .site-footer .preencher { background: rgba(242, 180, 0, 0.18); color: #ffd666; outline-color: rgba(242, 180, 0, 0.6); }

/* ---------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--primary { background: var(--amber); color: var(--navy-950); }
.btn--primary:hover { background: #ffc524; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-800); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy-50); }
.btn--sm { min-height: 40px; padding: 0.5em 1em; font-size: 0.95rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------------------------------------------------------------- cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
@media (min-width: 720px) { .brand img { height: 50px; } }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__links { display: none; list-style: none; gap: 4px; }
.nav__links a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--navy); }
.nav__links a:hover { background: var(--navy-50); }
.nav__phone { display: none; align-items: center; gap: 6px; padding: 8px 10px; text-decoration: none; font-weight: 600; color: var(--navy); white-space: nowrap; }
.nav__phone svg { width: 18px; height: 18px; }
.nav__cta { display: none; }
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; color: var(--navy);
}
.nav__toggle svg { width: 24px; height: 24px; }

@media (min-width: 980px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}
@media (min-width: 1180px) { .nav__phone { display: inline-flex; } }

.mobile-menu { display: none; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; padding: 8px var(--gutter) 16px; }
.mobile-menu a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.mobile-menu .btn { width: 100%; margin-top: 14px; }
@media (min-width: 980px) { .mobile-menu { display: none !important; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; isolation: isolate; }
.hero__art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__art svg { position: absolute; right: -220px; top: 50%; width: 900px; height: 900px; transform: translateY(-50%); opacity: 0.55; }
@media (max-width: 719px) { .hero__art svg { right: -420px; opacity: 0.35; } }
.hero .container { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
@media (min-width: 980px) { .hero .container { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding-top: 88px; padding-bottom: 96px; } }
.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; color: #cfd5e0; font-size: 0.86rem; font-weight: 500; }
.hero__eyebrow li { padding: 4px 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.hero h1 { color: #fff; font-size: clamp(2.05rem, 5.4vw, 3.5rem); font-weight: 650; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: #d7dce6; max-width: 56ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 20px; color: var(--navy-300); font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
.hero__note svg { width: 18px; height: 18px; color: var(--amber); flex: none; }

/* Pré-visualização do assistente no hero */
.chat-teaser { background: #fff; color: var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; max-width: 420px; width: 100%; justify-self: center; }
.chat-teaser__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #fff; }
.chat-teaser__avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.chat-teaser__avatar img { width: 30px; height: 30px; }
.chat-teaser__title { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }
.chat-teaser__sub { font-size: 0.82rem; color: #c9cfdb; }
.chat-teaser__body { padding: 18px 16px 8px; display: grid; gap: 10px; background: var(--navy-50); }
.chat-teaser__bubble { background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 0.95rem; max-width: 92%; }
.chat-teaser__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 18px; background: var(--navy-50); }
.chat-teaser__foot { padding: 12px 16px 16px; }
.chat-teaser__foot .btn { width: 100%; }

/* ---------------------------------------------------------------- secções */
.section { padding: 72px 0; }
@media (min-width: 980px) { .section { padding: 100px 0; } }
.section--alt { background: var(--navy-50); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: #7a5700; margin-bottom: 10px; }
.section__kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--amber); }
.section h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 650; }
.section__head p { color: var(--muted); font-size: 1.08rem; }

/* Serviços */
.services { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.service {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d3d9e3; }
.service__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--navy); color: var(--amber); display: grid; place-items: center; margin-bottom: 18px; }
.service__icon svg { width: 30px; height: 30px; }
.service h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 0.98rem; }
.service ul { list-style: none; display: grid; gap: 8px; margin: 4px 0 22px; }
.service li { display: flex; gap: 10px; font-size: 0.96rem; }
.service li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--amber-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b58400' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.service .btn { margin-top: auto; align-self: flex-start; }

/* Como funciona */
.steps { list-style: none; display: grid; gap: 18px; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 24px 22px; border: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--amber); font-family: var(--font-head); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* Sobre */
.about { display: grid; gap: 32px; }
@media (min-width: 980px) { .about { grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; } }
.about__text p { font-size: 1.06rem; color: #343c4d; }
.creds { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px 24px; }
.creds h3 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.creds ul { list-style: none; display: grid; gap: 12px; }
.creds li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.creds li:last-child { border-bottom: 0; padding-bottom: 0; }
.creds dt, .creds .label { font-size: 0.85rem; color: #c3c9d5; }
.creds .value { font-weight: 600; }

/* Contactos */
.contact { display: grid; gap: 28px; }
@media (min-width: 980px) { .contact { grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; } }
.contact__list { list-style: none; display: grid; gap: 14px; margin-bottom: 24px; }
.contact__item { display: flex; gap: 14px; align-items: flex-start; }
.contact__item svg { width: 22px; height: 22px; color: var(--navy); flex: none; margin-top: 3px; }
.contact__item .label { display: block; font-size: 0.85rem; color: var(--muted); }
.contact__item a, .contact__item .value { font-weight: 600; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.contact__item a:hover { text-decoration: underline; }
.contact__chat { background: var(--navy-50); border-radius: var(--radius); padding: 20px; }
.contact__chat p { margin-bottom: 12px; color: var(--muted); }

/* Formulário */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .form { padding: 32px 30px; } }
.form h3 { font-size: 1.3rem; }
.form__grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1.5px solid #cbd2dd; border-radius: 10px; background: #fff;
  font-size: 1rem; transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(50, 59, 76, 0.18); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err); }
.field__error { color: var(--err); font-size: 0.88rem; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: #343c4d; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.form__status { font-weight: 600; }
.form__status--ok { color: var(--ok); }
.form__status--err { color: var(--err); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- rodapé */
.site-footer { background: var(--navy-950); color: #c3c9d5; padding: 56px 0 28px; font-size: 0.95rem; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.3fr 0.7fr 1fr; gap: 48px; } }
.site-footer img.footer__logo { height: 64px; width: auto; margin-bottom: 14px; }
.site-footer h2 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #e6e9ef; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; gap: 14px; font-size: 0.86rem; color: #9aa3b5; }
.footer__legal p { margin: 0; }
.footer__legal p a, .legal p a, .legal li a { text-decoration: underline; text-underline-offset: 2px; }
.lre {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--navy-950) !important;
  font-weight: 700; text-decoration: none !important; border: 2px solid #fff; width: fit-content;
}
.lre svg { width: 22px; height: 22px; color: #c1121f; }
.lre:hover { background: var(--amber-100); }

/* ---------------------------------------------------------------- páginas simples */
.page-msg { min-height: 100vh; display: grid; place-items: center; background: var(--navy-50); padding: 24px var(--gutter); }
.page-msg__box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 26px; max-width: 560px; width: 100%; }
.page-msg__box img { height: 48px; width: auto; margin-bottom: 24px; }
.page-msg__box h1 { font-size: 1.6rem; }
.page-msg__list { color: var(--err); margin: 0 0 20px 1.2em; }
.ref-box { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; background: var(--navy-50); border: 1px dashed #b9c1ce; padding: 8px 14px; border-radius: 8px; margin: 4px 0 18px; }

.legal { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: #343c4d; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: 0.95rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--navy-50); }
.legal .table-wrap { overflow-x: auto; }

/* =========================================================================
   Assistente (widget de chat)
   ========================================================================= */
.arco-launcher {
  position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 900;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px 0 14px;
  border: 0; border-radius: 999px; background: var(--amber); color: var(--navy-950);
  font-family: var(--font-head); font-weight: 650; font-size: 0.97rem; cursor: pointer;
  box-shadow: 0 10px 28px rgba(22, 27, 38, 0.32); transition: transform 0.15s, box-shadow 0.15s;
}
.arco-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(22, 27, 38, 0.38); }
.arco-launcher svg { width: 24px; height: 24px; }
.arco-launcher[aria-expanded="true"] { display: none; }
@media (min-width: 720px) { .arco-launcher { right: 24px; bottom: 24px; min-height: 58px; padding: 0 20px 0 16px; font-size: 1.02rem; gap: 10px; } .arco-launcher svg { width: 26px; height: 26px; } }

.arco-chat {
  position: fixed; z-index: 1000; inset: 0; display: none; flex-direction: column;
  background: #fff; color: var(--ink);
}
.arco-chat.is-open { display: flex; }
@media (min-width: 720px) {
  .arco-chat { inset: auto 24px 24px auto; width: 400px; height: min(680px, calc(100vh - 48px)); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(22, 27, 38, 0.08); }
}

.arco-chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; background: var(--navy); color: #fff; padding-top: max(12px, env(safe-area-inset-top)); }
.arco-chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.arco-chat__avatar img { width: 30px; height: 30px; }
.arco-chat__titles { flex: 1; min-width: 0; }
.arco-chat__title { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.2; margin: 0; color: #fff; }
.arco-chat__sub { font-size: 0.8rem; color: #c9cfdb; display: flex; align-items: center; gap: 6px; }
.arco-chat__badge { display: inline-block; background: rgba(242, 180, 0, 0.2); color: #ffd666; border: 1px solid rgba(242, 180, 0, 0.45); border-radius: 6px; padding: 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.arco-chat__icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.arco-chat__icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.arco-chat__icon-btn svg { width: 22px; height: 22px; }

.arco-chat__menu { position: absolute; right: 10px; top: 62px; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 240px; display: none; }
.arco-chat__menu.is-open { display: block; }
.arco-chat__menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font-size: 0.95rem; color: var(--ink); }
.arco-chat__menu button:hover { background: var(--navy-50); }

.arco-chat__log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--navy-50); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.arco-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 0.97rem; line-height: 1.5; overflow-wrap: anywhere; }
.arco-msg p { margin: 0 0 0.5em; }
.arco-msg p:last-child { margin: 0; }
.arco-msg ul { margin: 0.2em 0 0.5em 1.1em; padding: 0; }
.arco-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.arco-msg--user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.arco-msg--note { align-self: center; max-width: 100%; background: transparent; color: var(--muted); font-size: 0.85rem; text-align: center; padding: 2px 8px; }
.arco-msg--error { align-self: stretch; max-width: 100%; background: var(--err-bg); color: var(--err); border: 1px solid #f7c6c1; font-size: 0.93rem; }
.arco-msg a { color: inherit; font-weight: 600; }

.arco-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 4px; }
.arco-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--navy-300); animation: arco-blink 1.2s infinite ease-in-out; }
.arco-typing span:nth-child(2) { animation-delay: 0.2s; }
.arco-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes arco-blink { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.arco-chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: stretch; }
.arco-chip {
  display: inline-flex; align-items: center; text-decoration: none;
  border: 1.5px solid var(--navy); color: var(--navy); background: #fff; border-radius: 999px; padding: 8px 14px; min-height: 40px;
  font-size: 0.93rem; font-weight: 600; cursor: pointer; text-align: left; line-height: 1.25; transition: background-color 0.12s, color 0.12s;
}
.arco-chip:hover { background: var(--navy-100); }
.arco-chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.arco-chip--primary { background: var(--amber); border-color: var(--amber); color: var(--navy-950); }
.arco-chip--primary:hover { background: #ffc524; }
.arco-chip--ghost { border-style: dashed; color: var(--muted); border-color: #b9c1ce; }

.arco-chat__composer { border-top: 1px solid var(--line); background: #fff; padding: 10px 10px 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.arco-compose { display: flex; align-items: flex-end; gap: 8px; }
.arco-compose textarea, .arco-compose input {
  flex: 1; min-height: 46px; max-height: 140px; resize: none; padding: 11px 13px; border: 1.5px solid #cbd2dd; border-radius: 14px; font-size: 1rem; line-height: 1.4; background: #fff;
}
.arco-compose textarea:focus, .arco-compose input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(50, 59, 76, 0.16); }
.arco-send { width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.arco-send:hover { background: var(--navy-800); }
.arco-send[disabled] { opacity: 0.45; cursor: not-allowed; }
.arco-send svg { width: 22px; height: 22px; }
.arco-compose__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 0.76rem; color: var(--muted); line-height: 1.35; }
.arco-compose__meta a { color: inherit; }
.arco-compose__count[data-warn="true"] { color: var(--err); font-weight: 600; }
.arco-compose__error { color: var(--err); font-size: 0.85rem; margin: 6px 2px 0; }
.arco-back { border: 0; background: none; color: var(--muted); font-size: 0.85rem; cursor: pointer; padding: 4px 2px; text-decoration: underline; }

/* Cartão de resumo / confirmação */
.arco-card { align-self: stretch; background: #fff; border: 1.5px solid var(--navy); border-radius: 16px; padding: 16px 14px; box-shadow: 0 6px 18px rgba(22, 27, 38, 0.08); }
.arco-card h3 { font-size: 1.08rem; margin: 0 0 4px; }
.arco-card__service { display: inline-block; background: var(--navy); color: #fff; font-size: 0.8rem; font-weight: 600; border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; }
.arco-card__grid { display: grid; gap: 10px; }
.arco-card .field label { font-size: 0.85rem; }
.arco-card .input, .arco-card .select, .arco-card .textarea { min-height: 42px; padding: 8px 10px; font-size: 0.95rem; }
.arco-card .textarea { min-height: 84px; }
.arco-card__details { margin: 4px 0 0; padding: 10px 12px; background: var(--navy-50); border-radius: 10px; font-size: 0.9rem; display: grid; gap: 4px; }
.arco-card__details div { display: grid; grid-template-columns: minmax(0, 1fr); }
.arco-card__details dt { color: var(--muted); font-size: 0.8rem; }
.arco-card__details dd { margin: 0 0 4px; font-weight: 600; }
.arco-card__actions { display: grid; gap: 8px; margin-top: 12px; }
.arco-card__actions .btn { width: 100%; }
.arco-card .check { font-size: 0.88rem; }
.arco-card__errors { background: var(--err-bg); color: var(--err); border-radius: 10px; padding: 8px 10px; font-size: 0.88rem; }
.arco-card__errors ul { margin: 4px 0 0 1.1em; }

.arco-done { align-self: stretch; background: var(--ok-bg); border: 1px solid #b7e2c8; border-radius: 16px; padding: 18px 16px; text-align: center; }
.arco-done svg { width: 44px; height: 44px; color: var(--ok); margin: 0 auto 8px; }
.arco-done h3 { font-size: 1.15rem; margin-bottom: 6px; }
.arco-done p { margin: 0 0 10px; font-size: 0.95rem; }

.arco-noscroll { overflow: hidden; }
@media (min-width: 720px) { .arco-noscroll { overflow: auto; } }

/* Aviso «Número copiado» (clique num telefone no computador) */
.copy-toast { position: fixed; left: 50%; bottom: 28px; z-index: 3000; max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.95rem; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28); opacity: 0; transform: translate(-50%, 12px); transition: opacity 0.18s ease, transform 0.18s ease; pointer-events: none; }
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.copy-helper { position: fixed; top: 0; left: -9999px; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .copy-toast { transition: none; } }

/* Pré-visualização (apenas no ficheiro de demonstração) */
.preview-banner { position: fixed; left: 12px; bottom: 12px; z-index: 2000; background: #c1121f; color: #fff; font-size: 0.8rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow); max-width: calc(100vw - 110px); }
