/* =====================================================================
   VALENTEC — Página Contato (pages/contato.html)
   ---------------------------------------------------------------------
   Todos os estilos exclusivos da página Contato ficam neste arquivo.
   Estilos compartilhados (tokens, .btn, cabeçalho, rodapé, .rv,
   .mute, .wrap) continuam em assets/css/main.css.

   Índice
     1. Seção e cabeçalho .............. .ct2, .ct2-head, .ct-status
     2. Grade (mensagem + painel) ...... .ct2-grid
     3. Mensagem rápida ................ .qm
        3.1 Passos
        3.2 Assuntos
        3.3 Nome
        3.4 Prévia da conversa
        3.5 Botão "Enviar no WhatsApp"
     4. Painel "Prefere outro canal?" .. .ct2-side, .ch2, .ct2-art
     5. Animações

   Convenções
     - Cada bloco traz primeiro as regras base e, logo abaixo, as
       variações por breakpoint: 1024px (tablet) e 720px (celular).
     - Comportamentos em JS (assets/js/pages/contato.js): .open no
       status de atendimento, .pop na bolha da mensagem e .ok no botão
       "Copiar".
   ===================================================================== */


/* =====================================================================
   1. Seção e cabeçalho
   ===================================================================== */
.ct2 {
  padding: calc(var(--hh) + clamp(40px, 5vw, 72px)) 0 clamp(88px, 9vw, 130px);
  background: #fff;
}

.ct2-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.ct2-head h1 {
  max-width: 12em;
  margin-top: 0;
  font-size: clamp(2.6rem, 4.6vw, 4.7rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.045em;
  color: var(--navy);
}

.ct2-lead {
  max-width: 34em;
  margin-top: 20px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--tx-2);
}

/* status "Seg a sex, 9h às 18h": .open quando está no horário */
.ct-status {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 14px;
  color: var(--tx-2);
  white-space: nowrap;
}

.ct-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
}

.ct-status.open i {
  background: #22c55e;
  animation: pulseG 2.4s infinite;
}

@media (max-width: 1024px) {
  .ct2-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .ct2 {
    padding-top: calc(var(--hh) + 32px);
  }

  .ct2-head h1 {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
    line-height: 1.06;
  }

  .ct2-lead {
    font-size: 16px;
  }

  .ct-status {
    height: auto;
    padding: 10px 16px;
    font-size: 13px;
    white-space: normal;
  }
}


/* =====================================================================
   2. Grade: mensagem rápida (7 colunas) + painel lateral (5 colunas)
   ===================================================================== */
.ct2-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
}

/* no tablet e no celular, cada coluna ocupa a largura toda (ver .qm e .ct2-side) */


/* =====================================================================
   3. Mensagem rápida
   ===================================================================== */
.qm {
  grid-column: 1 / span 7;
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

@media (max-width: 1024px) {
  .qm {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .qm {
    padding: 22px 16px;
  }
}

/* ---------- 3.1 Passos (1, 2, 3) ---------- */
.qm-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 14px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--navy);
}

.qm-step:first-child {
  margin-top: 0;
}

.qm-step b {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  font-family: var(--fm);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}

.qm-step small {
  font-size: 14px;
  font-weight: 400;
  color: var(--tx-3);
}

@media (max-width: 720px) {
  .qm-step {
    margin-top: 26px;
    font-size: 16px;
  }
}

/* ---------- 3.2 Assuntos (radiogroup) ---------- */
.qm-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qm-topics button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 15px;
  color: var(--navy);
  transition: background .3s, border-color .3s, color .3s;
}

.qm-topics button:hover {
  border-color: var(--brand);
}

.qm-topics svg {
  width: 18px;
  height: 18px;
  color: var(--brand-2);
  transition: color .3s;
}

/* assunto selecionado */
.qm-topics [aria-checked="true"],
.qm-topics [aria-checked="true"]:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.qm-topics [aria-checked="true"] svg {
  color: #6aa8ff;
}

@media (max-width: 720px) {
  .qm-topics button {
    height: 42px;
    padding: 0 14px 0 12px;
    font-size: 14px;
  }
}

/* ---------- 3.3 Nome ---------- */
.qm-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(2,11,28,.14);
  border-radius: 14px;
  background: #f5f8fd;
  font-size: 16px;
  color: var(--navy);
  transition: border-color .3s, background .3s, box-shadow .3s;
}

.qm-input::placeholder {
  color: #9aa3b6;
}

.qm-input:focus {
  outline: 0;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(62,139,255,.18);
}

/* ---------- 3.4 Prévia da conversa (estilo WhatsApp) ---------- */
.qm-chat {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #efe7de;
  background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 14px 14px;
}

.qm-chat-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
}

.qm-chat-top b {
  display: block;
  font-size: 15px;
}

.qm-chat-top small {
  display: block;
  font-size: 12px;
  color: rgba(222,233,255,.7);
}

.qm-av {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
}

.qm-av svg {
  width: 22px;
  height: 22px;
}

.qm-bubble {
  width: fit-content;
  max-width: 86%;
  margin: 16px 16px 18px auto;
  padding: 12px 14px 10px;
  border-radius: 14px 14px 4px 14px;
  background: #dcf8c6;
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
  font-size: 15.5px;
  line-height: 1.5;
  color: #0b1530;
}

/* .pop: reaparece quando a mensagem muda (contato.js) */
.qm-bubble.pop {
  animation: qmPop .45s var(--ease);
}

@media (max-width: 720px) {
  .qm-bubble {
    font-size: 14.5px;
  }
}

/* ---------- 3.5 Botão "Enviar no WhatsApp" (.btn .btn-wa .qm-send) ---------- */
.btn-wa {
  padding-left: 20px;
  background: #25d366;
  color: #fff;
}

/* preenchimento que sobe no hover (base em .btn::before) */
.btn-wa::before {
  background: var(--navy);
}

.btn-wa .wa-ic {
  width: 22px;
  height: 22px;
  color: #fff;
  transition: color .4s;
}

.qm-send {
  justify-content: center;
  width: 100%;
  margin-top: 22px;
  border-radius: 12px;
}

.qm-note {
  margin-top: 12px;
  font-size: 13.5px;
  text-align: center;
  color: var(--tx-3);
}


/* =====================================================================
   4. Painel "Prefere outro canal?"
   ===================================================================== */
.ct2-side {
  grid-column: 8 / -1;
  align-self: stretch;
  position: sticky;
  top: calc(var(--hh) + 24px);
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}

.ct2-side h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.02em;
}

/* lista de canais: ícone | rótulo + contato | botão Copiar */
.ch2 {
  margin-top: 16px;
}

.ch2 li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.ch2-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(62,139,255,.35);
  border-radius: 8px;
  background: rgba(62,139,255,.16);
  color: #8cbcff;
}

.ch2-ic svg {
  width: 18px;
  height: 18px;
}

.ch2 small {
  display: block;
  font-family: var(--fm);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(222,233,255,.5);
}

.ch2 a,
.ch2 b {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  overflow-wrap: anywhere;
}

.ch2 a:hover {
  color: #8cbcff;
}

.ch2-copy {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: 12.5px;
  color: rgba(255,255,255,.85);
  transition: background .3s, color .3s, border-color .3s;
}

.ch2-copy:hover {
  border-color: #fff;
  background: #fff;
  color: var(--navy);
}

/* .ok: número copiado (contato.js) */
.ch2-copy.ok {
  border-color: #22c55e;
  background: #22c55e;
  color: #fff;
}

/* área decorativa com a marca, ocupa o espaço que sobra no painel */
.ct2-art {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 200px;
  margin-top: 8px;
  overflow: hidden;
  background: radial-gradient(closest-side, rgba(40,120,240,.22), rgba(40,120,240,0)) center / 80% 90% no-repeat;
}

.ct2-art img {
  display: block;
  width: min(78%, 340px);
  height: auto;
}

@media (max-width: 1024px) {
  .ct2-side {
    grid-column: 1 / -1;
    align-self: auto;
    position: static;
    margin-top: 20px;
  }

  .ct2-art {
    flex: none;
    height: 260px;
  }
}

/* celular: botão Copiar desce para baixo do número */
@media (max-width: 720px) {
  .ch2 li {
    grid-template-columns: 40px 1fr;
  }

  .ch2 a,
  .ch2 b {
    overflow-wrap: normal;
  }

  .ch2-copy {
    grid-column: 2;
    justify-self: start;
    margin-top: -2px;
  }
}


/* =====================================================================
   5. Animações
   ===================================================================== */
/* pulso do indicador "atendendo agora" */
@keyframes pulseG {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* entrada da bolha de mensagem */
@keyframes qmPop {
  from { opacity: .3; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}