/* Vintage Peacock: site styles beyond theme.json. */

/* The sticky header's height (desktop value set with the split layout below); anchors land just under it. */
:root { --vp-header-h: 98px; }
html { scroll-padding-top: calc(var(--vp-header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

/* Placeholder for copy or photos the client still has to supply. Visible on purpose. */
.vp-placeholder { background: #fdf3c7; color: #5c4d0f; font-style: italic; padding: 0 .3em; }

/* ---------- Header ---------- */
.vp-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .vp-site-header { top: var(--wp-admin--admin-bar--height, 0); }
.vp-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	padding: .9rem var(--wp--preset--spacing--40);
}
.vp-header > * { margin: 0; }
.vp-header .vp-logo img { display: block; width: 118px; height: auto; }
.vp-header__actions { justify-self: end; }
.vp-nav {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: .18em;
	text-transform: uppercase;
	gap: 2rem;
}
.vp-nav .wp-block-navigation-item__content { text-decoration: none; }
.vp-nav .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: .35em; }

@media (max-width: 781px) {
	.vp-header { grid-template-columns: auto 1fr auto; gap: 1rem; padding-block: .6rem; }
	.vp-header .vp-logo { justify-self: center; }
	/* !important: the image block writes its desktop width inline. */
	.vp-header .vp-logo img { width: 78px !important; }
	.vp-header__actions .wp-block-button__link { padding: .8em 1em; }
}

/* ---------- Footer ---------- */
.vp-site-footer { margin-block-start: 0; }
.vp-footer { padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--40); }
.vp-footer__cols { gap: var(--wp--preset--spacing--60); }
.vp-footer__logo img { display: block; width: 130px; height: auto; }
.vp-footer__heading {
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	margin-block-end: 1rem;
}
.vp-footer__links { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.vp-footer__contacts { gap: .35rem; }
.vp-footer__links a,
.vp-footer .is-style-text-link .wp-block-button__link {
	color: var(--wp--preset--color--text-on-dark);
	border: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: none;
}
.vp-footer__links a:hover,
.vp-footer .is-style-text-link .wp-block-button__link:hover { color: var(--wp--preset--color--base); text-decoration: underline; }
.vp-footer__base {
	border-top: 1px solid rgb(255 255 255 / 15%);
	font-size: var(--wp--preset--font-size--small);
	margin-block-start: var(--wp--preset--spacing--60);
	padding-top: 1.25rem;
}
.vp-footer__base p { margin: 0; }

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

/* ---------- Home page ---------- */
:is(.vp-home, .vp-sections) .wp-block-post-content > * { margin-block: 0; }
.vp-subhead {
	color: var(--wp--preset--color--text-muted);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
	line-height: 1.35;
	margin-block: .25rem 1.5rem;
}

/* Hero: the photograph fills the section; the headline sits at the foot over a soft darkening. */
.vp-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: clamp(32rem, 42vw, 52rem);
	overflow: hidden;
	color: var(--wp--preset--color--base);
}
.vp-hero .vp-hero__image { position: absolute; inset: 0; margin: 0; }
.vp-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
/* Parallax (desktop, motion allowed): the photo runs 20% above its frame and drifts down into it (motion.js). */
.vp-parallax-on .vp-hero__image img { position: absolute; left: 0; top: -20%; height: 120%; object-position: 50% 42%; will-change: transform; } /* matches the 62% framing at rest */
.vp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	/* A wash that deepens down the frame, and a soft pool of shade behind the copy: the headline sits over white
	   tablecloths and candles, so it needs both (3:1 behind every part of it; tools/checks/browser.js). */
	background:
		radial-gradient(ellipse 60% 45% at 50% 72%, rgb(42 33 27 / 40%), rgb(42 33 27 / 0%)),
		linear-gradient(180deg, rgb(42 33 27 / 0%) 15%, rgb(42 33 27 / 35%) 45%, rgb(42 33 27 / 70%));
}
.vp-hero__content { position: relative; z-index: 1; padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50); }
.vp-hero h1 { color: inherit; max-width: var(--wp--style--global--wide-size); }
.vp-hero__line { max-width: var(--wp--style--global--wide-size); font-size: var(--wp--preset--font-size--medium); letter-spacing: .03em; text-wrap: balance; margin-block: 1.25rem 2rem; }
.vp-btn-light .wp-block-button__link { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
.vp-btn-light .wp-block-button__link:hover { background: var(--wp--preset--color--text-on-dark); }
.vp-btn-light-outline .wp-block-button__link { border-color: currentColor; color: var(--wp--preset--color--base); }
.vp-btn-light-outline .wp-block-button__link:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
.vp-hero .wp-element-button:focus-visible { outline-color: var(--wp--preset--color--base); }
@media (max-width: 781px) {
	.vp-hero { min-height: 36rem; }
	.vp-hero__image img { object-position: 42% 50%; }
}

/* Moving band */
.vp-band { position: relative; overflow: hidden; padding-block: 1.1rem; white-space: nowrap; }
.vp-band__track {
	display: inline-flex;
	animation: vp-band 70s linear infinite;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
}
.vp-band__track span::after { content: "✦"; font-size: .6em; font-style: normal; margin-inline: 2.2rem; vertical-align: middle; }
.vp-band.is-paused .vp-band__track { animation-play-state: paused; }
@keyframes vp-band { to { transform: translateX(-50%); } }
.vp-band__toggle {
	position: absolute;
	right: .75rem;
	top: 50%;
	transform: translateY(-50%);
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	padding: 0;
}
.vp-band__toggle::before { content: "❚❚"; font-size: .65rem; letter-spacing: -.12em; }
.vp-band.is-paused .vp-band__toggle::before { content: "▶"; letter-spacing: 0; }
.vp-band__toggle:focus-visible { outline: 2px solid var(--wp--preset--color--contrast); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.vp-band__track { animation: none; }
	.vp-band__toggle { display: none; }
}

/* Intro */
.vp-intro { padding-block: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60); }
.vp-intro__lead { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--x-large); line-height: 1.35; }
.vp-intro__more { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--large); line-height: 1.45; }

/* Services */
.vp-services { padding-block-end: var(--wp--preset--spacing--80); }
.vp-services__tiles { gap: var(--wp--preset--spacing--50); }
.vp-tile .wp-block-image { margin: 0; }

/* Drift (parallax): the photo is 20% taller than its frame and drifts inside it (motion.js sets the frame's ratio).
   :where() so the split columns' absolute frames keep their position. */
:where(.wp-block-image.is-style-drift) { position: relative; }
.wp-block-image.is-style-drift { overflow: hidden; }
.wp-block-image.is-style-drift img { width: 100%; height: 100%; object-fit: cover; }
.vp-parallax-on .wp-block-image.is-style-drift img { position: absolute; left: 0; top: -10%; height: 120%; will-change: transform; }

.vp-tile .wp-block-image img { width: 100%; }
.vp-tile h3 { margin-block: 1.4rem .6rem; }
.vp-tile p { font-size: var(--wp--preset--font-size--small); }

/* Photo beside text (notify, booking) */
.vp-split { gap: 0; align-items: stretch; margin: 0; }
.vp-split > .vp-split__media { flex-basis: 44%; }
.vp-split__media .wp-block-image, .vp-split__media img { height: 100%; margin: 0; }
/* !important: the image block writes its aspect ratio inline; beside text the column decides the height. */
.vp-split__media img { aspect-ratio: auto !important; object-fit: cover; width: 100%; }
.vp-split__body { align-self: center; padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60); }
@media (min-width: 782px) {
	/* The sticky header's height on desktop (the 118px logo plus padding), measured at 782 to 1920px. */
	:root { --vp-header-h: 145px; }
	/* The text decides the section's height and the photo fills it, so a tall photo can't stretch the section. */
	.vp-split { min-height: 36rem; }
	.vp-split__media { position: relative; }
	.vp-split__media .wp-block-image { position: absolute; inset: 0; }
	/* The booking form is taller than a screen: its photo holds still beside it, below the header. */
	.vp-booking .vp-split__media .wp-block-image {
		position: sticky;
		inset: calc(var(--vp-header-h) + var(--wp-admin--admin-bar--height, 0px)) auto auto;
		height: min(calc(100vh - var(--vp-header-h)), 60rem);
	}
}
@media (max-width: 781px) {
	/* Text first on phones, so the Booking request and Notify me jumps land on words, not a photo. */
	.vp-split__media { order: 2; }
	.vp-split__media img { aspect-ratio: 4 / 3 !important; height: auto; }
	.vp-split__body { padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40); }
}

/* New collection (notify): the client's note, its four pillars and a sign-off above the sign-up. */
.vp-notify h2 { font-size: var(--wp--preset--font-size--x-large); }
.vp-pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1.5rem 2rem;
	margin-block: 2rem;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
}
.vp-pillars li { margin: 0; padding-top: .9rem; border-top: 1px solid var(--wp--preset--color--line); }
.vp-pillars strong {
	display: block;
	margin-bottom: .3rem;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
	font-weight: 400;
}
/* The client's " – " between a pillar's title and its line stays for screen readers and copying; the layout
   shows the split instead. */
.vp-pillars__sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vp-notify__signoff { margin-block: 0 2rem; }

/* About Zy */
.vp-about { padding-block: var(--wp--preset--spacing--80); }

/* ---------- Pages in the new design (templates/page-sections.html) ---------- */
/* Opening: the page's title and introduction beside a photograph, on the warm white the header sits on. */
.vp-pagehead h1 { margin-block: 0 1rem; text-wrap: balance; }
.vp-pagehead .vp-subhead { max-width: 30rem; margin-block-end: 0; text-wrap: balance; }
@media (min-width: 782px) {
	.vp-pagehead .vp-split { min-height: min(calc(100vh - var(--vp-header-h)), 40rem); }
	.vp-pagehead .vp-split__body { padding-inline: var(--wp--preset--spacing--70); }
}
/* Text-only opening (pages whose content is the feed or a list): linen, the title over its introduction. */
.vp-pagehead--plain { padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--40) var(--wp--preset--spacing--70); }
/* Lines up with the wide column the sections below centre in. */
.vp-pagehead--plain > * { margin-inline: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)); }
/* Questions: an accordion of native details, hairlines between, a drawn plus that becomes a minus. */
.vp-faq { padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--40); }
.vp-faq__list { max-width: 48rem; margin-inline: auto; }
.vp-faq .wp-block-details { margin: 0; padding-block: 1.25rem; border-top: 1px solid var(--wp--preset--color--line); }
.vp-faq .wp-block-details:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.vp-faq summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}
.vp-faq summary::-webkit-details-marker { display: none; }
.vp-faq summary::after {
	content: "";
	flex: none;
	width: .85rem;
	height: .85rem;
	background:
		linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
	transition: background-size .3s cubic-bezier(.16, 1, .3, 1);
}
.vp-faq details[open] > summary::after { background-size: 100% 1px, 1px 0; }
.vp-faq summary:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.vp-faq details p { max-width: 40rem; margin: .75rem 0 0; }
/* Recommended vendors, set like a menu card: centred names, each group under its italic heading. */
.vp-recs { padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--40); text-align: center; }
.vp-recs h2 { margin: var(--wp--preset--spacing--60) 0 .75rem; font-size: var(--wp--preset--font-size--x-large); font-style: italic; }
.vp-recs h2::before {
	content: "";
	display: block;
	width: 3rem;
	height: 1px;
	margin: 0 auto var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--line);
}
.vp-recs__list { margin: 0; padding: 0; list-style: none; }
.vp-recs__list li { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--large); line-height: 1.7; }
.vp-recs__list a { text-decoration: underline; text-decoration-color: var(--wp--preset--color--line); text-decoration-thickness: 1px; text-underline-offset: .25em; }
.vp-recs__list a:hover { text-decoration-color: currentColor; }
/* Terms: the conditions as a spaced list beside their heading (the story layout). */
.vp-terms { margin: 0; padding-inline-start: 1.1em; }
.vp-terms li { margin-block-end: 1.1em; padding-inline-start: .35em; }
.vp-terms li::marker { color: var(--wp--preset--color--text-muted); }
@media (prefers-reduced-motion: reduce) {
	.vp-faq summary::after { transition: none; }
}
/* A long story read in one column, its heading holding still beside it on desktop. */
.vp-story { padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--40); }
.vp-story__cols { max-width: var(--wp--style--global--wide-size); margin-inline: auto; gap: var(--wp--preset--spacing--50); }
.vp-story__head h2 { margin: 0; text-wrap: balance; }
.vp-story__body { max-width: 38rem; }
.vp-story__body p { margin-block: 0 1.25em; }
.vp-lead {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-style: italic;
	line-height: 1.25;
	text-wrap: balance;
}
@media (min-width: 782px) {
	.vp-story__cols { gap: var(--wp--preset--spacing--70); }
	/* Three classes, to outrank core's equal-width columns rule. */
	.wp-block-columns.vp-story__cols > .vp-story__head { flex: 0 0 36%; }
	.vp-story__head h2 { position: sticky; top: calc(var(--vp-header-h) + var(--wp-admin--admin-bar--height, 0px) + 2rem); }
}
.vp-about__cols { gap: var(--wp--preset--spacing--70); align-items: center; }
.vp-about__photo { margin: 0; }
.vp-about__photo img { display: block; width: 100%; }

/* Reviews */
.vp-reviews { padding-block: var(--wp--preset--spacing--80); }
.vp-reviews h2 { font-size: var(--wp--preset--font-size--x-large); font-style: italic; max-width: 32ch; }
.vp-reviews > .vp-reviews__cols { gap: var(--wp--preset--spacing--60); margin-top: var(--wp--preset--spacing--60); max-width: var(--wp--style--global--wide-size); }
.vp-review .wp-block-quote { border: 0; margin: 0; padding: 0; font-size: var(--wp--preset--font-size--large); line-height: 1.45; }
.vp-review .wp-block-quote cite {
	color: var(--wp--preset--color--text-on-dark);
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-style: normal;
	letter-spacing: .2em;
	margin-top: 1.2rem;
	text-transform: uppercase;
}

/* Instagram */
.vp-instagram { padding-block: var(--wp--preset--spacing--80); }
.vp-instagram__follow { margin-block-end: var(--wp--preset--spacing--50); }

/* ---------- Forms ---------- */
.vp-form .gform_fields { column-gap: 2rem; row-gap: 1.25rem; }
.vp-form .gfield_label,
.vp-form .gform-field-label {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.vp-form input:not([type="checkbox"]):not([type="submit"]):not([type="hidden"]),
.vp-form select,
.vp-form textarea {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	color: inherit;
	font: inherit;
	padding: .6rem 0;
	width: 100%;
}
.vp-form input:focus-visible, .vp-form select:focus-visible, .vp-form textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}
.vp-form .gfield--type-checkbox .gchoice { display: flex; gap: .6rem; align-items: flex-start; }
/* A choice's label is a sentence (the sign-up's consent line), not a field label: no capitals. */
.vp-form .gfield--type-checkbox .gform-field-label--type-inline {
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
}
.vp-form ::placeholder { color: var(--wp--preset--color--text-muted); opacity: 1; }
.vp-form .gform_footer { margin-top: 1.5rem; }
.vp-form .gfield_required { color: var(--wp--preset--color--text-muted); margin-left: .25em; }
.vp-form .gfield_required .gfield_required { margin-left: 0; }
.vp-form_wrapper .gform_required_legend,
.vp-form .gfield_description {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--x-small);
	margin: .45rem 0 0;
}
/* Gravity prints the legend above the <form>, so it is reached through the wrapper. */
.vp-form_wrapper .gform_required_legend { margin: 0 0 1.25rem; }
.vp-form_wrapper .gform_required_legend .gfield_required { margin: 0; }

/* Date field: GF's calendar button, drawn here because its icon font isn't loaded. */
.vp-form .ginput_container_date { position: relative; }
.vp-form .ginput_container_date input { padding-right: 2.5rem; }
.vp-form .gform-datepicker-toggle {
	position: absolute;
	top: .4rem; /* centred on the input; the open calendar makes the container taller */
	right: 0;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--text-muted);
	cursor: pointer;
}
.vp-form .gform-datepicker-toggle:hover { color: var(--wp--preset--color--contrast); }
.vp-form .gform-datepicker-toggle:focus-visible { outline: 2px solid var(--wp--preset--color--contrast); }
.vp-form .gform-datepicker-toggle-icon {
	width: 1.1rem;
	height: 1.1rem;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='1'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vp-form .gform-datepicker-toggle-icon::before { content: none; }
/* Gravity's calendar, a pop-over under the field. */
.vp-form .gform-datepicker-calendar {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	margin-top: .5rem;
	padding: .75rem 1rem 1rem;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 12px 32px rgb(42 33 27 / 14%);
	font-size: var(--wp--preset--font-size--small);
}
.vp-form .gform-datepicker-calendar table { border-collapse: collapse; margin: 0; }
.vp-form .gform-datepicker-calendar :is(td, th) { padding: 0; border: 0; text-align: center; }
.vp-form .gform-datepicker-calendar th {
	padding-block: .6rem .3rem;
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
}
.vp-form .gform-datepicker-calendar :is(.day, .nav.btn) > span { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; }
.vp-form .gform-datepicker-calendar :is(.day, .nav.btn) { cursor: pointer; }
.vp-form .gform-datepicker-calendar .nav.btn { color: var(--wp--preset--color--text-muted); }
.vp-form .gform-datepicker-calendar :is(.day, .nav.btn):hover { background: var(--wp--preset--color--base-2); color: var(--wp--preset--color--contrast); }
.vp-form .gform-datepicker-calendar :is(.day, .nav.btn):focus-visible { outline: 2px solid var(--wp--preset--color--contrast); outline-offset: -2px; }
.vp-form .gform-datepicker-calendar :is(.selected, [aria-selected="true"]) { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.vp-form .gform-datepicker-calendar p { margin: .5rem 0 0; color: var(--wp--preset--color--text-muted); font-size: var(--wp--preset--font-size--x-small); }
.vp-form .gform-datepicker-calendar select {
	width: 100%;
	padding: .35rem 0;
	border: 0;
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
	cursor: pointer;
}
.vp-form .validation_message,
.vp-form .gfield_validation_message,
.vp-form .gform_validation_errors { color: #8a1c1c; font-size: var(--wp--preset--font-size--small); }
