/* style.css — identidade visual sobre o Bootstrap 5 */
:root {
  --navy: #1B2430;
  --navy-deep: #121926;
  --gold: #B9895A;
  --gold-light: #D9B48B;
  --cream: #F7F4EF;
  --paper: #FFFFFF;
  --ink: #262220;
  --muted: #786F68;
  --line: #E7E1D8;
  --success: #4C7A5D;
  --warning: #C08B2C;
  --danger: #B4463A;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
}

h1, h2, h3, .brand, .font-display {
  font-family: var(--font-display);
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-deep);
  color: var(--cream);
  border-bottom: 1px solid rgba(217,180,139,0.25);
}
.topbar .brand {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.topbar .brand span { color: var(--cream); font-weight: 300; }
.topbar a.nav-link, .topbar .btn-link {
  color: var(--cream);
  opacity: 0.85;
}
.topbar a.nav-link:hover { opacity: 1; color: var(--gold-light); }

/* ---------- Landing hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 65%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(217,180,139,0.25);
  border-radius: 50%;
}
.hero::before {
  content: "";
  position: absolute;
  right: 5%;
  bottom: -25%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(217,180,139,0.18);
  border-radius: 50%;
}
.hero h1 { font-weight: 600; line-height: 1.1; }
.hero .lead { color: rgba(247,244,239,0.8); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.card.step-card {
  transition: transform .15s ease, box-shadow .15s ease;
}
.card.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(27,36,48,0.08);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-deep);
}
.btn-outline-cream {
  border-color: rgba(247,244,239,0.5);
  color: var(--cream);
}
.btn-outline-cream:hover {
  background: rgba(247,244,239,0.1);
  color: var(--cream);
  border-color: var(--cream);
}
.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
  font-weight: 600;
}
.btn-navy:hover { background: var(--navy-deep); color: var(--cream); }

/* ---------- Auth pages ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-deep);
}
.auth-card {
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.auth-side {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 3rem 2.5rem;
}

/* ---------- Status badges ---------- */
.badge-status { font-weight: 600; padding: 0.4em 0.75em; border-radius: 999px; font-size: 0.75rem; letter-spacing: 0.02em; }
.badge-pendente { background: #F3E4C8; color: var(--warning); }
.badge-em_andamento { background: #DCE6F1; color: #2D5F8A; }
.badge-concluido { background: #DCEBE1; color: var(--success); }
.badge-cancelado { background: #F1DAD6; color: var(--danger); }

/* ---------- Sidebar (dashboards) ---------- */
.sidebar {
  background: var(--navy-deep);
  min-height: calc(100vh - 64px);
  color: var(--cream);
}
.sidebar .nav-link {
  color: rgba(247,244,239,0.75);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-weight: 500;
}
.sidebar .nav-link.active, .sidebar .nav-link:hover {
  background: rgba(217,180,139,0.15);
  color: var(--gold-light);
}

/* ---------- Empty state ---------- */
.empty-state {
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

/* ---------- Misc ---------- */
.text-gold { color: var(--gold); }
.section-label { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--muted); font-weight: 600; }
.divider-gold { width: 48px; height: 3px; background: var(--gold); border-radius: 2px; }
.form-label { font-weight: 600; font-size: .875rem; color: var(--navy); }
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(185,137,90,0.18);
}
.request-card { border-left: 4px solid var(--gold); }
.suggestion-card { border-left: 4px solid var(--navy); }

/* ---------- Balão de fala do Alfredo (home) ---------- */
.speech-bubble {
  position: relative;
  margin: 1.25rem auto 0;
  max-width: 340px;
  background: var(--navy-deep);
  border: 1px solid rgba(217,180,139,0.3);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.speech-bubble::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 40px;
  width: 18px;
  height: 18px;
  background: var(--navy-deep);
  border-left: 1px solid rgba(217,180,139,0.3);
  border-top: 1px solid rgba(217,180,139,0.3);
  transform: rotate(45deg);
}

/* ---------- Ícones de diferenciais (home) ---------- */
.diff-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
}

/* ---------- Stepper (nova solicitação em etapas) ---------- */
.stepper {
  display: flex;
  align-items: flex-start;
  max-width: 820px;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 84px;
  text-align: center;
}
.step-dot span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.step-dot small {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.1;
}
.step-dot.active span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}
.step-dot.active small { color: var(--navy); font-weight: 600; }
.step-dot.done span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}
.step-line {
  flex: 1 1 auto;
  height: 2px;
  background: var(--line);
  margin-top: 17px;
}

/* ---------- Características (chips obrigatório/desejável) ---------- */
.feature-chip {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
}
.feature-chip .form-check-label { font-weight: 600; font-size: 0.9rem; }
.feature-priority {
  display: none;
  gap: 6px;
  margin-top: 8px;
}
.feature-priority.active { display: flex; }
.feature-priority .btn {
  font-size: 0.72rem;
  padding: 2px 10px;
}

/* ---------- Meu Perfil: abas ---------- */
.profile-tabs {
  display: flex;
  overflow-x: auto;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 0 8px;
}
.profile-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}
.profile-tab:hover { color: var(--navy); }
.profile-tab.active { color: var(--navy); border-bottom-color: var(--gold); }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.chk {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.chk input { accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.chk:has(input:checked) { border-color: var(--gold); background: rgba(185,137,90,0.07); }

.personality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.pchip { cursor: pointer; }
.pchip input { display: none; }
.pchip span {
  display: block;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}
.pchip input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.priority-list { list-style: none; padding: 0; margin: 0; max-width: 480px; }
.priority-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--paper);
}
.priority-item .rank {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.priority-item .label { flex: 1; font-weight: 600; font-size: 0.9rem; }
.priority-item .arrows { display: flex; gap: 4px; }
.priority-item .arrows button {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 6px;
  width: 28px; height: 28px;
  font-size: 0.8rem;
  cursor: pointer;
}
.priority-item .arrows button:disabled { opacity: 0.3; cursor: default; }

/* ---------- Barra de contato no topo (acima do menu) ---------- */
.topbar-strip {
  background: var(--gold);
  color: var(--navy-deep);
}
.topbar-strip span { color: var(--navy-deep); opacity: 0.85; }
.topbar-strip-phone {
  color: var(--navy-deep);
  font-weight: 800;
}
.topbar-strip-phone:hover { color: var(--navy); }

/* ---------- Modal customizado (mural de parceiros) ---------- */
.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(18,25,38,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 20px;
}
.modal-box-custom {
  background: var(--paper);
  border-radius: 16px;
  padding: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.demand-card {
  border-left: 4px solid var(--gold);
}
.demand-card .price-range {
  color: var(--gold-dark, var(--gold));
  font-weight: 700;
}

/* ---------- Slider de prioridades (vermelho -> verde) ---------- */
.priority-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.priority-slider-row .label {
  width: 140px;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}
.priority-slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c0392b 0%, #e0a326 50%, #27ae60 100%);
  outline: none;
}
.priority-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 3px solid var(--cream);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  cursor: pointer;
}
.priority-slider-row input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 3px solid var(--cream);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  cursor: pointer;
}
.priority-slider-row .value-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

/* ---------- Seletor de cidade na barra superior ---------- */
.topbar-city-select {
  background: transparent;
  border: none;
  color: var(--navy-deep);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}
.topbar-city-select:focus { outline: none; }

/* ---------- Cards de "escolha seu caminho" na home ---------- */
.path-card {
  background: var(--paper, #fff);
  border: 1.5px solid var(--line, #e5e0d8);
  border-radius: 14px;
  color: var(--ink, #262220);
  transition: transform 0.15s, border-color 0.15s;
}
.path-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: var(--ink, #262220);
}
.path-card-icon {
  font-size: 1.8rem;
  color: var(--gold-dark, var(--gold));
  display: block;
  margin-bottom: 10px;
}

.doc-card {
  background: var(--navy-deep);
  color: var(--cream);
  border-radius: 14px;
  transition: opacity 0.15s;
}
.doc-card:hover { opacity: 0.9; color: var(--cream); }
.doc-card i.bi-file-earmark-text { color: var(--gold); }
.doc-card span { color: rgba(247,244,239,0.7); }
