/* ==========================================================================
   Convite 80 Anos - Dona Josefina
   Mobile-first, alta legibilidade e acessibilidade para pessoas idosas
   Identidade visual baseada no convite oficial
   ========================================================================== */

:root {
  /* Paleta de cores do convite */
  --bg-cream: #fffdf9;
  --bg-warm: #faf3ee;
  --surface-white: #ffffff;
  --brown-primary: #7b5e54;
  --brown-dark: #3f2f2a;
  --text-body: #4f413c;
  --coral-accent: #c75757;
  --coral-dark: #a94444;
  --blush-soft: #fde8e9;
  --blush-border: #f0c5cb;
  --sage-soft: #eef4ec;

  /* Cores de ação (alto contraste WCAG AA+) */
  --maps-bg: #1a5fb4;
  --maps-bg-active: #14498c;
  --waze-bg: #0f6e8c;
  --waze-bg-active: #0a536b;
  --whatsapp-bg: #1a7a42;
  --whatsapp-bg-active: #135e32;

  /* Tipografia */
  --font-sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-base: 1.1875rem; /* 19px base */
  --text-lg: 1.375rem;    /* 22px */
  --text-xl: 1.625rem;    /* 26px */
  --text-2xl: 1.875rem;   /* 30px */

  /* Espaçamento e bordas */
  --radius-card: 24px;
  --radius-pill: 18px;
  --radius-btn: 16px;
  --shadow-card: 0 8px 24px rgba(123, 94, 84, 0.1);
  --shadow-btn: 0 4px 12px rgba(63, 47, 42, 0.16);
}

/* Modo texto ainda maior (acionado pelo botão de acessibilidade) */
html.texto-grande {
  font-size: 118%;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text-body);
  background-color: var(--bg-cream);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(253, 232, 233, 0.75) 0%, transparent 42%),
    radial-gradient(circle at 100% 12%, rgba(238, 244, 236, 0.7) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(253, 232, 233, 0.65) 0%, transparent 45%);
  min-height: 100vh;
  padding: 16px 16px 40px;
}

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

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

/* Foco visível para acessibilidade */
a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--coral-accent);
  outline-offset: 3px;
}

/* Container principal (mobile-first) */
.convite-container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Barra superior de acessibilidade (Tamanho da letra) */
.barra-acessibilidade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: var(--surface-white);
  border: 2px solid var(--blush-border);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
}

.barra-acessibilidade__label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown-dark);
}

.btn-fonte {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--brown-dark);
  background-color: var(--blush-soft);
  border: 2px solid var(--brown-primary);
  border-radius: 12px;
  padding: 10px 16px;
  min-height: 48px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-fonte:hover {
  background-color: var(--blush-border);
}

.btn-fonte:active {
  transform: scale(0.98);
}

/* Cartões de seção */
.card {
  background-color: var(--surface-white);
  border: 2px solid var(--blush-border);
  border-radius: var(--radius-card);
  padding: 26px 20px;
  box-shadow: var(--shadow-card);
}

/* Cabeçalho / Hero */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.hero__foto-moldura {
  width: 184px;
  height: 184px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--blush-border), var(--coral-accent));
  box-shadow: 0 8px 20px rgba(123, 94, 84, 0.18);
}

.hero__foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background-color: var(--bg-cream);
  border: 4px solid var(--surface-white);
}

.hero__logo {
  width: 100%;
  max-width: 310px;
  margin-top: 4px;
}

.hero__mensagem {
  font-size: var(--text-lg);
  color: var(--brown-dark);
  font-weight: 600;
  line-height: 1.45;
  max-width: 380px;
}

.hero__mensagem strong {
  color: var(--brown-primary);
  font-weight: 800;
}

/* Cabeçalho de cada seção */
.secao-titulo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.secao-icone {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--blush-soft);
  color: var(--coral-accent);
  border-radius: 12px;
}

.secao-icone svg {
  width: 22px;
  height: 22px;
}

/* Seção Data e Horário */
.data-destaque {
  background-color: var(--blush-soft);
  border: 2px solid var(--blush-border);
  border-radius: var(--radius-pill);
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 14px;
}

.data-destaque__dia-semana {
  display: block;
  font-size: 1.0625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral-dark);
  margin-bottom: 4px;
}

.data-destaque__data {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--brown-dark);
  line-height: 1.2;
}

.horario-box {
  background-color: var(--bg-warm);
  border-radius: var(--radius-pill);
  padding: 16px;
  text-align: center;
  font-size: var(--text-lg);
  color: var(--brown-dark);
}

.horario-box strong {
  font-weight: 800;
  color: var(--brown-primary);
}

.programacao-box {
  margin-top: 14px;
  background-color: var(--sage-soft);
  border: 2px solid var(--blush-border);
  border-radius: var(--radius-pill);
  padding: 18px 16px;
}

.programacao-box__titulo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.programacao-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.programacao-lista__item {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Seção Local e Como Chegar */
.local-box {
  background-color: var(--coral-accent);
  color: var(--surface-white);
  border-radius: var(--radius-pill);
  padding: 18px 18px;
  text-align: center;
  margin-bottom: 18px;
}

.local-box__nome {
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
}

.local-box__cidade {
  font-size: 1.125rem;
  font-weight: 700;
  opacity: 0.96;
}

/* Mapa ilustrado de como atravessar Guaraíta */
.mapa-guia {
  margin-bottom: 18px;
}

.mapa-guia__imagem {
  width: 100%;
  border-radius: var(--radius-pill);
  border: 2px solid var(--blush-border);
  box-shadow: 0 4px 14px rgba(123, 94, 84, 0.12);
  margin-bottom: 14px;
}

.mapa-guia__passos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--bg-warm);
  border: 2px solid var(--blush-border);
  border-radius: var(--radius-pill);
  padding: 16px;
}

.mapa-guia__passo {
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--brown-dark);
}

.mapa-guia__passo strong {
  color: var(--brown-primary);
  font-weight: 800;
}

.instrucao-texto {
  font-size: var(--text-base);
  color: var(--text-body);
  font-weight: 600;
  margin-bottom: 16px;
}

/* Grupo de botões grandes */
.botoes-mapa {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-acao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 16px 20px;
  border-radius: var(--radius-btn);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--surface-white);
  text-align: center;
  box-shadow: var(--shadow-btn);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-acao:active {
  transform: scale(0.98);
}

.btn-acao svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn-acao__logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--surface-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px;
}

.btn-acao__logo svg {
  width: 100%;
  height: 100%;
}

.btn-maps {
  background-color: var(--maps-bg);
}

.btn-maps:hover {
  background-color: var(--maps-bg-active);
}

.btn-waze {
  background-color: var(--waze-bg);
}

.btn-waze:hover {
  background-color: var(--waze-bg-active);
}

.btn-whatsapp {
  background-color: var(--whatsapp-bg);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-bg-active);
}

/* Seção Contatos da Família (WhatsApp) */
.lista-contatos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contato-card {
  background-color: var(--bg-warm);
  border: 2px solid var(--blush-border);
  border-radius: var(--radius-pill);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contato-card__cabecalho {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contato-card__foto {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 65% 25%;
  border: 3px solid var(--surface-white);
  box-shadow: 0 3px 10px rgba(123, 94, 84, 0.18);
  flex-shrink: 0;
}

.contato-card__foto--eldirene {
  object-position: 22% 72%;
}

.contato-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contato-card__nome {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--brown-dark);
}

.contato-card__parentesco {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brown-primary);
}

.contato-card__telefone {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-body);
  margin-top: 2px;
}

/* Rodapé */
.rodape {
  text-align: center;
  padding: 16px 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rodape__mensagem {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--brown-dark);
}

.rodape__assinatura {
  width: 170px;
  opacity: 0.85;
}

/* Ajustes para telas maiores (tablets e desktops) */
@media (min-width: 600px) {
  body {
    padding: 28px 24px 56px;
  }

  .card {
    padding: 32px 28px;
  }

  .hero__foto-moldura {
    width: 204px;
    height: 204px;
  }
}
