/* ──────────────────────────────────────────────
   AAA Modal Home — design tokens Alumni / site-aaa.m2br.com
   Fonte: Rethink Sans (enqueue no PHP). Sobrescreva --aaa-overlay-brown para outro tom.
   ────────────────────────────────────────────── */

.aaa-modal-overlay {
  /* Mesmo tom que --background / --puc-bg no site novo */
  --aaa-bg-overlay: #eeebe6;
  --aaa-puc-brown: #341f16;
  --aaa-puc-blue: #3b0000;
  --aaa-puc-blue-mid: #6a2a2a;
  --aaa-puc-gold: #d4b483;
  --aaa-puc-gold-dark: #a38f6a;
  --aaa-puc-gold-light: #f5efe6;
  --aaa-puc-blue-light: #e6d8c3;
  --aaa-puc-border: #d6cfca;
  --aaa-puc-crimson: #7c0024;

  position: fixed;
  inset: 0;
  z-index: 999999;
  /* Overlay em marrom clarinho, cobertura total da viewport */
  background: var(--aaa-bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.aaa-modal-overlay.is-visible {
  opacity: 1;
}

/* Cartão sobre fundo clarinho */
.aaa-modal {
  font-family: 'Rethink Sans', ui-sans-serif, system-ui, sans-serif;
  background: #ffffff;
  color: var(--aaa-puc-brown);
  border-radius: 22px;
  max-width: 620px;
  width: 100%;
  padding: 44px 20px 40px;
  position: relative;
  text-align: center;
  box-shadow:
    0 8px 0 rgba(212, 180, 131, 0.35),
    0 32px 64px rgba(52, 31, 22, 0.14),
    0 0 0 1px var(--aaa-puc-border);
  transform: translateY(28px) scale(0.98);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.aaa-modal-overlay.is-visible .aaa-modal {
  transform: translateY(0) scale(1);
}

/* Logos (SVG extraídos do site novo) */
.aaa-modal-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  margin-bottom: 28px;
}

.aaa-modal-logo {
  display: block;
  height: auto;
  width: auto;
}

.aaa-modal-logo--alumni {
  height: 84px;
  width: auto;
}

@media (max-width: 420px) {
  .aaa-modal-logo--alumni {
    height: 72px;
  }
}

/* Fechar */
.aaa-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: var(--aaa-puc-gold-light);
  border: 1px solid var(--aaa-puc-border);
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  width: 38px;
  height: 38px;
  color: var(--aaa-puc-brown);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.aaa-modal-close:hover {
  background: #ffffff;
  color: var(--aaa-puc-blue);
  border-color: var(--aaa-puc-gold);
}

/* Título */
.aaa-modal h2 {
  font-family: 'Rethink Sans', sans-serif;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 700;
  color: var(--aaa-puc-brown);
  line-height: 1.38;
  margin: 0 0 18px;
}

.aaa-modal h2 strong {
  color: var(--aaa-puc-blue);
  font-weight: 700;
}

/* Texto */
.aaa-modal p {
  font-family: 'Rethink Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--aaa-puc-brown);
  opacity: 0.92;
  margin: 0 0 14px;
}

.aaa-modal p:last-of-type {
  margin-bottom: 32px;
}

/* Botões */
.aaa-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.aaa-btn {
  font-family: 'Rethink Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.22s,
    color 0.22s,
    border-color 0.22s,
    box-shadow 0.22s,
    opacity 0.22s;
  border: 2px solid transparent;
  box-sizing: border-box;
  line-height: 1.35;
  text-align: center;
}

.aaa-btn-primary {
  background: var(--aaa-puc-blue);
  color: #ffffff;
  border-color: var(--aaa-puc-blue);
  box-shadow: 0 4px 14px rgba(59, 0, 0, 0.22);
}

.aaa-btn-primary:hover {
  background: var(--aaa-puc-blue-mid);
  border-color: var(--aaa-puc-blue-mid);
  color: #ffffff;
  opacity: 0.96;
}

.aaa-btn-secondary {
  background: transparent;
  color: var(--aaa-puc-brown);
  border-color: var(--aaa-puc-gold-dark);
}

.aaa-btn-secondary:hover {
  background: var(--aaa-puc-gold-light);
  border-color: var(--aaa-puc-gold);
  color: var(--aaa-puc-brown);
}

@media (min-width: 540px) {
  .aaa-modal-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .aaa-btn {
    min-width: 200px;
    flex: 1 1 auto;
    max-width: 260px;
  }
}

@media (max-width: 539px) {
  .aaa-modal {
    padding: 40px 12px 30px;
    border-radius: 16px;
  }

  .aaa-modal-close {
    top: 10px;
    right: 12px;
  }

  .aaa-modal p {
    font-size: 0.9375rem;
    margin-bottom: 26px;
  }

  .aaa-btn {
    padding: 13px 18px;
    font-size: 0.9375rem;
  }
}

/* Preview homologação */
.aaa-modal-preview-tag {
  position: fixed;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000000;
  background: #3b0000;
  color: #ffffff;
  font-family: 'Rethink Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(59, 0, 0, 0.25);
}
