/* Section "exp-nav" (sections/exp-nav.php, prefix en-). Loaded in the <head> by hec_enqueue_section_styles(), or inline by hec_section_style() (functions.php). */
.en-root {
	--en-lift: clamp(1rem, 0.2rem + 2.5vw, 2.5rem); /* how far the cards rise over the page header */
	position: relative; /* painted over the bottom of the page header, before it in the stacking order */
	margin-top: calc(var(--en-lift) * -1);
	padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
	background: linear-gradient(to bottom, transparent, var(--c-ivoire-100) var(--en-lift)); /* fades the header's halo out */
	color: var(--c-cacao-900);
	font-family: var(--f-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}
.en-inner { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-gutter); }
.en-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Index: one card per pole */
.en-root .en-cards { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.en-card { display: flex; min-width: 0; }
.en-root .en-card-link { /* phones: photo | label and title | arrow */
	position: relative;
	display: grid;
	grid-template-columns: 4rem minmax(0, 1fr) auto;
	grid-template-areas: "thumb body foot";
	align-items: center;
	column-gap: var(--space-4);
	width: 100%;
	padding: var(--space-4) var(--space-4) var(--space-4) var(--space-4);
	overflow: hidden;
	border: 1px solid var(--c-lin-300);
	border-radius: var(--radius-lg);
	background: var(--c-ivoire-50);
	box-shadow: var(--shadow-md);
	color: var(--c-cacao-900);
	text-decoration: none;
	transition: transform 0.5s var(--ease-doux), box-shadow 0.5s var(--ease-doux), border-color 0.3s;
}
.en-root .en-card-link::after { /* mustard line drawn along the bottom on hover */
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: var(--c-ambre-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s var(--ease-doux);
}
.en-root .en-card-link:hover { border-color: color-mix(in srgb, var(--c-ambre-500) 60%, var(--c-lin-300)); box-shadow: var(--shadow-lg); transform: translateY(-0.375rem); }
.en-root .en-card-link:hover::after { transform: scaleX(1); }
.en-root .en-card-link:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }

.en-thumb { /* the pole's photo, one large curved corner as the poles' frames */
	grid-area: thumb;
	display: block;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 1.75rem var(--radius-sm) var(--radius-sm) var(--radius-sm);
}
.en-card--dark .en-thumb { border-radius: var(--radius-sm) 1.75rem var(--radius-sm) var(--radius-sm); }
.en-root .en-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 0.8s var(--ease-doux); }
.en-root .en-card-link:hover .en-thumb img { scale: 1.08; }

.en-num { /* large outlined numeral, filled with mustard on hover (as the services' numerals) */
	grid-area: num;
	display: none;
	justify-self: end;
	align-self: start;
	color: transparent;
	font-family: var(--f-serif);
	font-size: clamp(3rem, 2.4rem + 1.4vw, 4rem);
	font-style: italic;
	font-weight: 300;
	line-height: 0.9;
	-webkit-text-stroke: 1px var(--c-ambre-500);
	transition: color 0.4s;
}
.en-root .en-card-link:hover .en-num { color: var(--c-ambre-500); }

.en-body { grid-area: body; display: flex; flex-direction: column; min-width: 0; }
.en-label {
	color: var(--c-ambre-700);
	font-size: var(--fs-index);
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: var(--lh-ui);
	text-transform: uppercase;
}
.en-title {
	margin-top: var(--space-1);
	font-family: var(--f-serif);
	font-size: clamp(1.125rem, 1rem + 0.6vw, 1.625rem);
	font-weight: 400;
	font-variation-settings: "opsz" 48, "SOFT" 100;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.en-title-em { color: var(--c-brun-500); font-style: italic; }
.en-services { display: none; margin-top: var(--space-4); color: var(--c-cacao-600); font-size: var(--fs-body-sm); line-height: 1.6; }
.en-service { display: inline; }
.en-service + .en-service::before { /* mustard dot between the services */
	content: "";
	display: inline-block;
	width: 0.25rem;
	height: 0.25rem;
	margin: 0 0.55em;
	border-radius: 50%;
	background: var(--c-ambre-500);
	vertical-align: 0.2em;
}

.en-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.en-count { display: none; color: var(--c-cacao-600); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.02em; }
.en-arrow {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--c-lin-300);
	border-radius: 50%;
	color: var(--c-btn);
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.en-root .en-arrow svg { transition: translate 0.4s var(--ease-doux); }
.en-root .en-card-link:hover .en-arrow { border-color: var(--c-ambre-500); background: var(--c-ambre-500); color: var(--c-on-accent); }
.en-root .en-card-link:hover .en-arrow svg { translate: 0 2px; }

/* The fertility pole is dark, as its band below */
.en-root .en-card--dark .en-card-link { border-color: var(--c-dark); background: var(--c-dark); color: var(--c-ivoire-100); }
.en-card--dark .en-label, .en-card--dark .en-title-em { color: var(--c-ambre-500); }
.en-card--dark .en-services, .en-card--dark .en-count { color: var(--c-on-dark-muted); }
.en-card--dark .en-arrow { border-color: color-mix(in srgb, var(--c-ivoire-100) 22%, transparent); color: var(--c-ivoire-100); }

@media (min-width: 768px) { /* three cards: photo and numeral, label and title, count and arrow */
	.en-root .en-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
	.en-root .en-card-link {
		grid-template-columns: 4.5rem minmax(0, 1fr);
		grid-template-rows: auto 1fr auto;
		grid-template-areas: "thumb num" "body body" "foot foot";
		align-items: stretch;
		padding: var(--space-5);
	}
	.en-num { display: block; }
	.en-body { margin-top: var(--space-4); }
	.en-foot { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--c-lin-300); }
	.en-card--dark .en-foot { border-top-color: color-mix(in srgb, var(--c-ivoire-100) 14%, transparent); }
	.en-count { display: block; }
}
@media (min-width: 1024px) {
	.en-root .en-cards { gap: var(--space-6); }
	.en-root .en-card-link { grid-template-columns: 5.5rem minmax(0, 1fr); padding: var(--space-6); }
}
@media (min-width: 1200px) { /* wide enough for the services under the title */
	.en-services { display: block; }
}

/* Bar: slides in under the site header once the index has scrolled away */
.en-bar {
	position: fixed;
	top: calc(4.25rem + 1px); /* under the site header (and its hairline): its height on phones, and on desktop once the page has scrolled */
	right: 0;
	left: 0;
	z-index: 90;
	padding-block: var(--space-2);
	border-bottom: 1px solid var(--c-lin-300);
	background: color-mix(in srgb, var(--c-ivoire-100) 90%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	translate: 0 -0.75rem;
	transition: opacity 0.3s, translate 0.3s var(--ease-doux), visibility 0s 0.3s;
}
.en-bar[data-en-on] { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 0.3s, translate 0.3s var(--ease-doux); }
@media (min-width: 601px) { /* the WP admin bar is fixed from 601px up */
	.admin-bar .en-bar { top: calc(4.25rem + 1px + var(--wp-admin--admin-bar--height, 32px)); }
}
.en-root .en-list {
	display: flex;
	gap: var(--space-2);
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--space-gutter);
	overflow-x: auto; /* phones: the pills scroll sideways */
	list-style: none;
	scrollbar-width: none;
}
.en-root .en-list::-webkit-scrollbar { display: none; }
.en-root .en-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 2.75rem;
	padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
	border: 1px solid var(--c-lin-300);
	border-radius: var(--radius-pill);
	background: var(--c-ivoire-50);
	color: var(--c-cacao-700);
	font-size: var(--fs-body-sm);
	font-weight: 600;
	line-height: var(--lh-ui);
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.en-link-num { /* the pole's number in a small mustard disc */
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--c-ambre-50);
	color: var(--c-ambre-700);
	font-size: var(--fs-caption);
	font-weight: 700;
	transition: background-color 0.3s, color 0.3s;
}
.en-root .en-link:hover { border-color: var(--c-ambre-500); color: var(--c-cacao-900); }
.en-root .en-link[aria-current="true"] { border-color: var(--c-btn); background: var(--c-btn); color: var(--c-on-brand); }
.en-root .en-link[aria-current="true"] .en-link-num { background: var(--c-ambre-500); color: var(--c-on-accent); }
.en-root .en-link:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.en-progress { /* how far the reader is through the three poles */
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	background: var(--c-ambre-500);
	transform: scaleX(var(--en-p, 0));
	transform-origin: left;
}
@media (min-width: 768px) {
	.en-root .en-list { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.en-root .en-card-link, .en-root .en-card-link::after, .en-root .en-thumb img, .en-num, .en-arrow, .en-root .en-arrow svg,
	.en-bar, .en-bar[data-en-on], .en-root .en-link, .en-link-num { transition: none; }
	.en-root .en-card-link:hover { transform: none; }
}
