/* ============================================================
   Newsletter signup modal — shared across contact, bgame, footer
   ============================================================ */

.nl-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 26, 14, 0.55);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: nl-fade-in 180ms ease-out;
}
.nl-modal-backdrop.is-open { display: flex; }
@keyframes nl-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.nl-modal {
  position: relative;
  background: var(--background-color, #FDF6E3);
  border: 1.5px solid rgba(17, 100, 102, 0.14);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  padding: 28px 28px 24px;
  max-width: 460px;
  width: 100%;
  font-family: var(--body-font, 'Inter', system-ui, sans-serif);
  animation: nl-pop-in 240ms cubic-bezier(0.2, 0.9, 0.25, 1.15);
}
@keyframes nl-pop-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nl-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--ink-soft, #4A3B30);
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 120ms;
}
.nl-modal__close:hover { background: rgba(0, 0, 0, 0.06); }

.nl-modal__eyebrow {
  font-family: var(--body-font);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  color: var(--golden-ochre, #E0A02F);
  margin-bottom: 8px;
  text-align: center;
}
.nl-modal__heading {
  font-family: var(--heading-font, 'Playfair Display', Georgia, serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--h2-color, #2C1A0E);
  margin: 0 0 8px;
  text-align: center;
  line-height: 1.2;
}
.nl-modal__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft, #4A3B30);
  text-align: center;
  margin: 0 0 20px;
}

.nl-modal__form { display: flex; flex-direction: column; gap: 10px; }
.nl-modal__field {
  padding: 12px 16px;
  border: 1px solid rgba(17, 100, 102, 0.25);
  border-radius: 10px;
  background: white;
  font-size: 15px;
  font-family: var(--body-font);
  color: var(--ink, #2A1F18);
  outline: none;
  transition: border-color 120ms;
}
.nl-modal__field:focus { border-color: var(--primary-color, #D95D39); }
.nl-modal__submit {
  padding: 12px 20px;
  background: var(--primary-color, #D95D39);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--body-font);
  transition: background 120ms;
  margin-top: 4px;
}
.nl-modal__submit:hover:not(:disabled) { background: var(--primary-color-dark, #BF360C); }
.nl-modal__submit:disabled { opacity: 0.6; cursor: default; }

.nl-modal__error {
  color: var(--color-error-text, #721c24);
  background: #fff1f1;
  border: 1px solid rgba(220, 53, 69, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 4px;
  display: none;
}
.nl-modal__error.is-shown { display: block; }

.nl-modal__success {
  text-align: center;
  padding: 12px 0 4px;
  display: none;
}
.nl-modal__success.is-shown { display: block; }
.nl-modal__success-icon {
  font-size: 40px;
  margin-bottom: 12px;
  color: var(--color-success, #28a745);
}
.nl-modal__success-heading {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--h2-color);
  margin: 0 0 8px;
}
.nl-modal__success-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.nl-modal__fine {
  font-size: 12px;
  color: var(--ink-faint, #8D6E63);
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
}

/* ── Trigger button variants ─────────────────────────────── */

/* Inline link-style trigger for prose (used in the footer copy). */
.nl-trigger-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-color, #D95D39);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed currentColor;
  text-decoration: none;
}
.nl-trigger-link:hover { color: var(--primary-color-dark, #BF360C); }

/* Standalone CTA card used at the bottom of the contact page and inside
   the bgame end screen. */
.nl-cta-card {
  max-width: 480px;
  margin: 32px auto 0;
  padding: 20px 24px;
  background: linear-gradient(180deg, var(--background-color, #FDF6E3) 0%, rgba(251, 243, 223, 0.6) 100%);
  border: 1px dashed rgba(17, 100, 102, 0.3);
  border-radius: 12px;
  text-align: center;
}
.nl-cta-card__eyebrow {
  font-family: var(--body-font);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 700;
  color: var(--golden-ochre, #E0A02F);
  margin-bottom: 6px;
}
.nl-cta-card__heading {
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--h2-color);
  margin: 0 0 6px;
  line-height: 1.25;
}
.nl-cta-card__text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.nl-cta-card__btn {
  display: inline-block;
  background: var(--primary-color, #D95D39);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--body-font);
  cursor: pointer;
  transition: background 120ms;
}
.nl-cta-card__btn:hover { background: var(--primary-color-dark, #BF360C); }
