/* ==========================================================
   RICHARTZ — Elementor compatibility layer
   ----------------------------------------------------------
   The sections that ARE meant to be editable in Elementor are
   built from native widgets (Heading, Text, Button, Image).
   Native widgets emit their own markup (.elementor-*), so this
   file teaches that markup to use the Richartz design tokens
   (fonts, palette, spacing) and to follow the dark/light theme.

   Everything is scoped under `.rz`, so it only affects content
   placed inside the Richartz wrapper — never the rest of WP.

   Helper classes you assign in Elementor (Advanced → CSS Classes):
     rz-el-eyebrow     small uppercase kicker
     rz-el-display     oversized serif headline (hero / CTA)
     rz-el-stat-num    big stat number
     rz-el-lede        intro paragraph
     rz-el-quote-text  pull-quote body
     rz-el-cite        attribution line
     rz-el-on-image    white text for image-background sections
     rz-el-btn-ghost   outline button variant
   ========================================================== */

/* ---------- Base inheritance for native widgets ---------- */
.rz .elementor-heading-title { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -.01em; line-height: 1.08; }
.rz .elementor-heading-title em { font-style: italic; color: var(--accent); font-weight: 300; }
.rz .elementor-widget-text-editor,
.rz .elementor-widget-text-editor p { font-family: var(--sans); color: var(--ink-soft); line-height: 1.7; }
.rz .elementor-widget-text-editor a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rz .elementor-widget-image img { display: block; width: 100%; }

/* ---------- Eyebrow ---------- */
.rz .rz-el-eyebrow .elementor-heading-title,
.rz .rz-el-eyebrow.elementor-widget-text-editor,
.rz .rz-el-eyebrow.elementor-widget-text-editor p {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
}

/* ---------- Oversized display headline ---------- */
.rz .rz-el-display .elementor-heading-title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.02;
}

/* ---------- Lede paragraph ---------- */
.rz .rz-el-lede,
.rz .rz-el-lede p {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 60ch;
}

/* ---------- Stats ---------- */
.rz .rz-el-stat-num .elementor-heading-title {
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 300;
  color: var(--ink);
}
.rz .rz-el-stat-num .elementor-heading-title span { color: var(--accent); }

/* ---------- Pull quote ---------- */
.rz .rz-el-quote-text,
.rz .rz-el-quote-text p {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.32;
  color: var(--ink);
}
.rz .rz-el-cite,
.rz .rz-el-cite p {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- On-image (CTA / hero) text ---------- */
.rz .rz-el-on-image .elementor-heading-title,
.rz .rz-el-on-image .elementor-heading-title em { color: var(--on-image); }
.rz .rz-el-on-image.elementor-widget-text-editor,
.rz .rz-el-on-image.elementor-widget-text-editor p { color: var(--on-image-soft); }
.rz .rz-el-on-image .elementor-heading-title em { color: var(--leaf); }

/* ---------- Native buttons → Richartz button language ---------- */
.rz .elementor-button {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  border-radius: 2px;
  padding: 16px 32px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  transition: all .35s ease;
}
.rz .elementor-button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.rz .rz-el-btn-ghost .elementor-button {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.rz .rz-el-btn-ghost .elementor-button:hover { background: var(--ink); color: var(--bg); }
.rz .rz-el-on-image .elementor-button { background: var(--leaf); border-color: var(--leaf); color: var(--accent-2); }
.rz .rz-el-on-image .elementor-button:hover { background: #fff; border-color: #fff; }

/* ---------- Section rhythm for editable blocks ---------- */
.rz .rz-el-section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.rz .rz-el-section--alt { background: var(--bg-alt); }

/* Keep native (editable) sections in a centered, padded column so they
   line up with the full-bleed shortcode sections around them. */
.rz .rz-el-section > .elementor-container {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Image-background editable sections (hero / CTA): readable overlay even
   before the client uploads their own photo. */
.rz .rz-el-on-image { background-color: var(--accent-2); }
.rz .rz-el-on-image .elementor-heading-title,
.rz .rz-el-on-image .rz-el-lede,
.rz .rz-el-on-image .rz-el-lede p { position: relative; z-index: 2; }

/* Notes / insight cards built from native widgets */
.rz .rz-el-note-cat,
.rz .rz-el-note-cat p {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.rz .rz-el-note-title .elementor-heading-title { font-size: 1.35rem; line-height: 1.25; }
