/* ==========================================================
   CTA Section — Newsletter Subscribe
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Section wrapper ──────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  background-color: #1a6b2f;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 50%, #2d9e4f 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, #145a25 0%, transparent 55%);
  padding: 80px 24px;
  font-family: 'DM Sans', sans-serif;
}

/* Leaf pattern overlay */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cellipse cx='40' cy='40' rx='14' ry='28' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='2' transform='rotate(30 40 40)'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

/* ── Container ────────────────────────────────────────────── */
.cta-section .container {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Inner two-column grid ────────────────────────────────── */
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

/* ── LEFT: Copy ───────────────────────────────────────────── */

/* Badge */
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4f5de;
  margin-bottom: 24px;
}

/* Headline */
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 20px;
}

.cta-title em {
  font-style: italic;
  color: #7deda2;
}

/* Sub-copy */
.cta-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 40px;
  max-width: 480px;
}

/* Stats row */
.cta-stats {
  display: flex;
  gap: 40px;
}

.cta-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
}

.cta-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── RIGHT: Form box ──────────────────────────────────────── */
.cta-box {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.10);
}

.cta-box-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #14532d;
  margin: 0 0 4px;
}

.cta-box-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
}

/* Form row */
.cta-form {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}

.cta-form:focus-within {
  border-color: #22c55e;
}

.cta-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #111827;
  border: none;
  outline: none;
  background: #fff;
  min-width: 0;
}

.cta-form input[type="email"]::placeholder {
  color: #9ca3af;
}

.cta-form button {
  flex-shrink: 0;
  padding: 13px 20px;
  background: #16a34a;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

.cta-form button:hover {
  background: #15803d;
}

.cta-form button:active {
  transform: scale(0.98);
}

/* Privacy note */
.cta-privacy {
  font-size: 12.5px;
  color: #6b7280;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Divider + avatar row */
.cta-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

/* Avatar stack */
.avatar-stack {
  display: flex;
  flex-direction: row;
}

.av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 2.5px solid #fff;
  margin-left: -10px;
  letter-spacing: 0;
}

.av:first-child {
  margin-left: 0;
}

.cta-reader-text {
  font-size: 13px;
  color: #4b5563;
}

.cta-reader-text strong {
  color: #14532d;
  font-weight: 700;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-box {
    max-width: 520px;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 60px 20px;
  }

  .cta-stats {
    gap: 24px;
  }

  .cta-form {
    flex-direction: column;
    border-radius: 10px;
  }

  .cta-form input[type="email"],
  .cta-form button {
    width: 100%;
    border-radius: 0;
  }

  .cta-form button {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 14px;
    text-align: center;
  }
}