/* ============================================================
   Treantly brand-components.css
   The home-v2 design language, lifted from design-studio
   templates/components/components.css (PR #1). COPY, re-synced
   when the brand evolves. Consumes --t-* tokens from style.css.
   Enqueued for theme-rendered pages; canvas pages inline their own.
   ============================================================ */
/* ---- Self-contained tokens ----
   These components are enqueued on CPT/content views where style.css's :root is
   NOT loaded (content.css is authoritative there). Ship the canonical brand
   tokens with the library so the components work standalone on any page; values
   match design-studio/brand/tokens.css. */
:root {
  --t-forest:#2D3D23; --t-forest-deep:#1e2b18; --t-mid-green:#556154; --t-dark:#282828;
  --t-lime:#E3F599; --t-lime-bright:#C8E85A; --t-lime-card:#E0EFA2;
  --t-bg-green:#F0F4D3; --t-bg-warm:#F5F3EC; --t-white:#FFFFFF;
  --t-tan-text:#6E6248; --t-grey-people:#B7BCB0; --t-red-alert:#E5484D; --t-border-light:#e8e4d8;
  --r-sm:8px; --r-md:14px; --r-lg:24px; --r-xl:32px; --r-pill:999px; --r-card:24px;
  --shadow-sm:0 1px 4px rgba(45,61,35,.08); --shadow-card:0 2px 20px rgba(45,61,35,.10); --shadow-lift:0 8px 32px rgba(45,61,35,.14);
  --space-4:16px; --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px;
  --container:1160px; --container-pad:28px; --transition:0.2s ease;
  --font-body:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
}

/* ============================================================
   HOME-V2 DESIGN LANGUAGE (absorbed 2026-06)
   The reusable web components canonized from the home-v2 build.
   ============================================================ */

/* ---- Eyebrow pill (the labelled section opener; .eyebrow stays the plain label) ---- */
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--t-bg-green); border: 1px solid rgba(45,61,35,.12);
  border-radius: var(--r-pill); padding: 6px 16px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--t-mid-green);
}
.eyebrow-pill .dot { width: 6px; height: 6px; border-radius: 50%;
  background: var(--t-lime-bright); border: 1px solid var(--t-forest); }

/* ---- Section head (eyebrow + h2 + sub, centered) ---- */
.section-head { text-align: center; max-width: 660px; margin: 0 auto var(--space-7); }
.section-head h2 { margin-bottom: 12px; }
.section-head .sub { font-size: 17px; color: var(--t-mid-green); line-height: 1.7; }

/* ---- Highlights: solid lime (multi-line safe) + textured brush ---- */
.hl-block {
  background: var(--t-lime-bright); border-radius: 6px; padding: 0.02em 0.16em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* brush swipe: brand asset; WordPress overrides --brush-swipe with its uploads URL */
.hl-brush {
  background: var(--brush-swipe, url('/wp-content/uploads/treantly-assets/v2-swipe.png'))
              center / 100% 100% no-repeat;
  padding: 0.02em 0.25em 0.12em;
}

/* ---- Buttons: variants beyond the base set ---- */
.btn-lime-bright { background: var(--t-lime-bright); color: var(--t-forest); }
.btn-outline { background: transparent; color: var(--t-forest);
  border: 1.5px solid rgba(45,61,35,.4); }
.btn-outline:hover { background: var(--t-forest); color: var(--t-bg-warm); }

/* ---- Role / floating pill ---- */
.pill-role {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--t-lime); color: var(--t-forest);
  font-size: 12.5px; font-weight: 600; padding: 8px 14px;
  border-radius: var(--r-pill); box-shadow: var(--shadow-card);
}
.pill-role .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--t-forest); }

/* ---- Stat band (proof strip) ---- */
.statband { background: var(--t-bg-green); position: relative; overflow: hidden; }
.statband-inner { max-width: var(--container); margin: 0 auto;
  padding: var(--space-6) var(--container-pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.statband-inner.cols-3 { grid-template-columns: repeat(3, 1fr); }
.statband .bowl { position: absolute; right: -40px; top: 0; width: 150px; height: 75px;
  background: var(--t-forest); border-radius: 0 0 150px 150px; }
.stat-n { font-size: clamp(28px, 3vw, 38px); font-weight: 700; color: var(--t-forest);
  font-variant-numeric: tabular-nums; }
.stat-l { display: flex; align-items: center; gap: 8px; font-size: 14px;
  color: var(--t-mid-green); margin-top: 4px; }
.stat-l::before { content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--t-lime-bright); flex: none; }
.statband .stat + .stat { border-left: 1px solid rgba(45,61,35,.14); padding-left: var(--space-5); }

/* ---- Metric tile ---- */
.tile { background: var(--t-white); border: 1px solid rgba(45,61,35,.08);
  border-radius: var(--r-card, 24px); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.tile-n { font-size: 30px; font-weight: 700; color: var(--t-forest);
  font-variant-numeric: tabular-nums; }
.tile-d { font-size: 13.5px; color: var(--t-mid-green); line-height: 1.55; margin-top: 8px; }

/* ---- Feature row (alternating photo / icon + text) ---- */
.feature-row { max-width: var(--container); margin: 0 auto var(--space-7);
  padding: 0 var(--container-pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.feature-icon { width: 54px; height: 54px; color: var(--t-forest); margin-bottom: 16px; }
.feature-icon svg { width: 54px; height: 54px; display: block; }
.feature-row h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.feature-row p { font-size: 16.5px; color: var(--t-forest); line-height: 1.7; max-width: 30rem; }

/* ---- Tabs (category filter) ---- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tab { font-size: 14px; font-weight: 600; color: var(--t-mid-green);
  background: var(--t-white); border: 1px solid rgba(45,61,35,.12);
  border-radius: var(--r-pill); padding: 10px 20px; cursor: pointer; transition: all var(--transition); }
.tab:hover { border-color: var(--t-forest); color: var(--t-forest); }
.tab.active { background: var(--t-forest); color: var(--t-lime); border-color: var(--t-forest); }

/* ---- Step card (illustrated process) ---- */
.step { background: var(--t-white); border: 1px solid rgba(45,61,35,.07);
  border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); }
.step-illo { position: relative; height: 210px; background: var(--t-white); overflow: hidden; }
.step-body { background: var(--t-lime-card); padding: 22px 22px 26px; flex: 1; position: relative; }
.step-badge { position: absolute; top: -16px; left: 22px; background: var(--t-forest);
  color: var(--t-bg-warm); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; border-radius: var(--r-pill); padding: 6px 15px;
  font-variant-numeric: tabular-nums; }
.step h3 { font-size: 19px; margin: 10px 0 8px; }
.step p { font-size: 13.5px; color: var(--t-forest); line-height: 1.55; }
/* illustration primitives */
.illo-bubble { position: absolute; background: var(--t-lime-card); border-radius: 18px; }
.illo-chip { display: flex; align-items: center; gap: 8px; border-radius: 14px; padding: 8px 11px; }
.illo-tile { width: 74px; height: 74px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; }
.illo-callbar { display: inline-flex; align-items: center; gap: 7px; background: var(--t-forest);
  border-radius: var(--r-pill); padding: 6px 10px; }
.illo-callbar .hang { width: 20px; height: 20px; border-radius: 50%; background: var(--t-red-alert); }

/* ---- CTA band (conversion block) ---- */
.cta-band { max-width: var(--container); margin: 0 auto; background: var(--t-forest);
  color: var(--t-bg-warm); border-radius: var(--r-xl);
  padding: clamp(48px,5vw,72px) clamp(24px,5vw,64px); text-align: center;
  position: relative; overflow: hidden; }
.cta-band .shield { width: 40px; height: 40px; color: var(--t-lime-bright); margin: 0 auto 20px; }
.cta-band h2 { color: var(--t-bg-warm); margin-bottom: 16px; }
.cta-band h2 .hl-on-dark { color: var(--t-lime-bright); }
.cta-band p { color: rgba(255,255,255,.74); font-size: 17px; max-width: 34rem; margin: 0 auto var(--space-6); }

/* ---- Testimonial card ---- */
.testi-card { background: var(--t-bg-warm); border: 1px solid rgba(45,61,35,.08);
  border-radius: var(--r-card, 24px); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.testi-stars { color: var(--t-forest); letter-spacing: 2px; font-size: 15px; }
.testi-quote { font-size: 15px; color: var(--t-forest); line-height: 1.6; flex: 1; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.testi-name { font-size: 14px; font-weight: 700; color: var(--t-forest); }
.testi-role { font-size: 12px; color: var(--t-mid-green); }

@media (max-width: 768px) {
  .statband-inner, .statband-inner.cols-3 { grid-template-columns: 1fr 1fr; }
  .statband .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .feature-row { grid-template-columns: 1fr; gap: var(--space-5); }
  .feature-row:nth-child(even) .feature-media { order: 0; }
}
