/*
Theme Name: Pure Harmony 2026
Description: Lightweight, dependency-free rebuild of the Pure Harmony site for Topco Associates. Replaces Bridge and WPBakery Page Builder; keeps Gravity Forms and MapGeo. No framework, no page builder, one small script.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pure-harmony
*/

/* ---------- Fonts ---------- */

@font-face {
	font-family: "Wicked Gritt";
	src: url("assets/fonts/wicked-gritt.woff") format("woff");
	font-display: swap;
}

@font-face {
	font-family: "Nunito";
	src: url("assets/fonts/nunito.woff2") format("woff2");
	font-weight: 200 1000;
	font-display: swap;
}

/* ---------- Tokens ---------- */

/* Brand colors darkened just enough to meet WCAG contrast on white:
   orange #db8336 → #c8732a (3.5:1, display sizes only),
   plate blue #529dc5 → #3a82ab, plate mauve #be90a6 → #9a6a83. */
:root {
	--ph-orange: #c8732a;
	--ph-brown: #634131;
	--ph-brown-dark: #532e1e;
	--ph-footer: #412112;
	--ph-blue: #036aae;
	--ph-plate-blue: #3a82ab;
	--ph-plate-red: #d44534;
	--ph-plate-mauve: #9a6a83;
	--ph-grey: #474747;
	--ph-white: #fff;
	--ph-font-display: "Wicked Gritt", Georgia, serif;
	--ph-font-body: "Nunito", "Helvetica Neue", Arial, sans-serif;
	--ph-max: 1180px;
	--ph-gutter: clamp(16px, 4vw, 40px);
	--ph-header-h: 110px;
}

@media (max-width: 767.98px) {
	:root {
		--ph-header-h: 76px;
	}
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--ph-header-h);
}

body {
	margin: 0;
	background: var(--ph-white);
	color: var(--ph-brown);
	font-family: var(--ph-font-body);
	font-size: 1rem;
	line-height: 1.6;
}

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

a {
	color: var(--ph-blue);
}

a:hover {
	color: var(--ph-brown-dark);
}

:focus-visible {
	outline: 3px solid var(--ph-orange);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	line-height: 1.1;
	font-weight: 400;
}

p {
	margin: 0 0 1em;
}

sup {
	font-size: 0.55em;
	line-height: 0;
}

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

.ph-skip-link:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	padding: 0.75rem 1rem;
	background: var(--ph-white);
	color: var(--ph-brown-dark);
	font-weight: 700;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.ph-container {
	width: 100%;
	max-width: var(--ph-max);
	margin: 0 auto;
	padding: 0 var(--ph-gutter);
}

/* ---------- Header ---------- */

.ph-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--ph-white);
	transition: box-shadow 0.2s ease;
}

.admin-bar .ph-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .ph-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .ph-header {
		top: 0;
	}
}

.ph-header.is-scrolled {
	box-shadow: 0 2px 12px rgba(65, 33, 18, 0.12);
}

.ph-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--ph-header-h);
}

.ph-brand img {
	width: auto;
	height: calc(var(--ph-header-h) - 20px);
}

.ph-nav__list {
	display: flex;
	gap: clamp(1.25rem, 4vw, 3.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ph-nav__list a {
	display: block;
	padding: 0.5rem 0;
	color: var(--ph-brown-dark);
	font-family: var(--ph-font-display);
	font-size: 1.15rem;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 0.04em;
	border-bottom: 3px solid transparent;
}

.ph-nav__list a:hover,
.ph-nav__list .current-menu-item > a {
	border-bottom-color: var(--ph-orange);
}

.ph-nav-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--ph-brown-dark);
	cursor: pointer;
}

.ph-nav-toggle__bars,
.ph-nav-toggle__bars::before,
.ph-nav-toggle__bars::after {
	display: block;
	width: 28px;
	height: 3px;
	margin: 0 auto;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ph-nav-toggle__bars {
	position: relative;
}

.ph-nav-toggle__bars::before,
.ph-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.ph-nav-toggle__bars::before {
	top: -9px;
}

.ph-nav-toggle__bars::after {
	top: 9px;
}

.ph-nav-toggle[aria-expanded="true"] .ph-nav-toggle__bars {
	background: transparent;
}

.ph-nav-toggle[aria-expanded="true"] .ph-nav-toggle__bars::before {
	transform: translateY(9px) rotate(45deg);
}

.ph-nav-toggle[aria-expanded="true"] .ph-nav-toggle__bars::after {
	transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 767.98px) {
	.ph-nav-toggle {
		display: block;
	}

	.ph-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ph-white);
		box-shadow: 0 8px 16px rgba(65, 33, 18, 0.12);
	}

	.js .ph-nav:not(.is-open) {
		display: none;
	}

	.ph-nav__list {
		flex-direction: column;
		gap: 0;
		padding: 0.5rem var(--ph-gutter) 1rem;
	}

	.ph-nav__list a {
		padding: 0.85rem 0;
		border-bottom: 1px solid #eadfd8;
	}
}

/* ---------- Shared type ---------- */

.ph-display {
	color: var(--ph-orange);
	font-family: var(--ph-font-display);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ph-display--xl {
	font-size: clamp(2.75rem, 7vw, 4.75rem);
}

.ph-display--lg {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.ph-display--md {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.ph-display--sm {
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.ph-kicker {
	display: block;
	color: var(--ph-grey);
	font-family: var(--ph-font-body);
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	font-weight: 900;
	text-transform: none;
	letter-spacing: 0.02em;
}

.ph-line {
	display: block;
}

.ph-lede {
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	line-height: 1.55;
}

.ph-section {
	padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.ph-split {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}

.ph-split > * {
	min-width: 0;
}

.ph-display {
	overflow-wrap: break-word;
}

@media (min-width: 768px) {
	.ph-split {
		grid-template-columns: 1fr 1fr;
	}

	.ph-split--reverse > :first-child {
		order: 2;
	}
}

.ph-btn {
	display: inline-block;
	padding: 0.8rem 1.6rem;
	background: var(--ph-brown-dark);
	color: var(--ph-white);
	font-weight: 800;
	text-decoration: none;
	border: 2px solid var(--ph-brown-dark);
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease;
}

.ph-btn:hover {
	background: var(--ph-white);
	color: var(--ph-brown-dark);
}

.ph-btn--ghost {
	background: var(--ph-white);
	color: var(--ph-brown-dark);
}

.ph-btn--ghost:hover {
	background: var(--ph-brown-dark);
	color: var(--ph-white);
}

/* ---------- Home: hero ---------- */

.ph-hero {
	position: relative;
	max-width: 1060px;
	margin: 0 auto;
	padding: 0 var(--ph-gutter);
}

.ph-hero img {
	width: 100%;
}

/* White heading over the photo, as on the Bridge site (desktop only there too). */
.ph-hero__title {
	position: absolute;
	top: clamp(0.75rem, 3vw, 2rem);
	left: var(--ph-gutter);
	right: var(--ph-gutter);
	margin: 0;
	padding: 0 1rem;
	color: var(--ph-white);
	font-family: var(--ph-font-display);
	font-size: clamp(1.5rem, 3.6vw, 2.6rem);
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

@media (max-width: 767.98px) {
	.ph-hero {
		padding: 0;
	}

	/* The mobile hero image carries its own headline. */
	.ph-hero__title {
		position: absolute !important;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
}

.ph-hero__products {
	max-width: 520px;
	margin: 1rem auto 0;
	padding: 0 var(--ph-gutter);
}

@media (min-width: 768px) {
	.ph-hero__products {
		display: none;
	}
}

/* ---------- Home: our story ---------- */

.ph-story__heading {
	margin-bottom: 1.25rem;
}

/* ---------- Home: why ---------- */

.ph-why__heading {
	text-align: center;
}

.ph-why__heading .ph-kicker {
	color: var(--ph-orange);
	font-family: var(--ph-font-display);
	font-weight: 400;
	text-transform: uppercase;
}

.ph-pillars {
	display: grid;
	gap: 2rem;
	margin: clamp(2rem, 5vw, 3.5rem) 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.ph-pillars {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ph-pillar__title {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 1rem;
	font-family: var(--ph-font-body);
	font-size: 1.3rem;
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: 0.02em;
}

.ph-pillar__title::before {
	content: "";
	flex: 0 0 52px;
	height: 52px;
	background: currentColor;
}

.ph-pillar--blue .ph-pillar__title {
	color: var(--ph-plate-blue);
}

.ph-pillar--red .ph-pillar__title {
	color: var(--ph-plate-red);
}

.ph-pillar--mauve .ph-pillar__title {
	color: var(--ph-plate-mauve);
}

.ph-note {
	font-size: 0.9rem;
	font-style: italic;
}

/* ---------- Home: feature rows (Real Meat, No, Thrive) ---------- */

.ph-feature__copy {
	position: relative;
	padding-left: 96px;
	text-align: center;
}

.ph-feature__copy::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 66px;
	background: var(--ph-plate-blue);
}

.ph-feature--red .ph-feature__copy {
	padding-left: 0;
	padding-right: 96px;
}

.ph-feature--red .ph-feature__copy::before {
	left: auto;
	right: 0;
	background: var(--ph-plate-red);
}

.ph-feature--mauve .ph-feature__copy::before {
	background: var(--ph-plate-mauve);
}

@media (max-width: 767.98px) {
	.ph-feature__copy,
	.ph-feature--red .ph-feature__copy {
		padding: 0 0 0 40px;
	}

	.ph-feature__copy::before,
	.ph-feature--red .ph-feature__copy::before {
		left: 0;
		right: auto;
		width: 18px;
	}
}

.ph-feature__copy .ph-display {
	margin: 0;
}

.ph-feature__copy .ph-display--sm {
	margin: 0.4em 0;
}

.ph-feature__media img {
	margin: 0 auto;
}

.ph-feature__img--narrow {
	max-width: min(370px, 100%);
}

/* ---------- Home: food changing guide ---------- */

.ph-guide__intro {
	align-items: start;
}

.ph-guide__heading {
	color: var(--ph-blue);
	font-family: var(--ph-font-display);
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	text-transform: uppercase;
}

.ph-guide__steps {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	margin: 2rem 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.ph-guide__steps {
		grid-template-columns: repeat(4, 1fr);
	}
}

.ph-guide__steps img {
	margin: 0 auto;
}

/* ---------- Interior pages ---------- */

.ph-page-title {
	margin: 0 0 1.5rem;
	text-align: center;
}

.ph-page-content > :last-child {
	margin-bottom: 0;
}

.ph-contact {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}

@media (min-width: 900px) {
	.ph-contact {
		grid-template-columns: 5fr 7fr;
	}
}

.ph-contact .ph-page-title {
	text-align: left;
}

.ph-address {
	margin-top: 1.25rem;
	color: var(--ph-grey);
	font-size: 1.15rem;
	font-style: normal;
	font-weight: 800;
	line-height: 1.4;
}

.ph-address a {
	color: inherit;
}

@media (max-width: 899.98px) {
	.ph-contact__media {
		order: 2;
	}
}

/* Gravity Forms: keep its own layout, match the brand */
.ph-contact .gform_wrapper input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.ph-contact .gform_wrapper textarea,
.ph-contact .gform_wrapper select {
	border: 1px solid #8a6f62;
	border-radius: 4px;
	font: inherit;
}

.ph-contact .gform_wrapper .gform_button {
	padding: 0.8rem 2rem;
	background: var(--ph-brown-dark);
	color: var(--ph-white);
	font: inherit;
	font-weight: 800;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

/* ---------- 404 ---------- */

.ph-404 {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	min-height: calc(100vh - var(--ph-header-h) - 220px);
}

@media (min-width: 768px) {
	.ph-404 {
		grid-template-columns: 5fr 6fr;
	}
}

.ph-404__media img {
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	border-radius: 50%;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: center 30%;
}

.ph-404__title {
	margin-bottom: 0.4em;
	color: var(--ph-brown-dark);
	font-family: var(--ph-font-display);
	font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.ph-404__rule {
	width: 80px;
	height: 4px;
	margin: 0 0 1.25rem;
	background: var(--ph-orange);
	border: 0;
}

.ph-404__copy a:not(.ph-btn) {
	color: var(--ph-brown-dark);
	font-weight: 700;
}

.ph-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

@media (max-width: 767.98px) {
	.ph-404__copy {
		text-align: center;
	}

	.ph-404__rule {
		margin-inline: auto;
	}

	.ph-404__actions {
		justify-content: center;
	}
}

/* ---------- Footer ---------- */

.ph-footer {
	margin-top: clamp(2rem, 5vw, 4rem);
	padding: 2rem 0 2.5rem;
	background: var(--ph-footer);
	color: var(--ph-white);
	font-size: 0.95rem;
}

.ph-footer p {
	margin: 0 0 0.35rem;
}

.ph-footer a {
	color: var(--ph-white);
}

.ph-footer a:hover {
	color: #f3c79b;
}

/* ---------- Content fallbacks (pages still holding WPBakery markup) ---------- */

.ph-vc-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin-bottom: 2rem;
}

.ph-vc-col {
	flex: 1 1 280px;
	min-width: 0;
}

.alignleft {
	float: left;
	margin: 0 1.25rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.25rem;
}

.aligncenter {
	margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
