/* GCM Brasil · página Contato. Carregado só por contato.html, depois de styles.css (usa --navy, --surface, --line, .btn-*).
   CONTRATO DE USO: estilos com prefixo .ct / .cc / .fld; não afeta outras páginas. */
.ct { --fh: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif; --night: #0a1633;
  --float: 0 2px 6px rgba(11, 31, 75, .05), 0 18px 40px -16px rgba(11, 31, 75, .2); --erro: #b42318; }

/* ---------- abertura curta ---------- */
.ct-hero { background: var(--navy); color: #fff; }
.ct-hero .wrap { padding-top: 22px; padding-bottom: 30px; }
.ct-hero .crumbs { margin-bottom: 10px; }
.ct-hero-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; }
.ct-h1 { font-family: var(--fh); font-weight: 800; font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1; letter-spacing: -.035em; color: #fff; }
.ct-sub { max-width: 60ch; font-size: .9375rem; line-height: 1.5; color: var(--on-dark-2); }

/* ---------- canais: cartões flutuando na emenda azul/branco ---------- */
.ct-canais { --ov: 50%; background: linear-gradient(180deg, var(--navy) 0 var(--ov), transparent var(--ov)); }
.ct-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 0; padding: 0 0 8px; list-style: none; }
.cc { min-width: 0; }
.cc-in {
  display: grid; align-content: start; gap: 4px; height: 100%; padding: 22px; border-radius: var(--r-card);
  background: #fff; box-shadow: var(--float); color: var(--ink); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.cc-in:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(11, 31, 75, .07), 0 26px 50px -20px rgba(11, 31, 75, .28); }
a.cc-in:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: var(--r-card); }
.cc-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 12px; background: var(--blue-100); color: var(--royal); }
.cc-wa .cc-ic { background: #e3f7ea; color: #1a9e4b; }
.cc-t { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.cc-v { font-family: var(--fh); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.015em; color: var(--night); overflow-wrap: anywhere; }
.cc-d { font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.cc.is-pend .cc-v { color: var(--ink-2); font-size: 1rem; }
.cc-redes .cc-in { gap: 6px; }
.cc-rs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cc-r { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue-100); color: var(--navy); transition: background-color .2s var(--ease), color .2s var(--ease); }
a.cc-r:hover { background: var(--navy); color: #fff; }
.cc-r.is-pend { opacity: .45; cursor: help; }

/* ---------- formulário + orientações ---------- */
.ct-main { display: grid; gap: 40px; padding-block: clamp(48px, 6vw, 80px); }
@media (min-width: 960px) { .ct-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.ct-head { display: grid; gap: 8px; margin-bottom: 26px; }
.ct-h2 { font-family: var(--fh); font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.04; letter-spacing: -.03em; color: var(--night); }
.ct-lead { font-size: .9375rem; color: var(--ink-2); }
.ct-grid { display: grid; gap: 18px 20px; }
@media (min-width: 640px) { .ct-grid { grid-template-columns: 1fr 1fr; } .fld-full { grid-column: 1 / -1; } }
.fld { display: grid; gap: 6px; align-content: start; min-width: 0; }
.fld label { font-size: .9375rem; font-weight: 600; color: var(--night); }
.fld .opt { font-weight: 400; color: var(--ink-2); }
.fld :is(input:not([type="checkbox"]), select, textarea) {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--blue-200); border-radius: var(--r-btn);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.fld select { appearance: none; padding-right: 42px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231c3a7a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; }
.fld textarea { min-height: 150px; resize: vertical; }
.fld :is(input, select, textarea)::placeholder { color: #8a95ad; }
.fld :is(input:not([type="checkbox"]), select, textarea):focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px var(--blue-100); }
.fld.is-erro :is(input:not([type="checkbox"]), select, textarea) { border-color: var(--erro); box-shadow: 0 0 0 3px #fde4e1; }
.fld-err { font-size: .8125rem; font-weight: 500; color: var(--erro); }
.fld-err:empty, .fld-dica:empty { display: none; }
.fld-dica { font-size: .8125rem; color: var(--royal); }
.fld-count { justify-self: end; font-size: .75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fld-check { grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--r-btn); background: var(--surface); }
.fld-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--royal); cursor: pointer; }
.fld-check label { font-weight: 400; font-size: .875rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.fld-check label a { color: var(--royal); font-weight: 600; }
.fld-check .fld-err { grid-column: 2; }
.fld-check.is-erro { box-shadow: inset 0 0 0 1px var(--erro); }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.ct-note { font-size: .8125rem; color: var(--ink-2); }

/* pop-up de confirmação (<dialog> modal, aberto por contato.js só depois de envio válido) */
.ct-ok { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: clamp(24px, 4vw, 36px); border: 0; border-radius: var(--r-card);
  background: #fff; color: var(--night); box-shadow: var(--shadow-lg); }
.ct-ok[open] { display: grid; justify-items: start; gap: 12px; animation: ct-pop .35s var(--ease); }
.ct-ok::backdrop { background: rgba(7, 21, 54, .55); }
.ct-ok svg { color: #1a9e4b; }
.ct-ok h2 { font-family: var(--fh); font-size: 1.5rem; letter-spacing: -.02em; color: var(--night); }
.ct-ok p { max-width: 56ch; color: var(--ink-2); }
.ct-ok form { margin-top: 6px; }
@keyframes ct-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .ct-ok[open] { animation: none; } }
.ok-path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: ct-draw .6s .15s var(--ease) forwards; }
@keyframes ct-draw { to { stroke-dashoffset: 0; } }

.ct-aside { display: grid; gap: 18px; padding: clamp(22px, 3vw, 30px); border-radius: var(--r-card); background: var(--surface); }
@media (min-width: 960px) { .ct-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.ct-h3 { font-family: var(--fh); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--night); }
.ct-tips { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ct-tips li { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--blue-200); }
.ct-tips b { font-size: .9375rem; color: var(--night); }
.ct-tips span { font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.ct-hor { display: flex; flex-wrap: wrap; gap: 4px 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); }
.ct-hor b { color: var(--night); }

/* ---------- perguntas rápidas ---------- */
.ct-faq-sec { padding-bottom: clamp(56px, 7vw, 96px); }
.ct-faq-wrap { display: grid; gap: 8px; }
@media (min-width: 960px) { .ct-faq-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 56px; align-items: start; } }
.ct-faq details { border-bottom: 1px solid var(--line); }
.ct-faq details:first-child { border-top: 1px solid var(--line); }
.ct-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.35; color: var(--night); cursor: pointer; list-style: none;
}
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%231c3a7a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 1v10M1 6h10'/%3E%3C/svg%3E") no-repeat center;
  transition: transform .3s var(--ease);
}
.ct-faq details[open] summary::after { transform: rotate(45deg); }
.ct-faq summary:hover { color: var(--royal); }
.ct-faq details p { max-width: 64ch; padding: 0 44px 18px 0; color: var(--ink-2); }
.ct-faq details p a { color: var(--royal); font-weight: 600; }

/* entrada dos cartões, uma vez */
@media (prefers-reduced-motion: no-preference) {
  .js .cc { animation: ct-in .7s var(--ease) both; animation-delay: calc(var(--k, 0) * 70ms); }
  .cc:nth-child(2) { --k: 1; } .cc:nth-child(3) { --k: 2; } .cc:nth-child(4) { --k: 3; } .cc:nth-child(5) { --k: 4; }
}
@keyframes ct-in { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 639px) {
  .ct-canais { --ov: 64px; }
  .ct-cards { grid-template-columns: 1fr; gap: 10px; }
  /* celular: cartão compacto, ícone à esquerda */
  .cc-in { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px 18px; }
  .cc-ic { grid-row: span 3; margin: 2px 0 0; }
  .cc-redes .cc-in { grid-template-columns: 1fr; }
  .ct-actions .btn { width: 100%; }
  .fld-count { font-size: .8125rem; } /* nada abaixo de 13 px no celular */
}
