/*
 * wt-blocks-home.css — HOME body-block specific styles.
 *
 * Owns ONLY the classes emitted by blocks/hero.php, quote.php, about.php,
 * services.php, cta.php, testimonials.php. Everything here is TOKEN-DRIVEN
 * (the --wt-* custom properties skins.php emits) + responsive; there is NO
 * per-skin CSS. Base primitives (.wt-hero, .wt-hero-content, .wt-hero-sub,
 * .wt-watermark, .wt-quote-band, .wt-card, .wt-btn, .wt-chip, .wt-grid-cards,
 * .wt-container, .wt-section, .wt-section-alt, .wt-aside, .wt-eyebrow, .wt-h1,
 * .wt-h2, .wt-prose) live in templates-web.css and are reused, not
 * redefined here.
 *
 * Family awareness: each block root carries a self-describing modifier class
 * (e.g. .wt-hero--split, .wt-services--grid) computed from theme.family in
 * PHP, so these rules never depend on an ancestor [data-family] attribute.
 *
 * Load order: AFTER templates-web.css (so token defaults resolve).
 */

/* ── HERO ─────────────────────────────────────────────────────────────── */

.wt-hero__title { color: var(--wt-hero-text); }
.wt-hero__sub { margin: 14px 0 0; }

.wt-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.wt-hero__btn { min-width: 0; }

/* classic — centered, narrow */
.wt-hero--classic .wt-hero-content { max-width: 720px; margin: 0 auto; text-align: center; }
.wt-hero--classic .wt-hero-sub { margin-left: auto; margin-right: auto; }
.wt-hero--classic .wt-hero__cta { justify-content: center; }

/* showcase — centered, wide */
.wt-hero--wide .wt-hero-content { max-width: 820px; margin: 0 auto; text-align: center; }
.wt-hero--wide .wt-hero-sub { margin-left: auto; margin-right: auto; }
.wt-hero--wide .wt-hero__cta { justify-content: center; }

/* sidebar — left-aligned, full width */
.wt-hero--left .wt-hero-content { max-width: 760px; text-align: left; }
.wt-hero--left .wt-hero-sub { margin-left: 0; }

/* grid — split: text column + actions card */
.wt-hero--split .wt-hero-content { max-width: 1080px; margin: 0 auto; }
.wt-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}
.wt-hero__col { min-width: 0; }
.wt-hero__card {
  background: var(--wt-surface);
  color: var(--wt-ink);
  border-radius: var(--wt-radius-lg);
  box-shadow: var(--wt-card-shadow);
  border: var(--wt-card-border);
  padding: 24px;
}
/* The card is a light surface: set its own text colour rather than inherit
   the hero's, which is white over a photo. */
.wt-hero__card { color: var(--wt-ink); }
.wt-hero__card-body { display: flex; flex-direction: column; gap: 12px; }
.wt-hero__card-body .wt-btn { width: 100%; text-align: center; }

/* photo slot (heroKind==='photo' only) — sits behind scrim + content */
.wt-hero__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.wt-hero__photo-img { width: 100%; height: 100%; object-fit: cover; }

/* ── QUOTE ────────────────────────────────────────────────────────────── */

.wt-quote__heading {
  font: 700 13px/1.2 var(--wt-font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wt-mute-text);
  margin-bottom: 14px;
}
.wt-quote__btn { display: inline-block; }
.wt-quote__fallback { margin-top: 4px; }

/* classic — a light bar. Directly under a hero it is pulled up over the hero's bottom edge; in
   any other position (the first block of the page, or under a banner or another block) it sits
   in normal flow with room above it. A bar that was always pulled up by 44px slid under the
   navigation when it was the first block, hiding the card's top edge. */
.wt-quote--bar { padding: 26px 0; position: relative; z-index: 5; }
.wt-quote__bar {
  background: var(--wt-surface);
  padding: 22px 24px;
}
[data-wt-block="hero"] + .wt-quote--bar { padding-top: 0; }
[data-wt-block="hero"] + .wt-quote--bar .wt-quote__bar { margin-top: -44px; }

/* grid — floating card */
.wt-quote--card { padding: 40px 0 8px; }
.wt-quote__card { padding: 26px 26px; max-width: 760px; margin: 0 auto; }

/* sidebar — sticky "Quick quote" card */
.wt-quote--aside { width: 100%; padding: 0; }
.wt-quote__aside { width: 100%; max-width: none; padding: 0; }

/* showcase — the embedded form in a light card, on the quote-token band */
.wt-quote--cta {
  background: var(--wt-quote-bg);
  color: var(--wt-quote-text);
  padding: 60px 26px;
}
.wt-quote__cta-inner { text-align: center; }
.wt-quote__cta-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 24px;
  text-align: left;
  background: var(--wt-surface);
  color: var(--wt-ink);
}
.wt-quote--cta .wt-quote__heading {
  color: var(--wt-quote-text);
  font-size: 22px;
  letter-spacing: var(--wt-heading-tracking, 0);
  text-transform: none;
  opacity: .95;
  margin-bottom: 20px;
}

/* ── ABOUT ────────────────────────────────────────────────────────────── */

.wt-about__heading { margin-bottom: 16px; }
.wt-about__prose { max-width: 720px; }
.wt-about--sidebar .wt-about__prose,
.wt-about--classic .wt-about__prose { max-width: 720px; }
/* grid + block mode: prose stays a readable 720 column inside the wide grid */
.wt-about--grid.wt-about--block .wt-about__prose { max-width: 720px; }

.wt-about__cols { margin-top: 8px; }
.wt-about__col { min-width: 0; }
.wt-about__col-h {
  font: var(--wt-heading-weight, 700) 17px/1.25 var(--wt-font-head);
  color: var(--wt-ink);
  margin: 0 0 8px;
}
.wt-about__col-t { margin: 0; }

.wt-about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--wt-rule);
}
.wt-about__stat { min-width: 90px; }
.wt-about__stat-value {
  font: var(--wt-heading-weight, 800) 30px/1 var(--wt-font-head);
  letter-spacing: var(--wt-heading-tracking, 0);
  color: var(--wt-primary-text, var(--wt-primary));
}
.wt-about__stat-label {
  font: 600 12px/1.3 var(--wt-font-body);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wt-mute-text);
  margin-top: 6px;
}

/* ── SERVICES ─────────────────────────────────────────────────────────── */

.wt-services__heading { margin-bottom: 12px; }
.wt-services__body { max-width: 720px; margin-bottom: 20px; }
.wt-services__points { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.wt-service__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: var(--wt-radius);
  background: var(--wt-accent-tint);
  color: var(--wt-accent-text, var(--wt-accent));
  display: flex; align-items: center; justify-content: center;
  font: 800 17px/1 var(--wt-font-head);
}
.wt-service__name {
  font: var(--wt-heading-weight, 700) 16px/1.25 var(--wt-font-head);
  color: var(--wt-ink);
}
.wt-service__desc { font-size: 14px; line-height: 1.6; color: var(--wt-body-text); margin: 6px 0 0; }

/* list (classic / sidebar) — icon rows with rules */
.wt-services__list { margin-top: 6px; }
.wt-service {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--wt-rule);
}
.wt-service:first-child { padding-top: 6px; }
.wt-service:last-child { border-bottom: 0; }
.wt-service__text { min-width: 0; }

/* grid / band — cards */
.wt-services__grid { margin-top: 6px; }
.wt-service-card { padding: 24px; }
.wt-service-card .wt-service__icon { margin-bottom: 14px; }

/* ── CTA ──────────────────────────────────────────────────────────────── */

.wt-cta {
  background: var(--wt-primary);
  color: #fff;
  border-radius: var(--wt-radius-lg);
}
.wt-cta__inner { display: flex; gap: 20px; }
.wt-cta__title { color: #fff; margin: 0; }
.wt-cta__btn { background: #fff; color: var(--wt-primary); }

.wt-cta--center .wt-cta__inner {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.wt-cta--split .wt-cta__inner {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.wt-cta--split .wt-cta__title { flex: 1 1 320px; }

/* ── TESTIMONIALS ─────────────────────────────────────────────────────── */

/* h2.wt-h2 prefix: the base .wt-h2 rule (margin 0) out-specified the old single-class rule, so the
   first quote mark sat directly against the heading. The mark's glyph also rises above its short
   line box, so it needs the room. */
h2.wt-h2.wt-testimonials__heading { margin-bottom: 34px; }

/* Decorative quote glyph: --wt-accent-mark holds 3:1 (large text) on the band it sits on,
   light or dark, and on a card. */
.wt-testimonial__mark {
  font: 900 44px/0.5 var(--wt-font-head);
  color: var(--wt-accent-mark, var(--wt-accent));
  padding-top: 8px;   /* the glyph rises above its 22px line box; keep it clear of whatever is above */
}
.wt-testimonial__quote {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--wt-ink);
  font-style: italic;
}
.wt-testimonial__cite { margin-top: 14px; font-size: 13.5px; }
.wt-testimonial__author { font-weight: 700; color: var(--wt-ink); }
.wt-testimonial__org { color: var(--wt-mute-text); }
.wt-testimonial__org::before { content: " · "; color: var(--wt-mute-text); }

/* band (classic / sidebar) — big quotes, stacked */
.wt-testimonials__band { max-width: 760px; }
.wt-testimonial { margin: 0 0 32px; }
.wt-testimonial:last-child { margin-bottom: 0; }
.wt-testimonials--band .wt-testimonial__quote { font-size: 20px; }

/* grid / showcase — cards */
.wt-testimonials__grid { margin-top: 4px; }
.wt-testimonial-card { padding: 26px; margin: 0; }
.wt-testimonial-card .wt-testimonial__quote { font-size: 15.5px; font-style: normal; }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 780px) {
  .wt-hero__grid { grid-template-columns: 1fr; }
  .wt-cta--split .wt-cta__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  /* In a column, flex-basis applies to height: size the title to its content. */
  .wt-cta--split .wt-cta__title { flex: 0 0 auto; }
}

@media (max-width: 640px) {
  .wt-about__stats { gap: 24px; }
  .wt-about__stat-value { font-size: 26px; }
  .wt-cta--center .wt-cta__inner,
  .wt-cta--split .wt-cta__inner { align-items: center; text-align: center; }
  /* Scale with the viewport so the default heading fits on one line on a phone;
     longer text still wraps. The h2.wt-h2 prefix out-specifies the base rule. */
  h2.wt-h2.wt-testimonials__heading { font-size: clamp(16px, calc(7.8vw - 8.5px), 27px); }
}

/* ── BLOG empty / example states ──────────────────────────────────────── */
.wt-blog__empty { margin: 0; color: var(--wt-mute-text); }
.wt-blog__example-note { margin: 0 0 14px; font-size: 13px; color: var(--wt-mute-text); font-style: italic; }

/* ── Editor-only empty block placeholder (admin draft preview only; the
      public renderer never emits it) ───────────────────────────────────── */
.wt-empty-block { padding: 28px 26px; }
.wt-empty-block__box {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 20px;
  text-align: center;
  border: 2px dashed var(--wt-rule, #c9d0d8);
  border-radius: var(--wt-radius, 8px);
  color: var(--wt-mute-text, #6b7480);
  background: transparent;
}
.wt-empty-block__name { font-weight: 700; font-size: 16px; color: var(--wt-ink, #22303f); }
.wt-empty-block__hint { margin-top: 4px; font-size: 13px; }

/* Testimonials band on a DARK alternating band (Bold Charcoal, Slick ...): the quote and
   author used --wt-ink, which is dark there, so they were invisible (dark on dark). Same
   alt tokens the other bands use (see wt-families.css); light bands are unchanged because
   --wt-alt-heading / --wt-alt-body fall back to ink / body text. */
.wt-testimonials--band.wt-section-alt .wt-testimonial__quote,
.wt-testimonials--band.wt-section-alt .wt-testimonial__author { color: var(--wt-alt-heading, var(--wt-ink)); }
.wt-testimonials--band.wt-section-alt .wt-testimonial__org,
.wt-testimonials--band.wt-section-alt .wt-testimonial__org::before { color: var(--wt-alt-body, var(--wt-mute-text)); }
.wt-testimonials--band.wt-section-alt .wt-testimonials__heading { color: var(--wt-alt-heading, var(--wt-ink)); }
