/*
Theme Name: CMR Technologies
Theme URI: https://cmrtechnologies.net
Author: CMR Technologies, LLC
Description: A fresh, modern block theme for CMR Technologies — precision agriculture technology and farm and ranch technology consulting. Palette drawn from the CMR droplet-and-sprout logo: deep teal, drop teal, leaf and sprout greens, with a touch of soil.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.6.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cmr-technologies
Tags: block-patterns, full-site-editing, one-column, wide-blocks, custom-colors, editor-style
*/

/* ---- Global polish ---- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: #BBE250; color: #003A3C; }

/* Sticky, frosted header */
.cmr-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,255,0.88) !important;
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid rgba(0,87,89,0.08);
}
.admin-bar .cmr-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cmr-header { top: 46px; } }

/* Eyebrow label (paragraph style) */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.78rem !important;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--teal);
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.is-style-eyebrow::before {
	content: "";
	width: 1.75rem;
	height: 3px;
	border-radius: 3px;
	background: var(--wp--preset--gradient--growth);
}
.has-text-align-center.is-style-eyebrow { justify-content: center; }
.has-deep-background-color .is-style-eyebrow,
.has-droplet-gradient-background .is-style-eyebrow,
.has-canopy-gradient-background .is-style-eyebrow,
.has-forest-background-color .is-style-eyebrow,
.wp-block-cover.is-dark .is-style-eyebrow { color: var(--wp--preset--color--sprout); }

/* Card (group style) */
.is-style-card {
	background: #fff;
	border: 1px solid rgba(0,87,89,0.10);
	border-radius: 18px;
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.is-style-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--lift);
	border-color: rgba(107,171,39,0.45);
}

/* Glass card for dark sections */
.is-style-glass {
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(187,226,80,0.18);
	border-radius: 18px;
}

/* Icon chip */
.cmr-icon {
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 14px;
	background: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--primary);
	font-size: 1.35rem;
	line-height: 1;
	margin: 0;
}
.is-style-glass .cmr-icon { background: rgba(187,226,80,0.14); color: var(--wp--preset--color--sprout); }

/* Button: light outline for dark backgrounds */
.wp-block-button.is-style-outline-light > .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255,255,255,0.55);
}
.wp-block-button.is-style-outline-light > .wp-block-button__link:hover {
	background: rgba(255,255,255,0.1);
	border-color: #fff;
}
/* Button: sprout (for dark backgrounds) */
.wp-block-button.is-style-sprout > .wp-block-button__link {
	background: var(--wp--preset--color--sprout);
	color: var(--wp--preset--color--deep);
}
.wp-block-button.is-style-sprout > .wp-block-button__link:hover {
	background: #cdee6a;
	color: var(--wp--preset--color--deep);
}

/* Hero decoration */
.cmr-hero { position: relative; overflow: hidden; }
.cmr-hero::after {
	content: "";
	position: absolute;
	right: -10%;
	bottom: -40%;
	width: 60%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(187,226,80,0.18) 0%, rgba(187,226,80,0) 65%);
	pointer-events: none;
}
.cmr-hero > * { position: relative; z-index: 1; }
.cmr-hero-mark img { filter: drop-shadow(0 30px 50px rgba(0,0,0,0.35)); }
/* Homepage hero logo: light edge + lime glow so the dark outline reads on dark teal */
.home .cmr-hero-mark img {
	width: 240px !important;
	filter:
		drop-shadow(0 0 1.5px rgba(255,255,255,0.95))
		drop-shadow(0 0 3px rgba(187,226,80,0.55))
		drop-shadow(0 24px 40px rgba(0,0,0,0.30));
}
@media (max-width: 781px) { .home .cmr-hero-mark img { width: 170px !important; } }

/* Stat numbers */
.cmr-stat {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}

/* Accent rule */
.cmr-rule {
	width: 4rem;
	height: 4px;
	border-radius: 4px;
	background: var(--wp--preset--gradient--growth);
	border: 0;
}

/* Checklist */
.is-style-checklist { list-style: none; padding-left: 0; }
.is-style-checklist li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; }
.is-style-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: var(--wp--preset--color--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Images */
.wp-block-image.is-style-rounded-lg img { border-radius: 20px; }

/* Footer links */
.cmr-footer a { text-decoration: none; }
.cmr-footer a:hover { text-decoration: underline; color: var(--wp--preset--color--sprout); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.is-style-card, .is-style-card:hover { transition: none; transform: none; }
}

/* Icon images (card headers) */
.cmr-icon-img { margin: 0 !important; }
.cmr-icon-img img {
	width: 52px !important;
	height: 52px !important;
	padding: 12px;
	border-radius: 14px;
	background: var(--wp--preset--color--mint);
	box-sizing: border-box;
}
.is-style-glass .cmr-icon-img img { background: rgba(187,226,80,0.12); }

/* Header logo mark */
.cmr-header-mark { margin: 0 !important; }
.cmr-header-mark img { display: block; }

/* Pilot panel rows */
.cmr-facts p { margin: 0; }
.cmr-facts > .wp-block-group { border-bottom: 1px solid rgba(0,87,89,0.1); padding-bottom: 0.85rem; }
.cmr-facts > .wp-block-group:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 600px) { .cmr-header-cta { display: none !important; } }
@media (max-width: 781px) { .cmr-hero-mark img { width: 180px !important; } }

/* Full-width sections stack flush inside page content */
.wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }

/* Quote citation */
.wp-block-quote cite { display: block; margin-top: 0.75rem; font-size: 0.85rem; font-style: normal; font-weight: 600; color: var(--wp--preset--color--teal); font-family: var(--wp--preset--font-family--heading); }
.wp-block-quote cite::before { content: "— "; }

/* Photos */
.cmr-photo img { box-shadow: var(--wp--preset--shadow--lift); }
.cmr-photo figcaption { margin-top: 0.75rem; text-align: left; }

/* Roadmap */
.cmr-step { position: relative; }
.cmr-step-num { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--wp--preset--color--teal); margin: 0; }
.cmr-step .wp-block-heading { margin: 0; }
.cmr-badge {
	display: inline-block;
	margin-top: auto !important;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--slate);
	border: 1px solid rgba(0,87,89,0.12);
}
.cmr-step--done .cmr-badge { background: #e8f4d9; color: #3d6b12; border-color: rgba(107,171,39,0.4); }
.cmr-step--active .cmr-badge { background: var(--wp--preset--color--primary); color: #fff; border-color: transparent; }
.cmr-step--active { border-color: var(--wp--preset--color--teal) !important; box-shadow: 0 0 0 1px var(--wp--preset--color--teal), var(--wp--preset--shadow--soft); }
.cmr-step--active::before {
	content: ""; position: absolute; top: 1.35rem; right: 1.25rem; width: 10px; height: 10px; border-radius: 50%;
	background: var(--wp--preset--color--leaf); box-shadow: 0 0 0 4px rgba(107,171,39,0.25);
}
.cmr-step--planned { background: rgba(255,255,255,0.7); }

/* Product logos */
.cmr-product-logo { margin-bottom: var(--wp--preset--spacing--40) !important; }
.cmr-product-logo img { filter: drop-shadow(0 14px 24px rgba(0,58,60,0.25)); }
