/*
 * Shared layout for the Product / Product details / Who we serve /
 * About / Contact page templates. Hand-authored translation of the
 * design export's own React inline `style={{}}` values (there are no
 * named CSS classes for these components in the source — unlike
 * landing.css's eco-home-* Home components) into real CSS, using this
 * theme's tokens (--eco-*, --radius-*, --shadow-*, --text-*) the same
 * way landing.css does. Enqueued on every Public page except Home
 * (functions.php) — .eco-home-section/__inner, .eco-home-eyebrow/
 * display/lede, .eco-home-value__*, .ec-* utilities and .eco-btn* all
 * come from landing.css, loaded first.
 */

/* ---------- Flat navy page hero (About/Contact/Who-we-serve/Product) ---------- */
.eco-pub-hero { position: relative; background: var(--eco-indigo); padding: 86px 0 92px; overflow: hidden; }
.eco-pub-hero--tight-bottom { padding-bottom: 78px; }
.eco-pub-hero--flush-bottom { padding-bottom: 0; }
.eco-pub-hero__inner { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.eco-pub-hero .eco-home-display { color: var(--eco-white); max-width: 760px; }
.eco-pub-hero .eco-home-lede { color: rgba(255, 255, 255, 0.72); max-width: 620px; }
.eco-pub-hero__notes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Generic bordered card ---------- */
.eco-pub-card { background: var(--eco-white); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg, 16px); padding: 28px; }
.eco-pub-card--tint { background: var(--eco-slate-50); }

/* ---------- About: "How we work" 3-card row ---------- */
.eco-pub-triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.eco-pub-triple .eco-pub-card h3 { font-family: var(--font-body); font-size: 16.5px; font-weight: 700; color: var(--eco-ink); margin: 0 0 10px; }
.eco-pub-triple .eco-pub-card p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ---------- About: Story timeline ---------- */
.eco-pub-timeline { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.eco-pub-timeline__rows { display: flex; flex-direction: column; }
.eco-pub-timeline__row { display: grid; grid-template-columns: 100px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--border-subtle); }
.eco-pub-timeline__row:last-child { color: var(--text-muted); }
.eco-pub-timeline__year { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--eco-ink); }
.eco-pub-timeline__row:last-child .eco-pub-timeline__year { color: var(--text-muted); }
.eco-pub-timeline__d { font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 0; }

/* ---------- About: Team placeholder grid ---------- */
.eco-pub-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 8px; }
.eco-pub-team__photo { aspect-ratio: 4 / 5; border: 1.5px dashed var(--border-default); border-radius: var(--radius-md, 14px); display: grid; place-items: center; color: var(--text-muted); font-size: 13px; }
.eco-pub-team__name { font-size: 15.5px; font-weight: 700; color: var(--eco-ink); margin: 12px 0 2px; }
.eco-pub-team__role { font-size: 13px; color: var(--text-muted); }

/* ---------- Contact: form ---------- */
.eco-pub-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.eco-pub-form__field--full { grid-column: 1 / -1; }
.eco-pub-form__label { display: block; font-size: 13px; font-weight: 600; color: var(--text-body); margin-bottom: 6px; }
.eco-pub-form__field input,
.eco-pub-form__field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 14.5px; color: var(--eco-ink);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm, 8px); padding: 11px 13px;
  background: var(--eco-white);
}
.eco-pub-form__field input:focus,
.eco-pub-form__field textarea:focus { outline: none; border-color: var(--eco-blue); box-shadow: var(--shadow-focus); }
.eco-pub-form__reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.eco-pub-form__reason { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-default); background: var(--eco-white); color: var(--text-body); cursor: pointer; }
.eco-pub-form__reason:hover { border-color: var(--eco-blue); }
.eco-pub-form__reason.is-selected { background: var(--eco-indigo); border-color: var(--eco-indigo); color: var(--eco-white); }
.eco-pub-form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.eco-pub-form__foot-note { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.eco-pub-form__success { text-align: center; padding: 40px 20px; }
.eco-pub-form__success-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--eco-green); color: var(--eco-indigo); font-weight: 800; margin-bottom: 16px; }
.eco-pub-form__success h3 { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--eco-ink); margin: 0 0 6px; }
.eco-pub-form__success p { color: var(--text-muted); margin: 0 0 20px; }

/* ---------- Contact: office info card ---------- */
.eco-pub-office { font-size: 14.5px; line-height: 1.7; color: var(--text-body); }
.eco-pub-office__hours { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 13.5px; }

/* ---------- Product overview / Product details section band ---------- */
.eco-pub-band { padding: 96px 0; }
.eco-pub-band--dark { background: var(--eco-indigo); color: var(--eco-white); }
.eco-pub-band--tint { background: var(--eco-slate-50); }
.eco-pub-band__cols { display: grid; grid-template-columns: 340px 1fr; gap: 40px; }
.eco-pub-band__side-eyebrow { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text-muted); }
.eco-pub-band--dark .eco-pub-band__side-eyebrow { color: rgba(255, 255, 255, 0.5); }
.eco-pub-band__side-title { font-family: var(--font-display); font-weight: 800; font-size: 40px; margin: 10px 0 8px; color: var(--eco-ink); }
.eco-pub-band--dark .eco-pub-band__side-title { color: var(--eco-white); }
.eco-pub-band__side-note { font-size: 13.5px; color: var(--text-muted); }
.eco-pub-band--dark .eco-pub-band__side-note { color: rgba(255, 255, 255, 0.55); }

/* ---------- Product details: hero track cards ---------- */
.eco-pub-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.eco-pub-track-card {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius-lg, 16px);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); text-decoration: none; color: var(--eco-white);
}
.eco-pub-track-card__num { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.eco-pub-track-card__label { font-family: var(--font-display); font-weight: 800; font-size: 26px; display: block; margin-top: 2px; }
.eco-pub-track-card__sub { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); display: block; margin-top: 2px; }
.eco-pub-track-card__chev { margin-left: auto; flex: none; opacity: .7; }

/* ---------- Product details: Block (sticky number rail + content) ---------- */
.eco-pub-block { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 44px 0; border-top: 1px solid var(--border-subtle); }
.eco-pub-block:first-of-type { border-top: none; }
.eco-pub-block--light { border-top-color: rgba(255, 255, 255, 0.14); }
.eco-pub-block__rail { position: sticky; top: 110px; align-self: start; }
.eco-pub-block__num { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--eco-blue); }
.eco-pub-block--light .eco-pub-block__num { color: var(--eco-green); }
.eco-pub-block__title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 6px; }
.eco-pub-block--light .eco-pub-block__title { color: rgba(255, 255, 255, 0.55); }

/* ---------- Product details: demo placeholder ---------- */
.eco-pub-demo {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg, 16px); overflow: hidden; cursor: pointer;
  background-image: repeating-linear-gradient(135deg, var(--eco-slate-100) 0 2px, transparent 2px 14px);
  background-color: var(--eco-slate-50); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
}
.eco-pub-demo--light { background-color: rgba(255, 255, 255, 0.04); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 14px); border-color: rgba(255, 255, 255, 0.16); }
.eco-pub-demo__play {
  width: 56px; height: 56px; border-radius: 50%; background: var(--eco-green); color: var(--eco-indigo);
  display: grid; place-items: center; transition: transform .2s;
}
.eco-pub-demo:hover .eco-pub-demo__play { transform: scale(1.06); }
.eco-pub-demo__caption { position: absolute; left: 16px; bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.eco-pub-demo--light .eco-pub-demo__caption { color: rgba(255, 255, 255, 0.55); }

/* ---------- Product details: dimensions/coverage grid ---------- */
.eco-pub-dim { border-top: 1px solid var(--border-subtle); padding-top: 14px; }
.eco-pub-block--light .eco-pub-dim { border-top-color: rgba(255, 255, 255, 0.14); }
.eco-pub-dim__num { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--text-muted); }
.eco-pub-block--light .eco-pub-dim__num { color: rgba(255, 255, 255, 0.45); }
.eco-pub-dim__t { font-size: 14.5px; font-weight: 600; color: var(--eco-ink); margin-top: 4px; }
.eco-pub-block--light .eco-pub-dim__t { color: var(--eco-white); }
.eco-pub-dim__wide { grid-column: span 2; font-size: 13.5px; color: var(--text-muted); align-self: center; }
.eco-pub-block--light .eco-pub-dim__wide { color: rgba(255, 255, 255, 0.55); }

/* ---------- Product details: Steps (how it works, up to 4 across) ---------- */
.eco-pub-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.eco-pub-step { border: 1px solid var(--border-subtle); border-radius: var(--radius-md, 14px); padding: 18px; background: var(--eco-white); position: relative; }
.eco-pub-block--light .eco-pub-step { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); }
.eco-pub-step__num { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--eco-blue); }
.eco-pub-block--light .eco-pub-step__num { color: var(--eco-green); }
.eco-pub-step__t { font-size: 14.5px; font-weight: 700; color: var(--eco-ink); margin: 8px 0 4px; }
.eco-pub-block--light .eco-pub-step__t { color: var(--eco-white); }
.eco-pub-step__d { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.eco-pub-block--light .eco-pub-step__d { color: rgba(255, 255, 255, 0.6); }
.eco-pub-step__arrow { position: absolute; right: -14px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--text-muted); }
.eco-pub-block--light .eco-pub-step__arrow { color: rgba(255, 255, 255, 0.4); }

/* ---------- Product details: results (ring/radar/priorities) ---------- */
.eco-pub-results { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eco-pub-results__wide { grid-column: 1 / -1; }
.eco-pub-results__band { font-size: 13.5px; font-weight: 700; color: var(--eco-ink); margin-top: 12px; }
.eco-pub-results__sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.eco-pub-radar-row { display: flex; align-items: center; gap: 20px; }
.eco-pub-radar-list { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.eco-pub-radar-list__row { display: flex; justify-content: space-between; color: var(--text-muted); }
.eco-pub-radar-list__row strong { color: var(--eco-ink); font-weight: 700; }
.eco-pub-priorities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eco-pub-priorities__v { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--eco-blue); }
.eco-pub-priorities__t { font-size: 14px; font-weight: 700; color: var(--eco-ink); margin: 4px 0 4px; }
.eco-pub-priorities__d { font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ---------- Product details: reporting "what you get" mock ---------- */
.eco-pub-report-mock { background: var(--eco-white); color: var(--eco-ink); border-radius: var(--radius-lg, 16px); padding: 24px; }
.eco-pub-report-mock__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-subtle); font-size: 13.5px; }
.eco-pub-report-mock__row:first-of-type { border-top: none; }
.eco-pub-report-mock__row strong { color: var(--eco-ink); }
.eco-pub-report-mock__row span:last-child { color: var(--text-muted); }
.eco-pub-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.eco-pub-metrics__v { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.eco-pub-metrics__u { font-size: 11px; color: var(--text-muted); }
.eco-pub-dark-cards { display: flex; flex-direction: column; gap: 14px; }
.eco-pub-dark-cards .eco-pub-step { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); }

/* ---------- Product details: coverage list ---------- */
.eco-pub-coverage__row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14.5px; }
.eco-pub-coverage__row:first-child { border-top: none; }

/* ---------- Product details: lime ProductCta ---------- */
.eco-pub-cta {
  background: var(--eco-green); border-radius: var(--radius-xl, 32px); padding: 64px 56px; text-align: center;
  max-width: 1440px; margin: 96px auto; color: var(--eco-indigo);
}
.eco-pub-cta__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(18, 15, 136, 0.6); }
.eco-pub-cta__title { font-family: var(--font-display); font-weight: 800; font-size: 44px; margin: 14px 0; color: var(--eco-indigo); }
.eco-pub-cta__lede { font-size: 16px; color: rgba(18, 15, 136, 0.72); max-width: 560px; margin: 0 auto 28px; }
.eco-pub-cta__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.eco-pub-cta .eco-btn--ghost { border-color: var(--eco-indigo); color: var(--eco-indigo); }

@media (max-width: 1080px) {
  .eco-pub-triple,
  .eco-pub-team { grid-template-columns: repeat(2, 1fr); }
  .eco-pub-timeline,
  .eco-pub-band__cols,
  .eco-pub-results { grid-template-columns: 1fr; }
  .eco-pub-tracks { grid-template-columns: 1fr; }
  .eco-pub-block { grid-template-columns: 1fr; }
  .eco-pub-block__rail { position: static; }
}
@media (max-width: 820px) {
  .eco-pub-triple,
  .eco-pub-team,
  .eco-pub-priorities,
  .eco-pub-metrics { grid-template-columns: 1fr; }
  .eco-pub-form { grid-template-columns: 1fr; }
}
