/* ==========================================================================
   Setor de Relacionamento AEP — estilos
   Marca AEP: azul-marinho #16375c (título/logo) · teal #15a3b5 (botões)
   ========================================================================== */

:root {
  --navy: #16375c;
  --teal: #15a3b5;
  --teal-hover: #0f8695;
  --text: #1f2a37;
  --muted: #5b6b7b;
  --card-bg: #ffffff;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  /* Fundo com foto (assets/duas-mulheres-conversando.jpeg) + overlay escuro
     em gradiente para manter contraste com o cartão branco.
     Para voltar ao gradiente puro, comente a linha abaixo e descomente a seguinte. */
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(36, 80, 126, 0.75) 0%, rgba(22, 55, 92, 0.85) 45%, rgba(12, 33, 54, 0.92) 100%),
    url("../assets/duas-mulheres-conversando.jpeg") center / cover no-repeat fixed;
  /* background: radial-gradient(1200px 800px at 50% -10%, #24507e 0%, #16375c 45%, #0c2136 100%); */
}

/* Cartão branco central --------------------------------------------------- */
.card {
  width: 100%;
  max-width: 720px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
}

.card__header {
  text-align: center;
  margin-bottom: 28px;
}

.card__logo {
  display: block;
  margin: 0 auto 16px;
  height: 48px;
  width: auto;
}

.card__title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.card__subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
}

/* Área de conteúdo -------------------------------------------------------- */
.content {
  min-height: 120px;
}

/* Estado: loading --------------------------------------------------------- */
.state-loading {
  text-align: center;
  color: var(--muted);
  padding: 24px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border: 4px solid rgba(21, 163, 181, 0.25);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Aviso (not_found) ------------------------------------------------------- */
.notice {
  text-align: center;
  background: #f3f7fb;
  border: 1px solid #dbe6f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 26px;
}

.notice__title {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
}

.notice__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Grid de cards ----------------------------------------------------------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fbfcfe;
  border: 1px solid #e7eef5;
  border-radius: 14px;
  padding: 22px 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.person:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(22, 55, 92, 0.12);
}

.person__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.person__name {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
}

/* Botão "Agendar" --------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--teal-hover);
}

.btn--disabled {
  background: #c4ccd4;
  color: #f4f6f8;
  cursor: not-allowed;
  pointer-events: none;
}

/* Estado: erro ------------------------------------------------------------ */
.state-error {
  text-align: center;
  padding: 20px 0;
}

.state-error__title {
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 700;
}

.state-error__text {
  margin: 0 0 20px;
  color: var(--muted);
}

/* Foco visível de teclado ------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Respeita quem prefere menos movimento ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsivo: 1 coluna no mobile ------------------------------------------ */
@media (max-width: 640px) {
  .card {
    padding: 28px 20px;
  }
  .people {
    grid-template-columns: 1fr;
  }
}
