/*
Theme Name: The Humble Goat Stead
Theme URI: https://thehumblegoatstead.ca
Description: Lean child theme of GeneratePress for The Humble Goat Stead — hand-built HTML/CSS/JS, no page builders. Farm-equipment catalog, homesteading feel. Colors and fonts from the original site.
Author: The Humble Goat Stead
Template: generatepress
Version: 1.0.8
*/

/* ================= Brand tokens ================= */
:root {
	--hgs-green:      #7A9A6A; /* primary sage */
	--hgs-green-deep: #325D1D;
	--hgs-tan:        #A68A6E; /* secondary */
	--hgs-brown:      #8E653C;
	--hgs-gold:       #F4D35E; /* accent */
	--hgs-cream:      #F5F0E8;
	--hgs-offwhite:   #FBF8F8;
	--hgs-text:       #3D3D3D;
}

/* ================= Base type ================= */
body {
	font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
	color: var(--hgs-text);
	background-color: var(--hgs-offwhite);
}
h1, h2, h3, h4, h5,
.entry-title {
	font-family: "Lora", Georgia, serif;
	color: var(--hgs-green-deep);
}
a { color: var(--hgs-green-deep); }
a:hover { color: var(--hgs-brown); }

/* Header logo — constrain the tall transparent goat so it sits inline, not full-size */
.site-header .header-image.is-logo-image,
.site-logo img,
.custom-logo,
img.custom-logo {
	max-height: 68px;
	width: auto;
}

/* Nav styling to match brand */
.main-navigation,
.site-header {
	background-color: var(--hgs-cream);
}
.main-navigation .main-nav ul li a {
	font-weight: 600;
	color: var(--hgs-green-deep);
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a {
	color: var(--hgs-brown);
}

/* ================= Buttons ================= */
.hgs-btn {
	display: inline-block;
	background-color: var(--hgs-green);
	color: #fff;
	border: 2px solid var(--hgs-green);
	border-radius: 5px;
	padding: 0.65em 1.5em;
	font-family: "Source Sans 3", sans-serif;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.2;
	transition: background-color .15s ease, color .15s ease;
}
.hgs-btn:hover { background-color: var(--hgs-green-deep); border-color: var(--hgs-green-deep); color: #fff; }
.hgs-btn--gold { background-color: var(--hgs-gold); border-color: var(--hgs-gold); color: var(--hgs-text); }
.hgs-btn--gold:hover { background-color: var(--hgs-brown); border-color: var(--hgs-brown); color: #fff; }
.hgs-btn--ghost { background: transparent; color: #fff; }
.hgs-btn--ghost:hover { background: #fff; color: var(--hgs-green-deep); border-color: #fff; }

/* ================= Full-bleed helper ================= */
.hgs-fullbleed {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}
.hgs-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ================= Homepage ================= */
.hgs-hero {
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
	padding: 6rem 20px;
	position: relative;
}
.hgs-hero::before {
	content: "";
	position: absolute; inset: 0;
	background: rgba(20, 30, 15, 0.45);
}
.hgs-hero > * { position: relative; z-index: 1; }
.hgs-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 .5rem; max-width: 900px; margin-inline: auto; }
.hgs-hero p  { font-size: 1.2rem; max-width: 680px; margin: 0 auto 1.5rem; }
.hgs-hero .hgs-btn { margin: .35rem; }

/* Brand banner strip (below hero) */
.hgs-bannerstrip { text-align: center; padding: 2rem 20px 0.5rem; }
.hgs-banner-img {
	display: block;
	width: 100%;
	max-width: 1100px;
	height: auto;
	margin: 0 auto;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.hgs-section { padding: 3.5rem 0; }
.hgs-section--cream { background: var(--hgs-cream); }
.hgs-section--green { background: var(--hgs-green-deep); color: #fff; }
.hgs-section--green h2 { color: #fff; }
.hgs-section h2.hgs-section-title { text-align: center; margin-top: 0; font-size: 1.9rem; }
.hgs-section .hgs-lead { text-align: center; max-width: 720px; margin: 0 auto 2rem; }

/* Category tiles */
.hgs-cats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1.25rem;
	margin: 0 0 2rem;
}
.hgs-cat {
	background: #fff;
	border: 1px solid var(--hgs-cream);
	border-radius: 8px;
	padding: 1.5rem 1.25rem;
	text-align: center;
	text-decoration: none;
	color: var(--hgs-text);
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
	transition: transform .15s ease, box-shadow .15s ease;
	display: block;
}
.hgs-cat:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1); color: var(--hgs-text); }
.hgs-cat strong { display: block; font-family: "Lora", serif; color: var(--hgs-green-deep); font-size: 1.15rem; margin-bottom: .35rem; }
.hgs-cat span { font-size: .95rem; }

/* About strip */
.hgs-about { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; }
.hgs-about img { max-width: 100%; height: auto; }
.hgs-about h2 { margin-top: 0; }
@media (max-width: 700px) { .hgs-about { grid-template-columns: 1fr; text-align: center; } .hgs-about img { max-width: 180px; margin: 0 auto; } }

/* Contact band */
.hgs-contact-band { text-align: center; }
.hgs-contact-band h2 { color: #fff; margin-top: 0; }
.hgs-contact-band p { font-size: 1.1rem; }
.hgs-contact-band a { color: var(--hgs-gold); }

/* ================= Category landing tiles ================= */
.hgs-catgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}
.hgs-catcard {
	background: #fff;
	border: 1px solid var(--hgs-cream);
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: var(--hgs-text);
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
	transition: transform .15s ease, box-shadow .15s ease;
}
.hgs-catcard:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); color: var(--hgs-text); }
.hgs-catcard__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hgs-cream); }
.hgs-catcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hgs-catcard__count {
	position: absolute; bottom: .5rem; right: .5rem;
	background: rgba(50, 93, 29, 0.9); color: #fff;
	font-size: .8rem; font-weight: 700; padding: .2em .7em; border-radius: 20px;
}
.hgs-catcard__body { padding: 1rem 1.2rem 1.25rem; }
.hgs-catcard__name { font-family: "Lora", serif; font-size: 1.2rem; color: var(--hgs-green-deep); margin: 0 0 .2rem; }
.hgs-catcard__more { font-size: .9rem; font-weight: 600; color: var(--hgs-brown); }

/* ================= Amazon "gear we use" ================= */
.hgs-disclosure {
	background: var(--hgs-cream);
	border-left: 4px solid var(--hgs-gold);
	padding: .8rem 1.1rem;
	border-radius: 4px;
	font-size: .9rem;
	margin: 1.25rem 0 2rem;
}
.hgs-gear-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
	margin: 1.5rem 0;
}
.hgs-gear {
	background: #fff;
	border: 1px solid var(--hgs-cream);
	border-radius: 8px;
	padding: 1.4rem 1.3rem 1.5rem;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
	transition: transform .15s ease, box-shadow .15s ease;
}
.hgs-gear:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.hgs-gear__icon { font-size: 2rem; line-height: 1; }
.hgs-gear h3 { font-family: "Lora", serif; font-size: 1.2rem; margin: .5rem 0 .4rem; }
.hgs-gear p { flex: 1; font-size: .93rem; color: #555; margin: 0 0 1.1rem; }
.hgs-gear .hgs-btn { align-self: flex-start; }

/* ================= Catalog grid ================= */
.hgs-catalog-header { text-align: center; margin-bottom: 1.5rem; }
.hgs-catalog-header h1 { margin-bottom: .3rem; }
.hgs-catalog-header p { max-width: 700px; margin: 0 auto; }

.hgs-filter {
	display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
	margin: 1.5rem 0 2rem; padding: 0; list-style: none;
}
.hgs-filter button {
	background: #fff; border: 1px solid var(--hgs-tan); color: var(--hgs-green-deep);
	border-radius: 20px; padding: .35em 1em; font-size: .9rem; font-weight: 600; cursor: pointer;
	font-family: "Source Sans 3", sans-serif;
}
.hgs-filter button:hover { background: var(--hgs-cream); }
.hgs-filter button.is-active { background: var(--hgs-green); color: #fff; border-color: var(--hgs-green); }

.hgs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5rem;
}
.hgs-card {
	background: #fff;
	border: 1px solid var(--hgs-cream);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
	transition: transform .15s ease, box-shadow .15s ease;
}
.hgs-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.hgs-card__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--hgs-cream); }
.hgs-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hgs-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.hgs-card__title { font-family: "Lora", serif; font-size: 1.1rem; margin: 0 0 .4rem; line-height: 1.25; }
.hgs-card__title a { color: var(--hgs-green-deep); text-decoration: none; }
.hgs-card__excerpt { font-size: .92rem; color: #555; margin: 0 0 1rem; flex: 1; }
.hgs-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }

/* ================= Badges ================= */
.hgs-badge { display: inline-block; border-radius: 4px; padding: .25em .7em; font-size: .8rem; font-weight: 700; }
.hgs-badge--stock { background: var(--hgs-green); color: #fff; }
.hgs-badge--order { background: var(--hgs-cream); color: var(--hgs-brown); border: 1px solid var(--hgs-tan); }

/* ================= Single product ================= */
.hgs-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
@media (max-width: 800px) { .hgs-product { grid-template-columns: 1fr; gap: 1.5rem; } }
.hgs-product__media img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--hgs-cream); }
.hgs-product__title { margin: .2rem 0 .6rem; }
.hgs-product__desc { margin: 1.2rem 0; }
.hgs-specs { background: var(--hgs-cream); border-left: 4px solid var(--hgs-green); padding: 1rem 1rem 1rem 2.2rem; border-radius: 4px; }
.hgs-specs h2 { margin-top: 0; font-size: 1.15rem; }

.hgs-cta {
	margin-top: 1.5rem; padding: 1.5rem; background: var(--hgs-cream);
	border: 1px solid var(--hgs-tan); border-radius: 8px; text-align: center;
}
.hgs-cta h2 { margin-top: 0; font-size: 1.3rem; }
.hgs-cta .hgs-btn { margin: .3rem; }
.hgs-backlink { display: inline-block; margin-bottom: 1rem; font-weight: 600; }

/* ================= Blog cards (Fencing Guides on home) ================= */
.hgs-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.hgs-post { background: #fff; border: 1px solid var(--hgs-cream); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.hgs-post__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hgs-cream); }
.hgs-post__img img { width: 100%; height: 100%; object-fit: cover; }
.hgs-post__body { padding: 1rem 1.1rem 1.2rem; }
.hgs-post__body h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.hgs-post__body h3 a { text-decoration: none; }

/* Mobile: 2-up category tiles + gear cards (Rick sign-off scroll, 2026-07-08; overflow fix v1.0.7) */
@media (max-width: 700px) {
	.hgs-cats,
	.hgs-catgrid,
	.hgs-gear-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}
	.hgs-gear { padding: 1rem .9rem 1.1rem; }
}
