/*
Theme Name: Tourism and Hospitality Lab
Description: Custom block theme for tourismhospitalitylab.com, built from mock-up-four.
Version: 0.3.0
Requires at least: 6.6
Requires PHP: 7.4
Author: Ante Kraljevic
Text Domain: thl
*/

/* Padding and borders count inside an element's width, as in the mock-up. */
*,
::before,
::after {
	box-sizing: border-box;
}

/* Menu and button links glide to their section; it stops below the header. */
html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(74px + var(--wp-admin--admin-bar--height, 0px));
}

/* Buttons: same border on both styles so they stay the same height. */
.wp-block-button__link {
	border: 1.5px solid transparent;
	transition: background 0.28s, color 0.28s, border-color 0.28s;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	padding: 15px 32px;
	border: 1.5px solid rgba(13, 56, 98, 0.11);
	background: transparent;
	color: var(--wp--preset--color--navy);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	border-color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

/* List styles: "Strelice" (arrows) and "Točke u boji" (coloured dots). */
ul.is-style-arrows,
ul.is-style-dots {
	display: grid;
	gap: 12px;
	padding-left: 0;
	list-style: none;
	color: rgba(35, 31, 32, 0.74);
}
ul.is-style-arrows > li,
ul.is-style-dots > li {
	position: relative;
	padding-left: 26px;
}
ul.is-style-arrows > li::before {
	content: "→";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--orange);
}
ul.is-style-dots > li {
	--accent: var(--wp--preset--color--navy);
	padding-left: 20px;
	font-size: 0.92rem;
}
ul.is-style-dots > li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
}
ul.is-style-dots > li:nth-child(5n + 2) {
	--accent: var(--wp--preset--color--orange);
}
ul.is-style-dots > li:nth-child(5n + 3) {
	--accent: var(--wp--preset--color--green);
}
ul.is-style-dots > li:nth-child(5n + 4) {
	--accent: var(--wp--preset--color--cyan);
}
ul.is-style-dots > li:nth-child(5n + 5) {
	--accent: var(--wp--preset--color--magenta);
}

/* Paragraph styles: "Nadnaslov" (kicker) and "Uvodni tekst" (lede). */
.is-style-kicker {
	display: flex;
	align-items: center;
	gap: 13px;
	color: var(--wp--preset--color--orange);
	font-size: 0.71rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.is-style-kicker::before {
	content: "";
	flex: none;
	width: 26px;
	height: 1px;
	background: var(--wp--preset--color--orange);
	opacity: 0.55;
}
.is-style-lede {
	max-width: 56ch;
	color: rgba(35, 31, 32, 0.74);
	font-size: clamp(1rem, 1.5vw, 1.16rem);
}

/* Brand: logo mark next to the company name. */
.site-brand {
	gap: 12px;
}
.site-brand__mark {
	flex: none;
	margin: 0;
}
.site-logo {
	margin: 0;
	font-size: 1.01rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.16;
}
.site-logo a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	white-space: nowrap;
}

/* Header: stays at the top; gains a frosted background once scrolled. */
.wp-site-blocks > header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.wp-site-blocks > header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-bottom: 1px solid rgba(13, 56, 98, 0.07);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 1px 30px rgba(13, 56, 98, 0.05);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	opacity: 0;
	transition: opacity 0.35s;
}
.wp-site-blocks > header.is-scrolled::before {
	opacity: 1;
}
.wp-site-blocks > header + * {
	margin-block-start: 0;
}
/* The name stays on one line, so it shrinks with the screen on phones. */
.site-header .site-logo {
	font-size: clamp(0.78rem, 4vw, 1.01rem);
}
.site-header > .wp-block-group {
	min-height: 90px;
	transition: min-height 0.35s;
}
.is-scrolled .site-header > .wp-block-group {
	min-height: 74px;
}
/* Opened mobile menu: large centred links, with Kontakt as a button. */
.site-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px clamp(20px, 4vw, 36px);
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: center;
	padding-top: 16vh;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	align-items: center;
	gap: 30px;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	padding: 4px 0;
	color: var(--wp--preset--color--navy);
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: -0.015em;
	opacity: 1;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .is-mobile-only .wp-block-navigation-item__content {
	margin-top: 14px;
	padding: 14px 40px;
	border-radius: 100px;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	font-size: 1.05rem;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .is-mobile-only .wp-block-navigation-item__content::after {
	content: none;
}

/* "Kontakt" appears only inside the opened mobile menu. */
.site-header .wp-block-navigation-item.is-mobile-only {
	display: none;
}
.site-header .is-menu-open .wp-block-navigation-item.is-mobile-only {
	display: flex;
}
.site-header .wp-block-navigation {
	gap: clamp(18px, 2.6vw, 34px);
	font-size: 0.87rem;
	font-weight: 500;
}
.site-header .wp-block-navigation-item__content {
	position: relative;
	padding: 6px 0;
	color: var(--wp--preset--color--navy);
	opacity: 0.7;
	transition: opacity 0.22s;
}
.site-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: var(--wp--preset--color--orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.site-header .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation-item__content:focus-visible {
	opacity: 1;
}
.site-header .wp-block-navigation-item__content:hover::after,
.site-header .wp-block-navigation-item__content:focus-visible::after {
	transform: scaleX(1);
}
.site-header .wp-block-button__link {
	padding: 11px 24px;
	font-size: 0.85rem;
	white-space: nowrap;
}
/* Small screens: the menu button is enough; the contact link is in the footer. */
@media (max-width: 600px) {
	.site-header .wp-block-buttons {
		display: none;
	}
}

/* No gap between the last section and the footer. */
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Footer: details the block settings cannot express. */
.site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.11);
	padding-top: clamp(60px, 7vw, 86px);
	padding-bottom: 32px;
}
.site-footer .site-logo {
	font-size: clamp(0.78rem, 4vw, 1.01rem);
}
/* Just above the point where the footer columns stack, the first one is narrow. */
@media (min-width: 782px) and (max-width: 920px) {
	.site-footer .site-logo {
		font-size: 0.8rem;
	}
}
.site-footer .site-logo a,
.site-footer .site-logo a:hover {
	color: var(--wp--preset--color--white);
	font-size: inherit;
}
.site-footer h4 {
	margin-bottom: 19px;
	color: var(--wp--preset--color--orange);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}
.site-footer p,
.site-footer a {
	color: rgba(255, 255, 255, 0.74);
	font-size: 0.9rem;
	text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--wp--preset--color--white);
}
.site-footer ul {
	padding-left: 0;
	list-style: none;
}
.site-footer li {
	margin-bottom: 10px;
}
.site-footer .wp-block-social-links {
	gap: 16px;
	font-size: 22px;
}
.site-footer .wp-block-social-link a {
	font-size: inherit;
}
.site-footer .wp-block-social-links li {
	margin-bottom: 0;
}
.site-footer .wp-block-social-link a {
	padding: 0;
	opacity: 0.8;
	transition: opacity 0.22s;
}
.site-footer .wp-block-social-link a:hover,
.site-footer .wp-block-social-link a:focus-visible {
	opacity: 1;
}
.site-footer__copy {
	margin-top: clamp(44px, 5vw, 60px);
	padding-top: 26px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.site-footer__copy p {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.8rem;
}
.site-footer__copy a {
	color: rgba(255, 255, 255, 0.74);
	font-size: inherit;
}

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(60px, 12vw, 120px);
	padding-bottom: clamp(90px, 11vw, 140px);
}
.hero::before {
	content: "";
	position: absolute;
	top: -6%;
	right: -9%;
	width: min(720px, 72vw);
	aspect-ratio: 1;
	background: url(assets/images/hero-rings.svg) center / contain no-repeat;
	pointer-events: none;
}
.hero__inner {
	position: relative;
}
/* Two classes, to beat WordPress's default 24px gap between blocks. */
.hero .hero__inner > * {
	margin-block-start: 0;
}
.hero .is-style-kicker {
	margin-bottom: 30px;
}
.hero h1 {
	max-width: 19ch;
	margin-bottom: 28px;
	font-size: clamp(2.15rem, 5.9vw, 4.2rem);
	letter-spacing: -0.035em;
}
.hero h1 em {
	position: relative;
	font-style: normal;
	white-space: nowrap;
}
.hero h1 em::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0.1em;
	left: 0;
	height: 0.1em;
	border-radius: 2px;
	background: var(--wp--preset--color--orange);
	opacity: 0.28;
	transform-origin: left;
	transition: transform 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.55s;
}
.js .hero:not(.is-ready) h1 em::after {
	transform: scaleX(0);
}
.hero .is-style-lede {
	margin-bottom: 18px;
	color: var(--wp--preset--color--navy);
	font-size: clamp(1.02rem, 1.7vw, 1.2rem);
	font-weight: 500;
}
.hero .hero__intro {
	max-width: 56ch;
	margin-bottom: 14px;
	color: rgba(35, 31, 32, 0.74);
}
.hero .is-style-arrows {
	max-width: 56ch;
	margin-bottom: 42px;
}
.hero .wp-block-buttons {
	gap: 14px;
}

@media (max-width: 820px) {
	.hero::before {
		top: auto;
		right: -26%;
		bottom: -4%;
		width: 88vw;
		opacity: 0.75;
	}
}
@media (max-width: 620px) {
	.hero .wp-block-button,
	.hero .wp-block-button__link {
		width: 100%;
	}
}

/* Statistics */
.stats {
	border-top: 1px solid rgba(13, 56, 98, 0.07);
	border-bottom: 1px solid rgba(13, 56, 98, 0.07);
}
.stats__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: clamp(24px, 3vw, 38px);
	padding: clamp(52px, 6vw, 72px) 0;
}
.stats .stats__grid > *,
.stats .stat > * {
	margin-block-start: 0;
}
.stats .stat__num {
	margin-bottom: 14px;
	color: var(--wp--preset--color--navy);
	font-size: clamp(1.9rem, 3.2vw, 2.9rem);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1;
}
.stat__label {
	color: rgba(35, 31, 32, 0.55);
	font-size: 0.81rem;
	line-height: 1.6;
}

@media (max-width: 1000px) {
	.stats__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 34px;
	}
}
@media (max-width: 620px) {
	.stats__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}
	.stats__grid > :last-child {
		grid-column: 1 / -1;
	}
}

/* Sections: shared vertical rhythm and heading block. */
.section {
	padding-top: clamp(80px, 10vw, 132px);
	padding-bottom: clamp(80px, 10vw, 132px);
}
.section .section-head {
	margin-bottom: clamp(48px, 6vw, 74px);
}
.section .section-head > * {
	max-width: 60ch;
	margin-block-start: 0;
}
.section .section-head h2 {
	margin: 20px 0 18px;
	font-size: clamp(1.7rem, 3.6vw, 2.65rem);
}
.section .section-head p:not(.is-style-kicker) {
	color: rgba(35, 31, 32, 0.74);
	font-size: 1.02rem;
}

.section .section-head.is-centered {
	text-align: center;
}
.section .section-head.is-centered > * {
	margin-right: auto;
	margin-left: auto;
}
.section .section-head.is-centered .is-style-kicker {
	justify-content: center;
}

/* About */
.about__grid {
	display: grid;
	grid-template-columns: 1.25fr 0.75fr;
	gap: clamp(40px, 6vw, 86px);
	align-items: start;
}
.about .about__grid > *,
.about .about__copy > *,
.about .about__side > * {
	margin-block-start: 0;
}
.about .about__copy > * {
	max-width: 62ch;
	margin-bottom: 20px;
}
.about .about__copy > :last-child {
	margin-bottom: 0;
}
.about .about__copy > p {
	color: rgba(35, 31, 32, 0.74);
}
.about .about__claim {
	margin: 22px 0 28px;
	font-size: clamp(1.1rem, 1.9vw, 1.34rem);
	font-weight: 500;
	letter-spacing: -0.018em;
	line-height: 1.55;
}
.about .is-style-arrows strong {
	color: var(--wp--preset--color--navy);
	font-weight: 500;
}
.about__side {
	padding: clamp(30px, 3vw, 40px);
	border: 1px solid rgba(13, 56, 98, 0.07);
	border-radius: 3px;
	background: var(--wp--preset--color--white);
}
.about__photo {
	margin: 0 0 22px;
}
.about__photo img {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 3px;
	object-fit: cover;
	object-position: top;
}
.about__name {
	color: var(--wp--preset--color--navy);
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.35;
}
.about .about__role {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(13, 56, 98, 0.07);
	color: rgba(35, 31, 32, 0.55);
	font-size: 0.79rem;
	letter-spacing: 0.04em;
}
.about__side h4 {
	margin-bottom: 19px;
	color: var(--wp--preset--color--orange);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}
@media (max-width: 1000px) {
	.about__grid {
		grid-template-columns: 1fr;
		gap: 44px;
	}
}

/* Sustainability: the heading block is the whole section. */
.sustainability .section-head {
	margin-bottom: 0;
}
.section.sustainability {
	padding-bottom: 0;
}

/* Service cards: numbered and coloured automatically by position. */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
	gap: 1px;
	border: 1px solid rgba(13, 56, 98, 0.07);
	background: rgba(13, 56, 98, 0.07);
	counter-reset: card;
}
.section .cards > *,
.cards .card > * {
	margin-block-start: 0;
}
.card {
	--accent: var(--wp--preset--color--navy);
	position: relative;
	overflow: hidden;
	padding: clamp(32px, 3.4vw, 46px) clamp(26px, 2.6vw, 38px);
	background: var(--wp--preset--color--white);
	counter-increment: card;
	transition: background 0.35s;
}
.card:nth-child(5n + 2) {
	--accent: var(--wp--preset--color--orange);
}
.card:nth-child(5n + 3) {
	--accent: var(--wp--preset--color--green);
}
.card:nth-child(5n + 4) {
	--accent: var(--wp--preset--color--cyan);
}
.card:nth-child(5n + 5) {
	--accent: var(--wp--preset--color--magenta);
}
.card:hover {
	background: var(--wp--preset--color--mist);
}
/* Accent bar on the left, drawn in on hover. */
.card::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 2px;
	background: var(--accent);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.4s;
}
.card:hover::before {
	transform: scaleY(1);
}
/* Card number, top right. */
.card::after {
	content: counter(card, decimal-leading-zero);
	position: absolute;
	top: clamp(28px, 3vw, 40px);
	right: clamp(24px, 2.4vw, 34px);
	color: rgba(35, 31, 32, 0.55);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.1em;
}
.card {
	display: flex;
	flex-direction: column;
}
.card h3 {
	margin-bottom: 14px;
	font-size: 1.12rem;
	font-weight: 500;
	letter-spacing: -0.012em;
	line-height: 1.4;
}
.card h3 a {
	text-decoration: none;
}
.cards .card > p {
	margin-bottom: 20px;
	color: rgba(35, 31, 32, 0.74);
	font-size: 0.94rem;
}
.cards .card > ul {
	margin-bottom: 28px;
}
.cards .card > .card__more {
	margin-top: auto;
	margin-bottom: 0;
	font-size: 0.84rem;
	font-weight: 500;
}
.card__more a {
	text-decoration: none;
}
.card__more a::after {
	content: " →";
	display: inline-block;
	margin-left: 6px;
	transition: transform 0.3s;
}
.card:hover .card__more a::after {
	transform: translateX(4px);
}
/* Ring-and-dot mark above the card title. */
.card h3::before {
	content: "";
	display: block;
	width: 38px;
	height: 38px;
	margin-bottom: 26px;
	border: 1.5px solid var(--accent);
	border-radius: 50%;
	background: radial-gradient(circle closest-side, color-mix(in srgb, var(--accent) 50%, transparent) 36%, transparent 40%);
	opacity: 0.85;
	transition: transform 0.4s;
}
.card:hover h3::before {
	transform: scale(1.08);
}

/* Clients: two rows of logo tiles moving in opposite directions. */
.clients {
	overflow: hidden;
}
.clients .logo-marquee {
	margin-block-start: 0;
	padding: 5px 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.clients .logo-marquee + .logo-marquee {
	margin-top: 12px;
}
.logo-marquee__track {
	display: flex;
	width: max-content;
}
/* Top row moves right, bottom row moves left. */
.logo-marquee__track.is-looping {
	animation: thl-slide 90s linear infinite reverse;
}
.logo-marquee + .logo-marquee .logo-marquee__track.is-looping {
	animation-duration: 106s;
	animation-direction: normal;
}
.logo-marquee:hover .logo-marquee__track,
.logo-marquee:focus-within .logo-marquee__track {
	animation-play-state: paused;
}
@keyframes thl-slide {
	to {
		transform: translateX(-50%);
	}
}
.clients .logo-marquee__track > .wp-block-image {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 172px;
	height: 86px;
	margin: 0 12px 0 0;
	padding: 15px 20px;
	border: 1px solid rgba(13, 56, 98, 0.07);
	border-radius: 3px;
	background: var(--wp--preset--color--white);
	transition: border-color 0.3s, box-shadow 0.3s;
}
.logo-marquee__track .wp-block-image a,
.logo-marquee__track .wp-block-image > div {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.logo-marquee__track .wp-block-image img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 54px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.6;
	transition: filter 0.35s, opacity 0.35s;
}
.logo-marquee__track .wp-block-image:hover {
	border-color: rgba(13, 56, 98, 0.11);
	box-shadow: 0 10px 28px rgba(13, 56, 98, 0.08);
}
.logo-marquee__track .wp-block-image:hover img {
	filter: none;
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	.logo-marquee__track.is-looping {
		animation: none;
	}
}

/* News cards, used on the front page and on post listings. */
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(20px, 2.4vw, 28px);
	padding-left: 0;
	list-style: none;
}
.news .news-grid > li {
	margin-block-start: 0;
}
.news-grid > li {
	--accent: var(--wp--preset--color--orange);
	display: flex;
}
.news-grid > li:nth-child(4n + 2) {
	--accent: var(--wp--preset--color--green);
}
.news-grid > li:nth-child(4n + 3) {
	--accent: var(--wp--preset--color--cyan);
}
.news-grid > li:nth-child(4n + 4) {
	--accent: var(--wp--preset--color--magenta);
}
.post-card {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(28px, 3vw, 38px);
	border: 1px solid rgba(13, 56, 98, 0.07);
	border-radius: 3px;
	background: var(--wp--preset--color--white);
	transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.post-card:hover {
	border-color: rgba(13, 56, 98, 0.11);
	box-shadow: 0 16px 44px rgba(13, 56, 98, 0.09);
	transform: translateY(-5px);
}
.news .post-card > * {
	margin-block-start: 0;
}
.news .post-card__meta,
.page-head .post-card__meta {
	align-items: baseline;
	gap: 14px;
	margin-bottom: 20px;
}
.post-card__meta .wp-block-post-terms {
	color: var(--accent, var(--wp--preset--color--orange));
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.post-card__meta .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}
.post-card__meta .wp-block-post-date {
	color: rgba(35, 31, 32, 0.55);
	font-size: 0.75rem;
	white-space: nowrap;
}
.news .post-card .wp-block-post-title {
	margin-bottom: 14px;
	font-size: 1.08rem;
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.45;
}
.post-card .wp-block-post-title a {
	text-decoration: none;
}
.post-card .wp-block-post-excerpt {
	display: flex;
	flex: 1;
	flex-direction: column;
}
.post-card .wp-block-post-excerpt__excerpt {
	flex: 1;
	margin: 0 0 26px;
	color: rgba(35, 31, 32, 0.74);
	font-size: 0.9rem;
}
.post-card .wp-block-post-excerpt__more-text {
	margin: 0;
}
.post-card .wp-block-post-excerpt__more-link {
	font-size: 0.84rem;
	font-weight: 500;
	text-decoration: none;
}
.post-card .wp-block-post-excerpt__more-link::after {
	content: " →";
}
.news .wp-block-query-pagination {
	margin-top: 40px;
}
@media (max-width: 1000px) {
	.news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 620px) {
	.news-grid {
		grid-template-columns: 1fr;
	}
}

/* Contact call to action */
.cta {
	position: relative;
	overflow: hidden;
}
.cta::after {
	content: "";
	position: absolute;
	right: -8%;
	bottom: -58%;
	width: min(560px, 62vw);
	aspect-ratio: 1;
	border: 1px solid rgba(245, 130, 32, 0.3);
	border-radius: 50%;
}
.cta__inner {
	position: relative;
	z-index: 1;
}
.cta .cta__inner > *,
.cta .cta__text > * {
	margin-block-start: 0;
}
.cta .cta__text > * {
	max-width: 58ch;
}
.cta .cta__inner h2 {
	margin: 20px 0;
	color: var(--wp--preset--color--white);
	font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}
.cta .cta__text > p:not(.is-style-kicker) {
	margin-bottom: 38px;
	color: rgba(255, 255, 255, 0.76);
	font-size: 1.02rem;
}
.cta .wp-block-button__link:hover,
.cta .wp-block-button__link:focus-visible {
	border-color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--white) !important;
	color: var(--wp--preset--color--navy) !important;
}

/* Contact form: sits to the right of the text and opens from the button. */
.cta__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.contact-panel {
	transition: opacity 0.5s, transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.5s;
}
/* Without JavaScript the form stays hidden and the button is a mailto: link. */
html:not(.js) .contact-panel {
	display: none;
}
.contact-panel:not(.is-open) {
	visibility: hidden;
	opacity: 0;
	transform: translateX(28px);
}
.contact-panel__inner {
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.05);
}
.contact-form p {
	margin: 0;
}
.contact-form__field {
	margin-bottom: 18px !important;
}
.contact-form label {
	display: block;
	margin-bottom: 8px;
	color: rgba(255, 255, 255, 0.74);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
	display: block;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.07);
	color: var(--wp--preset--color--white);
	font: inherit;
	font-size: 0.95rem;
	transition: border-color 0.22s, background 0.22s;
}
.contact-form textarea {
	min-height: 130px;
	resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
	border-color: var(--wp--preset--color--orange);
	outline: none;
	background: rgba(255, 255, 255, 0.11);
}
/* Spam trap: kept out of sight for people, still filled in by bots. */
.contact-form__trap {
	position: absolute;
	left: -9999px;
}
.contact-form__actions {
	margin-top: 6px !important;
}
.cta .contact-form__submit {
	border: 1.5px solid var(--wp--preset--color--orange);
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--white);
	cursor: pointer;
	transition: background 0.28s, color 0.28s, border-color 0.28s;
}
.cta .contact-form__submit:hover,
.cta .contact-form__submit:focus-visible {
	border-color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}
.contact-form__submit:disabled {
	cursor: default;
	opacity: 0.6;
}
.contact-form__note,
.contact-form__preview {
	margin-top: 16px !important;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.78rem;
}
.contact-form__note a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: underline;
}
.contact-form__note a:hover,
.contact-form__note a:focus-visible {
	color: var(--wp--preset--color--white);
}
.contact-form__preview {
	margin: 0 0 18px !important;
	color: var(--wp--preset--color--orange);
}
.contact-form__status {
	font-size: 0.9rem;
}
.contact-form__status:not(:empty) {
	margin-top: 14px !important;
}
.contact-form__status.is-success {
	color: var(--wp--preset--color--green);
}
.contact-form__status.is-error {
	color: var(--wp--preset--color--orange);
}
@media (max-width: 900px) {
	.cta__inner {
		grid-template-columns: minmax(0, 1fr);
	}
	/* On narrow screens the closed form takes no space at all. */
	.contact-panel:not(.is-open) {
		display: none;
	}
}

/* Inner pages and single posts */
.page-head {
	padding-top: clamp(48px, 7vw, 84px);
	padding-bottom: clamp(48px, 7vw, 84px);
}
.page-head h1 {
	max-width: 24ch;
	font-size: clamp(1.9rem, 4.4vw, 3.1rem);
	letter-spacing: -0.03em;
}
.entry-content {
	padding-top: clamp(48px, 6vw, 80px);
	padding-bottom: clamp(48px, 6vw, 80px);
}
.entry-content > p,
.entry-content > ul,
.entry-content > ol {
	color: rgba(35, 31, 32, 0.74);
}
.entry-content > h2 {
	margin-top: 1.8em;
	font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}
.entry-content > h3 {
	margin-top: 1.6em;
	font-size: 1.15rem;
	font-weight: 500;
}
.entry-image {
	margin-top: clamp(32px, 4vw, 56px);
	margin-bottom: 0;
}
.entry-image img {
	border-radius: 3px;
}
.entry-back {
	padding-bottom: clamp(48px, 6vw, 80px);
	font-size: 0.9rem;
	font-weight: 500;
}
.entry-back a {
	text-decoration: none;
}

.entry-content > .is-style-lede {
	max-width: var(--wp--style--global--content-size);
	color: var(--wp--preset--color--navy);
	font-weight: 500;
}
/* Pages: intro and button line up with the wide card grid below them. */
.page .entry-content > .is-style-lede,
.page .entry-content > .wp-block-buttons {
	max-width: var(--wp--style--global--wide-size);
}
.page .entry-content > .is-style-lede {
	padding-right: clamp(0px, 40%, 480px);
}
.entry-content > .cards {
	margin-top: clamp(36px, 5vw, 56px);
	margin-bottom: clamp(36px, 5vw, 56px);
}
.entry-content .cards > * {
	margin-block-start: 0;
}
.entry-content .wp-block-quote {
	margin-right: 0;
	margin-left: 0;
	padding-left: 24px;
	border-left: 2px solid var(--wp--preset--color--orange);
	color: var(--wp--preset--color--navy);
	font-size: 1.05rem;
}
.entry-content .wp-block-quote cite {
	display: block;
	margin-top: 14px;
	color: rgba(35, 31, 32, 0.55);
	font-size: 0.82rem;
	font-style: normal;
}

/*
 * Reveal on scroll. theme.js adds .is-visible when an element enters the
 * screen. Keep this list in sync with revealSelector in assets/js/theme.js.
 * The .js class is only set on the live site, never in the editor.
 */
.js :is(
	.hero__inner > *,
	.stat,
	.section-head,
	.about__copy,
	.about__side,
	.card,
	.logo-marquee,
	.news-grid > li,
	.cta__text > *,
	.page-head > *,
	.entry-content > *
):not(.is-revealed) {
	transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
	transition-delay: var(--reveal-delay, 0s);
}
.js :is(
	.hero__inner > *,
	.stat,
	.section-head,
	.about__copy,
	.about__side,
	.card,
	.logo-marquee,
	.news-grid > li,
	.cta__text > *,
	.page-head > *,
	.entry-content > *
):not(.is-visible) {
	opacity: 0;
	transform: translateY(22px);
}

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