/*
Theme Name: CRCI Farmers Market
Theme URI: https://crcifarmersmarket.org
Author: CRCI
Author URI: https://crcifarmersmarket.org
Description: A warm, modern, accessible block theme for the CRCI Farmers Market. Inspired by award-winning community market websites, it features bold harvest photography, a fresh agricultural palette, a prominent "market is open" status, a searchable vendor directory, an events calendar, and a vendor onboarding flow.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crci-market
Tags: block-theme, full-site-editing, food, agriculture, community, one-column, custom-colors, custom-menu, featured-images, block-styles, wide-blocks, editor-style
*/

/*
 * Most styling lives in theme.json. This file holds a small set of
 * progressive enhancements that are awkward to express in theme.json
 * (hover transitions, decorative accents, and a few layout niceties).
 */

:root {
	--crci-transition: 200ms ease;
}

/* Smooth, accessible interactions on buttons and cards */
.wp-block-button__link,
.wp-block-button a {
	transition: transform var(--crci-transition), box-shadow var(--crci-transition), background-color var(--crci-transition);
}

.wp-block-button__link:hover,
.wp-block-button a:hover {
	transform: translateY(-2px);
}

/* Card base + hover lift used across vendor/event/info grids */
.is-style-crci-card {
	background-color: var(--wp--preset--color--surface, #fff);
	border-radius: 18px;
	box-shadow: 0 12px 30px -18px rgba(31, 42, 23, 0.35);
	overflow: hidden;
	transition: transform var(--crci-transition), box-shadow var(--crci-transition);
}

/* When a card is a columns/column wrapper, keep media flush to the edges */
.wp-block-column.is-style-crci-card,
.wp-block-group.is-style-crci-card {
	height: 100%;
}

.is-style-crci-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -20px rgba(31, 42, 23, 0.45);
}

/* Pill / badge style */
.is-style-crci-pill {
	display: inline-block;
	border-radius: 999px;
	padding: 0.35em 1em;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Underline accent for section eyebrow labels */
.crci-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 700;
}

/* Keep navigation submenu readable */
.wp-block-navigation .wp-block-navigation-submenu__toggle {
	cursor: pointer;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link,
	.wp-block-button a,
	.is-style-crci-card {
		transition: none;
	}

	.wp-block-button__link:hover,
	.wp-block-button a:hover,
	.is-style-crci-card:hover {
		transform: none;
	}
}

/* Decorative rounded image treatment */
.is-style-crci-rounded img,
.is-style-crci-rounded.wp-block-image img {
	border-radius: 18px;
}

/* Sticky header polish */
.wp-block-template-part.site-header,
header.wp-block-template-part {
	backdrop-filter: saturate(140%) blur(2px);
}

/* Testimonial quotes */
.crci-testimonial cite {
	display: block;
	margin-top: 0.75rem;
	font-style: normal;
	font-size: 0.875rem;
	color: var(--wp--preset--color--contrast-2);
}

/* Map embed on the Visit page */
.crci-map-embed {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 18px;
	box-shadow: 0 12px 30px -18px rgba(31, 42, 23, 0.35);
}

/* Top bar / hero market status lines */
.crci-topbar__status,
.crci-hero-status {
	display: flex;
	align-items: center;
}
