/* hawaagri build 124 */
/* ==========================================================================
   Hawa Agri — theme styles
   ========================================================================== */

:root {
	--ha-radius: 6px;
	--ha-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

/* Browsers apply an 8px default margin to <body> that WordPress core does
   not reset for block themes — this was showing as a white strip above
   the header (and a matching strip around the whole page) on every page. */
html {
	margin: 0;
}

body {
	margin: 0;
}

.ha-main > * {
	margin-block: 0;
}

/* ---------- Section scaffolding ---------- */

.ha-section {
	padding-block: 72px;
}

.ha-section--tight {
	padding-block: 36px;
}

.ha-hero__eyebrow {
	color: #fff;
	text-align: center;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 10px;
}

.ha-section__eyebrow {
	margin: 0 0 8px;
	color: var(--wp--preset--color--brand-green);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ha-section__title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 3vw, 2.125rem);
	line-height: 1.25;
}

.ha-section__lead {
	max-width: 640px;
	margin: 0 auto 40px;
	color: var(--wp--preset--color--muted);
}

/* ---------- Hero ---------- */

.ha-hero {
	align-items: center;
}

.ha-hero .wp-block-cover__inner-container {
	max-width: 1200px;
	margin-inline: auto;
	width: 100%;
	padding-inline: 20px;
	text-align: center;
}

.ha-hero__cta {
	justify-content: center;
}

.ha-hero__title {
	color: #fff;
	font-size: clamp(2.25rem, 6vw, 4rem);
	margin: 0 0 12px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.ha-hero__text {
	max-width: 520px;
	color: #fff;
	font-size: 1.0625rem;
	margin: 0 0 28px;
}

.ha-hero__cta .wp-block-button__link {
	padding: 14px 32px;
	font-size: 1rem;
}

/* ---------- Logo strips ---------- */

.ha-logo-grid {
	gap: 40px;
	align-items: center;
	justify-content: center;
}

.ha-logo-grid__item {
	margin: 0;
	flex: 0 0 auto;
}

.ha-logo-grid__item img {
	max-height: 64px;
	width: auto;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

.ha-logo-grid__item img:hover {
	filter: none;
	opacity: 1;
}

/* ---------- Advantages ---------- */

.ha-advantages {
	gap: 32px;
	margin-top: 8px;
}

.ha-advantage {
	text-align: left;
}

.ha-advantage__icon {
	margin: 0 0 18px;
}

.ha-advantage__icon img {
	width: 64px;
	height: auto;
}

.ha-advantage__title {
	margin: 0 0 10px;
	font-size: 1.0625rem;
	line-height: 1.35;
}

.ha-advantage__text {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
}

/* ---------- Categories ---------- */

.ha-category-grid {
	gap: 14px;
}

.ha-category-card {
	margin: 0;
	flex: 0 1 auto;
}

.ha-category-card a {
	display: block;
	padding: 14px 22px;
	background: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ha-radius);
	color: var(--wp--preset--color--text);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ha-category-card a:hover {
	background: var(--wp--preset--color--brand-green);
	border-color: var(--wp--preset--color--brand-green);
	color: #fff;
}

/* ---------- Products ---------- */

.ha-products .wp-block-post-template {
	gap: 28px;
}

.ha-products .wp-block-post {
	padding: 18px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ha-radius);
	text-align: center;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ha-products .wp-block-post:hover {
	box-shadow: var(--ha-shadow);
	transform: translateY(-2px);
}

.ha-product__image img {
	max-height: 190px;
	width: auto;
	margin-inline: auto;
	object-fit: contain;
}

.ha-product__title {
	margin: 14px 0 10px;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.ha-product__title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.ha-product__title a:hover {
	color: var(--wp--preset--color--brand-green);
}

.ha-product__quote a,
.ha-quote-button {
	display: inline-block;
	padding: 9px 20px;
	background: var(--wp--preset--color--brand-green);
	border-radius: 4px;
	color: #fff !important;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

.ha-product__quote a:hover,
.ha-quote-button:hover {
	background: var(--wp--preset--color--brand-green-dark);
}

/* ---------- Reviews ---------- */

.ha-reviews {
	flex-wrap: wrap !important;
	gap: 24px;
}

.ha-review {
	flex-basis: calc(33.333% - 16px) !important;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ha-radius);
}

.ha-review__text {
	margin: 0 0 18px;
	color: var(--wp--preset--color--text);
	font-size: 0.9375rem;
}

.ha-review__who {
	gap: 12px;
	align-items: center;
}

.ha-review__avatar {
	margin: 0;
}

.ha-review__avatar img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
}

.ha-review__name {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
}

/* ---------- Team ---------- */

.ha-team-grid {
	gap: 28px;
	margin-bottom: 40px;
}

.ha-member {
	flex: 0 0 calc(16.666% - 24px);
	min-width: 150px;
	text-align: center;
}

.ha-member__photo {
	margin: 0 0 12px;
}

.ha-member__photo img {
	width: 100%;
	aspect-ratio: 1;
	border-radius: var(--ha-radius);
	object-fit: cover;
}

.ha-member__name {
	margin: 0 0 4px;
	font-size: 0.9375rem;
	font-weight: 700;
}

.ha-member__role {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
}

/* ---------- Blog ---------- */

.ha-blog .wp-block-post-template {
	gap: 26px;
}

.ha-blog__image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: var(--ha-radius);
	object-fit: cover;
}

.ha-blog__title {
	margin: 14px 0 8px;
	font-size: 1rem;
	line-height: 1.35;
}

.ha-blog__title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.ha-blog__title a:hover {
	color: var(--wp--preset--color--brand-green);
}

.ha-blog__excerpt {
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
}

.ha-blog__excerpt .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 8px;
	color: var(--wp--preset--color--brand-green);
	font-weight: 600;
}

/* ---------- Contact form ---------- */

.ha-form {
	max-width: 640px;
}

.ha-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ha-form__row {
	margin: 0 0 18px;
}

.ha-form__row label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
	font-weight: 600;
}

.ha-form__row input,
.ha-form__row textarea,
.ha-form__row select {
	width: 100%;
	padding: 11px 14px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text);
}

.ha-form__row input:focus,
.ha-form__row textarea:focus,
.ha-form__row select:focus {
	border-color: var(--wp--preset--color--brand-green);
	outline: 2px solid rgba(44, 110, 53, 0.25);
	outline-offset: 1px;
}

.ha-form__row input[type="file"] {
	padding: 9px 12px;
}

.ha-form__submit {
	padding: 13px 30px;
	background: var(--wp--preset--color--brand-green);
	border: 0;
	border-radius: 4px;
	color: #fff;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ha-form__submit:hover {
	background: var(--wp--preset--color--brand-green-dark);
}

.ha-form__notice {
	margin: 0 0 22px;
	padding: 13px 16px;
	border-radius: 4px;
	font-size: 0.9375rem;
}

.ha-form__notice--ok {
	background: #edf7ed;
	border: 1px solid #bfe3bf;
	color: #1e5b27;
}

.ha-form__notice--error {
	background: #fdeceb;
	border: 1px solid #f3c2bf;
	color: #8c2f28;
}

.ha-contact-details {
	padding: 22px;
	background: var(--wp--preset--color--surface-alt);
	border-radius: var(--ha-radius);
	line-height: 2;
}

/* ---------- Accessibility ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-green);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.ha-member {
		flex-basis: calc(25% - 21px);
	}

	.ha-review {
		flex-basis: calc(50% - 12px) !important;
	}
}

@media (max-width: 782px) {
	.ha-section {
		padding-block: 48px;
	}

	.ha-advantages {
		flex-wrap: wrap !important;
	}

	.ha-advantage {
		flex-basis: calc(50% - 16px) !important;
	}

	.ha-member {
		flex-basis: calc(33.333% - 19px);
	}

	.ha-logo-grid {
		gap: 26px;
	}
}

@media (max-width: 600px) {
	.ha-advantage,
	.ha-review {
		flex-basis: 100% !important;
	}

	.ha-member {
		flex-basis: calc(50% - 14px);
	}
}

/* ==========================================================================
   Media containment.

   Post and page content can carry images at their intrinsic size (a 600px
   image in a single post overflowed a 390px viewport by 230px). Nothing was
   capping them.
   ========================================================================== */

main img,
main figure,
main iframe,
main video,
main table,
main pre {
	max-width: 100%;
}

main img {
	height: auto;
}
