/* =============================================================================
   grnstore — "Earthy Modern" · Custom content pages (Fase 2)
   Home / About / Contact coded sections. Tokens from redesign.css.
   Full-bleed bands: body.gs-coded breaks out of Astra's .ast-container.
   ============================================================================= */

/* Break custom templates out of Astra's constrained container → full-bleed */
body.gs-coded #content > .ast-container { max-width: 100% !important; padding: 0 !important; }
body.gs-coded #content { padding-top: 0 !important; padding-bottom: 0 !important; }
body.gs-coded .gs-page { overflow-x: clip; }

/* Shared bits */
.gs-page .gs-lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.25rem); color: var(--text); max-width: 46ch; line-height: 1.7; }
.gs-page em { font-style: normal; color: var(--forest); }
.gs-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.gs-sec-head--center { justify-content: center; text-align: center; }
.gs-textlink { color: var(--forest); font-weight: 700; white-space: nowrap; }
.gs-textlink:hover { color: var(--forest-d); }
.button.button--on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.button.button--on-dark:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* -----------------------------------------------------------------------------
   HERO (home)
   --------------------------------------------------------------------------- */
.gs-hero { padding-block: clamp(48px, 7vw, 96px); }
.gs-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.gs-hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4rem); line-height: 1.05; margin: 6px 0 18px; }
.gs-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 0; }
.gs-hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 30px; margin: 38px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); }
.gs-hero__stats li { display: flex; flex-direction: column; }
.gs-hero__stats strong { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.gs-hero__stats span { font-size: .86rem; color: var(--muted); }
.gs-hero__media { position: relative; }
.gs-hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.gs-hero__badge { position: absolute; left: -14px; bottom: 24px; background: var(--forest); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: var(--r-pill); box-shadow: var(--shadow); }

/* -----------------------------------------------------------------------------
   VALUE STRIP
   --------------------------------------------------------------------------- */
.gs-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.gs-values--3 { grid-template-columns: repeat(3, 1fr); }
.gs-value { text-align: left; }
.gs-value__ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--forest); font-size: 1.5rem; margin-bottom: 14px; }
.gs-value h3 { font-size: 1.12rem; margin: 0 0 8px; }
.gs-value p { color: var(--text); margin: 0; font-size: .96rem; }

/* -----------------------------------------------------------------------------
   FEATURED PRODUCTS — let the Woo card CSS handle the cards; 4-up here
   --------------------------------------------------------------------------- */
.gs-featured .woocommerce.columns-4 ul.products,
.gs-featured ul.products { grid-template-columns: repeat(4, 1fr) !important; }

/* -----------------------------------------------------------------------------
   CATEGORY SHOWCASE
   --------------------------------------------------------------------------- */
.gs-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.gs-cat-card { position: relative; display: block; min-height: 280px; border-radius: var(--r-lg); overflow: hidden; background-image: var(--gs-cat-img); background-size: cover; background-position: center; box-shadow: var(--shadow-sm); isolation: isolate; }
.gs-cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,40,29,.05) 0%, rgba(20,40,29,.78) 100%); z-index: -1; }
.gs-cat-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; display: flex; flex-direction: column; gap: 4px; }
.gs-cat-card__name { color: #fff; font-size: 1.4rem; font-weight: 800; }
.gs-cat-card__count { color: rgba(255,255,255,.85); font-weight: 600; font-size: .9rem; }
.gs-cat-card:hover { box-shadow: var(--shadow); }

/* -----------------------------------------------------------------------------
   STORY BAND
   --------------------------------------------------------------------------- */
.gs-story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.gs-story__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.gs-story__text h2 { margin: 8px 0 16px; }
.gs-checklist { list-style: none; margin: 18px 0 26px; padding: 0; }
.gs-checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text); }
.gs-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; background: var(--tint); color: var(--forest); border-radius: 50%; font-size: .75rem; font-weight: 800; }

/* -----------------------------------------------------------------------------
   TESTIMONIAL
   --------------------------------------------------------------------------- */
.gs-quote { max-width: 760px; margin-inline: auto; text-align: center; position: relative; }
.gs-quote__mark { font-size: 5rem; line-height: .5; color: var(--lime); margin: 0 0 10px; font-weight: 800; }
.gs-quote blockquote { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 700; color: var(--ink); line-height: 1.4; margin: 0 0 18px; border: 0; padding: 0; letter-spacing: -.01em; }
.gs-quote__by { color: var(--muted); font-weight: 600; }

/* -----------------------------------------------------------------------------
   CTA BAND
   --------------------------------------------------------------------------- */
.gs-cta { background: var(--forest); color: #fff; padding-block: clamp(44px, 6vw, 80px); }
.gs-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.gs-cta h2 { color: #fff; margin: 0 0 6px; }
.gs-cta p { color: rgba(255,255,255,.85); margin: 0; }

/* -----------------------------------------------------------------------------
   ABOUT
   --------------------------------------------------------------------------- */
.gs-pagehero { padding-block: clamp(48px, 7vw, 92px); }
.gs-pagehero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); margin: 8px 0 16px; max-width: 18ch; }
.gs-2col { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.gs-prose p { margin: 0 0 16px; }
.gs-stats-sec { background: var(--ink); }
.gs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.gs-stat strong { display: block; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; color: var(--lime); line-height: 1; margin-bottom: 8px; }
.gs-stat span { color: #cdd8ce; font-size: .92rem; }
.gs-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.gs-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; }
.gs-steps__n { font-size: 1rem; font-weight: 800; color: var(--lime); background: var(--ink); width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.gs-steps h3 { font-size: 1.15rem; margin: 0 0 8px; }
.gs-steps p { margin: 0; color: var(--text); font-size: .95rem; }

/* -----------------------------------------------------------------------------
   CONTACT
   --------------------------------------------------------------------------- */
.gs-contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.gs-contact-card { display: flex; flex-direction: column; padding: 30px 26px; color: var(--text); text-align: left; }
.gs-contact-card__ic { font-size: 1.7rem; width: 56px; height: 56px; border-radius: 16px; background: var(--tint); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.gs-contact-card h3 { font-size: 1.2rem; margin: 0 0 6px; }
.gs-contact-card p { margin: 0 0 14px; color: var(--text); }
.gs-contact-card .gs-textlink { margin-top: auto; }
.gs-muted-note { color: var(--muted); font-size: .88rem; margin-top: auto; }

.gs-faq-wrap { max-width: 820px; }
.gs-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 22px; margin-bottom: 14px; transition: border-color .15s ease; }
.gs-faq details[open] { border-color: #d6e3cc; }
.gs-faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.gs-faq summary::-webkit-details-marker { display: none; }
.gs-faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--forest); transition: transform .2s ease; }
.gs-faq details[open] summary::after { transform: rotate(45deg); }
.gs-faq details p { margin: 0 0 22px; color: var(--text); line-height: 1.7; }

/* -----------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 921px) {
	.gs-hero__grid, .gs-story__grid, .gs-2col { grid-template-columns: 1fr; }
	.gs-hero__media { order: -1; }
	.gs-hero__media img { aspect-ratio: 16 / 10; }
	.gs-values, .gs-stats, .gs-steps { grid-template-columns: repeat(2, 1fr); }
	.gs-featured ul.products { grid-template-columns: repeat(2, 1fr) !important; }
	.gs-contact-cards, .gs-values--3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.gs-cats { grid-template-columns: 1fr; }
	.gs-values, .gs-stats { grid-template-columns: 1fr; }
	.gs-sec-head { flex-direction: column; align-items: flex-start; }
	.gs-cta__inner { flex-direction: column; align-items: flex-start; }
}

/* -----------------------------------------------------------------------------
   Fase 4 — small-screen refinements
   --------------------------------------------------------------------------- */
@media (max-width: 544px) {
	.gs-featured ul.products { grid-template-columns: 1fr !important; }
	.gs-steps { grid-template-columns: 1fr; }
	.gs-hero__stats { gap: 18px 26px; }
	.gs-hero__badge { left: 10px; bottom: 12px; }
	.gs-cta__inner .button { width: 100%; }
}

/* =============================================================================
   Container breakout HARDENING (2.6.0)
   Astra sets `.site-content .ast-container{display:flex}` on desktop. A coded
   page is the single flex child with no width → it sizes to content, not 100%,
   so full-bleed bands misbehave. Force a predictable block flow + full width.
   ============================================================================= */
body.gs-coded #content > .ast-container {
	display: block !important;
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	flex: none !important;
}
body.gs-coded #content { padding: 0 !important; margin: 0 !important; width: 100%; }
body.gs-coded .gs-page { width: 100%; max-width: 100%; }

/* Anti-overflow: long words / grid & flex children must be allowed to shrink */
body.gs-coded .gs-page,
body.gs-coded .gs-page * { min-width: 0; }
body.gs-coded .gs-wrap { width: 100%; box-sizing: border-box; }
body.gs-coded img { max-width: 100%; height: auto; }

/* Belt-and-suspenders: the hero media is constrained, badge never pokes out */
.gs-hero__media { max-width: 100%; }
.gs-hero__badge { max-width: calc(100% - 24px); }

/* =============================================================================
   Icon sizing (2.7.0) — emoji replaced by inline SVG (grnstore_icon)
   ============================================================================= */
.gs-value__ic .gs-ico,
.gs-contact-card__ic .gs-ico { width: 26px; height: 26px; }
.gs-hero__badge { display: inline-flex; align-items: center; gap: 6px; }
.gs-hero__badge .gs-ico { width: 16px; height: 16px; }

/* Checklist: crisp SVG check instead of the ✓ glyph */
.gs-checklist li::before {
	content: "";
	background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E5631' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

/* Mobile: featured products 2 per row (2.7.1) — overrides earlier 1-col rule */
@media (max-width: 544px) {
	.gs-featured ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}

/* =============================================================================
   Featured grid specificity fix (2.7.2)
   The base rule `.gs-featured .woocommerce.columns-4 ul.products` (0,4,1)+!important
   out-specified the earlier `.gs-featured ul.products` (0,2,1) overrides, so the
   grid stayed at 4 cols on every width. Match the full specificity here.
   Tablet + mobile = 2 cards per row.
   ============================================================================= */
@media (max-width: 921px) {
	.gs-featured .woocommerce.columns-4 ul.products,
	.gs-featured ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
}
