/* ==========================================================================
   Birds Bonsai — primary nav + Shop mega-menu (Graza-style drawer)
   Loaded globally. Desktop hover drawer; simple wrapped fallback on mobile.
   ========================================================================== */

/* Grey, sticky header (same grey as the page). Product page opts out below. */
.gz-header {
	position: sticky; top: 0; z-index: 200;
	background: var(--gz-bg, #f5f5f5);
}
body.single-product .gz-header { position: static; }

/* Brand wordmark: hidden on the landing page (the hero shows it); on other
   pages render "Bird's Bonsai" as dark-green block lettering. */
.gz-header .wp-block-site-title a {
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 700; letter-spacing: 0.01em;
	font-size: 1.4rem; color: var(--gz-slate, #2d4b48); text-decoration: none;
}
body.home .gz-header .wp-block-site-title { display: none; }

/* Hamburger toggle — desktop hidden, shown on mobile */
.gz-navwrap { display: flex; align-items: center; }
.gz-navtoggle {
	display: none; width: 42px; height: 42px; padding: 0; margin: 0;
	background: transparent; border: none; cursor: pointer;
	align-items: center; justify-content: center;
}
.gz-navtoggle span, .gz-navtoggle span::before, .gz-navtoggle span::after {
	content: ""; display: block; width: 24px; height: 2px;
	background: var(--gz-ink, #2d4b48); position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
}
.gz-navtoggle span::before { position: absolute; top: -7px; }
.gz-navtoggle span::after { position: absolute; top: 7px; }
.gz-nav-open .gz-navtoggle span { background: transparent; }
.gz-nav-open .gz-navtoggle span::before { transform: translateY(7px) rotate(45deg); }
.gz-nav-open .gz-navtoggle span::after { transform: translateY(-7px) rotate(-45deg); }

.gz-nav { display: flex; }
.gz-nav-list {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: center; gap: 30px;
}
.gz-nav-list > li { margin: 0; }
.gz-nav a {
	text-decoration: none; color: var(--gz-ink, #2d4b48);
	font-family: "Source Serif 4", Georgia, serif;
}
.gz-nav-list > .gz-nav-item > a {
	display: inline-block; padding: 14px 0; font-size: 1rem; font-weight: 500;
}
.gz-nav-list > .gz-nav-item > a:hover { color: var(--gz-russian, #5c8966); }

/* ---- Mega drawer ---- */
.gz-mega {
	position: absolute; left: 0; right: 0; top: 100%;
	background: #f5f5f5; border-top: 1px solid var(--gz-line, #2d4b48);
	box-shadow: 0 24px 40px rgba(0, 0, 0, 0.10);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
	z-index: 100;
}
.gz-has-mega:hover .gz-mega,
.gz-has-mega:focus-within .gz-mega {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.gz-mega-inner {
	max-width: 1240px; margin: 0 auto; padding: 40px 32px 48px;
	display: grid; grid-template-columns: 1fr 1fr 2.4fr; gap: 40px;
}
.gz-mega-h {
	font-family: "Courier Prime", monospace; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.08em;
	font-size: 0.8rem; color: var(--gz-ink, #2d4b48); margin: 0 0 18px;
}
.gz-mega-col ul { list-style: none; margin: 0; padding: 0; }
.gz-mega-col li { margin: 0 0 14px; }
.gz-mega-col a {
	font-family: "Source Serif 4", Georgia, serif; font-size: 1.05rem;
	color: var(--gz-ink, #2d4b48);
}
.gz-mega-col a:hover { color: var(--gz-russian, #5c8966); text-decoration: underline; }

/* ---- Featured (best sellers) ---- */
.gz-mega-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gz-mega-card { text-decoration: none; color: var(--gz-ink, #2d4b48); display: block; }
.gz-mega-thumb {
	display: block; background: var(--gz-media-bg, #e7e3d6);
	border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; margin-bottom: 10px;
}
.gz-mega-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.gz-mega-name {
	font-family: "Source Serif 4", serif; font-size: 0.92rem; line-height: 1.25;
	display: block;
}
.gz-mega-card:hover .gz-mega-name { text-decoration: underline; }

/* ---- Mobile: collapse into a hamburger; expanded shows Shop > collections ---- */
@media (max-width: 860px) {
	.gz-navtoggle { display: flex; }

	/* The nav becomes a drop panel under the header, toggled via .gz-nav-open */
	.gz-nav {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--gz-bg, #f5f5f5);
		border-top: 1px solid var(--gz-line, #2d4b48);
		box-shadow: 0 24px 40px rgba(0, 0, 0, 0.10);
		padding: 12px 24px 24px;
	}
	.gz-nav-open .gz-nav { display: block; }
	.gz-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.gz-nav-list > li { border-bottom: 1px solid rgba(45,75,72,0.12); }
	.gz-nav-list > .gz-nav-item > a { padding: 14px 0; font-size: 1.05rem; }

	/* Show the Shop submenu inline: collections only (drop species + featured) */
	.gz-mega {
		display: block; position: static; opacity: 1; visibility: visible;
		transform: none; box-shadow: none; border: none; background: transparent;
		margin: 0 0 4px;
	}
	.gz-mega-inner { display: block; max-width: none; margin: 0; padding: 0 0 8px; }
	.gz-mega-col:nth-of-type(2), .gz-mega-featured { display: none; }
	.gz-mega-h { display: none; }
	.gz-mega-col ul { padding-left: 14px; }
	.gz-mega-col li { margin: 0 0 10px; }
	.gz-mega-col a { font-size: 1rem; }
}

/* ==========================================================================
   Remove white gaps: grey everywhere; flush the top-level header/main/footer
   ========================================================================== */
html, body { background: var(--gz-bg, #f5f5f5); }
.wp-site-blocks > main,
.wp-site-blocks > footer { margin-top: 0 !important; }

/* ==========================================================================
   Shop page: static navigation panel (collection / species / category)
   ========================================================================== */
.gz-shopnav {
	max-width: 1240px; margin: 8px auto 30px; padding: 26px 24px;
	background: var(--gz-surface, #ececec); border: 1px solid var(--gz-line, #2d4b48);
	border-radius: var(--gz-radius, 14px);
}
.gz-shopnav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gz-shopnav-col h4 {
	font-family: "Courier Prime", monospace; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.08em;
	font-size: 0.74rem; color: var(--gz-ink, #2d4b48); margin: 0 0 14px;
}
.gz-shopnav-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.gz-shopnav-col a {
	font-family: "Source Serif 4", Georgia, serif; font-size: 1rem;
	color: var(--gz-ink, #2d4b48); text-decoration: none;
}
.gz-shopnav-col a:hover { color: var(--gz-russian, #5c8966); text-decoration: underline; }
@media (max-width: 760px) {
	.gz-shopnav-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ==========================================================================
   Care Guide (/bonsai-care/) — [gz_care_guide]
   ========================================================================== */
.gz-care-main { background: var(--gz-bg, #f5f5f5); }
.gz-care {
	max-width: 1080px; margin: 0 auto; padding: 40px 24px 90px;
	color: var(--gz-ink, #2d4b48);
	font-family: "Courier Prime", "Courier New", monospace;
}
.gz-care-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.gz-care .gz-kicker {
	font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
	color: var(--gz-russian, #5c8966); margin: 0 0 10px;
}
.gz-care-head h1 {
	font-family: "Source Serif 4", Georgia, serif; font-weight: 500;
	font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 16px;
	color: var(--gz-ink, #2d4b48);
}
.gz-care-intro { font-size: 1rem; line-height: 1.7; color: var(--gz-muted, #6e7b72); margin: 0; }

/* Index grid */
.gz-care-index {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0 0 72px;
}
.gz-care-tile { text-decoration: none; color: var(--gz-ink, #2d4b48); display: flex; flex-direction: column; }
.gz-care-tile-img {
	display: block; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden;
	background: #e7e3d6; margin-bottom: 12px;
}
.gz-care-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.gz-care-tile:hover .gz-care-tile-img img { transform: scale(1.05); }
.gz-care-tile-name { font-family: "Source Serif 4", serif; font-weight: 500; font-size: 1.1rem; }
.gz-care-tile-tag { font-size: 0.78rem; color: var(--gz-muted, #6e7b72); margin-top: 2px; }

/* Sections */
.gz-care-sec {
	display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center;
	padding: 40px 0; border-top: 1.5px dotted var(--gz-line, #2d4b48);
	scroll-margin-top: 90px;
}
.gz-care-sec-media { border-radius: 14px; overflow: hidden; background: #e7e3d6; aspect-ratio: 1/1; }
.gz-care-sec-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gz-care-tagline {
	font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
	color: var(--gz-russian, #5c8966); margin: 0 0 6px;
}
.gz-care-sec-body h2 {
	font-family: "Source Serif 4", Georgia, serif; font-weight: 500;
	font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 16px; color: var(--gz-ink, #2d4b48);
}
.gz-care-facts {
	list-style: none; margin: 0 0 18px; padding: 0;
	display: flex; flex-wrap: wrap; gap: 8px;
}
.gz-care-facts li {
	background: #d6ebcf; border-radius: 999px; padding: 6px 14px; font-size: 0.78rem;
	display: inline-flex; gap: 6px;
}
.gz-care-facts li span { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.gz-care-sec-body p { font-size: 0.95rem; line-height: 1.7; margin: 0 0 14px; }
.gz-care-shop a {
	text-decoration: none; font-weight: 700; color: var(--gz-russian, #5c8966);
	font-family: "Source Serif 4", serif;
}
.gz-care-shop a:hover { color: var(--gz-slate, #2d4b48); text-decoration: underline; }
/* Alternate image side for rhythm */
.gz-care-sec:nth-child(even) .gz-care-sec-media { order: 2; }

@media (max-width: 820px) {
	.gz-care-index { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	.gz-care-sec { grid-template-columns: 1fr; gap: 22px; }
	.gz-care-sec:nth-child(even) .gz-care-sec-media { order: 0; }
}

/* Default-template page titles (Contact, Shipping, Cart, Account…) on-brand */
.wp-block-post-title, .wp-block-query-title, .woocommerce-account .entry-title {
	font-family: "Source Serif 4", Georgia, serif !important;
	font-weight: 500 !important; color: var(--gz-slate, #2d4b48) !important;
	letter-spacing: 0 !important;
}

/* ==========================================================================
   Care Guide — care tips list
   ========================================================================== */
.gz-care-tips-h {
	font-family: "Courier Prime", monospace; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.08em; font-size: 0.72rem; color: var(--gz-russian, #5c8966); margin: 4px 0 8px;
}
.gz-care-tips { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.gz-care-tips li { position: relative; padding-left: 22px; font-size: 0.9rem; line-height: 1.55; }
.gz-care-tips li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--gz-russian, #5c8966); font-weight: 700; }

/* ==========================================================================
   Contact Form 7 — match the site styling
   ========================================================================== */
.wpcf7-form { max-width: 620px; margin-top: 8px; font-family: "Courier Prime", "Courier New", monospace; }
.wpcf7-form label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--gz-ink, #2d4b48); margin: 16px 0 0; }
.wpcf7-form input[type=text], .wpcf7-form input[type=email], .wpcf7-form textarea {
	width: 100%; box-sizing: border-box; margin-top: 6px;
	font-family: "Courier Prime", monospace; font-size: 16px; color: var(--gz-ink, #2d4b48);
	background: #fff; border: 1px solid var(--gz-line, #2d4b48); border-radius: 8px; padding: 12px 14px;
}
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus {
	outline: none; border-color: var(--gz-russian, #5c8966); box-shadow: 0 0 0 2px rgba(92,137,102,.2);
}
.wpcf7-form .wpcf7-submit {
	margin-top: 22px; cursor: pointer;
	font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 1.02rem;
	color: #fff; background: var(--gz-russian, #5c8966); border: none; border-radius: 999px;
	padding: 13px 34px; transition: background .15s ease, transform .13s ease;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--gz-slate, #2d4b48); transform: translateY(-1px); }
.wpcf7-form .wpcf7-spinner { margin: 0 0 0 10px; }
.wpcf7-form .wpcf7-not-valid-tip { color: #b3261e; font-size: 0.8rem; margin-top: 4px; }
.wpcf7 .wpcf7-response-output { border-radius: 8px; margin: 18px 0 0 !important; padding: 12px 14px; font-size: 0.9rem; }
/* Honeypot: keep it out of view + off the accessibility tree */
.bb-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
