/**
 * New component styles introduced by the L1 templates (Workstream 2).
 * Kept separate from components.css per IMPLEMENTATION.md — that file is
 * shared surface other workstreams depend on. Reuses the same custom
 * property tokens (tokens.css) and class-naming conventions as
 * components.css so these read as one system, not a bolt-on.
 */

/* ---------------------------------------------------------------------
 * Hero — L1 (module-hero-l1.php). Single-column variant of .hero-home:
 * eyebrow, H1, intro — no badge, no expertise strip, no dual CTA.
 * --------------------------------------------------------------------- */
.hero-l1 {
	position: relative;
	color: var(--paper);
	background: var(--ink);
	padding-block: calc(var(--section-pad) * 0.9);
	overflow: hidden;
}
.hero-l1__media { position: absolute; inset: 0; z-index: 0; }
.hero-l1__media::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(14,14,16,0.72), rgba(14,14,16,0.9));
}
.hero-l1__content { position: relative; z-index: 1; max-width: 46rem; }
.hero-l1__eyebrow { color: var(--paper); opacity: 0.8; }
.hero-l1 h1 { font-size: var(--fs-display-2); max-width: 16ch; }
.hero-l1__intro { margin-top: var(--space-5); max-width: 52ch; color: var(--muted-dark); font-size: var(--fs-body-lg); }

/* ---------------------------------------------------------------------
 * Filterable index bar — shared by Work (module-work-index.php) and Blog
 * (module-blog-index.php). Plain <form method="get">: works fully without
 * JS via the submit button; the <select onchange> is enhancement only.
 * --------------------------------------------------------------------- */
.work-index__filters,
.blog-index__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: var(--space-6);
	padding-bottom: var(--space-8);
	margin-bottom: var(--space-8);
	border-bottom: 1px solid var(--line-light);
}
.work-index__filter { display: flex; flex-direction: column; gap: var(--space-2); }
.work-index__filter label {
	font-size: var(--fs-interface);
	text-transform: uppercase;
	letter-spacing: var(--tracking-interface);
	color: var(--muted-light);
}
.work-index__filter select {
	min-height: 44px;
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--line-light);
	border-radius: var(--radius-sm);
	background-color: var(--paper); /* colour only — base.css draws the #038 chevron as background-image */
	color: var(--ink);
	min-width: 180px;
}
.work-index__filter-actions { display: flex; align-items: center; gap: var(--space-4); }

.work-index__grid,
.blog-index__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gutter);
}
@media (max-width: 1023px) {
	.work-index__grid, .blog-index__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.work-index__filters, .blog-index__filters { flex-direction: column; align-items: stretch; }
	.work-index__grid, .blog-index__grid { grid-template-columns: 1fr; }
}

/* Pagination — shared by both indexes via paginate_links(). */
.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-9);
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding-inline: var(--space-3);
	border: 1px solid var(--line-light);
	border-radius: var(--radius-sm);
	font-size: var(--fs-small);
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--accent-deep); color: var(--accent-deep); }

/* ---------------------------------------------------------------------
 * Product cards (module-product-cards.php) — deliberately distinct from
 * .info-card (card_grid): larger media, dark surface, feature list, so a
 * product reads as a product, not a service (§5.4).
 * --------------------------------------------------------------------- */
.product-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-8);
}
@media (max-width: 1023px) { .product-cards { grid-template-columns: 1fr; } }

.product-card {
	background: var(--ink-soft);
	color: var(--paper);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.product-card__media { border-radius: 0; }
.product-card__body { padding: var(--space-7); }
.product-card__tagline {
	font-size: var(--fs-interface);
	text-transform: uppercase;
	letter-spacing: var(--tracking-interface);
	color: var(--accent);
	margin-bottom: var(--space-3);
}
/* issueslog.md #049(c) — was 46px, larger than the page's 44px H2s; now on
   the design-reference H3 step. */
.product-card h3 { font-size: var(--fs-h3); margin-bottom: var(--space-3); color: var(--paper); }
.product-card__body p { color: var(--muted-dark); }
.product-card__features {
	display: grid;
	gap: var(--space-2);
	margin: var(--space-5) 0 var(--space-6);
	padding-top: var(--space-5);
	border-top: 1px solid var(--line-dark);
}
.product-card__features li {
	font-size: var(--fs-small);
	padding-left: var(--space-5);
	position: relative;
}
.product-card__features li::before {
	content: "";
	position: absolute; left: 0; top: 0.55em;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

/* ---------------------------------------------------------------------
 * Rich text module (module-rich-text.php) — long-form copy, constrained
 * measure, full typographic styles for headings/lists/quotes within the
 * wysiwyg. Named .rich-text-block (not .rich-text) to avoid colliding with
 * Workstream 4's assets/css/rich-text.css .rich-text component used on
 * single post/case study content — the two are never enqueued on the same
 * page, but the class names should still not collide (see IMPLEMENTATION.md
 * Known gaps).
 * --------------------------------------------------------------------- */
.rich-text-block__body { max-width: var(--measure); }
.rich-text-block__body h2, .rich-text-block__body h3 { margin-top: var(--space-7); margin-bottom: var(--space-4); }
.rich-text-block__body p { margin-bottom: var(--space-5); }
.rich-text-block__body ul, .rich-text-block__body ol { list-style: disc; padding-left: var(--space-6); margin-bottom: var(--space-5); }
.rich-text-block__body ol { list-style: decimal; }
.rich-text-block__body blockquote {
	border-left: 3px solid var(--accent);
	padding-left: var(--space-5);
	margin: var(--space-6) 0;
	font-family: var(--font-display);
	font-size: var(--fs-display-6);
}
.rich-text-block__body a { color: var(--accent-deep); text-decoration: underline; }
.section--dark .rich-text-block__body a, .section--dark-soft .rich-text-block__body a { color: var(--accent); }

/* ---------------------------------------------------------------------
 * Team grid (module-team-grid.php, §9 #21).
 * --------------------------------------------------------------------- */
.team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gutter);
}
@media (max-width: 1023px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .team-grid { grid-template-columns: 1fr; } }

.team-card__photo { border-radius: var(--radius-md); margin-bottom: var(--space-4); }
.team-card__name { font-size: var(--fs-display-6); margin-bottom: var(--space-1); }
.team-card__role {
	font-size: var(--fs-interface);
	text-transform: uppercase;
	letter-spacing: var(--tracking-interface);
	color: var(--accent-deep);
	margin-bottom: var(--space-3);
}
.section--dark .team-card__role, .section--dark-soft .team-card__role { color: var(--accent); }
.team-card__bio { font-size: var(--fs-small); }

/* ---------------------------------------------------------------------
 * Timeline (module-timeline.php, §9 #22) — vertical with a connecting
 * rule, matching the Process module's mobile behaviour (§16).
 * --------------------------------------------------------------------- */
.timeline { position: relative; padding-left: var(--space-8); }
.timeline::before {
	content: "";
	position: absolute; left: 5px; top: 6px; bottom: 6px;
	width: 1px;
	background: var(--line-light);
}
.section--dark .timeline::before, .section--dark-soft .timeline::before { background: var(--line-dark); }
.timeline__item { position: relative; padding-bottom: var(--space-8); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
	position: absolute; left: calc(-1 * var(--space-8) + 1px); top: 6px;
	width: 11px; height: 11px;
	border-radius: 50%;
	background: var(--accent);
}
.timeline__year {
	display: block;
	font-family: var(--font-display);
	font-size: var(--fs-display-6);
	color: var(--muted-light);
	margin-bottom: var(--space-2);
}
.section--dark .timeline__year, .section--dark-soft .timeline__year { color: var(--muted-dark); }
.timeline__title { margin-bottom: var(--space-2); }

/* ---------------------------------------------------------------------
 * Contact details (module-contact-details.php).
 * --------------------------------------------------------------------- */
.contact-details { display: grid; gap: var(--space-6); }
.contact-details__item { display: flex; flex-direction: column; gap: var(--space-1); }
.contact-details__label {
	font-size: var(--fs-interface);
	text-transform: uppercase;
	letter-spacing: var(--tracking-interface);
	color: var(--muted-light);
}
.section--dark .contact-details__label, .section--dark-soft .contact-details__label { color: var(--muted-dark); }
.contact-details__item a { font-family: var(--font-display); font-size: var(--fs-display-6); display: inline-flex; align-items: center; min-height: 44px; }
.contact-details__item a:hover { color: var(--accent-deep); }
.section--dark .contact-details__item a:hover, .section--dark-soft .contact-details__item a:hover { color: var(--accent); }

/* ---------------------------------------------------------------------
 * Office information (module-office-info.php).
 * --------------------------------------------------------------------- */
.office-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gutter);
}
@media (max-width: 1023px) { .office-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .office-grid { grid-template-columns: 1fr; } }

.office-card {
	padding: var(--space-6);
	border: 1px solid var(--line-light);
	border-radius: var(--radius-md);
}
.office-card h3 { font-size: var(--fs-display-6); margin-bottom: var(--space-3); }
.office-card__address { color: var(--muted-light); margin-bottom: var(--space-3); }
.office-card a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------------
 * Form block (module-form-block.php, §9 #24).
 * --------------------------------------------------------------------- */
.form-block__embed { max-width: 640px; }
.form-block__placeholder {
	padding: var(--space-7);
	border: 1px dashed var(--line-light);
	border-radius: var(--radius-md);
	background: var(--paper-soft);
}
.section--dark .form-block__placeholder, .section--dark-soft .form-block__placeholder {
	background: var(--ink-soft);
	border-color: var(--line-dark);
}
.form-block__placeholder code {
	background: var(--paper);
	padding: 2px 6px;
	border-radius: var(--radius-sm);
	font-size: 0.9em;
}
/* issueslog.md #030 — public fallback (no form on the page):
   direct contact routes from Global Links, reusing .contact-details. */
.form-block__fallback { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.form-block__fallback > p { margin: 0; }

/* Native contact form (inc/forms/contact-form.php). */
.contact-form { display: flex; flex-direction: column; gap: var(--space-5); margin-bottom: var(--space-8); }
.contact-form__status:empty { display: none; }
.contact-form__consent { display: flex; align-items: flex-start; gap: var(--space-3); font-weight: 400; font-size: var(--fs-body-sm); line-height: 1.5; cursor: pointer; }
.contact-form__consent input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; accent-color: var(--accent-deep); }
.contact-form__consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.contact-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__actions .btn { min-height: 48px; }
@media (max-width: 640px) { .contact-form .form-grid { grid-template-columns: 1fr; } }
