:root{
  /* Paleta Morretes (verde institucional) */
  --green-700: #205546;  /* títulos/realces */
  --green-600: #276a56;  /* hover / badges */
  --green-500: #2f7a62;  /* botões */
  --bg: #f1f3f2;         /* fundo da página */
  --text: #172017;       /* texto principal */
  --muted: #5b6b5f;      /* texto secundário */
  --card: #ffffff;       /* cartão */
  --border: #e5e8e6;     /* borda sutil */
  --shadow: 0 10px 28px rgba(0,0,0,.08);
  --radius: 20px;
  color-scheme: light;
}

*{ box-sizing: border-box; }
html, body { height:100%; }
body{
  margin:0;
  font: 16px / 1.55 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

/* Layout centralizado em cartão */
.page{
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding: 32px 16px;
}
.card{
  width: min(960px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 22px;
}
.card-header{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom: 8px;
}
.logo{
  width: 96px; height: auto;
}
.titles h1{
  margin:0;
  font-size: 34px;
  letter-spacing: .4px;
  color: var(--text);
  font-weight: 800;
}
.subtitle{
  margin: 2px 0 0;
  letter-spacing: .6px;
  color: var(--muted);
  font-weight: 600;
}

/* Intro */
.intro{ margin: 10px 0 18px; text-align:center; }
.headline{
  margin: 0 0 4px 0;
  font-size: 28px;
  color: var(--green-700);
  font-weight: 800;
}
.muted{ color: var(--muted); }

/* Grid de opções */
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin-top: 8px;
}
@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; }
}
.item{
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.item h3{
  margin:0 0 6px 0;
  font-size: 20px;
  color: var(--text);
  display:flex; align-items:center; gap:8px;
}

/* Badges de status */
.badge{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #f8faf9;
}
.badge.open{ color:#fff; background: var(--green-500); border-color: var(--green-500); }
.badge.upcoming{ color: var(--green-700); background:#e8f3ef; border-color:#cfe4dc; }
.badge.closed{ color:#666; background:#eceff0; border-color:#dfe5e3; }

.helper{ margin-top:8px; font-size:13px; color: var(--muted); }

/* Botões */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration:none;
  cursor:pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--green-500);
  color:#fff;
  box-shadow: 0 6px 16px rgba(47,122,98,.22);
}
.btn-primary:hover{ background: var(--green-600); }

.btn-outline{
  background:#fff;
  color: var(--green-700);
  border-color: #cfe4dc;
}
.btn-outline:hover{
  background:#eaf4f0;
  border-color:#b9d9cd;
}

.btn-disabled{
  background:#cfd6d1;
  color:#fff;
  cursor:not-allowed;
}

/* Rodapé */
.footer{
  margin-top: 18px;
  text-align:center;
  color: var(--muted);
  font-size: 13px;
}

/* Centraliza o bloco da marca e controla respiros */
.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 12px;
  margin-bottom: 8px; /* espaço antes do título */
}

/* Tamanho responsivo da logo, sempre centralizada */
.brand .logo {
  display: block;
  width: 180px;       /* tamanho base */
  max-width: 70%;     /* previne estourar em telas muito pequenas */
  height: auto;       /* mantém proporção */
}

/* Aumenta em telas médias */
@media (min-width: 768px) {
  .brand .logo {
    width: 220px;
  }
}

/* Aumenta mais em telas grandes */
@media (min-width: 1280px) {
  .brand .logo {
    width: 260px;
  }
}
