/**
 * Section: Newsletter
 * Ported from .docs/mockup/css/sections.css (NEWSLETTER CTA block, lines
 * 763-841) plus the .newsletter-form rule in the shared responsive block
 * (980px breakpoint). Tokens only — no hardcoded colours or sizes.
 */

.newsletter {
  background: var(--coastal-soft);
  color: var(--charcoal);
  padding-block: var(--section-space-m);
  padding-inline: var(--space-gutter);
}

.newsletter-inner {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-s);
}

.newsletter h2 {
  color: var(--deep-ocean);
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.newsletter h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}

.newsletter p {
  font-size: var(--text-body);
  color: var(--graphite);
}

.newsletter-form {
  display: flex;
  gap: var(--space-2xs);
  max-width: 480px;
  width: 100%;
  margin-top: var(--space-xs);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-s) var(--space-s);
  border: none;
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--font-body);
  font-size: var(--text-small);
  border-radius: var(--radius-sm);
  color: var(--charcoal);
}

.newsletter-form input::placeholder {
  color: var(--graphite);
}

.newsletter-form button {
  background: var(--terracotta);
  color: var(--white);
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background var(--duration-fast);
}

.newsletter-form button:hover {
  background: var(--terracotta-hover);
}


/* === RESPONSIVE === */
@media (max-width: 980px) {
  .newsletter-form {
    flex-direction: column;
  }
}
