/* =========================================================
   Editorial Sections CSS
   Romm Coffee — editorial statement band + newsletter.

   Design ideas adapted from an illy-style editorial layout,
   re-skinned to the Romm Coffee chocolate palette and the
   project's design tokens.

   Works with:
   - Pages/Index.cshtml
   - wwwroot/js/newsletter.js
   - wwwroot/css/design-tokens.css
========================================================= */

/* =========================================================
   1. Editorial statement band
   Full-width deep-chocolate band with a centered brand
   statement and a single outline call to action.
========================================================= */

.editorial-band {
  background:
    radial-gradient(
      120% 120% at 50% 0%,
      var(--color-primary, #4b2e1e) 0%,
      var(--color-primary-dark, #321d12) 70%
    );

  padding-block: var(--section-padding-lg, clamp(5rem, 9vw, 8rem));
}

.editorial-band-inner {
  width: min(var(--container-sm, 760px), calc(100% - 2rem));
  margin-inline: auto;
  text-align: center;
}

.editorial-eyebrow {
  display: inline-block;
  margin-bottom: var(--space-4, 1rem);

  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--weight-bold, 700);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent, #d6a85a);
}

.editorial-title {
  margin: 0 auto;
  max-width: 20ch;

  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, var(--text-4xl, 3.25rem));
  line-height: var(--line-snug, 1.3);
  color: #fff9f2;
}

.editorial-title em {
  font-style: italic;
  color: var(--color-accent, #d6a85a);
}

.editorial-text {
  margin: var(--space-5, 1.5rem) auto 0;
  max-width: 46ch;

  font-size: var(--text-md, 1.125rem);
  line-height: var(--line-relaxed, 1.75);
  color: rgba(255, 249, 242, 0.78);
}

.editorial-actions {
  margin-top: var(--space-6, 2rem);
}

/* Outline button reads on a dark background here. */
.editorial-band .btn-outline-custom {
  color: #fff9f2;
  border-color: rgba(255, 249, 242, 0.55);
}

.editorial-band .btn-outline-custom:hover {
  color: var(--color-primary-dark, #321d12);
  background: #fff9f2;
  border-color: #fff9f2;
}

/* =========================================================
   2. Newsletter
========================================================= */

.newsletter {
  background: var(--color-surface-soft, #f2e5d8);
  padding-block: var(--section-padding-md, clamp(3.5rem, 7vw, 6rem));
}

.newsletter-inner {
  width: min(34rem, calc(100% - 2rem));
  margin-inline: auto;
  text-align: center;
}

.newsletter-title {
  margin: 0 0 var(--space-2, 0.5rem);

  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, var(--text-2xl, 2rem));
  line-height: var(--line-tight, 1.15);
  color: var(--color-text, #2a1c14);
}

.newsletter-subtitle {
  margin: 0 0 var(--space-6, 2rem);

  font-size: var(--text-base, 1rem);
  line-height: var(--line-normal, 1.6);
  color: var(--color-text-muted, #7a6658);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 1rem);
}

.newsletter-row {
  display: flex;
  gap: var(--space-3, 0.75rem);
}

.newsletter-input {
  flex: 1 1 auto;
  min-width: 0;

  padding: 0.875rem 1.125rem;

  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text, #2a1c14);

  background: var(--color-surface, #fff9f2);
  border: 1px solid var(--color-border, #e7d8c8);
  border-radius: var(--radius-full, 999px);

  transition: border-color var(--transition-base, 220ms ease);
}

.newsletter-input::placeholder {
  color: var(--color-text-muted, #7a6658);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-primary, #4b2e1e);
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3, 0.75rem);
  text-align: left;
  cursor: pointer;
}

.newsletter-consent input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-primary, #4b2e1e);
  flex-shrink: 0;
}

.newsletter-consent span {
  font-size: var(--text-xs, 0.75rem);
  line-height: var(--line-normal, 1.6);
  color: var(--color-text-muted, #7a6658);
}

.newsletter-error {
  margin: 0;
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-danger, #b42318);
}

.newsletter-success {
  padding: var(--space-5, 1.5rem);

  background: var(--color-success-light, #e7f6ed);
  border: 1px solid
    color-mix(in srgb, var(--color-success, #2f7d4f) 30%, transparent);
  border-radius: var(--radius-lg, 1rem);

  color: var(--color-secondary-dark, #654129);
}

.newsletter-success strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: var(--text-md, 1.125rem);
  color: var(--color-success, #2f7d4f);
}

/* Honeypot field — hidden from real users. */
.newsletter-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 560px) {
  .newsletter-row {
    flex-direction: column;
  }

  .newsletter-row .btn-custom {
    width: 100%;
  }
}
