/*
Theme Name: Decker Expertise
Author: Decker Expertise
Description: Theme for the Decker Expertise website. Business details are set under Appearance > Customize > Business details.
Version: 1.1.38
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: decker-expertise
*/

:root {
	--gutter: var(--wp--style--root--padding-left, clamp(1.25rem, 5vw, 3rem));
	/* Header and footer line up with wide blocks: wide size plus the side padding. */
	--frame-width: calc(var(--wp--style--global--wide-size, 72rem) + 2 * var(--gutter));
	--field-border: #a39a8c;
	--green: var(--wp--preset--color--green);
	--line: var(--wp--preset--color--line);
	--label: 500 0.75rem/1.4 var(--wp--preset--font-family--sans);
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 7rem;
	background: var(--wp--preset--color--ivory);
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--green);
	color: var(--wp--preset--color--ivory);
}

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

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

:focus-visible {
	outline: 1px solid var(--green);
	outline-offset: 3px;
}

h1 em,
h2 em,
h3 em {
	font-style: italic;
	color: var(--green);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0.75rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--green);
	color: var(--wp--preset--color--ivory);
}

.skip-link:focus {
	left: 0.75rem;
}

/* Notice above the header while the site is being prepared */

.preview-notice {
	margin: 0;
	padding: 0.55rem var(--gutter);
	background: var(--green);
	color: var(--wp--preset--color--ivory);
	font: 400 0.8125rem/1.4 var(--wp--preset--font-family--sans);
	letter-spacing: 0.02em;
	text-align: center;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--ivory);
	border-bottom: 1px solid var(--line);
}

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

/* Phones held sideways: a sticky header would take a quarter of the screen. */
@media (max-height: 32rem) {
	.site-header {
		position: static;
	}
}

.site-header__inner {
	max-width: var(--frame-width);
	margin: 0 auto;
	padding: 1rem var(--gutter);
	min-height: 5.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2.5rem;
}

.site-brand {
	display: flex;
	align-items: center;
}

.site-brand__name {
	display: inline-flex;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.1rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* The two lines stay stacked and left-aligned, also where touch rules centre links. */
.site-brand .site-brand__name,
.site-footer .site-footer__name {
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.site-brand__small {
	margin-top: 0.45rem;
	font: 500 0.6875rem/1 var(--wp--preset--font-family--sans);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--green);
}

.site-brand__name:hover {
	color: var(--green);
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	display: block;
	max-height: 3.25rem;
	width: auto;
}

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

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.site-nav__list {
	gap: 0.25rem 2.25rem;
}

.site-nav__list a {
	display: block;
	font: var(--label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.site-nav__list a {
	padding: 0.35rem 0;
	border-bottom: 1px solid transparent;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
	color: var(--green);
	border-bottom-color: var(--green);
}

/* Language menu: one button, right of the appointment button, that opens the list of languages */

.lang-menu {
	position: relative;
}

.lang-menu__button {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.5rem;
	padding: 0 0.4rem;
	font: var(--label);
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--ink);
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.lang-menu__button::-webkit-details-marker {
	display: none;
}

.lang-menu__button::after {
	content: "";
	width: 0.3rem;
	height: 0.3rem;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: translateY(-0.15rem) rotate(45deg);
	transition: transform 0.2s ease;
}

.lang-menu[open] .lang-menu__button::after {
	transform: translateY(0.1rem) rotate(225deg);
}

.lang-menu__button:hover,
.lang-menu[open] .lang-menu__button {
	color: var(--green);
}

.lang-menu__list {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	z-index: 10;
	min-width: 9rem;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	background: var(--wp--preset--color--ivory);
	border: 1px solid var(--line);
	box-shadow: 0 1.5rem 2.5rem -1.75rem rgba(18, 38, 31, 0.45);
}

.lang-menu__list a {
	display: block;
	padding: 0.45rem 1rem;
	font-size: 0.875rem;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.lang-menu__list a:hover {
	color: var(--green);
	background: var(--wp--preset--color--porcelain);
}

.lang-menu__list a[aria-current] {
	color: var(--green);
}

.lang-menu__list a[aria-current]::after {
	content: "\2713";
	margin-left: 0.5rem;
}

.site-nav__cta.wp-element-button {
	white-space: nowrap;
	text-decoration: none;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 1.5rem;
	height: 1px;
	background: currentColor;
	transition: transform 0.2s ease;
}

.nav-toggle__bars {
	position: relative;
}

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

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

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-7px) rotate(-45deg);
}

/* Touch tablets keep the menu button up to 1199px, where the larger tap targets would crowd the header. */
@media (max-width: 60rem), (pointer: coarse) and (max-width: 74.99rem) {
	/* The name stays where it is when the menu opens below it. */
	.site-header__inner {
		min-height: 0;
		padding-block: 1.25rem;
		align-content: flex-start;
	}

	.site-nav {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
		padding-bottom: 1.5rem;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.site-nav__list a {
		padding: 1rem 0;
		border-bottom: 1px solid var(--line);
	}

	.site-nav__cta.wp-element-button {
		text-align: center;
	}

	.lang-menu__button {
		align-self: flex-start;
	}

	.lang-menu__list {
		position: static;
		margin-top: 0.5rem;
		box-shadow: none;
	}

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

	.js .site-nav {
		display: none;
	}

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

/* Content */

.site-main {
	flex: 1 0 auto;
}

.entry,
.listing,
.not-found {
	/* Less room above than below, so a page opens on its content rather than on empty space. */
	padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 8vw, 6rem);
}

.home .entry {
	padding-block: 0;
}

.entry-header {
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

/* Titles line up with the left edge of wide sections and of the header. */
.entry-header > * {
	max-width: var(--wp--style--global--wide-size, 72rem);
	margin-inline: auto;
}

.entry-title {
	margin-block: 0;
}

.entry-meta {
	margin-top: 1rem;
	font: var(--label);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.entry-header,
.entry-content,
.listing,
.not-found {
	padding-inline: var(--gutter);
}

/* Used only if the layout rules from theme.json are not printed. */
:where(.entry-content) > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: var(--wp--style--global--content-size, 44rem);
	margin-inline: auto;
}

:where(.entry-content) > :where(.alignwide) {
	max-width: var(--wp--style--global--wide-size, 72rem);
}

.entry-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

.entry-content > .alignfull:last-child {
	margin-block-end: 0;
}

/*
 * Qui suis-je ?, on wider screens: the breadcrumb across the top, the title
 * and the text on the left, the portrait on the right from the title's line,
 * then the other photographs across the page.
 */
@media (min-width: 64rem) {
	.entry:has(> .entry-content > .about-intro) {
		display: grid;
		grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
		grid-template-rows: auto auto 1fr;
		column-gap: var(--wp--preset--spacing--60);
		align-items: start;
		max-width: calc(var(--wp--style--global--wide-size, 72rem) + 2 * var(--gutter));
		margin-inline: auto;
		padding-inline: var(--gutter);
	}

	.entry:has(> .entry-content > .about-intro) :is(.entry-header, .entry-content, .about-intro, .about-intro > .wp-block-columns) {
		display: contents;
	}

	.entry:has(> .entry-content > .about-intro) .breadcrumbs {
		grid-column: 1 / -1;
		grid-row: 1;
		max-width: none;
		margin-inline: 0;
	}

	.entry:has(> .entry-content > .about-intro) .entry-title {
		grid-column: 1;
		grid-row: 2;
		max-width: none;
		margin-inline: 0;
		margin-bottom: clamp(1.25rem, 3vw, 2rem);
	}

	.about-intro .wp-block-column {
		margin: 0;
	}

	.about-intro .wp-block-column:first-child {
		grid-column: 1;
		grid-row: 3;
	}

	.about-intro .wp-block-column:first-child > :first-child {
		margin-top: 0;
	}

	.about-intro .wp-block-column:last-child {
		grid-column: 2;
		grid-row: 2 / span 2;
	}

	.about-intro .wp-block-column:last-child .wp-block-image {
		margin: 0;
	}

	.about-intro .wp-block-column:last-child .wp-block-image img {
		display: block;
		width: auto;
		max-width: 100%;
		max-height: max(min(calc(100svh - 18rem), 46rem), 20rem);
		margin-left: auto;
		object-fit: contain;
	}

	.about-intro .about-photos {
		grid-column: 1 / -1;
		margin-top: var(--wp--preset--spacing--60);
	}
}

.about-intro .about-photos {
	margin-top: var(--wp--preset--spacing--50);
}

/*
 * WordPress keeps columns side by side from 782px. On tablets in portrait
 * the split sections are too narrow, so they stack until 1024px.
 */
@media (max-width: 63.99rem) {
	.entry-content .wp-block-columns.alignwide:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--50);
	}

	.entry-content .wp-block-columns.alignwide:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
	}
}

.breadcrumbs {
	margin-bottom: 1rem;
	font: var(--label);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

.breadcrumbs li + li::before {
	content: "/";
	margin-right: 0.6rem;
	color: var(--line);
}

.breadcrumbs a {
	display: inline-block;
	padding-block: 0.4rem;
	color: inherit;
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--green);
}

/* Sections on a green background */

:is(.has-green-background-color, .has-green-deep-background-color) a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--ivory);
}

:is(.has-green-background-color, .has-green-deep-background-color) :is(h1, h2, h3) em,
:is(.has-green-background-color, .has-green-deep-background-color) .is-style-eyebrow {
	color: var(--wp--preset--color--sage);
}

:is(.has-green-background-color, .has-green-deep-background-color) .wp-block-button__link:not(.has-background) {
	background: var(--wp--preset--color--ivory);
	color: var(--green);
}

:is(.has-green-background-color, .has-green-deep-background-color) .wp-block-button__link:not(.has-background):hover {
	background: var(--wp--preset--color--sage);
	color: var(--wp--preset--color--green-deep);
}

:is(.has-green-background-color, .has-green-deep-background-color) .is-style-section,
:is(.has-green-background-color, .has-green-deep-background-color) .is-style-section::before,
:is(.has-green-background-color, .has-green-deep-background-color) ol.is-style-steps > li::before {
	color: var(--wp--preset--color--sage);
}

:is(.has-green-background-color, .has-green-deep-background-color) :is(ol.is-style-steps, ol.is-style-steps > li) {
	border-color: rgba(246, 241, 231, 0.22);
}

/* Photographs: the point chosen in the editor's Framing panel stays in view when a photo is cut to a format. */
.wp-block-image img {
	object-position: var(--photo-focus, 50% 50%);
}

/* A photograph beside the appointment form keeps to the height of the screen. */
.side-photo {
	margin-top: var(--wp--preset--spacing--50);
}

.side-photo img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: min(70svh, 34rem);
}

/*
 * Slideshows (assets/js/slider.js): galleries given the Slideshow style. The
 * gallery's Columns setting is how many photos show at once on a computer;
 * one column gives a wide slide.
 */
.is-slider {
	--per-view: 3;
	--slide-gap: var(--wp--style--unstable-gallery-gap, 1rem);
}

.is-slider.columns-1 {
	--per-view: 1;
}

.is-slider.columns-2 {
	--per-view: 2;
}

.is-slider:is(.columns-4, .columns-5, .columns-6, .columns-7, .columns-8) {
	--per-view: 4;
}

@media (max-width: 63.99rem) {
	.is-slider:not(.columns-1) {
		--per-view: 2;
	}
}

@media (max-width: 40rem) {
	.is-slider:not(.columns-1) {
		--per-view: 1.25;
	}
}

.wp-block-gallery.is-slider {
	display: block;
}

.slider__track {
	display: flex;
	gap: var(--slide-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

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

@media (prefers-reduced-motion: reduce) {
	.slider__track {
		scroll-behavior: auto;
	}
}

.wp-block-gallery.has-nested-images.is-slider .slider__track > figure.wp-block-image:not(#individual-image) {
	flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--slide-gap)) / var(--per-view));
	width: auto;
	margin: 0;
	scroll-snap-align: start;
}

.wp-block-gallery.has-nested-images.is-slider figure.wp-block-image:not(#individual-image) img {
	flex: none;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.wp-block-gallery.has-nested-images.is-slider.columns-1 figure.wp-block-image:not(#individual-image) img {
	aspect-ratio: 3 / 2;
}

/* With "Crop images to fit" turned off, every photo shows whole. */
.wp-block-gallery.has-nested-images.is-slider:not(.is-cropped) figure.wp-block-image:not(#individual-image) img {
	object-fit: contain;
	background: var(--wp--preset--color--porcelain);
}

.slider__controls {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	width: 100%;
	margin-top: 1.25rem;
}

.slider__controls[hidden] {
	display: none;
}

.slider__controls button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1px solid currentColor;
	background: transparent;
	color: var(--green);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.slider__controls button:is(:hover, :focus-visible) {
	background: var(--green);
	color: var(--wp--preset--color--ivory);
}

.slider__next svg {
	transform: scaleX(-1);
}

:is(.has-green-background-color, .has-green-deep-background-color) .slider__controls button {
	color: var(--wp--preset--color--ivory);
}

:is(.has-green-background-color, .has-green-deep-background-color) .slider__controls button:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--ivory);
	color: var(--green);
}

/* Instagram: square pictures, each one a link to the account. */
.insta-grid.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img {
	flex: none;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	transition: opacity 0.3s ease;
}

.insta-grid.wp-block-gallery.has-nested-images figure.wp-block-image a:hover img {
	opacity: 0.85;
}

@media (max-width: 40rem) {
	.insta-grid.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
		width: calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px) * 2 / 3);
	}
}

/* Block styles registered in inc/setup.php */

.is-style-eyebrow {
	font: var(--label);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--green);
}

/* Home sections are numbered I, II, III. */
.entry-content {
	counter-reset: section;
}

.is-style-section {
	counter-increment: section;
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	font: var(--label);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.is-style-section::before {
	content: counter(section, upper-roman) ".";
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-style: italic;
	letter-spacing: 0;
	text-transform: none;
	color: var(--green);
}

.wp-block-group.is-style-row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 0.5rem 2.5rem;
	padding-block: 1.75rem;
	border-top: 1px solid var(--line);
}

.wp-block-group.is-style-row:last-child {
	border-bottom: 1px solid var(--line);
}

.wp-block-group.is-style-row > * {
	margin-block: 0;
}

.wp-block-group.is-style-row > h3 {
	font-size: 1.625rem;
}

@media (max-width: 48rem) {
	.wp-block-group.is-style-row {
		grid-template-columns: 1fr;
	}
}

.wp-block-group.is-style-visiting-card {
	max-width: 30rem;
	padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.5rem);
	background: #fffdf9;
	border: 1px solid var(--green);
	outline: 1px solid var(--green);
	outline-offset: -7px;
	box-shadow: 0 22px 40px -28px rgba(18, 38, 31, 0.45);
	text-align: center;
	color: var(--wp--preset--color--ink);
}

.wp-block-group.is-style-visiting-card > * {
	margin-block: 0;
}

.wp-block-group.is-style-visiting-card > * + * {
	margin-top: 1rem;
}

.visiting-card__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.125rem;
	font-weight: 500;
	line-height: 1.1;
}

.visiting-card__title {
	font: var(--label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--green);
}

.is-style-visiting-card .wp-block-separator {
	width: 3rem;
	margin-inline: auto;
	border: 0;
	border-top: 1px solid var(--line);
}

.visiting-card__hours {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--wp--preset--color--muted);
}

ol.is-style-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
	border-bottom: 1px solid var(--line);
}

ol.is-style-steps > li {
	counter-increment: step;
	position: relative;
	margin: 0;
	padding: 1.5rem 0 1.5rem 3rem;
	border-top: 1px solid var(--line);
}

ol.is-style-steps > li::before {
	content: counter(step) ".";
	position: absolute;
	left: 0;
	top: 1.45rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-style: italic;
	line-height: 1.1;
	color: var(--green);
}

ol.is-style-steps > li strong {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	font-weight: 600;
}

.wp-block-image img {
	display: block;
}

/* Buttons */

.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* FAQ */

.wp-block-details {
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--line);
}

.wp-block-details summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.25;
}

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

.wp-block-details summary::after {
	content: "+";
	color: var(--green);
	font-weight: 400;
}

.wp-block-details[open] summary::after {
	content: "\2212";
}

.wp-block-details[open] summary {
	margin-bottom: 0.75rem;
}

/* Appointment form */

.booking__notice {
	margin: 0 0 2rem;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--white);
	border-left: 2px solid #2f6f4e;
}

.booking__notice--error {
	border-left-color: #a23b2a;
}

.booking__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.75rem 1.5rem;
}

.booking__field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.booking__field--full,
.booking__legend,
.booking__privacy {
	grid-column: 1 / -1;
}

.booking__form label {
	font: var(--label);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.booking__required {
	color: var(--green);
}

.booking__optional {
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--wp--preset--color--muted);
}

.booking__form input,
.booking__form select,
.booking__form textarea {
	width: 100%;
	padding: 0.8rem 0.9rem;
	font: inherit;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--field-border);
	border-radius: 0;
}

.booking__form input:focus,
.booking__form select:focus,
.booking__form textarea:focus {
	border-color: var(--green);
	outline: 1px solid var(--green);
	outline-offset: 0;
}

.booking__form textarea {
	min-height: 10rem;
	resize: vertical;
}

.booking__check {
	grid-column: 1 / -1;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.booking__hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.booking__legend,
.booking__privacy {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	text-wrap: pretty;
}

.booking__submit {
	grid-column: 1 / -1;
	justify-self: start;
	border: 0;
	cursor: pointer;
}

@media (max-width: 40rem) {
	.booking__form {
		grid-template-columns: 1fr;
	}
}

/* Listings */

.listing__inner,
.not-found__inner {
	max-width: var(--wp--style--global--content-size, 44rem);
	margin: 0 auto;
}

.listing__item {
	padding-block: 2rem;
	border-bottom: 1px solid var(--line);
}

.listing__item h2 {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--large);
}

.listing__item h2 a {
	color: inherit;
	text-decoration: none;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2rem;
}

/* Footer */

.site-footer {
	background: var(--wp--preset--color--green-deep);
	color: var(--wp--preset--color--porcelain);
	font-size: var(--wp--preset--font-size--small);
}

.site-footer a {
	display: inline-block;
	padding-block: 0.2rem;
	color: inherit;
	text-decoration-color: rgba(246, 241, 231, 0.4);
}

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

.site-footer__inner {
	max-width: var(--frame-width);
	margin: 0 auto;
	padding: clamp(3rem, 7vw, 5rem) var(--gutter) 2.5rem;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2.5rem;
}

/* Phones: the name across, then the links and the contact details side by side. */
@media (max-width: 48rem) {
	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 1.75rem 1.5rem;
		padding-block: 2.5rem 1.75rem;
	}

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

/* Footer link lists: General and Customer service */
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu li {
	margin: 0 0 0.6rem;
}

.site-footer .footer-menu a {
	text-decoration: none;
}

.site-footer .footer-menu a:hover,
.site-footer .footer-menu .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.site-footer p {
	margin: 0 0 0.6rem;
}

.site-footer__name {
	display: flex;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.1;
	color: var(--wp--preset--color--ivory);
}

.site-footer__name .site-brand__small {
	color: var(--wp--preset--color--sage);
}

.site-footer__heading {
	margin: 0 0 1rem;
	font: var(--label);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sage);
}

.site-footer__legal {
	max-width: var(--frame-width);
	margin: 0 auto;
	padding: 1.5rem var(--gutter) 2.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	border-top: 1px solid rgba(246, 241, 231, 0.18);
	font-size: 0.8125rem;
	color: rgba(246, 241, 231, 0.75);
}

.site-footer__legal p {
	margin: 0;
}

.legal-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

/* A narrow window keeps the footer short: tighter lines and less space around them. */
@media (max-width: 48rem) {
	.site-footer {
		line-height: 1.45;
	}

	.site-footer a {
		padding-block: 0.1rem;
	}

	.site-footer__heading {
		margin-bottom: 0.6rem;
	}

	.footer-menu li,
	.site-footer p {
		margin-bottom: 0.3rem;
	}

	.site-footer__legal {
		padding-block: 1.25rem 1.75rem;
		gap: 0.5rem 1.25rem;
	}

	.legal-menu {
		gap: 0.25rem 1.25rem;
	}
}

/* Touch screens: footer links keep a finger-sized row, without the space between rows on top of it. */
@media (pointer: coarse) {
	.site-footer a {
		display: inline-flex;
		align-items: center;
		min-height: 2.75rem;
		padding-block: 0;
	}

	.footer-menu li,
	.site-footer__contact p {
		margin-bottom: 0;
	}
}

/* Touch screens only: finger-sized rows in the language list. A narrow window used with a mouse keeps the small list. */
@media (pointer: coarse) {
	.lang-menu__button {
		min-height: 3rem;
		padding-inline: 0.6rem;
	}

	.lang-menu__list a {
		display: flex;
		align-items: center;
		min-height: 3rem;
		padding-block: 0;
	}
}

/* Touch screens: bigger buttons, and every tap target at least 48 px high */

/* Touch screens: finger-sized buttons and rows. A narrow window used with a mouse keeps the usual sizes. */
@media (pointer: coarse) {
	.wp-element-button,
	.wp-block-button__link,
	.booking__submit {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 3.5rem;
		padding: 1rem 1.75rem;
		font-size: 0.875rem;
	}

	.nav-toggle {
		width: 3rem;
		height: 3rem;
	}

	/* Padding on an inline link widens what a finger can hit without moving the text. */
	.booking__privacy a {
		padding-block: 0.8rem;
	}

	.site-brand__name,
	.breadcrumbs a,
	.is-style-visiting-card a,
	a[href^="tel:"],
	a[href^="mailto:"] {
		display: inline-flex;
		align-items: center;
		min-height: 3rem;
		padding-block: 0;
	}
}

/* On phones, buttons take the whole width. */
@media (max-width: 40rem) {
	.wp-block-button,
	.wp-block-button__link,
	.booking__submit {
		width: 100%;
	}

	.booking__submit {
		justify-self: stretch;
	}
}

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

/* Under the about page: where to go next */
.about-next {
	grid-column: 1 / -1;
	margin-top: var(--wp--preset--spacing--50);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-style: italic;
}
