/* Greenry Enthusiast — custom homepage (front-page.php only) */

.ge-home {
	--ge-forest: #13612e;
	--ge-forest-dark: #0c3d1e;
	--ge-forest-light: #1f7a3f;
	--ge-sage: #eaf3ea;
	--ge-terracotta: #c2603c;
	--ge-terracotta-dark: #a8492b;
	--ge-gold: #eea23b;
	--ge-cream: #fbf7ef;
	--ge-ink: #16281c;
	--ge-slate: #55655b;
	--ge-sky: #2f6690;
	--ge-radius: 18px;
	--ge-shadow: 0 10px 30px rgba(19, 97, 46, 0.10);
	--ge-shadow-lg: 0 20px 45px rgba(13, 40, 20, 0.16);
	background: var(--ge-cream);
	color: var(--ge-ink);
	overflow-x: clip;
}
.ge-home * { box-sizing: border-box; }
.ge-wrap { max-width: 1290px; margin: 0 auto; padding: 0 1.5rem; }
.ge-home img { max-width: 100%; display: block; }
.ge-home a { text-decoration: none; }

/* ---------- Hero (real photo background) ---------- */
/* The hero photo is the LCP element on the front page. It used to be set as an
   inline style attribute at full size, so phones downloaded the 1200px file
   (403 KB) to paint a strip a few hundred pixels wide. Serving the 768px
   version there instead costs 173 KB — 230 KB less on the one image that
   decides the LCP score. */
.ge-hero--photo {
	position: relative;
	background-image: url("../../../../uploads/2026/06/Large-Outdoor-Planters-Ideas-.webp");
	background-size: cover;
	background-position: center;
	padding: 5.5rem 0;
	min-height: 520px;
	display: flex;
	align-items: center;
}
@media (max-width: 782px) {
	.ge-hero--photo {
		background-image: url("../../../../uploads/2026/06/Large-Outdoor-Planters-Ideas--768x573.webp");
	}
}
.ge-hero--photo::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(12,61,30,0.88) 0%, rgba(12,61,30,0.55) 45%, rgba(12,61,30,0.15) 75%);
}
.ge-hero__inner { position: relative; z-index: 1; }
.ge-hero__content { max-width: 640px; }
.ge-hero__title {
	color: #fff;
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	line-height: 1.1;
	font-weight: 800;
	margin: 0 0 1.2rem;
	letter-spacing: -0.01em;
}
.ge-hero__title em {
	font-style: normal;
	background: linear-gradient(120deg, var(--ge-gold), #ffe1a8);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ge-hero__lead { color: #eef5ef; font-size: 1.08rem; line-height: 1.65; max-width: 50ch; margin: 0 0 2rem; }
.ge-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.ge-btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .9rem 1.6rem; border-radius: 10px;
	font-weight: 700; font-size: .98rem;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
	white-space: nowrap;
}
.ge-btn--primary,
.ge-btn--primary:visited { background: var(--ge-forest); color: #fff; box-shadow: 0 10px 22px rgba(19,97,46,0.35); }
.ge-btn--primary:hover,
.ge-btn--primary:focus,
.ge-btn--primary:active { transform: translateY(-2px); background: var(--ge-forest-light); color: #fff; }
.ge-btn--ghost,
.ge-btn--ghost:visited { background: rgba(255,255,255,0.08); color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.ge-btn--ghost:hover,
.ge-btn--ghost:focus,
.ge-btn--ghost:active { background: rgba(255,255,255,0.2); transform: translateY(-2px); color: #fff; }

/* ---------- Trust bar ---------- */
.ge-trust-bar { background: var(--ge-cream); border-bottom: 1px solid #eee3cd; padding: 1.6rem 0; }
.ge-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ge-trust-item { display: flex; align-items: center; gap: .8rem; font-size: .9rem; color: var(--ge-slate); line-height: 1.4; }
.ge-trust-item strong { color: var(--ge-ink); font-size: .95rem; }
.ge-trust-item__icon { flex: none; width: 26px; height: 26px; color: var(--ge-forest); }

/* ---------- Sections ---------- */
.ge-section { padding: 4rem 0; }
.ge-section--tight { padding: 3.5rem 0; }
.ge-section--tint { background: var(--ge-sage); }
.ge-section__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; margin: 0 0 .5rem; color: var(--ge-ink); }
.ge-section__title--sm { font-size: 1.2rem; }
.ge-section__lead { color: var(--ge-slate); font-size: 1rem; line-height: 1.6; margin: 0 0 1rem; }
.ge-section__inline-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.4rem; }
.ge-view-all { font-weight: 700; font-size: .88rem; color: var(--ge-forest); }
.ge-view-all:hover { text-decoration: underline; }

/* ---------- Topic cards (photo + overlapping icon) ---------- */
/* Flex rather than grid so an incomplete final row centres instead of leaving a
   gap on the right. The card count changes as categories are added or removed. */
.ge-topics-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.ge-topics-grid > .ge-topic-card { flex: 0 1 calc((100% - 3.2rem) / 3); }
.ge-topic-card {
	background: #fff; border-radius: var(--ge-radius); overflow: visible;
	box-shadow: var(--ge-shadow); border: 1px solid #eef2ec;
	display: block; transition: transform .2s ease, box-shadow .2s ease;
}
.ge-topic-card:hover { transform: translateY(-6px); box-shadow: var(--ge-shadow-lg); }
.ge-topic-card__photo { position: relative; display: block; aspect-ratio: 4/3; border-radius: var(--ge-radius) var(--ge-radius) 0 0; overflow: hidden; }
.ge-topic-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.ge-topic-card__icon {
	position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
	width: 52px; height: 52px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #fff; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.ge-topic-card__icon svg { width: 24px; height: 24px; }
.ge-topic-card__body { display: block; padding: 2.2rem 1.4rem 1.6rem; text-align: center; }
.ge-topic-card__title { font-size: 1.1rem; font-weight: 800; margin: 0 0 .4rem; color: var(--ge-ink); }
.ge-topic-card__desc { color: var(--ge-slate); font-size: .9rem; line-height: 1.5; margin: 0 0 .7rem; }
.ge-topic-card__link { font-size: .86rem; font-weight: 700; color: var(--ge-forest); }
.ge-topic-card:hover .ge-topic-card__link { text-decoration: underline; }

.ge-icon--gardening, .ge-icon--calc { background: linear-gradient(135deg,#2f6690,#1c4363); }
.ge-icon--plants { background: linear-gradient(135deg,#5cb06e,#13612e); }
.ge-icon--lawn-care { background: linear-gradient(135deg,#9ed15e,#4f9a5f); }
.ge-icon--landscaping { background: linear-gradient(135deg,#4bc0a3,#13612e); }
.ge-icon--power-equipment { background: linear-gradient(135deg,#7c8a99,#3d4a58); }

/* ---------- Calculators band ---------- */
.ge-calc-band { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: center; }
.ge-calc-band .ge-btn { margin-top: .4rem; }
.ge-calc-strip { display: flex; flex-direction: column; gap: .8rem; }
.ge-calc-card {
	background: #fff; border-radius: 14px; padding: 1rem 1.2rem;
	border: 1px solid #eef2ec; box-shadow: var(--ge-shadow);
	display: flex; align-items: center; gap: 1rem;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ge-calc-card:hover { transform: translateX(4px); box-shadow: var(--ge-shadow-lg); }
.ge-calc-card__icon { flex: none; width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; }
.ge-calc-card__icon svg { width: 22px; height: 22px; }
.ge-calc-card__title { font-size: .92rem; font-weight: 700; color: var(--ge-ink); }

/* ---------- Latest Articles + Editor's Picks ---------- */
.ge-split-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 2.75rem; align-items: start; }
.ge-articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.ge-article-card {
	background: #fff; border-radius: var(--ge-radius); overflow: hidden;
	box-shadow: var(--ge-shadow); border: 1px solid #eef2ec;
	display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.ge-article-card:hover { transform: translateY(-5px); box-shadow: var(--ge-shadow-lg); }
.ge-article-card__thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ge-sage); }
.ge-article-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ge-article-card__cat {
	position: absolute; left: .8rem; top: .8rem;
	background: rgba(19,97,46,0.92); color: #fff; font-size: .68rem; font-weight: 700;
	padding: .28rem .65rem; border-radius: 999px; letter-spacing: .02em;
}
.ge-article-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ge-article-card__title { font-size: 1rem; font-weight: 800; line-height: 1.35; margin: 0; color: var(--ge-ink); }
.ge-article-card__title a { color: inherit; }
.ge-article-card__title a:hover { color: var(--ge-forest); }
.ge-article-card__meta { font-size: .76rem; color: var(--ge-terracotta-dark); font-weight: 700; }

.ge-picks-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.ge-pick-item { position: relative; display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid #eef2ec; border-radius: 14px; padding: .7rem; box-shadow: var(--ge-shadow); }
.ge-pick-item__thumb { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--ge-sage); }
.ge-pick-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ge-pick-item__num {
	position: absolute; left: -.5rem; top: -.5rem; width: 22px; height: 22px; border-radius: 50%;
	background: var(--ge-forest); color: #fff; font-size: .72rem; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.ge-pick-item__title { font-size: .92rem; font-weight: 700; color: var(--ge-ink); line-height: 1.35; }
.ge-pick-item__title:hover { color: var(--ge-forest); }

/* ---------- Trending / Quote / Newsletter ---------- */
.ge-split-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: stretch; }
.ge-split-3__col { background: #fff; border-radius: var(--ge-radius); padding: 1.8rem; box-shadow: var(--ge-shadow); border: 1px solid #eef2ec; }

.ge-trending-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.ge-trending-item { display: flex; align-items: center; gap: .9rem; }
.ge-trending-item__thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--ge-sage); }
.ge-trending-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ge-trending-item__title { font-size: .92rem; font-weight: 700; color: var(--ge-ink); line-height: 1.35; }
.ge-trending-item__title:hover { color: var(--ge-forest); }

.ge-split-3__col:has(.ge-quote-block) { background: linear-gradient(135deg, var(--ge-forest-dark), var(--ge-forest)); border: none; display: flex; align-items: center; }
.ge-quote-block { margin: 0; }
.ge-quote-block p { color: #fff; font-size: 1.25rem; font-weight: 700; line-height: 1.45; font-style: italic; margin: 0 0 1rem; }
.ge-quote-block cite { color: #cfe8d4; font-size: .9rem; font-style: normal; font-weight: 600; }

.ge-newsletter__form { display: flex; gap: .6rem; margin: 1rem 0 .6rem; }
.ge-newsletter__form input { flex: 1; min-width: 0; padding: .8rem 1rem; border-radius: 10px; border: 1px solid #ddd; font-size: .92rem; }
.ge-newsletter__note { font-size: .78rem; color: var(--ge-slate); margin: 0 0 1rem; }
.ge-newsletter__status { font-size: .88rem; font-weight: 700; padding: .6rem .9rem; border-radius: 10px; margin: 0 0 .9rem; }
.ge-newsletter__status--ok { background: #e3f3e6; color: var(--ge-forest); }
.ge-newsletter__status--err { background: #fdeceb; color: var(--ge-terracotta-dark); }
.ge-newsletter__image { border-radius: 12px; aspect-ratio: 16/10; object-fit: cover; }

/* ---------- Info band ---------- */
.ge-info-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.ge-info-card { text-align: center; padding: 0 .5rem; }
.ge-info-card__icon {
	width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem;
	display: flex; align-items: center; justify-content: center; color: #fff;
	background: linear-gradient(135deg, var(--ge-forest-light), var(--ge-forest));
	box-shadow: 0 10px 20px rgba(19,97,46,0.25);
}
.ge-info-card__icon svg { width: 26px; height: 26px; }
.ge-info-card__avatars { display: flex; justify-content: center; margin-bottom: 1rem; }
.ge-info-card__avatars img.ge-avatar { border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.15); margin-left: -12px; }
.ge-info-card__avatars img.ge-avatar:first-child { margin-left: 0; }
.ge-info-card__title { font-weight: 800; font-size: 1.02rem; margin: 0 0 .45rem; color: var(--ge-ink); }
.ge-info-card__desc { color: var(--ge-slate); font-size: .88rem; line-height: 1.55; margin: 0 0 .5rem; }
.ge-info-card__link { font-size: .84rem; font-weight: 700; color: var(--ge-forest); }
.ge-info-card__link:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.ge-hero__content { max-width: 100%; }
	.ge-articles-grid { grid-template-columns: repeat(2, 1fr); }
	.ge-topics-grid > .ge-topic-card { flex-basis: calc((100% - 1.6rem) / 2); }
	.ge-calc-band, .ge-split-2, .ge-split-3 { grid-template-columns: 1fr; }
	.ge-trust-grid, .ge-info-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.ge-section, .ge-section--tight { padding: 2.75rem 0; }
	.ge-articles-grid, .ge-trust-grid, .ge-info-band { grid-template-columns: 1fr; }
	.ge-topics-grid > .ge-topic-card { flex-basis: 100%; }
	.ge-hero--photo { min-height: 0; padding: 3.5rem 0; }
	.ge-newsletter__form { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
	.ge-home { --ge-cream: #10241a; --ge-ink: #eaf3ea; --ge-slate: #a9c2ac; }
	.ge-topic-card, .ge-article-card, .ge-calc-card, .ge-pick-item, .ge-split-3__col { background: #16301f; border-color: #1f3d28; }
	.ge-section--tint, .ge-trust-bar { background: #0d2016; border-color: #16301f; }
	.ge-newsletter__form input { background: #16301f; border-color: #1f3d28; color: #eaf3ea; }
}
