/* ═══════════════════════════════════════════════════════════════════
   Amiware, LDA — folha de estilo principal
   Segurança electrónica · Automatização · Metalomecânica · Informática
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Marca — cores medidas no logótipo Amiware */
  --green:     #6FB95D;   /* verde do símbolo e do fundo do logótipo */
  --green-l:   #9DCB46;   /* verde claro da ponta do símbolo */
  --green-d:   #4C8E3C;   /* verde escuro, para estados premidos */
  --graphite:  #302B2C;   /* cinzento-escuro do símbolo */
  --graphite-d:#1E1A1B;
  --steel:     #3D3738;
  --amber:     #F07918;   /* laranja da versão alternativa do logótipo */

  /* Superfícies — brancos com um toque do verde da marca */
  --paper: #FFFFFF;
  --mist:  #F4F7F2;
  --mist2: #E5EDE0;
  --line:  #DEE6D9;
  --ink:   #1B1F1A;
  --body:  #505A4C;
  --muted: #7F8B79;

  --display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1200px;
  --gut: 24px;
  --r-sm: 5px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow: 0 2px 10px rgba(48,43,44,.07);
  --lift: 0 20px 48px -22px rgba(48,43,44,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: var(--body); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green-l); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 {
  font-family: var(--display); color: var(--ink); line-height: 1.08;
  letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.3vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); letter-spacing: -.03em; }
h3 { font-size: 1.24rem; }
h4 { font-family: var(--sans); font-size: 1.03rem; font-weight: 700; color: var(--ink); margin: 0 0 .4em; }
p  { margin: 0 0 1.1em; max-width: 68ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.lead { font-size: 1.15rem; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--graphite); color: #fff; padding: 12px 18px; }
.skip:focus { left: 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em; color: var(--green); margin-bottom: 12px;
}
.kicker::before { content: ''; width: 22px; height: 2px; background: var(--green); }
.sec--dark .kicker { color: var(--amber); }
.sec--dark .kicker::before { background: var(--amber); }

/* ── Botões ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border: 2px solid transparent; border-radius: var(--r-sm);
  font-family: var(--display); font-weight: 800; font-size: .92rem;
  letter-spacing: .02em; text-transform: uppercase;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px -8px rgba(111,185,93,.9); }
.btn--primary:hover { background: var(--graphite); color: #fff; box-shadow: 0 10px 24px -8px rgba(48,43,44,.55); }
.btn--dark { background: var(--graphite); color: #fff; }
.btn--dark:hover { background: var(--green); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--graphite); background: var(--paper); }
.btn--ghost:hover { border-color: var(--graphite); background: var(--graphite); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--light:hover { background: #fff; color: var(--graphite); border-color: #fff; }
.btn--wide { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: .84rem; }

/* ── Barra de topo ───────────────────────────────────────────────── */
.topbar { background: var(--graphite-d); color: #9AA6B2; font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #9AA6B2; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 14px; height: 14px; fill: currentColor; flex: 0 0 auto; }
.topbar__claim { font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; color: var(--amber); }
.topbar__soc { display: flex; gap: 10px; }
.topbar__soc a { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 3px; background: rgba(255,255,255,.08); }
.topbar__soc a:hover { background: var(--green); color: #fff; }
.topbar__soc svg { width: 13px; height: 13px; fill: currentColor; }

/* Selector de idioma */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.08);
  border: 0; border-radius: 3px; color: #C7D0D9; padding: 4px 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.lang__btn:hover { background: var(--green); color: #fff; }
.lang__btn svg { width: 9px; height: 9px; fill: currentColor; transition: transform .2s ease; }
.lang__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 90;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--lift); min-width: 156px; padding: 5px; display: none;
}
.lang__menu.is-open { display: block; }
.lang__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 11px; border-radius: 3px; color: var(--ink); font-size: .88rem; font-weight: 600;
}
.lang__menu a:hover { background: var(--mist); text-decoration: none; color: var(--green); }
.lang__menu a span { font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.lang__menu a[aria-current="true"] { background: var(--graphite); color: #fff; }
.lang__menu a[aria-current="true"] span { color: var(--amber); }

/* ── Navegação ───────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav.is-scrolled { box-shadow: var(--shadow); }
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand__logo {
  height: 46px; width: auto; flex: 0 0 auto;
  border-radius: var(--r-sm); display: block;
  box-shadow: 0 4px 12px -6px rgba(48,43,44,.45);
}
.brand__txt { line-height: 1.15; }
.brand__claim { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.foot .brand__logo { height: 54px; box-shadow: none; }
.foot .brand__claim { color: var(--green-l); }
@media (max-width: 480px) { .brand__logo { height: 38px; } }

.nav__links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav__links a {
  position: relative; color: var(--ink); font-family: var(--display);
  font-size: .95rem; font-weight: 800; letter-spacing: .02em; text-transform: none;
  padding: 12px 16px; border-radius: var(--r-sm); transition: color .16s ease, background-color .16s ease;
}
.nav__links a:hover { background: var(--mist); color: var(--green); text-decoration: none; }
.nav__links a.is-active { color: var(--green); }
.nav__links a.is-active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 3.5px; border-radius: 2px; background: var(--green); }
.nav__links a.nav__cta::after { display: none; }
.nav__cta { margin-left: 10px; }
.nav__toggle { display: none; background: none; border: 2px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; margin-left: auto; }
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--graphite); margin: 4px 0; }

@media (max-width: 1080px) {
  .nav__toggle { display: block; }
  .brand__claim { display: none; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px var(--gut) 20px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 15px 4px; font-size: 1rem; border-bottom: 1px solid var(--mist2); }
  .nav__links a.is-active::after { display: none; }
  .nav__cta { margin: 12px 0 0; }
}

/* ── Secções ─────────────────────────────────────────────────────── */
.sec { padding: 88px 0; }
.sec--tight { padding: 58px 0; }
.sec--mist { background: var(--mist); }
.sec--dark { background: var(--graphite); color: #A8B4C0; }
.sec--dark h2, .sec--dark h3, .sec--dark h4 { color: #fff; }
.sec__head { max-width: 740px; margin-bottom: 46px; }
.sec__head p { font-size: 1.08rem; }
.sec--dark .sec__head p { color: #98A5B2; }
.page-head { background: var(--graphite); color: #A8B4C0; padding: 64px 0 60px; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -80px; bottom: -110px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(111,185,93,.28), transparent 68%); }
.page-head h1 { color: #fff; position: relative; z-index: 1; }
.page-head .lead { color: #A8B4C0; position: relative; z-index: 1; }

/* ── Banners do herói ────────────────────────────────────────────── */
.hero { position: relative; min-height: 580px; height: 78vh; max-height: 720px; background: var(--graphite); overflow: hidden; isolation: isolate; }
.hero__slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__media { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(130deg, var(--graphite-d) 0%, var(--steel) 70%, var(--accent) 250%); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active .hero__media img { animation: heroZoom 9s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(30,26,27,.95) 0%, rgba(30,26,27,.82) 40%, rgba(30,26,27,.30) 74%, rgba(30,26,27,.12) 100%),
    linear-gradient(180deg, rgba(30,26,27,.5) 0%, transparent 32%, rgba(30,26,27,.6) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 640px; padding: 40px 0 92px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; padding: 7px 16px;
  background: var(--accent); color: #fff; border-radius: 3px;
  font-family: var(--display); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hero__title { color: #fff; margin: 0 0 16px; font-size: clamp(2.05rem, 1.2rem + 3.2vw, 3.5rem); text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.hero__text { color: #CFD8E0; font-size: 1.1rem; max-width: 54ch; margin: 0 0 28px; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__slide.is-active .hero__eyebrow,
.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__text,
.hero__slide.is-active .hero__actions { animation: heroIn .6s cubic-bezier(.22,.8,.3,1) both; }
.hero__slide.is-active .hero__title { animation-delay: .08s; }
.hero__slide.is-active .hero__text { animation-delay: .16s; }
.hero__slide.is-active .hero__actions { animation-delay: .24s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 50px; height: 50px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.3); color: #fff;
  display: grid; place-items: center; backdrop-filter: blur(4px);
}
.hero__arrow svg { width: 22px; height: 22px; }
.hero__arrow:hover { background: var(--green); border-color: var(--green); }
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }

.hero__bottom { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 4; }
.hero__bottom .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hero__dots { display: flex; gap: 24px; }
.hero__dots button {
  background: none; border: 0; padding: 0 0 10px; position: relative; min-width: 96px; text-align: left;
  color: rgba(255,255,255,.5); font-family: var(--display); font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; transition: color .2s ease;
}
.hero__dots button:hover, .hero__dots button[aria-selected="true"] { color: #fff; }
.hero__dots i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.25); display: block; overflow: hidden; }
.hero__dots i::after { content: ''; position: absolute; inset: 0; width: 0; background: var(--amber); }
.hero__dots button[aria-selected="true"] i::after { width: 100%; }
.hero.is-playing .hero__dots button[aria-selected="true"] i::after { width: 0; animation: heroFill var(--hero-delay, 7s) linear forwards; }
@keyframes heroFill { to { width: 100%; } }
.hero__claim { color: rgba(255,255,255,.55); font-family: var(--display); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0; }

@media (max-width: 960px) {
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero__slide { position: absolute; }
  .hero__slide.is-active { position: relative; }
  .hero__content { padding: 96px 0 140px; }
  .hero__veil { background: linear-gradient(180deg, rgba(30,26,27,.88) 0%, rgba(30,26,27,.74) 45%, rgba(30,26,27,.94) 100%); }
  .hero__arrow, .hero__claim { display: none; }
  .hero__dots { gap: 14px; }
  .hero__dots button { min-width: 64px; font-size: .68rem; }
}

/* ── Banda de números ────────────────────────────────────────────── */
.band { background: var(--green); color: #fff; padding: 34px 0; }
.band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.band__item { display: flex; align-items: baseline; gap: 12px; }
.band__item b { font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.band__item span { font-size: .93rem; color: rgba(255,255,255,.88); }
@media (max-width: 800px) { .band__grid { grid-template-columns: 1fr 1fr; gap: 18px; } .band__item b { font-size: 1.7rem; } }

/* ── Serviços ────────────────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc {
  background: var(--paper); padding: 30px 28px 32px; position: relative;
  transition: background-color .2s ease, transform .2s ease;
}
.svc::before { content: ''; position: absolute; left: 0; top: 0; width: 0; height: 3px; background: var(--accent); transition: width .28s ease; }
.svc:hover { background: var(--mist); }
.svc:hover::before { width: 100%; }
.svc__icon { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--mist); display: grid; place-items: center; margin-bottom: 18px; transition: background-color .2s ease; }
.svc__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc:hover .svc__icon { background: var(--accent); }
.svc:hover .svc__icon svg { stroke: #fff; }
.svc h3 { font-size: 1.14rem; margin-bottom: 8px; }
.svc p { font-size: .96rem; margin: 0; }
.svc__go { display: inline-block; margin-top: 16px; font-family: var(--display); font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }

/* Detalhe de serviço */
.svc-row { display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding: 38px 0; border-top: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row__side { position: relative; }
.svc-row__side .svc__icon { width: 54px; height: 54px; }
.svc-row h3 { font-size: 1.4rem; }
.svc-row p { font-size: 1rem; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; gap: 20px; } }

/* ── Grelhas ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.feature__mark { width: 30px; height: 3px; background: var(--green); margin-bottom: 14px; }
.sec--dark .feature__mark { background: var(--amber); }
.feature p { font-size: .96rem; margin: 0; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; }
.panel--mist { background: var(--mist); border-color: transparent; }
.panel--dark { background: var(--graphite); color: #A8B4C0; border-color: transparent; }
.panel--dark h4 { color: #fff; }

.ticks li { position: relative; padding-left: 27px; margin-bottom: 10px; font-size: .96rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.ticks--accent li::before { border-color: var(--accent); }
.ticks--light li::before { border-color: var(--amber); }

/* ── Passos ──────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--paper); padding: 26px 22px 28px; }
.step__n { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--mist2); line-height: 1; margin-bottom: 10px; transition: color .2s ease; }
.step:hover .step__n { color: var(--green); }
.step p { font-size: .92rem; margin: 0; }
.sec--dark .step { background: var(--steel); }
.sec--dark .step__n { color: rgba(255,255,255,.22); }
.sec--dark .step:hover .step__n { color: var(--amber); }
.steps--dark { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.12); }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ── Carrossel de testemunhos ────────────────────────────────────── */
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform .48s cubic-bezier(.3,.8,.3,1); }
.carousel__slide { flex: 0 0 100%; padding: 4px; }
.carousel__ctrls { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.carousel__btn { width: 42px; height: 42px; border-radius: var(--r-sm); border: 2px solid rgba(255,255,255,.28); background: none; color: #fff; display: grid; place-items: center; }
.carousel__btn:hover { background: var(--green); border-color: var(--green); }
.carousel__dots { display: flex; gap: 7px; margin-left: auto; }
.carousel__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.3); transition: background-color .2s ease, width .2s ease; }
.carousel__dots button[aria-current="true"] { background: var(--amber); width: 26px; border-radius: 999px; }
.quote { background: rgba(255,255,255,.055); border-left: 3px solid var(--amber); padding: 30px 34px; }
.quote p { font-family: var(--display); font-size: 1.28rem; line-height: 1.45; color: #fff; margin: 0 0 16px; max-width: 60ch; font-weight: 600; }
.quote footer { font-size: .9rem; color: #98A5B2; }
.quote footer b { color: var(--amber); display: block; font-weight: 700; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 44px 20px 0; font-family: var(--display); font-size: 1.06rem; font-weight: 700; color: var(--ink); position: relative; }
.faq__q::after { content: ''; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform .22s ease; }
.faq__q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { overflow: hidden; height: 0; transition: height .26s ease; }
.faq__a p { margin: 0 0 20px; font-size: .98rem; }

/* ── Redes sociais ───────────────────────────────────────────────── */
.social-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.social-card {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper);
  transition: border-color .18s ease, transform .18s ease, box-shadow .2s ease;
}
.social-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--mist2); }
.social-card__ico { width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center; flex: 0 0 auto; color: #fff; }
.social-card__ico svg { width: 24px; height: 24px; fill: currentColor; }
.social-card--fb .social-card__ico { background: #1877F2; }
.social-card--ig .social-card__ico { background: linear-gradient(45deg, #F9CE34 0%, #EE2A7B 50%, #6228D7 100%); }
.social-card b { display: block; font-family: var(--display); font-size: 1.02rem; color: var(--ink); }
.social-card span { font-size: .88rem; color: var(--muted); }
@media (max-width: 620px) { .social-cards { grid-template-columns: 1fr; } }

/* ── Formulários ─────────────────────────────────────────────────── */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(111,185,93,.13); }
.field textarea { min-height: 130px; resize: vertical; }
.field--error input, .field--error select, .field--error textarea { border-color: #C0392B; }
.field__err { color: #C0392B; font-size: .85rem; margin-top: 5px; display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash { border-radius: var(--r-sm); padding: 15px 18px; font-size: .95rem; margin-bottom: 24px; }
.flash--sucesso { background: #E8F5EC; color: #1B6E3A; border-left: 4px solid #2E9E58; }
.flash--erro { background: #FDECEA; color: #96281B; border-left: 4px solid #C0392B; }

/* ── Chamada final ───────────────────────────────────────────────── */
.cta-band { background: var(--graphite); color: #fff; padding: 46px 44px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; border-radius: var(--r-md); }
.cta-band::after { content: ''; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(111,185,93,.35), transparent 68%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #B4C0CC; margin: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; padding: 34px 26px; } }

/* ── Rodapé ──────────────────────────────────────────────────────── */
.foot { background: var(--graphite-d); color: #8B97A3; padding: 60px 0 26px; font-size: .93rem; }
.foot h4 { color: #fff; font-family: var(--display); font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.foot a { color: #8B97A3; }
.foot a:hover { color: #fff; }
.foot li { margin-bottom: 9px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 38px; }
.foot__news { display: flex; gap: 8px; margin-top: 12px; }
.foot__news input { flex: 1; min-width: 0; padding: 11px 13px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; font: inherit; font-size: .92rem; }
.foot__news input::placeholder { color: #6B7783; }
.foot__news button { padding: 11px 18px; border-radius: var(--r-sm); border: 0; background: var(--green); color: #fff; font-family: var(--display); font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: .04em; }
.foot__news button:hover { background: var(--green-l); }
.foot__soc { display: flex; gap: 10px; margin-top: 18px; }
.foot__soc a { width: 34px; height: 34px; border-radius: var(--r-sm); background: rgba(255,255,255,.08); display: grid; place-items: center; }
.foot__soc a:hover { background: var(--green); color: #fff; }
.foot__soc svg { width: 16px; height: 16px; fill: currentColor; }
.foot__bar { border-top: 1px solid rgba(255,255,255,.1); margin-top: 42px; padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; } }

/* ── Texto legal e erros ─────────────────────────────────────────── */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1.2em; }
.prose li { margin-bottom: .5em; }
.errpage { padding: 108px 0; text-align: center; }
.errpage__code { font-family: var(--display); font-size: 5.5rem; font-weight: 700; color: var(--mist2); line-height: 1; margin: 0; }

/* ── Revelação ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22,.8,.3,1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .nav, .topbar, .wa, .totop, .chat, .cta-band, .foot__news { display: none; } }
   Botões flutuantes: assistente · WhatsApp · voltar ao topo
   ═══════════════════════════════════════════════════════════════════ */
.wa {
  position: fixed; right: 20px; bottom: 90px; z-index: 70;
  width: 50px; height: 50px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(37,211,102,.7);
  transition: transform .18s ease;
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 25px; height: 25px; fill: #fff; }

.totop {
  position: fixed; right: 20px; bottom: 154px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%; background: var(--graphite); color: #fff; border: 0;
  display: grid; place-items: center; box-shadow: 0 8px 22px -8px rgba(48,43,44,.75);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .18s ease;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--green); }
.totop svg { width: 21px; height: 21px; }

/* ── Assistente ──────────────────────────────────────────────────── */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; }
.chat__launch {
  position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: linear-gradient(132deg, var(--green) 0%, var(--graphite) 88%);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(48,43,44,.85);
  transition: transform .18s cubic-bezier(.34,1.4,.5,1), box-shadow .2s ease;
}
.chat__launch:hover { transform: scale(1.06); }
.chat__launch svg { width: 27px; height: 27px; grid-area: 1 / 1; transition: opacity .2s ease, transform .25s ease; }
.chat__icon-close { opacity: 0; transform: rotate(-45deg) scale(.6); }
.chat.is-open .chat__icon-open { opacity: 0; transform: rotate(45deg) scale(.6); }
.chat.is-open .chat__icon-close { opacity: 1; transform: none; }

.chat__ping { position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); border: 2.5px solid var(--paper); }
.chat__ping::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--amber); animation: chatPing 2.6s ease-out infinite; }
@keyframes chatPing { 0% { transform: scale(.85); opacity: .9; } 70% { transform: scale(2.1); opacity: 0; } 100% { opacity: 0; } }
.chat.is-open .chat__ping, .chat.is-seen .chat__ping { display: none; }

.chat__panel {
  position: absolute; right: 0; bottom: 72px; width: 370px; max-height: min(78vh, 560px);
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 26px 64px -22px rgba(48,43,44,.55), 0 2px 10px rgba(48,43,44,.08);
  transform-origin: bottom right; animation: chatIn .28s cubic-bezier(.22,1.1,.36,1) both;
}
/* Tem de vencer o display:flex acima, m; font-weight: 800; letter-spacing: .02em; text-transform: uppe senão o painel fica sempre aberto */
.chat__panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }

.chat__head { display: flex; align-items: center; gap: 11px; padding: 14px 14px 14px 16px; background: linear-gradient(118deg, var(--graphite-d) 0%, var(--graphite) 60%, var(--green) 170%); color: #fff; }
.chat__avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: 0 0 auto; }
.chat__avatar svg { width: 20px; height: 20px; }
.chat__ident { flex: 1; min-width: 0; line-height: 1.3; }
.chat__ident strong { display: block; font-size: .95rem; font-weight: 700; }
.chat__status { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: #98A5B2; }
.chat__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.chat__x { background: none; border: 0; color: #98A5B2; padding: 6px; border-radius: 50%; display: grid; place-items: center; }
.chat__x svg { width: 18px; height: 18px; }
.chat__x:hover { color: #fff; background: rgba(255,255,255,.12); }

.chat__log { flex: 1; overflow-y: auto; padding: 18px 16px 6px; background: var(--mist); display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.chat__log::-webkit-scrollbar { width: 6px; }
.chat__log::-webkit-scrollbar-thumb { background: var(--mist2); border-radius: 3px; }
.chat__msg { max-width: 84%; padding: 11px 14px; font-size: .91rem; line-height: 1.55; border-radius: 15px; animation: chatMsg .32s cubic-bezier(.22,.9,.3,1) both; }
@keyframes chatMsg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat__msg--bot { align-self: flex-start; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat__msg--me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 5px; }
.chat__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: .87rem; font-weight: 700; color: var(--green); }
.chat__link::after { content: '›'; font-size: 1.15rem; line-height: 1; }
.chat__typing { display: flex; gap: 4px; align-items: center; padding: 13px 15px; }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chatDot 1.25s ease-in-out infinite; }
.chat__typing i:nth-child(2) { animation-delay: .16s; }
.chat__typing i:nth-child(3) { animation-delay: .32s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 16px; background: var(--mist); }
.chat__chips:empty { display: none; }
.chat__chips button { background: var(--paper); border: 1.5px solid var(--mist2); border-radius: 999px; padding: 7px 14px; font-size: .83rem; font-weight: 700; color: var(--graphite); transition: border-color .16s ease, background-color .16s ease, color .16s ease; animation: chatMsg .3s ease both; }
.chat__chips button:hover { border-color: var(--green); background: var(--green); color: #fff; }
.chat__chips button.chat__chip--wa { border-color: #25D366; color: #128C3E; }
.chat__chips button.chat__chip--wa:hover { background: #25D366; border-color: #25D366; color: #fff; }

.chat__form { display: flex; gap: 8px; align-items: center; padding: 11px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.chat__form input { flex: 1; min-width: 0; padding: 11px 14px; font: inherit; font-size: .9rem; color: var(--ink); background: var(--mist); border: 1.5px solid transparent; border-radius: 999px; }
.chat__form input:focus { outline: none; border-color: var(--green); background: var(--paper); }
.chat__form button { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; transition: background-color .16s ease, transform .14s ease; }
.chat__form button:hover { background: var(--graphite); transform: scale(1.05); }
.chat__form button svg { width: 18px; height: 18px; }
.chat__foot { margin: 0; padding: 0 16px 12px; background: var(--paper); font-size: .73rem; color: var(--muted); text-align: center; }

@media (max-width: 480px) {
  .chat { right: 16px; bottom: 16px; }
  .chat__launch { width: 52px; height: 52px; }
  .wa { right: 16px; bottom: 80px; }
  .totop { right: 16px; bottom: 138px; }
  .chat__panel { position: fixed; right: 10px; left: 10px; bottom: 80px; width: auto; max-height: min(72vh, 500px); }
}
@media (prefers-reduced-motion: reduce) {
  .chat__panel, .chat__msg, .chat__chips button, .chat__ping::after { animation: none; }
  .chat__launch:hover, .wa:hover { transform: none; }
}
