/* ==========================================================================
   Avanzato — block styles, components and per-page layouts
   ========================================================================== */

/* --------------------------------------------------------------------------
   Block styles registered in inc/patterns.php
   -------------------------------------------------------------------------- */

.wp-block-button.is-style-avz-gold > .wp-block-button__link {
	background: var(--wp--preset--gradient--gold-bar);
	background-size: 200% 100%;
	background-position: 0% 50%;
	color: var(--wp--preset--color--ink);
	border: 1px solid rgba(240, 213, 168, 0.5);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: clamp(0.74rem, 0.893vw, 1.064rem);
	position: relative;
	overflow: hidden;
	transition: background-position 1100ms var(--avz-ease-luxe), color 400ms var(--avz-ease);
}

.wp-block-button.is-style-avz-gold > .wp-block-button__link:hover,
.wp-block-button.is-style-avz-gold > .wp-block-button__link:focus-visible {
	background-position: 100% 50%;
	color: var(--wp--preset--color--ink-deep);
}

.wp-block-button.is-style-avz-ghost > .wp-block-button__link {
	/* A faint tint and blur so the outline stays legible over photography;
	   on a flat background this reads as transparent. */
	background: rgba(2, 17, 33, 0.42);
	backdrop-filter: blur(3px);
	color: var(--wp--preset--color--champagne);
	border: 1px solid rgba(240, 213, 168, 0.85);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: clamp(0.72rem, 0.861vw, 1.008rem);
	transition: color 420ms var(--avz-ease), background-color 420ms var(--avz-ease), border-color 420ms var(--avz-ease);
}

.wp-block-button.is-style-avz-ghost > .wp-block-button__link:hover,
.wp-block-button.is-style-avz-ghost > .wp-block-button__link:focus-visible {
	background: rgba(218, 171, 112, 0.14);
	border-color: var(--wp--preset--color--gold-light);
	color: var(--wp--preset--color--champagne);
}

.wp-block-button.is-small > .wp-block-button__link {
	padding: 0.5em 1.5em;
	font-size: clamp(0.66rem, 0.798vw, 0.918rem);
}

.wp-block-group.is-style-avz-panel {
	background: rgba(2, 17, 33, 0.82);
	border: 1px solid rgba(218, 171, 112, 0.45);
	backdrop-filter: blur(10px);
	padding: clamp(18px, 2.2vw, 36px);
}

.wp-block-image.is-style-avz-framed img {
	border: 1px solid rgba(218, 171, 112, 0.35);
}

.wp-block-separator.is-style-avz-rule {
	border: 0;
	height: 1px;
	width: clamp(40px, 5vw, 72px);
	margin-inline: 0;
	background: var(--wp--preset--color--gold);
	opacity: 1;
}

.avz-lede--left {
	margin-inline: 0;
	text-align: left;
}

/* Arrow links ("View More →") */
.avz-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(0.68rem, 0.84vw, 0.941rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-light);
	text-decoration: none;
	border-bottom: 1px solid rgba(218, 171, 112, 0.5);
	padding-bottom: 0.25em;
	transition: color 380ms var(--avz-ease), border-color 380ms var(--avz-ease);
}

.avz-link-arrow span {
	transition: transform 420ms var(--avz-ease-luxe);
}

.avz-link-arrow:hover {
	color: var(--wp--preset--color--champagne);
	border-color: var(--wp--preset--color--champagne);
}

.avz-link-arrow:hover span {
	transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   Search panel
   -------------------------------------------------------------------------- */

.avz-search-panel {
	position: absolute;
	top: 100%;
	right: var(--avz-gutter);
	width: min(520px, calc(100vw - var(--avz-gutter) * 2));
	background: rgba(2, 17, 33, 0.97);
	border: 1px solid rgba(218, 171, 112, 0.35);
	padding: clamp(14px, 1.6vw, 22px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 420ms var(--avz-ease-luxe), transform 420ms var(--avz-ease-luxe), visibility 0s linear 420ms;
	z-index: 70;
}

.avz-search-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 420ms var(--avz-ease-luxe), transform 420ms var(--avz-ease-luxe), visibility 0s;
}

.avz-search-form {
	display: flex;
	gap: 10px;
}

.avz-search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	background: transparent;
	border: 1px solid rgba(218, 171, 112, 0.35);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.95rem;
	padding: 0.7em 1em;
}

.avz-search-form input[type="search"]::placeholder {
	color: rgba(183, 194, 206, 0.7);
}

/* --------------------------------------------------------------------------
   Stage furniture
   -------------------------------------------------------------------------- */

.avz-stage {
	padding: clamp(14px, 2.4vh, 36px) var(--avz-gutter) clamp(14px, 2.4vh, 32px);
}

/* The fit-to-viewport guard scales a stage down rather than scrolling. */
.avz-stage.is-fitted {
	transform: scale(var(--avz-fit-scale, 1));
	transform-origin: top center;
}

/* A photograph used as a full-bleed backdrop behind a stage. */
.avz-stage__backdrop {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: 0;
	pointer-events: none;
}

.avz-stage__backdrop img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center right;
}

.avz-stage__backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--preset--gradient--ink-veil);
}

.avz-watermark--left {
	left: 22%;
	top: 50%;
	translate: -50% -50%;
	width: clamp(220px, 26vw, 480px);
	margin: 0;
}

.avz-watermark--right {
	margin: 0;
}

.avz-page-head {
	text-align: center;
	padding-block: clamp(8px, 1.6vh, 26px) clamp(12px, 2.2vh, 30px);
	flex: 0 0 auto;
}

.avz-page-head__title {
	margin: 0.08em 0 0.24em;
	text-transform: uppercase;
	font-size: clamp(1.8rem, 3.78vw, 3.808rem);
}

.avz-page-head--tight {
	padding-block: clamp(6px, 1.2vh, 18px) clamp(8px, 1.4vh, 20px);
}

/* --------------------------------------------------------------------------
   Home — hero & testimonials
   -------------------------------------------------------------------------- */

.avz-stage--hero {
	padding: 0;
}

.avz-hero-cover {
	flex: 1 1 auto;
	min-height: 0 !important;
	padding: 0;
}

/* Scrims: one down the left so the headline always has contrast, one across
   the top so the header reads over a bright photograph, one at the foot for
   the testimonials. Independent of whatever image the client uploads. */
.avz-hero-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(2, 17, 33, 0.92) 0%, rgba(2, 17, 33, 0.72) 26%, rgba(2, 17, 33, 0.18) 55%, rgba(2, 17, 33, 0.05) 100%),
		linear-gradient(180deg, rgba(2, 17, 33, 0.78) 0%, rgba(2, 17, 33, 0.1) 18%, rgba(2, 17, 33, 0) 34%),
		linear-gradient(0deg, rgba(2, 17, 33, 0.82) 0%, rgba(2, 17, 33, 0.25) 22%, rgba(2, 17, 33, 0) 42%);
}

/* Core sets z-index:1 on the inner container from wp-block-library, which is
   printed after the theme's stylesheets — hence the !important. Without it
   the parent's ::after scrim (also layer 1) paints over the content. */
.wp-block-cover.avz-hero-cover > .wp-block-cover__inner-container {
	position: relative;
	z-index: 3 !important;
}

.avz-hero-cover .wp-block-cover__inner-container {
	height: 100%;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	/* The foot of the hero carries more room than the head, so the headline
	   and the testimonial row both sit clear of the footer rule. The quotes'
	   scrim reaches down through this same padding, so it is a variable. */
	--avz-hero-pad-b: clamp(34px, 7.2vh, 92px);
	padding: calc(var(--avz-header-h) + clamp(12px, 3vh, 48px)) var(--avz-gutter) var(--avz-hero-pad-b);
	gap: clamp(12px, 2vh, 28px);
	max-width: none;
}

/* The testimonial row is the second grid track and sizes to its content. */
.avz-slider--quotes {
	align-self: end;
	padding-bottom: clamp(10px, 1.6vh, 20px);
	position: relative;
}

/* The quotes sit on photography, so they carry their own scrim — it fades
   upward so the hero image is never hard-edged. */
.avz-slider--quotes::before {
	content: "";
	position: absolute;
	/* Down past the container's bottom padding, not to the quotes' own edge —
	   stopping there left a hard line across the photograph. */
	inset: -6% calc(var(--avz-gutter) * -1) calc(var(--avz-hero-pad-b, 0px) * -1);
	background: linear-gradient(to top, rgba(2, 17, 33, 0.92) 0%, rgba(2, 17, 33, 0.9) 34%, rgba(2, 17, 33, 0.78) 66%, rgba(2, 17, 33, 0) 100%);
	pointer-events: none;
	z-index: 0;
}

.avz-slider--quotes > * {
	position: relative;
	z-index: 1;
}

.avz-hero__copy {
	align-self: center;
	justify-self: start;
	/* Centred in its track, so this margin lifts the block by half its value
	   rather than pushing anything below it down. */
	margin-block-end: clamp(0px, 3.4vh, 46px);
	/* Wide enough that the headline sets on three lines, as in the design. */
	max-width: clamp(300px, 42vw, 820px);
	text-align: left;
}

.avz-hero__title {
	font-size: clamp(1.9rem, 3.57vw, 4.032rem);
	text-transform: uppercase;
	color: var(--wp--preset--color--champagne);
	margin: 0;
	line-height: 1.12;
}

.avz-hero__actions {
	margin-top: clamp(16px, 2.6vh, 36px);
	gap: clamp(10px, 1.2vw, 18px);
	flex-wrap: nowrap;
}

.avz-hero__actions .wp-block-button__link {
	white-space: nowrap;
}

/* Testimonials */
.avz-slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp(8px, 1.4vw, 24px);
	width: 100%;
	min-width: 0;
}

.avz-slider__track {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc(100% / 3);
	gap: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.avz-slider__track::-webkit-scrollbar {
	display: none;
}

.avz-slider__track > * {
	scroll-snap-align: start;
	min-width: 0;
	margin: 0;
}

.avz-slider__arrow {
	flex: 0 0 auto;
	width: clamp(34px, 3vw, 46px);
	height: clamp(34px, 3vw, 46px);
	display: grid;
	place-items: center;
	border: 1px solid rgba(218, 171, 112, 0.45);
	border-radius: 50%;
	background: rgba(2, 17, 33, 0.45);
	color: var(--wp--preset--color--white);
	cursor: pointer;
	transition: background-color 380ms var(--avz-ease), color 380ms var(--avz-ease), border-color 380ms var(--avz-ease);
}

.avz-slider__arrow:hover {
	background: var(--wp--preset--color--gold);
	border-color: var(--wp--preset--color--gold-light);
	color: var(--wp--preset--color--ink);
}

.avz-slider__dots {
	position: absolute;
	left: 50%;
	bottom: calc(-1 * clamp(14px, 2vh, 24px));
	translate: -50% 0;
	display: flex;
	gap: 8px;
}

.avz-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(218, 171, 112, 0.35);
	cursor: pointer;
	transition: background-color 360ms var(--avz-ease), transform 360ms var(--avz-ease);
}

.avz-dot.is-active {
	background: var(--wp--preset--color--gold-light);
	transform: scale(1.25);
}

.avz-quote {
	text-align: center;
	padding-inline: clamp(12px, 2vw, 34px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(6px, 0.9vh, 12px);
	position: relative;
}

/* The design separates the quotes with a short centred rule, not a full-height
   border. A pseudo-element gives it a length of its own. */
.avz-quote + .avz-quote::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 62%;
	background: rgba(218, 171, 112, 0.28);
}

.avz-quote:first-child {
	border-left: 0;
}

.avz-quote__avatar {
	margin: 0;
}

.avz-quote__avatar img {
	border-radius: 50%;
	/* A clear gold ring, as in the design. */
	border: 2px solid var(--wp--preset--color--gold-light);
	box-shadow: 0 0 0 1px rgba(2, 17, 33, 0.6);
}

.avz-quote__text {
	font-style: italic;
	font-size: clamp(0.78rem, 0.945vw, 1.075rem);
	line-height: 1.5;
	margin: 0;
	color: var(--wp--preset--color--white);
	max-width: 34ch;
	/* Keep every quote to the same three lines so the row cannot grow and
	   push the page past one screen. */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.avz-quote__stars {
	margin: 0;
	color: var(--wp--preset--color--gold-light);
	letter-spacing: 0.18em;
	font-size: clamp(0.72rem, 0.893vw, 1.008rem);
}

.avz-quote__name {
	margin: 0;
	font-style: italic;
	color: var(--wp--preset--color--muted);
	font-size: clamp(0.8rem, 0.945vw, 1.064rem);
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.avz-team {
	gap: clamp(8px, 1vw, 18px) !important;
	align-items: stretch;
	margin: 0;
	min-height: 0;
}

.avz-member {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border: 1px solid rgba(218, 171, 112, 0.22);
	background: rgba(6, 26, 45, 0.5);
	overflow: hidden;
	text-align: center;
	padding: 0;
	transition: border-color 520ms var(--avz-ease), transform 620ms var(--avz-ease-luxe);
}

.avz-member:hover {
	border-color: rgba(218, 171, 112, 0.6);
	transform: translateY(-5px);
}

.avz-member__media {
	margin: 0;
	/* A fixed share of the card, never a grower: left free to absorb the slack,
	   a card with a short bio took a taller portrait than its neighbours and
	   the names no longer sat on one line. */
	flex: 0 0 46%;
	min-height: 0;
	overflow: hidden;
}

.avz-member__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 28%;
	transition: transform 1400ms var(--avz-ease-luxe);
}

.avz-member:hover .avz-member__media img {
	transform: scale(1.06);
}

.avz-member__name,
.avz-member__role,
.avz-member__bio,
.avz-member__link {
	padding-inline: clamp(10px, 1vw, 18px);
}

.avz-member__name {
	font-size: clamp(0.95rem, 1.313vw, 1.568rem);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: clamp(10px, 1.4vh, 18px) 0 0;
	color: var(--wp--preset--color--white);
	position: relative;
}

.avz-member__name::after {
	content: "";
	display: block;
	width: 28px;
	height: 1px;
	background: var(--wp--preset--color--gold);
	margin: 0.5em auto 0;
}

.avz-member__role {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(0.6rem, 0.756vw, 0.874rem);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-light);
	margin: 0.7em 0 0;
}

.avz-member__bio {
	font-style: italic;
	font-size: clamp(0.72rem, 0.882vw, 1.008rem);
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
	margin: 0.8em 0 0;
	/* The portrait is a fixed share of the card, so the bio can sit at its
	   natural height; the link below it is what takes up the slack. */
	flex: 0 1 auto;
	min-height: 0;
	/* Bios differ in length; cap them so every card ends on its link, and at
	   a line the card has room for rather than halfway through one. */
	display: -webkit-box;
	-webkit-line-clamp: 5;
	line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.avz-member__link {
	margin: 0.9em 0 clamp(12px, 1.6vh, 20px);
	flex: 0 0 auto;
	margin-top: auto;
	padding-top: 0.9em;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.avz-stage--services .avz-stage__backdrop img {
	object-position: center right;
}

/* The photograph belongs to the right of these screens; the left stays ink
   so the menu and the headline keep their contrast. */
.avz-stage--services .avz-stage__backdrop::after,
.avz-stage--contact .avz-stage__backdrop::after {
	background: linear-gradient(
		90deg,
		#021121 0%,
		rgba(2, 17, 33, 0.99) 38%,
		rgba(2, 17, 33, 0.97) 56%,
		rgba(2, 17, 33, 0.9) 70%,
		rgba(2, 17, 33, 0.68) 82%,
		rgba(2, 17, 33, 0.36) 92%,
		rgba(2, 17, 33, 0.18) 100%
	);
}

/* The monogram sits high, in the open space to the right of the title,
   rather than drifting down behind the service list. */
.avz-stage--services .avz-watermark--left {
	left: 41%;
	top: 4%;
	translate: -50% 0;
	width: clamp(140px, 14vw, 250px);
	opacity: 0.08;
}

.avz-services {
	gap: clamp(16px, 2.6vw, 48px) !important;
	margin: 0;
	align-items: stretch;
}

.avz-services__menu {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.avz-services__aside {
	display: flex;
	/* The panel takes its height from its own content and centres beside the
	   list; stretched to the list's full height it reads as an empty box. */
	align-items: center;
	min-height: 0;
}

.avz-services .avz-tabs {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1 1 auto;
}

.avz-services .avz-panel {
	min-height: 0;
	overflow: hidden;
	/* The design runs a thin rail down the left of the list and insets the
	   rows from it. */
	position: relative;
	padding-left: clamp(10px, 1vw, 16px);
	border-left: 1px solid rgba(218, 171, 112, 0.18);
}

/* The lit part of the rail, marking the top of the list. */
.avz-services .avz-panel::before {
	content: "";
	position: absolute;
	left: -1px;
	top: 0;
	width: 1px;
	height: 28%;
	background: var(--wp--preset--color--gold-light);
}

/* Tabs */
.avz-tabs__list {
	display: flex;
	gap: 0 !important;
	border-bottom: 1px solid rgba(218, 171, 112, 0.22);
	margin-bottom: clamp(10px, 1.6vh, 22px);
	overflow-x: auto;
	scrollbar-width: none;
}

.avz-tabs__list::-webkit-scrollbar {
	display: none;
}

.avz-tab {
	margin: 0;
	padding: 0.7em clamp(10px, 1.3vw, 22px);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(0.66rem, 0.819vw, 0.941rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color 360ms var(--avz-ease), background-color 360ms var(--avz-ease), border-color 360ms var(--avz-ease);
	user-select: none;
}

.avz-tab:hover {
	color: var(--wp--preset--color--white);
}

.avz-tab.is-active {
	color: var(--wp--preset--color--champagne);
	background: linear-gradient(180deg, rgba(218, 171, 112, 0) 0%, rgba(218, 171, 112, 0.16) 100%);
	border-bottom-color: var(--wp--preset--color--gold-light);
}

.avz-panel {
	display: flex;
	flex-direction: column;
	gap: clamp(6px, 0.9vh, 12px);
	animation: avz-panel-in 620ms var(--avz-ease-luxe) both;
}

/* A display value beats the browser default for [hidden], so say it again. */
.avz-panel[hidden] {
	display: none !important;
}

@keyframes avz-panel-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.avz-service {
	display: grid !important;
	grid-template-columns: auto auto 1fr auto auto auto;
	align-items: center;
	gap: clamp(8px, 1.2vw, 20px) !important;
	border: 1px solid rgba(218, 171, 112, 0.2);
	background: rgba(2, 17, 33, 0.55);
	padding: clamp(8px, 1.3vh, 15px) clamp(10px, 1.2vw, 18px);
	transition: border-color 420ms var(--avz-ease), background-color 420ms var(--avz-ease);
}

.avz-service::before {
	content: "›";
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	/* The design draws this ring clearly, not as a hint. */
	border: 1px solid rgba(218, 171, 112, 0.7);
	border-radius: 50%;
	color: var(--wp--preset--color--gold-light);
	font-size: 1.05rem;
	line-height: 1;
	/* The glyph's own side bearing sits it left of the ring's centre. */
	text-indent: 1px;
}

.avz-service:hover {
	border-color: rgba(218, 171, 112, 0.55);
	background: rgba(6, 26, 45, 0.8);
}

.avz-service__thumb {
	margin: 0;
}

/* The thumbnail sets the row's height and scales with the window. The editor
   writes a fixed 74x52 onto the image itself, so this has to shout it down. */
.avz-service__thumb,
.avz-service__thumb img {
	width: auto !important;
	height: clamp(52px, 7.4vh, 92px) !important;
	aspect-ratio: 10 / 7;
	object-fit: cover;
}

.avz-service__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(0.72rem, 0.924vw, 1.064rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
}

.avz-service__meta,
.avz-service__price {
	margin: 0;
	font-size: clamp(0.7rem, 0.861vw, 1.008rem);
	color: var(--wp--preset--color--muted);
	white-space: nowrap;
}

.avz-service__price {
	color: var(--wp--preset--color--champagne);
	padding-left: clamp(8px, 1vw, 16px);
	border-left: 1px solid rgba(218, 171, 112, 0.25);
}

.avz-service__action {
	margin: 0;
}

/* The ghost style carries a tint and a blur so it stays legible over the hero
   photography. Inside a service row it sits on the row's own panel, where the
   design wants a plain gold outline and gold lettering. */
.avz-service__action .wp-block-button.is-style-avz-ghost > .wp-block-button__link {
	min-width: clamp(84px, 7vw, 118px);
	background: transparent;
	backdrop-filter: none;
	border-color: rgba(218, 171, 112, 0.85);
	color: var(--wp--preset--color--gold-light);
	letter-spacing: 0.14em;
}

.avz-service__action .wp-block-button.is-style-avz-ghost > .wp-block-button__link:hover,
.avz-service__action .wp-block-button.is-style-avz-ghost > .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--gold-light);
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--gold-light);
}

/* Appointment panel */
.avz-appointment {
	/* The aside is a flex row, so without this the panel shrinks to its own
	   content and stops short of the right gutter the design runs it to. */
	width: 100%;
	/* The design sets the panel below the midline of its column. A shift
	   rather than a margin: the block's own margins are reset elsewhere. */
	translate: 0 clamp(18px, 7.5vh, 90px);
	display: flex;
	flex-direction: column;
	gap: clamp(8px, 1.2vh, 16px);
	background: rgba(2, 17, 33, 0.9);
	border: 1px solid rgba(218, 171, 112, 0.8);
	backdrop-filter: blur(8px);
	padding: clamp(16px, 2vw, 34px);
}

/* Team: the monogram belongs in the open space beside the heading, not
   behind the last card where it ran across the copy. */
.avz-stage--team .avz-watermark--right {
	right: 0;
	top: 2%;
	translate: none;
	width: clamp(150px, 15vw, 280px);
	opacity: 0.07;
}

/* Team: the heading block sits closer to the header, and the standfirst
   closer under the title, than the shared page head allows. */
.avz-stage--team .avz-page-head {
	padding-block: clamp(2px, 0.4vh, 8px) clamp(8px, 1.5vh, 20px);
}

.avz-stage--team .avz-page-head__title {
	margin-block: 0.04em 0.06em;
}

.avz-stage--team .avz-lede {
	margin-block: 0;
}

.avz-stage--services .avz-page-head__title {
	/* The design sets this title smaller than the other pages carry, and
	   sets the standfirst close under it. */
	font-size: clamp(1.5rem, 3.13vw, 3.4rem);
	margin-block-end: 0.06em;
}

.avz-stage--services .avz-lede {
	/* Close under the title; the air belongs below it, before the tabs. */
	margin-block: 0 clamp(10px, 1.9vh, 26px);
}

/* The design spaces the three steps well apart, so the panel stands as tall
   as the service list beside it, and sets them well clear of the standfirst. */
.avz-appointment .avz-steps {
	--avz-step-gap: clamp(18px, 4.1vh, 46px);
	margin-block-start: clamp(16px, 3.5vh, 40px);
}

/* A short gold tick under the title, close beneath it — the page's general
   rule is nearly three times this long and sits much lower. */
.avz-appointment .wp-block-separator.is-style-avz-rule {
	width: clamp(28px, 2.4vw, 42px);
	margin-block: 0;
}

.avz-appointment__title {
	margin: 0;
	font-size: clamp(1.1rem, 1.575vw, 1.904rem);
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
}

.avz-appointment__intro {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: clamp(0.8rem, 0.966vw, 1.098rem);
}

.avz-steps {
	/* Wide enough for PROFESSIONAL, the longest label, on one line. */
	--avz-step-label: clamp(96px, 9.6vw, 168px);
	list-style: none;
	counter-reset: avz-step;
	margin: clamp(6px, 1vh, 14px) 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	--avz-step-gap: clamp(10px, 1.6vh, 22px);
	gap: var(--avz-step-gap);
	position: relative;
	flex: 1 1 auto;
}

.avz-steps li {
	counter-increment: avz-step;
	display: grid;
	/* The design sets each step on one line: marker, label, rule, description.
	   The label track is fixed so all three rules fall on the same axis. */
	grid-template-columns: auto var(--avz-step-label) minmax(0, 1fr);
	align-items: center;
	column-gap: clamp(10px, 1.2vw, 18px);
	position: relative;
}

.avz-steps li::before {
	content: counter( avz-step );
	display: grid;
	place-items: center;
	width: clamp(26px, 2vw, 32px);
	height: clamp(26px, 2vw, 32px);
	border: 1px solid rgba(218, 171, 112, 0.6);
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(0.7rem, 0.861vw, 0.986rem);
	color: var(--wp--preset--color--gold-light);
}

/* The connecting line between step markers. */
.avz-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: calc(clamp(26px, 2vw, 32px) / 2);
	/* The marker is centred in the row now, so the line starts from its
	   bottom edge rather than from the top of the row. */
	top: calc(50% + clamp(26px, 2vw, 32px) / 2);
	bottom: calc(-1 * var(--avz-step-gap));
	width: 1px;
	background: rgba(218, 171, 112, 0.45);
}

.avz-steps strong {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(0.72rem, 0.882vw, 1.008rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	/* PROFESSIONAL must never break across two lines. */
	white-space: nowrap;
}

.avz-steps span {
	font-size: clamp(0.74rem, 0.903vw, 1.03rem);
	color: var(--wp--preset--color--muted);
	/* The rule is this element's own left border; the gap to the label comes
	   from the grid, so no margin of its own. */
	padding-left: clamp(10px, 1.2vw, 18px);
	border-left: 1px solid rgba(218, 171, 112, 0.25);
	align-self: stretch;
	display: flex;
	align-items: center;
}

.avz-steps--large {
	flex: 0 0 auto;
}

.avz-steps--large li::before {
	width: clamp(32px, 2.6vw, 40px);
	height: clamp(32px, 2.6vw, 40px);
}

.avz-steps--large li:not(:last-child)::after {
	left: calc(clamp(32px, 2.6vw, 40px) / 2);
	top: calc(50% + clamp(32px, 2.6vw, 40px) / 2);
}

/* Buttons of different type sizes should still share a baseline. Scoped to
   .avz-stage so these outrank WordPress's own flex-layout rules, which are
   printed after the theme's stylesheets. */
.avz-stage .avz-hero__actions,
.avz-stage .avz-about__actions,
.avz-stage .avz-book__actions {
	align-items: stretch;
}

/* One shared height whatever the type size inside. */
.avz-hero__actions .wp-block-button,
.avz-about__actions .wp-block-button,
.avz-book__actions .wp-block-button {
	display: flex;
}

.avz-hero__actions .wp-block-button__link,
.avz-about__actions .wp-block-button__link,
.avz-book__actions .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
}

.avz-appointment__cta {
	/* The design leaves a clear band between the last step and the button. */
	margin-block-start: clamp(14px, 2.9vh, 34px);
}

/* --------------------------------------------------------------------------
   Products (cream page)
   -------------------------------------------------------------------------- */

.avz-stage--products {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--ink);
}

.avz-stage--products .avz-eyebrow {
	color: #6b7682;
}

.avz-stage--products .avz-lede {
	color: #4a5562;
}

.avz-tabs--brands {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.avz-tabs--brands .avz-tabs__list {
	justify-content: center;
	align-items: stretch;
	border-bottom: 0;
	gap: 0 !important;
}

.avz-tab--brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	/* Both tabs stand the same height, so the active tint is the same block
	   as its neighbour rather than a taller one. */
	justify-content: center;
	gap: 0.2em;
	padding: 0.7em clamp(18px, 2.4vw, 42px);
	border-bottom: 0;
	border-right: 1px solid rgba(2, 17, 33, 0.15);
	color: #4a5562;
}

.avz-tab--brand:last-child {
	border-right: 0;
}

.avz-tab--brand strong {
	font-weight: 400;
	font-size: clamp(0.82rem, 1.155vw, 1.372rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
}

.avz-tab--brand span {
	font-size: clamp(0.53rem, 0.63vw, 0.714rem);
	letter-spacing: 0.14em;
}

.avz-tab--brand.is-active {
	background: linear-gradient(180deg, rgba(240, 213, 168, 0.45) 0%, rgba(240, 213, 168, 0.1) 100%);
	border-bottom: 0;
}

.avz-tabs--brands .avz-panel {
	flex: 1 1 auto;
	min-height: 0;
	justify-content: center;
	/* Keep the cards off the footer rule. */
	padding-block-end: clamp(10px, 2vh, 26px);
}

/* The design sets the heading, the standfirst and the brand tabs close
   together; the shared page head leaves more air than this page wants. */
.avz-stage--products .avz-page-head__title {
	margin-block-end: 0.08em;
}

.avz-stage--products .avz-lede {
	margin-block: 0;
}

.avz-stage--products .avz-page-head--tight {
	padding-block: clamp(4px, 0.8vh, 12px) clamp(4px, 0.7vh, 10px);
}

.avz-stage--products .avz-tabs__list {
	margin-bottom: clamp(6px, 1vh, 14px);
}

/* The design keeps the pair compact and centred rather than spread across
   the full width of the page. */
/* The track, not the slider, is what narrows — the arrows stay out at the
   edges of the page, as in the design. */
.avz-slider--products .avz-slider__track {
	max-width: clamp(520px, 44vw, 780px);
	margin-inline: auto;
}

/* Two cards in view, as in the design, with a wide channel between them.
   The column has to give back half the gap or the pair no longer fits one
   screenful and the second card is cut off. */
.avz-slider--products .avz-slider__track {
	--avz-card-gap: clamp(30px, 4vw, 76px);
	grid-auto-columns: calc(50% - var(--avz-card-gap) / 2);
	gap: var(--avz-card-gap);
}

/* The card used to size itself to the product photograph, which made the
   track taller than the panel — the panel centres its content, so the row
   spilled past the footer at both ends. Every box in the chain now takes its
   height from the panel, and the photograph is what gives way. */
.avz-slider--products,
.avz-slider--products .avz-slider__track,
.avz-slider--products .avz-product {
	height: 100%;
	min-height: 0;
}

.avz-slider--products .avz-product__media {
	flex: 1 1 0;
	min-height: 0;
}

.avz-slider--products .avz-product__media img {
	height: 100%;
	max-height: 100%;
	/* The supplied shots carry a lot of empty frame around the bottle, so the
	   card crops in on it. */
	scale: 1.28;
}

.avz-slider--products .avz-product__media {
	overflow: hidden;
}

/* The design draws these as bare chevrons at the edges of the page, not as
   the ringed buttons the dark sliders use. */
.avz-slider--products .avz-slider__arrow {
	border: 0;
	background: transparent;
	color: #a87846;
	width: clamp(56px, 5vw, 84px);
	height: clamp(56px, 5vw, 84px);
	/* Level with the middle of the product photograph, not of the whole card
	   — the name, price and button below would otherwise pull the chevrons
	   down past it. */
	align-self: center;
	margin-top: calc(-1 * clamp(74px, 11.7vh, 142px));
}

/* A larger, thinner chevron, in the gold the design uses. */
.avz-slider--products .avz-slider__arrow svg {
	width: 78%;
	height: 78%;
}

.avz-slider--products .avz-slider__arrow path {
	stroke-width: 1.2;
}

.avz-slider--products .avz-slider__arrow:hover {
	background: transparent;
	color: var(--wp--preset--color--ink);
}

/* The slider runs the full width so the arrows sit at the page edges; the
   dots belong under the pair of cards, which is centred, so they centre on
   the same axis. */
.avz-slider--products .avz-slider__dots {
	left: 50%;
	translate: -50% 0;
	justify-content: center;
}

.avz-slider--products .avz-dot {
	background: rgba(2, 17, 33, 0.2);
}

.avz-slider--products .avz-dot.is-active {
	background: var(--wp--preset--color--gold);
}

.avz-product {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(3px, 0.5vh, 7px);
	padding-inline: clamp(6px, 0.8vw, 14px);
}

.avz-product__media {
	margin: 0 0 clamp(4px, 0.8vh, 10px);
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.avz-product__media img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.avz-product__kind {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(0.58rem, 0.714vw, 0.806rem);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #54606e;
}

.avz-product__name {
	margin: 0;
	font-size: clamp(0.78rem, 0.998vw, 1.142rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	/* Bodoni is a didone — its hairlines all but vanish at this size on the
	   cream background, so the weight does the work, not the colour. */
	font-weight: 600;
}

.avz-product__price {
	margin: 0;
	font-size: clamp(0.8rem, 0.998vw, 1.12rem);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

/* The design's cart button hugs its label — roughly half the vertical
   padding the gold style carries elsewhere. */
.avz-product__action .wp-block-button__link {
	padding-block: 0.56em;
}

.avz-product__action {
	margin-top: clamp(5px, 0.9vh, 11px);
	width: 100%;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

/* The monogram sits in the open middle of this page, between the details
   and the enquiry panel, rather than behind the address copy. */
.avz-stage--contact .avz-watermark--center {
	left: 52%;
	width: clamp(240px, 26vw, 460px);
	opacity: 0.045;
}

/* The standfirst is set larger here than on the other pages, and breaks to
   two lines. */
.avz-stage--contact .avz-lede {
	font-size: clamp(0.95rem, 1.36vw, 1.6rem);
	max-width: 26ch;
	/* Close under the title; the space below it carries the separation. */
	margin-block: 0 clamp(6px, 1.4vh, 20px);
}

.avz-stage--contact .avz-page-head__title {
	margin-block-end: 0.04em;
}

.avz-contact {
	gap: 0 !important;
	margin: 0;
	align-items: stretch;
}

.avz-contact__details {
	display: flex;
	flex-direction: column;
	gap: clamp(4px, 0.8vh, 10px);
	min-height: 0;
}

.avz-contact__rows {
	display: flex;
	flex-direction: column;
	gap: clamp(8px, 1.3vh, 18px);
	margin-block: clamp(6px, 1.2vh, 16px);
}

.avz-contact__row {
	margin: 0;
	padding-left: clamp(30px, 2.6vw, 44px);
	position: relative;
	font-style: italic;
	font-size: clamp(0.82rem, 1.008vw, 1.142rem);
	line-height: 1.5;
	color: var(--wp--preset--color--white);
}

/* Line icons, as in the design. They are masks rather than glyphs so they
   take the gold from `background-color` and stay the same weight in every
   browser — the dingbats they replaced rendered differently on each. */
.avz-contact__row::before,
.avz-hours::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: clamp(19px, 1.55vw, 25px);
	height: clamp(19px, 1.55vw, 25px);
	background-color: var(--wp--preset--color--gold-light);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.avz-contact__row--address::before {
	-webkit-mask-image: url("../images/icons/pin.svg");
	mask-image: url("../images/icons/pin.svg");
}

.avz-contact__row--phone::before {
	-webkit-mask-image: url("../images/icons/phone.svg");
	mask-image: url("../images/icons/phone.svg");
}

.avz-contact__row--email::before {
	-webkit-mask-image: url("../images/icons/mail.svg");
	mask-image: url("../images/icons/mail.svg");
}

.avz-contact__row a {
	color: inherit;
}

.avz-contact__row--address .avz-link-arrow {
	margin-top: 0.5em;
	font-style: normal;
	/* Title case here, as in the design. */
	text-transform: none;
	letter-spacing: 0.06em;
	font-size: clamp(0.76rem, 0.94vw, 1.05rem);
}

.avz-contact__hours-title {
	font-size: clamp(0.95rem, 1.26vw, 1.456rem);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--white);
	margin: clamp(4px, 0.8vh, 10px) 0 0.4em;
}

.avz-hours {
	list-style: none;
	margin: 0;
	padding-left: clamp(30px, 2.6vw, 44px);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.18em;
}

.avz-hours::before {
	-webkit-mask-image: url("../images/icons/clock.svg");
	mask-image: url("../images/icons/clock.svg");
}

.avz-hours__row {
	font-style: italic;
	font-size: clamp(0.76rem, 0.924vw, 1.053rem);
	color: var(--wp--preset--color--white);
}

.avz-contact__spacer {
	pointer-events: none;
}

.avz-contact__formwrap {
	display: flex;
	align-items: center;
}

.avz-enquiry {
	width: 100%;
	background: rgba(2, 17, 33, 0.92);
	border: 1px solid rgba(218, 171, 112, 0.85);
	backdrop-filter: blur(8px);
	padding: clamp(14px, 1.8vw, 30px);
	display: flex;
	flex-direction: column;
	gap: clamp(5px, 0.8vh, 10px);
}

.avz-enquiry__title {
	margin: 0 0 0.3em;
	font-size: clamp(1.05rem, 1.575vw, 1.96rem);
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
}

.avz-enquiry__note {
	margin: 0;
	font-style: italic;
	font-size: clamp(0.68rem, 0.819vw, 0.918rem);
	color: var(--wp--preset--color--muted);
	line-height: 1.5;
}

/* Form */
.avz-form {
	display: flex;
	flex-direction: column;
	gap: clamp(6px, 1vh, 12px);
}

.avz-field {
	margin: 0;
}

.avz-field--trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.avz-form input[type="text"],
.avz-form input[type="email"],
.avz-form textarea {
	width: 100%;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(218, 171, 112, 0.35);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(0.82rem, 0.998vw, 1.12rem);
	padding: 0.78em 1em;
	transition: border-color 380ms var(--avz-ease), background-color 380ms var(--avz-ease);
}

.avz-form textarea {
	resize: vertical;
	min-height: clamp(70px, 12vh, 130px);
}

.avz-form input::placeholder,
.avz-form textarea::placeholder {
	color: rgba(183, 194, 206, 0.75);
}

.avz-form input:focus,
.avz-form textarea:focus {
	border-color: var(--wp--preset--color--gold-light);
	background: rgba(255, 255, 255, 0.07);
	outline: none;
}

.avz-form .avz-cta {
	width: 100%;
	border: 0;
	cursor: pointer;
	font-size: clamp(0.76rem, 0.924vw, 1.064rem);
}

.avz-form__status {
	margin: 0 0 0.4em;
	padding: 0.7em 1em;
	font-size: clamp(0.76rem, 0.903vw, 1.008rem);
	border: 1px solid;
}

.avz-form__status--ok {
	border-color: rgba(218, 171, 112, 0.6);
	color: var(--wp--preset--color--champagne);
	background: rgba(218, 171, 112, 0.12);
}

.avz-form__status--error {
	border-color: rgba(220, 120, 120, 0.6);
	color: #f0b4b4;
	background: rgba(220, 120, 120, 0.12);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

/* The design sets this title on one line; it is longer than the other page
   titles, so it takes a size of its own. */
.avz-stage--about .avz-page-head__title {
	font-size: clamp(1.5rem, 2.58vw, 3rem);
}

/* The monogram sits low and right on this page so it never runs through
   the story copy. */
.avz-stage--about .avz-watermark--right {
	top: auto;
	bottom: calc(var(--avz-gutter) * -0.5);
	translate: none;
	width: clamp(180px, 18vw, 340px);
	opacity: 0.035;
}

.avz-about {
	gap: clamp(20px, 3.4vw, 72px) !important;
	margin: 0;
	/* The columns stretch so the portrait can run the stage's full height. */
	align-items: stretch !important;
	height: 100%;
}

/* The portrait column: full height, the image cropped to whatever shape the
   column ends up being. */
.avz-about__media {
	position: relative;
	min-height: 0;
	display: flex;
	padding: 0;
}

.avz-about__portrait {
	margin: 0;
	flex: 1 1 auto;
	min-height: 0;
}

.avz-about__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* The design runs this frame in black and white. */
	filter: grayscale(1);
}

.avz-about__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(2px, 0.5vh, 8px);
	min-height: 0;
}

/* The founder's name, under the page title and above the story. */
.avz-founder__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(0.96rem, 1.26vw, 1.456rem);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-light);
}

.avz-founder__story {
	display: flex;
	flex-direction: column;
	gap: clamp(6px, 1.1vh, 15px);
	margin-block: clamp(8px, 1.6vh, 22px);
}

.avz-founder__para {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-style: italic;
	font-size: clamp(0.78rem, 0.966vw, 1.1rem);
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
	max-width: 68ch;
}

/* --------------------------------------------------------------------------
   Book
   -------------------------------------------------------------------------- */

.avz-stage--book {
	padding: 0;
}

.avz-book {
	gap: 0 !important;
	margin: 0;
	height: 100%;
	align-items: stretch;
}

.avz-book__media {
	padding: 0;
	overflow: hidden;
}

.avz-book__shot {
	margin: 0;
	height: 100%;
}

.avz-book__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.avz-book__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(5px, 0.9vh, 12px);
	padding: clamp(18px, 3vh, 48px) var(--avz-gutter);
	min-height: 0;
}

/* Guidance for whoever edits this page — shown on the editor canvas only
   (editor.css brings it back), never to visitors. Delete the paragraph once
   the real booking embed is in place. */
.avz-book__note {
	display: none;
	margin: 0;
	font-style: italic;
	font-size: clamp(0.72rem, 0.861vw, 0.963rem);
	color: var(--wp--preset--color--muted);
	border-left: 1px solid rgba(218, 171, 112, 0.35);
	padding-left: 1em;
}

.avz-book__actions {
	margin-top: clamp(8px, 1.4vh, 20px);
	gap: clamp(8px, 1vw, 14px);
}
