/* ==========================================================================
   LEAFERRY GLOBAL FOOTER CONTENT BLOCK STYLES
   Mineral Journal Newsletter & 4-Column Quiet Luxury Footer (#1765)
   Fully unblocked for Blocksy Customizer, Palette, and Typography cascade.
   ========================================================================== */

.newsletter-mineral-card {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(24, 51, 38, 0.06);
  border-radius: 12px;
  padding: 48px 52px;
  box-shadow: 
    0 2px 6px -1px rgba(24, 51, 38, 0.03),
    0 8px 22px -3px rgba(24, 51, 38, 0.05);
  box-sizing: border-box;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter-prose {
  text-align: left;
}

.newsletter-prose .editorial-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--theme-font-family, "Plus Jakarta Sans", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7D6136;
  margin-bottom: 8px;
}

.newsletter-prose .editorial-index .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C8431F;
  display: inline-block;
  flex-shrink: 0;
  animation: index-pulse 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes index-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 67, 31, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(200, 67, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 67, 31, 0); }
}

.newsletter-prose h2,
.newsletter-prose h2.serif {
  font-family: var(--theme-headings-font-family, "Cormorant Garamond", Georgia, serif);
  font-size: 32px;
  font-weight: 400;
  margin: 6px 0 0;
  color: var(--theme-palette-color-1);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.newsletter-prose p {
  margin: 12px 0 0;
  font-family: var(--theme-font-family, "Plus Jakarta Sans", sans-serif);
  font-size: 14px;
  line-height: 1.75;
  color: var(--theme-palette-color-3, #3E5448);
  font-weight: 400;
}

.newsletter-form {
  margin: 0;
}

.newsletter-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(24, 51, 38, 0.14);
  border-radius: 6px;
  padding: 4px 6px 4px 18px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  min-height: 50px;
  box-shadow: 0 1px 4px rgba(24, 51, 38, 0.04);
}

.newsletter-input-wrap:hover {
  border-color: rgba(24, 51, 38, 0.22);
  box-shadow: 
    0 2px 6px rgba(24, 51, 38, 0.04),
    0 6px 16px -2px rgba(24, 51, 38, 0.07),
    0 14px 28px -6px rgba(24, 51, 38, 0.06);
}

.newsletter-input-wrap:focus-within {
  border-color: var(--theme-palette-color-1, #005441);
  box-shadow: 
    0 0 0 3px rgba(24, 51, 38, 0.08),
    0 2px 8px -1px rgba(24, 51, 38, 0.04),
    0 8px 24px -4px rgba(24, 51, 38, 0.08);
}

.newsletter-input-wrap input[type="email"],
.newsletter-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--theme-font-family, "Plus Jakarta Sans", sans-serif);
  font-size: 14px;
  color: var(--theme-palette-color-4, #1A3326);
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  height: 44px;
  min-height: 44px;
  letter-spacing: 0.01em;
}

.newsletter-input-wrap input::placeholder {
  color: #7A968B;
  opacity: 0.85;
  font-weight: 400;
}

.btn-newsletter-submit {
  background: var(--theme-palette-color-1);
  color: #FAFBF9;
  border: none;
  border-radius: 4px;
  height: 42px;
  padding: 0 24px;
  font-family: var(--theme-font-family, "Plus Jakarta Sans", sans-serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 84, 65, 0.20);
  flex-shrink: 0;
  margin: 0;
  line-height: normal;
}

.btn-newsletter-submit:hover {
  background: var(--theme-palette-color-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 84, 65, 0.32);
}

.newsletter-sub-hint {
  margin-top: 10px;
  font-family: var(--theme-font-family, "Plus Jakarta Sans", sans-serif);
  font-size: 12px;
  color: var(--theme-palette-color-3, #3E5448);
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: left;
}

@media (max-width: 991px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .newsletter-mineral-card {
    padding: 36px 28px;
  }
}

@media (max-width: 767px) {
  .newsletter-mineral-card {
    padding: 28px 20px;
    border-radius: 12px;
    margin: 20px auto;
  }
  .newsletter-prose h2 {
    font-size: 24px;
  }
  .newsletter-input-wrap {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    min-height: auto;
  }
  .newsletter-input-wrap input[type="email"],
  .newsletter-input-wrap input {
    width: 100%;
    height: 42px;
    text-align: center;
    font-size: 14px;
    padding: 0;
  }
  .btn-newsletter-submit {
    width: 100%;
    height: 44px;
    text-align: center;
    border-radius: 4px;
  }
  .newsletter-sub-hint {
    text-align: center;
  }
}

/* ==========================================================================
   10B. GLOBAL QUIET LUXURY FOOTER (4 COLUMNS, POLICIES & TRUST BADGES)
   ========================================================================== */
.footer-newsletter-wrap {
  max-width: 1200px;
  margin: 40px auto 20px;
  padding: 0 20px;
  box-sizing: border-box;
}

.lf-site-footer,
.is-layout-constrained > .lf-site-footer,
#footer .entry-content > .lf-site-footer {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  background: var(--theme-palette-color-7, #FAFBF9);
  padding: 64px 0 68px;
  border-top: 1px solid rgba(0, 84, 65, 0.06);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

/* 段落间距归零：避免与 WordPress is-layout-flow 的 22.5px 默认边距叠加 */
.lf-site-footer p,
.footer-newsletter-wrap p {
  margin-top: 0;
  margin-bottom: 0;
  margin-block: 0;
}

.lf-site-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1.05fr 1.1fr;
  gap: 44px;
  align-items: flex-start;
}

.brand-col .name {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.36em;
  padding-left: 0.36em;
  color: var(--theme-palette-color-1);
  font-weight: 600;
}

.brand-col .sub {
  font-family: var(--theme-headings-font-family, "Cormorant Garamond", Georgia, serif);
  font-size: 13px;
  font-style: italic;
  color: var(--theme-palette-color-3, #3E5448);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.brand-col .entity-note {
  font-family: var(--theme-font-family, "Plus Jakarta Sans", sans-serif);
  font-size: 12px;
  color: var(--theme-palette-color-3, #3E5448);
  line-height: 1.65;
  margin-top: 14px;
  max-width: 290px;
}

.footer-col h5 {
  margin: 0 0 16px;
  font-family: var(--theme-font-family, "Plus Jakarta Sans", sans-serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9B7E4B;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--theme-palette-color-3, #3E5448);
  text-decoration: none;
  font-family: var(--theme-font-family, "Plus Jakarta Sans", sans-serif);
  font-size: 13px;
  margin-bottom: 11px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: var(--theme-palette-color-1);
  transform: translateX(2px);
}

.footer-col .highlight-pill {
  display: inline-block;
  font-size: 10px;
  background: rgba(0, 84, 65, 0.06);
  color: var(--theme-palette-color-1);
  border-radius: 10px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: 1px;
  font-weight: 500;
}

.footer-legals {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 84, 65, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11.5px;
  color: var(--theme-palette-color-3, #3E5448);
  letter-spacing: 0.04em;
}

.lf-site-footer .footer-legals > * {
  margin-top: 0;
  margin-bottom: 0;
}

.payment-badges-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-badge-svg {
  height: 24px;
  width: auto;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  opacity: 0.95;
  transition: all 0.2s ease;
}

.payment-badge-svg:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.footer-copy-text {
  font-family: var(--theme-font-family, "Plus Jakarta Sans", sans-serif);
  font-size: 11.5px;
  color: var(--theme-palette-color-3, #3E5448);
  letter-spacing: 0.04em;
}

@media (max-width: 991px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-legals {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    align-items: center;
  }
}

/* ==========================================================================
   GUTENBERG BLOCK EDITOR WYSIWYG ADAPTATION (Content Block #1765)
   ========================================================================== */
.editor-styles-wrapper .footer-newsletter-wrap,
.editor-styles-wrapper .lf-site-footer .wrap {
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

.editor-styles-wrapper .newsletter-mineral-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
}

.editor-styles-wrapper .lf-site-footer {
  width: 100%;
  margin-top: 32px;
}

/* Guard each column and prose block to vertical flow in editor */
.editor-styles-wrapper .brand-col,
.editor-styles-wrapper .footer-col,
.editor-styles-wrapper .newsletter-prose {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.editor-styles-wrapper .footer-col a,
.editor-styles-wrapper .footer-col p {
  display: block;
  margin-bottom: 8px;
}
