/*
Theme Name: Pi Floor
Theme URI: https://pifloor.com
Author: Pi Floor
Description: Custom WooCommerce theme for Pi Floor, a local flooring store. Ships with quote/appointment forms wired to the pifloor-appointments and pifloor-commerce-tools plugins.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: pifloor
*/

/* -------------------------------------------------- */
/* Tokens                                              */
/* -------------------------------------------------- */
:root {
	--pf-orange: #f58b2a;
	--pf-orange-deep: #e46f00;
	--pf-orange-soft: #fbd9b8;
	--pf-ink: #121212;
	--pf-cream: #fff7f0;
	--pf-white: #ffffff;
	--pf-border: #e8e9ee;
	--pf-muted: #5b6472;
	--pf-muted-2: #7a828f;
	--pf-green: #189a4e;
	--pf-brown: #3f2415;

	--pf-radius-lg: 22px;
	--pf-radius-md: 14px;
	--pf-radius-full: 999px;

	--pf-button-shadow: 0 16px 28px rgba(18, 18, 18, 0.11), 0 4px 0 rgba(18, 18, 18, 0.06);
	--pf-button-shadow-hover: 0 22px 36px rgba(18, 18, 18, 0.14), 0 6px 0 rgba(18, 18, 18, 0.07);
	--pf-button-shadow-press: 0 8px 18px rgba(18, 18, 18, 0.12), 0 1px 0 rgba(18, 18, 18, 0.05);
	--pf-button-focus: 0 0 0 4px rgba(245, 139, 42, 0.18);

	--pf-font-display: 'Barlow Semi Condensed', sans-serif;
	--pf-font-h1: 'Oswald', sans-serif;
	--pf-font-logo: 'Barlow Semi Condensed', sans-serif;
	--pf-font-script: 'Caveat', cursive;
	--pf-font-body: 'Manrope', system-ui, -apple-system, sans-serif;

	--pf-container: 1140px;
}

/* -------------------------------------------------- */
/* Reset & base                                        */
/* -------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--pf-cream);
	color: var(--pf-ink);
	font-family: var(--pf-font-body);
	font-size: 16px;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font-family: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 10000;
	background: var(--pf-ink);
	color: var(--pf-white);
	padding: 10px 16px;
	border-radius: var(--pf-radius-md);
}

.skip-link:focus {
	top: 12px;
}

:focus-visible {
	outline: 2px solid var(--pf-orange);
	outline-offset: 2px;
}

/* -------------------------------------------------- */
/* Typography                                          */
/* -------------------------------------------------- */
h1,
h2,
h3,
h4 {
	font-family: var(--pf-font-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1 {
	font-family: var(--pf-font-h1);
	font-size: clamp(2.2rem, 4vw, 3.2rem);
}

h2 {
	font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

h3 {
	font-size: 1.2rem;
}

p {
	margin: 0 0 1em;
	max-width: 62ch;
}

.script {
	font-family: var(--pf-font-script);
	font-weight: 600;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--pf-muted);
}

.eyebrow::before {
	content: '';
	width: 16px;
	height: 2px;
	background: var(--pf-orange);
	border-radius: var(--pf-radius-full);
}

/* -------------------------------------------------- */
/* Layout                                              */
/* -------------------------------------------------- */
.container {
	max-width: var(--pf-container);
	margin: 0 auto;
	padding: 0 24px;
}

.section {
	padding: 64px 0;
}

.section--steps {
	background: var(--pf-white);
}

.section__head {
	max-width: 640px;
	margin: 0 0 32px;
}

.section__more {
	margin-top: 32px;
	text-align: center;
}

/* -------------------------------------------------- */
/* Buttons (matches pifloor-appointments / commerce-tools) */
/* -------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	border: 1px solid transparent;
	border-radius: var(--pf-radius-full);
	padding: 13px 22px;
	min-height: 48px;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	white-space: nowrap;
	text-align: center;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 44%), var(--pf-orange);
	color: var(--pf-white);
	box-shadow: var(--pf-button-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
	transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 44%), var(--pf-orange-deep);
	transform: translateY(-2px);
	box-shadow: var(--pf-button-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn:focus-visible {
	outline: none;
	box-shadow: var(--pf-button-shadow-hover), var(--pf-button-focus), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn:active {
	transform: translateY(0);
	box-shadow: var(--pf-button-shadow-press), inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn--ghost {
	background: var(--pf-white);
	color: var(--pf-ink);
	border-color: var(--pf-border);
	box-shadow: none;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
	background: var(--pf-cream);
	border-color: var(--pf-orange);
	box-shadow: none;
	transform: translateY(-2px);
}

.btn--lg {
	padding: 16px 28px;
	min-height: 56px;
	font-size: 1.02rem;
}

/* -------------------------------------------------- */
/* Wordmark                                            */
/* -------------------------------------------------- */
.site-logo {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.site-logo .wordmark {
	font-size: 1.9rem;
}

.site-logo__tag {
	font-size: 0.9rem;
	color: var(--pf-muted);
	line-height: 1;
	margin-top: 14px;
	font-size: 24px;
}

.custom-logo {
	max-height: 56px;
	width: auto;
}

.wordmark {
	display: inline-flex;
	align-items: baseline;
	font-family: var(--pf-font-logo);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.wm-txt {
	display: inline-block;
}

.wm-amp {
	margin-left: 0.16em;
}

.wm-accent {
	margin-left: 0.14em;
	color: var(--pf-green);
}

.eyes-wrap {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: 0.1em;
	margin: 0 0.05em;
}

/* Minimal + smile variant: the literal "OO" in FLOOR stands in for the
   eyes, with a static orange mouth pinned underneath. */
.ms-oo-wrap {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	color: var(--pf-orange);
}

.eye {
	position: relative;
	width: 0.5em;
	height: 0.76em;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
	transform: translateY(0.02em);
}

.eye::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.22em;
	height: 0.22em;
	border-radius: 50%;
	background: var(--pf-eye-pupil, var(--pf-cream));
	transform: translate(calc(-50% + var(--pf-look-x, 0em)), calc(-50% + var(--pf-look-y, 0em)));
	transition: transform 420ms ease;
}

/* Both eyes blink together on their own, no hover needed.
   Toggle under Customizer -> Branding -> Animated logo. */
.eye {
	transform-origin: center;
}

body.pf-logo-animated .eye {
	animation: pf-eye-blink 5s ease-in-out infinite;
}

@keyframes pf-eye-blink {
	0%,
	92%,
	100% {
		transform: translateY(0.02em) scaleY(1);
	}

	96% {
		transform: translateY(0.02em) scaleY(0.12);
	}
}

@media (prefers-reduced-motion: reduce) {
	.eye,
	.eye::after {
		animation: none;
	}
}

.smile {
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	width: 1.9em;
	margin-top: 0.02em;
	color: currentColor;
}

.smile svg {
	display: block;
	width: 100%;
	height: auto;
}

body.pf-logo-animated .smile svg {
	transform-origin: 50% 0%;
	animation: pf-smile-draw 450ms 350ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pf-smile-draw {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.smile svg {
		animation: none;
		transform: scaleX(1);
	}
}

.mark-on-orange {
	color: var(--pf-cream);
}

.mark-on-orange .eyes-wrap {
	color: var(--pf-ink);
}

.mark-on-cream {
	color: var(--pf-ink);
}

.mark-on-cream .eyes-wrap {
	color: var(--pf-orange);
	--pf-eye-pupil: var(--pf-ink);
}

/* -------------------------------------------------- */
/* Wordmark - serious variant (no face, no animation)  */
/* -------------------------------------------------- */
.wordmark--serious {
	display: inline-flex;
}

.ws-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	background: var(--pf-orange);
	border-radius: 0.22em;
	padding: 0.2em 0.42em 0.32em;
}

.ws-line1 {
	font-family: 'Monoton', cursive;
	font-weight: 400;
	color: var(--pf-white);
	letter-spacing: 0.03em;
	line-height: 1;
	white-space: nowrap;
}

.ws-blinds {
	position: absolute;
	right: 0.42em;
	bottom: -0.16em;
	font-family: 'Felipa', cursive;
	font-weight: 400;
	color: var(--pf-brown);
	font-size: 0.62em;
	line-height: 1;
	white-space: nowrap;
	text-shadow: -2px 0 0 var(--pf-orange), 2px 0 0 var(--pf-orange), 0 -2px 0 var(--pf-orange), 0 2px 0 var(--pf-orange);
}

/* -------------------------------------------------- */
/* Header / nav                                        */
/* -------------------------------------------------- */
.site-header {
	background: var(--pf-white);
	border-bottom: 1px solid var(--pf-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-block: 16px;
	justify-content: space-between;
}

.site-nav {
	flex: 1;
	min-width: 0;
}

/* These icons are only for the full-screen mobile menu; the desktop
   bar already has them in the footer. */
.site-nav .social-links {
	display: none;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.primary-menu a {
	font-weight: 650;
	color: var(--pf-ink);
	white-space: nowrap;
}

.primary-menu a:hover {
	color: var(--pf-orange-deep);
}

/* Desktop: items that don't fit on one line collapse into the "more"
   dropdown (below) instead of wrapping to a second row. */
@media (min-width: 861px) {
	.primary-menu {
		flex-wrap: nowrap;
		overflow: hidden;
	}

	/* While the "more" dropdown is open, let it pop out past the
	   nav row instead of being clipped by the rule above. */
	.primary-menu.nav-more-open {
		overflow: visible;
	}
}

.nav-more {
	position: relative;
	display: none;
	flex-shrink: 0;
}

.nav-more__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-full);
	width: 34px;
	height: 34px;
	background: var(--pf-white);
	color: var(--pf-ink);
	font-weight: 700;
	font-size: 0.85rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-more__toggle:hover,
.nav-more__toggle:focus-visible {
	background: var(--pf-cream);
	border-color: var(--pf-orange);
	color: var(--pf-orange-deep);
}

.nav-more__menu {
	display: none;
	flex-direction: column;
	gap: 2px;
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 200px;
	padding: 8px;
	background: var(--pf-white);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-md);
	box-shadow: 0 16px 32px rgba(18, 18, 18, 0.14);
	z-index: 60;
}

.nav-more.is-open .nav-more__menu {
	display: flex;
}

.nav-more__menu a {
	display: block;
	padding: 10px 12px;
	border-radius: var(--pf-radius-md);
	font-weight: 650;
	color: var(--pf-ink);
}

.nav-more__menu a:hover {
	background: var(--pf-cream);
	color: var(--pf-orange-deep);
}

.site-header__cta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.site-header__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--pf-border);
	color: var(--pf-ink);
	flex-shrink: 0;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.site-header__cart svg {
	width: 20px;
	height: 20px;
}

.site-header__cart:hover,
.site-header__cart:focus-visible {
	background: var(--pf-cream);
	border-color: var(--pf-orange);
	transform: translateY(-2px);
}

.site-header__cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--pf-orange);
	color: var(--pf-white);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
}

.site-header__cart-count[hidden] {
	display: none;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-md);
	background: var(--pf-white);
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0 auto;
	background: var(--pf-ink);
	border-radius: 2px;
}

@media (max-width: 860px) {
	/* Mobile header stays down to just the logo and hamburger. */
	.site-header__cta {
		display: none;
	}

	.nav-toggle {
		flex-shrink: 0;
	}

	/* The mobile full-screen menu already shows every item — the
	   desktop "more" overflow dropdown never applies here. */
	.nav-more {
		display: none !important;
	}

	.nav-toggle {
		display: flex;
	}

	.site-header__inner {
		flex-wrap: nowrap;
		gap: 8px;
	}

	/* Logo shrinks so the full "PI FLOOR & BLINDS" wordmark, the cart
	   icon and hamburger all fit on one row — now that the header CTA
	   button moved to the hero, there's room to keep it readable. */
	.site-logo .wordmark {
		font-size: 1.4rem;
	}

	.site-logo__tag {
		font-size: 0.68rem;
		margin-top: 8px;
	}

	.site-header__cta .btn {
		padding: 10px 16px;
		min-height: 40px;
		font-size: 0.85rem;
	}

	/* The open menu is a full-screen panel below the sticky header,
	   not an inline block that pushes the page content down. */
	.site-nav {
		display: none;
	}

	.site-nav.is-open {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: var(--pf-header-height, 78px);
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 200;
		background: var(--pf-white);
		overflow-y: auto;
		padding: 8px 24px 24px;
	}

	.primary-menu {
		flex: 1;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
	}

	.primary-menu li {
		width: 100%;
	}

	.primary-menu a {
		display: block;
		width: 100%;
		padding: 16px 0;
		border-bottom: 1px solid var(--pf-border);
		font-size: 1.1rem;
		text-align: center;
	}

	/* Social icons live only inside the open mobile menu, pinned to
	   the bottom of the screen. */
	.site-nav.is-open .social-links {
		display: flex;
		justify-content: center;
		margin-top: auto;
		padding-top: 24px;
	}

	body.nav-open {
		overflow: hidden;
	}
}

/* -------------------------------------------------- */
/* Hero                                                 */
/* -------------------------------------------------- */
.hero {
	background-color: var(--pf-orange);
	background-image:
		linear-gradient(45deg, rgba(18, 18, 18, 0.07) 25%, transparent 25%, transparent 75%, rgba(18, 18, 18, 0.07) 75%),
		linear-gradient(45deg, rgba(18, 18, 18, 0.07) 25%, transparent 25%, transparent 75%, rgba(18, 18, 18, 0.07) 75%);
	background-size: 46px 46px;
	background-position: 0 0, 23px 23px;
}

.hero__inner {
	padding: clamp(56px, 9vw, 110px) 24px;
	text-align: center;
	max-width: 760px;
}

.hero__inner--split {
	max-width: var(--pf-container);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	text-align: left;
	padding-block: clamp(48px, 7vw, 88px);
}

.hero__copy {
	flex: 1 1 420px;
}

.hero__inner--split .hero__lead {
	margin: 0 0 2em;
}

.hero__inner--split .hero__actions {
	justify-content: flex-start;
}

.hero__tag {
	display: block;
	color: var(--pf-cream);
	font-size: clamp(1.2rem, 2.6vw, 1.5rem);
	margin-bottom: 0.4em;
	transform: rotate(-2deg);
}

.hero__title {
	color: var(--pf-cream);
	margin-bottom: 0.4em;
}

.hero__lead {
	color: var(--pf-cream);
	opacity: 0.92;
	font-size: 1.1rem;
	margin: 0 auto 2em;
}

.hero__actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

/* "Hanging on the wall" frame with a rotating set of photos.
   Walnut-tone frame + cream mat so it reads as an object in the room,
   not a hero background photo. */
.hero__frame-wrap {
	position: relative;
	flex: 0 0 auto;
	width: clamp(240px, 28vw, 360px);
	transform: rotate(-4deg);
}

.hero__frame-hook {
	position: absolute;
	top: -30px;
	left: 50%;
	width: 2px;
	height: 30px;
	background: rgba(18, 18, 18, 0.32);
	transform: translateX(-50%);
}

.hero__frame-hook::before {
	content: '';
	position: absolute;
	top: -4px;
	left: 50%;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--pf-ink);
	box-shadow: 0 2px 5px rgba(18, 18, 18, 0.35);
	transform: translateX(-50%);
}

.hero__frame {
	background: #6b4a34;
	padding: 14px;
	border-radius: 6px;
	box-shadow: 14px 26px 38px rgba(18, 18, 18, 0.3), 0 3px 0 rgba(0, 0, 0, 0.12);
}

.hero__frame-mat {
	background: var(--pf-cream);
	padding: 10px;
	border-radius: 2px;
}

.hero__frame-photos {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 1px;
	background: var(--pf-border);
}

.hero__frame-photos img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	animation: pf-frame-cycle 9s infinite;
}

.hero__frame-photos img:nth-child(1) {
	animation-delay: 0s;
}

.hero__frame-photos img:nth-child(2) {
	animation-delay: 3s;
}

.hero__frame-photos img:nth-child(3) {
	animation-delay: 6s;
}

@keyframes pf-frame-cycle {
	0%,
	100% {
		opacity: 0;
	}

	4%,
	28% {
		opacity: 1;
	}

	33% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero__frame-photos img {
		animation: none;
		opacity: 0;
	}

	.hero__frame-photos img:first-child {
		opacity: 1;
	}
}

@media (max-width: 860px) {
	.hero__inner--split {
		flex-direction: column;
		text-align: center;
		gap: 32px;
	}

	.hero__inner--split .hero__lead {
		margin: 0 auto 2em;
	}

	.hero__inner--split .hero__actions {
		justify-content: center;
	}

	.hero__frame-wrap {
		width: 220px;
		transform: rotate(-3deg);
	}
}

/* -------------------------------------------------- */
/* Trust card - overlaps the hero's bottom edge         */
/* -------------------------------------------------- */
.trust-card {
	position: relative;
	z-index: 5;
	margin-top: -34px;
	background: var(--pf-white);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-lg);
	box-shadow: 0 20px 40px rgba(18, 18, 18, 0.12);
	padding: 22px 28px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.trust-card__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 28px;
	border-left: 1px solid var(--pf-border);
}

.trust-card__item:first-child {
	border-left: none;
}

.trust-card__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--pf-orange-soft);
	color: var(--pf-orange-deep);
	display: flex;
	align-items: center;
	justify-content: center;
}

.trust-card__icon svg {
	width: 20px;
	height: 20px;
}

.trust-card__text {
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--pf-ink);
}

@media (max-width: 760px) {
	.trust-card {
		flex-direction: column;
		align-items: stretch;
		margin-top: -24px;
	}

	.trust-card__item {
		border-left: none;
		border-top: 1px solid var(--pf-border);
		padding: 14px 4px;
	}

	.trust-card__item:first-child {
		border-top: none;
	}
}

/* A trust-card used mid-page (About) rather than overlapping a hero. */
.trust-card--static {
	margin-top: 0;
}

@media (max-width: 760px) {
	.trust-card--static {
		margin-top: 0;
	}
}

/* -------------------------------------------------- */
/* Simple page hero (About / Contact)                   */
/* -------------------------------------------------- */
.page-hero {
	background-color: var(--pf-orange);
	background-image:
		linear-gradient(45deg, rgba(18, 18, 18, 0.07) 25%, transparent 25%, transparent 75%, rgba(18, 18, 18, 0.07) 75%),
		linear-gradient(45deg, rgba(18, 18, 18, 0.07) 25%, transparent 25%, transparent 75%, rgba(18, 18, 18, 0.07) 75%);
	background-size: 46px 46px;
	background-position: 0 0, 23px 23px;
}

.page-hero__inner {
	padding: clamp(40px, 6vw, 64px) 24px;
	text-align: center;
	max-width: 700px;
}

.page-hero h1 {
	color: var(--pf-cream);
	margin-bottom: 0.4em;
}

.page-hero__lead {
	color: var(--pf-cream);
	opacity: 0.92;
	font-size: 1.05rem;
	margin: 0 auto;
}

.page-hero .eyebrow {
	color: var(--pf-cream);
	opacity: 0.85;
}

.page-hero .eyebrow::before {
	background: var(--pf-ink);
}

/* -------------------------------------------------- */
/* Contact page                                         */
/* -------------------------------------------------- */
.contact-layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 32px;
	align-items: start;
}

.contact-info {
	background: var(--pf-white);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-lg);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-map {
	aspect-ratio: 4 / 3;
	border-radius: var(--pf-radius-md);
	overflow: hidden;
	border: 1px solid var(--pf-border);
}

.contact-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.contact-info__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.contact-info__label {
	display: block;
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pf-muted-2);
	margin-bottom: 2px;
}

.contact-info__item a,
.contact-info__item span:not(.contact-info__label) {
	font-weight: 700;
	color: var(--pf-ink);
}

.contact-info__empty {
	color: var(--pf-muted);
	font-size: 0.88rem;
}

.contact-info .social-links {
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid var(--pf-border);
}

.contact-paths {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	align-content: start;
}

.contact-path-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	background: var(--pf-white);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-lg);
	padding: 24px;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-path-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 28px rgba(18, 18, 18, 0.08);
}

.contact-path-card h3 {
	margin: 12px 0 0;
}

.contact-path-card p {
	color: var(--pf-muted);
	font-size: 0.92rem;
	margin: 0 0 8px;
}

.contact-path-card__cta {
	margin-top: auto;
	padding-top: 8px;
	font-weight: 700;
	color: var(--pf-orange-deep);
}

@media (max-width: 860px) {
	.contact-layout {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------- */
/* Category grid                                       */
/* -------------------------------------------------- */
.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.category-card {
	display: flex;
	flex-direction: column;
	background: var(--pf-white);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-lg);
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 28px rgba(18, 18, 18, 0.08);
}

.category-card__image {
	aspect-ratio: 4 / 3;
	width: 100%;
	object-fit: cover;
}

.category-card__image--placeholder {
	background: linear-gradient(135deg, var(--pf-orange-soft), var(--pf-cream));
}

.category-card__name {
	padding: 16px;
	font-weight: 700;
}

/* -------------------------------------------------- */
/* Steps                                                */
/* -------------------------------------------------- */
.steps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 24px;
}

.step-card {
	background: var(--pf-cream);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-lg);
	padding: 26px;
}

.step-card__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--pf-orange);
	color: var(--pf-ink);
	font-family: var(--pf-font-display);
	font-weight: 700;
	margin-bottom: 14px;
}

.step-card p {
	color: var(--pf-muted);
	margin-bottom: 0;
}

/* -------------------------------------------------- */
/* CTA band                                             */
/* -------------------------------------------------- */
.cta-band {
	background: var(--pf-ink);
	color: var(--pf-cream);
}

.cta-band__inner {
	padding: 48px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.cta-band h2 {
	color: var(--pf-cream);
	margin-bottom: 0.3em;
}

.cta-band p {
	color: rgba(255, 247, 240, 0.75);
	margin: 0;
}

/* -------------------------------------------------- */
/* Product grid (homepage teaser)                       */
/* -------------------------------------------------- */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.product-card {
	display: flex;
	flex-direction: column;
	background: var(--pf-white);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-lg);
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 28px rgba(18, 18, 18, 0.08);
}

.product-card__image {
	aspect-ratio: 4 / 3;
	background: var(--pf-cream);
	display: block;
}

.product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card__name {
	padding: 16px 16px 4px;
	font-weight: 700;
}

.product-card__price {
	padding: 0 16px 16px;
	color: var(--pf-orange-deep);
	font-weight: 700;
}

/* -------------------------------------------------- */
/* Footer                                               */
/* -------------------------------------------------- */
.site-footer {
	background: var(--pf-white);
	border-top: 1px solid var(--pf-border);
	margin-top: 40px;
}

.site-footer__top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	padding: 56px 24px 40px;
}

.footer-brand__tag {
	display: block;
	margin-top: 8px;
	color: var(--pf-muted);
	font-size: 1.2rem;
}

.social-links {
	display: flex;
	gap: 10px;
	margin-top: 18px;
}

.social-links__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--pf-cream);
	color: var(--pf-muted);
	border: 1px solid var(--pf-border);
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-links__item svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.social-links__item:hover,
.social-links__item:focus-visible {
	background: var(--pf-orange);
	color: var(--pf-white);
	border-color: var(--pf-orange);
	transform: translateY(-2px);
}

.footer-widget__title,
.footer-col h3 {
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 14px;
}

.footer-links li,
.footer-widget ul li {
	margin-bottom: 10px;
	color: var(--pf-muted);
}

.footer-links a,
.footer-widget a {
	color: var(--pf-muted);
}

.footer-links a:hover,
.footer-widget a:hover {
	color: var(--pf-orange-deep);
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 20px 24px;
	border-top: 1px solid var(--pf-border);
	font-size: 0.85rem;
	color: var(--pf-muted-2);
}

.site-footer__right {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.footer-menu {
	display: flex;
	gap: 18px;
}

.site-footer__credit {
	margin: 0;
}

.site-footer__credit a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--pf-border);
	text-underline-offset: 2px;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
	color: var(--pf-orange-deep);
	text-decoration-color: currentColor;
}

@media (max-width: 760px) {
	.site-footer__top {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------- */
/* Generic page / post templates                        */
/* -------------------------------------------------- */
.page-wrap {
	padding: 56px 24px;
}

.page-wrap--narrow {
	max-width: 760px;
}

.page-article__header h1 {
	margin-bottom: 0.3em;
}

.page-article__thumb {
	margin: 24px 0;
	border-radius: var(--pf-radius-lg);
	overflow: hidden;
}

.page-article__content p {
	max-width: none;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin-top: 32px;
}

.post-card {
	background: var(--pf-white);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-lg);
	overflow: hidden;
}

.post-card__link {
	display: block;
}

.post-card__image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
}

.post-card__title {
	display: block;
	padding: 16px 16px 8px;
	font-weight: 700;
	font-family: var(--pf-font-display);
}

.post-card__excerpt {
	padding: 0 16px 20px;
	color: var(--pf-muted);
	font-size: 0.92rem;
}

.pagination {
	margin-top: 32px;
	display: flex;
	gap: 8px;
	justify-content: center;
}

.error-404 {
	text-align: center;
}

.error-404 .hero__actions {
	margin-top: 24px;
}

/* -------------------------------------------------- */
/* WooCommerce                                          */
/* -------------------------------------------------- */
.woocommerce-wrap {
	padding: 40px 24px 64px;
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
}

/* WooCommerce's core clearfix (content:" "; display:table) on a float
   layout becomes a real, empty grid cell once the parent is grid,
   silently shifting every product over by one column. Drop it. */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
	display: none;
}

/* WooCommerce core ships float-column widths (e.g. ul.products.columns-3
   li.product { width: 30.75% }) that out-specificity a plain theme
   override and fight the CSS Grid layout below; !important is the
   documented way to unhook WC's float grid. */
.woocommerce ul.products li.product {
	/* Chromium inserts a phantom marker box for display:list-item
	   children of a grid container, eating one grid cell; force block
	   so each product occupies exactly one column. */
	display: block;
	background: var(--pf-white);
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-lg);
	padding: 16px;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 28px rgba(18, 18, 18, 0.08);
}

.woocommerce ul.products li.product img {
	border-radius: var(--pf-radius-md);
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--pf-font-display);
	font-weight: 600;
	margin: 12px 0 4px;
}

.woocommerce ul.products li.product .price {
	color: var(--pf-orange-deep);
	font-weight: 700;
}

/* Card buttons were competing with the product photo/title for
   attention - shrink them and drop the elevated shadow so the product
   itself stays the focal point. */
.woocommerce ul.products li.product .button {
	padding: 9px 14px;
	min-height: 38px;
	font-size: 0.85rem;
	box-shadow: none;
}

.woocommerce ul.products li.product .button:hover {
	box-shadow: none;
	transform: none;
}

.woocommerce span.onsale {
	background: var(--pf-orange);
	color: var(--pf-ink);
	font-weight: 700;
	border-radius: var(--pf-radius-full);
}

.woocommerce nav.woocommerce-pagination ul {
	border: none;
	gap: 8px;
	display: flex;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-md);
}

.woocommerce div.product .woocommerce-product-rating .star-rating {
	color: var(--pf-orange);
}

/* -------------------------------------------------- */
/* Single product gallery                               */
/* -------------------------------------------------- */
.woocommerce div.product div.images {
	position: relative;
	margin-bottom: 8px;
}

/* .flex-viewport is the actual clipping box FlexSlider scrolls inside;
   fixing its size here (not the slide/img) keeps the frame identical
   no matter which photo's natural dimensions are showing. */
.woocommerce div.product div.images .flex-viewport {
	aspect-ratio: 1 / 1;
	height: auto !important;
	border-radius: var(--pf-radius-lg);
	overflow: hidden;
	border: 2px solid var(--pf-ink);
	box-shadow: 0 16px 28px rgba(18, 18, 18, 0.08);
}

/* Products with only one image skip FlexSlider entirely, so
   .flex-viewport never gets created - the wrapper sits directly under
   .woocommerce-product-gallery instead. Frame that case the same way. */
.woocommerce div.product div.images > .woocommerce-product-gallery__wrapper {
	aspect-ratio: 1 / 1;
	border-radius: var(--pf-radius-lg);
	overflow: hidden;
	border: 2px solid var(--pf-ink);
	box-shadow: 0 16px 28px rgba(18, 18, 18, 0.08);
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .woocommerce-product-gallery__image {
	height: 100%;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
	position: relative;
}

/* Percentage/intrinsic sizing on <img> loses to the image's own
   width/height attributes inside FlexSlider's floated slides, so pin
   it with absolute positioning instead - that sizing path ignores the
   image's intrinsic ratio and always fills the slide. */
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	background: var(--pf-white);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 16px;
	right: 16px;
	z-index: 3;
	box-shadow: 0 8px 16px rgba(18, 18, 18, 0.12);
	transition: transform 180ms ease, background-color 180ms ease;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger:hover {
	background: var(--pf-orange);
	transform: scale(1.06);
}

/* Thumbnails float on top of the main photo, pinned to its bottom edge,
   instead of taking a separate row underneath. */
.woocommerce div.product div.images ol.flex-control-thumbs {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.woocommerce div.product div.images ol.flex-control-thumbs li {
	width: calc(25% - 8px);
}

.woocommerce div.product div.images ol.flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--pf-radius-md);
	border: 2px solid var(--pf-white);
	opacity: 1;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(18, 18, 18, 0.22);
	transition: border-color 180ms ease, transform 180ms ease;
}

.woocommerce div.product div.images ol.flex-control-thumbs img:hover {
	transform: translateY(-2px);
}

.woocommerce div.product div.images ol.flex-control-thumbs img.flex-active {
	border-color: var(--pf-orange);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce button.button.alt,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	border: 1px solid transparent;
	border-radius: var(--pf-radius-full);
	padding: 13px 22px;
	min-height: 48px;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 44%), var(--pf-orange);
	color: var(--pf-white);
	box-shadow: var(--pf-button-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
	transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, background-color 180ms ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button:hover {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 44%), var(--pf-orange-deep);
	transform: translateY(-2px);
	box-shadow: var(--pf-button-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.woocommerce div.product form.cart .quantity input.qty {
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-md);
	padding: 10px;
	font: inherit;
}

.woocommerce table.shop_table {
	border-radius: var(--pf-radius-md);
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--pf-border);
}

.woocommerce table.shop_table th {
	background: var(--pf-cream);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--pf-orange) !important;
	border-radius: var(--pf-radius-md);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--pf-orange) !important;
}

@media (max-width: 900px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}

	.hero__actions {
		flex-direction: column;
	}

	.hero__actions .btn {
		width: 100%;
	}
}
