/* =============================================================
   produto-hero.css — Hero + Desc Bridge para páginas de produto
   Prefixo: pdh-
   Segue o mesmo design system do agisoft.css (ag-).
============================================================= */

/* -------------------------------------------------------------
   CONTAINER — restaura padding e max-width nas seções do hero
------------------------------------------------------------- */

/* Hero: mesmas medidas do header para alinhar logo ↔ conteúdo */
.pdh-hero > .container {
  max-width: 1400px !important;
  padding-left: 5% !important;
  padding-right: 5% !important;
}

/*
  Desc bridge: replica exatamente o sistema do header
  (max-width: 1400px !important + padding: 5% !important)
  para que a borda esquerda do card fique no mesmo eixo X
  que o logo e os itens de nav — sem calombo.
*/
.pdh-desc-bridge > .container {
  max-width: 1400px !important;
  padding-left: 5% !important;
  padding-right: 5% !important;
}

/* -------------------------------------------------------------
   BOTÃO DE ORÇAMENTO DO HEADER
   Pré-escondido; bundle.js revela com .hdr-orcamento--show
   quando o card do formulário sai da viewport.
------------------------------------------------------------- */
#hdrOrcamentoToggle,
#hdrOrcamentoToggleMob,
.hdr-compact-actions .hdr-orcamento {
    max-width: 0;
    opacity: 0;
    pointer-events: none;
}

/* -------------------------------------------------------------
   BREADCRUMB
------------------------------------------------------------- */
.pdh-breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  padding: 20px 0 16px;
}

.pdh-breadcrumb a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .15s;
}

.pdh-breadcrumb a:hover { color: #fff; }

.pdh-breadcrumb strong {
  color: #fff;
  font-weight: 600;
}

/* -------------------------------------------------------------
   HERO — geral
------------------------------------------------------------- */
.pdh-hero { padding-bottom: 160px; }

.pdh-hero-wrap {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* -------------------------------------------------------------
   HERO — coluna esquerda
------------------------------------------------------------- */
.pdh-hero-left { flex: 1.5; }

.pdh-hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.pdh-hero-logo {
  flex-shrink: 0;
  width: 148px;
  height: 72px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
}

.pdh-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pdh-hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.1;
  display: block; /* override produto.css .produto h1 */
  align-items: initial;
  flex: initial;
  margin-bottom: 0;
}

/* Caixa de descrição — card branco com borda azul esquerda */
.pdh-hero-desc-box {
  background: #fff;
  padding: 20px 24px;
  margin-bottom: 28px;
  border-left: 4px solid #00A3E0;
}

.pdh-hero-desc-box p {
  font-size: 15px;
  line-height: 1.75;
  color: #222;
  margin: 0;
}

/* Fabricante + Categoria */
.pdh-hero-meta {
  display: flex;
  gap: 48px;
  margin-bottom: 28px;
}

.pdh-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdh-meta-label {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  font-weight: 400;
}

.pdh-meta-value {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

/* CTA: fundo branco, texto azul, pill */
.pdh-hero-cta {
  display: inline-block;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 99px;
  padding: 11px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #17479e;
  text-decoration: none;
  transition: background .2s;
}

.pdh-hero-cta:hover {
  background: rgba(255,255,255,.88);
  color: #17479e;
}

/* -------------------------------------------------------------
   HERO — coluna direita (formulário sticky)
------------------------------------------------------------- */
.pdh-hero-right {
  flex: 0 0 380px;
  width: 380px;
}

/* Card branco do formulário */
.pdh-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  position: sticky;
  top: 80px;
  color: #17479e;
}

/* Anula o double-card: .orcamento do produto.css tem bg branco próprio */
.pdh-form-wrap .orcamento {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Título do formulário — override do .orcamento h2 de produto.css */
.pdh-form-wrap .orcamento .frm-title,
.pdh-form-wrap .orcamento h2 {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin-bottom: 16px !important;
  color: #17479e;
  text-align: center;
}

/* ── Campos ag-form dentro do pdh-form-wrap ── */
.pdh-form-wrap .ag-field {
  margin-bottom: 8px;
}

.pdh-form-wrap .ag-form input,
.pdh-form-wrap .ag-form textarea,
.pdh-form-wrap .ag-form select {
  width: 100%;
  display: block;
  border: 1px solid #cadbf2;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  padding: 9px 12px;
  background: #fff;
  font-family: inherit;
  transition: border-color .15s;
  margin: 0;
  box-sizing: border-box;
}

.pdh-form-wrap .ag-form input:focus,
.pdh-form-wrap .ag-form textarea:focus,
.pdh-form-wrap .ag-form select:focus {
  outline: none;
  border-color: #17479e;
}

.pdh-form-wrap .ag-form input::placeholder,
.pdh-form-wrap .ag-form textarea::placeholder {
  color: #aaa;
}

.pdh-form-wrap .ag-form textarea {
  resize: vertical;
  min-height: 64px;
}

/* Botão de envio laranja */
.pdh-form-wrap .ag-btn-submit,
.pdh-form-wrap input[type="submit"].ag-btn-submit {
  width: 100%;
  background: #ea7626;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
  transition: background .2s;
  display: block;
  box-sizing: border-box;
}

.pdh-form-wrap .ag-btn-submit:hover,
.pdh-form-wrap input[type="submit"].ag-btn-submit:hover {
  background: #c9601a;
}

.pdh-form-wrap .ag-btn-submit.is-loading,
.pdh-form-wrap .ag-btn-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* Chatbot dentro do form-wrap */
.pdh-form-wrap .orcamento .pd-chat-wrap {
  border-radius: 0;
  box-shadow: none;
}

/* -------------------------------------------------------------
   DESC BRIDGE — bloco descritivo boxed após o hero
   Técnica: margin-top negativo sobe sobre o fundo azul do hero
------------------------------------------------------------- */
.pdh-desc-bridge {
  position: relative;
  z-index: 10;
  margin-top: -110px;
  padding-bottom: 40px;
}

.pdh-desc-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: 0 8px 40px rgba(0,0,0,.13);
  position: relative;
  z-index: 11;
}

.pdh-desc-inner h2 {
  font-size: 26px;
  font-weight: 700;
  color: #17479e;
  margin-bottom: 20px;
}

.pdh-desc-inner p {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 14px;
}

/* Imagens dentro da descrição longa */
.pdh-desc-inner img {
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------------------
   ACEITE DE LICENÇA
------------------------------------------------------------- */
.aceite-inline {
  display: inline-flex;
  align-items: baseline;
}

.orcamento input[type="checkbox"].aceite-checkbox {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-block !important;
  width: 16px;
  height: 16px;
  vertical-align: text-top;
  margin-right: 6px !important;
}

.aceite-label {
  display: inline-block;
  margin: 0;
  padding: 0;
  line-height: 1.25;
}

/* Botão desativado */
.btnSubmit.disabled,
.btnSubmit:disabled,
#submitBt.disabled,
#submitBt:disabled {
  opacity: .65;
  pointer-events: none;
  filter: grayscale(20%);
}

/* -------------------------------------------------------------
   RESPONSIVO
------------------------------------------------------------- */
@media (max-width: 1199px) {
  .pdh-hero h1    { font-size: 34px; }
  .pdh-hero-right { flex: 0 0 340px; width: 340px; }
}

@media (max-width: 991px) {
  .pdh-hero         { padding-bottom: 80px; }
  .pdh-desc-bridge  { margin-top: -60px; }

  .pdh-hero-wrap {
    flex-direction: column;
    gap: 28px;
  }

  .pdh-hero-left  { width: 100%; }

  .pdh-hero-right {
    width: 100%;
    flex: none;
    order: -1;
  }

  .pdh-form-wrap {
    position: static;
  }

  .pdh-desc-card {
    padding: 28px 24px;
  }
}

@media (max-width: 575px) {
  .pdh-hero h1    { font-size: 26px; }
  .pdh-hero-logo  { width: 100px; height: 56px; }
  .pdh-hero-meta  { flex-direction: column; gap: 16px; }
  .pdh-desc-card  { padding: 24px 18px; }
}
