/* ============================================================
   page-fale-conosco.css
   Overrides minimos da pagina Fale Conosco (/fale-conosco/).
   Tokens + componentes vivem em assets/css/system.css.
   Aqui: hero compacto, grid de canais, embed do mapa, consent
   do formulario e accordion do FAQ.
   ============================================================ */

/* ---------- Hero compacto (institucional, nao full-screen) ---------- */
.section_hero.is-compact { min-height: clamp(520px, 62vh, 660px); height: auto; }
.section_hero.is-compact .hero-master { min-height: clamp(520px, 62vh, 660px); }

/* ---------- Canais ---------- */
.section_channels { background: var(--bg); }
.channels_header { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.channels_header .text-5xl { max-width: 18ch; }
.channels_lead { color: var(--muted); font-size: 1.0625rem; line-height: 1.55; }

.channels_direct {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(28px, 4vw, 48px);
}
.channels_wa {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 16px;
}
/* 3 cards em cima + 2 centralizados embaixo (cada card = 2 de 6 colunas) */
.channels_wa > .channel_card { grid-column: span 2; }
.channels_wa > .channel_card:nth-child(4) { grid-column: 2 / span 2; }
.channels_wa > .channel_card:nth-child(5) { grid-column: 4 / span 2; }

.channel_card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2vw, 26px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.channel_card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45);
}
.channel_icon { width: 40px; height: 40px; display: block; }
.channel_icon .rect { color: var(--blue-soft); }
.channel_icon .path { color: var(--blue); }
.channel_icon.is-wa {
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  color: #1faa52;
}

.channel_label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.channel_value { font-size: 1rem; font-weight: 600; color: var(--ink-strong); line-height: 1.4; word-break: break-word; }

.channel_card.is-wa { background: var(--off); }
.channel_title { font-size: 1.0625rem; font-weight: 700; color: var(--ink-strong); margin: 2px 0 0; }
.channel_desc { font-size: 0.9rem; line-height: 1.5; color: var(--muted); flex: 1; }
.channel_card.is-wa .button { margin-top: 6px; width: 100%; justify-content: center; }

/* ---------- Formulario: link alternativo (consent LGPD canonico vive em
   system.css — .form_consent / .form_consent-label, cores AA) ---------- */
.contact_alt { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
.contact_alt a { color: var(--blue); font-weight: 600; text-decoration: none; }
.contact_alt a:hover { text-decoration: underline; }

/* ---------- Endereco + mapa ---------- */
.section_map { background: var(--navy); }   /* banda escura — separa split e FAQ (ritmo) */
.map_grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.map_address { display: flex; flex-direction: column; gap: 18px; }
.map_address .text-5xl { max-width: 12ch; }
.map_address .contact_info { align-items: flex-start; }
.map_note { font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.map_hours {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-strong);
}
.map_address .button { align-self: flex-start; }
.map_embed {
  border-radius: var(--r-lg);
  border: 1px solid var(--border-2);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9ebef;
}
.map_embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Mapa em banda NAVY: texto/ícones/botão em claro (contraste AA sobre navy) */
#contato-mapa-endereco .text-5xl { color: var(--on-dark-1); }
#contato-mapa-endereco .text-5xl .italic { color: #7FB8E8; }
#contato-mapa-endereco .map_address .contact_info .text-base { color: var(--on-dark-1); }
#contato-mapa-endereco .map_note { color: var(--on-dark-2); }
#contato-mapa-endereco .map_hours { color: #7FB8E8; }
#contato-mapa-endereco .icon-1x1-large .rect { color: rgba(255, 255, 255, 0.10); }
#contato-mapa-endereco .icon-1x1-large .path { color: #7FB8E8; }
#contato-mapa-endereco .map_embed { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); }
#contato-mapa-endereco .button.is-ghost { color: var(--on-dark-1); border-color: rgba(255, 255, 255, 0.22); }
#contato-mapa-endereco .button.is-ghost:hover { color: #7FB8E8; border-color: #7FB8E8; background: transparent; }

/* ---------- FAQ accordion ---------- */
/* com a banda navy do mapa removida (02/09), o FAQ vira a banda off que
   separa do formulário branco — ritmo off(bento) → branco(split) → off(FAQ) */
.section_faq { background: var(--off); border-top: 1px solid var(--border-2); }
.faq_inner { max-width: 860px; margin-inline: auto; }
.faq_header { display: flex; flex-direction: column; gap: 16px; text-align: left; align-items: flex-start; margin-bottom: clamp(28px, 4vw, 44px); }
.faq_header .text-5xl { max-width: 22ch; }

.faq_list { display: flex; flex-direction: column; gap: 12px; }
.faq_item {
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq_item[open] { border-color: var(--blue); }
.faq_item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq_item summary::-webkit-details-marker { display: none; }
.faq_item summary::after {
  content: "";
  width: 12px; height: 12px;
  flex: 0 0 auto;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform var(--t);
  margin-top: -4px;
}
.faq_item[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq_answer {
  padding: 0 24px 22px;
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--muted);
}

.faq_cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
  text-align: center;
}
.faq_cta-text { font-size: 1.0625rem; font-weight: 600; color: var(--ink-strong); }

/* ---------- Responsivo ---------- */
@media (max-width: 991px) {
  .channels_wa { grid-template-columns: repeat(2, 1fr); }
  .channels_wa > .channel_card,
  .channels_wa > .channel_card:nth-child(4),
  .channels_wa > .channel_card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 991px) {
  .channels_direct { grid-template-columns: 1fr; }
  .map_grid { grid-template-columns: 1fr; }
  .map_embed { aspect-ratio: 16 / 11; }
}

@media (max-width: 767px) {
  .channels_wa { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
  .channels_wa { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .faq_item summary { padding: 16px 18px; font-size: 1rem; }
  .faq_answer { padding: 0 18px 18px; }
}

/* ============================================================
   CONTATO · BENTO (reestruturação 02/09) — headline + grid de
   canais com foto ocupando 2 linhas. Adaptado do template BYQ
   ao design InvestPro (Gotham, navy/azul, tokens do system.css).
   ============================================================ */
.section_channels.is-bento { background: var(--off); }

/* Contato sem hero (02/09): a página abre num fundo claro, então o navbar
   (branco/transparente por padrão) precisa ficar SÓLIDO sempre p/ contraste,
   e o 1º bloco ganha espaço no topo p/ não ficar sob o navbar fixo. */
body[data-page="fale-conosco"] .navbar {
  padding: 14px 0;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px -16px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}
body[data-page="fale-conosco"] .navbar_logo { height: 34px; }
body[data-page="fale-conosco"] #contato-canais > .padding-global {
  padding-top: clamp(116px, 12vw, 168px);
}

.cbento-head {
  /* header 2 col alinhado a esquerda (padrao G5): titulo esq + lead dir */
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
  text-align: left;
  margin: 0 0 clamp(40px, 5vw, 64px);
}
.cbento-head_main { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cbento-lead { max-width: 52ch; }
@media (max-width: 900px) {
  .cbento-head { grid-template-columns: 1fr; align-items: start; }
}
.cbento-pill {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border: 1px solid var(--border-2); border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.cbento-title {
  font-family: var(--font-title);
  font-size: clamp(30px, 4vw, 48px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.08; color: var(--ink-strong);
  text-wrap: balance; margin: 0;
}
.cbento-title .italic { font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--blue); }
.cbento-lead { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--muted); max-width: 52ch; text-wrap: pretty; margin: 0; }

.cbento-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(196px, 1fr); gap: 12px;
}
.cbento-grid > :nth-child(1) { grid-column: 1; grid-row: 1; }
.cbento-grid > :nth-child(2) { grid-column: 1; grid-row: 2; }
.cbento-grid > :nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }  /* foto */
.cbento-grid > :nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }  /* redes */
.cbento-grid > :nth-child(5) { grid-column: 4; grid-row: 1; }
.cbento-grid > :nth-child(6) { grid-column: 4; grid-row: 2; }

.cbento-card {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 32px; padding: 24px;
  background: var(--bg); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); text-decoration: none; color: inherit;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
a.cbento-card:hover, a.cbento-card:focus-visible {
  transform: translateY(-3px); border-color: var(--blue);
  box-shadow: 0 16px 36px rgba(12, 35, 64, 0.10); outline: none;
}
.cbento-card.is-tall { justify-content: flex-start; gap: 20px; }
.cbento-ico {
  display: grid; place-items: center; flex: none;
  width: 54px; height: 54px; border-radius: var(--r-md);
  background: var(--blue-soft); color: var(--blue);
}
.cbento-ico svg { width: 26px; height: 26px; }
.cbento-info { display: flex; flex-direction: column; gap: 3px; }
.cbento-card.is-tall .cbento-info { gap: 12px; }
.cbento-label { font-family: var(--font-title); font-size: 16px; font-weight: 600; color: var(--ink-strong); }
.cbento-value { font-size: 15px; line-height: 1.5; color: var(--muted); }
.cbento-sub { font-size: 15px; line-height: 1.5; color: var(--muted); text-decoration: none; transition: color var(--t); }
.cbento-sub:hover { color: var(--blue); }

.cbento-media { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--off); }
.cbento-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }

@media (max-width: 991px) {
  .cbento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(180px, auto); }
  .cbento-grid > :nth-child(n) { grid-column: auto; grid-row: auto; }
  .cbento-grid > :nth-child(3) { grid-column: 1 / -1; }   /* foto vira faixa larga */
  .cbento-media { min-height: 260px; }
}
@media (max-width: 560px) {
  .cbento-grid { grid-template-columns: 1fr; }
  .cbento-grid > :nth-child(n) { grid-column: auto; grid-row: auto; }
  .cbento-media { min-height: 240px; }
  .cbento-card { min-height: 160px; }
}

/* ============================================================
   FORMULÁRIO · SPLIT (02/09) — painel branded escuro (foto+scrim)
   à esquerda + formulário claro à direita. Adaptado do template
   next:well aos tokens InvestPro (Gotham, navy/azul). Form claro
   escopado em #contato-form (não afeta os forms navy do site).
   ============================================================ */
.section_contact.is-split { background: var(--bg); border-top: 1px solid var(--border-2); }
.csplit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 72px); align-items: stretch; }

/* --- painel esquerdo (branded) --- */
.csplit-aside {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); min-height: 560px;
  display: flex; padding: clamp(28px, 3vw, 40px);
}
.csplit-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.csplit-scrim { position: absolute; inset: 0; background: linear-gradient(165deg, rgba(7,21,42,0.72) 0%, rgba(7,21,42,0.86) 100%); }
.csplit-aside_in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; }
.csplit-logo { height: clamp(40px, 4vw, 56px); width: auto; }
.csplit-card {
  margin-top: auto;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-md); padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.csplit-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); font-weight: 600; }
.csplit-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.csplit-contacts li, .csplit-wa { display: flex; align-items: center; gap: 12px; color: var(--on-dark-1); font-size: 15px; }
.csplit-contacts a, .csplit-wa { color: var(--on-dark-1); text-decoration: none; transition: color var(--t); }
.csplit-contacts a:hover, .csplit-wa:hover { color: #7FB8E8; }
.csplit-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-sm); background: rgba(255,255,255,0.10); color: #7FB8E8; }
.csplit-ico svg { width: 18px; height: 18px; }
.csplit-wa { margin-top: 2px; }
.csplit-wa .csplit-ico.is-wa { color: #25D366; }
.csplit-wa strong { color: #7FB8E8; font-weight: 600; }
.csplit-trust { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; line-height: 1.5; color: var(--on-dark-3); margin: 0; }

/* --- painel direito (headline + form) --- */
.csplit-form { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 28px); }
.csplit-form_head { display: flex; flex-direction: column; gap: 12px; }
.csplit-title { font-family: var(--font-title); font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink-strong); text-wrap: balance; margin: 0; }
.csplit-title .italic { font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--blue); }
.csplit-sub { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: var(--muted); margin: 0; }
.csplit-sub strong { color: var(--ink-strong); font-weight: 600; }

/* --- form CLARO (escopado — não mexe nos forms navy do site) --- */
#contato-form .form_form { display: grid; gap: 16px; }
#contato-form .form_input {
  background-color: rgba(12, 35, 64, 0.05);
  border: 1px solid rgba(12, 35, 64, 0.08);
  color: var(--ink-strong);
}
#contato-form .form_input::placeholder { color: var(--muted-2); }
#contato-form .form_input:focus { border-color: rgba(12,35,64,0.34); background-color: rgba(12,35,64,0.03); }
#contato-form .form_label { color: var(--muted); }
#contato-form .form_input:where(select) {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2340' stroke-opacity='0.5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
#contato-form .form_input:where(select) option { color: var(--ink-strong); background: #fff; }
#contato-form .form_consent-label span { color: var(--muted); }
#contato-form .form_consent-label a { color: var(--blue); }
#contato-form .form_micro-disclaimer { color: var(--muted-2); }
#contato-form .button.is-secondary[type="submit"] { border-radius: 999px; }

/* --- responsivo --- */
@media (max-width: 991px) {
  .csplit { grid-template-columns: 1fr; }
  .csplit-form { order: -1; }              /* formulário primeiro */
  .csplit-aside { min-height: 360px; }
}
@media (max-width: 767px) {
  .csplit-aside { display: none; }         /* esconde o painel decorativo */
}

/* Fale Conosco: sem o CTA master do footer — a página inteira JÁ é o convite
   ao contato (bento + formulário); a chamada "Pronto para..." ficava redundante. */
body[data-page="fale-conosco"] .fcta { display: none; }

/* Largura dos blocos: governada pela coluna global do system.css
   (min(1620px, 90%) no desktop) — regras locais de largura removidas 02/09. */

/* (teste de largura 02/09 promovido a padrão GLOBAL no system.css — regra local removida) */

/* vídeo de fundo do painel split: quem prefere menos movimento vê a foto (fallback) */
@media (prefers-reduced-motion: reduce) {
  .csplit-bg.is-video { display: none; }
}
/* com o vídeo ativo (motion ok), scrim mais leve p/ o gradiente animado aparecer;
   no fallback (reduced-motion → foto), vale o scrim forte padrão */
@media (prefers-reduced-motion: no-preference) {
  .csplit-aside .csplit-scrim {
    background: linear-gradient(165deg, rgba(7,21,42,0.42) 0%, rgba(7,21,42,0.62) 100%);
  }
}
