/* ============================================================
   NEWSLETTER SECTION
   Color palette: #D9DFC6 | #EFF3EA | #FFFDF0 | #FFF2C2
   ============================================================ */

.newsletter-section {
  background-color: #D9DFC6;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter-eyebrow {
  font-family: 'Georgia', serif; /* swap for Bethany's chosen display font */
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6b4f;
  margin-bottom: 12px;
}

.newsletter-heading {
  font-family: 'Georgia', serif; /* swap for Bethany's chosen display font */
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #3a3a28;
  line-height: 1.2;
  margin-bottom: 16px;
}

.newsletter-subtext {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: #5a5a40;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* Form */
#newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

#newsletter-fname,
#newsletter-email {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  padding: 14px 18px;
  border: 1.5px solid #b8bfa0;
  border-radius: 4px;
  background-color: #FFFDF0;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: #3a3a28;
  outline: none;
  transition: border-color 0.2s;
}

#newsletter-fname::placeholder,
#newsletter-email::placeholder {
  color: #a0a07a;
}

#newsletter-fname:focus,
#newsletter-email:focus {
  border-color: #8a9a6a;
}

#newsletter-submit {
  padding: 14px 28px;
  background-color: #3a3a28;
  color: #FFFDF0;
  border: none;
  border-radius: 4px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

#newsletter-submit:hover {
  background-color: #5a5a38;
}

#newsletter-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Feedback messages */
#newsletter-success {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  color: #4a6a2a;
  margin-top: 16px;
  line-height: 1.6;
}

#newsletter-error {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  color: #8a3a28;
  margin-top: 12px;
}

/* Mobile: stack form elements full-width */
@media (max-width: 560px) {
  #newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  #newsletter-fname,
  #newsletter-email {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  #newsletter-submit {
    width: 100%;
  }
}

/* Privacy note */
.newsletter-privacy {
  font-size: 0.75rem;
  color: #8a8a68;
  margin-top: 20px;
  line-height: 1.5;
}

/* ── Newsletter Modal ──────────────────────────────────────── */

#nl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 58, 40, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
  animation: nl-fade-in 0.2s ease;
}

#nl-modal-overlay[hidden] {
  display: none;
}

@keyframes nl-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#nl-modal-card {
  background: #FFFDF0;
  border-radius: 8px;
  padding: 48px 40px 36px;
  max-width: 500px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 40px rgba(58, 58, 40, 0.25);
  animation: nl-slide-up 0.25s ease;
}

@keyframes nl-slide-up {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#nl-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #8a8a68;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}

#nl-modal-close:hover {
  color: #3a3a28;
}

/* Form inside modal — stacked layout */
#nl-modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

#nl-modal-fname,
#nl-modal-email {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #b8bfa0;
  border-radius: 4px;
  background-color: #fff;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: #3a3a28;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

#nl-modal-fname::placeholder,
#nl-modal-email::placeholder {
  color: #a0a07a;
}

#nl-modal-fname:focus,
#nl-modal-email:focus {
  border-color: #8a9a6a;
}

#nl-modal-submit {
  width: 100%;
  padding: 14px 28px;
  background-color: #3a3a28;
  color: #FFFDF0;
  border: none;
  border-radius: 4px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}

#nl-modal-submit:hover {
  background-color: #5a5a38;
}

#nl-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#nl-modal-success {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  color: #4a6a2a;
  margin-top: 16px;
  line-height: 1.6;
}

#nl-modal-error {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  color: #8a3a28;
  margin-top: 8px;
}

body.nl-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  #nl-modal-card {
    padding: 40px 24px 28px;
  }
}
