/* ════════════════════════════════════════════════════════════════
   WTPATB — Block Library styles
   Purpose-built for the Gutenberg pattern library (native columns +
   groups). All classes are prefixed `wtp-` to avoid collisions, and
   layout is left to core blocks (columns/group) — these rules only
   handle brand color, type, spacing, and the interactive sections.
   Loaded on the front page + pages (see functions.php).
   ════════════════════════════════════════════════════════════════ */

:root {
  --wtp-paper:  #f2ede0;
  --wtp-ink:    #141414;
  --wtp-blue:   #2a4fb8;
  --wtp-ember:  #e2483d;
  --wtp-plum:   #5b3a8c;
  --wtp-display: "Abril Fatface", Georgia, serif;
  --wtp-sans:    "Manrope", system-ui, sans-serif;
}

/* ── Shared type helpers ──────────────────────────────────────── */
.wtp-eyebrow {
  font-family: var(--wtp-sans) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  margin: 0 0 1rem !important;
}
.wtp-display {
  font-family: var(--wtp-display) !important;
  font-weight: 400 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.015em !important;
}
.wtp-display .boss { color: var(--wtp-ember); font-size: 1.18em; }

/* ── Buttons ──────────────────────────────────────────────────── */
.wtp-btn .wp-block-button__link,
.wtp-btn.wp-block-button .wp-block-button__link {
  border-radius: 0 !important;
  font-family: var(--wtp-sans) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 16px 36px !important;
  border: 2px solid var(--wtp-blue) !important;
  background: var(--wtp-blue) !important;
  color: var(--wtp-paper) !important;
  transition: all 0.16s ease;
}
.wtp-btn .wp-block-button__link:hover { background: #1e3d9a !important; border-color: #1e3d9a !important; }
.wtp-btn.wtp-btn-ghost .wp-block-button__link {
  background: transparent !important;
  border-color: var(--wtp-paper) !important;
  color: var(--wtp-paper) !important;
}
.wtp-btn.wtp-btn-ghost .wp-block-button__link:hover { background: var(--wtp-paper) !important; color: var(--wtp-ink) !important; }

/* ── HERO ─────────────────────────────────────────────────────── */
.wtp-hero { min-height: 600px; }
.wtp-hero .wp-block-column { display: flex; flex-direction: column; justify-content: center; }
.wtp-hero-copy { background: #ffffff; }
.wtp-hero-logo { padding: clamp(40px, 6vw, 96px) !important; align-items: center; }
.wtp-hero-logo img { width: min(82%, 460px); height: auto; }
.wtp-hero-copy { padding: clamp(40px, 6vw, 96px) !important; gap: 1.6rem; }
.wtp-hero-copy .wtp-eyebrow { color: var(--wtp-blue) !important; }
.wtp-hero-headline { font-size: clamp(2.4rem, 4vw, 3.9rem) !important; color: var(--wtp-ink); line-height: 1.06 !important; margin: 0 0 0.4rem !important; }

/* ── Section heading block ────────────────────────────────────── */
.wtp-head { text-align: center; }
.wtp-head .wtp-eyebrow { margin-bottom: 1.1rem !important; }
.wtp-h2 { font-size: clamp(2.6rem, 6vw, 5rem) !important; color: var(--wtp-ink); margin: 0 0 1.2rem !important; }
.wtp-intro { max-width: 760px; margin: 0 auto !important; text-align: center; font-size: 1.1rem; line-height: 1.65; color: rgba(20,20,20,0.65); }

/* ── ROOT CAUSE (2-col: image | copy) ─────────────────────────── */
.wtp-rootcause .wp-block-column { display: flex; flex-direction: column; justify-content: center; }
.wtp-rootcause-media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/9; }
.wtp-rootcause-copy { padding: clamp(32px, 4vw, 56px) !important; gap: 1rem; }
.wtp-rootcause-copy .wtp-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wtp-ember); margin: 0 !important; }
.wtp-rootcause-copy h3 { font-family: var(--wtp-display); font-weight: 400; font-size: clamp(2rem, 3.5vw, 3.2rem) !important; color: var(--wtp-paper); margin: 0 !important; line-height: 1.05; }
.wtp-rootcause-copy p { color: rgba(242,237,224,0.72); font-size: 1rem; margin: 0 !important; }

/* ── SYMPTOMS (5-up) ──────────────────────────────────────────── */
.wtp-symptoms-label { text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(20,20,20,0.45); margin: 2.5rem 0 1.5rem !important; }
.wtp-symptom { padding-top: 18px; border-top: 2px solid rgba(20,20,20,0.18); }
.wtp-symptom .wtp-num { font-family: var(--wtp-display); font-size: 2.2rem; line-height: 1; color: var(--wtp-ember); margin: 0 0 0.6rem !important; }
.wtp-symptom h4 { font-family: var(--wtp-display); font-weight: 400; font-size: 1.05rem !important; color: var(--wtp-ink); line-height: 1.15; margin: 0 0 0.5rem !important; }
.wtp-symptom p { font-size: 0.82rem; color: rgba(20,20,20,0.6); line-height: 1.5; margin: 0 !important; }

/* ── SOLUTION ─────────────────────────────────────────────────── */
.wtp-solution-head h3 { font-family: var(--wtp-display); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.6rem) !important; color: var(--wtp-ink); margin: 0 !important; }
.wtp-solution-head .wtp-eyebrow { color: var(--wtp-blue) !important; }
.wtp-solution-img img { display: block; width: 100%; height: auto; }

/* ── AIMS (5 colored tiles) ───────────────────────────────────── */
.wtp-aim { padding: clamp(32px, 3vw, 48px) clamp(20px, 2vw, 28px) !important; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; color: var(--wtp-paper); }
.wtp-aim .wtp-num { font-family: var(--wtp-display); font-size: 2.4rem; line-height: 1; color: rgba(242,237,224,0.4); margin: 0 !important; }
.wtp-aim h4 { font-family: var(--wtp-display); font-weight: 400; font-size: 1.5rem !important; color: var(--wtp-paper); margin: 0 !important; }

/* ── CTA band ─────────────────────────────────────────────────── */
.wtp-cta { text-align: center; }
.wtp-cta h3 { font-family: var(--wtp-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem) !important; color: var(--wtp-paper); margin: 0 auto 0.8rem !important; max-width: 720px; }
.wtp-cta p { color: rgba(242,237,224,0.72); max-width: 540px; margin: 0 auto 1.6rem !important; }

/* ── FEED (What's on our mind) ────────────────────────────────── */
.wtp-feed-head h2 { font-size: clamp(2.4rem, 5vw, 4rem) !important; color: var(--wtp-ink); }
.wtp-feed-head .wtp-eyebrow { color: var(--wtp-blue) !important; }
/* SW YouTube plugin output, dropped inside .wtp-feed — normalise tiles */
.wtp-feed img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }

/* ════════════════════════════════════════════════════════════════
   GET INVOLVED — interactive shortcode  [wtpatb_get_involved]
   ════════════════════════════════════════════════════════════════ */
.wtp-gi { max-width: 1100px; margin: 0 auto; }
.wtp-gi-head { text-align: center; max-width: 680px; margin: 0 auto 2.6rem; }
.wtp-gi-head .wtp-eyebrow { color: var(--wtp-blue); }
.wtp-gi-head h2 { font-family: var(--wtp-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 4rem); color: var(--wtp-ink); margin: 0 0 0.8rem; line-height: 1.04; }
.wtp-gi-head p { font-size: 1.05rem; color: rgba(20,20,20,0.65); }
.wtp-gi-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 2.4rem; }
.wtp-gi-option { text-align: left; cursor: pointer; padding: 30px 26px; border: 2px solid rgba(20,20,20,0.15); background: transparent; font-family: var(--wtp-sans); transition: all 0.16s ease; position: relative; }
.wtp-gi-option:hover { border-color: var(--wtp-ink); }
.wtp-gi-option .wtp-check { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(20,20,20,0.25); transition: all 0.16s ease; display: flex; align-items: center; justify-content: center; }
.wtp-gi-option .wtp-check::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wtp-paper); transform: scale(0); transition: transform 0.16s ease; }
.wtp-gi-option h3 { font-family: var(--wtp-display); font-weight: 400; font-size: 1.5rem; color: var(--wtp-ink); margin: 0 0 0.7rem; }
.wtp-gi-option p { font-size: 0.9rem; color: rgba(20,20,20,0.62); line-height: 1.55; margin: 0; }
.wtp-gi-option[aria-pressed="true"] { border-color: var(--wtp-blue); background: rgba(42,79,184,0.05); }
.wtp-gi-option[aria-pressed="true"] .wtp-check { border-color: var(--wtp-blue); background: var(--wtp-blue); }
.wtp-gi-option[aria-pressed="true"] .wtp-check::after { transform: scale(1); }
.wtp-gi-form { max-width: 720px; margin: 0 auto; }
.wtp-gi-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.wtp-gi-field { display: flex; flex-direction: column; gap: 8px; }
.wtp-gi-field.full { grid-column: 1 / -1; }
.wtp-gi-field label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(20,20,20,0.55); }
.wtp-gi-field input { font-family: var(--wtp-sans); font-size: 1rem; padding: 14px 16px; border: 2px solid rgba(20,20,20,0.18); background: var(--wtp-paper); color: var(--wtp-ink); transition: border-color 0.16s ease; }
.wtp-gi-field input:focus { outline: none; border-color: var(--wtp-blue); }
.wtp-gi-submit { width: 100%; justify-content: center; margin-top: 8px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--wtp-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 16px 36px; border: 2px solid var(--wtp-ink); background: var(--wtp-ink); color: var(--wtp-paper); cursor: pointer; transition: all 0.16s ease; }
.wtp-gi-submit:hover { background: transparent; color: var(--wtp-ink); }
.wtp-gi-thanks { text-align: center; padding: 40px; display: none; }
.wtp-gi-thanks.show { display: block; }
.wtp-gi-thanks h3 { font-family: var(--wtp-display); font-weight: 400; font-size: 2rem; color: var(--wtp-blue); margin: 0 0 0.6rem; }

@media (max-width: 900px) {
  .wtp-gi-options { grid-template-columns: 1fr; }
  .wtp-gi-fields { grid-template-columns: 1fr; }
}
