/*
 * Component-level CSS that theme.json's global styles system can't express:
 * card grids, the stats band, spec rows, hover states. Design tokens are
 * consumed via the --wp--preset--* custom properties theme.json generates,
 * so this file never hard-codes a colour or font.
 */

/* ---------- Layout helpers ---------- */

.fc-full-bleed {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* ---------- Header ---------- */

/* Below the core/navigation mobile-overlay breakpoint the hamburger toggle
   and this CTA button collide in the same row — drop the button there; the
   full-screen menu and every section still offer the same call to action. */
@media (max-width: 599px) {
	/* Wins over WordPress' own inline global-styles rule
	   (`body .is-layout-flex { display: flex }`), which otherwise beats a
	   plain single-class selector here regardless of media-query nesting. */
	.fc-header-cta {
		display: none !important;
	}
}

/* ---------- Eyebrow + hero ---------- */

.fc-hero-image {
	margin: 0;
	line-height: 0;
}

.fc-hero-buttons {
	justify-content: center;
}

.fc-hero-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Stats band ---------- */

.fc-stats-band {
	background-color: var(--wp--preset--color--panel);
	border-top: 2px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

.fc-stats-band .wp-block-columns {
	margin-bottom: 0;
}

.fc-stat dt {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--huge);
	font-weight: 600;
	color: var(--wp--preset--color--white);
}

.fc-stat dd {
	margin: 0.35rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--panel-soft);
}

/* ---------- Spec rows (education / experience) ---------- */

.fc-spec-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.35rem 2rem;
	padding: 1.75rem 0;
}

@media (min-width: 782px) {
	.fc-spec-row {
		grid-template-columns: 1fr auto;
		align-items: baseline;
	}
}

.fc-spec-row__meta {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft);
	white-space: nowrap;
}

.fc-spec-row h3 {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.fc-spec-row p {
	margin: 0.35rem 0 0;
	color: var(--wp--preset--color--ink-soft);
}

/* ---------- Card grids (Projects / Field Notes / Services) ---------- */

.fc-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fc-card-grid > li {
	margin: 0;
}

.fc-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.75rem;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.fc-card:hover,
.fc-card:focus-visible {
	border-color: var(--wp--preset--color--accent);
	transform: translateY(-2px);
}

.fc-card--static {
	cursor: default;
}

.fc-card--static:hover,
.fc-card--static:focus-visible {
	transform: none;
	border-color: var(--wp--preset--color--line);
}

.fc-card__index {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xx-large);
	color: var(--wp--preset--color--line);
}

.fc-card h3 {
	margin: 1rem 0 0.5rem;
	font-size: var(--wp--preset--font-size--large);
}

.fc-card p {
	margin: 0;
	color: var(--wp--preset--color--ink-soft);
	font-size: var(--wp--preset--font-size--small);
}

.fc-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-soft);
}

.fc-card__meta strong {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
}

.fc-card__outcome {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	color: var(--wp--preset--color--accent-strong);
}

.fc-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.65rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink-soft);
}

/* ---------- Services / consultation pillars ---------- */

.fc-pillar {
	padding: 1.75rem;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	height: 100%;
}

.fc-pillar h3 {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}

.fc-skills-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.fc-pillar ul {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.fc-pillar li {
	position: relative;
	padding-left: 1.1rem;
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft);
}

.fc-pillar li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
}

/* ---------- Utility ---------- */

.fc-on-panel,
.fc-on-panel :where(h1, h2, h3, h4, p) {
	color: var(--wp--preset--color--white);
}

.fc-on-panel .fc-eyebrow {
	color: var(--wp--preset--color--panel-soft);
}

.fc-on-panel .fc-eyebrow::before {
	background: var(--wp--preset--color--accent);
}

/* Site-wide sticky header */
.fc-site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in srgb, var(--wp--preset--color--paper) 92%, transparent);
	backdrop-filter: saturate(140%) blur(6px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--paper) !important;
}
