/*
Theme Name: Coaching for Excellence
Theme URI: https://coachingforexcellence.ro
Author: Kooperativa 2.0
Author URI: https://kooperativa.ro
Description: Tema custom pentru coachingforexcellence.ro. Logo-ul, culorile și structura urmează site-ul de producție; designul pornește de la tema gratielabaias.ro.
Version: 1.0.2
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: c4e
*/

/* ==========================================================================
   Tokens (colours taken from the production site: black logo, #E90505 red,
   #eeeeee section grey, #222 text)
   ========================================================================== */

:root {
	--accent: #e90505;        /* production main colour (buttons, highlights) */
	--accent-text: #c80404;   /* red for small text on white (AA) */
	--accent-deep: #bc0c06;   /* hover */
	--black: #151515;         /* logo, footer, hero background */
	--grey: #eeeeee;          /* production section grey */
	--soft: #f5f5f5;          /* panels and testimonial boxes */
	--ink: #222222;           /* production body text */
	--muted: #5c5c5c;
	--line: #e2e2e2;
	--white: #ffffff;

	--font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

	--step-0: 1rem;                               /* 16px body (Montserrat is wide) */
	--step-1: 1.1875rem;                          /* 19px */
	--step-2: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
	--step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.75rem);
	--step-4: clamp(2.4rem, 1.8rem + 3vw, 4rem);

	--gutter: clamp(1rem, 4vw, 2.5rem);
	--section: clamp(3.5rem, 7vw, 6rem);
	--max: 1200px;
	--radius: 8px;            /* inputs, small controls */
	--radius-img: 12px;       /* photos */
	--radius-panel: 18px;     /* boxes and panels */
	--shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 14px 34px -14px rgba(0, 0, 0, .22);
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

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

img {
	height: auto;
	display: block;
}

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

a:hover {
	color: var(--accent-deep);
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0 0 .6em;
	color: var(--ink);
}

p {
	margin: 0 0 1.1em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: .6rem 1rem;
	background: var(--ink);
	color: var(--white);
}

.skip-link:focus {
	top: 1rem;
	color: var(--white);
}

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

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

.container--media {
	max-width: calc(60rem + 2 * var(--gutter));
}

.icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 3rem;
	padding: .7rem 1.6rem;
	border: 0;
	border-radius: 999px;
	font: 500 1rem/1.2 var(--font-body);
	letter-spacing: .02em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease;
}

.btn--red {
	background: var(--accent);
	color: var(--white);
}

.btn--red:hover {
	background: var(--accent-deep);
	color: var(--white);
}

.btn--dark {
	background: var(--black);
	color: var(--white);
}

.btn--dark:hover {
	background: var(--accent);
	color: var(--white);
}

/* ==========================================================================
   Top bar + header
   ========================================================================== */

.topbar {
	background: var(--grey);
	font-size: .875rem;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 2.5rem;
}

.topbar__contact {
	display: flex;
	gap: 1.5rem;
	margin: 0;
}

.topbar__contact a {
	color: var(--muted);
	text-decoration: none;
}

.topbar__contact a:hover {
	color: var(--accent-deep);
}

.social {
	display: flex;
	gap: .4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social a {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--black);
	color: var(--white);
	transition: background-color .15s ease;
}

.social a:hover {
	background: var(--accent);
	color: var(--white);
}

.social .icon {
	width: 1rem;
	height: 1rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--line);
}

/* Desktop only: backdrop-filter makes the header the containing block for
   fixed children, which would clip the full-screen mobile menu. */
@media (min-width: 960px) {
	@supports (backdrop-filter: blur(8px)) {
		.site-header {
			background: rgba(255, 255, 255, .85);
			backdrop-filter: blur(8px);
		}
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 5rem;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: .9rem;
	color: var(--ink);
	text-decoration: none;
}

.site-logo__img {
	width: 240px;
	height: auto;
}

.primary-nav__list,
.primary-nav__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav__list a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
}

.primary-nav__list .current-menu-item > a,
.primary-nav__list .current-menu-ancestor > a,
.primary-nav__list .current-category-ancestor > a,
.primary-nav__list a:hover {
	color: var(--accent-text);
}

.menu-toggle {
	display: none;
}

@media (min-width: 960px) {
	.primary-nav__list {
		display: flex;
		align-items: center;
		gap: .25rem;
	}

	.primary-nav__list > li {
		position: relative;
	}

	.primary-nav__list > li > a {
		display: block;
		padding: 1.75rem .8rem;
		background-image: linear-gradient(var(--accent), var(--accent));
		background-repeat: no-repeat;
		background-position: center calc(100% - 1.3rem);
		background-size: 0 1px;
		transition: background-size .2s ease;
	}

	.primary-nav__list > li > a:hover,
	.primary-nav__list > .current-menu-item > a,
	.primary-nav__list > .current-menu-ancestor > a,
	.primary-nav__list > .current-category-ancestor > a {
		background-size: calc(100% - 1.6rem) 1px;
	}

	.primary-nav__list .menu-item-has-children > a::after {
		content: "";
		display: inline-block;
		width: .4em;
		height: .4em;
		margin-left: .45em;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-.2em) rotate(45deg);
	}

	.primary-nav__list .sub-menu {
		position: absolute;
		top: calc(100% - .75rem);
		left: .2rem;
		width: 18rem;
		padding: .5rem;
		background: var(--white);
		border: 1px solid var(--line);
		border-top: 2px solid var(--accent);
		border-radius: 0 0 var(--radius) var(--radius);
		box-shadow: var(--shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(4px);
		transition: opacity .15s ease, transform .15s ease, visibility .15s;
	}

	.primary-nav__list li:hover > .sub-menu,
	.primary-nav__list li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-nav__list .sub-menu a {
		display: block;
		padding: .55rem .8rem;
		font-weight: 400;
	}

	.primary-nav__list .sub-menu a:hover {
		background: var(--soft);
	}

	/* Third level (e.g. Personal > Coaching pentru Performanță > workshop-uri) opens to the side. */
	.primary-nav__list .sub-menu li {
		position: relative;
	}

	.primary-nav__list .sub-menu .menu-item-has-children > a::after {
		float: right;
		margin-top: .55em;
		transform: rotate(-45deg);
	}

	.primary-nav__list .sub-menu .sub-menu {
		top: -.5rem;
		left: calc(100% + .5rem);
		border-top-width: 1px;
		border-left: 2px solid var(--accent);
		border-radius: 0 var(--radius) var(--radius) 0;
	}

	/* The last menu items open their third level to the left, inside the page. */
	.primary-nav__list > li:nth-last-child(-n+2) .sub-menu {
		left: auto;
		right: .2rem;
	}

	.primary-nav__list > li:nth-last-child(-n+2) .sub-menu .sub-menu {
		right: calc(100% + .5rem);
		border-left-width: 1px;
		border-right: 2px solid var(--accent);
		border-radius: var(--radius) 0 0 var(--radius);
	}
}

@media (max-width: 959.98px) {
	.site-header__inner {
		min-height: 4.25rem;
	}

	.site-logo__img {
		width: 180px;
	}

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		gap: .6rem;
		padding: .6rem .2rem;
		border: 0;
		background: none;
		color: var(--ink);
		font: 500 1rem var(--font-body);
		cursor: pointer;
	}

	.menu-toggle__bars,
	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		display: block;
		width: 22px;
		height: 1.5px;
		background: currentColor;
		transition: transform .2s ease, background-color .2s ease;
	}

	.menu-toggle__bars {
		position: relative;
	}

	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.menu-toggle__bars::before {
		top: -7px;
	}

	.menu-toggle__bars::after {
		top: 7px;
	}

	.menu-open .menu-toggle__bars {
		background: transparent;
	}

	.menu-open .menu-toggle__bars::before {
		transform: translateY(7px) rotate(45deg);
	}

	.menu-open .menu-toggle__bars::after {
		transform: translateY(-7px) rotate(-45deg);
	}

	.primary-nav {
		position: fixed;
		inset: var(--header-h, 6.75rem) 0 0;
		overflow-y: auto;
		padding: 1rem var(--gutter) 3rem;
		background: var(--white);
		visibility: hidden;
		opacity: 0;
		transition: opacity .2s ease, visibility .2s;
	}

	.menu-open .primary-nav {
		visibility: visible;
		opacity: 1;
	}

	.primary-nav__list > li {
		border-bottom: 1px solid var(--line);
	}

	.primary-nav__list a {
		display: block;
		padding: .9rem 0;
		font-family: var(--font-display);
		font-size: 1.5rem;
		font-weight: 500;
	}

	.primary-nav__list .sub-menu {
		padding: 0 0 .8rem 1rem;
	}

	.primary-nav__list .sub-menu a {
		padding: .4rem 0;
		font-family: var(--font-body);
		font-size: 1.05rem;
	}

	.primary-nav__list .sub-menu .sub-menu {
		padding-bottom: .4rem;
		border-left: 1px solid var(--line);
	}

	.primary-nav__list .sub-menu .sub-menu a {
		font-size: .95rem;
		color: var(--muted);
	}
}

@media (max-width: 599.98px) {
	.topbar__contact a[href^="mailto"] {
		display: none;
	}
}

/* ==========================================================================
   Home: hero
   ========================================================================== */

.hero {
	position: relative;
	background: var(--black);
}

.hero__track {
	display: flex;
	max-width: 1518px;
	margin-inline: auto;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.hero__track::-webkit-scrollbar {
	display: none;
}

.hero__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
}

.hero__img {
	width: 100%;
	max-height: calc(100vh - 7.5rem);
	object-fit: contain;
}

.hero__dots {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	display: flex;
	gap: .5rem;
	transform: translateX(-50%);
}

.hero__dots button {
	width: .7rem;
	height: .7rem;
	padding: 0;
	border: 1px solid var(--accent);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.hero__dots button[aria-current="true"] {
	background: var(--accent);
}

/* ==========================================================================
   Home: services (the three numbered boxes under the slider on production)
   ========================================================================== */

.services {
	position: relative;
	z-index: 1;
	padding-block: 2rem 0;
}

/* The boxes sit on the lower edge of the hero. */
.hero + .services {
	margin-top: -3rem;
	padding-top: 0;
}

.services__list {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: service;
}

@media (min-width: 860px) {
	.services__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

.service {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 3px solid var(--accent);
	border-radius: 0 0 var(--radius-panel) var(--radius-panel);
	box-shadow: var(--shadow);
	counter-increment: service;
	transition: transform .2s ease, box-shadow .2s ease;
}

.service::before {
	content: counter(service, decimal-leading-zero);
	margin-bottom: .75rem;
	font-family: var(--font-display);
	font-size: 2.25rem;
	line-height: 1;
	color: var(--accent);
}

.service:hover,
.service:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 22px 40px -16px rgba(0, 0, 0, .3);
}

.service__title {
	margin-bottom: .5rem;
	font-size: var(--step-2);
}

.service__title a {
	color: var(--ink);
	text-decoration: none;
}

/* The whole box is clickable. */
.service__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.service__text {
	flex: 1;
	color: var(--muted);
}

.service__more {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .9rem;
	font-weight: 600;
	color: var(--accent-text);
}

.service__more .icon {
	width: 1rem;
	height: 1rem;
	transition: transform .2s ease;
}

.service:hover .service__more .icon {
	transform: translateX(3px);
}

/* ==========================================================================
   Home: newsletter (Mailchimp for WP form, under the testimonials)
   ========================================================================== */

.newsletter {
	margin-top: 1.5rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--black);
	border-top: 3px solid var(--accent);
	border-radius: 0 0 var(--radius-panel) var(--radius-panel);
	color: #cfcfcf;
}

.newsletter__title {
	margin-bottom: .35rem;
	font-size: var(--step-2);
	color: var(--white);
}

.newsletter__text {
	margin-bottom: 1.25rem;
}

.newsletter .mc4wp-form-fields p {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
}

/* The form's "Email:" label stays for screen readers; the placeholder is visible. */
.newsletter .mc4wp-form-fields label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.newsletter input[type="email"] {
	flex: 1 1 12rem;
	min-width: 0;
	padding-inline: 1.2rem;
	border-color: transparent;
	border-radius: 999px;
}

.newsletter input[type="submit"] {
	flex: none;
	min-height: 3rem;
	padding: .7rem 1.6rem;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: var(--white);
	font: 500 1rem/1.2 var(--font-body);
	letter-spacing: .02em;
	cursor: pointer;
	transition: background-color .15s ease;
}

.newsletter input[type="submit"]:hover {
	background: var(--accent-deep);
}

.newsletter .mc4wp-response p {
	margin: .9rem 0 0;
	font-size: .9rem;
}

.newsletter .mc4wp-success p {
	color: #9fdc9f;
}

.newsletter .mc4wp-error p,
.newsletter .mc4wp-notice p {
	color: #ffb3b3;
}

/* Shared input styling (Contact Form 7, Mailchimp for WP) */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
	width: 100%;
	min-height: 3rem;
	padding: .7rem .9rem;
	border: 1px solid #c9c9c9;
	border-radius: var(--radius);
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
}

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

input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--accent);
	outline-offset: 0;
	border-color: var(--accent);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.band {
	padding-block: var(--section);
}

.band--tight {
	padding-block: clamp(2rem, 4vw, 3.5rem) var(--section);
}

.band--grey {
	background: var(--grey);
}

.band--soft {
	background: var(--soft);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem 2rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
	position: relative;
	padding-bottom: .9rem;
	border-bottom: 1px solid var(--line);
}

/* Short red bar under the title, like the "tiny border" on production. */
.section-head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 3.5rem;
	height: 2px;
	background: var(--accent);
}

.section-head__title {
	margin: 0;
	font-size: var(--step-3);
}

.section-head__link {
	font-size: .95rem;
	font-weight: 500;
	color: var(--accent-text);
	text-decoration: none;
}

.section-head__link:hover {
	text-decoration: underline;
}

/* Cards */

.card-grid {
	display: grid;
	gap: 2.5rem 1.75rem;
}

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

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

.card__img {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--grey);
	border-radius: var(--radius-img);
}

.card--wide .card__img {
	aspect-ratio: 16 / 9;
}

/* Interviews are videos: a small play badge marks them. */
.card--wide .card__img::after {
	content: "";
	position: absolute;
	left: .9rem;
	bottom: .9rem;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--white);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.card--wide .card__img::before {
	content: "";
	position: absolute;
	z-index: 1;
	left: calc(.9rem + 1.03rem);
	bottom: calc(.9rem + .825rem);
	border-style: solid;
	border-width: .55rem 0 .55rem .85rem;
	border-color: transparent transparent transparent var(--accent);
}

.card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__title {
	margin: .25rem 0 0;
	font-size: var(--step-1);
	line-height: 1.3;
}

.card__title a {
	color: var(--ink);
	text-decoration: none;
}

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

/* Testimonials ("Rezultate") + blog ("Resurse") side by side, as on production */

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* lets the testimonial rail shrink to the screen */
	gap: var(--section) 4rem;
}

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

/* Testimonials */

.quote {
	position: relative;
	margin: 0;
}

.quote > .icon {
	width: 2.25rem;
	height: 2.25rem;
	color: var(--accent);
}

.quote__text {
	margin: .75rem 0 1.25rem;
	font-family: var(--font-display);
	font-size: var(--step-1);
	line-height: 1.55;
}

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

.quote__author {
	display: flex;
	align-items: center;
	gap: .8rem;
}

.quote__who {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.quote__name {
	font-weight: 600;
}

.quote__role {
	font-size: .85rem;
	color: var(--muted);
}

.quote__avatar {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	object-fit: cover;
}

.quotes {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--soft);
	border-radius: var(--radius-panel);
}

.quotes__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.quotes__track::-webkit-scrollbar {
	display: none;
}

.quotes__track > .quote {
	flex: 0 0 100%;
	scroll-snap-align: start;
	padding-right: 1px;
}

.quotes__nav {
	display: flex;
	gap: .5rem;
	margin-top: 1.75rem;
}

.quotes__btn {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--accent);
	border-radius: 50%;
	background: transparent;
	color: var(--accent-deep);
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.quotes__btn:hover {
	background: var(--accent);
	color: var(--white);
}

/* Testimonial boxes (Despre page and /testimoniale/), laid out as a masonry wall. */
.quote-wall {
	columns: 1;
	column-gap: 1.5rem;
}

.quote-wall > .quote {
	display: flex;
	flex-direction: column;
	break-inside: avoid;
	margin-bottom: 1.5rem;
	padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--white);
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: var(--radius-panel);
	box-shadow: var(--shadow);
}

.quote-wall .quote > .icon {
	width: 1.75rem;
	height: 1.75rem;
}

.quote-wall .quote__text {
	font-size: 1.125rem;
}

.quote-wall .quote__author {
	padding-top: 1rem;
	border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
	.quote-wall {
		columns: 2;
	}
}

@media (min-width: 1100px) {
	.quote-wall {
		columns: 3;
	}
}

/* Inside page text ([testimonial_lista] shortcode) the column is narrow. */
.prose .quote-wall {
	columns: 1;
	margin-block: 2rem;
}

@media (min-width: 760px) {
	.prose .quote-wall {
		columns: 2;
	}
}

.prose .quote__text {
	margin: .75rem 0 1.25rem;
	padding-left: 0;
	border-left: 0;
}

.prose .quote__avatar {
	margin: 0;
	border-radius: 50%;
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-head {
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.page-head--center {
	text-align: center;
	padding-bottom: var(--section);
}

.page-head__kicker {
	display: inline-block;
	margin-bottom: 1rem;
	font-weight: 500;
	color: var(--accent-text);
	text-decoration: none;
}

.page-head__kicker:hover {
	text-decoration: underline;
}

.page-head__title {
	max-width: 22ch;
	margin-bottom: .5em;
	font-size: var(--step-4);
	text-wrap: balance;
}

.page-head--center .page-head__title {
	margin-inline: auto;
}

.page-head__meta {
	margin: 0;
	color: var(--muted);
}

.page-head__lead {
	max-width: 40rem;
	font-size: var(--step-1);
	color: var(--muted);
}

.page-head--center .page-head__lead {
	margin-inline: auto;
}

.entry__media {
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.entry__media img {
	width: 100%;
	border-radius: var(--radius-panel);
}

/* Long-form text */

.prose {
	font-size: 1.125rem;
	line-height: 1.75;
}

.prose > *:first-child {
	margin-top: 0;
}

.prose h2 {
	margin-top: 2em;
	font-size: var(--step-2);
}

.prose h3,
.prose h4 {
	margin-top: 1.8em;
	font-size: var(--step-1);
}

.prose ul,
.prose ol {
	padding-left: 1.25em;
	margin: 0 0 1.2em;
}

.prose li {
	margin-bottom: .35em;
}

.prose li::marker {
	color: var(--accent);
}

.prose blockquote {
	margin: 2em 0;
	padding-left: 1.5rem;
	border-left: 2px solid var(--accent);
	font-family: var(--font-display);
	font-size: var(--step-1);
}

.prose img,
.prose figure {
	margin-block: 1.5em;
}

.prose img {
	border-radius: var(--radius-img);
}

.prose iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border-radius: var(--radius-img);
	border: 0;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
	font-size: 1rem;
}

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

.prose__lead {
	font-size: var(--step-1);
}

.alignleft {
	float: left;
	margin: .3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: .3em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
figcaption {
	font-size: .9rem;
	color: var(--muted);
}

@media (max-width: 599.98px) {
	.alignleft,
	.alignright {
		float: none;
		margin: 1em auto;
	}
}

.entry__share {
	display: flex;
	align-items: center;
	gap: .5rem;
	clear: both;
	margin-top: 3rem;
	padding-block: 1.25rem var(--section);
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.entry__share span {
	margin-right: .5rem;
}

.entry__share a {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--accent-deep);
}

.entry__share a:hover {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--white);
}

/* Pagination */

.pagination {
	margin-top: 3.5rem;
}

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

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 .8rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
}

.pagination .page-numbers.current {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--white);
}

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

.empty {
	font-size: var(--step-1);
}

.empty-note {
	padding: 1.5rem;
	border: 1px dashed var(--line);
	border-radius: var(--radius-panel);
	color: var(--muted);
}

/* Contact */

.contact {
	display: grid;
	gap: 3rem 5rem;
}

@media (min-width: 900px) {
	.contact {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	}
}

.contact__heading {
	font-size: var(--step-2);
}

.contact__list {
	margin: 0 0 2rem;
}

.contact__list dt {
	color: var(--muted);
	font-size: .95rem;
}

.contact__list dd {
	margin: 0 0 1.25rem;
	font-size: var(--step-1);
}

.contact__list a {
	color: var(--ink);
}

.contact__form {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--soft);
	border-radius: var(--radius-panel);
}

/* Contact Form 7 */

.wpcf7-form p {
	margin-bottom: 1.1rem;
}

.wpcf7-form label {
	display: block;
	font-weight: 500;
}

.wpcf7-form label > .wpcf7-form-control-wrap {
	display: block;
	margin-top: .35rem;
	font-weight: 400;
}

.wpcf7-submit {
	min-height: 3rem;
	padding: .7rem 1.8rem;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: var(--white);
	font: 500 1rem var(--font-body);
	cursor: pointer;
}

.wpcf7-submit:hover {
	background: var(--accent-deep);
}

.wpcf7-not-valid-tip {
	font-size: .9rem;
	color: var(--accent-deep);
}

.wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: .8rem 1rem;
	border-radius: var(--radius);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--black);
	color: #cfcfcf;
	border-top: 3px solid var(--accent);
}

.site-footer a {
	color: var(--white);
}

.site-footer__inner {
	display: grid;
	gap: 2rem;
	padding-block: 3.5rem 2.5rem;
}

@media (min-width: 760px) {
	.site-footer__inner {
		grid-template-columns: 1fr auto;
		align-items: start;
	}
}

.site-footer .site-logo {
	color: var(--white);
}

.site-footer .site-logo__img {
	width: 220px;
}

.site-footer__tagline {
	max-width: 26rem;
	margin: 1rem 0 0;
}

.site-footer__contact {
	display: flex;
	flex-direction: column;
	gap: .4rem;
}

.site-footer__contact > a {
	text-decoration: none;
}

.site-footer__contact > a:hover {
	text-decoration: underline;
}

.social--footer {
	margin-top: .8rem;
}

.social--footer a {
	background: rgba(255, 255, 255, .14);
}

.social--footer a:hover {
	background: var(--accent);
	color: var(--white);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .75rem 2rem;
	padding-block: 1.25rem 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, .2);
	font-size: .9rem;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1.5rem;
}

.site-footer__legal a {
	color: #cfcfcf;
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
