/* ==========================================================================
   Elementor widgets — one block per widget, all classes prefixed "spw-".
   Use the theme variables so light/dark and Customizer colours just work:
   var(--bg) var(--surface) var(--ink) var(--muted) var(--accent) var(--hairline)
   ========================================================================== */

/* Stats Row */
.spw-stats { display: grid; gap: 20px; }
.spw-stats--2 { grid-template-columns: repeat(2, 1fr); }
.spw-stats--3 { grid-template-columns: repeat(3, 1fr); }
.spw-stats--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .spw-stats { grid-template-columns: 1fr; } }
.spw-stats__item { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px 20px; text-align: center; background: var(--surface); }
.spw-stats__number { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--ink); }
.spw-stats__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Button Row — reuses the theme's .btn / .btn-outline / .link-arrow looks.
   The extra selectors keep Elementor's own link colours from winning. */
.spw-buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.spw-buttons--left   { justify-content: flex-start; }
.spw-buttons--center { justify-content: center; }
.spw-buttons--right  { justify-content: flex-end; }
.spw-buttons a.spw-btn { text-decoration: none; }
.spw-buttons a.spw-btn svg { width: 18px; height: 18px; flex: none; }
.spw-buttons a.spw-btn--primary   { color: #fff; }
.spw-buttons a.spw-btn--secondary { color: var(--ink); }
.spw-buttons a.spw-btn--secondary:hover { color: var(--accent); }
.spw-buttons a.spw-btn--tertiary  { color: var(--accent); padding: 13px 4px; }
.spw-buttons a.spw-btn--tertiary svg { width: 18px; height: 18px; }
/* Surface variants. The author picks Light or Dark per row to match the
   section it sits in; these use the fixed light/dark palettes and never
   depend on the site's light/dark mode. Secondary outlines are drawn at
   about 55% of the text colour so they clear 3:1 contrast on the surface. */
.spw-buttons--on-dark a.spw-btn--primary { background: var(--light-accent); color: #fff; } /* same brand orange as the site's primary button */
.spw-buttons--on-dark a.spw-btn--secondary {
  color: var(--dark-ink);
  border-color: rgba(237, 230, 220, 0.6);
  border-color: color-mix(in srgb, var(--dark-ink) 60%, transparent);
}
.spw-buttons--on-dark a.spw-btn--secondary:hover { color: #fff; border-color: var(--dark-ink); background: rgba(255, 255, 255, 0.08); }
.spw-buttons--on-dark a.spw-btn--tertiary { color: var(--dark-accent); }

.spw-buttons--on-light a.spw-btn--primary { background: var(--light-accent); color: #fff; }
.spw-buttons--on-light a.spw-btn--secondary {
  color: var(--light-ink);
  border-color: rgba(41, 29, 17, 0.55);
  border-color: color-mix(in srgb, var(--light-ink) 55%, transparent);
}
.spw-buttons--on-light a.spw-btn--secondary:hover { color: var(--light-accent); border-color: var(--light-accent); background: transparent; }
.spw-buttons--on-light a.spw-btn--tertiary { color: var(--light-accent); }

@media (max-width: 480px) {
  .spw-buttons a.spw-btn--primary,
  .spw-buttons a.spw-btn--secondary { flex: 1 1 100%; justify-content: center; }
}

/* Used Tools — one row of logos + names. Light/dark is chosen per widget
   (not by the site mode), so the colours come from the fixed palettes. */
.spw-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.spw-tools--left   { justify-content: flex-start; }
.spw-tools--center { justify-content: center; }
.spw-tools--right  { justify-content: flex-end; }
.spw-tools--on-light { --spw-ink: var(--light-ink); --spw-muted: var(--light-muted); --spw-line: rgba(41, 29, 17, 0.35); }
.spw-tools--on-dark  { --spw-ink: var(--dark-ink);  --spw-muted: var(--dark-muted);  --spw-line: rgba(237, 230, 220, 0.4); }
.spw-tools .spw-tools__title { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--spw-muted); }
.spw-tools .spw-tools__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.spw-tools .spw-tool { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 500; line-height: 1; color: var(--spw-ink); }
.spw-tools--pills .spw-tool { padding: 9px 16px 9px 12px; border: 1px solid var(--spw-line); border-radius: 999px; }
.spw-tools--plain .spw-tools__list { gap: 10px 26px; }
.spw-tool__logos { display: inline-flex; align-items: center; gap: 4px; }
.spw-tool__logo { display: block; width: auto; height: 20px; max-width: 64px; color: var(--spw-ink); }
.spw-tool__logos .spw-tool__logo { width: 20px; }
.spw-tool__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px; border: 1px solid var(--spw-line); font-size: 10px; font-weight: 700; letter-spacing: 0.02em; color: var(--spw-ink); }
.spw-tool__name { white-space: nowrap; }
@media (max-width: 640px) { .spw-tools { gap: 12px 16px; } }

/* Section Title — small subtitle + large title, e.g. "Step 1" / "Research
   and Benchmarking". Light/dark is the author's choice, same as the other
   widgets, and uses the fixed light/dark palettes either way. */
.spw-section-title--light { --spw-ink: var(--light-ink); --spw-muted: var(--light-muted); --spw-accent: var(--light-accent); }
.spw-section-title--dark  { --spw-ink: var(--dark-ink);  --spw-muted: var(--dark-muted);  --spw-accent: var(--dark-accent); }
.spw-section-title--center { text-align: center; }
.spw-section-title--center .spw-section-title__sub--label { justify-content: center; }
.spw-section-title--center .spw-section-title__sub--label::before { order: -1; }

.spw-section-title__sub { margin: 0 0 14px; color: var(--spw-muted) !important; font-family: var(--font-family) !important; }
.spw-section-title__sub--label { display: flex; align-items: center; gap: 14px; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.spw-section-title--center .spw-section-title__sub--label { display: inline-flex; margin-left: auto; margin-right: auto; }
.spw-section-title__sub--label::before { content: ""; width: 28px; height: 2px; background: var(--spw-accent); flex: none; }
.spw-section-title__sub--plain { font-size: 16px; font-weight: 400; }

.spw-section-title__title { margin: 0; font-family: var(--font-serif) !important; font-weight: 600; line-height: 1.15; color: var(--spw-ink) !important; }
.spw-section-title__title--large  { font-size: clamp(34px, 5vw, var(--fs-display)); }
.spw-section-title__title--medium { font-size: clamp(28px, 4vw, 44px); }
.spw-section-title__title--small  { font-size: var(--fs-h3); font-weight: 700; }
