/* Supplements theme.json. Keep this file small: only what theme.json cannot express. */

/* Honeypot: real visitors never see it, bots fill it in. */
.hc-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Text for screen readers and search engines only. */
.hc-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Hero photo: an arch that sits flush on the bottom edge of the apricot block. */
.hc-arch,
.hc-arch img {
	border-radius: 340px 340px 0 0;
}
.hc-arch img {
	display: block;
	width: 100%;
	height: 440px;
	object-fit: cover;
}

/* Giant decorative wordmark. */
.hc-wordmark {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--wordmark);
	line-height: 0.82;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rust);
	margin-left: -8px;
}

/* Header, hero and main sit flush: the apricot block is one piece. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.hc-logo,
.hc-logo a {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--logo);
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	margin: 0;
	margin-right: auto;
}
.hc-header-row {
	align-items: center;
}
.hc-btn-pitch .wp-block-button__link {
	padding: 12px 22px;
	font-size: var(--wp--preset--font-size--nav);
}
.wp-block-navigation a {
	text-decoration: none;
}
.hc-lang-slot .wp-block-polylang-language-switcher {
	text-transform: uppercase;
	gap: 0;
}
.hc-lang-slot .wp-block-polylang-language-switcher li + li::before {
	content: "/";
	margin: 0 0.35em;
}

/* Hero: text left, arch photo right, bottom-aligned. */
.hc-hero-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 680px;
	gap: 40px;
	align-items: end;
}
.hc-hero-row > * {
	margin-block: 0;
}
.hc-hero-text {
	max-width: 100%;
}
.hc-hero-text > p {
	max-width: 440px;
}
.hc-hero .wp-block-image {
	margin: 0;
}
.hc-arch-fallback {
	height: 440px;
	background: #c9622d;
}
@media (max-width: 1024px) {
	.hc-hero-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Buttons: smooth hover, outline variant per the design (2px ink border, tinted hover). */
.wp-element-button,
.wpcf7-form input[type="submit"] {
	transition: background-color 150ms ease, color 150ms ease;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 2px solid var(--wp--preset--color--ink);
	padding: 15px 25px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgb(30 19 12 / 0.08);
	color: var(--wp--preset--color--ink);
}

/* Gallery: keep tiles consistent. */
.wp-block-gallery .wp-block-image img {
	object-fit: cover;
}

.hc-lang-slot:empty {
	display: none;
}

/* Polylang language switcher: one compact row, current language in bold. */
.wp-block-polylang-language-switcher {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.9rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	font-weight: 500;
}
.wp-block-polylang-language-switcher a {
	color: inherit;
	text-decoration: none;
}
.wp-block-polylang-language-switcher a:hover {
	text-decoration: underline;
}
.wp-block-polylang-language-switcher a[aria-current] {
	font-weight: 700;
}

/* Forms: pills with a 2px ink border on sand. Layout comes with the enquiry section. */
.hc-form-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, 1fr);
}
.hc-form-grid .hc-full {
	grid-column: 1 / -1;
}
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 18px 20px;
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 999px;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 17px;
	font-weight: 500;
}
.wpcf7-form textarea {
	border-radius: 28px;
}
.wpcf7-form input[type="submit"] {
	width: 100%;
	cursor: pointer;
	border: 0;
	border-radius: 999px;
	padding: 20px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--sand);
	font: inherit;
	font-size: 18px;
	font-weight: 700;
}
.wpcf7-form input[type="submit"]:hover {
	background: var(--wp--preset--color--rust);
}
.wpcf7-not-valid-tip {
	margin-top: 6px;
	/* Ink, not rust: rust on apricot is 4.29:1, below AA for small text. The rust border marks the field. */
	color: var(--wp--preset--color--ink);
	font-size: 14px;
	font-weight: 700;
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--rust);
	outline-offset: 2px;
}

/* Narrow screens: tighter page padding, per the design's responsive rules. */
@media (max-width: 768px) {
	body {
		--wp--preset--spacing--48: 20px;
	}
	.hc-form-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1024px) {
	.hc-arch img {
		height: 360px;
	}
}

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

/* Phones: the whole header row (logo, burger, language, Book a pitch) must fit on one line. */
@media (max-width: 768px) {
	.hc-header-row {
		flex-wrap: nowrap;
		gap: 12px;
	}
	.hc-header-row .wp-block-navigation {
		gap: 12px;
	}
	.hc-btn-pitch .wp-block-button__link {
		padding: 10px 14px;
		font-size: 14px;
		white-space: nowrap;
	}
	.hc-logo,
	.hc-logo a {
		font-size: 19px;
	}
	.hc-hero-text > p {
		max-width: none;
	}
}

/* Stacked hero: the text no longer needs the desktop bottom padding. */
@media (max-width: 1024px) {
	.hc-hero-text {
		padding-bottom: 8px !important;
	}
}

/* Stat band: four equal cells, hairline dividers. */
.hc-stat-band {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-block: 0;
}
.hc-stat {
	padding: 36px 48px;
	border-right: 1px solid var(--wp--preset--color--ink-line);
	margin-block: 0;
}
.hc-stat:last-child {
	border-right: 0;
}
.hc-stat-number {
	font-family: var(--wp--preset--font-family--display);
	line-height: 0.9;
	margin: 0;
}
.hc-stat > p {
	margin-block: 0;
}
@media (max-width: 1024px) {
	.hc-stat-band {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.hc-stat:nth-child(2n) {
		border-right: 0;
	}
	.hc-stat:nth-child(-n + 2) {
		border-bottom: 1px solid var(--wp--preset--color--ink-line);
	}
}
@media (max-width: 768px) {
	.hc-stat {
		padding: 28px 20px;
	}
}

/* Stay columns: three colour blocks, no gap; the whole column is the link. */
.hc-stay {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-block: 0;
}
.hc-stay-col {
	position: relative;
	margin-block: 0;
}
.hc-label {
	font-weight: 700;
	text-transform: uppercase;
	margin: 0;
}
.hc-stay-title {
	margin: 0;
}
.hc-stay-title a {
	color: inherit;
	text-decoration: none;
}
.hc-stay-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.hc-stay-photo,
.hc-stay-photo img {
	border-radius: 4px;
}
.hc-stay-photo {
	margin: 0;
}
.hc-stay-photo img {
	display: block;
	width: 100%;
	height: 280px;
	object-fit: cover;
}
.hc-stay-photo--bush img {
	object-position: 50% 35%;
}
.hc-stay-photo-fallback {
	height: 280px;
}
@media (max-width: 900px) {
	.hc-stay {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 768px) {
	.hc-stay-col {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

/* Stay column rhythm: 16px between label, title, photo and copy (the resets above zero the layout gap). */
.hc-stay-col > * + * {
	margin-block-start: var(--wp--preset--spacing--16);
}

/* Birding: text inset on the left, link pinned to the bottom of the 620px photo. */
.hc-birding {
	background: var(--wp--preset--color--ink-line);
	margin-block: 0;
}
.hc-birding .wp-block-cover__inner-container {
	align-self: stretch;
	width: 100%;
}
.hc-birding-text {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-height: 620px;
	max-width: 560px;
	padding: 64px 0 64px var(--wp--preset--spacing--48);
}
.hc-birding-text > * {
	margin-block: 0;
}
.hc-birding-text {
	gap: var(--wp--preset--spacing--20);
}
.hc-birding-numeral {
	margin: 0;
}
.hc-birding-link {
	margin-top: auto !important;
}
.hc-birding-link a {
	color: var(--wp--preset--color--sand);
	text-decoration: underline;
	font-size: var(--wp--preset--font-size--body);
}
@media (max-width: 768px) {
	.hc-birding,
	.hc-birding-text {
		min-height: 520px !important;
	}
	.hc-birding .wp-block-cover__background {
		background: linear-gradient(0deg, rgba(30, 19, 12, 0.92), rgba(30, 19, 12, 0.35) 70%, rgba(30, 19, 12, 0.1)) !important;
	}
	.hc-birding-text {
		padding-right: var(--wp--preset--spacing--48);
		justify-content: flex-end;
	}
}

/* Enquiry: heading and contact lines left, form right, bottom-aligned. */
.hc-enquiry {
	margin-block: 0;
}
.hc-enquiry-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px;
	align-items: end;
}
.hc-enquiry-row > * {
	margin-block: 0;
}
.hc-enquiry-title {
	margin: 0;
}
.hc-enquiry-text a {
	color: inherit;
}
.hc-enquiry .hc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.hc-enquiry .hc-field label {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding-left: 20px;
}
.hc-enquiry .wpcf7-form-control-wrap {
	display: block;
}
.hc-enquiry .wpcf7-form input[type="submit"] {
	margin-top: 12px;
}
.hc-enquiry .wpcf7-spinner {
	display: none;
}
/* Errors inline under each field, in rust. */
.hc-enquiry .wpcf7-not-valid-tip {
	padding-left: 20px;
}
.hc-enquiry .wpcf7-not-valid {
	border-color: var(--wp--preset--color--rust) !important;
}
/* Messages sit in place of the form: success replaces it, errors show above the button. */
.hc-enquiry .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 16px 20px;
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 28px;
	font-weight: 500;
}
.hc-enquiry form.sent > :not(.wpcf7-response-output):not(.screen-reader-response) {
	display: none;
}
.hc-enquiry form.sent .wpcf7-response-output {
	font-size: var(--wp--preset--font-size--large-body);
	background: var(--wp--preset--color--sand);
	border-color: var(--wp--preset--color--sand);
}
@media (max-width: 768px) {
	.hc-enquiry-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
	.hc-enquiry {
		padding-top: 56px !important;
		padding-bottom: 56px !important;
	}
}

/* Footer: one row, logo pushed left. */
.hc-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	margin-block: 0;
	padding-left: var(--wp--preset--spacing--48);
	padding-right: var(--wp--preset--spacing--48);
}
.hc-footer > p {
	margin: 0;
}
.hc-footer .hc-footer-logo {
	margin-right: auto;
	font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.hc-footer a {
	color: inherit;
	text-decoration: none;
}
.hc-footer a:hover {
	text-decoration: underline;
}

/* Inner pages: apricot intro. */
.hc-intro {
	margin-block: 0;
}
.hc-intro > * {
	margin-block: 0;
}
.hc-intro > * + * {
	margin-block-start: var(--wp--preset--spacing--20);
}
.hc-intro .hc-lede {
	max-width: 640px;
}

/* Detail section: text left, photos right. */
.hc-detail-section {
	margin-block: 0;
}
.hc-detail {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}
.hc-detail--solo {
	grid-template-columns: minmax(0, 1fr);
	max-width: 720px;
}
.hc-detail > * {
	margin-block: 0;
}
.hc-detail-text > h2 {
	margin: 0;
}
.hc-detail-photos {
	display: grid;
	gap: 16px;
}
.hc-detail-photos > * {
	margin: 0;
}
.hc-detail-photo,
.hc-detail-photo img {
	border-radius: 4px;
}
.hc-detail-photo img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}
.hc-facts {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--large-body);
	font-weight: 500;
}
.hc-facts li {
	padding: 12px 0;
	border-top: 1px solid var(--wp--preset--color--ink);
}
.hc-facts li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--ink);
}
@media (max-width: 1024px) {
	.hc-detail {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

/* Gallery page: square-ish tiles with the design's small radius. */
.hc-gallery-section .wp-block-gallery {
	gap: 16px;
}
.hc-gallery-section .wp-block-gallery .wp-block-image,
.hc-gallery-section .wp-block-gallery .wp-block-image img {
	border-radius: 4px;
}

/* Constrained layouts centre narrow children; the intro lede stays on the left edge like the title. */
.hc-intro > .hc-lede {
	margin-inline: 0 !important;
}
.hc-detail-text > * + * {
	margin-block-start: var(--wp--preset--spacing--20);
}

/* WordPress collapses the menu to a burger below 600px; the design wants it at 768px and below. */
@media (min-width: 600px) and (max-width: 768px) {
	.hc-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.hc-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Privacy note under the enquiry form, and the policy page's headings. */
.hc-enquiry-note {
	margin: 12px 20px 0;
}
.hc-enquiry-note a {
	color: inherit;
}
.hc-text-heading {
	margin-top: var(--wp--preset--spacing--40);
}
.hc-text-section > .hc-text-heading:first-child {
	margin-top: 0;
}
