/* ==========================================================================
   8Folk theme — main stylesheet
   --------------------------------------------------------------------------
   1. Tokens          6. Header & navigation   11. Blog & articles
   2. Base / reset    7. Page headers           12. Portfolio
   3. Typography      8. Sections & blocks      13. Contact & forms
   4. Layout          9. Home hero              14. Footer
   5. Buttons        10. CTA band               15. Utilities, a11y, print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
@font-face {
	font-family: "Outfit";
	src: url("../fonts/outfit-latin-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* Brand (navy + accents can be changed in the Customizer) */
	--ef-navy: #0b1030;
	--ef-navy-2: #161c45;
	--ef-accent: #2f5be0;
	--ef-accent-2: #7f69f2;
	--ef-gradient: linear-gradient(135deg, #4681f7 0%, var(--ef-accent-2) 100%);

	/* Neutrals (taken from the brand sheet) */
	--ef-text: var(--ef-navy);
	--ef-text-2: #4b5168;
	--ef-text-3: #5c6380;
	--ef-bg: #ffffff;
	--ef-tint: #f4f6fb;
	--ef-tint-2: #e8ebf3;
	--ef-line: #dfe3ee;
	--ef-line-strong: #c3c8db;

	/* Status */
	--ef-success: #13795b;
	--ef-error: #b42318;

	/* Type */
	--ef-font-head: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ef-font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ef-fs-xs: 0.8125rem;
	--ef-fs-sm: 0.9375rem;
	--ef-fs-base: 1.0625rem;
	--ef-fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	--ef-fs-h1: clamp(2.25rem, 1.55rem + 3.2vw, 4rem);
	--ef-fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
	--ef-fs-h3: clamp(1.125rem, 1.07rem + 0.25vw, 1.3125rem);

	/* Space & shape */
	--ef-container: 76rem;
	--ef-narrow: 46rem;
	--ef-gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
	--ef-section-y: clamp(3.5rem, 2.25rem + 5vw, 6.5rem);
	--ef-radius: 10px;
	--ef-radius-sm: 8px;
	--ef-radius-lg: 16px;
	--ef-header-h: 72px;
	--ef-shadow: 0 1px 2px rgba(11, 16, 48, 0.04), 0 8px 24px rgba(11, 16, 48, 0.06);
	--ef-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--ef-header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--ef-bg);
	color: var(--ef-text);
	font-family: var(--ef-font-body);
	font-size: var(--ef-fs-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

@supports (overflow: clip) {
	body {
		overflow-x: clip;
	}
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

svg {
	flex-shrink: 0;
}

a {
	color: var(--ef-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--ef-navy);
}

:focus-visible {
	outline: 3px solid var(--ef-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

::selection {
	background: #dfe6ff;
	color: var(--ef-navy);
}

hr {
	border: 0;
	border-top: 1px solid var(--ef-line);
	margin: 2.5rem 0;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* 3. Typography ------------------------------------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--ef-font-head);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--ef-navy);
	margin: 0 0 0.6em;
	text-wrap: balance;
}

h1 {
	font-size: var(--ef-fs-h1);
	letter-spacing: -0.03em;
	line-height: 1.05;
}

h2 {
	font-size: var(--ef-fs-h2);
	letter-spacing: -0.025em;
}

h3 {
	font-size: var(--ef-fs-h3);
	line-height: 1.3;
}

h4 {
	font-size: 1.0625rem;
}

p {
	margin: 0 0 1.1em;
}

p:last-child {
	margin-bottom: 0;
}

strong {
	font-weight: 600;
}

.ef-lead,
.is-style-lead {
	font-size: var(--ef-fs-lead);
	line-height: 1.6;
	color: var(--ef-text-2);
	max-width: 42rem;
}

.ef-lead p {
	margin: 0;
}

.ef-eyebrow,
.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ef-text-3);
}

.ef-eyebrow::before,
.is-style-eyebrow::before {
	content: "";
	width: 1.5rem;
	height: 2px;
	border-radius: 2px;
	background: var(--ef-gradient);
	flex-shrink: 0;
}

.ef-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.ef-eyebrow a:hover {
	color: var(--ef-navy);
}

/* 4. Layout ---------------------------------------------------------------- */
.ef-container {
	width: 100%;
	max-width: calc(var(--ef-container) + 2 * var(--ef-gutter));
	margin-inline: auto;
	padding-inline: var(--ef-gutter);
}

.ef-container--narrow {
	max-width: calc(var(--ef-narrow) + 2 * var(--ef-gutter));
}

.site-main {
	display: block;
	min-height: 50vh;
}

.site-main:focus {
	outline: none;
}

/* Block content: sections are full width, everything else is kept readable. */
.ef-flow > :where(:not(.ef-section):not(.ef-hero):not(.alignfull):not(.alignwide)) {
	max-width: var(--ef-narrow);
	margin-inline: auto;
	padding-inline: var(--ef-gutter);
	box-sizing: content-box;
}

.ef-flow > :where(:not(.ef-section):not(.ef-hero)) + :where(*) {
	margin-top: 1.25rem;
}

.ef-flow > :where(:not(.ef-section):not(.ef-hero)):first-child {
	margin-top: var(--ef-section-y);
}

.ef-flow > :where(:not(.ef-section):not(.ef-hero)):last-child {
	margin-bottom: var(--ef-section-y);
}

.ef-flow > .alignwide {
	max-width: var(--ef-container);
	margin-inline: auto;
	padding-inline: var(--ef-gutter);
	box-sizing: content-box;
}

.ef-flow > .alignfull {
	max-width: none;
	width: 100%;
}

.ef-flow > .wp-block-image img,
.ef-prose .wp-block-image img {
	border-radius: var(--ef-radius);
}

/* 5. Buttons --------------------------------------------------------------- */
.ef-btn,
.wp-block-button .wp-block-button__link,
.wp-element-button,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.7rem 1.4rem;
	border: 1.5px solid var(--ef-navy);
	border-radius: var(--ef-radius-sm);
	background: var(--ef-navy);
	color: #fff;
	font-family: var(--ef-font-head);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s var(--ef-ease), color 0.2s var(--ef-ease), border-color 0.2s var(--ef-ease), transform 0.2s var(--ef-ease);
}

.ef-btn:hover,
.wp-block-button .wp-block-button__link:hover,
.comment-form .submit:hover {
	background: var(--ef-navy-2);
	border-color: var(--ef-navy-2);
	color: #fff;
}

.ef-btn:active,
.wp-block-button .wp-block-button__link:active {
	transform: translateY(1px);
}

.ef-btn--outline,
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--ef-navy);
	border-color: var(--ef-line-strong);
}

.ef-btn--outline:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: transparent;
	color: var(--ef-navy);
	border-color: var(--ef-navy);
}

.ef-btn--light {
	background: #fff;
	border-color: #fff;
	color: var(--ef-navy);
}

.ef-btn--light:hover {
	background: var(--ef-tint-2);
	border-color: var(--ef-tint-2);
	color: var(--ef-navy);
}

.ef-btn--ghost-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.ef-btn--ghost-light:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #fff;
	color: #fff;
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.wp-block-buttons > .wp-block-button {
	margin: 0;
}

.ef-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

/* 6. Header & navigation --------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid var(--ef-line);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--ef-header-h);
}

.site-branding {
	display: flex;
	align-items: center;
	min-width: 0;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	width: auto;
	max-width: 160px;
	max-height: 40px;
	height: auto;
	object-fit: contain;
}

.site-title {
	font-family: var(--ef-font-head);
	font-size: 1.625rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--ef-navy);
	text-decoration: none;
	line-height: 1;
}

.site-title:hover {
	color: var(--ef-navy);
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0 0.875rem;
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius-sm);
	background: #fff;
	color: var(--ef-navy);
	font: 600 0.9375rem/1 var(--ef-font-head);
	cursor: pointer;
}

.menu-toggle > span {
	display: inline-flex;
}

.menu-toggle > .menu-toggle__close,
.menu-toggle[aria-expanded="true"] > .menu-toggle__open {
	display: none;
}

.menu-toggle[aria-expanded="true"] > .menu-toggle__close {
	display: inline-flex;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.ef-menu,
.ef-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ef-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.ef-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.ef-menu a {
	text-decoration: none;
	color: var(--ef-navy);
}

.ef-menu > li > a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.625rem;
	font-size: var(--ef-fs-sm);
	font-weight: 500;
	border-radius: 6px;
}

.ef-menu > li > a:hover,
.ef-menu > li.current-menu-item > a,
.ef-menu > li.current-menu-ancestor > a,
.ef-menu > li.current-menu-parent > a {
	color: var(--ef-accent);
}

.ef-menu > li.current-menu-item > a,
.ef-menu > li.current-menu-ancestor > a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.5em;
}

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-left: -0.375rem;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--ef-navy);
	cursor: pointer;
}

.submenu-toggle .ef-icon {
	transition: transform 0.2s var(--ef-ease);
}

.submenu-toggle[aria-expanded="true"] .ef-icon {
	transform: rotate(180deg);
}

.submenu-toggle:hover {
	background: var(--ef-tint);
}

/* Desktop dropdowns */
@media (min-width: 1080px) {
	.ef-menu .sub-menu {
		position: absolute;
		top: calc(100% + 0.5rem);
		left: 0;
		z-index: 50;
		min-width: 15rem;
		padding: 0.5rem;
		background: #fff;
		border: 1px solid var(--ef-line);
		border-radius: var(--ef-radius);
		box-shadow: var(--ef-shadow);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-4px);
		transition: opacity 0.18s var(--ef-ease), transform 0.18s var(--ef-ease), visibility 0s linear 0.18s;
	}

	/* Hover bridge so the pointer can travel into the panel. */
	.ef-menu .sub-menu::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: -0.75rem;
		height: 0.75rem;
	}

	.ef-menu > li.is-open > .sub-menu,
	.no-js .ef-menu > li:focus-within > .sub-menu {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition-delay: 0s;
	}

	@media (hover: hover) {
		.ef-menu > li:hover > .sub-menu {
			visibility: visible;
			opacity: 1;
			transform: none;
			transition-delay: 0s;
		}
	}

	.ef-menu .sub-menu a {
		display: block;
		padding: 0.5rem 0.75rem;
		border-radius: 6px;
		font-size: var(--ef-fs-sm);
		line-height: 1.35;
	}

	.ef-menu .sub-menu a:hover,
	.ef-menu .sub-menu .current-menu-item > a {
		background: var(--ef-tint);
		color: var(--ef-accent);
	}

	/* Mega menu: positioned against the header, three columns. */
	.ef-menu > li.is-mega {
		position: static;
	}

	.ef-menu > li.is-mega > .sub-menu {
		left: var(--ef-gutter);
		right: var(--ef-gutter);
		top: calc(100% - 0.5rem);
		display: grid;
		grid-template-columns: 1fr 1fr 2fr;
		gap: 1.5rem 2rem;
		padding: 1.75rem 2rem 2rem;
		max-width: 60rem;
		margin-left: auto;
	}

	.ef-menu > li.is-mega > .sub-menu > li > a {
		display: flex;
		align-items: center;
		gap: 0.6rem;
		padding: 0 0 0.75rem;
		margin-bottom: 0.5rem;
		border-bottom: 1px solid var(--ef-line);
		border-radius: 0;
		background: none;
		font-size: 0.75rem;
		font-weight: 600;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--ef-text-3);
	}

	.ef-menu > li.is-mega > .sub-menu > li > a::before {
		content: "";
		width: 1rem;
		height: 2px;
		background: var(--ef-gradient);
		border-radius: 2px;
	}

	.ef-menu > li.is-mega > .sub-menu > li > a:hover {
		color: var(--ef-navy);
		background: none;
	}

	.ef-menu > li.is-mega .sub-menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0;
		border: 0;
		box-shadow: none;
		visibility: inherit;
		opacity: 1;
		transform: none;
		background: none;
	}

	.ef-menu > li.is-mega .sub-menu .sub-menu::before {
		display: none;
	}

	.ef-menu > li.is-mega .sub-menu .sub-menu a {
		padding: 0.4rem 0.5rem;
		margin-inline: -0.5rem;
	}

	/* The Technology column has the most links: let it flow into two columns. */
	.ef-menu > li.is-mega > .sub-menu > li:nth-child(3) > .sub-menu {
		columns: 2;
		column-gap: 1.5rem;
	}

	.ef-menu > li.is-mega > .sub-menu > li:nth-child(3) > .sub-menu > li {
		break-inside: avoid;
	}
}

/* Mobile / tablet navigation */
@media (max-width: 1079.98px) {
	:root {
		--ef-header-h: 64px;
	}

	.js .menu-toggle {
		display: inline-flex;
	}

	.js .site-nav {
		position: fixed;
		top: var(--ef-nav-top, var(--ef-header-h));
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
		padding: 1rem var(--ef-gutter) 2rem;
		background: #fff;
		border-top: 1px solid var(--ef-line);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.js.ef-nav-open .site-nav {
		display: flex;
	}

	.js.ef-nav-open,
	.js.ef-nav-open body {
		overflow: hidden;
	}

	.no-js .site-header__inner {
		flex-wrap: wrap;
		padding-block: 0.75rem;
	}

	.no-js .site-nav {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}

	.ef-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ef-menu > li {
		flex-wrap: wrap;
		border-bottom: 1px solid var(--ef-line);
	}

	.ef-menu > li > a {
		flex: 1;
		min-height: 52px;
		padding: 0;
		font-family: var(--ef-font-head);
		font-size: 1.125rem;
		font-weight: 500;
	}

	.ef-menu > li.current-menu-item > a,
	.ef-menu > li.current-menu-ancestor > a {
		text-decoration: none;
	}

	.submenu-toggle {
		width: 44px;
		height: 44px;
		margin: 0;
		border: 1px solid var(--ef-line);
	}

	.ef-menu .sub-menu {
		width: 100%;
		padding: 0 0 1rem;
	}

	.js .ef-menu > li > .sub-menu {
		display: none;
	}

	.js .ef-menu > li.is-open > .sub-menu {
		display: block;
	}

	.ef-menu .sub-menu a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 0.25rem 0;
		color: var(--ef-text-2);
		font-size: 1rem;
	}

	.ef-menu .sub-menu .current-menu-item > a {
		color: var(--ef-accent);
		font-weight: 600;
	}

	.ef-menu > li.is-mega > .sub-menu > li > a {
		margin-top: 0.75rem;
		min-height: 36px;
		font-size: 0.75rem;
		font-weight: 600;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--ef-text-3);
	}

	.ef-menu .sub-menu .sub-menu {
		padding: 0 0 0 0.875rem;
		border-left: 2px solid var(--ef-tint-2);
	}

	.site-nav__cta {
		width: 100%;
	}
}

/* 7. Page headers & breadcrumbs ------------------------------------------- */
.ef-page-header {
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2.5rem, 1.75rem + 3vw, 4rem);
	background: var(--ef-tint);
	border-bottom: 1px solid var(--ef-line);
}

.ef-page-header__title {
	max-width: 22ch;
	margin-bottom: 0;
}

.ef-page-header .ef-lead {
	margin-top: 1.25rem;
}

.ef-page-header--service .ef-page-header__title {
	max-width: 20ch;
}

.ef-breadcrumbs {
	margin-bottom: 1.75rem;
	font-size: var(--ef-fs-xs);
	color: var(--ef-text-3);
}

.ef-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ef-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.ef-breadcrumbs li + li::before {
	content: "/";
	margin-inline: 0.5rem;
	color: var(--ef-line-strong);
}

.ef-breadcrumbs a {
	color: var(--ef-text-2);
	text-decoration: none;
}

.ef-breadcrumbs a:hover {
	color: var(--ef-accent);
	text-decoration: underline;
}

.ef-breadcrumbs [aria-current] {
	max-width: 32ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ef-text-2);
}

/* 8. Sections & block components ------------------------------------------ */
.ef-section {
	padding-block: var(--ef-section-y);
	padding-inline: max(var(--ef-gutter), calc((100% - var(--ef-container)) / 2));
	margin: 0;
}

.ef-section--muted {
	background: var(--ef-tint);
}

.ef-section--muted + .ef-section--muted {
	border-top: 1px solid var(--ef-line);
}

.ef-section > * + * {
	margin-top: 0;
}

.ef-section-head {
	max-width: 46rem;
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.ef-section-head.is-centered {
	margin-inline: auto;
	text-align: center;
}

.ef-section-head h2 {
	margin-bottom: 0;
}

.ef-section-head .ef-lead {
	margin-top: 1rem;
}

.ef-section > p,
.ef-section > .wp-block-list,
.ef-section > ul,
.ef-section > ol {
	max-width: 46rem;
}

.ef-section--note .ef-section-head {
	margin-bottom: 0;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	max-width: none;
	border: 1px solid var(--ef-line);
	border-left: 4px solid var(--ef-accent);
	border-radius: var(--ef-radius);
	background: #fff;
}

.ef-section--note .ef-section-head .ef-lead {
	max-width: 52rem;
}

/* Grids */
.ef-grid {
	display: grid;
	gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.ef-grid--2,
	.ef-grid--3,
	.ef-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ef-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ef-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ef-grid--4.ef-grid--services {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 640px) and (max-width: 1023.98px) {
	.ef-grid--3 > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

/* Cards */
.ef-card,
.is-style-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	background: #fff;
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	transition: border-color 0.2s var(--ef-ease);
}

.ef-card > * {
	margin-top: 0;
}

.ef-card h3 {
	margin-bottom: 0.5rem;
}

.ef-card p {
	color: var(--ef-text-2);
	font-size: 1rem;
}

.ef-card:has(.ef-card__link a):hover {
	border-color: var(--ef-line-strong);
}

.ef-card__label {
	margin-bottom: 1.5rem !important;
	font-family: var(--ef-font-head);
	font-size: 0.875rem !important;
	font-weight: 600;
	color: var(--ef-accent) !important;
}

.ef-card__link {
	margin-top: auto !important;
	padding-top: 1rem;
}

.ef-card__link a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	font-size: var(--ef-fs-sm);
	text-decoration: none;
	color: var(--ef-navy);
}

.ef-card__link a::after {
	content: "→";
	transition: transform 0.2s var(--ef-ease);
}

.ef-card__link a:hover {
	color: var(--ef-accent);
}

.ef-card__link a:hover::after {
	transform: translateX(3px);
}

.ef-card__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
}

.ef-card__list li {
	margin: 0;
}

.ef-card__list a {
	display: inline-block;
	padding: 0.3rem 0.65rem;
	border: 1px solid var(--ef-line);
	border-radius: 999px;
	font-size: var(--ef-fs-xs);
	font-weight: 500;
	line-height: 1.4;
	color: var(--ef-text-2);
	text-decoration: none;
}

.ef-card__list a:hover {
	border-color: var(--ef-accent);
	color: var(--ef-accent);
}

.ef-grid--pillars .ef-card {
	padding-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	border-top: 3px solid transparent;
	border-image: var(--ef-gradient) 1;
	border-image-width: 3px 0 0 0;
}

.ef-grid--pillars .ef-card h3 {
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
}

.ef-grid--compact .ef-card {
	padding: 1.25rem 1.375rem;
}

.ef-grid--compact .ef-card h3 {
	font-size: 1.0625rem;
}

.ef-grid--compact .ef-card p {
	font-size: var(--ef-fs-sm);
}

.ef-grid--plain .ef-card {
	padding: 0 0 0 1.25rem;
	border: 0;
	border-left: 2px solid var(--ef-tint-2);
	border-radius: 0;
	background: none;
}

.ef-more {
	margin-top: 2rem !important;
}

.ef-more a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--ef-navy);
}

.ef-more a::after {
	content: "→";
}

.ef-more a:hover {
	color: var(--ef-accent);
}

/* Split layout */
.ef-split {
	display: grid;
	gap: 2rem;
}

@media (min-width: 900px) {
	.ef-split {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: clamp(2.5rem, 2rem + 3vw, 5rem);
		align-items: start;
	}
}

.ef-split__aside > p {
	color: var(--ef-text-2);
}

.ef-split .wp-block-buttons {
	margin-top: 1.5rem;
}

/* Checklist */
.ef-checklist,
.is-style-checklist {
	display: grid;
	gap: 1rem 2.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: none !important;
}

@media (min-width: 768px) {
	.ef-section > .ef-checklist {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ef-checklist li,
.is-style-checklist li {
	position: relative;
	margin: 0;
	padding: 0 0 1rem 2.25rem;
	border-bottom: 1px solid var(--ef-line);
	color: var(--ef-text-2);
}

.ef-checklist li strong,
.is-style-checklist li strong {
	color: var(--ef-navy);
}

.ef-checklist li::before,
.is-style-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 1.375rem;
	height: 1.375rem;
	border-radius: 50%;
	background: var(--ef-tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5be0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

/* Process steps */
.ef-steps {
	display: grid;
	gap: 1.5rem;
	counter-reset: ef-step;
}

@media (min-width: 640px) {
	.ef-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ef-steps {
		grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
		gap: 1.5rem;
	}
}

.ef-step {
	position: relative;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ef-line-strong);
	counter-increment: ef-step;
}

.ef-step::before {
	content: counter(ef-step, decimal-leading-zero);
	display: block;
	margin-bottom: 0.875rem;
	font-family: var(--ef-font-head);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ef-accent);
}

.ef-step::after {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 2.5rem;
	height: 2px;
	background: var(--ef-gradient);
}

.ef-step h3 {
	margin-bottom: 0.4rem;
}

.ef-step p {
	color: var(--ef-text-2);
	font-size: 1rem;
}

/* FAQ (core Details block) */
.ef-faq {
	max-width: 52rem;
	border-top: 1px solid var(--ef-line-strong);
}

.ef-faq .wp-block-details,
.ef-prose .wp-block-details {
	margin: 0;
	border-bottom: 1px solid var(--ef-line-strong);
}

.wp-block-details summary {
	position: relative;
	display: block;
	padding: 1.25rem 3rem 1.25rem 0;
	font-family: var(--ef-font-head);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ef-navy);
	cursor: pointer;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after,
.wp-block-details summary::before {
	content: "";
	position: absolute;
	right: 0.5rem;
	top: 50%;
	width: 14px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s var(--ef-ease);
}

.wp-block-details summary::before {
	transform: rotate(90deg);
}

.wp-block-details[open] summary::before {
	transform: rotate(0deg);
}

.wp-block-details summary:hover {
	color: var(--ef-accent);
}

.wp-block-details > :not(summary) {
	margin: 0 0 1.25rem;
	padding-right: 3rem;
	color: var(--ef-text-2);
}

/* Jump links */
.ef-jumplinks__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ef-jumplinks__list li {
	margin: 0;
}

.ef-jumplinks__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--ef-line-strong);
	border-radius: 999px;
	color: var(--ef-navy);
	font-weight: 500;
	text-decoration: none;
}

.ef-jumplinks__list a:hover {
	border-color: var(--ef-navy);
}

/* Related services */
.ef-related {
	border-top: 1px solid var(--ef-line);
}

.ef-related__list {
	display: grid;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	.ef-related__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ef-related__list a {
	position: relative;
	display: grid;
	gap: 0.25rem;
	height: 100%;
	padding: 1.25rem 3.5rem 1.25rem 1.5rem;
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	color: var(--ef-navy);
	text-decoration: none;
	transition: border-color 0.2s var(--ef-ease);
}

.ef-related__list a:hover {
	border-color: var(--ef-navy);
}

.ef-related__title {
	font-family: var(--ef-font-head);
	font-weight: 600;
	font-size: 1.0625rem;
}

.ef-related__desc {
	color: var(--ef-text-2);
	font-size: var(--ef-fs-sm);
}

.ef-related__arrow {
	position: absolute;
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.2s var(--ef-ease);
}

.ef-related__list a:hover .ef-related__arrow {
	transform: translate(3px, -50%);
}

/* Inline CTA pattern */
.ef-cta-inline {
	margin-inline: max(var(--ef-gutter), calc((100% - var(--ef-container)) / 2));
	margin-block: var(--ef-section-y);
	padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
	border-radius: var(--ef-radius-lg);
	background: var(--ef-navy);
	color: #c3c8db;
}

.ef-cta-inline h2 {
	color: #fff;
}

.ef-cta-inline .wp-block-button__link {
	background: #fff;
	border-color: #fff;
	color: var(--ef-navy);
}

/* Small helpers used in content */
.ef-small-heading {
	font-size: 1.125rem;
	margin-top: 2rem;
}

.ef-numbered {
	padding-left: 1.25rem;
	color: var(--ef-text-2);
}

.ef-numbered li + li {
	margin-top: 0.4rem;
}

.ef-notice {
	padding: 1rem 1.25rem;
	border: 1px solid #f0d9a8;
	border-left: 4px solid #b7791f;
	border-radius: var(--ef-radius-sm);
	background: #fffaf0;
	color: #5c4813;
	font-size: var(--ef-fs-sm);
}

.ef-notice a {
	color: #5c4813;
	font-weight: 600;
}

/* 9. Home hero ------------------------------------------------------------- */
.ef-hero {
	display: grid;
	gap: 2.5rem;
	padding-block: clamp(3rem, 2rem + 5vw, 7rem);
	padding-inline: max(var(--ef-gutter), calc((100% - var(--ef-container)) / 2));
	background: var(--ef-tint);
	border-bottom: 1px solid var(--ef-line);
}

@media (min-width: 960px) {
	.ef-hero {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: center;
		gap: clamp(3rem, 2rem + 4vw, 6rem);
	}
}

.ef-hero__title {
	font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.75rem);
	max-width: 13ch;
	margin-bottom: 1.5rem;
}

.ef-hero .ef-lead {
	max-width: 36rem;
}

.ef-hero__aside {
	position: relative;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border-radius: var(--ef-radius-lg);
	background: var(--ef-navy);
	color: #c3c8db;
	overflow: hidden;
}

.ef-hero__aside::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--ef-gradient);
}

.ef-hero__pillars {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ef-hero__pillars li {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 1.125rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-size: var(--ef-fs-sm);
	line-height: 1.55;
}

.ef-hero__pillars li:first-child {
	padding-top: 0;
}

.ef-hero__pillars strong {
	font-family: var(--ef-font-head);
	font-size: 1.25rem;
	font-weight: 600;
	color: #fff;
}

.ef-hero__note {
	margin-top: 1.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #a9b0c8;
}

/* 10. CTA band ------------------------------------------------------------- */
.ef-cta {
	padding-block: var(--ef-section-y);
}

.ef-section--muted + .ef-cta,
.ef-related + .ef-cta {
	padding-top: 0;
}

.ef-section--muted + .ef-cta {
	padding-top: var(--ef-section-y);
}

.ef-cta__inner {
	display: grid;
	gap: 2rem;
	align-items: center;
}

.ef-cta__inner {
	position: relative;
	max-width: calc(var(--ef-container) + 2 * var(--ef-gutter));
	padding: clamp(2rem, 1.25rem + 3.5vw, 4rem) clamp(1.5rem, 1rem + 3vw, 4rem);
	border-radius: var(--ef-radius-lg);
	background: var(--ef-navy);
	color: #c3c8db;
	overflow: hidden;
	width: calc(100% - 2 * var(--ef-gutter));
}

.ef-cta__inner::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--ef-gradient);
}

@media (min-width: 900px) {
	.ef-cta__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 3rem;
	}
}

.ef-cta h2 {
	color: #fff;
	margin-bottom: 0.75rem;
}

.ef-cta .ef-eyebrow {
	color: #a9b0c8;
}

.ef-cta p {
	max-width: 38rem;
}

.ef-cta .ef-actions {
	margin-top: 0;
}

/* 11. Blog & articles ------------------------------------------------------ */
.ef-listing {
	padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--ef-section-y);
}

.ef-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 2.5rem;
}

.ef-toolbar .ef-search {
	margin-left: auto;
	width: min(100%, 20rem);
}

.ef-filter ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ef-listing > .ef-filter {
	margin-bottom: 2.5rem;
}

.ef-filter a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.4rem 1rem;
	border: 1px solid var(--ef-line);
	border-radius: 999px;
	color: var(--ef-text-2);
	font-size: var(--ef-fs-sm);
	font-weight: 500;
	text-decoration: none;
}

.ef-filter a:hover {
	border-color: var(--ef-navy);
	color: var(--ef-navy);
}

.ef-filter a[aria-current] {
	background: var(--ef-navy);
	border-color: var(--ef-navy);
	color: #fff;
}

.ef-search {
	position: relative;
	display: flex;
	max-width: 28rem;
}

.ef-search input[type="search"] {
	width: 100%;
	min-height: 48px;
	padding: 0.6rem 3.25rem 0.6rem 1rem;
	border: 1px solid var(--ef-line-strong);
	border-radius: var(--ef-radius-sm);
	background: #fff;
	color: var(--ef-navy);
	font: inherit;
	font-size: 1rem;
}

.ef-search button {
	position: absolute;
	right: 4px;
	top: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 6px;
	background: var(--ef-navy);
	color: #fff;
	cursor: pointer;
}

.ef-post-card,
.ef-project-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	transition: border-color 0.2s var(--ef-ease);
}

.ef-post-card:hover,
.ef-project-card:hover {
	border-color: var(--ef-line-strong);
}

.ef-post-card__media,
.ef-project-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--ef-tint-2);
}

.ef-post-card__media img,
.ef-project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--ef-ease);
}

.ef-post-card:hover img,
.ef-project-card:hover img {
	transform: scale(1.02);
}

.ef-post-card__body,
.ef-project-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.375rem 1.5rem 1.5rem;
}

.ef-post-card__cat,
.ef-project-card__cat {
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ef-text-3);
}

.ef-post-card__title,
.ef-project-card__title {
	font-size: 1.1875rem;
	line-height: 1.35;
	margin-bottom: 0.5rem;
}

.ef-post-card__title a,
.ef-project-card__title a {
	color: var(--ef-navy);
	text-decoration: none;
}

/* Whole card is clickable via the title link. */
.ef-post-card,
.ef-project-card {
	position: relative;
}

.ef-post-card__title a::after,
.ef-project-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ef-post-card__title a:focus-visible,
.ef-project-card__title a:focus-visible {
	outline: none;
}

.ef-post-card:has(a:focus-visible),
.ef-project-card:has(a:focus-visible) {
	outline: 3px solid var(--ef-accent);
	outline-offset: 2px;
}

.ef-post-card__excerpt,
.ef-project-card__excerpt {
	color: var(--ef-text-2);
	font-size: var(--ef-fs-sm);
}

.ef-post-card .ef-meta {
	margin-top: auto;
	padding-top: 1rem;
}

.ef-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0;
	font-size: var(--ef-fs-xs);
	color: var(--ef-text-3);
}

.ef-meta__sep {
	margin-inline: 0.5rem;
}

.ef-meta a {
	color: var(--ef-text-2);
}

.ef-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.ef-tags li {
	margin: 0;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: var(--ef-tint);
	color: var(--ef-text-2);
	font-size: 0.75rem;
	font-weight: 500;
}

.ef-tags a {
	color: inherit;
	text-decoration: none;
}

.ef-project-card .ef-tags {
	margin-top: auto;
	padding-top: 1rem;
}

.ef-pagination {
	margin-top: 3rem;
}

.ef-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.375rem;
}

.ef-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.875rem;
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius-sm);
	color: var(--ef-navy);
	font-weight: 500;
	text-decoration: none;
}

.ef-pagination a.page-numbers:hover {
	border-color: var(--ef-navy);
}

.ef-pagination .page-numbers.current {
	background: var(--ef-navy);
	border-color: var(--ef-navy);
	color: #fff;
}

.ef-pagination .page-numbers.dots {
	border: 0;
}

/* Search results */
.ef-results {
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0;
	border-top: 1px solid var(--ef-line);
}

.ef-result {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--ef-line);
}

.ef-result__type {
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ef-text-3);
}

.ef-result__title {
	font-size: 1.25rem;
	margin-bottom: 0.4rem;
}

.ef-result__title a {
	color: var(--ef-navy);
	text-decoration: none;
}

.ef-result__title a:hover {
	color: var(--ef-accent);
	text-decoration: underline;
}

.ef-result p {
	color: var(--ef-text-2);
	font-size: var(--ef-fs-sm);
}

/* Article */
.ef-article__header .ef-page-header__title {
	max-width: none;
}

.ef-article__header .ef-meta {
	margin-top: 1.5rem;
	font-size: var(--ef-fs-sm);
}

.ef-article__media {
	margin-block: clamp(2rem, 1.5rem + 2vw, 3rem) 0;
}

.ef-article__media img {
	width: 100%;
	border-radius: var(--ef-radius);
}

.ef-article__media figcaption {
	margin-top: 0.75rem;
	font-size: var(--ef-fs-xs);
	color: var(--ef-text-3);
	text-align: center;
}

.ef-prose {
	padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
	font-size: 1.0625rem;
	line-height: 1.75;
}

.ef-prose > * + * {
	margin-top: 1.25em;
}

.ef-prose > * {
	margin-bottom: 0;
}

.ef-prose h2 {
	margin-top: 2.25em;
	font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
}

.ef-prose h3 {
	margin-top: 2em;
	font-size: 1.3125rem;
}

.ef-prose h2 + *,
.ef-prose h3 + * {
	margin-top: 0.75em;
}

.ef-prose ul,
.ef-prose ol {
	padding-left: 1.4rem;
}

.ef-prose li + li {
	margin-top: 0.4em;
}

.ef-prose blockquote,
.ef-prose .wp-block-quote {
	margin-inline: 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 3px solid var(--ef-accent);
	font-family: var(--ef-font-head);
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--ef-navy);
}

.ef-prose code {
	padding: 0.15em 0.35em;
	border-radius: 4px;
	background: var(--ef-tint);
	font-size: 0.9em;
}

.ef-prose pre {
	overflow-x: auto;
	padding: 1.25rem;
	border-radius: var(--ef-radius-sm);
	background: var(--ef-navy);
	color: #e8ebf3;
	font-size: 0.9rem;
}

.ef-prose pre code {
	padding: 0;
	background: none;
}

.ef-prose table {
	font-size: var(--ef-fs-sm);
}

.ef-prose th,
.ef-prose td {
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid var(--ef-line);
	text-align: left;
}

.ef-prose .wp-block-table {
	overflow-x: auto;
}

.ef-article__footer {
	padding-bottom: var(--ef-section-y);
	border-top: 1px solid var(--ef-line);
	padding-top: 2rem;
}

.ef-author {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
	padding: 1.5rem;
	border-radius: var(--ef-radius);
	background: var(--ef-tint);
}

.ef-author img {
	border-radius: 50%;
	width: 64px;
	height: 64px;
}

.ef-author__name {
	margin-bottom: 0.25rem;
	font-family: var(--ef-font-head);
	font-weight: 600;
}

.ef-author__name a {
	color: var(--ef-navy);
	text-decoration: none;
}

.ef-author p {
	color: var(--ef-text-2);
	font-size: var(--ef-fs-sm);
}

.ef-post-nav {
	margin-top: 2.5rem;
}

.ef-post-nav .nav-links {
	display: grid;
	gap: 1rem;
}

@media (min-width: 640px) {
	.ef-post-nav .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.ef-post-nav .nav-next {
		grid-column: 2;
		text-align: right;
	}
}

.ef-post-nav a {
	display: grid;
	gap: 0.25rem;
	height: 100%;
	padding: 1.25rem;
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	color: var(--ef-navy);
	text-decoration: none;
}

.ef-post-nav a:hover {
	border-color: var(--ef-navy);
}

.nav-label {
	font-size: var(--ef-fs-xs);
	color: var(--ef-text-3);
}

.nav-title {
	font-family: var(--ef-font-head);
	font-weight: 600;
}

/* Comments */
.ef-comments {
	padding-bottom: var(--ef-section-y);
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	padding-left: 1.5rem;
}

.comment-body {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--ef-line);
}

.comment-author img {
	display: inline-block;
	vertical-align: middle;
	margin-right: 0.5rem;
	border-radius: 50%;
}

.comment-metadata {
	font-size: var(--ef-fs-xs);
}

.comment-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
}

.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--ef-line-strong);
	border-radius: var(--ef-radius-sm);
	font: inherit;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
}

.comment-form-cookies-consent label {
	font-weight: 400;
	color: var(--ef-text-2);
}

/* 404 */
.ef-404 {
	padding-block: clamp(4rem, 3rem + 6vw, 8rem);
	background: var(--ef-tint);
}

.ef-404 .ef-lead {
	margin-bottom: 2rem;
}

.ef-404__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

.ef-404__links a {
	font-weight: 600;
}

/* 12. Portfolio ------------------------------------------------------------ */
.ef-project-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-family: var(--ef-font-head);
	font-size: 3rem;
	font-weight: 600;
	color: var(--ef-line-strong);
	text-transform: uppercase;
}

.ef-project__layout {
	display: grid;
	gap: 2rem;
	padding-bottom: 2rem;
}

@media (min-width: 960px) {
	.ef-project__layout {
		grid-template-columns: minmax(0, 1fr) 20rem;
		gap: 4rem;
		align-items: start;
	}

	.ef-project__facts {
		position: sticky;
		top: calc(var(--ef-header-h) + 2rem);
		margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
	}
}

.ef-project .ef-prose {
	max-width: 46rem;
}

.ef-project__facts {
	padding: 1.5rem;
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
}

.ef-project__facts dl {
	margin: 0 0 1.5rem;
}

.ef-project__facts dt {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ef-text-3);
}

.ef-project__facts dd {
	margin: 0.25rem 0 1.25rem;
}

.ef-project__facts .ef-tags {
	margin-top: 0.5rem;
}

.ef-project__facts .ef-btn {
	width: 100%;
}

.ef-project__back {
	padding-bottom: var(--ef-section-y);
}

.ef-project__back a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--ef-navy);
}

.ef-empty {
	display: grid;
	justify-items: center;
	gap: 1.25rem;
	max-width: 40rem;
	margin-inline: auto;
	padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) clamp(1.25rem, 1rem + 2vw, 3rem);
	border: 1px dashed var(--ef-line-strong);
	border-radius: var(--ef-radius-lg);
	background: #fff;
	text-align: center;
}

.ef-empty--compact {
	max-width: none;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.ef-empty--compact {
		grid-template-columns: auto 1fr auto;
		align-items: center;
		justify-items: start;
		text-align: left;
	}

	.ef-empty--compact .ef-empty__admin {
		grid-column: 1 / -1;
	}
}

.ef-empty__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ef-tint);
	color: var(--ef-accent);
}

.ef-empty__title {
	margin-bottom: 0.4rem;
	font-family: var(--ef-font-head);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--ef-navy);
}

.ef-empty p {
	color: var(--ef-text-2);
}

.ef-empty .ef-search {
	width: 100%;
}

.ef-empty__admin {
	font-size: var(--ef-fs-xs);
}

/* 13. Contact & forms ------------------------------------------------------ */
.ef-contact__layout {
	display: grid;
	gap: 3rem;
	padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--ef-section-y);
}

@media (min-width: 960px) {
	.ef-contact__layout {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: clamp(3rem, 2rem + 4vw, 6rem);
		align-items: start;
	}
}

.ef-contact__intro .entry-content > * + * {
	margin-top: 1rem;
}

.ef-contact__intro .ef-lead {
	font-size: 1.125rem;
}

.ef-contact-list {
	display: grid;
	gap: 1.25rem;
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 2rem 0 0;
	border-top: 1px solid var(--ef-line);
}

.ef-contact-list li {
	display: flex;
	gap: 1rem;
	margin: 0;
}

.ef-contact-list li > span:last-child {
	display: grid;
	min-width: 0;
	overflow-wrap: anywhere;
}

.ef-contact-list__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ef-tint);
	color: var(--ef-navy);
	flex-shrink: 0;
}

.ef-contact-list__label {
	font-size: var(--ef-fs-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ef-text-3);
}

.ef-contact-list a {
	font-weight: 600;
	color: var(--ef-navy);
}

.ef-form {
	padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius-lg);
	background: #fff;
	box-shadow: var(--ef-shadow);
}

.ef-form__title {
	font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
	margin-bottom: 0.25rem;
}

.ef-form__hint {
	margin-bottom: 1.75rem;
	color: var(--ef-text-3);
	font-size: var(--ef-fs-sm);
}

.ef-form__row {
	display: grid;
	gap: 0 1.25rem;
}

@media (min-width: 640px) {
	.ef-form__row {
		grid-template-columns: 1fr 1fr;
	}
}

.ef-field {
	margin-bottom: 1.25rem;
	min-width: 0;
}

.ef-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
	font-size: var(--ef-fs-sm);
	color: var(--ef-navy);
}

.ef-req,
.ef-opt {
	font-weight: 400;
	color: var(--ef-text-3);
	font-size: var(--ef-fs-xs);
}

.ef-field input,
.ef-field select,
.ef-field textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--ef-line-strong);
	border-radius: var(--ef-radius-sm);
	background: #fff;
	color: var(--ef-navy);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 0.15s var(--ef-ease), box-shadow 0.15s var(--ef-ease);
}

.ef-field select {
	appearance: none;
	padding-right: 2.5rem;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1030' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.9rem center / 1rem no-repeat;
}

.ef-field textarea {
	min-height: 9rem;
	resize: vertical;
}

.ef-field input:hover,
.ef-field select:hover,
.ef-field textarea:hover {
	border-color: var(--ef-text-3);
}

.ef-field input:focus,
.ef-field select:focus,
.ef-field textarea:focus {
	outline: none;
	border-color: var(--ef-accent);
	box-shadow: 0 0 0 3px rgba(47, 91, 224, 0.25);
}

.ef-field [aria-invalid="true"] {
	border-color: var(--ef-error);
	border-width: 2px;
}

.ef-field__help {
	margin: -0.15rem 0 0.5rem;
	color: var(--ef-text-3);
	font-size: var(--ef-fs-xs);
}

.ef-field__error {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	margin: 0.4rem 0 0;
	color: var(--ef-error);
	font-size: var(--ef-fs-sm);
	font-weight: 500;
}

.ef-field__error::before {
	content: "!";
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.15rem;
	border-radius: 50%;
	background: var(--ef-error);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
}

.ef-field__error[hidden] {
	display: none;
}

.ef-field--check {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 0.75rem;
	align-items: start;
}

.ef-field--check input {
	width: 1.25rem;
	height: 1.25rem;
	min-height: 0;
	margin: 0.15rem 0 0;
	padding: 0;
	accent-color: var(--ef-navy);
}

.ef-field--check label {
	font-weight: 400;
	color: var(--ef-text-2);
}

.ef-field--check .ef-field__error {
	grid-column: 1 / -1;
}

.ef-form__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 1.75rem;
}

.ef-form__submit .ef-btn {
	min-width: 12rem;
}

.ef-form__submit .ef-btn[aria-busy="true"] {
	opacity: 0.7;
	cursor: progress;
}

.ef-form__privacy {
	margin: 0;
	color: var(--ef-text-3);
	font-size: var(--ef-fs-xs);
}

.ef-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ef-alert {
	display: flex;
	gap: 0.875rem;
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid;
	border-left-width: 4px;
	border-radius: var(--ef-radius-sm);
	font-size: var(--ef-fs-sm);
}

.ef-alert[hidden] {
	display: none;
}

.ef-alert--success {
	border-color: #a6d9c4;
	border-left-color: var(--ef-success);
	background: #f0faf5;
	color: #0b4d3a;
	padding: 1.5rem;
}

.ef-alert--success .ef-icon {
	color: var(--ef-success);
}

.ef-alert--success a {
	color: #0b4d3a;
	font-weight: 600;
}

.ef-alert--error {
	border-color: #f2c3be;
	border-left-color: var(--ef-error);
	background: #fef4f3;
	color: #7a1a12;
}

.ef-alert__title {
	margin-bottom: 0.25rem;
	font-family: var(--ef-font-head);
	font-size: 1.125rem;
	font-weight: 600;
}

/* 14. Footer --------------------------------------------------------------- */
.site-footer {
	padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem;
	background: var(--ef-navy);
	color: #a9b0c8;
	font-size: var(--ef-fs-sm);
}

.site-footer a {
	color: #dfe3ee;
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer :focus-visible {
	outline-color: #8fa8ff;
}

.site-footer__grid {
	display: grid;
	gap: 2.5rem 2rem;
}

@media (min-width: 640px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.site-footer__grid {
		grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
		gap: 3rem;
	}

	.site-footer__brand {
		grid-column: auto;
	}
}

.site-footer__logo {
	display: inline-block;
	margin-bottom: 1.25rem;
}

.site-footer__logo img {
	width: auto;
	max-width: 150px;
	max-height: 40px;
}

.site-footer .site-title {
	color: #fff;
}

.site-footer__brand p {
	max-width: 24rem;
}

.site-footer__tagline {
	margin-top: 1rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #8a91ab;
}

.site-footer__heading {
	margin-bottom: 1rem;
	font-family: var(--ef-font-head);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
	color: #fff;
}

.site-footer .menu,
.site-footer__contact {
	display: grid;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .menu a,
.site-footer__contact a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
}

.site-footer__contact li {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	min-width: 0;
	overflow-wrap: anywhere;
}

.site-footer__contact .ef-icon {
	color: #8a91ab;
}

.ef-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
}

.ef-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	color: #dfe3ee;
}

.ef-social a:hover {
	border-color: #fff;
	color: #fff;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: var(--ef-fs-xs);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__bottom .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5rem;
}

/* 15. Utilities, accessibility, print -------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	margin: 0;
	clip: auto;
	clip-path: none;
	border-radius: var(--ef-radius-sm);
	background: var(--ef-navy);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.ef-icon {
	display: inline-block;
	vertical-align: middle;
}

/* WordPress core classes */
.alignleft {
	float: left;
	margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.5rem 0 1rem 1.5rem;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text,
.wp-element-caption {
	font-size: var(--ef-fs-xs);
	color: var(--ef-text-3);
	text-align: center;
}

.sticky .ef-post-card__title::before {
	content: "★ ";
	color: var(--ef-accent);
}

.bypostauthor {
	display: block;
}

.gallery-caption {
	font-size: var(--ef-fs-xs);
}

.page-links {
	margin-top: 2rem;
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.ef-cta,
	.ef-related,
	.ef-breadcrumbs,
	.ef-form,
	.menu-toggle {
		display: none !important;
	}

	body {
		color: #000;
	}

	a {
		color: #000;
	}
}
