/* ══ Contato: formulário em vidro + canais diretos ══
   Só esta página carrega este ficheiro. Movimento contido: chips e botão
   respondem com transições de curva easeOut e um overshoot curto; não há
   motor de molas aqui, o formulário tem de se sentir calmo. */
:root { --ct-ease: cubic-bezier(.22, 1, .36, 1); --ct-pop: cubic-bezier(.34, 1.56, .64, 1); }

.glass {
  position: relative; isolation: isolate; border-radius: 24px;
  background: linear-gradient(140deg, rgba(255,255,255,.12), rgba(255,255,255,.035) 55%, rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 34px 60px -28px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
}
@supports (backdrop-filter: url(#ct-refract)) {
  .glass { -webkit-backdrop-filter: blur(4px) saturate(1.5) url(#ct-refract); backdrop-filter: blur(4px) saturate(1.5) url(#ct-refract); }
}

.ct-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ct-bg::before { content: ""; position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 55% 45%, #000 15%, transparent 78%); mask-image: radial-gradient(ellipse 85% 75% at 55% 45%, #000 15%, transparent 78%); }
.ct-bg i { position: absolute; border-radius: 50%; filter: blur(64px); animation: ctDrift 20s ease-in-out infinite alternate; }
.ct-bg .o1 { width: 38vw; height: 38vw; left: 58%; top: -14%; background: radial-gradient(circle, #ff2e22, transparent 68%); opacity: .42; }
.ct-bg .o2 { width: 30vw; height: 30vw; left: 6%; top: 34%; background: radial-gradient(circle, #4a78ff, transparent 68%); opacity: .26; animation-delay: -9s; }
@keyframes ctDrift { to { transform: translate3d(-4vw, 3vh, 0) scale(1.12); } }

/* ── Hero + corpo ─────────────────────────────────────────────────────────── */
.ct { position: relative; overflow: hidden; background: #07080a; padding-block: clamp(6.5rem, 12vh, 8.5rem) var(--rhythm); }
.ct .wrap { position: relative; z-index: 2; }
.ct-hd { max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.ct-hd h1 { font-size: clamp(1.95rem, 4.2vw, 3.1rem); line-height: 1.06; margin-top: .8rem; max-width: 20ch; }
.ct-hd h1 em { font-style: normal; color: var(--red-lit); }
.ct-hd p { margin-top: 1rem; color: #c4c8ce; font-size: clamp(.95rem, 1.3vw, 1.05rem); max-width: 48ch; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); align-items: start; }

/* ── Formulário ───────────────────────────────────────────────────────────── */
.ct-form { padding: clamp(1.3rem, 3vw, 2.1rem); }
.ct-form h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.ct-row { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; margin-top: 1rem; }
.ct-f { position: relative; display: block; }
.ct-f--full { grid-column: 1 / -1; }
.ct-f > span { display: block; margin-bottom: .4rem; font-size: .76rem; font-weight: 600; letter-spacing: .02em; color: var(--mist); }
.ct-f > span b { color: var(--red-lit); font-weight: 700; }
.ct-in, .ct-cc { width: 100%; box-sizing: border-box; padding: .8rem .95rem; border-radius: 13px; border: 1px solid rgba(255,255,255,.16); background: rgba(6,7,9,.45); color: #fff;
  font: 500 .95rem var(--f-body); transition: border-color .25s ease, background .25s ease, box-shadow .35s var(--ct-ease); }
.ct-in::placeholder { color: #6c727b; }
.ct-in:hover, .ct-cc:hover { border-color: rgba(255,255,255,.3); }
.ct-in:focus, .ct-cc:focus { outline: none; border-color: rgba(255,90,70,.85); background: rgba(6,7,9,.7); box-shadow: 0 0 0 4px rgba(255,46,34,.16); }
textarea.ct-in { min-height: 120px; resize: vertical; }
.ct-wa { display: grid; grid-template-columns: 6.9rem minmax(0, 1fr); gap: .5rem; }
.ct-cc { appearance: none; -webkit-appearance: none; padding-right: 1.6rem; background-image: linear-gradient(45deg, transparent 50%, #9aa0a8 50%), linear-gradient(135deg, #9aa0a8 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; background-color: rgba(6,7,9,.45); }
.ct-cc option { color: #111; }
.ct-err { display: none; margin-top: .35rem; font-size: .74rem; color: #ff8a80; }
.ct-f[data-bad] .ct-err { display: block; animation: ctShake .4s var(--ct-ease); }
.ct-f[data-bad] .ct-in, .ct-f[data-bad] .ct-cc { border-color: #ff6b5e; }
@keyframes ctShake { 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }

fieldset.ct-chips { border: 0; margin: 1.2rem 0 0; padding: 0; min-width: 0; }
.ct-chips legend { padding: 0; margin-bottom: .6rem; font-size: .76rem; font-weight: 600; color: var(--mist); }
.ct-chips legend small { font-weight: 500; color: #6c727b; margin-left: .35rem; }
.ct-chiprow { display: flex; flex-wrap: wrap; gap: .45rem; }
.ct-chip { position: relative; }
.ct-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ct-chip span { display: inline-block; padding: .5rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #d3d7dc; cursor: pointer; user-select: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .45s var(--ct-pop); }
.ct-chip:hover span { border-color: rgba(255,255,255,.34); transform: translateY(-1px); }
.ct-chip input:active + span { transform: scale(.94); }
.ct-chip input:checked + span { background: var(--red); border-color: var(--red-lit); color: #fff; transform: scale(1.04); box-shadow: 0 6px 20px -6px var(--red-glow); }
.ct-chip input:focus-visible + span { outline: 2px solid var(--red-lit); outline-offset: 2px; }

.ct-consent { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.3rem; font-size: .8rem; color: #b6bbc2; line-height: 1.5; cursor: pointer; }
.ct-consent input { flex: none; width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--red); cursor: pointer; }
.ct-consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ct-consent + .ct-err { margin-top: .4rem; }
.ct-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.ct-send { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-width: 11rem; height: 3rem; padding: 0 1.6rem; border: 0; border-radius: 999px; background: var(--red); color: #fff;
  font: 600 .95rem var(--f-body); cursor: pointer; overflow: hidden;
  transition: width .5s var(--ct-pop), min-width .5s var(--ct-pop), background .3s ease, box-shadow .3s ease, transform .4s var(--ct-pop); }
.ct-send:hover { background: var(--red-lit); box-shadow: 0 8px 28px var(--red-glow); transform: translateY(-1px); }
.ct-send:active { transform: scale(.96); }
.ct-send:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ct-send .s-txt { transition: opacity .2s ease, transform .3s var(--ct-ease); }
.ct-send .s-ico { position: absolute; width: 20px; height: 20px; opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .45s var(--ct-pop); }
.ct-send[data-state="sending"] { min-width: 3rem; width: 3rem; padding: 0; pointer-events: none; }
.ct-send[data-state="sending"] .s-txt { opacity: 0; transform: translateY(6px); }
.ct-send[data-state="sending"] .s-spin { opacity: 1; transform: scale(1); animation: ctSpin .8s linear infinite; }
.ct-send[data-state="done"] { background: #1f9d55; }
.ct-note { font-size: .76rem; color: #7e858e; max-width: 34ch; }
@keyframes ctSpin { to { rotate: 360deg; } }
.ct-hp { position: absolute !important; left: -9999px; }
.ct-msg { display: none; margin-top: 1.1rem; padding: .9rem 1rem; border-radius: 13px; font-size: .86rem; border: 1px solid rgba(255,107,94,.45); background: rgba(255,107,94,.1); color: #ffb3ab; }
.ct-msg.on { display: block; }
.ct-msg a { color: #fff; text-decoration: underline; }

.ct-ok { display: none; text-align: left; }
.ct-ok.on { display: block; animation: ctIn .7s var(--ct-ease); }
.ct-ok .tick { width: 56px; height: 56px; border-radius: 50%; background: rgba(31,157,85,.18); border: 1px solid rgba(31,157,85,.55); display: grid; place-items: center; margin-bottom: 1.1rem; animation: ctPop .7s var(--ct-pop); }
.ct-ok .tick svg { width: 26px; height: 26px; }
.ct-ok h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.ct-ok p { margin-top: .7rem; color: #c4c8ce; max-width: 44ch; }
.ct-ok .btn { margin-top: 1.4rem; }
@keyframes ctIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes ctPop { 0% { transform: scale(.3); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ── Canais diretos ───────────────────────────────────────────────────────── */
.ct-side { display: grid; gap: .8rem; position: sticky; top: 6rem; }
.ct-ch { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 20px; text-decoration: none; color: inherit;
  transition: transform .5s var(--ct-pop), border-color .3s ease, background .3s ease; }
a.ct-ch:hover { transform: translateY(-3px) scale(1.012); border-color: rgba(255,255,255,.32); }
a.ct-ch:active { transform: scale(.985); }
.ct-ch i { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; }
.ct-ch i svg { width: 20px; height: 20px; }
.ct-ch--wa i { background: rgba(37,211,102,.16); border-color: rgba(37,211,102,.45); color: #5ee08e; }
.ct-ch small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7e858e; }
.ct-ch b { display: block; margin-top: .15rem; font: 600 1rem var(--f-display); color: #fff; overflow-wrap: anywhere; }
.ct-ch em { display: block; margin-top: .1rem; font-style: normal; font-size: .8rem; color: #98a0a9; }
.ct-ch__go { margin-left: auto; width: 8px; height: 8px; border-top: 1.6px solid #98a0a9; border-right: 1.6px solid #98a0a9; transform: rotate(45deg); transition: transform .4s var(--ct-pop); }
a.ct-ch:hover .ct-ch__go { transform: translateX(3px) rotate(45deg); border-color: #fff; }

/* ── Condições + passos ───────────────────────────────────────────────────── */
.ct-pay { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.ct-pay span { padding: .45rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #d3d7dc; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.ct-faqlink { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 1.3rem 1.5rem; border-radius: 20px; }
.ct-faqlink p { font: 600 1.05rem var(--f-display); color: #fff; }
.ct-faqlink p small { display: block; margin-top: .25rem; font: 500 .85rem var(--f-body); color: #98a0a9; }

@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr; } .ct-side { position: static; }
  .ct-hd h1 { max-width: none; }
}
@media (max-width: 560px) {
  .ct-row { grid-template-columns: 1fr; }
  .ct-wa { grid-template-columns: 8rem minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ct-bg i, .ct-send .s-spin { animation: none; }
  .ct *, .ct-chip span, .ct-send { transition: none !important; }
}

/* ══ Revisão: formulário mais limpo (menos peso por linha) ═══════════════════ */
.ct-f > span, .ct-chips legend, .ct-lg { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a919a; }
.ct-f > span b { color: var(--red-lit); }
.ct-row { margin-top: 1.3rem; gap: 1.05rem; }
.ct-chips { margin-top: 1.6rem !important; }
.ct-chips legend { margin-bottom: .75rem; }
#ctCount { margin-left: .6rem; font-weight: 700; letter-spacing: .04em; color: var(--red-lit); text-transform: none; }
/* serviços: etiquetas finas, sem enchimento; só o estado marcado ganha cor */
.ct-chiprow { gap: .4rem; }
.ct-chip span { padding: .36rem .78rem; font-size: .76rem; font-weight: 600; color: #c3c8ce; background: transparent; border-color: rgba(255,255,255,.16); }
.ct-chip:hover span { background: rgba(255,255,255,.05); transform: none; }
.ct-chip input:checked + span { transform: scale(1.035); }
.ct-msgf { margin-top: 1.5rem; }
textarea.ct-in { min-height: 96px; }

/* seletor segmentado: a pastilha desliza entre as opções (um grupo por linha) */
.ct-grp { margin-top: 1.25rem; }
.ct-lg { display: block; margin-bottom: .6rem; }
.ct-seg { position: relative; display: flex; width: 100%; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.ct-seg label { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; }
.ct-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ct-seg span { display: block; padding: .52rem .4rem; text-align: center; white-space: nowrap; font-size: .78rem; font-weight: 600; color: #aab0b8; border-radius: 999px; cursor: pointer; transition: color .25s ease; }
.ct-seg label:hover span { color: #fff; }
.ct-seg input:checked + span { color: #fff; }
.ct-seg input:focus-visible + span { outline: 2px solid var(--red-lit); outline-offset: 1px; }
.ct-seg__pill { position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0; border-radius: 999px; opacity: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.1)); border: 1px solid rgba(255,255,255,.26);
  box-shadow: 0 6px 16px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.35);
  transition: left .5s var(--ct-pop), width .5s var(--ct-pop), top .5s var(--ct-pop), height .3s ease, opacity .25s ease; }
.ct-seg__pill.on { opacity: 1; }

/* "Mais detalhes": o opcional fica recolhido até ser pedido */
.ct-morebtn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.4rem; padding: .35rem .1rem; font: 600 .84rem var(--f-body); color: #d3d7dc; }
.ct-morebtn small { font-weight: 500; color: #6c727b; }
.ct-morebtn i { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .45s var(--ct-pop); }
.ct-morebtn[aria-expanded="true"] i { transform: rotate(225deg) translateY(-2px); }
.ct-morebtn:hover { color: #fff; }
.ct-morebtn:focus-visible { outline: 2px solid var(--red-lit); outline-offset: 3px; border-radius: 6px; }
.ct-more { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s var(--ct-ease), visibility 0s linear .55s; }
.ct-more.open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .6s var(--ct-pop), visibility 0s; }
.ct-more__in { overflow: hidden; min-height: 0; padding-top: .2rem; }
.ct-consent { margin-top: 1.5rem; }

/* ══ Contratação: centrada, logos no estilo dos clientes do hero ═════════════ */
.ct-center { text-align: center; margin-inline: auto; }
.ct-center p { margin-inline: auto; }
.ct-logos { max-width: 920px; margin: 0 auto; }
.ct-logos div { padding: 1.5rem 1rem; }
.ct-logos img { max-width: 180px; }
.ct-faqlink { flex-direction: column; text-align: center; justify-content: center; max-width: 920px; margin: 2.2rem auto 0; padding: 1.8rem 1.5rem; gap: 1.1rem; }
.ct-faqlink p small { margin-inline: auto; max-width: 44ch; }
@media (max-width: 560px) { .ct-seg span { font-size: .72rem; padding: .5rem .2rem; } }

@media (max-width: 560px) { .ct-seg--4 { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; } .ct-seg--4 span { padding: .6rem .3rem; } }

/* ══ Serviços: grelha estrita 3 × 4 ═════════════════════════════════════════
   Mesma largura, mesma altura, mesma forma. Nada se mexe ao marcar: o estado
   é só cor de borda, fundo e um visto, para a grelha nunca se desalinhar. */
.ct-chiprow { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.ct-chiprow .ct-chip span {
  position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: 46px; padding: 0 1.6rem; border-radius: 12px; text-align: center; white-space: nowrap;
  font-size: .8rem; font-weight: 600; color: #c3c8ce; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.13);
  transform: none; box-shadow: none;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.ct-chiprow .ct-chip:hover span { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); transform: none; }
.ct-chiprow .ct-chip input:active + span { transform: none; }
.ct-chiprow .ct-chip input:checked + span { transform: none; box-shadow: none; color: #fff; background: rgba(204,16,16,.16); border-color: var(--red-lit); }
.ct-chiprow .ct-chip span::after {
  content: ""; position: absolute; right: .7rem; top: 50%; width: 9px; height: 5px; margin-top: -4px;
  border-left: 1.8px solid var(--red-lit); border-bottom: 1.8px solid var(--red-lit); transform: rotate(-45deg) scale(0); opacity: 0;
  transition: transform .3s var(--ct-pop), opacity .2s ease;
}
.ct-chiprow .ct-chip input:checked + span::after { transform: rotate(-45deg) scale(1); opacity: 1; }
@media (max-width: 560px) { .ct-chiprow .ct-chip span { font-size: .74rem; padding: 0 1.3rem 0 .4rem; height: 44px; } .ct-chiprow .ct-chip span::after { right: .5rem; } }
.ct-chiprow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) {
  .ct-chiprow .ct-chip span { padding: 0 .45rem; }
  .ct-chiprow .ct-chip span::after { right: .4rem; top: .55rem; margin-top: 0; width: 7px; height: 4px; }
}
@media (max-width: 560px) { .ct-chiprow .ct-chip span { font-size: .7rem; } .ct-chiprow .ct-chip span::after { top: .42rem; right: .35rem; } }

/* ══ Hero centrado: um só eixo, do topo ao fim da página ═════════════════════ */
.ct { padding-top: clamp(6.2rem, 11vh, 7.6rem); }
.ct-hd--c { text-align: center; max-width: 780px; margin-inline: auto; margin-bottom: clamp(1.8rem, 3.6vw, 2.6rem); }
.ct-hd--c h1 { max-width: 21ch; margin-inline: auto; text-wrap: balance; }
.ct-hd--c p { margin-inline: auto; text-wrap: balance; }
.ct-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.7rem; }
.ct-quick a { display: inline-flex; align-items: center; gap: .6rem; padding: .62rem 1.15rem; border-radius: 999px; font: 600 .85rem var(--f-body); color: #fff; text-decoration: none;
  transition: transform .5s var(--ct-pop), border-color .3s ease, background .3s ease; }
.ct-quick a svg { width: 17px; height: 17px; color: #d9dde2; transition: color .3s ease; }
.ct-quick a:hover { transform: translateY(-2px) scale(1.03); border-color: rgba(255,255,255,.34); }
.ct-quick a:first-child svg { color: #5ee08e; }
.ct-quick a:active { transform: scale(.97); }
.ct-quick a:focus-visible { outline: 2px solid var(--red-lit); outline-offset: 3px; }
/* luz de estúdio vinda de cima, centrada atrás do título */
.ct-bg::before { -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 24%, #000 10%, transparent 76%); mask-image: radial-gradient(ellipse 70% 62% at 50% 24%, #000 10%, transparent 76%); }
.ct-bg .o1 { left: calc(50% - 23vw); top: -26%; width: 46vw; height: 46vw; opacity: .5; }
.ct-bg .o2 { left: calc(50% + 12vw); top: 12%; width: 24vw; height: 24vw; opacity: .22; }
.ct-bg .cone { position: absolute; left: 50%; top: 0; width: min(900px, 90vw); height: 62%; margin-left: calc(min(900px, 90vw) / -2); filter: blur(28px); animation: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.13), rgba(255,255,255,0) 90%); border-radius: 0; clip-path: polygon(41% 0, 59% 0, 100% 100%, 0 100%); }
@media (max-width: 560px) { .ct-quick a { padding: .56rem .95rem; font-size: .8rem; } .ct-hd--c h1 { max-width: none; } }
.ct-hd--c { max-width: 940px; } .ct-hd--c h1 { max-width: none; } .ct-hd--c > p:not(.label) { max-width: 52ch; }
@media (max-width: 560px) {
  .ct-bg .cone { opacity: .5; width: 140vw; margin-left: -70vw; }
  .ct-quick { gap: .4rem; flex-wrap: nowrap; }
  .ct-quick a { flex: 1 1 0; min-width: 0; justify-content: center; gap: .4rem; padding: .56rem .35rem; font-size: .74rem; }
  .ct-quick a svg { width: 15px; height: 15px; flex: none; }
}
