/**
 * Zakariye-Web — section and component styles.
 *
 * Global colour, typography and spacing come from theme.json so that they stay
 * editable in Global Styles. This file only carries layout and decoration that
 * theme.json cannot express. Everything is scoped under a `zw-` prefix so it
 * cannot leak into other plugins' or core's markup.
 *
 * Sections:
 *   1.  Tokens and base
 *   2.  Header
 *   3.  Hero
 *   4.  Statistics panel
 *   5.  Products
 *   6.  Subscribe
 *   7.  Blog
 *   8.  Appointment
 *   9.  Footer
 *   10. Shared utilities
 *   11. Reduced motion
 */

/* ------------------------------------------------------------------ *
 * 1. Tokens and base
 * ------------------------------------------------------------------ */

:root {
	--zw-header-h: 5.5rem;
	--zw-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--zw-dur: 150ms;
	--zw-ring: rgba(37, 63, 134, 0.1);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--zw-header-h) + 1rem);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--navy-deep);
}

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

/* Main content clears the fixed header. A hero as the first child pulls back
 * up underneath it so its background paints behind the translucent bar,
 * exactly as the source template does. */
.zw-main {
	/* WordPress gives every top-level site block a blockGap top margin via a
	 * zero-specificity :where() rule. Main must sit flush so the header offset
	 * below is exact; any class selector outranks that rule. */
	margin-block-start: 0;
	padding-top: var(--zw-header-h);
}

/* The hero may sit directly in main, or inside post-content's wrapper when the
 * front page is a static page — match either so it always tucks under the bar. */
.zw-main > .zw-hero:first-child,
.zw-main > :first-child > .zw-hero:first-child {
	margin-top: calc(-1 * var(--zw-header-h));
	padding-top: calc(var(--zw-header-h) + 2.5rem);
}

/* ------------------------------------------------------------------ *
 * 2. Header
 * ------------------------------------------------------------------ */

.zw-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 40;
	padding: 0.75rem 0.75rem 0;
}

.admin-bar .zw-header {
	top: 46px;
}

@media (min-width: 783px) {
	.admin-bar .zw-header {
		top: 32px;
	}
}

@media (min-width: 782px) {
	.zw-header {
		padding: 1rem 1.5rem 0;
	}
}

.zw-header__bar {
	margin-inline: auto;
	display: flex;
	height: 4rem;
	max-width: 72rem;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-radius: 999px;
	border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.6);
	padding-inline: 0.5rem 0.5rem;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: background-color 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out;
}

/* Inner pages have a white canvas, so the translucent home-page bar needs
 * an edge to remain visible as the same rounded navbar. */
body:not(.home) .zw-header__bar {
	border-color: var(--wp--preset--color--mist);
	background: var(--wp--preset--color--paper);
	box-shadow: 0 8px 28px -20px rgba(26, 47, 104, 0.35);
}

@media (min-width: 782px) {
	.zw-header__bar {
		padding-inline: 1.5rem 0.5rem;
	}
}

.zw-header.is-scrolled .zw-header__bar,
.zw-header.is-menu-open .zw-header__bar {
	border-color: var(--zw-ring);
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 12px 32px -18px rgba(26, 47, 104, 0.45);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}

/* Logo */
.zw-header .wp-block-site-logo {
	flex-shrink: 0;
	line-height: 0;
}

.zw-header .wp-block-site-logo img {
	height: 2.25rem;
	width: auto;
}

@media (min-width: 782px) {
	.zw-header .wp-block-site-logo img {
		height: 2.5rem;
	}
}

/* Navigation. Core's Navigation block shows a hamburger below its own
 * breakpoint and the inline list above it, so the wrapper must stay visible
 * at every width; only the desktop pill treatment is media-scoped. */
@media (min-width: 782px) {
	.zw-header__nav .wp-block-navigation__container {
		align-items: center;
		gap: 0.25rem;
		border-radius: 999px;
		background: var(--wp--preset--color--mist);
		padding: 0.25rem;
	}

	.zw-header__nav .wp-block-navigation-item__content {
		display: block;
		border-radius: 999px;
		padding: 0.5rem 1rem;
		color: var(--wp--preset--color--muted);
		font-weight: 600;
		transition: color var(--zw-dur) var(--zw-ease), background-color var(--zw-dur) var(--zw-ease);
	}

	.zw-header__nav .wp-block-navigation-item__content:hover {
		color: var(--wp--preset--color--ink);
		text-decoration: none;
	}

	/* Active section — set by assets/js/interactions.js, plus WP's own
	 * current-menu-item class for real page links. */
	.zw-header__nav .wp-block-navigation-item.is-zw-active > .wp-block-navigation-item__content,
	.zw-header__nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
		background: var(--wp--preset--color--paper);
		color: var(--wp--preset--color--ink);
		box-shadow: 0 1px 2px rgba(26, 47, 104, 0.08);
	}
}

.zw-header__actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 0.75rem;
}

.zw-header__actions > * {
	margin: 0;
}

.zw-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--zw-ring);
	border-radius: 50%;
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.zw-cart-link:hover {
	background: var(--wp--preset--color--brand-soft);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.zw-cart-link svg {
	width: 1.25rem;
	height: 1.25rem;
}

.zw-cart-link__count {
	position: absolute;
	top: -0.2rem;
	right: -0.3rem;
	min-width: 1.125rem;
	height: 1.125rem;
	padding-inline: 0.2rem;
	border-radius: 1rem;
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1.125rem;
	text-align: center;
}

.zw-product-setup,
.zw-product-unavailable {
	flex-basis: 100%;
	font-size: 0.875rem;
	line-height: 1.5;
}

.zw-product-setup {
	padding: 0.75rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0.5rem;
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--ink);
}

/* The "Book appointment" pill with its brand-coloured arrow chip */
.is-style-zw-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
	padding-block: 0.75rem;
	padding-inline: 1.25rem 0.75rem;
	font-size: var(--wp--preset--font-size--small);
}

.is-style-zw-arrow .wp-block-button__link::after {
	content: "";
	display: block;
	height: 1.5rem;
	width: 1.5rem;
	flex-shrink: 0;
	border-radius: 999px;
	background-color: var(--wp--preset--color--brand);
	background-image: url("../images/arrow-right.svg?v=green-2");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 0.875rem;
	transition: transform var(--zw-dur) var(--zw-ease);
}

.is-style-zw-arrow .wp-block-button__link:hover::after {
	transform: translateX(2px);
}

.zw-header .is-style-zw-arrow {
	display: none;
}

@media (min-width: 1024px) {
	.zw-header .is-style-zw-arrow {
		display: block;
	}
}

/* Core Navigation's mobile overlay, restyled to match the source panel */
@media (max-width: 781px) {
	.zw-header__nav .wp-block-navigation__responsive-container-open {
		display: flex;
		height: 3rem;
		width: 3rem;
		align-items: center;
		justify-content: center;
		border-radius: 999px;
		background: var(--wp--preset--color--navy);
		color: var(--wp--preset--color--paper);
	}

	.zw-header__nav .wp-block-navigation__responsive-container.is-menu-open {
		padding: 1rem;
		background-color: rgba(26, 47, 104, 0.3);
		-webkit-backdrop-filter: blur(4px);
		backdrop-filter: blur(4px);
	}

	.zw-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
		margin-top: calc(var(--zw-header-h) - 0.5rem);
		border-radius: 1.75rem;
		background: var(--wp--preset--color--paper);
		padding: 0.75rem;
		box-shadow: 0 24px 48px -20px rgba(26, 47, 104, 0.5);
	}

	.zw-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		gap: 0;
	}

	.zw-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		border-radius: 1rem;
		padding: 1rem;
		font-family: var(--wp--preset--font-family--display);
		font-size: 1.25rem;
		font-weight: 700;
		color: var(--wp--preset--color--ink);
	}

	.zw-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.is-zw-active > .wp-block-navigation-item__content,
	.zw-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
		background: var(--wp--preset--color--mist);
	}

	.zw-header__nav .wp-block-navigation__responsive-container-close {
		top: 1.75rem;
		right: 1.75rem;
		color: var(--wp--preset--color--ink);
	}
}

/* ------------------------------------------------------------------ *
 * 3. Hero
 * ------------------------------------------------------------------ */

.zw-hero {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--mist);
}

.zw-hero__inner {
	position: relative;
	margin-inline: auto;
	display: grid;
	max-width: 72rem;
	align-items: center;
	gap: 2.5rem;
}

@media (min-width: 782px) {
	.zw-hero__inner {
		grid-template-columns: 1.15fr 1fr;
	}
}

.zw-hero__eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

.zw-hero__name .wp-block-heading,
.zw-hero__name {
	margin-block: 0.5rem 0;
}

.zw-hero__lede {
	max-width: 28rem;
	margin-top: 1.75rem;
	line-height: 1.65;
	color: var(--wp--preset--color--muted);
}

.zw-hero__actions {
	margin-top: 2.25rem;
}

.zw-hero__social {
	margin-top: 2.5rem;
}

.zw-hero__media {
	position: relative;
	margin-inline: auto;
	display: flex;
	width: 100%;
	max-width: 32rem;
	align-items: center;
	justify-content: center;
}

.zw-hero__media img {
	height: 22rem;
	width: 100%;
	border-radius: 2rem;
	object-fit: cover;
	object-position: 48% top;
}

@media (min-width: 640px) {
	.zw-hero__media img {
		height: 26rem;
	}
}

@media (min-width: 1024px) {
	.zw-hero__media img {
		height: 31rem;
	}
}

/* Floating "N business PDFs" card */
.zw-hero__badge {
	display: none;
}

@media (min-width: 640px) {
	.zw-hero__badge {
		position: absolute;
		bottom: 4rem;
		left: -0.75rem;
		display: flex;
		align-items: center;
		gap: 0.75rem;
		border-radius: 1rem;
		background: var(--wp--preset--color--paper);
		padding: 0.75rem 1.25rem 0.75rem 0.75rem;
		box-shadow: var(--wp--preset--shadow--float);
		transition: transform var(--zw-dur) var(--zw-ease);
	}

	.zw-hero__badge:hover {
		transform: translateY(-2px);
	}
}

@media (min-width: 782px) {
	.zw-hero__badge {
		left: -2rem;
	}
}

.zw-hero__badge-title {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}

.zw-hero__badge-note {
	display: block;
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
}

/* ------------------------------------------------------------------ *
 * 4. Statistics panel
 * ------------------------------------------------------------------ */

.zw-stats {
	position: relative;
}

/* Top half keeps the hero's mist so the panel straddles the colour change */
.zw-stats::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 50%;
	background: var(--wp--preset--color--mist);
}

.zw-stats__panel {
	position: relative;
	margin-inline: auto;
	max-width: 72rem;
	overflow: hidden;
	border-radius: 2rem;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--paper);
	box-shadow: var(--wp--preset--shadow--panel);
}

.zw-stats__grid {
	position: relative;
	display: grid;
}

@media (min-width: 782px) {
	.zw-stats__grid {
		grid-template-columns: 1.2fr 1fr 1fr;
	}
}

.zw-stat {
	padding: 1.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.zw-stat:last-child {
	border-bottom: 0;
}

@media (min-width: 782px) {
	.zw-stat {
		padding: 2.5rem;
		border-bottom: 0;
		border-right: 1px solid rgba(255, 255, 255, 0.1);
	}

	.zw-stat:last-child {
		border-right: 0;
	}
}

.zw-stat--lead .zw-stat__value {
	font-size: var(--wp--preset--font-size--xxx-large);
}

.zw-stat__value {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	margin: 0;
	color: var(--wp--preset--color--paper);
}

.zw-stat__label {
	margin-top: 0.25rem;
	color: rgba(255, 255, 255, 0.7);
}

/* Secondary stats sit icon-beside-text on mobile, stacked on desktop */
.zw-stat--compact {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

@media (min-width: 782px) {
	.zw-stat--compact {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-end;
	}
}

.zw-stat__icon {
	display: flex;
	height: 2.75rem;
	width: 2.75rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--brand);
}

.zw-stat--lead .zw-stat__icon {
	height: 3rem;
	width: 3rem;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--navy-deep);
}

.zw-stat__icon svg {
	height: 1.25rem;
	width: 1.25rem;
	fill: currentColor;
}

/* ------------------------------------------------------------------ *
 * 5. Products
 * ------------------------------------------------------------------ */

.zw-section {
	margin-inline: auto;
	max-width: 72rem;
	scroll-margin-top: calc(var(--zw-header-h) + 1rem);
}

.zw-section__head {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.5rem;
}

@media (min-width: 782px) {
	.zw-section__head {
		flex-direction: row;
		align-items: flex-end;
	}
}

.zw-section__title {
	color: var(--wp--preset--color--brand-deep);
}

.zw-section__lede {
	margin-top: 1rem;
	max-width: 36rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

/* Perk chips */
.zw-perks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.zw-perks li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--mist);
	padding: 0.5rem 0.875rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--ink);
}

.zw-perks svg {
	height: 1rem;
	width: 1rem;
	color: var(--wp--preset--color--brand-deep);
}

/* Products archive: a compact introduction with one consistent left edge.
 * Body selectors also cover templates previously saved in the Site Editor. */
.post-type-archive-zakariye_product .zw-main > .zw-section,
.zw-product-archive {
	padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(4rem, 7vw, 6rem) !important;
}

.post-type-archive-zakariye_product .zw-main .zw-section__title,
.zw-product-archive .zw-section__title {
	max-width: none;
	margin: 0;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: -0.045em;
	text-align: left;
	color: var(--wp--preset--color--ink);
}

.post-type-archive-zakariye_product .zw-main .zw-section__lede,
.zw-product-archive .zw-section__lede {
	max-width: 40rem;
	margin: 1rem 0 0 !important;
	font-size: clamp(1rem, 1.3vw, 1.125rem);
	line-height: 1.7;
	text-align: left;
	color: var(--wp--preset--color--muted);
}

.post-type-archive-zakariye_product .zw-main .wp-block-query,
.zw-product-archive > .wp-block-query {
	margin-top: 2.5rem !important;
}

/* Featured product */
.zw-product-featured {
	display: grid;
	gap: 0.5rem;
	overflow: hidden;
	border-radius: 2rem;
	background: var(--wp--preset--color--navy);
	padding: 0.75rem;
	color: var(--wp--preset--color--paper);
}

@media (min-width: 782px) {
	.zw-product-featured {
		grid-template-columns: 0.9fr 1.1fr;
		padding: 1rem;
	}
}

.zw-product-featured .wp-block-post-featured-image {
	margin: 0;
	position: relative;
	border-radius: 1.5rem;
	overflow: hidden;
	background: var(--wp--preset--color--navy-deep);
}

.zw-product-featured .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 3 / 4;
}

.zw-product-featured__body {
	display: flex;
	flex-direction: column;
	padding: 1rem;
}

@media (min-width: 782px) {
	.zw-product-featured__body {
		padding: 2rem;
	}
}

@media (min-width: 1024px) {
	.zw-product-featured__body {
		padding: 2.5rem;
	}
}

.zw-product-featured__body .wp-block-post-title {
	margin-top: 0.75rem;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1.15;
	color: var(--wp--preset--color--paper);
}

.zw-product-featured__body .wp-block-post-title a {
	color: inherit;
}

.zw-product-featured__foot {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1.5rem;
}

@media (min-width: 640px) {
	.zw-product-featured__foot {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.zw-badge {
	position: absolute;
	left: 1rem;
	top: 1rem;
	z-index: 1;
	border-radius: 999px;
	background: var(--wp--preset--color--brand);
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--wp--preset--color--navy-deep);
}

.zw-eyebrow-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: rgba(255, 255, 255, 0.6);
}

.zw-includes {
	margin: 1.5rem 0 0;
	list-style: none;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.zw-includes li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: rgba(255, 255, 255, 0.85);
}

.zw-includes li::before {
	content: "";
	display: block;
	height: 1.25rem;
	width: 1.25rem;
	flex-shrink: 0;
	border-radius: 999px;
	background-color: rgba(140, 198, 62, 0.2);
	background-image: url("../images/check.svg?v=green-2");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 0.75rem;
}

/* Product grid — the list owns spacing; WordPress flow margins must not
 * stagger the second and subsequent cards. Auto-fit also balances the three
 * supporting guides on Home without leaving an empty fourth column. */
.zw-product-grid.wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	align-items: stretch;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.zw-product-grid.wp-block-post-template > li {
	display: flex;
	min-width: 0;
	margin: 0;
}

.zw-product-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	border: 1px solid var(--zw-ring);
	border-radius: 1.25rem;
	background: var(--wp--preset--color--paper);
	padding: 0.625rem;
	box-shadow: 0 3px 12px rgba(7, 26, 15, 0.025);
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.zw-product-card:hover,
.zw-product-card:focus-within {
	border-color: rgba(31, 138, 76, 0.35);
	box-shadow: 0 10px 28px -12px rgba(7, 26, 15, 0.2);
}

.zw-product-card > * {
	margin-block-start: 0;
}

.zw-product-card .wp-block-post-featured-image {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 0.875rem;
	background: var(--wp--preset--color--mist);
	line-height: 0;
}

.zw-product-card .wp-block-post-featured-image a {
	display: block;
}

.zw-product-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

/* Titles use the open space in the artwork instead of a second white card. */
.zw-product-cover__title {
	position: absolute;
	z-index: 2;
	top: 5%;
	left: 7%;
	right: 7%;
	display: block;
	box-sizing: border-box;
	margin: 0;
	color: #fff;
	font-size: clamp(0.85rem, 1.2vw, 1.1rem);
	font-weight: 750;
	line-height: 1.22;
	letter-spacing: -0.015em;
	pointer-events: none;
}

.zw-product-cover__title--light {
	color: #071a0f;
}

.zw-product-cover__title small {
	display: block;
	margin-bottom: 0.45rem;
	color: #b6ebf5;
	font-size: 0.56em;
	font-weight: 650;
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

.zw-product-cover__title--light small {
	color: #266d82;
}

.zw-product-featured .zw-product-cover__title {
	top: 5%;
	font-size: clamp(1rem, 1.6vw, 1.375rem);
}

.zw-product-featured__media > .zw-badge {
	top: auto;
	bottom: 1rem;
}

.zw-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 1.25rem;
	margin: 0;
	padding: 1.25rem 0.5rem 0.5rem;
}

.zw-product-card .wp-block-post-title {
	margin: 0;
	min-height: 2.7em;
	font-size: 1.0625rem;
	font-weight: 650;
	line-height: 1.35;
	letter-spacing: -0.015em;
	overflow-wrap: anywhere;
	color: var(--wp--preset--color--ink);
}

.zw-product-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

.zw-product-card__foot > * {
	margin: 0;
}

.zw-product-card .zw-buy {
	min-height: 2.75rem;
	border-radius: 0.65rem;
	padding-inline: 0.85rem;
	font-size: 0.8125rem;
}

.zw-product-card .zw-buy__label {
	display: inline;
}

.zw-product-card .zw-buy svg {
	order: 1;
}

.zw-product-card .zw-price {
	font-size: 1.25rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 540px) {
	.zw-product-grid.wp-block-post-template {
		gap: 1.25rem;
	}

	.zw-product-cover__title {
		font-size: 1.125rem;
	}
}

/* Price (zakariye-web/product-price) */
.zw-price {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	color: var(--wp--preset--color--ink);
	line-height: 1;
}

.zw-price--small {
	font-size: 1.125rem;
}

@media (min-width: 782px) {
	.zw-price--small {
		font-size: 1.25rem;
	}
}

.zw-price--large {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	color: var(--wp--preset--color--paper);
}

.single-zakariye_product .zw-price--large {
	color: var(--wp--preset--color--ink);
}

/* Buy button (zakariye-web/product-buy-button) */
.zw-buy {
	display: inline-flex;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	white-space: nowrap;
	border-radius: 999px;
	border: 0;
	background: var(--wp--preset--color--navy);
	padding-inline: 0.75rem;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--paper);
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--zw-dur) var(--zw-ease), transform var(--zw-dur) var(--zw-ease);
}

@media (min-width: 782px) {
	.zw-buy {
		padding-inline: 1rem;
	}
}

.zw-buy:hover {
	background: var(--wp--preset--color--navy-deep);
	color: var(--wp--preset--color--paper);
	text-decoration: none;
}

.zw-buy:active {
	transform: scale(0.97);
}

.zw-buy svg {
	height: 1rem;
	width: 1rem;
	flex-shrink: 0;
}

.zw-buy__label {
	display: none;
}

@media (min-width: 640px) {
	.zw-buy__label {
		display: inline;
	}
}

.zw-buy--large {
	height: auto;
	padding: 1rem 1.75rem;
	font-size: var(--wp--preset--font-size--medium);
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--navy-deep);
}

.zw-buy--large:hover {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--navy-deep);
}

.zw-buy--large .zw-buy__label {
	display: inline;
}

.zw-buy--large svg {
	height: 1.25rem;
	width: 1.25rem;
}

/* Shown in the editor when a product has no checkout URL yet */
.zw-buy.is-placeholder {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ------------------------------------------------------------------ *
 * 6. Subscribe
 * ------------------------------------------------------------------ */

.zw-subscribe {
	background: var(--wp--preset--color--mist);
}

.zw-subscribe__inner {
	margin-inline: auto;
	max-width: 42rem;
	text-align: center;
}

.zw-subscribe__avatar,
.wp-block-image.zw-subscribe__avatar-wrap img {
	margin-inline: auto;
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
	aspect-ratio: 1;
	background: var(--wp--preset--color--paper);
	box-shadow: 0 0 0 4px var(--wp--preset--color--paper);
	object-fit: cover;
}

@media (min-width: 782px) {
	.zw-subscribe__avatar,
.wp-block-image.zw-subscribe__avatar-wrap img {
		width: 6rem;
		height: 6rem;
	}
}

.zw-subscribe__lede {
	margin-inline: auto;
	margin-top: 0.75rem;
	max-width: 28rem;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
}

.zw-form {
	margin-top: 2rem;
}

.zw-form__row {
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.zw-form__row {
		grid-template-columns: 1fr 1fr auto;
	}
}

.zw-form input[type="text"],
.zw-form input[type="email"] {
	/* Without this the padding and border are added on top of width:100%,
	 * pushing the field wider than its column and scrolling the page sideways. */
	box-sizing: border-box;
	width: 100%;
	border-radius: 999px;
	border: 2px solid transparent;
	background: var(--wp--preset--color--paper);
	padding: 0.875rem 1.25rem;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--ink);
	transition: border-color var(--zw-dur) var(--zw-ease), box-shadow var(--zw-dur) var(--zw-ease);
}

.zw-form input::placeholder {
	color: rgba(89, 100, 93, 0.6);
}

.zw-form input:focus {
	outline: none;
	border-color: var(--wp--preset--color--brand-deep);
	box-shadow: 0 0 0 4px rgba(140, 198, 62, 0.15);
}

.zw-form input[aria-invalid="true"] {
	border-color: #dc2626;
}

.zw-form__submit {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--navy);
	padding: 0.875rem 1.5rem;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	color: var(--wp--preset--color--paper);
	cursor: pointer;
	transition: background-color var(--zw-dur) var(--zw-ease), transform var(--zw-dur) var(--zw-ease);
}

.zw-form__submit:hover:not(:disabled) {
	background: var(--wp--preset--color--navy-deep);
}

.zw-form__submit:active:not(:disabled) {
	transform: scale(0.98);
}

.zw-form__submit:disabled {
	opacity: 0.7;
	cursor: progress;
}

.zw-form__submit svg {
	height: 1rem;
	width: 1rem;
}

.zw-form__spinner {
	height: 1.25rem;
	width: 1.25rem;
	animation: zw-spin 900ms linear infinite;
}

@keyframes zw-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Honeypot — visually and programmatically hidden from people, not from bots */
.zw-form__hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.zw-form__note {
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.zw-form__note--error {
	color: #dc2626;
}

.zw-form__success {
	margin-inline: auto;
	margin-top: 2rem;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	border-radius: 999px;
	background: var(--wp--preset--color--paper);
	padding: 0.5rem 1.5rem 0.5rem 0.5rem;
	text-align: left;
}

.zw-form__form[hidden],
.zw-form__success[hidden] {
	display: none !important;
}

.zw-form__success-icon {
	display: flex;
	height: 2.5rem;
	width: 2.5rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--paper);
}

.zw-form__success-text {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

/* ------------------------------------------------------------------ *
 * 7. Blog
 * ------------------------------------------------------------------ */

.zw-blog__layout {
	display: grid;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.zw-blog__layout {
		grid-template-columns: 1.4fr 1fr;
	}
}

.zw-blog-featured .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
	border-radius: 1.5rem;
}

.zw-blog-featured .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 300ms var(--zw-ease);
}

.zw-blog-featured:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.zw-blog-featured .wp-block-post-title {
	margin-top: 0.75rem;
	font-size: clamp(1.5rem, 2.5vw, 1.875rem);
}

.zw-blog-list.wp-block-post-template {
	display: grid;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.zw-blog-item {
	display: grid;
	grid-template-columns: 120px 1fr;
	align-items: start;
	gap: 1rem;
}

@media (min-width: 640px) {
	.zw-blog-item {
		grid-template-columns: 180px 1fr;
	}
}

@media (min-width: 1024px) {
	.zw-blog-item {
		grid-template-columns: 1fr;
	}
}

.zw-blog-item .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
	border-radius: 1rem;
}

.zw-blog-item .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 300ms var(--zw-ease);
}

@media (min-width: 1024px) {
	.zw-blog-item .wp-block-post-featured-image img {
		aspect-ratio: 16 / 8;
	}
}

.zw-blog-item:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.zw-blog-item .wp-block-post-title {
	margin-top: 0.5rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.35;
}

/* Category pills */
.is-style-zw-pill .wp-block-post-terms__separator,
.is-style-zw-pill-soft .wp-block-post-terms__separator {
	display: none;
}

.is-style-zw-pill a {
	display: inline-block;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--navy);
	padding: 0.25rem 0.75rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--paper);
}

.is-style-zw-pill a:hover {
	background: var(--wp--preset--color--navy-deep);
	color: var(--wp--preset--color--paper);
	text-decoration: none;
}

.is-style-zw-pill-soft a {
	background: var(--wp--preset--color--brand-soft);
	padding: 0.125rem 0.625rem;
	font-size: 0.75rem;
	color: var(--wp--preset--color--ink);
}

.is-style-zw-pill-soft a:hover {
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--navy-deep);
}

.zw-readtime {
	margin-top: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/* Single article navigation: the label and title share one large link. */
.zw-article-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 2rem;
}

.zw-article-nav > .wp-block-post-navigation-link {
	min-width: 0;
	margin: 0;
}

.zw-article-nav > .wp-block-post-navigation-link:empty {
	display: none;
}

.zw-article-nav > .post-navigation-link-next {
	grid-column: 2;
}

.zw-article-nav .wp-block-post-navigation-link a {
	position: relative;
	display: flex;
	min-height: 7.5rem;
	flex-direction: column;
	justify-content: center;
	gap: 0.5rem;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 1.5rem;
	background: var(--wp--preset--color--paper);
	padding: 1.5rem 5rem 1.5rem 1.5rem;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.125rem, 1.8vw, 1.375rem);
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	transition: border-color var(--zw-dur) var(--zw-ease), background-color var(--zw-dur) var(--zw-ease), box-shadow var(--zw-dur) var(--zw-ease);
}

.zw-article-nav .post-navigation-link-previous a {
	padding-inline: 5rem 1.5rem;
}

.zw-article-nav .post-navigation-link__label {
	display: block;
	color: var(--wp--preset--color--brand-deep);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.zw-article-nav .post-navigation-link__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.zw-article-nav .wp-block-post-navigation-link a::after {
	content: "";
	position: absolute;
	right: 1.5rem;
	top: 50%;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--brand) url("../images/arrow-right.svg?v=green-2") center / 1.125rem no-repeat;
	transform: translateY(-50%);
	transition: transform var(--zw-dur) var(--zw-ease);
}

.zw-article-nav .post-navigation-link-previous a::after {
	left: 1.5rem;
	right: auto;
	transform: translateY(-50%) rotate(180deg);
}

.zw-article-nav .wp-block-post-navigation-link a:hover {
	border-color: var(--wp--preset--color--brand);
	background: var(--wp--preset--color--mist);
	box-shadow: 0 10px 24px -18px rgba(26, 47, 104, 0.4);
}

.zw-article-nav .post-navigation-link-next a:hover::after {
	transform: translate(3px, -50%);
}

.zw-article-nav .post-navigation-link-previous a:hover::after {
	transform: translate(-3px, -50%) rotate(180deg);
}

.zw-article-nav .wp-block-post-navigation-link a:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-deep);
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.zw-article-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.zw-article-nav > .post-navigation-link-next {
		grid-column: 1;
	}
}

/* ------------------------------------------------------------------ *
 * 8. Appointment
 * ------------------------------------------------------------------ */

.zw-appointment {
	position: relative;
	margin-inline: auto;
	max-width: 72rem;
	overflow: hidden;
	border-radius: 2rem;
	background: var(--wp--preset--color--navy);
	padding: 3rem 1.5rem;
	scroll-margin-top: calc(var(--zw-header-h) + 1rem);
}

@media (min-width: 782px) {
	.zw-appointment {
		padding: 4rem 3.5rem;
	}
}

.zw-appointment__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

@media (min-width: 782px) {
	.zw-appointment__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 3rem;
	}
}

.zw-appointment__title {
	max-width: 36rem;
	color: var(--wp--preset--color--brand);
	font-size: clamp(1.875rem, 4vw, 2.75rem);
	line-height: 1.1;
}

.zw-appointment__lede {
	margin-top: 1rem;
	font-size: var(--wp--preset--font-size--large);
	color: rgba(255, 255, 255, 0.75);
}

/* Large brand pill with navy arrow chip */
.is-style-zw-chip .wp-block-button__link {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	white-space: nowrap;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--navy-deep);
	padding: 0.5rem 0.5rem 0.5rem 1.75rem;
}

.is-style-zw-chip .wp-block-button__link:hover {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--navy-deep);
}

.is-style-zw-chip .wp-block-button__link::after {
	content: "";
	display: block;
	height: 2.75rem;
	width: 2.75rem;
	flex-shrink: 0;
	border-radius: 999px;
	background-color: var(--wp--preset--color--navy);
	background-image: url("../images/arrow-right-light.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 1rem;
	transition: transform var(--zw-dur) var(--zw-ease);
}

.is-style-zw-chip .wp-block-button__link:hover::after {
	transform: translateX(2px);
}

/* ------------------------------------------------------------------ *
 * 9. Footer
 * ------------------------------------------------------------------ */

.zw-footer {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--paper);
}

.zw-footer__inner {
	position: relative;
	margin-inline: auto;
	max-width: 72rem;
}

.zw-footer__grid {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 782px) {
	.zw-footer__grid {
		grid-template-columns: 1.5fr 1fr 1fr;
	}
}

.zw-footer .wp-block-site-logo img {
	height: 3rem;
	width: auto;
	filter: brightness(0) invert(1);
}

.zw-footer__about {
	margin-top: 1rem;
	max-width: 20rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.65);
}

.zw-footer__heading {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--brand);
}

.zw-footer__nav .wp-block-navigation__container {
	flex-direction: column;
	gap: 0.75rem;
	align-items: flex-start;
}

.zw-footer__nav .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	color: rgba(255, 255, 255, 0.7);
	transition: color var(--zw-dur) var(--zw-ease);
}

.zw-footer__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--paper);
	text-decoration: none;
}

.zw-footer__bar {
	margin-top: 3rem;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1.5rem;
	font-size: var(--wp--preset--font-size--small);
	color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 640px) {
	.zw-footer__bar {
		flex-direction: row;
	}
}

.zw-footer__bar p {
	margin: 0;
}

.zw-footer__bar a {
	font-weight: 600;
	color: var(--wp--preset--color--brand);
}

.zw-footer__bar a:hover {
	color: var(--wp--preset--color--paper);
}

.zw-to-top {
	display: flex;
	height: 2.25rem;
	width: 2.25rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--paper);
	transition: background-color var(--zw-dur) var(--zw-ease), color var(--zw-dur) var(--zw-ease);
}

.zw-to-top:hover {
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--navy-deep);
	text-decoration: none;
}

.zw-to-top svg {
	height: 1rem;
	width: 1rem;
}

/* ------------------------------------------------------------------ *
 * 10. Shared utilities
 * ------------------------------------------------------------------ */

/* Watermark — block style "Brand watermark" on any Group */
.is-style-zw-watermark {
	position: relative;
	overflow: hidden;
}

.is-style-zw-watermark::before {
	content: "";
	position: absolute;
	z-index: 0;
	width: 18rem;
	height: 18rem;
	background-image: url("../images/mark.png");
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0.06;
	pointer-events: none;
	left: -6rem;
	top: 6rem;
}

@media (min-width: 782px) {
	.is-style-zw-watermark::before {
		width: 28rem;
		height: 28rem;
	}
}

.is-style-zw-watermark > * {
	position: relative;
	z-index: 1;
}

.zw-watermark--top-right::before {
	left: auto;
	right: -2.5rem;
	top: -2.5rem;
	opacity: 0.12;
	filter: brightness(0) invert(1);
	width: 16rem;
	height: 16rem;
}

@media (min-width: 782px) {
	.zw-watermark--top-right::before {
		width: 20rem;
		height: 20rem;
	}
}

.zw-watermark--bottom-right::before {
	left: auto;
	top: auto;
	right: -2rem;
	bottom: -3rem;
	opacity: 0.2;
	width: 14rem;
	height: 14rem;
}

@media (min-width: 782px) {
	.zw-watermark--bottom-right::before {
		width: 20rem;
		height: 20rem;
	}
}

.zw-watermark--footer::before {
	left: auto;
	right: -4rem;
	top: -2.5rem;
	opacity: 0.07;
	filter: brightness(0) invert(1);
	width: 18rem;
	height: 18rem;
}

@media (min-width: 782px) {
	.zw-watermark--footer::before {
		width: 24rem;
		height: 24rem;
	}
}

/* Social icons — round pills matching the source */
.zw-social.wp-block-social-links {
	gap: 0.75rem;
}

.zw-social .wp-social-link {
	height: 2.75rem;
	width: 2.75rem;
	border-radius: 999px;
	transition: background-color var(--zw-dur) var(--zw-ease), color var(--zw-dur) var(--zw-ease);
}

.zw-social .wp-social-link a {
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.zw-social .wp-social-link svg {
	height: 1.25rem;
	width: 1.25rem;
}

.zw-social .wp-social-link:hover {
	transform: none;
	background-color: var(--wp--preset--color--brand-deep);
}

/* Override saved block color attributes: white glyphs on white were invisible. */
.wp-block-social-links.is-style-zw-on-dark .wp-social-link {
	background-color: var(--wp--preset--color--paper, #fff) !important;
	color: var(--wp--preset--color--navy, #16532f) !important;
}
.wp-block-social-links.is-style-zw-on-dark .wp-social-link a {
	color: inherit !important;
}
.wp-block-social-links.is-style-zw-on-dark .wp-social-link svg {
	fill: currentColor;
}
.wp-block-social-links.is-style-zw-on-dark .wp-social-link a:focus-visible {
	outline: 3px solid var(--wp--preset--color--brand, #8cc63e);
	outline-offset: 4px;
	border-radius: 50%;
}

.is-style-zw-on-dark .wp-social-link:hover {
	background-color: var(--wp--preset--color--brand) !important;
	color: var(--wp--preset--color--navy-deep) !important;
}

/* Outline button */
.is-style-zw-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
	padding-block: 0.75rem;
}

.is-style-zw-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--paper);
}

/* Secondary light button with brand play chip */
.is-style-zw-play .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px var(--zw-ring);
	transition: box-shadow var(--zw-dur) var(--zw-ease);
}

.is-style-zw-play .wp-block-button__link:hover {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px rgba(37, 63, 134, 0.4);
}

.is-style-zw-play .wp-block-button__link::before {
	content: "";
	display: block;
	height: 1.5rem;
	width: 1.5rem;
	flex-shrink: 0;
	border-radius: 999px;
	background-color: var(--wp--preset--color--brand);
	background-image: url("../images/play.svg?v=green-2");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 0.625rem;
}

/* Pagination, search, archive bits */
.zw-pagination {
	margin-top: 3rem;
	font-weight: 600;
}

.zw-pagination .wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	min-width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding-inline: 0.5rem;
	color: var(--wp--preset--color--ink);
}

.zw-pagination .wp-block-query-pagination-numbers .page-numbers:hover {
	background: var(--wp--preset--color--mist);
	text-decoration: none;
}

.zw-pagination .wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--paper);
}

.zw-card-plain {
	border-radius: 1.5rem;
	background: var(--wp--preset--color--paper);
	box-shadow: inset 0 0 0 1px var(--zw-ring);
	overflow: hidden;
}

.zw-card-plain .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Screen-reader-only helper (mirrors core's .screen-reader-text) */
.zw-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------ *
 * 11. Reduced motion
 * ------------------------------------------------------------------ */

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.zw-product-card:hover .wp-block-post-featured-image img,
	.zw-blog-featured:hover .wp-block-post-featured-image img,
	.zw-blog-item:hover .wp-block-post-featured-image img,
	.zw-hero__badge:hover {
		transform: none;
	}
}

/* ------------------------------------------------------------------ *
 * 12. Entrance reveals
 *
 * Replaces the source template's framer-motion mount animations. Elements
 * stay fully visible when JavaScript is unavailable, and all motion is
 * suppressed by the reduced-motion block in section 11.
 * ------------------------------------------------------------------ */

.js-zw .zw-reveal {
	opacity: 0;
	transform: translateY(14px);
}

.js-zw .zw-reveal.is-visible {
	opacity: 1;
	transform: none;
	transition:
		opacity 300ms var(--zw-ease) var(--zw-delay, 0ms),
		transform 300ms var(--zw-ease) var(--zw-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
	.js-zw .zw-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------ *
 * 13. Icon modifiers
 *
 * Icons are painted as background images on an otherwise empty element so
 * patterns stay free of inline SVG and remain comfortable to edit.
 * ------------------------------------------------------------------ */

.zw-icon {
	display: inline-block;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	flex-shrink: 0;
}

.zw-stat__icon::before,
.zw-perks li::before,
.zw-hero__badge-icon::before {
	content: "";
	display: block;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.zw-stat__icon::before {
	height: 1.25rem;
	width: 1.25rem;
}

.zw-stat__icon--play::before {
	background-image: url("../images/icon-play-dark.svg?v=green-2");
}

.zw-stat__icon--eye::before {
	background-image: url("../images/icon-eye.svg?v=green-2");
}

.zw-stat__icon--video::before {
	background-image: url("../images/icon-video.svg?v=green-2");
}

.zw-perks li::before {
	height: 1rem;
	width: 1rem;
}

.zw-perks li.zw-perk--download::before {
	background-image: url("../images/icon-download.svg?v=green-2");
}

.zw-perks li.zw-perk--language::before {
	background-image: url("../images/icon-languages.svg?v=green-2");
}

.zw-perks li.zw-perk--secure::before {
	background-image: url("../images/icon-shield.svg?v=green-2");
}

/* Hero badge icon chip */
.zw-hero__badge-icon {
	display: flex;
	height: 2.5rem;
	width: 2.5rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	background: var(--wp--preset--color--navy);
}

.zw-hero__badge-icon::before {
	height: 1.25rem;
	width: 1.25rem;
	background-image: url("../images/icon-file-text.svg?v=green-2");
}

/* "PDF guide" eyebrow on the featured product */
.zw-eyebrow-meta::before {
	content: "";
	display: block;
	height: 1rem;
	width: 1rem;
	flex-shrink: 0;
	background-image: url("../images/icon-file-text.svg?v=green-2");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

/* Featured product image wrapper — anchors the "Featured guide" badge. */
.zw-product-featured__media {
	position: relative;
}

/* ------------------------------------------------------------------ *
 * 14. Linked titles
 *
 * Post titles inside cards are links, which would otherwise pick up the
 * global link colour instead of the heading colour the design calls for.
 * ------------------------------------------------------------------ */

.zw-product-card .wp-block-post-title a,
.zw-blog-featured .wp-block-post-title a,
.zw-blog-item .wp-block-post-title a,
.zw-card-plain .wp-block-post-title a {
	color: inherit;
}

.zw-product-card .wp-block-post-title a:hover,
.zw-blog-featured .wp-block-post-title a:hover,
.zw-blog-item .wp-block-post-title a:hover,
.zw-card-plain .wp-block-post-title a:hover {
	color: var(--wp--preset--color--brand-deep);
	text-decoration: none;
}

/* Match the default logo and decorative mark to the site palette. */
.zw-header .wp-block-site-logo img { filter: brightness(0) saturate(100%) invert(35%) sepia(51%) saturate(677%) hue-rotate(94deg) brightness(92%) contrast(94%); }

.zw-hero__media .zw-hero__portrait { width: 100%; margin: 0; }

/* Preserve the complete supplied cover, including its printed title. */
.zw-product-card .zw-product-cover-original img { aspect-ratio: 1 / 1; object-fit: contain; background: #f4f8f5; }

.zw-product-featured .zw-product-cover-original img { object-fit: contain; background: #f4f8f5; }

/* Free-book signup */
.zw-book-offer { padding: clamp(4rem, 7vw, 7rem) 1.5rem; background: #f4f8f5; }
.zw-book-offer__inner { max-width: 72rem; margin: auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.zw-book-offer__art { position: relative; display: flex; justify-content: center; padding: 2rem; border-radius: 2rem; background: #16532f; }
.zw-book-offer__art img { display: block; width: min(100%, 16rem); height: auto; border-radius: .25rem; box-shadow: 0 20px 45px rgba(0,0,0,.28); transform: rotate(-3deg); }
.zw-book-offer__tag { position: absolute; z-index: 1; right: 1.2rem; top: 1.2rem; padding: .5rem .85rem; border-radius: 999px; background: #e6c878; color: #071a0f; font-size: .75rem; font-weight: 800; }
.zw-book-offer__eyebrow { margin: 0 0 .9rem; color: #1f8a4c; font-weight: 750; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.zw-book-offer__content h2 { margin: 0; max-width: 12em; color: #071a0f; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.04em; }
.zw-book-offer__content h2 span { color: #1f8a4c; }
.zw-book-offer__intro { max-width: 34rem; color: #59645d; line-height: 1.7; font-size: 1.05rem; }
.zw-book-offer__divider { height: 1px; background: #dce8de; margin: 1.75rem 0; }
.zw-book-offer__form-title { font-size: 1.05rem; font-weight: 750; color: #071a0f; }
.zw-book-offer .zw-form { max-width: 100%; text-align: left; }
.zw-book-offer .zw-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.zw-book-offer .zw-form__submit { grid-column: 1 / -1; justify-content: center; }
.zw-book-offer .zw-form__success { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; border-radius: 1rem; padding: 1rem; }
.zw-book-offer .zw-form__success[hidden] { display: none; }
.zw-form__download { display: inline-flex; justify-content: center; padding: .8rem 1rem; border-radius: 999px; background: #16532f; color: #fff !important; font-weight: 700; text-decoration: none; }
.zw-form__download:hover { background: #071a0f; }
@media(max-width: 720px) { .zw-book-offer__inner { grid-template-columns: 1fr; gap: 2rem; } .zw-book-offer__art img { width: min(65%, 14rem); } .zw-book-offer .zw-form__row { grid-template-columns: 1fr; } }

/* Portrait-led appointment callout */
.zw-appointment-new{position:relative;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);max-width:72rem;min-height:29rem;margin:0 auto;overflow:hidden;border-radius:2rem;background:#0d3a23;color:#fff;scroll-margin-top:6rem}
.zw-appointment-new__copy{position:relative;z-index:1;align-self:center;padding:clamp(2rem,5vw,4.5rem)}
.zw-appointment-new__eyebrow{margin:0 0 1rem;color:#c6e99a;font-size:.75rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.zw-appointment-new h2{max-width:13em;margin:0;color:#fff;font-size:clamp(2rem,4vw,3.4rem);line-height:1.08;letter-spacing:-.04em}
.zw-appointment-new h2 span{color:#a3d34f}
.zw-appointment-new__lede{max-width:30rem;margin:1.25rem 0 0;color:rgba(255,255,255,.78);font-size:1.05rem;line-height:1.65}
.zw-appointment-new__topics{display:flex;flex-wrap:wrap;gap:.7rem;margin:1.5rem 0 2rem;padding:0;list-style:none}
.zw-appointment-new__topics li{padding:.5rem .8rem;border:1px solid rgba(255,255,255,.2);border-radius:999px;color:#e4f1e5;font-size:.8rem;font-weight:600}
.zw-appointment-new__button{display:inline-flex;align-items:center;gap:1.5rem;padding:.55rem .55rem .55rem 1.4rem;border-radius:999px;background:#e6c878;color:#071a0f!important;font-weight:750;text-decoration:none}
.zw-appointment-new__button span{display:grid;place-items:center;width:2.6rem;height:2.6rem;border-radius:50%;background:#16532f;color:#fff;font-size:1.15rem;transition:transform .2s}
.zw-appointment-new__button:hover{background:#fff}.zw-appointment-new__button:hover span{transform:translateX(3px)}
.zw-appointment-new__visual{position:relative;min-height:22rem;overflow:hidden;background:#16532f}
.zw-appointment-new__visual:before{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,#0d3a23 0%,transparent 35%),linear-gradient(0deg,rgba(7,26,15,.65),transparent 55%);pointer-events:none}
.zw-appointment-new__visual img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:48% top}
.zw-appointment-new__visual-label{position:absolute;z-index:2;bottom:1.8rem;right:1.8rem;padding:.65rem .9rem;border:1px solid rgba(255,255,255,.3);border-radius:999px;color:#fff;background:rgba(7,26,15,.4);font-size:.8rem;font-weight:650}
@media(max-width:781px){.zw-appointment-new{grid-template-columns:1fr}.zw-appointment-new__copy{padding:2.25rem 1.75rem}.zw-appointment-new__visual{min-height:19rem}.zw-appointment-new__visual:before{background:linear-gradient(180deg,#0d3a23,transparent 35%),linear-gradient(0deg,rgba(7,26,15,.65),transparent 55%)}}

/* Featured guide: let the artwork breathe and describe its contents. */
.zw-product-featured .zw-product-cover-original img{aspect-ratio:1/1;object-fit:contain;background:#0d3a23}
.zw-product-featured__media{align-self:start}
.zw-featured-details{margin:1.25rem 0 2rem;max-width:34rem}
.zw-featured-details p{margin:0;color:rgba(255,255,255,.8);font-size:1.05rem;line-height:1.65}
.zw-featured-details ul{display:grid;gap:.75rem;margin:1.4rem 0 0;padding:0;list-style:none;color:#fff;font-size:.95rem;font-weight:600}
.zw-featured-details li{display:flex;align-items:center;gap:.75rem}
.zw-featured-details li:before{content:'✓';display:grid;place-items:center;flex:0 0 1.4rem;height:1.4rem;border-radius:50%;background:rgba(140,198,62,.2);color:#a3d34f;font-size:.8rem}

/* Manrope brings a consistent voice to actions as well as headings. */
button, .wp-element-button, .zw-booking__submit { font-family: var(--wp--preset--font-family--display); }

/* Keep signup fields identifiable before and after visitors start typing. */
.zw-form__label { display: block; margin: 0 0 .45rem .2rem; color: #164b2c; font-size: .875rem; font-weight: 700; }
.zw-book-offer .zw-form input[type="text"], .zw-book-offer .zw-form input[type="email"] { border: 2px solid #91ae98; background: #fff; color: #071a0f; }
.zw-book-offer .zw-form input::placeholder { color: #697b6d; opacity: 1; }
.zw-book-offer .zw-form input:focus { border-color: #1f8a4c; box-shadow: 0 0 0 4px rgba(31,138,76,.18); }
.zw-book-offer .zw-form input[aria-invalid="true"] { border-color: #dc2626; }

/* Small-screen layout */
@media (max-width: 600px) {
 .zw-header { padding-inline: .75rem; }
 .zw-header__bar { gap: .35rem; }
 .zw-header .wp-block-site-logo img { max-width: 130px; height: auto; max-height: 2.25rem; }
 .zw-header__actions { gap: .35rem; }
 .zw-hero__inner { gap: 2rem; }
 .zw-hero__name { overflow-wrap: anywhere; }
 .zw-hero__media img { height: auto; aspect-ratio: 1 / 1; object-position: 48% top; }
 .zw-product-featured { grid-template-columns: minmax(0,1fr); }
 .zw-product-featured__body { min-width: 0; padding: 1.2rem; }
 .zw-product-featured__body .wp-block-post-title { overflow-wrap: anywhere; }
 .zw-product-featured__foot { align-items: stretch; }
 .zw-product-featured__foot .wp-block-button, .zw-product-featured__foot .wp-block-button__link { width: 100%; box-sizing: border-box; }
 .zw-product-grid.wp-block-post-template { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
 .zw-product-card { padding: .5rem; border-radius: 1rem; }
 .zw-product-card__body { min-width: 0; }
 .zw-product-card__foot { flex-wrap: wrap; gap: .5rem; }
 .zw-product-card .wp-block-post-title { overflow-wrap: anywhere; }
 .zw-book-offer { padding-inline: 1rem; }
 .zw-book-offer__content { min-width: 0; }
 .zw-book-offer .zw-form__row > div { min-width: 0; }
 .zw-book-offer .zw-form__submit { white-space: normal; min-height: 48px; }
 .zw-appointment-new__button { max-width: 100%; box-sizing: border-box; }
 .zw-appointment-new__visual-label { left: 1rem; right: auto; bottom: 1rem; }
}
@media (max-width: 360px) {
 .zw-product-grid.wp-block-post-template { grid-template-columns: minmax(0,1fr); }
 .zw-book-offer__content h2, .zw-appointment-new h2 { font-size: 1.9rem; }
}

/* Mobile corrections for hero spacing, badge and full featured artwork. */
@media (max-width: 781px) {
 .zw-hero__inner { box-sizing: border-box; width: 100%; padding-inline: 1.25rem; }
 .zw-hero__copy, .zw-hero__media { min-width: 0; }
 .zw-hero__badge { display: none !important; }
 .zw-hero__portrait { width: 100%; }
 .zw-hero__actions { gap: .75rem; }
}
@media (max-width: 600px) {
 .zw-hero__copy { padding-bottom: 0 !important; }
 .zw-hero__actions { display: grid !important; grid-template-columns: minmax(0,1fr); }
 .zw-hero__actions .wp-block-button, .zw-hero__actions .wp-block-button__link { box-sizing: border-box; width: 100%; justify-content: center; }
 .zw-hero__social { gap: .75rem; }
 .zw-hero__social > p { display: none; }
 .zw-product-featured .wp-block-post-featured-image img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
 .zw-product-featured__media .wp-block-post-featured-image { height: auto; }
}

/* Keep the cart and mobile menu together at the right edge. */
@media (max-width: 781px) {
 .zw-header__bar { justify-content: flex-start; gap: .4rem !important; }
 .zw-header__bar > .wp-block-site-logo { order: 0; margin-right: auto; }
 .zw-header__bar > .zw-header__actions { order: 1; margin: 0; flex: 0 0 auto; }
 .zw-header__bar > .zw-header__nav { order: 2; margin: 0; flex: 0 0 auto; }
 .zw-header__actions > .wp-block-buttons { display: none; }
}

/* Square book artwork stays fully visible at every screen size. */
.zw-book-offer__art { padding: clamp(1.5rem, 3vw, 2.5rem); }
.zw-book-offer__art img { width: min(100%, 21rem); aspect-ratio: 1 / 1; object-fit: contain; border-radius: .8rem; transform: rotate(-2deg); }
@media (max-width: 720px) { .zw-book-offer__art img { width: min(82%, 18rem); } }

/* Main navigation and mobile dropdown */
.zw-primary-nav__desktop{display:flex;align-items:center;gap:.25rem;margin:0;padding:.25rem;list-style:none;border-radius:999px;background:#f4f8f5}
.zw-primary-nav__desktop a{display:block;padding:.55rem 1rem;border-radius:999px;color:#59645d;font-family:var(--wp--preset--font-family--display);font-size:.875rem;font-weight:700;text-decoration:none}
.zw-primary-nav__desktop a:hover,.zw-primary-nav__desktop a:focus-visible{background:#fff;color:#16532f}
.zw-mobile-nav{display:none}
@media(max-width:781px){
 .zw-primary-nav__desktop{display:none}
 .zw-mobile-nav{display:block}
 .zw-mobile-nav summary{display:grid;place-items:center;width:3rem;height:3rem;border-radius:50%;background:#16532f;color:#fff;cursor:pointer;list-style:none}
 .zw-mobile-nav summary::-webkit-details-marker{display:none}
 .zw-mobile-nav summary svg{width:1.3rem;height:1.3rem}
 .zw-mobile-nav summary:focus-visible{outline:3px solid #8cc63e;outline-offset:3px}
 .zw-mobile-nav__panel{position:absolute;top:calc(100% + .65rem);right:0;box-sizing:border-box;width:min(22rem,calc(100vw - 1.5rem));padding:1rem;border:1px solid #dce8de;border-radius:1.4rem;background:#fff;box-shadow:0 20px 55px rgba(7,26,15,.2)}
 .zw-mobile-nav__heading{padding:.35rem .7rem .7rem;color:#59645d;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
 .zw-mobile-nav__panel ul{display:grid;gap:.2rem;margin:0;padding:0;list-style:none}
 .zw-mobile-nav__panel li{margin:0}
 .zw-mobile-nav__panel a{display:flex;align-items:center;justify-content:space-between;min-height:3.2rem;box-sizing:border-box;padding:.8rem .85rem;border-radius:.8rem;color:#071a0f;font-family:var(--wp--preset--font-family--display);font-size:1rem;font-weight:700;text-decoration:none}
 .zw-mobile-nav__panel a:after{content:'→';color:#1f8a4c;font-size:1.1rem}
 .zw-mobile-nav__panel a:hover,.zw-mobile-nav__panel a:focus-visible{background:#e8f2de;color:#16532f;outline:none}
}
