/*
Theme Name: With Food Stamps
Theme URI: https://wfs_site.test
Author: Studio Mate Web
Author URI: https://wfs_site.test
Description: Tema block per With Food Stamps — infrastruttura di pagamento per l'integrazione di buoni pasto e welfare aziendale negli ecommerce. Direzione visiva Verde Ledger: carta, inchiostro, smeraldo, pannelli dati monospace.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: with-food-stamps
*/

/* ---------- Base ---------- */

:root {
  --border-hair: rgba(20, 26, 23, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* Guarantee a minimum gutter on full-bleed sections so text never touches
   the viewport edge on small screens; wfs-photo-band is excluded because its
   image bleeds edge-to-edge by design. */
.wfs-header,
.wfs-footer,
.wfs-page-title-band,
.wfs-hero,
.wfs-partners-section,
.wfs-steps-section,
.wfs-fork-section,
.wfs-stats-section,
.wfs-final-cta,
main.wp-block-group {
  padding-left: clamp(10px, 4vw, 1.5rem);
  padding-right: clamp(10px, 4vw, 1.5rem);
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* ---------- Header ---------- */

.wfs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 244, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border-hair);
}

.wfs-header .wp-block-group {
  align-items: center;
}

.wfs-brand-logo {
  margin: 0;
  display: flex;
  align-items: center;
}

.wfs-brand-logo img {
  display: block;
  height: 30px;
  width: auto;
}

.wfs-footer-logo-chip {
  display: inline-flex;
  align-items: center;
  background: var(--wp--preset--color--paper);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  margin: 0 0 1rem;
}

.wfs-footer-logo-chip img {
  display: block;
  height: 22px;
  width: auto;
}

.wfs-brand-word {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--wp--preset--color--ink);
}

.wfs-brand-word .wfs-thin {
  font-weight: 400;
  opacity: 0.7;
}

.wfs-primary-nav .wp-block-navigation__container {
  gap: 2.25rem !important;
}

.wfs-primary-nav a {
  position: relative;
  color: var(--wp--preset--color--ink) !important;
  text-decoration: none !important;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.3rem 0.05rem !important;
  transition: color 0.2s ease;
}

.wfs-primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--wp--preset--color--emerald);
  transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.wfs-primary-nav a:hover {
  color: var(--wp--preset--color--emerald-dark) !important;
}

.wfs-primary-nav a:hover::after {
  right: 0;
}

.wfs-nav-cta.wp-block-button .wp-block-button__link {
  background: var(--wp--preset--color--emerald);
  color: var(--wp--preset--color--paper);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: 3px;
  border: 1px solid var(--wp--preset--color--emerald);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.wfs-nav-cta.wp-block-button .wp-block-button__link:hover {
  background: var(--wp--preset--color--emerald-dark);
  border-color: var(--wp--preset--color--emerald-dark);
  box-shadow: 0 4px 14px rgba(15, 107, 82, 0.28);
  transform: translateY(-1px);
}

/* ---------- Eyebrow / badges ---------- */

.wfs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--wp--preset--color--emerald-dark);
  background: var(--wp--preset--color--accent-soft);
  padding: 0.4rem 0.75rem 0.4rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 1.75rem !important;
}

.wfs-eyebrow .wfs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wp--preset--color--emerald);
  display: inline-block;
}

/* ---------- Hero ---------- */

.wfs-hero {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.wfs-hero-title {
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  line-height: 1.08 !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 15ch;
}

.wfs-hero-title .wfs-accent-text {
  color: var(--wp--preset--color--emerald);
}

.wfs-hero-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--wp--preset--color--ink);
  opacity: 0.78;
  max-width: 46ch;
  font-weight: 400;
}

.wfs-hero-ctas .wp-block-button__link {
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.6rem;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.wfs-hero-ctas .wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: var(--wp--preset--color--emerald-dark);
  box-shadow: 0 6px 18px rgba(15, 107, 82, 0.3);
  transform: translateY(-2px);
}

.wfs-hero-ctas .wp-block-button.is-style-outline .wp-block-button__link {
  border: 1px solid var(--border-hair);
  color: var(--wp--preset--color--ink);
}

.wfs-hero-ctas .wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--emerald);
  color: var(--wp--preset--color--emerald-dark);
  background: var(--wp--preset--color--accent-soft);
  transform: translateY(-2px);
}

.wfs-trust-line {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.82rem;
  color: var(--wp--preset--color--ink);
  opacity: 0.6;
  letter-spacing: 0.01em;
}

/* ---------- Data panel (ledger) ---------- */

.wfs-panel {
  background: var(--wp--preset--color--panel);
  border-radius: 6px;
  padding: 2rem 1.85rem 1.6rem;
  color: var(--wp--preset--color--panel-text);
  box-shadow: 0 30px 60px -25px rgba(10, 15, 12, 0.45);
  border: 1px solid #22302a;
}

.wfs-panel-head {
  border-bottom: 1px solid var(--wp--preset--color--panel-line);
  padding-bottom: 1rem !important;
  margin-bottom: 1.35rem !important;
  align-items: center;
}

.wfs-panel-title {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #9db3a9;
}

.wfs-panel-status {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.7rem;
  color: #7fd9b3;
  letter-spacing: 0.06em;
}

.wfs-status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fbf83;
  display: inline-block;
  margin-right: 0.4rem;
  box-shadow: 0 0 0 0 rgba(47, 191, 131, 0.6);
  animation: wfsLedPulse 2.6s ease-in-out infinite;
}

@keyframes wfsLedPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 191, 131, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(47, 191, 131, 0); }
}

.wfs-ledger-row {
  padding: 0.95rem 0 !important;
  border-bottom: 1px solid var(--wp--preset--color--panel-line);
  font-family: var(--wp--preset--font-family--mono);
  align-items: baseline !important;
}

.wfs-ledger-row:last-of-type {
  border-bottom: none;
}

.wfs-ledger-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93a89d;
  flex-shrink: 0;
}

.wfs-ledger-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--wp--preset--color--panel-text);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.wfs-ledger-row.wfs-live .wfs-ledger-value {
  animation: wfsValuePulse 3.4s ease-in-out infinite;
}

@keyframes wfsValuePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.wfs-panel-foot {
  margin-top: 1.5rem !important;
  padding-top: 1.1rem !important;
  border-top: 1px solid var(--wp--preset--color--panel-line);
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.68rem;
  color: #6c8478;
  letter-spacing: 0.04em;
}

/* ---------- Partner wordmark row ---------- */

.wfs-wordmark-grid .wfs-logo-col {
  display: flex;
  align-items: center;
  opacity: 1;
}

.wfs-logo-col img {
  display: block;
  height: 26px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.wfs-logo-col:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.wfs-studiomate-logo {
  margin: 0 0 1.25rem;
}

.wfs-studiomate-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.wfs-page-logo {
  margin: 0 0 1.5rem;
}

.wfs-page-logo img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.wfs-custom-icon svg {
  display: block;
}

.wfs-integration-logo {
  margin: 0 0 0.9rem;
}

.wfs-integration-logo img {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.wfs-partners-section {
  border-top: 1px solid var(--border-hair);
  border-bottom: 1px solid var(--border-hair);
}

.wfs-partner-group-label {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--emerald-dark);
  opacity: 0.75;
}

.wfs-wordmark-grid {
  border-top: 1px solid var(--border-hair);
  margin-top: 1rem !important;
  padding-top: 1.25rem !important;
}

.wfs-wordmark-grid .wp-block-column {
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--wp--preset--color--ink);
  opacity: 0.72;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- Come funziona (steps) ---------- */

.wfs-steps-section .wp-block-column {
  border-top: 1px solid var(--border-hair);
  padding-top: 2rem !important;
}

.wfs-step-number {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.85rem;
  color: var(--wp--preset--color--emerald);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.75rem !important;
}

/* ---------- Photo band ---------- */

.wfs-photo-band {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.wfs-photo-band-img {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.wfs-photo-band-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
}

.wfs-photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(15, 107, 82, 0.68), rgba(20, 26, 23, 0.58));
  mix-blend-mode: multiply;
  z-index: 1;
}

.wfs-photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 20, 18, 0.9) 0%, rgba(15, 20, 18, 0.55) 55%, rgba(15, 20, 18, 0.22) 100%);
  z-index: 1;
}

.wfs-photo-band-caption {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3.5rem 1.5rem !important;
}

.wfs-photo-band-caption .wfs-fork-eyebrow {
  color: var(--wp--preset--color--panel-text);
  opacity: 0.85;
}

.wfs-photo-band-caption h2 {
  color: var(--wp--preset--color--panel-text) !important;
  max-width: 20ch;
}

@media (max-width: 640px) {
  .wfs-photo-band {
    min-height: 340px;
  }
}

/* ---------- Bifurcazione merchant / piattaforme ---------- */

.wfs-fork-section .wp-block-column {
  border-radius: 6px;
  padding: 3rem 2.5rem !important;
}

.wfs-fork-merchant {
  background: var(--wp--preset--color--accent-soft);
}

.wfs-fork-platform {
  background: var(--wp--preset--color--panel);
  color: var(--wp--preset--color--panel-text);
}

.wfs-fork-platform h2,
.wfs-fork-platform h3 {
  color: var(--wp--preset--color--panel-text) !important;
}

.wfs-fork-platform p {
  color: var(--wp--preset--color--panel-text);
  opacity: 0.78;
}

.wfs-fork-eyebrow {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.7;
  display: block;
  margin-bottom: 1rem !important;
}

/* ---------- Statistiche di scala ---------- */

.wfs-stats-section {
  background: var(--wp--preset--color--panel);
}

.wfs-stats-section h2,
.wfs-stats-section p,
.wfs-stats-section h3 {
  color: var(--wp--preset--color--panel-text);
}

.wfs-stat-value {
  font-family: var(--wp--preset--font-family--mono);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--panel-text) !important;
  font-variant-numeric: tabular-nums;
  display: block;
}

.wfs-stat-label {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93a89d;
}

.wfs-stats-section .wp-block-column {
  border-top: 1px solid var(--wp--preset--color--panel-line);
  padding-top: 1.75rem !important;
}

/* ---------- CTA finale ---------- */

.wfs-final-cta {
  background: var(--wp--preset--color--panel);
  text-align: center;
}

.wfs-final-cta h2 {
  color: var(--wp--preset--color--panel-text) !important;
}

.wfs-final-cta p {
  color: var(--wp--preset--color--panel-text);
  opacity: 0.78;
}

.wfs-final-cta .wp-block-buttons {
  justify-content: center;
}

/* ---------- Footer ---------- */

.wfs-footer {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--panel-text);
}

.wfs-footer a {
  color: var(--wp--preset--color--panel-text) !important;
  opacity: 0.75;
  text-decoration: none !important;
}

.wfs-footer a:hover {
  opacity: 1;
  color: var(--wp--preset--color--accent-soft) !important;
}

.wfs-footer-heading {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.55;
  color: var(--wp--preset--color--panel-text) !important;
}

.wfs-footer-bottom {
  border-top: 1px solid rgba(238, 242, 239, 0.12);
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.74rem;
  opacity: 0.55;
}

/* ---------- Modal forms ---------- */

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

.wfs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 23, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}

.wfs-modal-overlay[hidden] {
  display: none;
}

.wfs-modal {
  position: relative;
  background: var(--wp--preset--color--paper);
  border-radius: 6px;
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  box-shadow: 0 40px 80px -20px rgba(10, 15, 12, 0.5);
  animation: wfsModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wfsModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wfs-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--wp--preset--color--ink);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wfs-modal-close:hover {
  opacity: 1;
}

.wfs-modal-title {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0.5rem 0 0.5rem;
}

.wfs-modal-sub {
  font-size: 0.95rem;
  opacity: 0.72;
  margin: 0 0 1.5rem;
}

.wfs-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wfs-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.wfs-field > span {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--emerald-dark);
  opacity: 0.85;
}

.wfs-field input[type="text"],
.wfs-field input[type="email"],
.wfs-field input[type="url"] {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.98rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-hair);
  border-radius: 3px;
  background: #fff;
  color: var(--wp--preset--color--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wfs-field input:focus {
  outline: none;
  border-color: var(--wp--preset--color--emerald);
  box-shadow: 0 0 0 3px var(--wp--preset--color--accent-soft);
}

.wfs-field-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.wfs-field-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--wp--preset--color--emerald);
}

.wfs-field-checkbox span {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--wp--preset--color--ink);
  opacity: 0.85;
}

.wfs-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wfs-form-submit {
  margin-top: 0.25rem;
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 3px;
  background: var(--wp--preset--color--emerald);
  color: var(--wp--preset--color--paper);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.wfs-form-submit:hover {
  background: var(--wp--preset--color--emerald-dark);
  transform: translateY(-1px);
}

.wfs-form-submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.wfs-form-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  margin: 0;
}

.wfs-form-status-ok {
  color: var(--wp--preset--color--emerald-dark);
}

.wfs-form-status-error {
  color: #a8402c;
}

@media (max-width: 480px) {
  .wfs-modal {
    padding: 2rem 1.25rem 1.5rem;
  }
}

/* ---------- FAQ (details) ---------- */

.wp-block-details {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-hair);
  margin: 0 !important;
}

.wp-block-details:last-of-type {
  border-bottom: 1px solid var(--border-hair);
}

.wp-block-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}

.wp-block-details[open] summary {
  margin-bottom: 1rem;
}

/* ---------- Notice box ---------- */

.wfs-notice {
  background: var(--wp--preset--color--accent-soft);
  border-left: 3px solid var(--wp--preset--color--emerald);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
}

.wfs-notice p {
  color: var(--wp--preset--color--emerald-dark);
  margin: 0;
}

/* ---------- Page title header ---------- */

.wfs-page-title-band {
  position: relative;
  background: var(--wp--preset--color--paper);
  border-bottom: 1px solid var(--border-hair);
  padding-top: 6rem !important;
  padding-bottom: 3.5rem !important;
}

.wfs-page-title-band .wp-block-post-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

/* Optional per-page background photo, set via --wfs-page-band-image
   (see with_food_stamps_page_band_style() in functions.php). */
body.has-page-band-image .wfs-page-title-band {
  border-bottom: none;
  overflow: hidden;
}

body.has-page-band-image .wfs-page-title-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--wfs-page-band-image);
  background-size: cover;
  background-position: center 35%;
  filter: grayscale(1) contrast(1.08) brightness(0.95);
  z-index: 0;
}

body.has-page-band-image .wfs-page-title-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 26, 23, 0.92) 0%, rgba(20, 26, 23, 0.7) 38%, rgba(15, 107, 82, 0.35) 75%, rgba(15, 107, 82, 0.25) 100%);
  z-index: 1;
}

body.has-page-band-image .wfs-page-title-band > * {
  position: relative;
  z-index: 2;
}

body.has-page-band-image .wfs-page-title-band .wp-block-post-title {
  color: var(--wp--preset--color--panel-text) !important;
}

/* ---------- Equal cards ---------- */

.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

/* ---------- Section margin reset ---------- */

.wp-block-group[style*="margin-top:0"] {
  margin-top: 0;
}

/* ---------- Motion ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.hero-copy-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-panel-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.18s;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.is-visible > * {
  animation: fadeUp 0.55s ease forwards;
}

.stagger-children.is-visible > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { animation-delay: 0.15s; }
.stagger-children.is-visible > *:nth-child(3) { animation-delay: 0.25s; }
.stagger-children.is-visible > *:nth-child(4) { animation-delay: 0.35s; }

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll,
  .fade-up,
  .fade-in,
  .hero-copy-in,
  .hero-panel-in,
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .wfs-status-led,
  .wfs-ledger-row.wfs-live .wfs-ledger-value {
    animation: none !important;
  }
}

/* === Editor: keep animated content visible while editing === */
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .fade-in,
.editor-styles-wrapper .hero-copy-in,
.editor-styles-wrapper .hero-panel-in,
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .stagger-children > * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* ---------- Blog list / archive ---------- */

.wfs-blog-list .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
}

.wfs-blog-list .wp-block-post-template > li {
  border-top: 1px solid var(--border-hair);
  padding-top: var(--wp--preset--spacing--30);
  list-style: none;
}

.wfs-post-meta {
  display: block;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--emerald-dark);
  opacity: 0.75;
  margin-bottom: 0.6rem !important;
}

.wfs-post-list-title.wp-block-post-title {
  margin-bottom: 0.75rem !important;
}

.wfs-post-list-title.wp-block-post-title a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.wfs-post-list-title.wp-block-post-title a:hover {
  color: var(--wp--preset--color--emerald-dark);
}

.wfs-blog-list .wp-block-post-excerpt {
  opacity: 0.78;
}

.wfs-blog-empty {
  padding: var(--wp--preset--spacing--50) 0;
  text-align: center;
  border-top: 1px solid var(--border-hair);
}

.wfs-blog-empty h2 {
  margin-bottom: 0.75rem;
}

.wfs-blog-empty p {
  opacity: 0.75;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.wfs-pagination {
  margin-top: var(--wp--preset--spacing--40) !important;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  align-items: center;
}

.wfs-pagination a,
.wfs-pagination .wp-block-query-pagination-numbers a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.wfs-pagination a:hover {
  color: var(--wp--preset--color--emerald-dark);
}

.wfs-pagination .current {
  color: var(--wp--preset--color--emerald);
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .wfs-fork-section .wp-block-column {
    padding: 2.25rem 1.5rem !important;
  }
}
