/*
Theme Name: AgriMech
Theme URI: https://example.com/agrimech
Author: AgriMech Studio
Author URI: https://example.com
Description: AgriMech is a modern, mobile-first WordPress theme for agricultural machinery and farm equipment businesses. It ships with an Equipment custom post type, a customizer-driven hero and contact bar, an equipment specifications meta box, a testimonial slider, bundled AI-generated demo imagery (logo, hero and equipment photos), and a fully responsive industrial-agricultural design.
Version: 1.21.79
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agrimech
Tags: agriculture, machinery, business, e-commerce, responsive-layout
*/

/* -------------------------------------------------------------------------
   1. Design tokens & base
   ------------------------------------------------------------------------- */
:root {
	--agrimech-green: #1b5e20;
	--agrimech-green-hover: #2e7d32;
	--agrimech-green-dark: #123f16;
	--agrimech-amber: #f9a825;
	--agrimech-amber-dark: #e69500;
	--agrimech-ink: #16210f;
	--agrimech-bg: #f7f5ef;
	--agrimech-card: #ffffff;
	--agrimech-muted: #5f6b5d;
	--agrimech-border: #e4e0d4;
	--agrimech-font-head: 'Archivo', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	--agrimech-font-body: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	--agrimech-radius: 12px;
	--agrimech-shadow: 0 10px 30px rgba(22, 33, 15, 0.08);
	--agrimech-shadow-sm: 0 4px 14px rgba(22, 33, 15, 0.07);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--agrimech-font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--agrimech-ink);
	background-color: var(--agrimech-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--agrimech-font-head);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 0.6em;
	color: var(--agrimech-ink);
}

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--agrimech-green);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--agrimech-green-hover);
}

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

ul, ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

blockquote {
	margin: 0;
}

.container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Accessibility helpers */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -60px;
	left: 16px;
	z-index: 999;
	background: var(--agrimech-amber);
	color: var(--agrimech-ink) !important;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 6px;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 12px;
}

:focus-visible {
	outline: 3px solid var(--agrimech-amber);
	outline-offset: 2px;
	border-radius: 4px;
}

/* -------------------------------------------------------------------------
   2. Buttons
   ------------------------------------------------------------------------- */
.btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
	display: inline-block;
	font-family: var(--agrimech-font-head);
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1;
	padding: 15px 30px;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-amber,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
	background: var(--agrimech-amber);
	color: var(--agrimech-ink) !important;
}

.btn-amber:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: var(--agrimech-amber-dark);
	color: var(--agrimech-ink) !important;
	transform: translateY(-2px);
}

.btn-outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.7);
	color: #ffffff !important;
}

.btn-outline-light:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: #ffffff;
	color: #ffffff !important;
}

.btn-green {
	background: var(--agrimech-green);
	color: #ffffff !important;
}

.btn-green:hover {
	background: var(--agrimech-green-hover);
	color: #ffffff !important;
}

/* -------------------------------------------------------------------------
   3. Top bar
   ------------------------------------------------------------------------- */
.top-bar {
	background: var(--agrimech-ink);
	color: #cfd8c9;
	font-size: 0.85rem;
}

.top-bar .container {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 26px;
	align-items: center;
	justify-content: space-between;
	padding-top: 8px;
	padding-bottom: 8px;
}

.top-bar a {
	color: #ffffff;
}

.top-bar a:hover {
	color: var(--agrimech-amber);
}

.top-bar .top-bar-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.top-bar svg {
	flex: 0 0 auto;
}

/* -------------------------------------------------------------------------
   4. Header & navigation
   ------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: #ffffff;
	border-bottom: 1px solid var(--agrimech-border);
	transition: box-shadow 0.25s ease;
}

.site-header.is-stuck {
	box-shadow: 0 6px 24px rgba(22, 33, 15, 0.14);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-branding .custom-logo-link img {
	max-height: 52px;
	width: auto;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-branding .site-logo-default {
	flex: 0 0 auto;
}

.site-branding .site-logo-default img {
	height: 46px;
	width: auto;
	display: block;
}

.site-title {
	font-family: var(--agrimech-font-head);
	font-weight: 800;
	font-size: 1.55rem;
	margin: 0;
}

.site-title a {
	color: var(--agrimech-green);
}

.site-title a .brand-accent,
.site-title .brand-accent {
	color: var(--agrimech-amber);
}

.site-description {
	margin: 0;
	font-size: 0.8rem;
	color: var(--agrimech-muted);
}

.main-navigation {
	display: flex;
	align-items: center;
	gap: 22px;
}

.main-navigation ul.menu,
.main-navigation .menu > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: 12px 14px;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--agrimech-ink);
	border-radius: 6px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--agrimech-green);
	background: rgba(27, 94, 32, 0.07);
}

.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #ffffff;
	box-shadow: var(--agrimech-shadow);
	border-radius: 8px;
	padding: 8px;
	list-style: none;
	margin: 0;
	z-index: 50;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
	display: block;
}

.nav-toggle {
	display: none;
	background: transparent;
	border: 2px solid var(--agrimech-green);
	border-radius: 8px;
	padding: 9px 12px;
	cursor: pointer;
}

.nav-toggle .nav-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--agrimech-green);
	margin: 4px 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.header-quote {
	flex: 0 0 auto;
}

/* -------------------------------------------------------------------------
   5. Hero
   ------------------------------------------------------------------------- */
.hero {
	position: relative;
	color: #ffffff;
	background-color: var(--agrimech-green);
	background-image:
		linear-gradient(100deg, rgba(16, 55, 20, 0.95) 0%, rgba(18, 63, 22, 0.84) 45%, rgba(18, 63, 22, 0.42) 100%),
		url("assets/img/hero.jpg");
	background-size: auto, cover;
	background-repeat: no-repeat, no-repeat;
	background-position: center, center;
	padding: clamp(70px, 12vw, 130px) 0;
	overflow: hidden;
}

.hero-inner {
	max-width: 760px;
}

.hero-eyebrow {
	display: inline-block;
	font-family: var(--agrimech-font-head);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--agrimech-amber);
	margin-bottom: 18px;
}

.hero-title {
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	color: #ffffff;
	margin-bottom: 20px;
}

.hero-subtitle {
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	color: rgba(255, 255, 255, 0.88);
	max-width: 620px;
	margin-bottom: 34px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

/* -------------------------------------------------------------------------
   6. Stats band
   ------------------------------------------------------------------------- */
.stats-band {
	background: var(--agrimech-ink);
	color: #ffffff;
	padding: 44px 0;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px 20px;
	text-align: center;
}

.stat-number {
	font-family: var(--agrimech-font-head);
	font-weight: 800;
	font-size: clamp(2rem, 4.5vw, 3rem);
	color: var(--agrimech-amber);
	line-height: 1;
}

.stat-label {
	margin-top: 8px;
	font-size: 0.92rem;
	color: #cfd8c9;
}

/* -------------------------------------------------------------------------
   7. Generic sections
   ------------------------------------------------------------------------- */
.section {
	padding: clamp(56px, 9vw, 96px) 0;
}

.section-alt {
	background: #ffffff;
}

.section-header {
	max-width: 680px;
	margin: 0 auto 48px;
	text-align: center;
}

.section-eyebrow {
	display: inline-block;
	font-family: var(--agrimech-font-head);
	font-weight: 600;
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--agrimech-green);
	margin-bottom: 12px;
}

.section-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	margin-bottom: 14px;
}

.section-intro {
	color: var(--agrimech-muted);
	font-size: 1.05rem;
	margin-bottom: 0;
	text-wrap: pretty;
}

/* -------------------------------------------------------------------------
   8. Equipment categories
   ------------------------------------------------------------------------- */
.cat-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
}

.cat-card {
	display: block;
	background: var(--agrimech-card);
	border: 1px solid var(--agrimech-border);
	border-radius: var(--agrimech-radius);
	padding: 30px 26px;
	box-shadow: var(--agrimech-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	color: var(--agrimech-ink);
}

.cat-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--agrimech-shadow);
	color: var(--agrimech-ink);
}

.cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 14px;
	background: rgba(27, 94, 32, 0.1);
	color: var(--agrimech-green);
	margin-bottom: 18px;
}

.cat-card:hover .cat-icon {
	background: var(--agrimech-green);
	color: #ffffff;
}

.cat-card h3 {
	font-size: 1.2rem;
	margin-bottom: 8px;
}

.cat-card p {
	color: var(--agrimech-muted);
	font-size: 0.94rem;
	margin-bottom: 0;
}

.cat-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--agrimech-green);
}

/* -------------------------------------------------------------------------
   9. Equipment cards
   ------------------------------------------------------------------------- */
.equipment-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
}

.equipment-card {
	background: var(--agrimech-card);
	border: 1px solid var(--agrimech-border);
	border-radius: var(--agrimech-radius);
	overflow: hidden;
	box-shadow: var(--agrimech-shadow-sm);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.equipment-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--agrimech-shadow);
}

.equipment-thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.equipment-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.placeholder-thumb {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(135deg, rgba(18, 63, 22, 0.92), rgba(46, 125, 50, 0.85)),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='1.6'%3E%3Cpath d='M0 70 Q22 55 45 68 T90 68'/%3E%3Cpath d='M0 55 Q22 40 45 53 T90 53'/%3E%3Cpath d='M0 40 Q22 25 45 38 T90 38'/%3E%3C/g%3E%3C/svg%3E");
	background-size: auto, 90px 90px;
	background-repeat: no-repeat, repeat;
	background-position: center, center;
	color: rgba(255, 255, 255, 0.85);
}

.placeholder-thumb svg {
	width: 84px;
	height: 84px;
}

.equipment-body {
	padding: 24px 24px 26px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.equipment-card h3 {
	font-size: 0.9rem;
	margin-bottom: 6px;
}

.equipment-card h3 a {
	color: var(--agrimech-ink);
}

.equipment-card h3 a:hover {
	color: var(--agrimech-green);
}

.equipment-tagline {
	color: var(--agrimech-amber-dark);
	font-weight: 600;
	font-size: 0.92rem;
	margin-bottom: 14px;
}

.specs-list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	font-size: 0.92rem;
	color: var(--agrimech-muted);
}

.specs-list li {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 7px 0;
	border-bottom: 1px dashed var(--agrimech-border);
}

.specs-list li:last-child {
	border-bottom: 0;
}

.specs-list .spec-name {
	font-weight: 600;
	color: var(--agrimech-ink);
}

.equipment-card .btn {
	margin-top: auto;
	align-self: flex-start;
	padding: 12px 22px;
	font-size: 0.9rem;
}

/* Equipment specs table (single equipment) */
.equipment-specs-table {
	width: 100%;
	border-collapse: collapse;
	margin: 26px 0;
	background: #ffffff;
	border: 1px solid var(--agrimech-border);
	border-radius: var(--agrimech-radius);
	overflow: hidden;
}

.equipment-specs-table th,
.equipment-specs-table td {
	text-align: left;
	padding: 13px 18px;
	border-bottom: 1px solid var(--agrimech-border);
	font-size: 0.95rem;
}

.equipment-specs-table th {
	width: 40%;
	background: rgba(27, 94, 32, 0.07);
	font-family: var(--agrimech-font-head);
	font-weight: 600;
	color: var(--agrimech-green-dark);
}

.equipment-specs-table tr:last-child th,
.equipment-specs-table tr:last-child td {
	border-bottom: 0;
}

/* -------------------------------------------------------------------------
   10. Why choose us
   ------------------------------------------------------------------------- */
.why-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
}

.why-item {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: var(--agrimech-card);
	border: 1px solid var(--agrimech-border);
	border-radius: var(--agrimech-radius);
	padding: 26px;
	box-shadow: var(--agrimech-shadow-sm);
}

.why-check {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--agrimech-green);
	color: #ffffff;
}

.why-item h3 {
	font-size: 1.12rem;
	margin-bottom: 6px;
}

.why-item p {
	color: var(--agrimech-muted);
	font-size: 0.94rem;
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   11. Testimonials
   ------------------------------------------------------------------------- */
.testimonial-slider {
	position: relative;
	max-width: 780px;
	margin: 0 auto;
	background: var(--agrimech-card);
	border: 1px solid var(--agrimech-border);
	border-radius: var(--agrimech-radius);
	box-shadow: var(--agrimech-shadow-sm);
	padding: 46px 34px 30px;
	overflow: hidden;
}

.testimonial-track {
	position: relative;
}

.testimonial-slide {
	display: none;
	text-align: center;
}

.testimonial-slide.is-active {
	display: block;
	animation: agrimechFade 0.45s ease;
}

@keyframes agrimechFade {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.testimonial-slide p {
	font-size: 1.12rem;
	color: var(--agrimech-ink);
	font-style: italic;
	margin-bottom: 20px;
}

.testimonial-slide p::before {
	content: "\201C";
	display: block;
	font-family: var(--agrimech-font-head);
	font-size: 3.4rem;
	line-height: 0.6;
	color: var(--agrimech-amber);
	margin-bottom: 14px;
	font-style: normal;
}

.testimonial-author {
	font-family: var(--agrimech-font-head);
	font-weight: 600;
	color: var(--agrimech-green);
	font-size: 0.98rem;
}

.testimonial-role {
	color: var(--agrimech-muted);
	font-size: 0.88rem;
}

.testimonial-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 26px;
}

.testimonial-arrow {
	background: transparent;
	border: 2px solid var(--agrimech-green);
	color: var(--agrimech-green);
	border-radius: 50%;
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.testimonial-arrow:hover {
	background: var(--agrimech-green);
	color: #ffffff;
}

.testimonial-dots {
	display: inline-flex;
	gap: 8px;
}

.testimonial-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: var(--agrimech-border);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.testimonial-dot.is-active {
	background: var(--agrimech-amber);
}

/* -------------------------------------------------------------------------
   12. News / blog cards
   ------------------------------------------------------------------------- */
.news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
}

.news-card {
	background: var(--agrimech-card);
	border: 1px solid var(--agrimech-border);
	border-radius: var(--agrimech-radius);
	overflow: hidden;
	box-shadow: var(--agrimech-shadow-sm);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--agrimech-shadow);
}

.news-thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.news-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-body {
	padding: 22px 24px 26px;
}

.news-date {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--agrimech-amber-dark);
	margin-bottom: 8px;
}

.news-card h3 {
	font-size: 1.18rem;
	margin-bottom: 10px;
}

.news-card h3 a {
	color: var(--agrimech-ink);
}

.news-card h3 a:hover {
	color: var(--agrimech-green);
}

.news-excerpt {
	color: var(--agrimech-muted);
	font-size: 0.94rem;
	margin-bottom: 14px;
}

.read-more {
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--agrimech-green);
}

.news-fallback {
	text-align: center;
	color: var(--agrimech-muted);
	background: var(--agrimech-card);
	border: 1px dashed var(--agrimech-border);
	border-radius: var(--agrimech-radius);
	padding: 40px 24px;
}

/* -------------------------------------------------------------------------
   13. CTA band
   ------------------------------------------------------------------------- */
.cta-band {
	background: linear-gradient(115deg, var(--agrimech-amber) 0%, #fbc02d 100%);
	color: var(--agrimech-ink);
	padding: clamp(50px, 8vw, 80px) 0;
}

.cta-inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
	justify-content: space-between;
}

.cta-inner h2 {
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	margin-bottom: 8px;
}

.cta-inner p {
	margin-bottom: 0;
	font-size: 1.05rem;
	color: rgba(22, 33, 15, 0.78);
	max-width: 560px;
}

.cta-band .btn-green {
	flex: 0 0 auto;
}

/* -------------------------------------------------------------------------
   14. Footer
   ------------------------------------------------------------------------- */
.site-footer {
	background: var(--agrimech-ink);
	color: #cfd8c9;
}

.footer-widgets {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
	padding: 60px 0 40px;
}

.footer-widgets .widget {
	margin: 0;
}

.footer-widgets .widget-title {
	font-family: var(--agrimech-font-head);
	font-weight: 600;
	font-size: 1.05rem;
	color: #ffffff;
	margin-bottom: 18px;
}

.footer-widgets a {
	color: #cfd8c9;
}

.footer-widgets a:hover {
	color: var(--agrimech-amber);
}

.footer-widgets ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-widgets li {
	margin-bottom: 9px;
	font-size: 0.94rem;
}

.footer-about p {
	font-size: 0.94rem;
	color: #a9b5a3;
}

.social-links {
	display: flex;
	gap: 12px;
	margin-top: 18px;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	transition: background-color 0.2s ease;
}

.social-links a:hover {
	background: var(--agrimech-amber);
	color: var(--agrimech-ink);
}

.bottom-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 20px 0;
	font-size: 0.86rem;
}

.bottom-bar .container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	align-items: center;
	justify-content: space-between;
}

.bottom-bar ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}

.bottom-bar a {
	color: #cfd8c9;
}

.bottom-bar a:hover {
	color: var(--agrimech-amber);
}

/* -------------------------------------------------------------------------
   15. Content / posts / pages
   ------------------------------------------------------------------------- */
.site-main {
	min-height: 40vh;
}

.content-area {
	padding: clamp(44px, 7vw, 72px) 0;
}

.layout-with-sidebar {
	display: grid;
	grid-template-columns: 1fr;
	gap: 44px;
}

.entry-header {
	margin-bottom: 26px;
}

.entry-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	margin-bottom: 12px;
}

.entry-meta {
	font-size: 0.88rem;
	color: var(--agrimech-muted);
}

.entry-meta a {
	color: var(--agrimech-muted);
	text-decoration: underline;
}

.post-card {
	background: var(--agrimech-card);
	border: 1px solid var(--agrimech-border);
	border-radius: var(--agrimech-radius);
	overflow: hidden;
	box-shadow: var(--agrimech-shadow-sm);
	margin-bottom: 34px;
}

.post-card .post-card-body {
	padding: 26px 28px 30px;
}

.post-card h2 {
	font-size: 1.5rem;
}

.post-thumb {
	aspect-ratio: 16 / 8;
	overflow: hidden;
}

.post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-content {
	font-size: 1.02rem;
}

.entry-content img {
	border-radius: 8px;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.4em 0;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--agrimech-border);
	padding: 10px 14px;
	text-align: left;
}

.entry-content th {
	background: rgba(27, 94, 32, 0.07);
}

.alignwide {
	max-width: 1100px;
}

.alignfull {
	width: 100%;
}

.pagination,
.post-navigation {
	margin: 40px 0;
}

.pagination .nav-links,
.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 9px 15px;
	border: 1px solid var(--agrimech-border);
	border-radius: 8px;
	background: #ffffff;
	color: var(--agrimech-ink);
	font-weight: 600;
	font-size: 0.92rem;
}

.pagination .page-numbers.current {
	background: var(--agrimech-green);
	border-color: var(--agrimech-green);
	color: #ffffff;
}

/* Archive header */
.archive-header {
	margin-bottom: 36px;
}

.archive-title {
	font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.archive-description {
	color: var(--agrimech-muted);
}

/* -------------------------------------------------------------------------
   16. Sidebar & widgets
   ------------------------------------------------------------------------- */
.widget-area .widget {
	background: var(--agrimech-card);
	border: 1px solid var(--agrimech-border);
	border-radius: var(--agrimech-radius);
	padding: 24px;
	margin-bottom: 26px;
	box-shadow: var(--agrimech-shadow-sm);
}

.widget-title {
	font-family: var(--agrimech-font-head);
	font-weight: 600;
	font-size: 1.1rem;
	margin-bottom: 16px;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 7px 0;
	border-bottom: 1px dashed var(--agrimech-border);
	font-size: 0.95rem;
}

.widget li:last-child {
	border-bottom: 0;
}

/* Search form */
.search-form {
	display: flex;
	gap: 8px;
}

.search-form .search-field {
	flex: 1 1 auto;
	min-width: 0;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--agrimech-border);
	border-radius: 8px;
	background: #ffffff;
	font-family: var(--agrimech-font-body);
	font-size: 0.96rem;
	color: var(--agrimech-ink);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--agrimech-green);
	outline: 2px solid rgba(27, 94, 32, 0.25);
	outline-offset: 0;
}

.search-form button[type="submit"] {
	padding: 12px 20px;
}

/* -------------------------------------------------------------------------
   17. Comments
   ------------------------------------------------------------------------- */
.comments-area {
	margin-top: 48px;
	background: var(--agrimech-card);
	border: 1px solid var(--agrimech-border);
	border-radius: var(--agrimech-radius);
	padding: 30px;
}

/* Single post: comment box spans the full page width. */
.single-post .comments-area {
	max-width: none;
}

.comments-title {
	font-size: 1.4rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	padding-left: 26px;
}

.comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--agrimech-border);
}

.comment-author {
	font-weight: 600;
}

.comment-metadata {
	font-size: 0.82rem;
	color: var(--agrimech-muted);
}

.comment-respond .comment-reply-title {
	font-size: 1.3rem;
	margin-bottom: 10px;
}

/* Guest comment form: styled like the equipment inquiry form. */
.comment-form {
	display: flex;
	flex-direction: column;
}

.comment-notes {
	order: 0;
	font-size: 13px;
	color: var(--agrimech-muted);
	margin: 0 0 14px;
}

.comment-form .logged-in-as {
	order: 0;
	font-size: 13px;
	margin: 0 0 14px;
}

.comment-field-grid {
	order: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}

.comment-form-url {
	order: 2;
}

.comment-form-comment {
	order: 3;
}

.comment-form-cookies-consent {
	order: 4;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 2px 0 16px;
}

.comment-form .form-submit {
	order: 5;
	margin-bottom: 0;
}

.comment-field {
	margin-bottom: 14px;
}

.comment-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 6px;
	color: #1d2327;
}

.comment-field label span {
	color: #d63638;
}

.comment-field input,
.comment-field textarea {
	width: 100%;
	border: 1px solid #d8d4c4;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 15px;
	font-family: inherit;
	background: #fcfcf9;
}

.comment-field input:focus,
.comment-field textarea:focus {
	outline: 2px solid #2e7d32;
	outline-offset: 0;
	border-color: #2e7d32;
}

.comment-form-cookies-consent input[type="checkbox"] {
	margin: 0;
	width: 16px;
	height: 16px;
	flex: none;
}

.comment-form-cookies-consent label {
	display: inline;
	font-size: 13px;
	font-weight: 400;
	margin: 0;
}

.comment-form .equipment-inquiry-submit {
	font-size: 16px;
	padding: 13px 40px;
	border: none;
	cursor: pointer;
}

@media (max-width: 640px) {
	.comment-field-grid {
		grid-template-columns: 1fr;
	}

	.comments-area {
		padding: 20px 16px;
	}
}

/* -------------------------------------------------------------------------
   18. Contact page
   ------------------------------------------------------------------------- */
.contact-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 26px 0 22px;
}

.contact-card {
	background: var(--agrimech-card);
	border: 1px solid var(--agrimech-border);
	border-radius: var(--agrimech-radius);
	padding: 28px;
	box-shadow: var(--agrimech-shadow-sm);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.contact-card .cat-icon {
	margin-bottom: 14px;
}

.contact-card h3 {
	font-size: 1.1rem;
	margin-bottom: 6px;
}

.contact-card p,
.contact-card a {
	color: var(--agrimech-muted);
	font-size: 0.96rem;
	margin-bottom: 0;
	word-break: break-word;
}

.contact-note {
	background: rgba(249, 168, 37, 0.12);
	border: 1px solid rgba(249, 168, 37, 0.45);
	border-radius: var(--agrimech-radius);
	padding: 18px 22px;
	font-size: 0.94rem;
	color: var(--agrimech-ink);
	margin-bottom: 34px;
}

/* Contact page: tighter rhythm between header, cards and content. */
.page-template-template-contact .section-header {
	margin-bottom: 30px;
}

/* -------------------------------------------------------------------------
   19. 404 & misc
   ------------------------------------------------------------------------- */
.error-404 {
	text-align: center;
	padding: clamp(60px, 10vw, 110px) 0;
}

.error-404 .page-title {
	font-size: clamp(2.6rem, 7vw, 4.4rem);
	color: var(--agrimech-green);
}

.error-404 .search-form {
	max-width: 440px;
	margin: 26px auto 0;
}

/* Scroll reveal */
html.js .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html.js .reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	html {
		scroll-behavior: auto;
	}
}

/* -------------------------------------------------------------------------
   20. Responsive breakpoints (mobile-first)
   ------------------------------------------------------------------------- */
@media (min-width: 640px) {
	.cat-grid,
	.why-grid,
	.contact-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.stats-grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.cta-inner {
		flex-direction: row;
		align-items: center;
	}
}

@media (min-width: 900px) {
	.equipment-grid,
	.news-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.cat-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.why-grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.contact-cards {
		grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	}
	.footer-widgets {
		grid-template-columns: repeat(3, 1fr);
	}
	.layout-with-sidebar {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

/* Tablet (641px-899px): stats band stays 2x2 instead of stacking, and the
   footer uses two dense columns instead of one tall stack. */
@media (min-width: 641px) and (max-width: 899px) {
	.home-stats-band .wp-block-columns {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px 18px;
	}

	.home-stats-band .wp-block-column {
		margin: 0;
		flex-basis: auto;
	}

	.footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 24px;
		padding: 44px 0 32px;
	}

	.footer-about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 899px) {
	.nav-toggle {
		display: block;
	}
	.main-navigation .menu-wrap {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #ffffff;
		border-bottom: 1px solid var(--agrimech-border);
		box-shadow: var(--agrimech-shadow);
		padding: 12px 20px 20px;
	}
	.main-navigation .menu-wrap.is-open {
		display: block;
	}
	.main-navigation ul.menu,
	.main-navigation .menu > ul {
		flex-direction: column;
		gap: 0;
	}
	.main-navigation a {
		padding: 13px 10px;
		border-radius: 0;
		border-bottom: 1px solid var(--agrimech-border);
	}
	.main-navigation ul ul {
		position: static;
		display: block;
		box-shadow: none;
		padding: 0 0 0 16px;
	}
	.header-quote {
		display: none;
	}
	.main-navigation {
		position: static;
	}
	.header-inner {
		position: relative;
	}
}

/* -------------------------------------------------------------------------
   Block editor styles (visual editing - registered block styles)
   ------------------------------------------------------------------------- */
.wp-block-button.is-style-agrimech-green .wp-block-button__link {
	background: var(--agrimech-green);
	color: #ffffff !important;
}

.wp-block-button.is-style-agrimech-green .wp-block-button__link:hover {
	background: var(--agrimech-green-hover);
}

.wp-block-button.is-style-agrimech-outline-light .wp-block-button__link {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.7);
	color: #ffffff !important;
}

.wp-block-button.is-style-agrimech-outline-light .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: #ffffff;
}

.wp-block-group.is-style-agrimech-card {
	background: #ffffff;
	border: 1px solid #e4e0d4;
	border-radius: 16px;
	padding: clamp(20px, 4vw, 32px);
	box-shadow: 0 12px 34px rgba(22, 33, 15, 0.08);
}

/* Full Width (Visual Builder) page template. */
.site-main-canvas > *:first-child {
	margin-top: 0;
}

/* Equipment product gallery (single equipment page). */
.equipment-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin: 24px 0;
}

.equipment-gallery-item {
	display: block;
	border: 1px solid #e4e0d4;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(22, 33, 15, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.equipment-gallery-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(22, 33, 15, 0.12);
}

.equipment-gallery-item img {
	display: block;
	width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------
   Equipment detail page (product layout)
------------------------------------------------------------------ */

.equipment-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #6b705c;
	margin: 8px 0 22px;
}

.equipment-breadcrumb a {
	color: #2e7d32;
	text-decoration: none;
}

.equipment-breadcrumb a:hover {
	text-decoration: underline;
}

.equipment-breadcrumb-current {
	color: #1d2327;
	font-weight: 600;
}

.equipment-detail-top {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}

.equipment-main-image {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e4e0d4;
	box-shadow: 0 14px 38px rgba(22, 33, 15, 0.1);
	background: #f4f1e8;
}

.equipment-main-image img {
	display: block;
	width: 100%;
	height: auto;
}

.equipment-media-layout {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 14px;
	align-items: stretch;
}

.equipment-media-layout.no-rail {
	grid-template-columns: minmax(0, 1fr);
}

.equipment-rail {
	position: relative;
	min-height: 0;
}

/* The track is absolutely positioned so its content never stretches the
   grid row: the rail always matches the main image height exactly. */
.equipment-rail-track {
	position: absolute;
	top: 36px;
	bottom: 36px;
	left: 0;
	right: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.equipment-rail-track::-webkit-scrollbar {
	display: none;
}

.equipment-rail-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	width: 100%;
	padding: 0;
	border: 1px solid #e4e0d4;
	border-radius: 8px;
	background: #fff;
	color: #5b5643;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.equipment-rail-arrow.rail-down {
	position: absolute;
	bottom: 0;
	left: 0;
}

.equipment-rail-arrow:hover {
	background: #f4f1e8;
	color: #2e7d32;
}

.equipment-thumb-btn {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	flex: 0 0 auto;
	padding: 0;
	border: 2px solid #e4e0d4;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.equipment-thumb-btn img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.equipment-thumb-btn:hover {
	transform: translateY(-2px);
}

.equipment-thumb-btn.is-active {
	border-color: #2e7d32;
}

.equipment-detail-info {
	background: #ffffff;
	border: 1px solid #e4e0d4;
	border-radius: 16px;
	padding: clamp(20px, 2.6vw, 30px);
	box-shadow: 0 12px 32px rgba(22, 33, 15, 0.08);
	position: sticky;
	top: 96px;
}

.equipment-detail-title {
	font-size: clamp(17px, 1.9vw, 22px);
	line-height: 1.15;
	margin: 0 0 12px;
}

.equipment-detail-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.equipment-cat-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #e8f3e9;
	color: #2e7d32;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.equipment-cat-badge:hover {
	background: #d3e9d6;
}

.equipment-detail-price {
	background: #fff8ec;
	border: 1px solid #f0e2c4;
	border-radius: 14px;
	padding: 16px 20px;
	margin-bottom: 18px;
}

.equipment-price-value {
	display: block;
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 800;
	color: #b26a00;
}

.equipment-price-note {
	display: block;
	font-size: 14px;
	color: #6b705c;
	margin-top: 4px;
}

.equipment-quick-specs {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	border: 1px solid #e4e0d4;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

.equipment-quick-specs li {
	display: flex;
	justify-content: flex-start;
	gap: 24px;
	padding: 11px 18px;
	font-size: 15px;
}

.equipment-quick-specs li:nth-child(odd) {
	background: #faf8f2;
}

.equipment-quick-label {
	flex: 0 0 84px;
	color: #6b705c;
}

.equipment-quick-value {
	font-weight: 600;
	color: #1d2327;
	text-align: left;
}

.equipment-models-more {
	display: none;
}

.equipment-models-more.is-open {
	display: inline;
}

.equipment-models-toggle {
	display: inline-block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--agrimech-green);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.equipment-models-toggle:hover {
	color: var(--agrimech-green-hover);
}

.equipment-cta {
	display: block;
	text-align: center;
	font-size: 17px;
	padding: 15px 24px;
	margin-bottom: 18px;
}

.equipment-contact-card {
	border: 1px dashed #c9c4b2;
	border-radius: 14px;
	padding: 14px 18px;
	background: #fcfbF7;
}

.equipment-contact-title {
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 6px;
	color: #1d2327;
}

.equipment-contact-line {
	display: block;
	color: #2e7d32;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	padding: 2px 0;
}

.equipment-contact-line:hover {
	text-decoration: underline;
}

.equipment-detail-section {
	margin-top: clamp(32px, 5vw, 56px);
}

.equipment-section-title {
	font-size: clamp(20px, 2.4vw, 26px);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 3px solid #f0b429;
	display: inline-block;
}

.equipment-detail-section .equipment-specs-table {
	width: 100%;
}

.equipment-specs-card {
	background: #ffffff;
	border: 1px solid #e4e0d4;
	border-radius: 16px;
	padding: clamp(14px, 2.2vw, 24px);
	box-shadow: 0 6px 22px rgba(22, 33, 15, 0.06);
}

.equipment-specs-card .equipment-specs-table {
	margin: 0;
	border: 0;
	border-radius: 0;
}

.equipment-specs-card .equipment-specs-table th {
	width: 30%;
}

.equipment-specs-card .equipment-specs-table tr:nth-child(even) td {
	background: #faf8f2;
}

/* Specifications: two columns on desktop for denser reading. */
@media (min-width: 861px) {
	.equipment-specs-card .equipment-specs-table tbody {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 32px;
	}

	.equipment-specs-card .equipment-specs-table tr {
		display: flex;
	}

	.equipment-specs-card .equipment-specs-table th {
		width: auto;
		flex: 0 0 42%;
		border-radius: 6px 0 0 6px;
	}

	.equipment-specs-card .equipment-specs-table td {
		flex: 1;
		border-radius: 0 6px 6px 0;
	}

	/* Uniform label+value chips: no checkerboard striping in 2-column mode. */
	.equipment-specs-card .equipment-specs-table td,
	.equipment-specs-card .equipment-specs-table tr:nth-child(even) td {
		background: #faf8f2;
	}

	.equipment-specs-card .equipment-specs-table th,
	.equipment-specs-card .equipment-specs-table td {
		border-bottom: 0;
		margin-bottom: 8px;
	}
}

@media (max-width: 860px) {
	.equipment-detail-top {
		grid-template-columns: 1fr;
	}

	.equipment-detail-info {
		position: static;
	}
}

/* ------------------------------------------------------------------
   Equipment archive: filter sidebar + result bar + card price
------------------------------------------------------------------ */

.equipment-archive-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: clamp(24px, 3.5vw, 44px);
	align-items: start;
}

.equipment-filters {
	position: sticky;
	top: 96px;
}

.equipment-filter-box {
	background: #fff;
	border: 1px solid #e4e0d4;
	border-radius: 14px;
	padding: 18px 20px;
	margin-bottom: 18px;
}

.equipment-filter-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f0b429;
}

.equipment-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.equipment-filter-list li {
	margin: 0;
}

.equipment-filter-list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 14px;
	color: #3a3f2e;
	text-decoration: none;
	transition: background 0.15s ease;
}

.equipment-filter-list a:hover {
	background: #f4f1e8;
}

.equipment-filter-list a.is-active {
	background: #2e7d32;
	color: #fff;
	font-weight: 600;
}

.equipment-filter-count {
	font-size: 12px;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 999px;
	padding: 1px 8px;
}

.equipment-filter-list a.is-active .equipment-filter-count {
	background: rgba(255, 255, 255, 0.25);
}

.equipment-filter-clear {
	display: inline-block;
	font-size: 13px;
	color: #b26a00;
	text-decoration: none;
}

.equipment-filter-clear:hover {
	text-decoration: underline;
}

.equipment-result-bar {
	font-size: 14px;
	color: #6b705c;
	margin-bottom: 18px;
	padding: 10px 16px;
	background: #fff;
	border: 1px solid #e4e0d4;
	border-radius: 10px;
}

.equipment-no-results {
	text-align: center;
	padding: 48px 20px;
	background: #fff;
	border: 1px dashed #c9c4b2;
	border-radius: 14px;
}

.equipment-no-results p {
	font-size: 16px;
	margin-bottom: 18px;
}

.equipment-card-price {
	font-size: 19px;
	font-weight: 800;
	color: #b26a00;
	margin: 10px 0 14px;
}

@media (max-width: 860px) {
	.equipment-archive-layout {
		grid-template-columns: 1fr;
	}

	.equipment-filters {
		position: static;
	}
}

/* Floating frontend edit button (visible to logged-in staff only). */
.agrimech-floating-edit {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 9999;
	display: inline-block;
	background: #2e7d32;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	padding: 12px 22px;
	border-radius: 999px;
	box-shadow: 0 10px 26px rgba(22, 33, 15, 0.28);
	text-decoration: none !important;
	transition: background 0.15s ease, transform 0.15s ease;
}

.agrimech-floating-edit:hover {
	background: #1b5e20;
	transform: translateY(-2px);
}

/* ------------------------------------------------------------------
   News / blog: card grid + single post layout (matches equipment style)
------------------------------------------------------------------ */

.posts-grid {
	margin-bottom: 8px;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--agrimech-card);
	border: 1px solid var(--agrimech-border);
	border-radius: var(--agrimech-radius);
	overflow: hidden;
	box-shadow: var(--agrimech-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(22, 33, 15, 0.12);
}

.post-card-thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f4f1e8;
}

.post-card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-cat {
	position: absolute;
	left: 12px;
	top: 12px;
	background: rgba(46, 125, 50, 0.92);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
}

.post-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 20px;
}

.post-card-title {
	font-size: 19px;
	line-height: 1.3;
	margin: 6px 0 10px;
}

.post-card-title a {
	color: #1d2327;
	text-decoration: none;
}

.post-card-title a:hover {
	color: #2e7d32;
}

.post-card-excerpt {
	font-size: 14px;
	color: #5c6148;
	flex: 1;
}

.post-card-excerpt p {
	margin: 0 0 10px;
}

.post-card .read-more {
	font-size: 14px;
	font-weight: 700;
	color: #b26a00;
	text-decoration: none;
	margin-top: 4px;
}

.post-card .read-more:hover {
	text-decoration: underline;
}

/* Single post: centered readable column. */
.single-post-layout {
	max-width: none;
	margin: 0;
}

.single-post-layout .entry-title {
	font-size: clamp(26px, 3.4vw, 38px);
	line-height: 1.2;
	margin: 0 0 12px;
}

.single-post-thumb {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e4e0d4;
	box-shadow: 0 14px 38px rgba(22, 33, 15, 0.1);
	margin: 22px 0;
}

.single-post-thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.single-post-layout .entry-content {
	font-size: 17px;
	line-height: 1.75;
}

.single-post-layout .entry-footer {
	margin-top: 26px;
	padding-top: 16px;
	border-top: 1px solid #e4e0d4;
}

/* ------------------------------------------------------------------
   Equipment inquiry form
------------------------------------------------------------------ */

.equipment-inquiry-layout {
	display: block;
}

.equipment-inquiry-form {
	background: #fff;
	border: 1px solid #e4e0d4;
	border-radius: 16px;
	padding: clamp(18px, 3vw, 28px);
	max-width: 720px;
	box-shadow: 0 6px 22px rgba(22, 33, 15, 0.06);
}

.equipment-inquiry-layout .equipment-inquiry-form {
	max-width: none;
}

.equipment-inquiry-machine {
	font-size: 15px;
	color: #3a3f2e;
	background: #f4f1e8;
	border-radius: 10px;
	padding: 10px 16px;
	margin-bottom: 18px;
}

.equipment-inquiry-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 18px;
}

.equipment-inquiry-field {
	margin-bottom: 14px;
}

.equipment-inquiry-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #1d2327;
}

.equipment-inquiry-field label span {
	color: #d63638;
}

.equipment-inquiry-field input,
.equipment-inquiry-field textarea {
	width: 100%;
	border: 1px solid #d8d4c4;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 15px;
	font-family: inherit;
	background: #fcfcf9;
}

.equipment-inquiry-field input:focus,
.equipment-inquiry-field textarea:focus {
	outline: 2px solid #2e7d32;
	outline-offset: 0;
	border-color: #2e7d32;
}

.equipment-inquiry-submit {
	font-size: 16px;
	padding: 13px 40px;
}

.equipment-inquiry-notice {
	max-width: 720px;
	border-radius: 10px;
	padding: 12px 18px;
	margin-bottom: 16px;
	font-size: 15px;
}

.equipment-inquiry-notice.is-success {
	background: #e8f3e9;
	border: 1px solid #bfe0c3;
	color: #1b5e20;
}

.equipment-inquiry-notice.is-error {
	background: #fdecea;
	border: 1px solid #f5c6c0;
	color: #8c1f18;
}

/* Honeypot field: invisible to humans. */
.agrimech-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* Direct-contact card beside the inquiry form: desktop & tablet only.
   Phones (<=640px) keep the original full-width form, unchanged. */
.equipment-inquiry-contact {
	display: none;
}

@media (min-width: 641px) {
	.equipment-inquiry-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
		gap: 22px;
		align-items: stretch;
	}

	/* Compact the form so its height matches the contact sidebar. */
	.equipment-inquiry-layout .equipment-inquiry-form {
		padding: 20px 22px;
	}

	.equipment-inquiry-layout .equipment-inquiry-machine {
		padding: 8px 14px;
		margin-bottom: 14px;
	}

	.equipment-inquiry-layout .equipment-inquiry-grid {
		gap: 10px 16px;
	}

	.equipment-inquiry-layout .equipment-inquiry-field {
		margin-bottom: 10px;
	}

	.equipment-inquiry-layout .equipment-inquiry-field label {
		margin-bottom: 4px;
	}

	.equipment-inquiry-layout .equipment-inquiry-field input,
	.equipment-inquiry-layout .equipment-inquiry-field textarea {
		padding: 8px 12px;
	}

	.equipment-inquiry-layout .equipment-inquiry-field textarea {
		height: 84px;
		resize: vertical;
	}

	.equipment-inquiry-layout .equipment-inquiry-submit {
		padding: 11px 32px;
	}

	.equipment-inquiry-contact {
		display: block;
		background: #fff;
		border: 1px solid #e4e0d4;
		border-radius: 16px;
		padding: 22px;
		box-shadow: 0 6px 22px rgba(22, 33, 15, 0.06);
	}

	.equipment-inquiry-contact h3 {
		margin: 0 0 8px;
		font-size: 1.05rem;
	}

	.equipment-inquiry-contact > p {
		color: #6b705c;
		font-size: 0.88rem;
		line-height: 1.55;
		margin: 0 0 16px;
	}

	.equipment-inquiry-contact-row {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 11px 13px;
		border: 1px solid #e4e0d4;
		border-radius: 12px;
		margin-bottom: 10px;
		color: #16210f;
		text-decoration: none;
		transition: border-color 0.2s ease, box-shadow 0.2s ease;
	}

	.equipment-inquiry-contact-row:last-child {
		margin-bottom: 0;
	}

	.equipment-inquiry-contact-row:hover {
		border-color: #2e7d32;
		box-shadow: 0 4px 14px rgba(22, 33, 15, 0.08);
		color: #16210f;
	}

	.inquiry-contact-icon {
		flex: 0 0 auto;
		width: 38px;
		height: 38px;
		border-radius: 10px;
		background: rgba(27, 94, 32, 0.1);
		color: #1b5e20;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.inquiry-contact-text {
		min-width: 0;
	}

	.inquiry-contact-text strong {
		display: block;
		font-size: 0.92rem;
	}

	.inquiry-contact-text em {
		display: block;
		font-style: normal;
		color: #6b705c;
		font-size: 0.85rem;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 640px) {
	.equipment-inquiry-grid {
		grid-template-columns: 1fr;
	}
}

/* Floating WhatsApp chat button (bottom-right). */
.agrimech-whatsapp-float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff !important;
	box-shadow: 0 10px 26px rgba(18, 140, 80, 0.4);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.agrimech-whatsapp-float:hover {
	transform: scale(1.08);
	box-shadow: 0 14px 32px rgba(18, 140, 80, 0.5);
}

.equipment-contact-whatsapp {
	color: #128c50 !important;
}

/* Top bar WhatsApp item. */
.top-bar-whatsapp a {
	font-weight: inherit;
}

.top-bar-whatsapp svg {
	color: #25d366;
}

/* -------------------------------------------------------------------------
   21. Mobile & tablet optimization
   Two breakpoints: <=1024px (tablet) and <=640px (phone). Rules here only
   adjust layout, spacing and touch targets; no color or typography redesign.
   ------------------------------------------------------------------------- */

/* ============================ Tablet (<=1024px) ========================== */
@media (max-width: 1024px) {
	/* Drop 3/4-column desktop grids to 2 comfortable columns. */
	.equipment-grid,
	.news-grid,
	.why-grid,
	.cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Sidebar layouts stack: content first, sidebar below, filters static. */
	.layout-with-sidebar {
		grid-template-columns: 1fr;
	}

	.equipment-archive-layout {
		grid-template-columns: 1fr;
	}

	.equipment-filters {
		position: static;
	}

	.equipment-filter-list a {
		padding: 11px 12px; /* >=44px touch height */
	}

	/* Filters become compact chip rows instead of tall stacked lists,
	   so products appear without a long scroll. */
	.equipment-filter-list {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.equipment-filter-list a {
		border: 1px solid #e4e0d4;
		border-radius: 999px;
		background: #fcfcf9;
		padding: 9px 16px;
	}

	.equipment-filter-list a.is-active {
		border-color: #2e7d32;
	}

	.equipment-filter-box {
		padding: 14px 16px;
		margin-bottom: 14px;
	}

	/* Top bar: smaller type, wrap instead of squeezing. */
	.top-bar {
		font-size: 0.8rem;
	}

	.top-bar .container {
		gap: 4px 16px;
		justify-content: flex-start;
	}

	.top-bar .top-bar-item {
		white-space: nowrap;
	}

	/* Hamburger touch target. */
	.nav-toggle {
		min-width: 44px;
		min-height: 44px;
	}

	/* Long words (model names, URLs, emails) never force horizontal scroll. */
	.equipment-card h3,
	.news-card h3,
	.post-card-title,
	.equipment-detail-title,
	.equipment-breadcrumb,
	.entry-content,
	.comment-body,
	.widget-area .widget {
		overflow-wrap: anywhere;
	}
}

/* ============================= Phone (<=640px) =========================== */
@media (max-width: 640px) {
	/* Every multi-column grid collapses to a single column... */
	.equipment-grid,
	.news-grid,
	.why-grid,
	.cat-grid,
	.contact-cards,
	.footer-widgets {
		grid-template-columns: minmax(0, 1fr);
	}

	/* ...except the stats band, which stays a compact 2x2. */
	.stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}

	/* Category cards hug their content instead of stretching to a
	   shared row height, removing the big empty area at the bottom. */
	.cat-grid {
		align-items: start;
	}

	.cat-card {
		padding: 22px 20px;
	}

	.stats-band {
		padding: 36px 0;
	}

	/* Top bar: hide the least critical item (working hours) and shrink. */
	.top-bar {
		font-size: 0.78rem;
	}

	.top-bar .container {
		gap: 2px 14px;
		padding-top: 6px;
		padding-bottom: 6px;
	}

	.top-bar .top-bar-item:last-child {
		display: none;
	}

	/* Header: slightly smaller branding so the toggle never crowds it. */
	.site-title {
		font-size: 1.3rem;
	}

	.site-branding .custom-logo-link img {
		max-height: 44px;
	}

	.site-branding .site-logo-default img {
		height: 40px;
	}

	.header-inner {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	/* Hero & sections: tighter vertical rhythm on small screens. */
	.hero {
		padding: clamp(52px, 14vw, 80px) 0;
	}

	.section {
		padding: clamp(44px, 12vw, 64px) 0;
	}

	.section-header {
		margin-bottom: 34px;
	}

	.hero-actions {
		gap: 12px;
	}

	/* Full-width stacked CTA buttons: easy to reach with a thumb. */
	.hero-actions .btn,
	.cta-inner .btn {
		width: 100%;
		text-align: center;
	}

	/* Cards: reduced padding, same visual language. */
	.cat-card,
	.why-item,
	.contact-card {
		padding: 22px 20px;
	}

	.equipment-body,
	.news-body {
		padding: 20px 20px 22px;
	}

	.post-card .post-card-body {
		padding: 20px;
	}

	/* Equipment detail: thumbnail rail stays compact on tablets. */
	.equipment-media-layout {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 10px;
	}

	.equipment-rail-track {
		gap: 8px;
	}

	.equipment-gallery {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}

	.equipment-quick-specs li {
		padding: 10px 14px;
		gap: 10px;
		font-size: 14px;
	}

	.equipment-cta {
		padding: 15px 18px;
		font-size: 16px;
	}

	/* Specs tables: smaller type and padding so rows fit narrow screens. */
	.equipment-specs-table th,
	.equipment-specs-table td {
		padding: 10px 12px;
		font-size: 0.86rem;
	}

	.equipment-specs-table th {
		width: 38%;
	}

	.equipment-specs-card {
		padding: 12px;
	}

	.entry-content th,
	.entry-content td {
		padding: 8px 10px;
		font-size: 0.9rem;
	}

	/* Testimonials: comfortable arrows, larger dot hit areas. */
	.testimonial-slider {
		padding: 34px 20px 24px;
	}

	.testimonial-arrow {
		width: 44px;
		height: 44px;
	}

	.testimonial-dot {
		width: 12px;
		height: 12px;
		padding: 6px;
		background-clip: content-box;
	}

	/* Footer: single column (already stacked) with comfortable link targets. */
	.footer-widgets {
		gap: 30px;
		padding: 46px 0 30px;
	}

	.social-links a {
		width: 44px;
		height: 44px;
	}

	/* Extra bottom space so the floating buttons never cover footer links. */
	.bottom-bar {
		padding-bottom: 88px;
	}

	/* Floating buttons: smaller, closer to the corner, safe-area aware. */
	.agrimech-whatsapp-float {
		width: 48px;
		height: 48px;
		right: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}

	.agrimech-floating-edit {
		left: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		padding: 10px 16px;
		font-size: 13px;
	}

	/* Forms: full-width submit, comfortable inputs. */
	.equipment-inquiry-submit {
		width: 100%;
	}

	.equipment-inquiry-whatsapp {
		padding: 14px 18px;
	}

	/* Pagination & misc touch targets. */
	.pagination .page-numbers {
		padding: 11px 15px;
	}

	.comments-area {
		padding: 22px 18px;
	}

	.comment-list .children {
		padding-left: 14px;
	}

	/* Keep long spec values and contact lines from overflowing. */
	.specs-list li span:last-child {
		text-align: right;
	}

	.equipment-contact-line,
	.equipment-filter-list a,
	.bottom-bar a {
		overflow-wrap: anywhere;
	}
}

/* -------------------------------------------------------------------------
   22. Phone homepage redesign (<=640px)
   A mobile-first arrangement of the block-based homepage: compact hero,
   2x2 stats, one-line category rows, 2-column featured products,
   swipeable testimonials. Desktop/tablet are untouched.
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {

	/* -- Sections: tighter rhythm --------------------------------------- */
	.wp-block-group.alignfull[style*="padding-top:56px"] {
		padding-top: 36px !important;
		padding-bottom: 36px !important;
	}

	.wp-block-group.alignfull[style*="padding-top:44px"] {
		padding-top: 30px !important;
		padding-bottom: 30px !important;
	}

	.alignfull > .has-x-large-font-size,
	.alignfull .wp-block-heading.has-x-large-font-size {
		font-size: 1.45rem !important;
		line-height: 1.25 !important;
		margin-bottom: 14px;
	}

	/* -- Hero: compact banner instead of a full screen ------------------- */
	.wp-block-cover.alignfull {
		min-height: 400px !important;
	}

	.wp-block-cover .has-huge-font-size {
		font-size: 1.9rem !important;
		line-height: 1.15 !important;
	}

	.wp-block-cover .has-large-font-size {
		font-size: 1rem !important;
	}

	.wp-block-buttons {
		gap: 10px;
	}

	.wp-block-button__link {
		padding: 12px 20px !important;
		font-size: 0.95rem !important;
	}

	/* -- Stats band: force a real 2x2 grid ------------------------------- */
	.has-agrimech-ink-background-color > .wp-block-columns {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 10px;
	}

	.has-agrimech-ink-background-color > .wp-block-columns .wp-block-column {
		margin: 0 !important;
		min-width: 0;
	}

	.has-agrimech-ink-background-color .has-x-large-font-size {
		font-size: 1.5rem !important;
		margin: 0 0 4px;
	}

	.has-agrimech-ink-background-color .wp-block-column p {
		margin: 0;
	}

	/* -- Category cards: one-line rows (title + link), no big boxes ------ */
	.wp-block-group.is-style-agrimech-card:has(> p > a) {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 14px 16px;
	}

	.wp-block-group.is-style-agrimech-card:has(> p > a) > h3 {
		margin: 0;
		font-size: 1.02rem;
	}

	.wp-block-group.is-style-agrimech-card:has(> p > a) > p {
		margin: 0;
	}

	.wp-block-group.is-style-agrimech-card:has(> p > a) > p.has-agrimech-muted-color {
		display: none;
	}

	.wp-block-group.is-style-agrimech-card:has(> p > a) > p > a {
		white-space: nowrap;
		font-weight: 600;
	}

	/* -- Why-choose-us cards: tighter ------------------------------------ */
	.wp-block-group.is-style-agrimech-card:not(:has(> p > a)) {
		padding: 16px 18px;
	}

	.wp-block-group.is-style-agrimech-card:not(:has(> p > a)) > h3 {
		font-size: 1.02rem;
		margin: 0 0 6px;
	}

	.wp-block-group.is-style-agrimech-card:not(:has(> p > a)) > p {
		font-size: 0.9rem;
		line-height: 1.55;
		margin: 0;
	}

	/* -- Testimonials: swipeable card strip ------------------------------ */
	.wp-block-columns:has(> .wp-block-column > .wp-block-quote) {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 12px;
		padding-bottom: 8px;
		scrollbar-width: none;
	}

	.wp-block-columns:has(> .wp-block-column > .wp-block-quote)::-webkit-scrollbar {
		display: none;
	}

	.wp-block-columns:has(> .wp-block-column > .wp-block-quote) > .wp-block-column {
		flex: 0 0 82%;
		margin: 0 !important;
		scroll-snap-align: start;
	}

	.wp-block-columns:has(> .wp-block-column > .wp-block-quote) .wp-block-quote {
		margin: 0;
		height: 100%;
		box-sizing: border-box;
	}

	/* -- Featured products: 2-column compact cards ------------------------ */
	.equipment-grid-featured {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.equipment-grid-featured .equipment-thumb {
		aspect-ratio: 4 / 3;
	}

	.equipment-grid-featured .equipment-body {
		padding: 12px 12px 14px;
	}

	.equipment-grid-featured .equipment-card h3 {
		font-size: 0.92rem;
		line-height: 1.3;
		margin: 0 0 4px;
	}

	.equipment-grid-featured .equipment-tagline {
		font-size: 0.78rem;
		margin-bottom: 6px;
	}

	.equipment-grid-featured .specs-list {
		display: none;
	}

	.equipment-grid-featured .equipment-card-price {
		font-size: 0.92rem;
		margin-bottom: 8px;
	}

	.equipment-grid-featured .equipment-card .btn {
		align-self: stretch;
		text-align: center;
		padding: 9px 10px;
		font-size: 0.8rem;
	}

	/* -- CTA band: centered, compact ------------------------------------- */
	.has-agrimech-amber-background-color .wp-block-buttons {
		justify-content: center;
	}
}

/* -------------------------------------------------------------------------
   23. Phone sitewide polish (<=640px)
   Extends the homepage phone redesign to the equipment archive, single
   equipment page, contact page and footer: higher information density,
   2-column product cards, compact spacing. Desktop/tablet untouched.
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {

	/* == Shared: archive + related + any product grid ==================== */
	.equipment-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.equipment-grid .equipment-thumb {
		aspect-ratio: 4 / 3;
	}

	.equipment-grid .equipment-body {
		padding: 12px 12px 14px;
	}

	.equipment-grid .equipment-card h3 {
		font-size: 0.92rem;
		line-height: 1.3;
		margin: 0 0 4px;
	}

	.equipment-grid .equipment-tagline {
		font-size: 0.78rem;
		margin-bottom: 6px;
	}

	.equipment-grid .specs-list {
		display: none;
	}

	.equipment-grid .equipment-card-price {
		font-size: 0.92rem;
		margin: 6px 0 8px;
	}

	.equipment-grid .equipment-card .btn {
		align-self: stretch;
		text-align: center;
		padding: 9px 10px;
		font-size: 0.8rem;
	}

	/* == Archive page: filters + result bar ============================== */
	.equipment-archive-layout {
		gap: 18px;
	}

	.equipment-filter-box {
		padding: 12px 14px;
		margin-bottom: 12px;
		border-radius: 12px;
	}

	.equipment-filter-title {
		font-size: 0.92rem;
		margin-bottom: 10px;
		padding-bottom: 8px;
	}

	.equipment-filter-list a {
		padding: 8px 14px;
		font-size: 0.85rem;
	}

	.equipment-result-bar {
		font-size: 0.82rem;
		padding: 8px 12px;
		margin-bottom: 14px;
	}

	/* == Single equipment: media + info ================================== */
	.equipment-breadcrumb {
		font-size: 0.78rem;
		margin: 4px 0 14px;
		gap: 6px;
	}

	.equipment-detail-title {
		font-size: 1.1rem;
		line-height: 1.2;
		margin-bottom: 8px;
	}

	.equipment-detail-cats {
		margin-bottom: 10px;
	}

	.equipment-cat-badge {
		font-size: 0.75rem;
		padding: 3px 10px;
	}

	.equipment-main-image {
		border-radius: 12px;
	}

	.equipment-media-layout {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 8px;
	}

	.equipment-rail-track {
		gap: 8px;
	}

	.equipment-thumb-btn {
		border-radius: 8px;
	}

	.equipment-rail-arrow {
		height: 24px;
	}

	.equipment-rail-track {
		top: 32px;
		bottom: 32px;
	}

	.equipment-detail-price {
		padding: 14px 16px;
		border-radius: 12px;
	}

	.equipment-price-value {
		font-size: 1.3rem;
	}

	.equipment-quick-specs {
		font-size: 0.85rem;
	}

	.equipment-quick-specs li {
		padding: 7px 0;
	}

	.equipment-cta {
		display: block;
		text-align: center;
		padding: 13px 18px;
		font-size: 0.95rem;
	}

	.equipment-contact-card {
		padding: 14px 16px;
		border-radius: 12px;
	}

	.equipment-contact-title {
		font-size: 0.92rem;
		margin-bottom: 8px;
	}

	.equipment-contact-line {
		font-size: 0.88rem;
		padding: 6px 0;
	}

	/* == Single equipment: sections ====================================== */
	.equipment-detail-section {
		margin-top: 30px;
	}

	.equipment-section-title {
		font-size: 1.2rem;
		margin-bottom: 12px;
	}

	.equipment-specs-card {
		padding: 14px 16px;
		border-radius: 12px;
	}

	.equipment-specs-card .specs-list {
		font-size: 0.85rem;
	}

	.equipment-specs-card .specs-list li {
		padding: 8px 0;
		gap: 10px;
	}

	.equipment-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin: 16px 0;
	}

	.equipment-gallery-item {
		border-radius: 8px;
	}

	/* == Inquiry form (detail + contact) ================================= */
	.equipment-detail-top {
		grid-template-columns: 1fr;
	}

	.equipment-inquiry-form {
		padding: 16px;
		border-radius: 12px;
	}

	.equipment-inquiry-submit {
		width: 100%;
		padding: 13px 20px;
	}

	.equipment-inquiry-whatsapp {
		padding: 12px 16px;
		font-size: 0.95rem;
	}

	/* == Contact page: compact 2-column cards ============================ */
	.contact-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		margin: 18px 0 16px;
	}

	.contact-card {
		padding: 16px 12px;
		border-radius: 12px;
	}

	.contact-card .cat-icon {
		margin-bottom: 8px;
	}

	.contact-card h3 {
		font-size: 0.92rem;
		margin-bottom: 4px;
	}

	.contact-card p,
	.contact-card a {
		font-size: 0.8rem;
		line-height: 1.4;
	}

	.contact-note {
		padding: 12px 14px;
		font-size: 0.85rem;
		margin-bottom: 22px;
	}

	.page-template-template-contact .section-header {
		margin-bottom: 18px;
	}

	/* == Footer: denser columns ========================================== */
	.footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 18px;
		padding: 38px 0 26px;
	}

	.footer-about {
		grid-column: 1 / -1;
	}

	.footer-widgets .widget-title {
		font-size: 0.95rem;
		margin-bottom: 12px;
	}

	.footer-widgets li {
		margin-bottom: 7px;
		font-size: 0.85rem;
	}

	.footer-about p {
		font-size: 0.85rem;
	}

	.social-links {
		gap: 10px;
		margin-top: 12px;
	}

	.social-links a {
		width: 36px;
		height: 36px;
	}

	.bottom-bar {
		padding: 14px 0;
		font-size: 0.78rem;
	}

	.bottom-bar .container {
		justify-content: center;
		text-align: center;
		gap: 6px 18px;
	}

	.bottom-bar ul {
		justify-content: center;
		gap: 4px 16px;
	}
}

/* -------------------------------------------------------------------------
   24. Phone news & posts polish (<=640px)
   Compact 2-column news/post cards (excerpt hidden) and a tighter single
   post reading layout. Desktop/tablet untouched.
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {

	/* == News cards (homepage) + post cards (blog, archive, search) ====== */
	.news-grid,
	.posts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.news-thumb,
	.post-card-thumb {
		aspect-ratio: 4 / 3;
	}

	.post-card-cat {
		left: 8px;
		top: 8px;
		font-size: 0.68rem;
		padding: 3px 9px;
	}

	.news-body,
	.post-card-body {
		padding: 12px 12px 14px;
	}

	.news-date,
	.post-card .entry-meta {
		font-size: 0.7rem;
		margin-bottom: 4px;
	}

	.news-card h3,
	.post-card h2.post-card-title {
		font-size: 0.92rem;
		line-height: 1.3;
		margin: 0 0 6px;
	}

	.news-excerpt,
	.post-card-excerpt {
		display: none;
	}

	.news-card .read-more,
	.post-card .read-more {
		font-size: 0.78rem;
		margin-top: 0;
	}

	/* == Single post: compact reading column ============================= */
	.single-post-layout .entry-title {
		font-size: 1.55rem;
	}

	.single-post-layout .entry-meta {
		font-size: 0.8rem;
	}

	.single-post-thumb {
		border-radius: 12px;
		margin: 16px 0;
	}

	.single-post-layout .entry-content {
		font-size: 1rem;
		line-height: 1.7;
	}

	.single-post-layout .entry-content h2 {
		font-size: 1.3rem;
	}

	.single-post-layout .entry-content h3 {
		font-size: 1.15rem;
	}

	.single-post-layout .entry-footer {
		margin-top: 18px;
		padding-top: 12px;
		font-size: 0.85rem;
	}
}

/* ------------------------------------------------------------------
   Product video: fixed 16:9 frame, the video always fills the frame
------------------------------------------------------------------ */
.equipment-video-frame {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 22px rgba(22, 33, 15, 0.08);
}

.equipment-video-frame video {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

/* ------------------------------------------------------------------
   Header search: scope select + keyword input + amber button
------------------------------------------------------------------ */
.header-search {
	display: flex;
	align-items: stretch;
	flex: 0 1 340px;
	min-width: 250px;
	height: 42px;
	background: #ffffff;
	border: 1px solid #d8d4c4;
	border-radius: 0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
	border-color: #2e7d32;
	box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.18);
}

.header-search .header-search-scope {
	width: auto;
	flex: 0 0 auto;
	border: none;
	border-right: 1px solid var(--agrimech-border);
	border-radius: 0;
	box-shadow: none;
	background: #fcfcf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231d2327' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 7px center;
	-webkit-appearance: none;
	appearance: none;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	color: var(--agrimech-ink);
	padding: 0 21px 0 10px;
	margin: 0;
	cursor: pointer;
	outline: none;
}

.header-search .header-search-scope:focus {
	outline: none;
	box-shadow: none;
}

.header-search .header-search-input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 40px;
	line-height: 20px;
	border: none;
	border-radius: 0;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	color: var(--agrimech-ink);
	outline: none;
}

.header-search .header-search-input:focus {
	outline: none;
	box-shadow: none;
}

.header-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.header-search .header-search-btn {
	flex: 0 0 56px;
	width: 56px;
	border: none;
	border-radius: 0;
	transform: none;
	background: var(--agrimech-amber);
	color: #1d2327 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.header-search .header-search-btn svg {
	display: block;
	margin: 0;
	flex: none;
}

.header-search .header-search-btn:hover {
	background: var(--agrimech-green);
	color: #ffffff !important;
	transform: none;
}

.header-search-mobile {
	display: none;
}

@media (max-width: 899px) {
	/* Hide the in-header copy; the normal-flow bar sits below the header
	   so the iOS caret bug inside sticky containers cannot trigger. */
	.site-header .header-search {
		display: none;
	}

	.header-search-mobile {
		display: block;
		background: #ffffff;
		border-bottom: 1px solid var(--agrimech-border);
		padding: 10px 16px;
	}

	.header-search-mobile .header-search {
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
	}

	/* iOS Safari zooms the page when a focused input is below 16px. */
	.header-search .header-search-scope,
	.header-search .header-search-input {
		font-size: 16px;
	}
}

/* Contact cards: the whole card acts as the link. */
.contact-card-link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.contact-card-link p {
	color: var(--agrimech-muted);
}

.contact-card-link:hover {
	border-color: var(--agrimech-green);
	box-shadow: var(--agrimech-shadow);
	transform: translateY(-2px);
	color: inherit;
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   Desktop-only Equipment dropdown (categories injected automatically).
   Mobile/tablet keeps the menu exactly as before: sub-menus stay hidden.
   ------------------------------------------------------------------------- */
@media (max-width: 899px) {
	.main-navigation ul ul,
	.main-navigation li:hover > ul,
	.main-navigation li:focus-within > ul {
		display: none !important;
	}
}

@media (min-width: 900px) {
	.main-navigation .menu-item-has-children > a::after {
		content: "";
		display: inline-block;
		width: 7px;
		height: 7px;
		margin-left: 7px;
		vertical-align: 2px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
	}
	.main-navigation ul ul {
		border: 1px solid var(--agrimech-border);
		min-width: 470px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2px 8px;
	}
	.main-navigation li:hover > ul,
	.main-navigation li:focus-within > ul {
		display: grid;
	}
	.main-navigation ul ul a {
		padding: 10px 14px;
		font-weight: 500;
		white-space: nowrap;
	}
}

/* -------------------------------------------------------------------------
   Homepage featured equipment: desktop shows 6 cards (2 rows x 3);
   tablet and phone show 4 cards (2 rows x 2).
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.home-equipment-grid .equipment-card:nth-child(n+5),
	.equipment-grid-featured .equipment-card:nth-child(n+5) {
		display: none;
	}
}

@media (max-width: 640px) {
	/* Keep the home grid at two columns on phones (override the single-column collapse). */
	.home-equipment-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
	.home-equipment-grid .equipment-body {
		padding: 14px;
	}
	.home-equipment-grid .equipment-card h3 {
		font-size: 0.82rem;
	}
	.home-equipment-grid .equipment-card .btn {
		padding: 8px 12px;
		font-size: 0.8rem;
	}
}

/* -------------------------------------------------------------------------
   Dynamic categories block: desktop 2 rows x 4 (8 cards), tablet/phone
   2 rows x 3 (6 cards). Text-only cards, no icon.
   ------------------------------------------------------------------------- */
.agrimech-cat-block-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
	/* Tablet and phone: 2 per row, 3 rows = 6 categories. */
	.agrimech-cat-block-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.agrimech-cat-block-grid .cat-card:nth-child(n+7) {
		display: none;
	}
}

/* -------------------------------------------------------------------------
   Homepage featured product cards: center the product name and button.
   ------------------------------------------------------------------------- */
.equipment-grid-featured .equipment-body,
.home-equipment-grid .equipment-body {
	align-items: center;
	text-align: center;
}

.equipment-grid-featured .equipment-card .btn,
.home-equipment-grid .equipment-card .btn {
	align-self: center;
}

/* -------------------------------------------------------------------------
   Dynamic categories block: smaller card titles.
   ------------------------------------------------------------------------- */
.agrimech-cat-block-grid .cat-card h3 {
	font-size: 0.95rem;
	margin-bottom: 6px;
}

/* -------------------------------------------------------------------------
   Equipment archive (list page) only: Alibaba-style inset image frame.
   Square 1:1 box, inset from the card edges, thin border + rounded
   corners, image fills it (cover). Homepage cards keep the 4:3 ratio.
   Placed last so it also wins over the phone breakpoint rule of equal
   specificity.
   ------------------------------------------------------------------------- */
.equipment-archive-content .equipment-thumb {
	aspect-ratio: 1 / 1;
	margin: 10px 10px 0;
	border: 1px solid #e5e1d8;
	border-radius: 10px;
	background: #fff;
}

.equipment-archive-content .equipment-thumb img {
	transition: transform 0.3s ease;
}

.equipment-archive-content .equipment-card:hover .equipment-thumb img {
	transform: scale(1.05);
}

/* -------------------------------------------------------------------------
   Equipment card: "Get a Quote" pill button below the price.
   ------------------------------------------------------------------------- */
.equipment-quote-btn {
	display: block;
	width: fit-content;
	min-width: 150px;
	margin: 10px auto 0;
	padding: 9px 26px;
	border: 1.5px solid #1d2327;
	border-radius: 999px;
	background: #fff;
	color: #1d2327;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.equipment-quote-btn:hover {
	background: var(--agrimech-amber);
	border-color: var(--agrimech-amber);
	color: #16210f;
}

/* -------------------------------------------------------------------------
   Equipment archive list: Made-in-China.com style hairline grid.
   ONLY the layout between cards changes (no gaps, thin dividers,
   4/3/2 columns). Card internals stay exactly as they are.
   ------------------------------------------------------------------------- */
.equipment-archive-content .equipment-grid {
	gap: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	background: #fff;
	border: 1px solid #e5e1d8;
	border-bottom: none;
	border-radius: 14px;
	overflow: hidden;
}

.equipment-archive-content .equipment-card {
	border: none;
	border-radius: 0;
	box-shadow: none;
	border-right: 1px solid #eee9dd;
	border-bottom: 1px solid #eee9dd;
	transition: none;
}

.equipment-archive-content .equipment-card:hover {
	transform: none;
	box-shadow: none;
}

@media (min-width: 900px) {
	.equipment-archive-content .equipment-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.equipment-archive-content .equipment-card:nth-child(3n) {
		border-right: none;
	}
}

@media (min-width: 641px) and (max-width: 899px) {
	.equipment-archive-content .equipment-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.equipment-archive-content .equipment-card:nth-child(3n) {
		border-right: none;
	}
}

@media (max-width: 640px) {
	.equipment-archive-content .equipment-grid {
		border-radius: 12px;
	}

	.equipment-archive-content .equipment-card:nth-child(2n) {
		border-right: none;
	}
}
