/*
 * wt-blocks-home.css — Agent D (HOME body blocks) 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 (Agent A) 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;
}
.wt-hero__card-body { display: flex; flex-direction: column; gap: 12px; }
.wt-hero__card-body .wt-btn { width: 100%; text-align: center; }

/* Optional photo slot — sits behind scrim + content for every skin. A photo
   cannot inherit arbitrary skin text colours safely, so mirror the inner-page
   banner treatment: force readable white copy over an always-dark scrim. */
.wt-hero__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.wt-hero__photo-img { width: 100%; height: 100%; object-fit: cover; }
.wt-hero--photo { color: #fff; }
.wt-hero--photo .wt-hero__title { color: #fff; }
.wt-hero--photo .wt-hero__sub { color: rgba(255, 255, 255, .88); }
.wt-hero--photo .wt-hero-scrim {
  background: linear-gradient(180deg, rgba(10, 12, 16, .38), rgba(10, 12, 16, .66));
}
.wt-hero--photo .wt-watermark { color: rgba(255, 255, 255, .06); }

/* ── 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 pulled up over the hero */
.wt-quote--bar { padding: 0 0 26px; position: relative; z-index: 5; }
.wt-quote__bar {
  margin-top: -44px;
  background: var(--wt-surface);
  padding: 22px 24px;
}

/* 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 { padding: 32px 0; }
.wt-quote__aside { padding: 24px; max-width: 380px; }

/* showcase — CTA band on the quote tokens (no embedded form) */
.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 .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);
}
.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);
  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 ─────────────────────────────────────────────────────── */

.wt-testimonials__heading { margin-bottom: 20px; }

.wt-testimonial__mark {
  font: 900 44px/0.5 var(--wt-font-head);
  color: var(--wt-accent);
  opacity: .5;
}
.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; }
}

@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; }
}
