/* =========================================================
   shared.css
   Design tokens, base reset, tipografia e componentes globais
   4ª Assembleia Quadrienal da Associação Paulista Sudeste
   ========================================================= */

:root {
  /* ---- Cores base extraídas das referências ---- */
  --color-navy-deep: #111c24;
  --color-navy: #1d2d3a;
  --color-slate: #333c48;
  --color-slate-blue: #74859a;
  --color-ink: #141c24;
  --color-charcoal: #352e37;

  /* ---- Dourado metálico (elementos decorativos) ---- */
  --gold-light: #e6cd9b;
  --gold: #d3b273;
  --gold-dark: #9e7e45;

  /* ---- Neutros ---- */
  --white: #ffffff;
  --off-white: #f4f1ec;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(0, 0, 0, 0.06);

  /* ---- Tipografia ---- */
  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script: "Great Vibes", cursive;

  /* ---- Layout ---- */
  --app-max-width: 480px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* ---- Sombras ---- */
  --shadow-soft: 0 8px 24px rgba(17, 28, 36, 0.12);
  --shadow-card: 0 12px 32px rgba(17, 28, 36, 0.18);
  --shadow-nav: 0 -6px 24px rgba(17, 28, 36, 0.16);

  /* ---- Transições ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.28s;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-navy-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =========================================================
   Contêiner da aplicação (preenche 100% da tela)
   ========================================================= */
.app-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--color-navy-deep);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   Cabeçalho de subpágina (título dourado + serifa)
   ========================================================= */
.page-header {
  text-align: center;
  padding: 64px 20px 8px;
  color: var(--white);
}
.page-header .eyebrow {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.page-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(38px, 12vw, 54px);
  line-height: 1.05;
  margin-top: 12px;
  color: var(--color-ink);
}
.page-title.on-dark {
  color: var(--white);
}
/* Linha dourada de acento sob o título */
.gold-rule {
  width: 78px;
  height: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg,
      transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  border-radius: 2px;
}

/* =========================================================
   Botão "voltar"
   ========================================================= */
.back-btn {
  position: absolute;
  top: 16px;
  left: 14px;
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-ink);
  font-size: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur) var(--ease),
    background var(--dur) var(--ease);
  backdrop-filter: blur(6px);
}
.back-btn:hover {
  background: var(--white);
  transform: translateX(-2px);
}
.back-btn:active {
  transform: scale(0.94);
}

/* =========================================================
   Utilidades
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fade-in {
  animation: fadeIn 0.5s var(--ease) both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Layout responsivo para telas maiores (desktop/tablet)
   ========================================================= */
@media (min-width: 601px) {
  .bv-scroll,
  .rel-scroll,
  .prog-scroll,
  .mat-scroll {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 96px;
  }
}

