/* ============================================================
   SD Segurança Eletrônica — LP Câmeras Comercial & Industrial
   assets/css/cameras-comercial.css
   Deltas sobre cameras.css (carregado ANTES). Não repete base.
   ============================================================ */

/* ── Badge "Comercial & Industrial" no nav ─────────────────── */
.cam-nav-tag {
  display: inline-block; margin-left: 12px; vertical-align: middle;
  font-family: 'Montserrat', sans-serif;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,194,255,.3); border-radius: 50px;
  padding: 3px 11px;
}
@media (max-width: 600px) { .cam-nav-tag { display: none; } }

/* ── FIX: link da logo do rodapé não pode ser faixa clicável ── */
/* O <a> da logo (filho direto do footer) virava 100% de largura por
   conter uma <img> display:block. inline-block encolhe ao tamanho real. */
.cam-footer > a { display: inline-block; }

/* ── Logo do topo maior (vence o cameras.css compartilhado) ── */
.cam-nav-logo { height: 48px; }
@media (max-width: 600px) { .cam-nav-logo { height: 40px; } }
@media (max-width: 380px) { .cam-nav-logo { height: 34px; } }

/* ── Hero: segunda linha do eyebrow / selo ─────────────────── */
.hero-eyebrow.b2b {
  background: rgba(0,194,255,.12);
  border-color: rgba(0,194,255,.28);
}

/* ── Solução: imagem em retrato (técnico) ──────────────────── */
.solution-visual.portrait .solution-img { height: 500px; object-position: center 35%; }
@media (max-width: 960px) { .solution-visual.portrait .solution-img { height: 380px; } }

/* ── Tipos de Operação: apenas 2 cards (comercial + industrial) ── */
.types-grid.duo {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px; margin-left: auto; margin-right: auto;
}
.types-grid.duo .type-img { height: 240px; }
@media (max-width: 960px) { .types-grid.duo { grid-template-columns: 1fr; max-width: 480px; } }

/* ── Mid-CTA com imagem de central de monitoramento ────────── */
.mid-cta-section.has-bg {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark3) 100%);
  padding: 72px 0;
}
.mid-cta-section.has-bg::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/cta-central-monitoramento.webp') center/cover no-repeat;
  opacity: .30;
}
.mid-cta-section.has-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,15,30,.94) 0%, rgba(8,15,30,.58) 60%, rgba(13,34,68,.55) 100%);
}
.mid-cta-section.has-bg .container { position: relative; z-index: 1; }
.mid-cta-section.has-bg .mid-cta-sub { color: rgba(255,255,255,.82); }

/* ── Formulário: fachada corporativa ao fundo ──────────────── */
.cam-form-section.has-bg { position: relative; overflow: hidden; }
.cam-form-section.has-bg::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/form-fachada-empresa.webp') center/cover no-repeat;
  opacity: .14;
}
.cam-form-section.has-bg .container { position: relative; z-index: 1; }

/* ── Nota de qualificação B2B no formulário ────────────────── */
.form-b2b-note {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(0,194,255,.08); border: 1px solid rgba(0,194,255,.2);
  color: #b0bdd4; font-size: .82rem; line-height: 1.4;
  border-radius: 10px; padding: 10px 15px; margin-bottom: 20px;
}
.form-b2b-note i { color: var(--cyan); font-size: 1rem; flex-shrink: 0; }

/* ── Selo B2B abaixo do checklist da solução ───────────────── */
.b2b-seal {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 8px; padding: 10px 18px;
  background: rgba(26,95,212,.08); border: 1px solid rgba(26,95,212,.18);
  border-radius: 50px; color: #2a3650; font-size: .85rem; font-weight: 600;
}
.b2b-seal i { color: var(--blue); }

/* ── intl-tel-input: integração com o tema escuro do form ──── */
.form-group .iti { width: 100%; display: block; }
.iti__selected-flag { border-radius: 10px 0 0 10px; }
.iti--separate-dial-code .iti__selected-flag { background: rgba(255,255,255,.06); }
.iti--separate-dial-code .iti__selected-dial-code { color: #e8eefc; }
.iti__arrow { border-top-color: #8a96aa; }
.iti__arrow--up { border-bottom-color: #8a96aa; }
/* Dropdown de países no escuro (especificidade p/ vencer o CSS do plugin) */
.cam-form-section .iti__country-list {
  background-color: var(--dark2);
  border: 1px solid rgba(255,255,255,.12);
  color: #e8eefc;
  max-width: calc(100vw - 48px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.cam-form-section .iti__country { color: #e8eefc; background-color: transparent; }
.cam-form-section .iti__country.iti__highlight,
.cam-form-section .iti__country:hover { background-color: rgba(45,122,255,.22); }
.cam-form-section .iti__dial-code { color: var(--gray); }
.cam-form-section .iti__divider { border-bottom-color: rgba(255,255,255,.12); }
/* O campo mantém o estilo do form; o plugin aplica padding-left p/ a bandeira */
.form-group .iti input#camPhone { background: rgba(255,255,255,.06); }

/* ── Mobile guards: botões longos não causam overflow ──────── */
@media (max-width: 600px) {
  .solution-section .btn-primary,
  .cam-form-section .btn-primary,
  .mid-cta-section .btn-cta-mid {
    white-space: normal; text-align: center;
  }
  .solution-section .btn-primary { width: 100%; justify-content: center; }
  .b2b-seal { width: 100%; justify-content: center; text-align: center; }
  .form-b2b-note { align-items: flex-start; }
  /* Tabela comparativa: colunas 50/50 e quebra de palavra — sem overflow */
  .comparison-table { table-layout: fixed; }
  .comparison-table td, .comparison-table th { word-break: break-word; }
}
