/*
Theme Name: Agrosym Blocksy Child
Theme URI: https://agrosym.net/
Description: Agrosym presentation layer built as a child of Blocksy.
Author: Agrosym
Template: blocksy
Version: 1.1.1
Text Domain: agrosym-blocksy-child
*/

:root {
	--agrosym-green: #366B34;
	--agrosym-green-light: #869F3F;
	--agrosym-earth: #614B1F;
	--agrosym-ink: #2B2B19;
	--agrosym-sand: #F6F5EE;
	--agrosym-white: #FFFFFF;
	--agrosym-radius: 18px;
	--agrosym-shadow: 0 18px 45px rgba(43, 43, 25, 0.10);
}

/* Arabic-first public presentation. WooCommerce templates remain untouched. */
body:not(.wp-admin) {
	background: var(--agrosym-white);
	color: var(--agrosym-ink);
	font-family: Tahoma, Arial, sans-serif;
}

/* Generated Agrosym pages provide their own hero H1. Keep Blocksy's generic
   page header for all other WordPress content, including WooCommerce pages. */
.agrosym-managed-page .entry-header,
body.page.elementor-page .entry-header {
	display: none;
}

.ag-page,
.agrosym-site-footer {
	direction: rtl;
	text-align: right;
}

.ag-container {
	width: min(1180px, calc(100% - 2.5rem));
	margin-inline: auto;
}

.ag-page {
	overflow: hidden;
}

.ag-section {
	padding-block: clamp(3.75rem, 8vw, 7.5rem);
}

.ag-section--soft {
	background: var(--agrosym-sand);
}

.ag-section--dark {
	background: var(--agrosym-ink);
	color: var(--agrosym-white);
}

.ag-section--dark .ag-kicker,
.ag-section--dark h2 {
	color: var(--agrosym-white);
}

.ag-section-heading {
	max-width: 760px;
	margin-bottom: 2rem;
}

.ag-section-heading h2,
.ag-hero h1 {
	color: var(--agrosym-ink);
	font-weight: 800;
	line-height: 1.24;
	letter-spacing: -0.03em;
}

.ag-section-heading h2 {
	margin: .35rem 0 0;
	font-size: clamp(1.8rem, 3vw, 3rem);
}

.ag-kicker,
.ag-hero__kicker {
	color: var(--agrosym-green);
	font-weight: 800;
	font-size: .82rem;
	letter-spacing: .04em;
}

.ag-lead,
.ag-section-content > p {
	max-width: 780px;
	font-size: clamp(1.02rem, 1.55vw, 1.16rem);
	line-height: 1.9;
}

.ag-highlight {
	color: var(--agrosym-green);
	font-size: 1.25rem;
	font-weight: 800;
}

.ag-hero {
	position: relative;
	padding-block: clamp(5.5rem, 11vw, 9.5rem);
	background:
		radial-gradient(circle at 80% 18%, rgba(134, 159, 63, .26), transparent 34%),
		linear-gradient(135deg, #f6f5ee 0%, #ffffff 48%, #edf3e7 100%);
}

.ag-hero::after {
	content: '';
	position: absolute;
	width: min(42vw, 540px);
	aspect-ratio: 1;
	left: -12%;
	bottom: -45%;
	border: 56px solid rgba(54, 107, 52, .08);
	border-radius: 50%;
	pointer-events: none;
}

.ag-hero__content {
	position: relative;
	z-index: 1;
	max-width: 800px;
}

.ag-hero h1 {
	max-width: 770px;
	margin: .55rem 0 1.2rem;
	font-size: clamp(2.35rem, 5vw, 5rem);
}

.ag-hero__copy {
	max-width: 730px;
	font-size: clamp(1.1rem, 1.8vw, 1.32rem);
	line-height: 1.9;
}

.ag-hero--compact {
	padding-block: clamp(4rem, 7vw, 6.5rem);
}

.ag-hero--compact h1 {
	font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.ag-actions,
.agrosym-product-cta {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
	margin-top: 1.75rem;
}

.ag-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: .7rem 1.2rem;
	border: 1px solid var(--agrosym-green);
	border-radius: 999px;
	background: var(--agrosym-green);
	color: var(--agrosym-white);
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.ag-btn:hover,
.ag-btn:focus-visible {
	transform: translateY(-2px);
	background: #295b2a;
	color: var(--agrosym-white);
}

.ag-btn--outline {
	background: transparent;
	color: var(--agrosym-green);
}

.ag-btn--outline:hover,
.ag-btn--outline:focus-visible {
	background: var(--agrosym-green);
	color: var(--agrosym-white);
}

.ag-btn--light {
	border-color: var(--agrosym-white);
	color: var(--agrosym-white);
}

.ag-grid,
.ag-family-grid,
.ag-product-grid,
.ag-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.ag-card,
.ag-family-card,
.ag-product-card,
.ag-post-card,
.ag-empty-state {
	border: 1px solid rgba(54, 107, 52, .13);
	border-radius: var(--agrosym-radius);
	background: var(--agrosym-white);
	box-shadow: 0 10px 30px rgba(43, 43, 25, .06);
}

.ag-card,
.ag-family-card,
.ag-empty-state {
	padding: 1.5rem;
}

.ag-card h3,
.ag-family-card h3,
.ag-product-card h3,
.ag-post-card h3 {
	margin: 0 0 .65rem;
	color: var(--agrosym-ink);
	font-size: 1.16rem;
	font-weight: 800;
}

.ag-card p,
.ag-family-card p,
.ag-product-card p,
.ag-post-card p {
	margin: 0;
	line-height: 1.75;
}

.ag-family-card,
.ag-product-card,
.ag-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.ag-family-card__body,
.ag-product-card__body,
.ag-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.45rem;
}

.ag-family-card .ag-btn,
.ag-product-card .ag-btn,
.ag-post-card .ag-btn {
	align-self: flex-start;
	margin-top: auto;
}

.ag-product-card img,
.ag-post-card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 2.45;
	object-fit: cover;
	background: var(--agrosym-sand);
}

.ag-product-card__meta,
.ag-post-card__meta {
	margin: 0 0 .55rem;
	color: var(--agrosym-green);
	font-size: .86rem;
	font-weight: 800;
}

.ag-check-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem 1.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-check-list li {
	position: relative;
	padding-right: 1.5rem;
	line-height: 1.7;
}

.ag-check-list li::before {
	position: absolute;
	top: .18rem;
	right: 0;
	content: '✓';
	color: var(--agrosym-green);
	font-weight: 900;
}

.ag-steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-steps li {
	display: grid;
	gap: .8rem;
	padding: 1.15rem;
	border-top: 3px solid var(--agrosym-green-light);
	background: var(--agrosym-white);
	box-shadow: 0 8px 24px rgba(43, 43, 25, .05);
}

.ag-steps span {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--agrosym-green);
	color: var(--agrosym-white);
	font-weight: 800;
}

.ag-center {
	display: flex;
	justify-content: center;
	margin-top: 1.75rem;
}

.ag-empty-state {
	max-width: 680px;
}

.ag-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	max-width: 850px;
}

.ag-form__field {
	display: grid;
	gap: .45rem;
	font-weight: 700;
}

.ag-form__field--full {
	grid-column: 1 / -1;
}

.ag-form input,
.ag-form textarea {
	width: 100%;
	border: 1px solid rgba(54, 107, 52, .25);
	border-radius: 10px;
	background: var(--agrosym-white);
	color: var(--agrosym-ink);
	font: inherit;
	padding: .75rem .85rem;
}

.ag-form textarea {
	min-height: 150px;
	resize: vertical;
}

.ag-form input:focus,
.ag-form textarea:focus {
	outline: 3px solid rgba(134, 159, 63, .25);
	border-color: var(--agrosym-green);
}

.ag-form__note,
.ag-form__notice {
	grid-column: 1 / -1;
	margin: 0;
	line-height: 1.65;
}

.ag-form__notice {
	padding: .8rem 1rem;
	border-radius: 10px;
	background: #eaf3e6;
	color: #285e2a;
	font-weight: 700;
}

.ag-form-wrap {
	max-width: 850px;
}

.ag-inquiry-form {
	display: grid;
	gap: 1rem;
}

.ag-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.ag-field {
	display: grid;
	gap: .45rem;
	margin: 0;
	font-weight: 700;
}

.ag-field--full {
	grid-column: 1 / -1;
}

.ag-inquiry-form input:not([type='checkbox']),
.ag-inquiry-form textarea {
	width: 100%;
	border: 1px solid rgba(54, 107, 52, .25);
	border-radius: 10px;
	background: var(--agrosym-white);
	color: var(--agrosym-ink);
	font: inherit;
	padding: .75rem .85rem;
}

.ag-inquiry-form textarea {
	min-height: 150px;
	resize: vertical;
}

.ag-inquiry-form input:focus,
.ag-inquiry-form textarea:focus {
	outline: 3px solid rgba(134, 159, 63, .25);
	border-color: var(--agrosym-green);
}

.ag-honeypot {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.ag-consent {
	margin: 0;
	line-height: 1.7;
}

.ag-consent input {
	margin-left: .45rem;
}

.ag-form-success {
	margin-bottom: 1rem;
	padding: .9rem 1rem;
	border-radius: 10px;
	background: #eaf3e6;
	color: #285e2a;
	font-weight: 700;
}

.agrosym-site-footer {
	background: var(--agrosym-ink);
	color: rgba(255, 255, 255, .82);
	padding-top: 4rem;
}

.agrosym-site-footer h2,
.agrosym-site-footer strong,
.agrosym-site-footer a {
	color: var(--agrosym-white);
}

.agrosym-site-footer__grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr 1.3fr 1fr;
	gap: 2rem;
	padding-bottom: 3rem;
}

.agrosym-site-footer__brand {
	display: block;
	margin-bottom: .75rem;
	font-size: 1.4rem;
}

.agrosym-site-footer h2 {
	margin: 0 0 .85rem;
	font-size: 1rem;
}

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

.agrosym-site-footer li + li {
	margin-top: .55rem;
}

.agrosym-site-footer p {
	line-height: 1.75;
}

.agrosym-site-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem max(1.25rem, calc((100% - 1180px) / 2));
	border-top: 1px solid rgba(255, 255, 255, .16);
	font-size: .88rem;
}

body:not(.wp-admin) #footer {
	display: none;
}

body:not(.wp-admin) #header .default-logo {
	content: url('/wp-content/uploads/2026/08/agrosym-logo-final.svg');
	width: auto;
	max-height: 56px;
}

.agrosym-section {
	padding-block: clamp(3.5rem, 7vw, 7rem);
}

.agrosym-eyebrow {
	color: var(--agrosym-green);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.agrosym-product-facts {
	border: 1px solid rgba(54, 107, 52, 0.16);
	border-radius: var(--agrosym-radius);
	background: var(--agrosym-sand);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.agrosym-product-facts__title {
	color: var(--agrosym-ink);
	font-size: 1.25rem;
	margin: 0 0 1rem;
}

.agrosym-product-facts__list {
	display: grid;
	gap: 0.8rem;
	margin: 0;
}

.agrosym-product-facts__item {
	display: grid;
	gap: 0.2rem;
}

.agrosym-product-facts__item dt {
	color: var(--agrosym-green);
	font-weight: 700;
}

.agrosym-product-facts__item dd {
	margin: 0;
}

.agrosym-product-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.agrosym-product-cta .button {
	border-radius: 999px;
	box-shadow: none;
}

.agrosym-product-editorial {
	border: 1px solid rgba(54, 107, 52, 0.14);
	border-radius: var(--agrosym-radius);
	background: var(--agrosym-white);
	padding: clamp(1.25rem, 3vw, 2rem);
	margin-top: 1.25rem;
}

.agrosym-product-editorial h2,
.agrosym-product-editorial h3 {
	color: var(--agrosym-ink);
}

.agrosym-product-editorial h2 {
	font-size: clamp(1.35rem, 2vw, 1.7rem);
	margin: 0 0 0.8rem;
}

.agrosym-product-editorial h3 {
	font-size: 1.05rem;
	margin: 1.25rem 0 0.6rem;
}

.agrosym-product-editorial p {
	margin: 0.65rem 0;
}

.agrosym-product-editorial__lead {
	color: var(--agrosym-green);
	font-weight: 700;
}

.agrosym-product-editorial ul {
	margin: 0;
	padding-inline-start: 1.2rem;
}

.agrosym-product-editorial li + li {
	margin-top: 0.45rem;
}

.ag-faq {
	display: grid;
	gap: 0.75rem;
}

.ag-faq details {
	border: 1px solid rgba(54, 107, 52, 0.18);
	border-radius: 12px;
	background: var(--agrosym-white);
	padding: 1rem 1.1rem;
}

.ag-faq summary {
	color: var(--agrosym-ink);
	cursor: pointer;
	font-weight: 700;
}

.ag-faq p {
	margin: 0.8rem 0 0;
}

@media (max-width: 1024px) {
	.ag-grid,
	.ag-family-grid,
	.ag-product-grid,
	.ag-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ag-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.agrosym-site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ag-container {
		width: min(100% - 2rem, 1180px);
	}

	.ag-section {
		padding-block: 3.5rem;
	}

	.ag-hero {
		padding-block: 4.5rem;
	}

	.ag-grid,
	.ag-family-grid,
	.ag-product-grid,
	.ag-post-grid,
	.ag-steps,
	.ag-form,
	.agrosym-site-footer__grid,
	.ag-check-list {
		grid-template-columns: 1fr;
	}

	.ag-form-grid {
		grid-template-columns: 1fr;
	}

	.ag-section-heading {
		margin-bottom: 1.5rem;
	}

	.ag-section-heading h2 {
		font-size: 1.8rem;
	}

	.ag-hero h1 {
		font-size: 2.35rem;
	}

	.ag-hero__copy {
		font-size: 1.05rem;
	}

	.ag-actions,
	.ag-actions .ag-btn,
	.ag-form .ag-btn {
		width: 100%;
	}

	.agrosym-site-footer__bottom {
		flex-direction: column;
		padding-inline: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ag-btn {
		transition: none;
	}
}
