:root {
  --verde: #1c4a42;
  --verde-2: #275f54;
  --verde-3: #1f5249;
  --ouro: #c8a24c;
  --ouro-2: #b48a3c;
  --terracota: #a8543f;
  --terracota-2: #8c4231;
  --fundo: #ece2d0;
  --creme: #fdfaf3;
  --creme-2: #f5efe2;
  --texto: #37302a;
  --texto-2: #46403a;
  --cinza: #6a6051;
  --borda: #e7ddc8;
  --borda-input: #d8ccb4;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Public Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

@keyframes rayPulse { 0%, 100% { opacity: .55; } 50% { opacity: .85; } }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--texto);
  line-height: 1.6;
  background: var(--fundo);
  background-image: radial-gradient(120% 60% at 50% -10%, #f6efe1 0%, #ece2d0 60%);
  min-height: 100vh;
}

.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 1.2rem; }

h1, h2, h3 { font-family: var(--serif); color: var(--verde); font-weight: 600; line-height: 1.05; }

/* ===== Cabeçalho ===== */
.topo {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #1c4a42 0%, #1f5249 100%);
  box-shadow: 0 1px 0 var(--ouro-2), 0 6px 22px rgba(28,74,66,.28);
}
.topo-inner {
  max-width: 960px; margin: 0 auto; padding: .7rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.marca-foto {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: none;
  background: #fff; border: 2px solid var(--ouro);
  box-shadow: 0 0 0 3px rgba(200,162,76,.25); display: block;
}
.marca-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.marca-texto { display: flex; flex-direction: column; line-height: 1.1; }
.marca-nome { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; }
.marca-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: #cfe0d8; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 1.3rem; font-size: .92rem; }
.nav a { color: #e7efe9; text-decoration: none; font-weight: 500; }
.nav a:hover { text-decoration: underline; }
.nav-login {
  background: linear-gradient(180deg, var(--ouro), var(--ouro-2));
  color: #2a2008 !important; font-weight: 700;
  padding: .42rem 1.05rem; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(180,138,60,.35);
}
.nav-login:hover { filter: brightness(1.05); text-decoration: none !important; }

.conteudo { padding: 2rem 0 1rem; min-height: 60vh; }

/* ===== Alertas ===== */
.alerta { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.2rem; font-weight: 500; }
.alerta-erro { background: #fbeee9; color: var(--terracota-2); border: 1px solid #e8c4b8; }
.alerta-ok { background: #e8f0ec; color: var(--verde-2); border: 1px solid #cfe0d8; }

/* ===== Hero ===== */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; text-align: center;
  padding: 2.4rem 1.6rem 2.6rem; border-radius: 22px;
  background: radial-gradient(120% 90% at 50% 0%, #fffaf0 0%, #f7efdd 55%, #f2e8d2 100%);
  border: 1px solid #e4d8bf;
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -20px rgba(60,46,20,.35);
  overflow: hidden;
}
.hero-imagem { justify-self: center; position: relative; display: grid; place-items: center; padding: 14px; }
.hero-glow {
  position: absolute; inset: 0; border-radius: 130px;
  background: radial-gradient(closest-side, rgba(255,231,168,.9) 0%, rgba(255,231,168,.35) 60%, rgba(255,231,168,0) 100%);
  animation: rayPulse 6s ease-in-out infinite;
}
.hero-imagem img {
  position: relative; width: 208px; height: 300px; object-fit: cover; object-position: 50% 30%;
  border-radius: 120px; border: 5px solid #fffaf0;
  box-shadow: 0 14px 30px -10px rgba(40,30,12,.5);
  outline: 2px solid var(--ouro); outline-offset: -11px;
}
.hero-sobre { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--ouro-2); font-weight: 700; margin: 0 0 .3rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); margin: 0 0 .9rem; }
.hero-sub { max-width: 46ch; margin: 0 auto; color: var(--cinza); font-size: 1.04rem; }
.hero-versiculo {
  font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: var(--verde-2);
  margin: 1.3rem auto 0; display: inline-block; border-top: 1px solid #d8c79e; padding-top: 1rem;
}
.hero-versiculo .ref { font-style: normal; font-size: .82rem; letter-spacing: .08em; color: #a08a55; font-family: var(--sans); vertical-align: middle; margin-left: .3rem; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.3rem; margin-top: 1.8rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--creme); border: 1px solid var(--borda); border-radius: 18px;
  padding: 1.7rem 1.6rem; text-decoration: none; color: inherit; overflow: hidden;
  box-shadow: 0 12px 30px -22px rgba(40,30,12,.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.card-comunhao::before { background: linear-gradient(180deg, var(--verde-2), var(--verde)); }
.card-missionarios::before { background: linear-gradient(180deg, var(--terracota), var(--terracota-2)); }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -22px rgba(40,30,12,.55); }
.card-icone {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem;
}
.card-comunhao .card-icone { background: #e8f0ec; color: var(--verde); border: 1px solid #cfe0d8; }
.card-missionarios .card-icone { background: #f6e7e1; color: var(--terracota); border: 1px solid #e8cfc5; }
.card h2 { font-size: 1.62rem; margin: 1rem 0 .35rem; }
.card-missionarios h2 { color: var(--terracota); }
.card p { margin: 0 0 1.3rem; color: var(--cinza); font-size: .98rem; }
.card p strong { color: var(--texto-2); font-weight: 600; }

/* ===== Botões ===== */
.botao {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(180deg, var(--verde-2), var(--verde)); color: #fff;
  font-weight: 600; padding: .7rem 1.5rem; border: none; border-radius: 10px;
  text-decoration: none; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.botao:hover { filter: brightness(1.07); }
.botao .seta { font-size: 1.1em; }
.botao-secundario { background: linear-gradient(180deg, var(--terracota), var(--terracota-2)); }
.botao-ouro { background: linear-gradient(180deg, var(--ouro), var(--ouro-2)); color: #2a2008; box-shadow: 0 8px 20px -10px rgba(180,138,60,.7); }
.botao-grande { width: 100%; justify-content: center; padding: .95rem; font-size: 1.05rem; border-radius: 12px; box-shadow: 0 10px 24px -12px rgba(28,74,66,.7); }
.botao-pequeno { padding: .42rem .9rem; font-size: .85rem; }

/* ===== Páginas internas ===== */
.voltar { display: inline-flex; align-items: center; gap: .4rem; color: var(--verde-2); text-decoration: none; font-weight: 600; font-size: .92rem; margin-bottom: 1rem; }
.voltar:hover { text-decoration: underline; }
.kicker { margin: 0 0 .3rem; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--terracota); font-weight: 700; }
.titulo-pagina { font-size: 2.5rem; margin: 0 0 .5rem; }
.intro { margin: 0 0 1.6rem; color: var(--cinza); max-width: 54ch; }

/* ===== Formulários ===== */
.formulario {
  background: var(--creme); border: 1px solid var(--borda); border-radius: 18px;
  padding: 1.8rem 1.6rem; box-shadow: 0 12px 30px -24px rgba(40,30,12,.5); max-width: 700px;
}
.campo { margin-bottom: 1.2rem; }
.campo label, .rotulo-grupo { display: block; font-weight: 600; color: var(--texto-2); margin-bottom: .4rem; font-size: .95rem; }
.entrada {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--texto);
  padding: .7rem .8rem; border: 1px solid var(--borda-input); border-radius: 10px; background: #fff;
}
.entrada:focus { outline: 2px solid var(--verde-2); border-color: var(--verde-2); }
textarea.entrada { resize: vertical; }

.opcoes { display: grid; gap: .55rem; }
.opcao {
  display: flex; align-items: center; gap: .65rem; font-weight: 500;
  background: var(--creme-2); border: 1px solid #e3d8bf; border-radius: 10px; padding: .7rem .85rem; cursor: pointer;
}
.opcao input { width: 18px; height: 18px; accent-color: var(--verde-2); }
.opcao-urgente { background: #fbeee9; border-color: #e8c4b8; color: var(--terracota-2); font-weight: 600; }
.opcao-urgente input { accent-color: var(--terracota); }
.erros { list-style: none; padding: 0; margin: .35rem 0 0; color: var(--terracota-2); font-size: .9rem; }

/* ===== Confirmação ===== */
.confirmacao {
  text-align: center; max-width: 620px; margin: 0 auto;
  background: radial-gradient(120% 90% at 50% 0%, #fffaf0 0%, #f7efdd 60%, #f2e8d2 100%);
  border: 1px solid #e4d8bf; border-radius: 22px; padding: 3rem 1.8rem 2.6rem;
  box-shadow: 0 18px 40px -24px rgba(60,46,20,.4);
}
.confirmacao-icone {
  width: 74px; height: 74px; border-radius: 50%; display: inline-grid; place-items: center;
  background: #e8f0ec; color: var(--verde-2); font-size: 2.2rem; border: 1px solid #cfe0d8;
  box-shadow: 0 0 0 6px rgba(39,95,84,.08);
}
.confirmacao h1 { font-size: 2.6rem; margin: 1.1rem 0 .5rem; }
.confirmacao p { margin: 0 auto; max-width: 42ch; color: var(--cinza); }
.confirmacao-versiculo {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--verde-2);
  margin: 1.5rem auto !important; border-top: 1px solid #d8c79e; padding-top: 1.2rem; display: inline-block;
}
.confirmacao .botao { margin-top: .5rem; }

/* ===== Login ===== */
.login-box { max-width: 430px; margin: 0 auto; }

/* ===== Painel admin ===== */
.painel-cabecalho { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Dashboard de estatísticas */
.dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .9rem; margin: 1.2rem 0 1.6rem; }
.stat {
  position: relative; display: flex; flex-direction: column; gap: .15rem; overflow: hidden;
  background: var(--creme); border: 1px solid var(--borda); border-radius: 16px;
  padding: 1.1rem 1.2rem; text-decoration: none; color: inherit;
  box-shadow: 0 12px 30px -24px rgba(40,30,12,.5);
  transition: transform .12s ease, box-shadow .12s ease;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
a.stat:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(40,30,12,.55); }
.stat-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 600; line-height: 1; color: var(--verde); }
.stat-label { font-size: .85rem; color: var(--cinza); font-weight: 600; }
.stat-total::before { background: var(--ouro); }
.stat-total .stat-num { color: var(--ouro-2); }
.stat-novo::before { background: var(--verde-2); }
.stat-agendado::before { background: #d9a52e; }
.stat-agendado .stat-num { color: #8a5a16; }
.stat-visitado::before { background: var(--verde); }
.stat-urgente { background: #fbeee9; border-color: #e8c4b8; }
.stat-urgente::before { background: var(--terracota); }
.stat-urgente .stat-num { color: var(--terracota-2); }
.filtros { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
.filtros select { font-family: inherit; padding: .45rem .6rem; border-radius: 8px; border: 1px solid var(--borda-input); background: #fff; }

.tabela-wrap { overflow-x: auto; background: var(--creme); border: 1px solid var(--borda); border-radius: 14px; }
.tabela { width: 100%; border-collapse: collapse; min-width: 660px; }
.tabela th, .tabela td { text-align: left; padding: .75rem .85rem; border-bottom: 1px solid var(--borda); font-size: .92rem; }
.tabela th { background: #efe6d2; color: var(--texto-2); font-weight: 700; }
.tabela tr:last-child td { border-bottom: none; }
.linha-urgente { background: #fbeee9; }
.tag-urgente { display: inline-block; background: var(--terracota); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: .12rem .45rem; border-radius: 5px; margin-right: .35rem; vertical-align: middle; }
.link { color: var(--verde-2); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.badge { display: inline-block; padding: .18rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.badge-novo { background: #e8f0ec; color: var(--verde); }
.badge-agendado { background: #fbede0; color: #8a5a16; }
.badge-visitado { background: #e6efe1; color: var(--verde-2); }
.vazio { color: var(--cinza); background: var(--creme); padding: 1.4rem; border-radius: 14px; border: 1px solid var(--borda); }

/* ===== Detalhe ===== */
.detalhe-cabecalho { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ficha { background: var(--creme); border: 1px solid var(--borda); border-radius: 14px; padding: 1.1rem 1.3rem; display: grid; grid-template-columns: 1fr; gap: .15rem; }
.ficha dt { font-weight: 700; color: var(--cinza); margin-top: .6rem; font-size: .85rem; }
.ficha dd { margin: 0 0 .2rem; }
.formulario-status { margin-top: 1.4rem; }
.formulario-status h2 { font-size: 1.4rem; margin-top: 0; }

/* ===== Rodapé ===== */
.rodape { margin-top: 2.4rem; background: #e3d8c2; border-top: 1px solid #d6c8aa; }
.rodape-inner { max-width: 960px; margin: 0 auto; padding: 1.6rem 1.2rem; text-align: center; color: #7c715d; font-size: .86rem; }
.rodape-nome { margin: .1rem 0; font-family: var(--serif); font-size: 1.15rem; color: var(--verde); }
.rodape-sub { margin: .1rem 0; letter-spacing: .18em; text-transform: uppercase; font-size: .68rem; color: #a08a55; font-weight: 600; }
.rodape-privacidade { margin: .7rem auto 0; max-width: 52ch; font-size: .8rem; }

/* ===== Telas maiores ===== */
@media (min-width: 720px) {
  .hero { grid-template-columns: 250px 1fr; text-align: left; padding: 2.6rem 2.2rem; }
  .hero-sub { margin: 0; }
  .hero h1 { margin-top: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .ficha { grid-template-columns: 210px 1fr; align-items: baseline; }
  .ficha dt { margin-top: 0; }
}
