/* Widget flutuante "Rochedinho" + formulários locais (substitui o widget Bitrix24) */
:root {
  --rw-primary: var(--primary, #f7b70b);
}

/* ---------- navbar: contraste e sombras ---------- */
/* estado transparente (topo da página): sombra clara suave para destacar a barra */
.u-header .u-header__section {
  box-shadow: 0 2px 14px rgba(255, 255, 255, .25);
}
/* estado branco (após rolar): sombra escura suave */
.u-header .u-header__section--light {
  box-shadow: 0 3px 14px rgba(0, 0, 0, .22) !important;
}
/* letras no estado branco: mais escuras + sombra leve para dar destaque */
.u-header .u-header__section--light .navbar .nav-link {
  color: #3f3f3f !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.u-header .u-header__section--light .navbar .nav-link:hover,
.u-header .u-header__section--light .navbar .nav-item.active .nav-link {
  color: var(--primary, #f7b70b) !important;
}

/* ---------- botão flutuante ---------- */
.rw-button-wrapper {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.rw-button {
  position: relative;
  width: 66px;
  height: 66px;
  border: none;
  border-radius: 50%;
  background: var(--rw-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
}
.rw-button:hover { transform: scale(1.06); }
.rw-button svg { width: 30px; height: 30px; fill: #fff; }
.rw-button::before,
.rw-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--rw-primary);
  animation: rw-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.rw-button::after { animation-delay: 1.2s; }
@keyframes rw-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- balão de saudação ---------- */
.rw-hello {
  position: fixed;
  right: 100px;
  bottom: 34px;
  z-index: 10000;
  max-width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  padding: 14px 16px;
  display: none;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.rw-hello.rw-open { display: flex; }
.rw-hello img {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex: none;
}
.rw-hello-name { font-weight: 700; font-size: 14px; color: #333; margin: 0 0 2px; }
.rw-hello-text { font-size: 13px; color: #555; margin: 0; line-height: 1.35; }
.rw-hello-close {
  position: absolute;
  top: 4px; right: 8px;
  border: none; background: none;
  font-size: 16px; line-height: 1;
  color: #999; cursor: pointer; padding: 2px;
}
.rw-hello-close:hover { color: #333; }

/* ---------- painel ---------- */
.rw-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, .35);
  display: none;
}
.rw-overlay.rw-open { display: block; }
.rw-panel {
  position: fixed;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 10002;
  width: 400px;
  max-width: 100vw;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, .25);
  transform: translateX(105%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.rw-panel.rw-open { transform: translateX(0); }
.rw-panel-head {
  padding: 20px 24px 8px;
  position: relative;
}
.rw-panel-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #000;
}
.rw-panel-desc { margin: 0; font-size: 14px; color: #666; line-height: 1.4; }
.rw-panel-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none; background: none;
  font-size: 22px; line-height: 1;
  color: #999; cursor: pointer;
}
.rw-panel-close:hover { color: #333; }
.rw-panel-body {
  padding: 12px 24px 24px;
  overflow-y: auto;
  flex: 1;
}
@media (max-width: 480px) {
  .rw-panel { width: 100vw; }
}

/* ---------- campos (estilo b24 "classic") ---------- */
.rw-form-field { position: relative; margin-bottom: 14px; }
.rw-form-field input,
.rw-form-field textarea {
  width: 100%;
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 4px;
  padding: 20px 10px 6px;
  font-size: 15px;
  font-family: inherit;
  color: #000;
  outline: none;
  box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease;
}
.rw-form-field textarea { min-height: 90px; resize: vertical; }
.rw-form-field input:focus,
.rw-form-field textarea:focus {
  background: #fff;
  border-color: var(--rw-primary);
}
.rw-form-field label {
  position: absolute;
  left: 10px;
  top: 13px;
  font-size: 15px;
  color: #757575;
  pointer-events: none;
  transition: all .12s ease;
}
.rw-form-field label .rw-req { color: #d43f3a; }
.rw-form-field input:focus + label,
.rw-form-field textarea:focus + label,
.rw-form-field input:not(:placeholder-shown) + label,
.rw-form-field textarea:not(:placeholder-shown) + label {
  top: 4px;
  font-size: 11px;
  color: #757575;
}
.rw-form-btn {
  display: inline-block;
  border: none;
  border-radius: 4px;
  background: var(--rw-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  padding: 15px 20px;
  width: 100%;
  cursor: pointer;
  transition: filter .15s ease;
}
.rw-form-btn:hover { filter: brightness(.95); }
.rw-form-btn[disabled] { opacity: .6; cursor: default; }
.rw-form-msg { margin-top: 10px; font-size: 14px; display: none; }
.rw-form-msg.rw-ok { display: block; color: #2e7d32; }
.rw-form-msg.rw-err { display: block; color: #c62828; }

/* formulário embutido (página de contato) segue o mesmo visual, fundo transparente */
.rw-embed-form { max-width: 700px; margin: 0 auto; }
.rw-embed-form .rw-panel-title { font-size: 24px; }
.rw-embed-form .rw-panel-desc { margin-bottom: 16px; }
