/*
Theme Name: WNY Whole Body Health
Theme URI: https://wnywbh.com
Author: WNY Whole Body Health
Description: Block theme (full site editing) for WNY Whole Body Health — a whole foods-based wellness clinic. Edit every page, section, and template directly in the WordPress editor.
Version: 3.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wnywbh
Tags: full-site-editing, block-patterns, blog, custom-colors, custom-menu, editor-style, featured-images, threaded-comments, wide-blocks
*/

/* =========================================================
   This is a block theme. Layout, color, and typography are
   driven by theme.json. This stylesheet only carries the
   decorative details and plugin (Gravity Forms / Amelia)
   harmonization that block settings cannot express, plus
   the supporting rules for the custom block-style variations
   registered in functions.php.
   ========================================================= */

:root {
	--ink: #161417;
	--ink-soft: #4a4750;
	--muted: #6b6873;
	--rule: #e7e3df;
	--cream: #f6f1ea;
	--cream-deep: #efe7da;
	--paper: #ffffff;
	--moss: #2f6f3a;
	--moss-deep: #1f4a26;
	--moss-tint: #e8efe8;
	--navy: #1c244b;

	--font-display: 'Gloock', Georgia, serif;
	--font-body: 'Lora', Georgia, serif;
	--font-ui: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--radius-pill: 999px;

	--shadow-sm: 0 1px 2px rgba(22, 20, 23, 0.04), 0 1px 1px rgba(22, 20, 23, 0.03);
	--shadow-md: 0 8px 24px -12px rgba(22, 20, 23, 0.18), 0 2px 6px -3px rgba(22, 20, 23, 0.08);
	--shadow-lg: 0 24px 60px -28px rgba(22, 20, 23, 0.28), 0 8px 24px -12px rgba(22, 20, 23, 0.12);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html { scroll-behavior: smooth; }
::selection { background: var(--moss-tint); color: var(--moss-deep); }

/* Small circular icon used in the trust strip. */
.wnywbh-trust-icon {
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--moss-tint);
	color: var(--moss-deep);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* =========================================================
   Block style: Eyebrow (Paragraph)  → is-style-eyebrow
   Small uppercase label with a leading rule.
   ========================================================= */
.is-style-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--moss-deep);
}
.is-style-eyebrow::before {
	content: "";
	display: inline-block;
	width: 1.75rem;
	height: 1px;
	background: currentColor;
	opacity: 0.55;
}
/* Centered variant fills the line and centers, adding a trailing rule too. */
.is-style-eyebrow.has-text-align-center {
	display: flex;
	justify-content: center;
}
.is-style-eyebrow.has-text-align-center::after {
	content: "";
	display: inline-block;
	width: 1.75rem;
	height: 1px;
	background: currentColor;
	opacity: 0.55;
}

/* =========================================================
   Block style: Badge (Paragraph)  → is-style-badge
   ========================================================= */
.is-style-badge {
	display: inline-block;
	font-family: var(--font-ui);
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--moss-deep);
	background: var(--moss-tint);
	padding: 0.375rem 0.625rem;
	border-radius: var(--radius-pill);
}

/* =========================================================
   Block style: Card (Group)  → is-style-card
   Cream surface with a subtle hover lift.
   ========================================================= */
.is-style-card {
	background: var(--cream);
	border: 1px solid var(--cream-deep);
	border-radius: var(--radius-md);
	transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}
.is-style-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: transparent;
}
/* Card on a paper surface (challenges grid). */
.is-style-card-paper {
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: var(--radius-md);
	transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}
.is-style-card-paper:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: transparent;
}

/* Equal-height cards inside a columns block (challenges / steps). */
.wnywbh-cards-equal > .wp-block-column {
	display: flex;
}
.wnywbh-cards-equal > .wp-block-column > .wp-block-group {
	flex: 1;
}

/* =========================================================
   Block style: Icon Circle (Group / Image wrapper)
   → is-style-icon-circle
   ========================================================= */
.is-style-icon-circle {
	width: 4.5rem;
	height: 4.5rem;
	padding: 0.875rem;
	margin-left: auto;
	margin-right: auto;
	border-radius: 50%;
	background: var(--moss-tint);
	display: flex;
	align-items: center;
	justify-content: center;
}
.is-style-icon-circle img {
	border-radius: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* =========================================================
   Block style: Ghost button  → is-style-ghost
   ========================================================= */
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--rule);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-ghost .wp-block-button__link:focus {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}

/* Primary button hover lift (applies to the themed default button). */
.wp-block-button__link {
	box-shadow: var(--shadow-sm);
	transition: background-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.wp-block-button:not(.is-style-ghost) .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

/* =========================================================
   Media frame — rounded, shadowed image (is-style-frame)
   ========================================================= */
.wp-block-image.is-style-frame img,
.wp-block-image.is-style-frame {
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.wp-block-image.is-style-frame img {
	box-shadow: var(--shadow-lg);
}

/* =========================================================
   Sticky header (group with class wnywbh-header)
   ========================================================= */
.wnywbh-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--rule);
}
.wnywbh-header .wp-block-navigation a:hover {
	color: var(--moss-deep);
}

/* =========================================================
   Hero glow (group with class wnywbh-hero)
   ========================================================= */
.wnywbh-hero {
	position: relative;
	overflow: hidden;
}
.wnywbh-hero::before {
	content: "";
	position: absolute;
	inset: auto -10% -30% auto;
	width: 60%;
	height: 70%;
	background: radial-gradient(closest-side, rgba(47, 111, 58, 0.08), transparent 70%);
	pointer-events: none;
}

/* =========================================================
   FAQ — core/details accordion (group with class wnywbh-faq)
   ========================================================= */
.wnywbh-faq .wp-block-details {
	border-bottom: 1px solid var(--cream-deep);
	padding: 0;
}
.wnywbh-faq .wp-block-details summary {
	list-style: none;
	cursor: pointer;
	padding: 1.25rem 0;
	font-family: var(--font-display);
	font-size: 1.0625rem;
	line-height: 1.35;
	color: var(--ink);
	transition: color 160ms var(--ease);
	position: relative;
	padding-right: 2.25rem;
}
.wnywbh-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.wnywbh-faq .wp-block-details summary:hover { color: var(--moss-deep); }
.wnywbh-faq .wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 0;
	top: 1.35rem;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	border: 1px solid var(--rule);
	background:
		linear-gradient(currentColor, currentColor) center / 0.55rem 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 0.55rem no-repeat;
	color: var(--ink-soft);
	transition: transform 220ms var(--ease), background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.wnywbh-faq .wp-block-details[open] summary::after {
	transform: rotate(45deg);
	background:
		linear-gradient(#fff, #fff) center / 0.55rem 1.5px no-repeat;
	background-color: var(--moss);
	border-color: var(--moss);
}
.wnywbh-faq .wp-block-details > :not(summary) {
	color: var(--ink-soft);
	font-size: 1rem;
	line-height: 1.65;
	padding-bottom: 1.5rem;
	max-width: 36rem;
}

/* =========================================================
   Footer (group with class wnywbh-footer)
   ========================================================= */
.wnywbh-footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.wnywbh-footer :where(h1,h2,h3,h4,p,li,a,dt,dd) { color: inherit; }
.wnywbh-footer h2 { color: #fff; }
.wnywbh-footer a { color: rgba(255, 255, 255, 0.88); text-decoration: none; }
.wnywbh-footer a:hover { color: #fff; }

/* Uppercase UI labels — office names and column headings. */
.wnywbh-footer .wnywbh-footer-label {
	font-family: var(--font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
	color: #fff;
}
.wnywbh-footer .wnywbh-footer-brand-desc {
	color: rgba(255, 255, 255, 0.62);
	max-width: 28rem;
}

/* Link lists — no markers, tight vertical rhythm. */
.wnywbh-footer .wnywbh-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}
.wnywbh-footer .wnywbh-footer-list li { margin: 0; }

/* Social squares. */
.wnywbh-footer .wnywbh-social { display: flex; gap: 0.625rem; }
.wnywbh-footer .wnywbh-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	border-radius: var(--radius-sm);
	transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}
.wnywbh-footer .wnywbh-social a:hover { background: var(--moss); transform: translateY(-2px); }

/* Bottom bar — disclaimer left, copyright right. */
.wnywbh-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-family: var(--font-ui);
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.55);
}
.wnywbh-footer-bottom p { color: rgba(255, 255, 255, 0.55); }
.wnywbh-footer-bottom .wnywbh-footer-disclaimer {
	max-width: 48rem;
	font-style: italic;
	line-height: 1.5;
}
.wnywbh-footer-bottom .wnywbh-footer-disclaimer strong { color: rgba(255, 255, 255, 0.78); }

/* =========================================================
   Contact hours definition list (group with class wnywbh-hours)
   ========================================================= */
.wnywbh-hours .wnywbh-hours__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.625rem 0;
	border-bottom: 1px solid var(--rule);
	font-size: 0.9375rem;
}
.wnywbh-hours .wnywbh-hours__row:last-child { border-bottom: 0; }

/* =========================================================
   Gravity Forms harmonization (contact form)
   ========================================================= */
.wnywbh-form .gform_wrapper { font-family: var(--font-ui); }
.wnywbh-form .gform_wrapper .gfield_label,
.wnywbh-form .gform_wrapper label {
	font-family: var(--font-ui);
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink) !important;
	margin-bottom: 0.5rem !important;
}
.wnywbh-form .gform_wrapper .ginput_container input[type="text"],
.wnywbh-form .gform_wrapper .ginput_container input[type="email"],
.wnywbh-form .gform_wrapper .ginput_container input[type="tel"],
.wnywbh-form .gform_wrapper .ginput_container input[type="url"],
.wnywbh-form .gform_wrapper .ginput_container input[type="number"],
.wnywbh-form .gform_wrapper .ginput_container select,
.wnywbh-form .gform_wrapper .ginput_container textarea {
	width: 100% !important;
	padding: 0.875rem 1rem !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	line-height: 1.5 !important;
	background: var(--paper) !important;
	border: 1px solid var(--rule) !important;
	border-radius: var(--radius-sm) !important;
	color: var(--ink) !important;
	box-shadow: none !important;
	transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.wnywbh-form .gform_wrapper .ginput_container input:focus,
.wnywbh-form .gform_wrapper .ginput_container select:focus,
.wnywbh-form .gform_wrapper .ginput_container textarea:focus {
	outline: none;
	border-color: var(--moss) !important;
	box-shadow: 0 0 0 3px rgba(47, 111, 58, 0.12) !important;
}
.wnywbh-form .gform_wrapper .gfield { margin-bottom: 1.25rem !important; }
.wnywbh-form .gform_wrapper .gform_footer { padding-top: 0.5rem !important; margin-top: 0 !important; }
.wnywbh-form .gform_wrapper .gform_button {
	font-family: var(--font-ui) !important;
	font-size: 0.9375rem !important;
	font-weight: 500 !important;
	padding: 0.875rem 1.75rem !important;
	background: var(--moss) !important;
	color: var(--paper) !important;
	border: 1px solid var(--moss) !important;
	border-radius: var(--radius-sm) !important;
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	transition: background-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease) !important;
}
.wnywbh-form .gform_wrapper .gform_button:hover {
	background: var(--moss-deep) !important;
	border-color: var(--moss-deep) !important;
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}
.wnywbh-form .gform_wrapper .gfield_required { color: var(--moss-deep); margin-left: 0.25rem; }
.wnywbh-form .gform_wrapper .gform_confirmation_message {
	padding: 1.5rem;
	background: var(--moss-tint);
	border: 1px solid rgba(47, 111, 58, 0.25);
	border-radius: var(--radius-md);
	color: var(--moss-deep);
	font-family: var(--font-body);
}

/* =========================================================
   Amelia booking widget — gentle harmonization only.
   ========================================================= */
.wnywbh-amelia [class*="amelia"] { font-family: var(--font-ui); }
.wnywbh-amelia .amelia-app-booking { background: transparent !important; }

/* Hide stray WooCommerce header blocks if any plugin injects them. */
.wnywbh-header .wp-block-woocommerce-customer-account,
.wnywbh-header .wp-block-woocommerce-mini-cart { display: none !important; }
