/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* Takoma Gardener storefront review styles. Keep the page editor-owned; this
 * file provides the shared visual language and responsive guardrails. */
:root {
	--tg-cream: #f7f5ee;
	--tg-surface: #ffffff;
	--tg-forest: #244b36;
	--tg-text: #24382b;
	--tg-muted: #667064;
	--tg-accent: #ad6946;
	--tg-border: #dee3d8;
}

body {
	background: var(--tg-cream);
	color: var(--tg-text);
}


a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.wp-element-button:focus-visible {
	border-radius: 3px;
	box-shadow: 0 0 0 3px var(--tg-cream), 0 0 0 5px var(--tg-accent) !important;
	outline: 0;
}

/* Shared Blocksy chrome. The theme settings remove the old demo elements;
 * these selectors keep the active header and cart/search controls cohesive. */
#header,
.ct-header {
	background: var(--tg-cream);
}

.ct-header [data-row="middle-row"] {
	border-bottom: 1px solid var(--tg-border);
}

.ct-header .site-title,
.ct-header .site-description,
.ct-header .custom-logo-link + .site-title {
	color: var(--tg-forest);
}

.ct-header .ct-header-search,
.ct-header .ct-search-box {
	border-color: var(--tg-border);
}

.ct-header a:hover,
.ct-header a:focus-visible {
	color: var(--tg-accent);
}

.ct-header .current-menu-item > a,
.ct-header .current-menu-ancestor > a {
	color: var(--tg-forest) !important;
}

.tg-home {
	box-sizing: border-box;
	color: var(--tg-text);
	overflow: hidden;
}

.tg-home > .wp-block-group {
	box-sizing: border-box;
}

.tg-hero {
	padding: clamp(3.5rem, 8vw, 7.5rem) max(1.25rem, 4vw);
}

.tg-hero__grid {
	align-items: center;
	column-gap: clamp(2rem, 6vw, 6rem);
	display: grid !important;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	margin: 0 auto !important;
	max-width: 1240px;
}

.tg-hero__grid > .wp-block-column,
.tg-category-grid > .wp-block-column,
.tg-task-grid > .wp-block-column {
	box-sizing: border-box;
	flex-basis: auto !important;
	margin: 0 !important;
	min-width: 0;
	width: auto !important;
}

.tg-hero__copy {
	max-width: 550px;
}

.tg-kicker {
	color: var(--tg-accent);
	font-size: 0.73rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.tg-hero__title {
	color: var(--tg-forest);
	font-size: clamp(3rem, 5vw, 4.9rem);
	line-height: 0.98;
	margin: 0;
	max-width: 720px;
}

.tg-hero__lede {
	color: var(--tg-muted);
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.65;
	margin: 1.75rem 0 0;
	max-width: 520px;
}

.tg-hero__actions {
	align-items: center;
	gap: 0.75rem;
	margin: 2rem 0 0 !important;
}

.tg-hero__actions .wp-block-button__link,
.tg-products .wc-block-components-product-button__button {
	background: var(--tg-forest);
	border: 1px solid var(--tg-forest);
	border-radius: 2px;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	min-height: 44px;
	padding: 0.7rem 1.25rem;
}

.tg-hero__actions .is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--tg-forest) !important;
	color: var(--tg-forest) !important;
}

.tg-hero__actions .wp-block-button__link:hover,
.tg-products .wc-block-components-product-button__button:hover {
	background: var(--tg-accent);
	border-color: var(--tg-accent);
	color: #fff;
}

.tg-demo-note {
	border-left: 2px solid var(--tg-accent);
	color: var(--tg-muted);
	font-size: 0.86rem;
	line-height: 1.5;
	margin: 2rem 0 0;
	max-width: 460px;
	padding-left: 0.8rem;
}

.tg-hero__image {
	margin: 0 !important;
}

.tg-hero__image img {
	aspect-ratio: 3 / 2;
	border-radius: 4px;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.tg-section {
	box-sizing: border-box;
	margin: 0 auto !important;
	max-width: 1240px;
	padding: clamp(3.5rem, 7vw, 6.5rem) max(1.25rem, 4vw);
}

.tg-section__title {
	color: var(--tg-forest);
	font-size: clamp(2.25rem, 4vw, 4rem);
	line-height: 1.05;
	margin: 0;
}

.tg-section__intro {
	color: var(--tg-muted);
	font-size: 1.02rem;
	line-height: 1.65;
	margin: 1rem 0 2.5rem !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 540px;
}

.tg-category-grid,
.tg-task-grid {
	display: grid !important;
	gap: 1rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 2.25rem 0 0 !important;
}

.tg-category-card,
.tg-task-card {
	background: var(--tg-surface);
	border: 1px solid var(--tg-border);
	box-sizing: border-box;
	height: 100%;
	padding: clamp(1.25rem, 2vw, 2rem);
}

.tg-category-card {
	min-height: 215px;
}

.tg-card-number {
	color: var(--tg-accent);
	font-size: 0.77rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 2.8rem;
}

.tg-category-card h3,
.tg-task-card h3 {
	font-size: clamp(1.35rem, 2vw, 1.8rem);
	line-height: 1.1;
	margin: 0;
}

.tg-category-card h3 a,
.tg-task-card h3 a {
	color: var(--tg-forest);
	text-decoration: none;
}

.tg-category-card h3 a:hover,
.tg-category-card h3 a:focus-visible,
.tg-task-card h3 a:hover,
.tg-task-card h3 a:focus-visible {
	color: var(--tg-accent);
}

.tg-category-card p:not(.tg-card-number),
.tg-task-card > p:not(.tg-arrow-link) {
	color: var(--tg-muted);
	font-size: 0.92rem;
	line-height: 1.55;
	margin: 0.85rem 0 0;
}

.tg-featured {
	max-width: 1320px;
}

.tg-products {
	margin: 0 !important;
	max-width: 1240px;
}

.tg-products .wc-block-product-template {
	display: grid !important;
	gap: clamp(1rem, 2.4vw, 2rem) !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	margin: 0 !important;
}

.tg-products .wc-block-grid__product,
.tg-products .wc-block-product {
	background: transparent;
	border: 0;
	box-sizing: border-box;
	min-width: 0;
	padding: 0;
	width: 100% !important;
}

.tg-products .wc-block-components-product-image {
	background: #ece9df;
	border-radius: 2px;
	overflow: hidden;
}

.tg-products .wc-block-components-product-image img {
	aspect-ratio: 1;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.tg-products .wc-block-components-product-title,
.tg-products .wp-block-post-title,
.tg-products .wc-block-components-product-price {
	color: var(--tg-text);
	font-family: Georgia, "Times New Roman", serif;
}

.tg-products .wc-block-components-product-title,
.tg-products .wp-block-post-title {
	font-size: 1.1rem;
	line-height: 1.2;
	margin-top: 1rem;
	min-height: 2.4em;
}

.tg-products .wc-block-components-product-title a,
.tg-products .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.tg-products .wc-block-components-product-price {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	margin-top: 0.35rem;
}

.tg-products .wc-block-components-product-button {
	margin-top: 0.75rem;
}

.tg-products .wc-block-components-product-button__button {
	font-size: 0.82rem;
	min-height: 42px;
	padding: 0.6rem 0.9rem;
}

.tg-tasks {
	background: #e8eee6;
	max-width: none;
}

.tg-tasks > * {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 1160px;
}

.tg-task-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-task-card {
	background: transparent;
	border-color: rgba(36, 75, 54, 0.22);
	min-height: 205px;
}

.tg-task-card h3 {
	font-size: clamp(1.5rem, 2.6vw, 2.25rem);
}

.tg-arrow-link {
	font-size: 0.88rem;
	font-weight: 700;
	margin: 1.75rem 0 0 !important;
}

.tg-arrow-link a {
	color: var(--tg-forest);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.tg-about {
	padding-bottom: clamp(4rem, 8vw, 8rem);
	padding-top: clamp(4rem, 8vw, 8rem);
}

.tg-about__copy {
	color: var(--tg-muted);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 2.6vw, 2.15rem);
	line-height: 1.35;
	margin: 1.5rem 0 0;
	max-width: 900px;
}

.tg-footer {
	box-sizing: border-box;
	color: var(--tg-cream);
	margin: 0 !important;
	max-width: none;
	padding: clamp(3.5rem, 7vw, 6rem) max(1.25rem, 4vw) 1.5rem;
}

.tg-footer__grid {
	box-sizing: border-box;
	display: grid;
	gap: clamp(2rem, 5vw, 6rem);
	grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.7fr));
	margin: 0 auto !important;
	max-width: 1160px;
}

.tg-footer__grid > .wp-block-column {
	margin: 0 !important;
	min-width: 0;
}

.tg-footer h2,
.tg-footer h3 {
	color: var(--tg-cream);
	margin: 0;
}

.tg-footer h2 {
	font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.tg-footer h3 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.78rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.tg-footer p,
.tg-footer li {
	color: rgba(247, 245, 238, 0.78);
	font-size: 0.9rem;
	line-height: 1.6;
}

.tg-footer__brand > p:first-of-type {
	font-size: 1rem;
	max-width: 290px;
}

.tg-footer__demo,
.tg-footer__fineprint {
	color: rgba(247, 245, 238, 0.56) !important;
	font-size: 0.78rem !important;
}

.tg-footer ul {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.tg-footer__search {
	margin-top: 1.25rem;
	max-width: 310px;
}

.tg-footer__search label {
	color: rgba(247, 245, 238, 0.78);
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	margin-bottom: 0.45rem;
}

.tg-footer__search-row {
	display: flex;
}

.tg-footer__search input[type="search"] {
	background: rgba(247, 245, 238, 0.1);
	border: 1px solid rgba(247, 245, 238, 0.42);
	border-radius: 2px 0 0 2px;
	box-sizing: border-box;
	color: var(--tg-cream);
	font: inherit;
	min-width: 0;
	padding: 0.68rem 0.7rem;
	width: 100%;
}

.tg-footer__search input[type="search"]::placeholder {
	color: rgba(247, 245, 238, 0.56);
}

.tg-footer__search button {
	background: var(--tg-accent);
	border: 1px solid var(--tg-accent);
	border-radius: 0 2px 2px 0;
	color: #fff;
	cursor: pointer;
	font: 700 0.78rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	flex-shrink: 0;
	min-width: 76px;
	padding: 0.68rem 0.8rem;
	white-space: nowrap;
}

.tg-footer li + li {
	margin-top: 0.45rem;
}

.tg-footer a {
	color: var(--tg-cream);
	text-decoration-color: rgba(247, 245, 238, 0.45);
	text-underline-offset: 0.2em;
}

.tg-footer a:hover,
.tg-footer a:focus-visible {
	color: #fff;
	text-decoration-color: currentColor;
}

.tg-footer__rule {
	border-color: rgba(247, 245, 238, 0.2);
	margin: clamp(2.5rem, 5vw, 4.5rem) auto 1.25rem !important;
	max-width: 1160px;
}

.tg-footer__copyright {
	font-size: 0.76rem !important;
	margin: 0 auto !important;
	max-width: 1160px;
}

@media (max-width: 900px) {
	.tg-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 2.5rem;
	}

	.tg-hero__copy {
		max-width: 680px;
	}

	.tg-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tg-products .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.tg-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tg-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.tg-hero,
	.tg-section {
		padding-left: 1.1rem;
		padding-right: 1.1rem;
	}

	.tg-hero {
		padding-bottom: 3.5rem;
		padding-top: 3.5rem;
	}

	.tg-hero__title {
		font-size: clamp(2.75rem, 13vw, 4.3rem);
	}

	.tg-hero__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.tg-hero__actions .wp-block-button,
	.tg-hero__actions .wp-block-button__link {
		box-sizing: border-box;
		text-align: center;
		width: 100%;
	}

	.tg-category-grid,
	.tg-products .wc-block-product-template {
		gap: 0.8rem !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.tg-task-grid {
		gap: 0.8rem !important;
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.tg-category-card,
	.tg-task-card {
		min-height: 0;
		padding: 1rem;
	}

	.tg-card-number {
		margin-bottom: 2rem;
	}

	.tg-category-card h3,
	.tg-task-card h3 {
		font-size: 1.25rem;
	}

	.tg-category-card p:not(.tg-card-number),
	.tg-task-card > p:not(.tg-arrow-link) {
		font-size: 0.84rem;
	}

	.tg-products .wc-block-components-product-title {
		font-size: 0.95rem;
	}

	.tg-products .wp-block-post-title {
		font-size: 0.95rem;
		line-height: 1.25;
		min-height: 3.75em;
	}

	.tg-products .wc-block-components-product-button__button {
		font-size: 0.75rem;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
		width: 100%;
	}

	.tg-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tg-footer__brand {
		grid-column: auto;
	}
}
