/*
Theme Name: Twenty Twenty-Five Child - Webfiable
Template: twentytwentyfive
Description: Child theme de Webfiable. Rediseño coherente con app.webfiable.com.
Version: 2.4.4
Author: Fernando Covecino
*/

/* Google Fonts loaded via wp_enqueue_style in functions.php */

/* ========================================================
   VARIABLES DE MARCA
   ======================================================== */
:root {
  --wf-orange:      #EA3900;
  --wf-orange-dark: #c73000;
  --wf-dark:        #111111;
  --wf-navy:        #1a1a2e;
  --wf-white:       #ffffff;
  --wf-light:       #f8f9fa;
  --wf-muted:       #6b7280;
  --wf-border:      #e5e7eb;
  --wf-radius:      8px;
  --wf-radius-lg:   12px;
  --wf-shadow:      0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.04);
  --wf-shadow-lg:   0 4px 24px rgba(0,0,0,0.10);
  --wf-section-width: 1100px;
}

/* ========================================================
   BASE — override parent's font-weight: 300
   ======================================================== */
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 400 !important;
  color: var(--wf-dark);
  letter-spacing: 0 !important;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', system-ui, sans-serif !important;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em !important;
}

a:where(:not(.wp-element-button)) { color: var(--wf-orange); }
a:where(:not(.wp-element-button)):hover { color: var(--wf-orange-dark); }

/* ========================================================
   LAYOUT — override constrained width for home sections
   The global contentSize is 760px (good for legal pages).
   But home page sections need wider content (1100px).
   ======================================================== */
.wp-site-blocks { padding-top: 62px !important; padding-bottom: 0 !important; }
.wp-site-blocks > main { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.wp-site-blocks > main > .entry-content { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.wp-site-blocks > .wp-block-template-part:last-child { margin-top: 0 !important; }

/* Widen constrained sections on the home page */
.wf-hero.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.wf-section.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: var(--wf-section-width) !important;
}

/* ========================================================
   COLUMNS — force wrapping on mobile
   WP generates flex-wrap:nowrap which prevents stacking.
   ======================================================== */
@media (max-width: 781px) {
  .wf-classic-nav ul { flex-direction: column; gap: 0.25rem; }
  .wp-block-columns:not(.is-not-stacked-on-mobile) {
    flex-wrap: wrap !important;
  }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
    flex-grow: 1;
  }
}

/* ========================================================
   HEADER — fixed nav bar
   ======================================================== */
html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

/* The template-part wrapper must not clip or constrain the fixed child */
.wp-site-blocks > header.wp-block-template-part {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

/* The nav bar itself */
.wf-header {
  position: relative;
  z-index: 9999;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Content offset handled by .wp-site-blocks padding-top: 62px */

/* Header logo */
.wf-header-logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  line-height: 0;
}
.wf-header-logo img {
  max-height: 32px;
  width: auto;
}

/* ========================================================
   NAVEGACIÓN
   ======================================================== */

/* Classic nav menu (wp_nav_menu via shortcode) — Header */
.wf-classic-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: center;
}
.wf-classic-nav ul li a {
  color: var(--wf-dark) !important;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none !important;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.wf-classic-nav ul li a:hover {
  color: var(--wf-orange) !important;
  background: rgba(234,57,0,0.06);
}

/* Classic nav menu — Footer (vertical) */
.wf-footer-nav ul {
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.wf-footer-nav ul li a {
  color: rgba(255,255,255,0.65) !important;
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
  text-decoration: none !important;
  padding: 0.25rem 0;
  display: block;
  transition: color 0.15s;
}
.wf-footer-nav ul li a:hover {
  color: var(--wf-orange) !important;
}


/* ========================================================
   BOTONES
   ======================================================== */
.wp-element-button,
.wp-block-button__link {
  font-family: 'Roboto', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1rem;
  border-radius: 6px;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none !important;
  cursor: pointer;
}

/* Primary (orange) — default fill style */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background-color: var(--wf-orange) !important;
  color: #fff !important;
  border: 2px solid var(--wf-orange) !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background-color: var(--wf-orange-dark) !important;
  border-color: var(--wf-orange-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(234,57,0,0.30);
}

/* Outline — adapts to dark/light context */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.5) !important;
  color: #fff !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
  transform: translateY(-1px);
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.wf-hero {
  background: var(--wf-navy) !important;
  color: var(--wf-white);
  position: relative;
  overflow: hidden;
  padding-top: clamp(2rem, 4vw, 3.5rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3.5rem) !important;
}
.wf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(234,57,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.wf-hero h1 {
  color: var(--wf-white) !important;
  font-size: clamp(2.5rem, 7vw, 4.75rem) !important;
}
.wf-hero h1 em {
  font-style: normal;
  color: var(--wf-orange);
}
.wf-hero p {
  color: rgba(255,255,255,0.82);
}

/* ========================================================
   SCREENSHOT IMAGE
   ======================================================== */
.wf-screenshot img {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ========================================================
   BADGE
   ======================================================== */
.wf-badge {
  display: inline-block;
  background: rgba(234,57,0,0.10);
  color: var(--wf-orange);
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* ========================================================
   SECTIONS
   ======================================================== */
.wf-section-light { background: var(--wf-light) !important; }
.wf-section-dark  { background: var(--wf-navy) !important; color: var(--wf-white); padding-top: clamp(1.75rem, 3.5vw, 3rem) !important; padding-bottom: clamp(1.75rem, 3.5vw, 3rem) !important; padding-left: clamp(1.5rem, 4vw, 3rem); padding-right: clamp(1.5rem, 4vw, 3rem); }
.wf-hero          { padding-left: clamp(1.5rem, 4vw, 3rem); padding-right: clamp(1.5rem, 4vw, 3rem); }

/* Ensure correct text color in dark sections */
.wf-section-dark h2,
.wf-section-dark h3,
.wf-section-dark p,
.wf-section-dark li { color: var(--wf-white); }

.wf-section-dark a:where(:not(.wp-element-button)) { color: var(--wf-orange); }

/* ========================================================
   STAT NUMBERS
   ======================================================== */
.wf-stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--wf-orange);
  line-height: 1;
  display: block;
}
.wf-stat-label {
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  color: var(--wf-muted);
  margin-top: 0.35rem;
  display: block;
}

/* ========================================================
   CARDS
   ======================================================== */
.wf-card {
  background: var(--wf-white);
  border: none;
  border-radius: var(--wf-radius-lg);
  box-shadow: var(--wf-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  padding: 1.75rem 1.5rem;
}
.wf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--wf-shadow-lg);
}

/* Cards on dark backgrounds */
.wf-section-dark .wf-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}
.wf-section-dark .wf-card h3 { color: var(--wf-white); }
.wf-section-dark .wf-card p  { color: rgba(255,255,255,0.72); }

/* ========================================================
   STEP NUMBERS
   ======================================================== */
.wf-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--wf-orange);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* ========================================================
   CHECKLIST
   ======================================================== */
.wf-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wf-check-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.wf-check-list li::before {
  content: '✓';
  color: var(--wf-orange);
  font-weight: 700;
  font-size: 1.05rem;
  position: absolute;
  left: 0;
  top: 0.45rem;
}

/* Checklist on dark backgrounds — inherit text color */
.wf-section-dark .wf-check-list li,
[style*="color:rgba(255,255,255"] .wf-check-list li {
  color: inherit;
}

/* ========================================================
   FAQ ACCORDION
   ======================================================== */
.wf-faq {
  max-width: 760px;
  margin: 0 auto;
}
.wf-faq details {
  border-bottom: 1px solid var(--wf-border);
}
.wf-faq details:first-child {
  border-top: 1px solid var(--wf-border);
}
.wf-faq summary {
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.15rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.15s;
}
.wf-faq summary:hover {
  color: var(--wf-orange);
}
.wf-faq summary::-webkit-details-marker { display: none; }
.wf-faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--wf-orange);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}
.wf-faq details[open] summary::after {
  content: '−';
}
.wf-faq details[open] {
  border: none;
  border-bottom: 1px solid var(--wf-border);
  outline: none;
  box-shadow: none;
}
.wf-faq details[open]:first-child {
  border-top: 1px solid var(--wf-border);
}
.wf-faq details:focus,
.wf-faq summary:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--wf-border);
}
.wf-faq .faq-answer {
  padding: 0 0 1.25rem 0;
  line-height: 1.75;
}
.wf-faq .faq-answer p {
  color: #555;
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================================
   LEGAL PAGES
   ======================================================== */
.wf-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.wf-legal h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.5rem;
}
.wf-legal h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--wf-orange);
}
.wf-legal h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.wf-legal p,
.wf-legal li {
  color: #333;
  line-height: 1.8;
}
.wf-legal p.muted {
  color: var(--wf-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.wf-legal a { color: var(--wf-orange); }

/* ========================================================
   COOKIE TABLES
   ======================================================== */
.cookie-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: var(--wf-radius);
  border: 1px solid var(--wf-border);
}
table.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
table.cookie-table th {
  background: var(--wf-light);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--wf-border);
}
table.cookie-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--wf-border);
  vertical-align: top;
}
table.cookie-table tr:last-child td { border-bottom: none; }

/* ========================================================
   BLOG — Hero
   ======================================================== */
.wf-blog-hero {
  background: var(--wf-light);
}

/* ========================================================
   BLOG — Featured card (latest post)
   ======================================================== */
.wf-featured-card {
  background: var(--wf-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s, transform 0.25s;
}
.wf-featured-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 12px 40px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.wf-featured-card-image {
  flex: 1 1 55%;
  min-width: 0;
  overflow: hidden;
}
.wf-featured-card-image .wp-block-post-featured-image {
  margin: 0;
  height: 100%;
}
.wf-featured-card-image .wp-block-post-featured-image a,
.wf-featured-card-image .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wf-featured-card-content {
  flex: 1 1 45%;
  min-width: 280px;
}
.wf-featured-card .wp-block-post-title a {
  color: var(--wf-dark) !important;
  text-decoration: none !important;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 700;
  transition: color 0.15s;
}
.wf-featured-card .wp-block-post-title a:hover {
  color: var(--wf-orange) !important;
}
.wf-featured-card .wp-block-post-excerpt__more-text a {
  color: var(--wf-orange) !important;
  font-weight: 600;
  text-decoration: none !important;
}
.wf-featured-card .wp-block-post-excerpt__more-text a:hover {
  color: var(--wf-orange-dark) !important;
}

/* ========================================================
   BLOG — Card grid
   ======================================================== */
.wf-blog-grid-section {
  background: var(--wf-light);
}
.wf-blog-grid {
  gap: 1.75rem !important;
}
.wf-blog-card {
  background: var(--wf-white);
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.03);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.wf-blog-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.10), 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.wf-blog-card .wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
}
.wf-blog-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s;
}
.wf-blog-card:hover .wp-block-post-featured-image img {
  transform: scale(1.03);
}
.wf-blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wf-blog-card .wp-block-post-title {
  flex: 1;
}
.wf-blog-card .wp-block-post-title a {
  color: var(--wf-dark) !important;
  text-decoration: none !important;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 700;
  transition: color 0.15s;
}
.wf-blog-card .wp-block-post-title a:hover {
  color: var(--wf-orange) !important;
}
.wf-blog-card .wp-block-post-excerpt__more-text a {
  color: var(--wf-orange) !important;
  font-weight: 600;
  text-decoration: none !important;
}
.wf-blog-card .wp-block-post-excerpt__more-text a:hover {
  color: var(--wf-orange-dark) !important;
}

/* Fallback when no featured image */
.wf-blog-card .wp-block-post-featured-image:empty,
.wf-featured-card-image .wp-block-post-featured-image:empty {
  background: linear-gradient(135deg, var(--wf-navy), #2a2a4e);
  min-height: 180px;
  position: relative;
}
.wf-blog-card .wp-block-post-featured-image:empty::after,
.wf-featured-card-image .wp-block-post-featured-image:empty::after {
  content: '🔒';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  opacity: 0.25;
}

/* ========================================================
   BLOG — Pagination
   ======================================================== */
.wf-blog-grid-section .wp-block-query-pagination-numbers .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.wf-blog-grid-section .wp-block-query-pagination-numbers .page-numbers.current {
  background: var(--wf-orange);
  color: #fff;
}

/* ========================================================
   SINGLE POST
   ======================================================== */
.single .wp-post-image,
.single .wp-block-post-featured-image img {
  width: 100%;
  max-width: 780px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto 2rem;
}

.wf-single-content {
  font-size: 1.05rem;
  line-height: 1.8;
}
.wf-single-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.wf-single-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.wf-single-content p {
  margin-bottom: 1.5rem;
}
.wf-single-content img {
  border-radius: var(--wf-radius);
  max-width: 100%;
  height: auto;
}
.wf-single-content blockquote {
  border-left: 3px solid var(--wf-orange);
  padding: 0.75rem 1.5rem;
  margin: 1.5rem 0;
  color: #555;
  font-style: italic;
}
.wf-single-content pre,
.wf-single-content code {
  font-size: 0.9rem;
  border-radius: 6px;
}

/* Post navigation */
.wf-single-nav a {
  color: var(--wf-orange) !important;
  text-decoration: none !important;
  font-weight: 500;
}
.wf-single-nav a:hover {
  color: var(--wf-orange-dark) !important;
}

/* ========================================================
   FOOTER
   ======================================================== */
.wf-footer {
  background: var(--wf-navy) !important;
}
.wf-footer,
.wf-footer p {
  color: rgba(255,255,255,0.60);
  font-size: 0.875rem;
}
.wf-footer h4 {
  color: var(--wf-white) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wf-footer a:where(:not(.wp-element-button)) {
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none !important;
}
.wf-footer a:where(:not(.wp-element-button)):hover {
  color: var(--wf-orange) !important;
}

/* ========================================================
   PLUGIN SECTION — base (mobile-safe light bg)
   ======================================================== */
.wf-plugin-section {
  background: var(--wf-light) !important;
}

/* ========================================================
   PLUGIN SECTION — desktop redesign (dark + terminal)
   ======================================================== */
@media (min-width: 769px) {
  /* Dark background with radial accent */
  .wf-plugin-section {
    background: var(--wf-navy) !important;
    padding-top: clamp(2.5rem, 5vw, 4rem) !important;
    padding-bottom: clamp(2.5rem, 5vw, 4rem) !important;
    position: relative;
    overflow: hidden;
  }
  .wf-plugin-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 25% 60%, rgba(234,57,0,0.10) 0%, transparent 55%);
    pointer-events: none;
  }

  /* Typography on dark */
  .wf-plugin-section h2 { color: var(--wf-white) !important; }
  .wf-plugin-section p  { color: rgba(255,255,255,0.68) !important; }

  /* Badge — brighter on dark */
  .wf-plugin-section .wf-badge {
    background: rgba(234,57,0,0.18);
    border: 1px solid rgba(234,57,0,0.30);
  }

  /* Column proportions */
  .wf-plugin-section > .wp-block-columns > .wp-block-column:first-child {
    flex-basis: 44% !important;
  }
  .wf-plugin-section > .wp-block-columns > .wp-block-column:last-child {
    flex-basis: 52% !important;
  }

  /* Checklist — left-accent rows on dark */
  .wf-plugin-section .wf-check-list li {
    color: rgba(255,255,255,0.82);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    padding-left: 1.85rem;
    border-left: 2px solid rgba(234,57,0,0.25);
    margin-bottom: 0.15rem;
    transition: border-color 0.2s;
  }
  .wf-plugin-section .wf-check-list li:hover {
    border-left-color: var(--wf-orange);
  }
  .wf-plugin-section .wf-check-list li::before {
    left: 0.4rem;
  }

  /* CTA — add glow on dark bg */
  .wf-plugin-section .wp-block-button__link:hover {
    box-shadow: 0 6px 24px rgba(234,57,0,0.35) !important;
  }

  /* ── Terminal panel ── */
  .wf-terminal {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.04);
  }

  .wf-terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.15rem;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .wf-terminal-dots {
    display: flex;
    gap: 6px;
  }
  .wf-terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }
  .wf-terminal-dots span:nth-child(1) { background: #ff5f57; }
  .wf-terminal-dots span:nth-child(2) { background: #febc2e; }
  .wf-terminal-dots span:nth-child(3) { background: #28c840; }
  .wf-terminal-title {
    color: rgba(255,255,255,0.45);
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }

  .wf-terminal-body {
    padding: 1.15rem 1.35rem 1rem;
  }

  .wf-terminal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .wf-terminal-row:last-of-type {
    border-bottom: none;
  }
  .wf-terminal-label {
    color: rgba(255,255,255,0.50);
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.78rem;
  }
  .wf-terminal-value {
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.78rem;
    font-weight: 600;
  }
  .wf-terminal-ok   { color: #28c840; }
  .wf-terminal-warn { color: #febc2e; }

  .wf-terminal-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 0.65rem 0;
  }

  /* Score bar */
  .wf-terminal-score {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .wf-terminal-score-label {
    color: rgba(255,255,255,0.50);
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .wf-terminal-score-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
  }
  .wf-terminal-score-fill {
    width: 87%;
    height: 100%;
    background: linear-gradient(90deg, var(--wf-orange), #28c840);
    border-radius: 3px;
  }
  .wf-terminal-score-value {
    color: #28c840;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Barlow Condensed', sans-serif;
    line-height: 1;
  }
  .wf-terminal-score-value small {
    color: rgba(255,255,255,0.35);
    font-size: 0.65rem;
    font-weight: 400;
  }

  .wf-terminal-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    color: rgba(255,255,255,0.30);
    font-size: 0.68rem;
  }
}

/* ========================================================
   RESPONSIVE
   ======================================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --wf-section-width: 95%;
  }
  .wf-blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile */
@media (max-width: 781px) {
  .wf-classic-nav ul { flex-direction: column; gap: 0.25rem; }
  .wf-hero h1 {
    font-size: 2.5rem !important;
  }

  .wf-stat-number {
    font-size: 2.25rem;
  }

  /* Stack buttons vertically on narrow screens */
  .wf-hero .wp-block-buttons {
    flex-direction: column;
  }
  .wf-hero .wp-block-button {
    width: 100%;
  }
  .wf-hero .wp-block-button__link {
    text-align: center;
    width: 100%;
  }

  /* Ensure section padding is comfortable */
  .wf-hero.has-global-padding,
  .wf-section.has-global-padding {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Override WP fluid typography — prevent headings from shrinking too much */
  h2.wp-block-heading {
    font-size: 1.75rem !important;
  }
  h3.wp-block-heading,
  .wf-card h3,
  .wf-faq h2 {
    font-size: 1.25rem !important;
  }
}

/* Mobile refinements — spacing, centering, breathing room */
@media (max-width: 768px) {
  /* Section vertical padding — prevent content glued to edges */
  .wf-section,
  .wf-section.has-global-padding {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .wf-section-dark,
  .wf-section-dark.has-global-padding {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .wf-hero,
  .wf-hero.has-global-padding {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Center badges on mobile */
  .wf-badge {
    display: block;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  /* Center section headings and intro text */
  .wf-section > h2,
  .wf-section > .wp-block-heading,
  .wf-section > p {
    text-align: center !important;
  }

  /* Center stat numbers row */
  .wf-section-light .wp-block-columns {
    gap: 1.5rem;
  }
  .wf-stat-number,
  .wf-stat-label {
    text-align: center;
  }

  /* Cards — consistent spacing */
  .wf-card {
    margin-bottom: 1rem;
  }

  /* FAQ container breathing room */
  .wf-faq {
    padding-left: 0;
    padding-right: 0;
  }
  .wf-faq summary {
    font-size: 0.95rem;
    padding: 1rem 0;
  }

  /* Footer columns — stack and center */
  .wf-footer .wp-block-columns {
    gap: 1.5rem;
  }
  .wf-footer .wp-block-column {
    text-align: center;
  }
  .wf-footer .wp-block-column img {
    margin-left: auto;
    margin-right: auto;
  }

  /* Screenshot — keep within bounds */
  .wf-screenshot img {
    max-width: 100%;
    height: auto;
  }

  /* Checklist — comfortable reading */
  .wf-check-list li {
    font-size: 0.9rem;
  }

  /* Step number cards — center the number */
  .wf-step-number {
    margin-left: auto;
    margin-right: auto;
  }

  /* ── Plugin section (#plugin) — mobile redesign ── */

  /* Hide the decorative illustration column */
  #plugin > .wp-block-columns > .wp-block-column:last-child {
    display: none;
  }

  /* Let the text column fill 100% */
  #plugin > .wp-block-columns > .wp-block-column:first-child {
    flex-basis: 100% !important;
  }

  /* Elevate checklist items into card-like rows */
  #plugin .wf-check-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.25rem !important;
    margin-bottom: 1.75rem !important;
  }
  #plugin .wf-check-list li {
    background: var(--wf-white);
    border: 1px solid var(--wf-border);
    border-left: 3px solid var(--wf-orange);
    border-radius: var(--wf-radius);
    padding: 0.85rem 1rem 0.85rem 2.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  #plugin .wf-check-list li::before {
    top: 0.9rem;
    left: 0.75rem;
  }

  /* CTA button — full width on mobile */
  #plugin .wp-block-buttons {
    width: 100%;
  }
  #plugin .wp-block-button {
    width: 100%;
  }
  #plugin .wp-block-button__link {
    width: 100%;
    text-align: center;
    display: block;
  }

  /* ── Blog — mobile responsive ── */

  /* Featured card stacks vertically */
  .wf-featured-card {
    flex-direction: column !important;
  }
  .wf-featured-card-image {
    flex-basis: auto !important;
  }
  .wf-featured-card-content {
    min-width: 0;
  }

  /* Grid becomes single column */
  .wf-blog-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}

@media (max-width: 480px) {
  /* Full-width buttons everywhere on small screens */
  .wp-block-buttons {
    flex-direction: column;
  }
  .wp-block-button {
    width: 100%;
  }
  .wp-block-button .wp-block-button__link {
    text-align: center;
    width: 100%;
    display: block;
  }

  .wf-hero h1 {
    font-size: 2.25rem !important;
  }

  /* Smaller card padding */
  .wf-card {
    padding: 1.25rem 1rem;
  }
}
