/* ==========================================================================
   Retails Food – About Us template
   Change the brand colours / fonts here (the variables just below) and the
   whole page follows.
   ========================================================================== */

.rf-page {
	--rf-yellow: #ffc20e;
	--rf-amber: #f2a900;
	--rf-ink: #14213d;
	--rf-text: #44546a;
	--rf-cream: #fcf8ef;
	--rf-green: #12372a;
	--rf-dark: #121212;
	--rf-head: "Poppins", "Segoe UI", system-ui, sans-serif;
	--rf-body: "Inter", "Segoe UI", system-ui, sans-serif;
	--rf-script: "Caveat", "Segoe Script", cursive;
	--rf-max: 1160px;

	font-family: var(--rf-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--rf-text);
	overflow-x: clip;
}

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

/* ---- neutralise theme spacing / widths inside the template ---- */
.rf-page.is-layout-constrained > *,
.rf-page .is-layout-constrained > * {
	max-width: none;
}
.rf-page :where(.is-layout-constrained) > * {
	margin-block-start: 0;
	margin-block-end: 0;
}
.rf-page .wp-block-columns {
	margin: 0;
	gap: 2rem;
}
.rf-page .wp-block-column {
	min-width: 0;
}
.rf-page figure {
	margin: 0;
}
.rf-page img {
	max-width: 100%;
	height: auto;
}

/* ---- section wrapper: full-bleed band, content held to --rf-max ---- */
.rf-page .rf-band {
	padding: 14px 24px;
}
.rf-page .rf-band > * {
	max-width: var(--rf-max);
	margin-left: auto !important;
	margin-right: auto !important;
}

/* ---- type ---- */
.rf-page h1,
.rf-page h2,
.rf-page h3 {
	font-family: var(--rf-head);
	color: var(--rf-ink);
	letter-spacing: -0.01em;
	margin: 0;
}

.rf-page .rf-title {
	position: relative;
	font-size: clamp(1.8rem, 3.2vw, 2.4rem);
	font-weight: 800;
	line-height: 1.15;
	padding-bottom: 22px;
	margin-bottom: 18px;
}
.rf-page .rf-title::after,
.rf-page .rf-script-label::after {
	content: "";
	position: absolute;
	left: 2px;
	bottom: 4px;
	width: 74px;
	height: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 Q35 1 97 4' fill='none' stroke='%23ffc20e' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.rf-page .rf-body {
	font-size: 0.98rem;
	line-height: 1.85;
	margin: 0 0 1.1em;
	max-width: 46ch;
}

/* ---- 1. HERO ---- */
.rf-page .rf-hero {
	background:
		radial-gradient(ellipse at 78% 40%, rgba(255, 168, 40, 0.16), transparent 55%),
		linear-gradient(100deg, #0d0d0d 0%, #16120d 55%, #261c10 100%);
	color: #fff;
	padding: 0 24px;
}
.rf-page .rf-hero-cols {
	align-items: flex-end;
	gap: 0;
}
.rf-page .rf-hero-text {
	flex: 0 0 55% !important;
	align-self: center;
	padding-top: clamp(36px, 5vw, 60px);
	padding-bottom: clamp(28px, 4vw, 56px);
	position: relative;
	z-index: 2;
}
.rf-page .rf-hero-media {
	flex: 1 1 0 !important;
}
.rf-page .rf-script-label {
	position: relative;
	display: inline-block;
	font-family: var(--rf-script);
	font-size: 2.1rem;
	font-weight: 700;
	line-height: 1;
	color: var(--rf-yellow);
	transform: rotate(-3deg);
	transform-origin: left center;
	padding-bottom: 20px;
	margin: 0 0 6px;
}
.rf-page .rf-script-label::after {
	width: 100%;
	height: 9px;
	left: 0;
	bottom: 6px;
}
.rf-page .rf-hero-title,
.rf-page .rf-hero-accent {
	font-family: var(--rf-head);
	font-size: clamp(2.3rem, 5.2vw, 4rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.02em;
	margin: 0;
}
.rf-page .rf-hero-title {
	color: #fff;
}
.rf-page .rf-hero-accent {
	color: var(--rf-yellow);
	margin-bottom: 22px;
}
.rf-page .rf-hero-lead {
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.05rem;
	line-height: 1.7;
	max-width: 44ch;
	margin: 0;
}
.rf-page .rf-hero-img img {
	display: block;
	width: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%);
	mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

/* ---- 2. OUR STORY ---- */
.rf-page .rf-story {
	padding-top: clamp(32px, 5vw, 56px);
	padding-bottom: clamp(32px, 5vw, 56px);
}
.rf-page .rf-story-cols {
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3.5rem);
}
.rf-page .rf-story-text {
	flex: 0 0 41% !important;
	padding-left: 4px;
}
.rf-page .rf-story-media {
	flex: 1 1 0 !important;
}
.rf-page .rf-story-photo {
	position: relative;
}
.rf-page .rf-photo img {
	display: block;
	width: 100%;
	border-radius: 20px;
	box-shadow: 0 18px 40px -22px rgba(20, 33, 61, 0.45);
}
.rf-page .rf-sticker {
	position: absolute;
	top: -26px;
	right: -30px;
	width: 152px;
	height: 152px;
	border-radius: 50%;
	background: var(--rf-yellow);
	border: 7px solid #fff;
	box-shadow: 0 10px 24px -10px rgba(20, 33, 61, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: rotate(-8deg);
	padding: 14px;
}
.rf-page .rf-sticker-text {
	font-family: var(--rf-script);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.05;
	text-align: center;
	color: var(--rf-ink);
	margin: 0;
}

/* ---- panels (rounded cards used by sections 3–6) ---- */
.rf-page .rf-panel {
	border-radius: 18px;
	padding: 34px 36px;
}
.rf-page .rf-panel-cream {
	background: var(--rf-cream);
}
.rf-page .rf-panel-slim {
	padding: 22px 24px;
}

/* ---- 3. WHAT WE DO ---- */
.rf-page .rf-wwd-cols {
	align-items: center;
	gap: 2.25rem;
}
.rf-page .rf-wwd-intro {
	flex: 0 0 31% !important;
}
.rf-page .rf-wwd-intro .rf-body {
	max-width: 36ch;
	margin-bottom: 0;
	font-size: 0.95rem;
}
.rf-page .rf-wwd-features {
	flex: 1 1 0 !important;
}
.rf-page .rf-features {
	gap: 0;
}
.rf-page .rf-feature {
	text-align: center;
	padding: 4px 14px;
	border-left: 1px solid rgba(20, 33, 61, 0.13);
}
.rf-page .rf-feature:first-child {
	border-left: 0;
}
.rf-page .rf-icon img,
.rf-page .rf-stat-icon img {
	width: 30px;
	height: 30px;
	display: block;
}
.rf-page .rf-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--rf-yellow);
	color: var(--rf-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
}
.rf-page .rf-feature-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 6px;
}
.rf-page .rf-feature-text {
	font-size: 0.84rem;
	line-height: 1.55;
	margin: 0;
}

/* ---- 4. OUR PROMISE ---- */
.rf-page .rf-panel-green {
	background: var(--rf-green);
	color: #fff;
	padding: 0;
	overflow: hidden;
}
.rf-page .rf-promise-cols {
	gap: 0;
	align-items: stretch;
}
.rf-page .rf-promise-media {
	flex: 0 0 45% !important;
}
.rf-page .rf-promise-media .wp-block-image,
.rf-page .rf-promise-media .rf-promise-img {
	height: 100%;
}
.rf-page .rf-promise-img img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
}
.rf-page .rf-promise-text {
	flex: 1 1 0 !important;
	padding: clamp(28px, 4vw, 44px);
	align-self: center;
}
.rf-page .rf-title-light {
	color: #fff;
}
.rf-page .rf-promise-lead {
	color: rgba(255, 255, 255, 0.94);
	font-size: 1.08rem;
	line-height: 1.75;
	max-width: 44ch;
	margin: 0 0 18px;
}
.rf-page .rf-script-tagline {
	font-family: var(--rf-script);
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--rf-yellow);
	transform: rotate(-2deg);
	transform-origin: left center;
	margin: 0;
}

/* ---- 5. STATS ---- */
.rf-page .rf-stats {
	gap: 0;
}
.rf-page .rf-stat {
	text-align: center;
	padding: 2px 12px;
	border-left: 1px solid rgba(20, 33, 61, 0.13);
}
.rf-page .rf-stat:first-child {
	border-left: 0;
}
.rf-page .rf-stat-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 4px;
}
.rf-page .rf-stat-num {
	font-family: var(--rf-head);
	font-weight: 700;
	font-size: 1.2rem;
	line-height: 1.3;
	color: var(--rf-ink);
	margin: 0;
}
.rf-page .rf-stat-label {
	font-size: 0.92rem;
	line-height: 1.4;
	margin: 0;
}

/* ---- 6. CALL-TO-ACTION BANNER ---- */
.rf-page .rf-cta {
	padding-bottom: 28px;
}
.rf-page .rf-panel-yellow {
	background: var(--rf-yellow);
	padding: 0;
	overflow: hidden;
}
.rf-page .rf-cta-cols {
	gap: 0;
	align-items: center;
}
.rf-page .rf-cta-side {
	flex: 0 0 22% !important;
	align-self: stretch;
}
.rf-page .rf-cta-side .wp-block-image,
.rf-page .rf-cta-img {
	height: 100%;
}
.rf-page .rf-cta-img img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 150px;
	object-fit: cover;
}
.rf-page .rf-cta-img-left img {
	-webkit-mask-image: linear-gradient(90deg, #000 62%, transparent);
	mask-image: linear-gradient(90deg, #000 62%, transparent);
}
.rf-page .rf-cta-img-right img {
	-webkit-mask-image: linear-gradient(270deg, #000 62%, transparent);
	mask-image: linear-gradient(270deg, #000 62%, transparent);
}
.rf-page .rf-cta-center {
	flex: 1 1 0 !important;
	text-align: center;
	padding: 26px 12px;
}
.rf-page .rf-cta-title {
	font-family: var(--rf-head);
	font-weight: 700;
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	line-height: 1.35;
	color: var(--rf-ink);
	margin: 0 0 14px;
}
.rf-page .rf-wordmark {
	font-family: var(--rf-head);
	font-weight: 800;
	font-size: 1.9rem;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--rf-ink);
	margin: 0;
}
.rf-page .rf-wordmark-sub {
	font-size: 1.5rem;
	font-weight: 700;
	opacity: 0.85;
}

/* ---- hide the theme's own page title on the generated About page ---- */
.rfat-about-page .entry-header,
.rfat-about-page .page-header,
.rfat-about-page .entry-title,
.rfat-about-page .wp-block-post-title {
	display: none;
}

/* ---- tablet ---- */
@media (max-width: 1000px) {
	.rf-page .rf-wwd-cols {
		flex-wrap: wrap !important;
	}
	.rf-page .rf-wwd-intro,
	.rf-page .rf-wwd-features {
		flex: 1 1 100% !important;
	}
	.rf-page .rf-wwd-intro .rf-body {
		max-width: none;
	}
}

/* ---- mobile (matches the WordPress column-stack breakpoint) ---- */
@media (max-width: 781px) {
	.rf-page .rf-band {
		padding-left: 16px;
		padding-right: 16px;
	}
	.rf-page .rf-hero-text,
	.rf-page .rf-hero-media,
	.rf-page .rf-story-text,
	.rf-page .rf-story-media,
	.rf-page .rf-wwd-intro,
	.rf-page .rf-wwd-features,
	.rf-page .rf-promise-media,
	.rf-page .rf-promise-text,
	.rf-page .rf-cta-center {
		flex: 1 1 100% !important;
	}
	.rf-page .rf-hero-text {
		padding-top: 8px;
	}
	.rf-page .rf-hero-img img {
		-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
		mask-image: linear-gradient(180deg, transparent 0, #000 22%);
	}
	.rf-page .rf-sticker {
		width: 124px;
		height: 124px;
		top: -18px;
		right: -6px;
	}
	.rf-page .rf-sticker-text {
		font-size: 1.2rem;
	}
	.rf-page .rf-panel {
		padding: 26px 20px;
	}
	.rf-page .rf-panel-green,
	.rf-page .rf-panel-yellow {
		padding: 0;
	}
	.rf-page .rf-features,
	.rf-page .rf-stats {
		gap: 22px;
	}
	.rf-page .rf-feature,
	.rf-page .rf-stat {
		border-left: 0;
		border-top: 1px solid rgba(20, 33, 61, 0.13);
		padding-top: 18px;
	}
	.rf-page .rf-feature:first-child,
	.rf-page .rf-stat:first-child {
		border-top: 0;
		padding-top: 4px;
	}
	.rf-page .rf-cta-side {
		display: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.rf-page .rf-photo img,
	.rf-page .rf-icon {
		transition: transform 0.25s ease;
	}
	.rf-page .rf-feature:hover .rf-icon {
		transform: translateY(-3px);
	}
}
