/*
Theme Name: Organic Living HQ
Theme URI: https://organiclivinghq.com
Author: Organic Living HQ
Author URI: https://organiclivinghq.com
Description: A clean, lightweight and responsive WordPress theme for organic living, gardening and sustainability blogs. Fresh green design, fast and accessible.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: organic-living-hq
Tags: blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, editor-style, green, ecology
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--olhq-green:        #2e7d32;
	--olhq-green-dark:   #1b5e20;
	--olhq-green-light:  #4caf50;
	--olhq-accent:       #8bc34a;
	--olhq-text:         #243029;
	--olhq-muted:        #5d6b62;
	--olhq-border:       #e3ece5;
	--olhq-bg:           #ffffff;
	--olhq-bg-soft:      #f4f8f4;
	--olhq-bg-green:     #eaf3ea;
	--olhq-radius:       14px;
	--olhq-shadow:       0 6px 24px rgba(27, 94, 32, 0.08);
	--olhq-shadow-soft:  0 2px 10px rgba(27, 94, 32, 0.06);
	--olhq-maxw:         1180px;
	--olhq-font:         "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--olhq-font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--olhq-text);
	background: var(--olhq-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
	color: var(--olhq-green);
	text-decoration: none;
	transition: color .18s ease;
}
a:hover, a:focus { color: var(--olhq-green-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.25;
	color: var(--olhq-text);
	margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.2em; }

blockquote {
	margin: 1.6em 0;
	padding: .6em 1.4em;
	border-left: 4px solid var(--olhq-accent);
	background: var(--olhq-bg-soft);
	color: var(--olhq-muted);
	font-style: italic;
	border-radius: 0 var(--olhq-radius) var(--olhq-radius) 0;
}

code, pre {
	font-family: "SFMono-Regular", Consolas, Menlo, monospace;
	background: var(--olhq-bg-soft);
	border-radius: 6px;
}
code { padding: .15em .4em; font-size: .9em; }
pre { padding: 1em 1.2em; overflow: auto; }

hr { border: 0; border-top: 1px solid var(--olhq-border); margin: 2.4em 0; }

/* ==========================================================================
   Layout
   ========================================================================== */
.olhq-container {
	width: 100%;
	max-width: var(--olhq-maxw);
	margin: 0 auto;
	padding: 0 22px;
}

.olhq-site-content {
	padding: 48px 0 64px;
}

.olhq-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	align-items: start;
}
.olhq-layout.olhq-no-sidebar { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 900px) {
	.olhq-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* Skip link for accessibility */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--olhq-green-dark);
	color: #fff;
	padding: 10px 18px;
	z-index: 1000;
	border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.olhq-topbar {
	background: var(--olhq-green-dark);
	color: #d9efda;
	font-size: 14px;
}
.olhq-topbar .olhq-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 40px;
	gap: 16px;
}
.olhq-topbar a { color: #ffffff; }
.olhq-topbar p { margin: 0; }

.olhq-header {
	background: var(--olhq-bg);
	border-bottom: 1px solid var(--olhq-border);
	position: sticky;
	top: 0;
	z-index: 200;
	box-shadow: var(--olhq-shadow-soft);
}
.olhq-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
}

.olhq-branding { display: flex; align-items: center; gap: 14px; }
.olhq-site-title { font-size: 1.5rem; margin: 0; line-height: 1.1; }
.olhq-site-title a { color: var(--olhq-green-dark); text-decoration: none; }
.olhq-site-title a:hover { color: var(--olhq-green); }
.olhq-site-desc { margin: 2px 0 0; font-size: .82rem; color: var(--olhq-muted); }
.olhq-logo-leaf { color: var(--olhq-green-light); flex: 0 0 auto; }
.custom-logo { max-height: 56px; width: auto; }

/* Navigation */
.olhq-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.olhq-nav li { position: relative; }
.olhq-nav a {
	display: block;
	padding: 10px 14px;
	color: var(--olhq-text);
	font-weight: 500;
	font-size: .98rem;
	border-radius: 8px;
	text-decoration: none;
}
.olhq-nav a:hover,
.olhq-nav .current-menu-item > a,
.olhq-nav .current_page_item > a {
	background: var(--olhq-bg-green);
	color: var(--olhq-green-dark);
}

/* Sub menus */
.olhq-nav ul ul {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	box-shadow: var(--olhq-shadow);
	border: 1px solid var(--olhq-border);
	border-radius: var(--olhq-radius);
	padding: 8px;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 300;
}
.olhq-nav li:hover > ul,
.olhq-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.olhq-nav ul ul li { width: 100%; }
.olhq-nav ul ul a { padding: 9px 12px; }

.olhq-header-actions { display: flex; align-items: center; gap: 8px; }

/* Search toggle */
.olhq-search-toggle,
.olhq-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--olhq-border);
	background: #fff;
	color: var(--olhq-green-dark);
	border-radius: 10px;
	cursor: pointer;
}
.olhq-search-toggle:hover,
.olhq-menu-toggle:hover { background: var(--olhq-bg-green); }
.olhq-menu-toggle { display: none; }

.olhq-search-panel {
	display: none;
	background: var(--olhq-bg-soft);
	border-bottom: 1px solid var(--olhq-border);
	padding: 18px 0;
}
.olhq-search-panel.is-open { display: block; }

/* Search form */
.olhq-search-form { display: flex; gap: 10px; }
.olhq-search-form input[type="search"] {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--olhq-border);
	border-radius: 10px;
	font-size: 1rem;
	font-family: inherit;
}
.olhq-search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--olhq-green-light);
	box-shadow: 0 0 0 3px rgba(139, 195, 74, .25);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.olhq-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	background: var(--olhq-green);
	color: #fff !important;
	font-weight: 600;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none !important;
	transition: background .18s ease, transform .12s ease;
}
.olhq-btn:hover { background: var(--olhq-green-dark); transform: translateY(-1px); }
.olhq-btn-ghost {
	background: transparent;
	color: var(--olhq-green-dark) !important;
	border: 2px solid var(--olhq-green);
}
.olhq-btn-ghost:hover { background: var(--olhq-green); color: #fff !important; }

/* ==========================================================================
   Hero
   ========================================================================== */
.olhq-hero {
	position: relative;
	background:
		linear-gradient(135deg, rgba(27,94,32,.92) 0%, rgba(46,125,50,.82) 55%, rgba(139,195,74,.78) 100%);
	color: #fff;
	overflow: hidden;
}
.olhq-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12) 0, transparent 40%);
	pointer-events: none;
}
.olhq-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 720px;
	padding: 88px 0 96px;
}
.olhq-hero .olhq-eyebrow {
	display: inline-block;
	background: rgba(255,255,255,.16);
	color: #fff;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: .82rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin-bottom: 18px;
}
.olhq-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .4em; }
.olhq-hero p { font-size: 1.18rem; color: #eefbe9; margin-bottom: 1.8em; max-width: 560px; }
.olhq-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.olhq-hero-actions .olhq-btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.7); }
.olhq-hero-actions .olhq-btn-ghost:hover { background: #fff; color: var(--olhq-green-dark) !important; }

/* ==========================================================================
   Section intro / CTA
   ========================================================================== */
.olhq-section { padding: 64px 0; }
.olhq-section-soft { background: var(--olhq-bg-soft); }
.olhq-section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.olhq-section-head .olhq-eyebrow {
	color: var(--olhq-green);
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-size: .85rem;
}
.olhq-section-head p { color: var(--olhq-muted); }

/* Feature cards */
.olhq-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 26px;
}
.olhq-feature {
	background: #fff;
	border: 1px solid var(--olhq-border);
	border-radius: var(--olhq-radius);
	padding: 30px 26px;
	box-shadow: var(--olhq-shadow-soft);
	transition: transform .18s ease, box-shadow .18s ease;
}
.olhq-feature:hover { transform: translateY(-4px); box-shadow: var(--olhq-shadow); }
.olhq-feature-icon {
	width: 56px; height: 56px;
	display: flex; align-items: center; justify-content: center;
	background: var(--olhq-bg-green);
	color: var(--olhq-green-dark);
	border-radius: 14px;
	margin-bottom: 18px;
}
.olhq-feature h3 { font-size: 1.2rem; margin-bottom: .4em; }
.olhq-feature p { color: var(--olhq-muted); margin: 0; font-size: .98rem; }

/* CTA band */
.olhq-cta {
	background: linear-gradient(135deg, var(--olhq-green-dark), var(--olhq-green));
	color: #fff;
	border-radius: 22px;
	padding: 54px 40px;
	text-align: center;
	box-shadow: var(--olhq-shadow);
}
.olhq-cta h2 { color: #fff; }
.olhq-cta p { color: #eefbe9; max-width: 560px; margin: 0 auto 1.6em; }
.olhq-cta .olhq-btn { background: #fff; color: var(--olhq-green-dark) !important; }
.olhq-cta .olhq-btn:hover { background: var(--olhq-bg-green); }

/* ==========================================================================
   Posts grid / cards
   ========================================================================== */
.olhq-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

.olhq-card {
	background: #fff;
	border: 1px solid var(--olhq-border);
	border-radius: var(--olhq-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--olhq-shadow-soft);
	transition: transform .18s ease, box-shadow .18s ease;
}
.olhq-card:hover { transform: translateY(-4px); box-shadow: var(--olhq-shadow); }
.olhq-card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--olhq-bg-green); }
.olhq-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.olhq-card:hover .olhq-card-thumb img { transform: scale(1.05); }
.olhq-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.olhq-card-cat {
	display: inline-block;
	align-self: flex-start;
	background: var(--olhq-bg-green);
	color: var(--olhq-green-dark);
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}
.olhq-card-cat a { color: inherit; text-decoration: none; }
.olhq-card-title { font-size: 1.25rem; margin: 0 0 .5em; }
.olhq-card-title a { color: var(--olhq-text); }
.olhq-card-title a:hover { color: var(--olhq-green); text-decoration: none; }
.olhq-card-excerpt { color: var(--olhq-muted); font-size: .96rem; margin-bottom: 1em; flex: 1; }
.olhq-card-meta { font-size: .82rem; color: var(--olhq-muted); display: flex; gap: 14px; align-items: center; }
.olhq-card-meta svg { vertical-align: -2px; margin-right: 4px; }

/* ==========================================================================
   Single / page article
   ========================================================================== */
.olhq-article {
	background: #fff;
	border: 1px solid var(--olhq-border);
	border-radius: var(--olhq-radius);
	padding: 40px 44px 48px;
	box-shadow: var(--olhq-shadow-soft);
}
.olhq-article-header { margin-bottom: 28px; }
.olhq-article-header .olhq-card-cat { margin-bottom: 16px; }
.olhq-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	color: var(--olhq-muted);
	font-size: .9rem;
	margin-top: 12px;
}
.olhq-featured { margin: 0 0 28px; border-radius: var(--olhq-radius); overflow: hidden; }
.olhq-featured img { width: 100%; }

.olhq-entry-content { font-size: 1.06rem; }
.olhq-entry-content h2 { margin-top: 1.6em; }
.olhq-entry-content h3 { margin-top: 1.4em; }
.olhq-entry-content ul,
.olhq-entry-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.olhq-entry-content li { margin-bottom: .5em; }
.olhq-entry-content img { border-radius: var(--olhq-radius); margin: 1.4em 0; }
.olhq-entry-content a { text-decoration: underline; }

.olhq-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.olhq-tags a {
	background: var(--olhq-bg-soft);
	border: 1px solid var(--olhq-border);
	color: var(--olhq-muted);
	padding: 5px 14px;
	border-radius: 999px;
	font-size: .85rem;
	text-decoration: none;
}
.olhq-tags a:hover { background: var(--olhq-bg-green); color: var(--olhq-green-dark); }

/* Post navigation */
.olhq-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-top: 36px;
}
.olhq-post-nav a {
	display: block;
	padding: 18px 22px;
	border: 1px solid var(--olhq-border);
	border-radius: var(--olhq-radius);
	background: #fff;
	color: var(--olhq-text);
	text-decoration: none;
}
.olhq-post-nav a:hover { border-color: var(--olhq-green-light); background: var(--olhq-bg-soft); }
.olhq-post-nav small { color: var(--olhq-muted); display: block; margin-bottom: 4px; }
.olhq-post-nav .next { text-align: right; }
@media (max-width: 600px){ .olhq-post-nav { grid-template-columns: 1fr; } }

/* ==========================================================================
   Comments
   ========================================================================== */
.olhq-comments { margin-top: 40px; background:#fff; border:1px solid var(--olhq-border); border-radius:var(--olhq-radius); padding: 34px 40px; }
.olhq-comments .comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.olhq-comments .comment-list ul.children { list-style: none; margin: 0 0 0 26px; padding: 0; }
.olhq-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--olhq-border); }
.olhq-comments .comment-author { font-weight: 600; }
.olhq-comments .comment-meta { font-size: .82rem; color: var(--olhq-muted); margin-bottom: 8px; }
.olhq-comments .comment-author img { border-radius: 50%; margin-right: 10px; float: left; }
.olhq-comment-form input[type="text"],
.olhq-comment-form input[type="email"],
.olhq-comment-form input[type="url"],
.olhq-comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--olhq-border);
	border-radius: 10px;
	font-family: inherit;
	font-size: 1rem;
	margin-bottom: 14px;
}

/* ==========================================================================
   Sidebar / widgets
   ========================================================================== */
.olhq-sidebar .widget {
	background: #fff;
	border: 1px solid var(--olhq-border);
	border-radius: var(--olhq-radius);
	padding: 24px 26px;
	margin-bottom: 28px;
	box-shadow: var(--olhq-shadow-soft);
}
.olhq-sidebar .widget-title {
	font-size: 1.1rem;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--olhq-bg-green);
}
.olhq-sidebar ul { list-style: none; margin: 0; padding: 0; }
.olhq-sidebar li { padding: 7px 0; border-bottom: 1px dashed var(--olhq-border); }
.olhq-sidebar li:last-child { border-bottom: 0; }
.olhq-sidebar a { color: var(--olhq-text); text-decoration: none; }
.olhq-sidebar a:hover { color: var(--olhq-green); }

/* ==========================================================================
   Archive / page header banner
   ========================================================================== */
.olhq-page-banner {
	background: var(--olhq-bg-green);
	border-bottom: 1px solid var(--olhq-border);
	padding: 48px 0;
	text-align: center;
}
.olhq-page-banner h1 { margin: 0; }
.olhq-page-banner p { margin: 10px 0 0; color: var(--olhq-muted); }
.olhq-breadcrumbs { font-size: .86rem; color: var(--olhq-muted); margin-bottom: 10px; }
.olhq-breadcrumbs a { color: var(--olhq-green); }

/* ==========================================================================
   Pagination
   ========================================================================== */
.olhq-pagination { margin-top: 44px; display: flex; justify-content: center; }
.olhq-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	margin: 0 4px;
	border: 1px solid var(--olhq-border);
	border-radius: 10px;
	color: var(--olhq-text);
	text-decoration: none;
}
.olhq-pagination .page-numbers.current,
.olhq-pagination .page-numbers:hover { background: var(--olhq-green); color: #fff; border-color: var(--olhq-green); }

/* ==========================================================================
   Footer
   ========================================================================== */
.olhq-footer {
	background: #11341a;
	color: #c9ddca;
	padding: 56px 0 0;
	margin-top: 40px;
}
.olhq-footer a { color: #e7f5e6; }
.olhq-footer a:hover { color: #fff; }
.olhq-footer-cols {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 40px;
	padding-bottom: 44px;
}
.olhq-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.olhq-footer .widget-title { color:#fff; font-size:1.05rem; margin-bottom:16px; }
.olhq-footer ul { list-style: none; margin: 0; padding: 0; }
.olhq-footer li { padding: 5px 0; }
.olhq-footer .olhq-foot-about p { color: #aecbaf; }
.olhq-footer-bottom {
	border-top: 1px solid rgba(255,255,255,.12);
	padding: 22px 0;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: .88rem;
	color: #9cba9d;
}
@media (max-width: 820px){ .olhq-footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .olhq-footer-cols { grid-template-columns: 1fr; gap: 28px; } }

/* ==========================================================================
   Mobile nav
   ========================================================================== */
@media (max-width: 860px) {
	.olhq-menu-toggle { display: inline-flex; }
	.olhq-nav {
		position: fixed;
		top: 0; right: -100%;
		width: min(320px, 86vw);
		height: 100vh;
		background: #fff;
		box-shadow: -10px 0 40px rgba(0,0,0,.18);
		padding: 80px 22px 30px;
		overflow-y: auto;
		transition: right .28s ease;
		z-index: 500;
	}
	.olhq-nav.is-open { right: 0; }
	.olhq-nav ul { flex-direction: column; gap: 2px; }
	.olhq-nav ul ul {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 0 0 0 16px;
		background: transparent;
	}
	.olhq-nav-overlay {
		display: none;
		position: fixed; inset: 0;
		background: rgba(17,52,26,.5);
		z-index: 400;
	}
	.olhq-nav-overlay.is-open { display: block; }
	.olhq-nav-close {
		position: absolute; top: 18px; right: 18px;
		width: 42px; height: 42px;
		border: 0; background: var(--olhq-bg-green);
		color: var(--olhq-green-dark);
		border-radius: 10px; cursor: pointer;
		font-size: 22px; line-height: 1;
	}
}
@media (min-width: 861px){ .olhq-nav-close { display: none; } }

/* ==========================================================================
   Utilities / WP core classes
   ========================================================================== */
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px);
	clip-path: inset(50%);
	height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption { font-size: .85rem; color: var(--olhq-muted); text-align: center; }
.sticky, .bypostauthor { display: block; }
.olhq-empty { background:#fff; border:1px solid var(--olhq-border); border-radius:var(--olhq-radius); padding:48px; text-align:center; }
.olhq-empty h2 { margin-bottom:.3em; }

@media (max-width: 560px){
	.olhq-article { padding: 28px 22px 32px; }
	.olhq-comments { padding: 24px 22px; }
	body { font-size: 16px; }
}
