/*
Theme Name: GWellth Foods
Theme URI: https://gwellth.com
Author: GWellth Food and Beverages Pvt. Ltd.
Description: A warm, accessible editorial theme for GWellth Foods, with optional WooCommerce catalog support.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: gwellth-foods
*/

:root {
	--gwellth-yellow: #f7a800;
	--gwellth-cream: #ffeccb;
	--gwellth-paper: #fffaf0;
	--gwellth-ink: #20231f;
	--gwellth-forest: #243b2d;
	--gwellth-muted: #615d52;
	--gwellth-line: rgba(32, 35, 31, .2);
	--gwellth-display: "Comfortaa", "Trebuchet MS", sans-serif;
	--gwellth-body: "Noto Sans", Arial, sans-serif;
	--gwellth-content: 1200px;
	--gwellth-gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--gwellth-paper); color: var(--gwellth-ink); font: 16px/1.65 var(--gwellth-body); }
body, button, input, select, textarea { font-family: var(--gwellth-body); }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8a4b00; outline-offset: 3px; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 8px; padding: 10px 16px; transform: translateY(-160%); background: #fff; color: var(--gwellth-ink); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 5; background: var(--gwellth-forest); color: #fffaf0; }
.header-inner { width: min(100%, var(--gwellth-content)); min-height: 82px; margin: auto; padding: 12px var(--gwellth-gutter); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand img { width: 154px; height: 48px; object-fit: contain; object-position: left center; }
.primary-nav ul, .footer-nav ul { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); margin: 0; padding: 0; list-style: none; }
.primary-nav a, .footer-nav a { font-size: .9rem; font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .footer-nav a:hover { color: var(--gwellth-yellow); }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 9px 14px; background: transparent; color: inherit; font-weight: 700; cursor: pointer; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border: 2px solid var(--gwellth-forest); border-radius: 999px; background: var(--gwellth-forest); color: #fff; font-size: .92rem; font-weight: 700; line-height: 1.25; text-decoration: none; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); background: var(--gwellth-yellow); color: var(--gwellth-ink); text-decoration: none; }
.header-shop { min-height: 42px; padding: 9px 16px; border-color: var(--gwellth-yellow); background: var(--gwellth-yellow); color: var(--gwellth-ink); white-space: nowrap; }
.header-shop:hover { border-color: #fff; background: #fff; }

.hero { width: min(100%, var(--gwellth-content)); margin: auto; padding: clamp(42px, 7vw, 92px) var(--gwellth-gutter) 50px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 5vw, 74px); }
.eyebrow { margin: 0 0 14px; color: #704300; font-size: .76rem; font-weight: 700; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--gwellth-display); font-weight: 700; line-height: 1.14; }
.hero h1 { max-width: 12ch; margin: 0; font-size: clamp(2.6rem, 5vw, 4.65rem); letter-spacing: -.055em; }
.hero-description { max-width: 48ch; margin: 22px 0 0; color: #393a32; font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.text-link { color: var(--gwellth-forest); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link span { display: inline-block; margin-left: 4px; }
.hero-note { max-width: 47ch; margin: 22px 0 0; color: var(--gwellth-muted); font-size: .84rem; }
.hero-image { position: relative; margin: 0; overflow: hidden; background: var(--gwellth-cream); }
.hero-image img { width: 100%; aspect-ratio: 1.9 / 1; object-fit: cover; }
.hero-image figcaption { position: absolute; right: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 7px 11px; background: rgba(255,250,240,.92); color: var(--gwellth-ink); font-size: .75rem; }

.section-wrap { width: min(100%, var(--gwellth-content)); margin: auto; padding-right: var(--gwellth-gutter); padding-left: var(--gwellth-gutter); }
.ritual-section { padding-top: 72px; padding-bottom: 88px; }
.section-heading { max-width: 720px; margin-bottom: 28px; }
.section-heading h2, .learning-inner h2, .kitchen-heading h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 3.25rem); letter-spacing: -.045em; }
.ritual-list { border-top: 1px solid var(--gwellth-line); }
.ritual-item { display: grid; grid-template-columns: 55px 1fr 30px; gap: 18px; align-items: center; min-height: 96px; padding: 18px 4px; border-bottom: 1px solid var(--gwellth-line); text-decoration: none; }
.ritual-item:hover { background: rgba(247,168,0,.1); }
.ritual-number { align-self: start; padding-top: 5px; color: #805100; font-size: .8rem; font-weight: 700; }
.ritual-item strong, .ritual-item small { display: block; }
.ritual-item strong { font-family: var(--gwellth-display); font-size: 1.18rem; }
.ritual-item small { margin-top: 5px; color: var(--gwellth-muted); font-size: .88rem; }
.ritual-arrow { color: var(--gwellth-forest); font-size: 1.5rem; text-align: right; }

.learning-section { background: var(--gwellth-cream); }
.learning-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 8vw, 120px); align-items: start; padding-top: 76px; padding-bottom: 78px; }
.learning-inner h2 { max-width: 12ch; }
.learning-copy p { margin: 0 0 17px; }
.learning-copy .editor-note { color: var(--gwellth-muted); font-size: .88rem; }
.kitchen-section { padding-top: 78px; padding-bottom: 86px; }
.kitchen-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.kitchen-section > p:last-child { max-width: 62ch; margin-top: 24px; color: var(--gwellth-muted); }

.entry-content, .shop-intro, .shop-hold { width: min(100%, 900px); margin: auto; padding: clamp(52px, 8vw, 100px) var(--gwellth-gutter); }
.page-title { max-width: 18ch; margin: 0; font-size: clamp(2.4rem, 5vw, 4.3rem); letter-spacing: -.05em; }
.page-copy { max-width: 68ch; margin-top: 26px; }
.page-copy h2, .page-copy h3 { margin-top: 2em; }
.page-copy p, .shop-intro > p:last-child, .shop-hold p { color: #424139; }
.shop-intro { width: min(100%, var(--gwellth-content)); padding-bottom: 34px; }
.shop-intro > p:last-child { max-width: 60ch; margin-top: 20px; }
.shop-hold { padding-top: 12px; }
.shop-hold h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.product-list { padding-bottom: 88px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; }
.woocommerce ul.products li.product img { background: var(--gwellth-cream); }

.site-footer { background: var(--gwellth-forest); color: #fffaf0; }
.footer-inner { width: min(100%, var(--gwellth-content)); margin: auto; padding: 55px var(--gwellth-gutter) 24px; }
.footer-lead { max-width: 620px; }
.footer-lead .eyebrow { color: var(--gwellth-yellow); }
.footer-lead h2 { max-width: 15ch; margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.04em; }
.footer-lead > p:last-child { max-width: 48ch; color: #e7e8df; }
.footer-nav { margin-top: 30px; }
.footer-nav ul { flex-wrap: wrap; gap: 12px 24px; }
.footer-note { margin: 28px 0; color: #e7e8df; font-size: .84rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.25); font-size: .8rem; }

@media (max-width: 820px) {
	.header-inner { min-height: 72px; gap: 12px; }
	.brand img { width: 135px; height: 44px; }
	.menu-toggle { display: inline-flex; }
	.primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 12px var(--gwellth-gutter) 20px; background: var(--gwellth-forest); }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
	.primary-nav li { border-top: 1px solid rgba(255,255,255,.2); }
	.primary-nav a { display: block; padding: 12px 0; }
	.header-shop { min-height: 40px; padding: 8px 12px; font-size: .82rem; }
	.hero { grid-template-columns: 1fr; padding-top: 48px; }
	.hero h1 { max-width: 14ch; }
	.hero-image { grid-row: 1; }
	.hero-image img { aspect-ratio: 1.55 / 1; }
	.learning-inner { grid-template-columns: 1fr; gap: 20px; }
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	:root { --gwellth-gutter: 20px; }
	body { font-size: 15px; }
	.header-inner { flex-wrap: wrap; }
	.brand img { width: 116px; height: 40px; }
	.menu-toggle { padding: 8px 11px; font-size: .85rem; }
	.header-shop { padding: 8px 10px; font-size: .76rem; }
	.hero { gap: 28px; padding-top: 32px; }
	.hero h1 { font-size: clamp(2.35rem, 11vw, 3.35rem); }
	.hero-description { font-size: 1rem; }
	.hero-image img { aspect-ratio: 1.2 / 1; }
	.hero-image figcaption { font-size: .68rem; }
	.hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
	.ritual-section, .kitchen-section { padding-top: 54px; padding-bottom: 60px; }
	.ritual-item { grid-template-columns: 32px 1fr 22px; gap: 10px; }
	.ritual-item strong { font-size: 1rem; }
	.ritual-item small { font-size: .8rem; }
	.learning-inner { padding-top: 55px; padding-bottom: 58px; }
	.kitchen-heading { align-items: flex-start; flex-direction: column; }
	.woocommerce ul.products { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
