/* ============================================================
   Canal de Ouvidoria — Construtora Sucesso
   Para trocar a cor da marca, altere apenas as variáveis abaixo.
   ============================================================ */
:root {
  --brand: #1b4e8d;          /* cor principal da marca */
  --brand-dark: #123a6b;     /* tom mais escuro (gradiente) */
  --brand-light: #eaf1fa;    /* fundo suave */
  --accent: #2e9e5b;         /* verde (botão enviar / sucesso) */
  --text: #3d4852;
  --text-soft: #6b7a88;
  --card-border: #e3e8ee;
  --radius: 10px;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}

img { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Cabeçalho ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand img { height: 44px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 13px 22px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(27, 78, 141, .3);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 55%, #3a70b5 100%);
  color: #fff;
  padding: 90px 0 130px;
  text-align: center;
  overflow: hidden;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 18px;
}
.hero p {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  opacity: .95;
}
.hero .wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 70px;
  display: block;
}

/* ---------- Seções da página inicial ---------- */
.section { padding: 64px 0; }
.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #2b3440;
  margin-bottom: 8px;
}
.section .subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 16px;
}
.section p { color: var(--text-soft); margin-bottom: 14px; max-width: 900px; }

.split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.list-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.list-cards .card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--text);
  font-size: .96rem;
  box-shadow: 0 2px 8px rgba(20, 40, 70, .05);
}

.band {
  background: var(--brand-light);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.step {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 6px; color: #2b3440; }
.step p { font-size: .92rem; margin: 0; }

.cta-final { text-align: center; padding: 70px 0 84px; }
.cta-final h2 { margin-bottom: 10px; }
.cta-final p { margin: 0 auto 26px; }

footer {
  background: #22292f;
  color: #b9c2cb;
  padding: 28px 0;
  font-size: .88rem;
}
footer .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: #dfe6ec; text-decoration: none; }

/* ---------- Página de atendimento ---------- */
.hero-compact { padding: 64px 0 110px; }

.form-wrap {
  max-width: 860px;
  margin: -70px auto 70px;
  position: relative;
  z-index: 5;
  padding: 0 24px;
}
.form-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(20, 40, 70, .13);
  padding: 40px 44px;
}
@media (max-width: 640px) { .form-card { padding: 28px 20px; } }

.form-card .intro p { color: var(--text-soft); margin-bottom: 14px; }
.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #2b3440;
  margin: 26px 0 14px;
}

.choice { display: flex; gap: 12px; margin: 10px 0 6px; }
.btn-choice {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .05em;
  border: 2px solid var(--brand);
  background: #fff;
  color: var(--brand);
  border-radius: 8px;
  padding: 10px 28px;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-choice:hover { background: var(--brand-light); }
.btn-choice.active {
  background: linear-gradient(180deg, #2f7fd6, var(--brand));
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(27, 78, 141, .35);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  color: #2b3440;
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  border: 1px solid #cfd8e0;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 78, 141, .15);
}
.field .hint { font-size: .82rem; color: var(--text-soft); margin-top: 5px; }
.field.invalid input, .field.invalid textarea { border-color: #d64545; }
.field .error-msg { display: none; font-size: .82rem; color: #d64545; margin-top: 5px; }
.field.invalid .error-msg { display: block; }

.file-field input[type="file"] { display: none; }
.file-box {
  display: flex;
  align-items: center;
  border: 1px solid #cfd8e0;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f4f7;
}
.file-box .file-btn {
  background: #fff;
  border: none;
  border-right: 1px solid #cfd8e0;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: .92rem;
  cursor: pointer;
  white-space: nowrap;
}
.file-box .file-name {
  padding: 12px 14px;
  font-size: .92rem;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lgpd {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--text-soft);
  margin: 20px 0;
}
.lgpd input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }

.btn-send {
  background: linear-gradient(180deg, #46c06e, var(--accent));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  padding: 14px 34px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(46, 158, 91, .35);
  transition: transform .15s ease, opacity .15s ease;
}
.btn-send:hover { transform: translateY(-1px); }
.btn-send:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.hidden { display: none !important; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(25, 32, 40, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  padding: 42px 36px 34px;
  text-align: center;
  transform: translateY(12px);
  transition: transform .2s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.check-circle {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 4px solid #cdeed9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.check-circle svg { width: 44px; height: 44px; }
.modal h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #2b3440;
  margin-bottom: 16px;
}
.modal p { color: var(--text-soft); margin-bottom: 12px; font-size: .97rem; }
.modal .protocolo { color: #2b3440; }
.modal .btn-ok {
  margin-top: 14px;
  background: linear-gradient(180deg, #2f7fd6, var(--brand));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 30px;
  cursor: pointer;
}
.modal.error .check-circle { border-color: #f3d2d2; }
.modal .alert-icon { color: #d64545; font-size: 2.4rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
