/* Hearty Eats Blog — colours match the Hearty Eats header.
   Colours, fonts, columns and corners can be changed on the widget in Elementor (Style tab). */
:root {
	--heb-accent: #1E4D2B;
	--heb-accent-dark: #163A20;
	--heb-title: #1F2A1F;
	--heb-text: #5E6A5E;
	--heb-card-bg: #FFFFFF;
	--heb-line: #E9E1CF;
	--heb-soft: #EEF4EA;
	--heb-warm: #E8862A;
	--heb-radius: 18px;
	--heb-gap: 28px;
}
.heb-blog { font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--heb-text); }
.heb-blog *, .heb-blog *::before, .heb-blog *::after { box-sizing: border-box; }
.heb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Title band: subtle pattern behind the green */
.heb-hero { position: relative; overflow: hidden; }
.heb-hero::before,
.heb-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .09);
	pointer-events: none;
}
.heb-hero::before { width: 520px; height: 520px; left: -160px; top: -260px; }
.heb-hero::after { width: 420px; height: 420px; right: -120px; bottom: -260px; border-width: 60px; border-color: rgba(255, 255, 255, .04); }
.heb-hero > * { position: relative; z-index: 1; }

/* ---------- Toolbar: heading + search, overlapping the title band ---------- */
.heb-toolbar {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin: -34px 0 0;
	padding: 18px 18px 18px 28px;
	background: #fff;
	border: 1px solid var(--heb-line);
	border-radius: calc(var(--heb-radius) + 2px);
	box-shadow: 0 18px 40px rgba(30, 77, 43, .10);
}
.heb-toolbar__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; min-width: 0; }
.heb-heading {
	margin: 0;
	color: var(--heb-title);
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.3px;
}
.heb-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 26px;
	margin-left: 6px;
	padding: 0 9px;
	border-radius: 999px;
	background: var(--heb-soft);
	color: var(--heb-accent);
	font-size: 13px;
	font-weight: 600;
	vertical-align: 3px;
}
.heb-clear,
.heb-clear:visited { color: var(--heb-accent); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.heb-search {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 1 420px;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 5px 5px 5px 16px;
	background: #FBF7EF;
	border: 1.5px solid var(--heb-line);
	border-radius: 999px;
	color: var(--heb-text);
	transition: border-color .15s ease, background-color .15s ease;
}
.heb-search:focus-within { border-color: var(--heb-accent); background: #fff; }
.heb-search svg { flex: none; }
.heb-search input[type="search"] {
	flex: 1;
	width: 100%;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	outline: none;
	color: var(--heb-title);
	font: 400 15px/1 Poppins, system-ui, sans-serif;
}
.heb-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.heb-search button {
	flex: none;
	height: 40px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--heb-accent);
	color: #fff;
	font: 600 14px/1 Poppins, system-ui, sans-serif;
	cursor: pointer;
	transition: background-color .15s ease;
}
.heb-search button:hover,
.heb-search button:focus-visible { background: var(--heb-accent-dark); }
.heb-search button:focus-visible { outline: 2px solid var(--heb-accent); outline-offset: 2px; }

/* ---------- Topics (shown when there are 2 or more categories) ---------- */
.heb-topics { margin: 24px 0 0; }
.heb-topics ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.heb-topics li { margin: 0; }
.heb-topic,
.heb-topic:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var(--heb-line);
	border-radius: 999px;
	background: #fff;
	color: var(--heb-title);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}
.heb-topic span { color: var(--heb-text); font-size: 12px; }
.heb-topic:hover { border-color: var(--heb-accent); color: var(--heb-accent); }
.heb-topic.is-active,
.heb-topic.is-active:visited { background: var(--heb-accent); border-color: var(--heb-accent); color: #fff; }
.heb-topic.is-active span { color: rgba(255, 255, 255, .75); }

/* ---------- Covers for posts without a featured image ---------- */
.heb-cover {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--cover-bg);
	color: var(--cover-fg);
}
.heb-cover__ring {
	position: absolute;
	width: 78%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--cover-deco);
	opacity: .55;
	right: -18%;
	top: -30%;
}
.heb-cover__ring--2 { width: 46%; left: -12%; right: auto; top: auto; bottom: -22%; opacity: .4; }
.heb-cover__icon { position: relative; display: flex; transition: transform .35s ease; }
.heb-cover__icon svg { width: 34%; min-width: 64px; max-width: 132px; height: auto; }
.heb-card .heb-cover__icon svg { width: 76px; }
.heb-feature .heb-cover__icon svg { width: 128px; max-width: 128px; }
.heb-cover__brand {
	position: absolute;
	left: 18px;
	bottom: 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: -.1px;
	opacity: .7;
}

/* ---------- Large card for the latest article ---------- */
.heb-feature {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	margin-top: 32px;
	overflow: hidden;
	background: var(--heb-card-bg);
	border: 1px solid var(--heb-line);
	border-radius: var(--heb-radius);
	transition: box-shadow .2s ease;
}
.heb-feature:hover { box-shadow: 0 22px 48px rgba(30, 77, 43, .13); }
.heb-feature__media { display: block; min-height: 340px; overflow: hidden; text-decoration: none; }
.heb-feature__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.heb-feature__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 14px;
	padding: 44px 48px;
}
.heb-feature__labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.heb-feature__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--heb-warm);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.heb-feature__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.heb-feature__title {
	margin: 0;
	color: var(--heb-title);
	font-family: inherit;
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.6px;
}
.heb-feature__title a,
.heb-feature__title a:visited { color: inherit; text-decoration: none; }
.heb-feature__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.heb-feature__excerpt { margin: 0; font-size: 16px; line-height: 1.7; }
.heb-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding: 13px 24px;
	border-radius: 999px;
	background: var(--heb-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	transition: background-color .15s ease;
}
.heb-feature:hover .heb-button { background: var(--heb-accent-dark); }

/* ---------- Grid of cards ---------- */
.heb-grid {
	display: grid;
	grid-template-columns: repeat(var(--heb-cols, 3), minmax(0, 1fr));
	gap: var(--heb-gap);
	margin-top: var(--heb-gap);
}
.heb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--heb-card-bg);
	border: 1px solid var(--heb-line);
	border-radius: var(--heb-radius);
	transition: box-shadow .2s ease, transform .2s ease;
}
.heb-card:hover { box-shadow: 0 16px 36px rgba(30, 77, 43, .12); transform: translateY(-3px); }
.heb-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; text-decoration: none; }
.heb-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.heb-card:hover .heb-card__img,
.heb-feature:hover .heb-feature__img { transform: scale(1.04); }
.heb-card:hover .heb-cover__icon,
.heb-feature:hover .heb-cover__icon { transform: scale(1.06) rotate(-4deg); }
.heb-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 0; }
.heb-chip {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--heb-soft);
	color: var(--heb-accent);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.heb-card__title {
	margin: 0;
	color: var(--heb-title);
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -.15px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.heb-card__title a,
.heb-card__title a:visited { color: inherit; text-decoration: none; }
.heb-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.heb-card:hover .heb-card__title { color: var(--heb-accent); }
.heb-card__excerpt {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.heb-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	width: 100%;
	margin-top: auto;
	padding: 16px 0 18px;
	border-top: 1px solid var(--heb-line);
}
.heb-card__body > .heb-card__title + .heb-card__foot,
.heb-card__body > .heb-card__excerpt + .heb-card__foot { margin-top: auto; }
.heb-card__body::after { content: ""; display: block; flex: 0 0 4px; }
.heb-card__more { color: var(--heb-accent); font-size: 14px; font-weight: 600; white-space: nowrap; }
.heb-arrow { display: inline-block; transition: transform .2s ease; }
.heb-card:hover .heb-arrow,
.heb-feature:hover .heb-arrow { transform: translateX(4px); }
.heb-card:focus-within,
.heb-feature:focus-within { outline: 2px solid var(--heb-accent); outline-offset: 3px; }
.heb-card a:focus-visible,
.heb-feature a:focus-visible { outline: none; }

.heb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; line-height: 1.5; }
.heb-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; }

/* ---------- Page numbers ---------- */
.heb-pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 18px;
	margin-top: 52px;
}
.heb-pages__nums { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.heb-pages__num,
.heb-pages__step,
.heb-pages__num:visited,
.heb-pages__step:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--heb-line);
	border-radius: 999px;
	background: #fff;
	color: var(--heb-title);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease;
}
.heb-pages__step { padding: 0 20px; font-weight: 600; }
a.heb-pages__num:hover,
a.heb-pages__step:hover { border-color: var(--heb-accent); color: var(--heb-accent); }
.heb-pages__num.is-current { background: var(--heb-accent); border-color: var(--heb-accent); color: #fff; }
.heb-pages__step.is-disabled { opacity: .4; }
.heb-pages__gap { padding: 0 2px; color: var(--heb-text); }

.heb-empty {
	margin: 32px 0 0;
	padding: 48px 24px;
	border: 1px dashed #D9CFBA;
	border-radius: var(--heb-radius);
	background: #fff;
	color: var(--heb-text);
	text-align: center;
	font-size: 15.5px;
	line-height: 1.6;
}

/* Shop band button: keep the label on one line */
.heb-cta-button .elementor-button { white-space: nowrap; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.heb-grid { grid-template-columns: repeat(var(--heb-cols, 2), minmax(0, 1fr)); }
	.heb-feature { grid-template-columns: 1fr; }
	.heb-feature__media { min-height: 0; aspect-ratio: 16 / 8; }
	.heb-feature__body { padding: 30px 32px 34px; }
	.heb-search { flex-basis: 100%; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
	.heb-toolbar { margin-top: -28px; padding: 16px; gap: 14px; }
	.heb-heading { font-size: 19px; }
	.heb-search { padding-left: 14px; }
	.heb-search button { padding: 0 16px; }
	.heb-topics ul { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
	.heb-topics ul::-webkit-scrollbar { display: none; }
	.heb-topic { white-space: nowrap; }
	.heb-feature { margin-top: 22px; }
	.heb-feature__media { aspect-ratio: 16 / 10; }
	.heb-feature__body { padding: 22px 20px 24px; gap: 12px; }
	.heb-feature .heb-cover__icon svg { width: 96px; }
	.heb-button { width: 100%; justify-content: center; }
	.heb-grid { grid-template-columns: repeat(var(--heb-cols, 1), minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
	.heb-card__body { padding: 18px 18px 0; }
	.heb-pages { margin-top: 36px; gap: 12px; }
	.heb-pages__step { flex: 1 1 40%; }
	.heb-pages__nums { order: -1; flex-basis: 100%; }
	.heb-pages__num { min-width: 40px; height: 40px; padding: 0 10px; }
	.heb-hero::before { width: 300px; height: 300px; left: -120px; top: -160px; }
	.heb-hero::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.heb-card, .heb-card__img, .heb-feature__img, .heb-cover__icon, .heb-arrow { transition: none; }
	.heb-card:hover { transform: none; }
}
