/**
 * Allfresh Core — Public Styles
 *
 * Styles for forms, certifications grid, recipe cards,
 * and other shortcode-rendered content.
 *
 * @package AllfreshCore
 */

/* ── Forms ──────────────────────────────────────────────────────── */

.allfresh-form-wrapper {
	max-width: 800px;
	margin: 2rem auto;
	padding: 2.5rem;
	background: #FFFFFF;
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	border: 1px solid #E0DCD0;
}

.allfresh-form-wrapper__title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: #1D1C1C;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #F4F1E3;
}

.allfresh-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

.allfresh-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.allfresh-form__field--full {
	margin-bottom: 1.25rem;
}

.allfresh-form__field label {
	font-family: "Poppins", sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	color: #1D1C1C;
}

.allfresh-form__field label .required {
	color: #C62828;
}

.allfresh-form__field input,
.allfresh-form__field select,
.allfresh-form__field textarea {
	font-family: "Poppins", sans-serif;
	font-size: 0.9375rem;
	padding: 0.75rem 1rem;
	border: 1px solid #E0DCD0;
	border-radius: 6px;
	background: #FAFAF8;
	color: #1D1C1C;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.allfresh-form__field input:focus,
.allfresh-form__field select:focus,
.allfresh-form__field textarea:focus {
	outline: none;
	border-color: #BD9331;
	box-shadow: 0 0 0 3px rgba(189, 147, 49, 0.15);
}

.allfresh-form__submit {
	margin-top: 1.5rem;
}

.allfresh-form__submit button {
	width: 100%;
}

.allfresh-form__feedback {
	margin-top: 1rem;
	padding: 1rem 1.25rem;
	border-radius: 6px;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.allfresh-form__feedback--success {
	background: #E8F5E9;
	color: #2E7D32;
	border: 1px solid #A5D6A7;
}

.allfresh-form__feedback--error {
	background: #FFEBEE;
	color: #C62828;
	border: 1px solid #EF9A9A;
}

/* ── Certifications Grid ────────────────────────────────────────── */

.allfresh-certifications-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.5rem;
	padding: 1.5rem 0;
}

.allfresh-cert-card {
	text-align: center;
	padding: 2rem 1.5rem;
	background: #FFFFFF;
	border-radius: 8px;
	border: 1px solid #E0DCD0;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.allfresh-cert-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.allfresh-cert-card__icon {
	font-size: 2.5rem;
	margin-bottom: 0.75rem;
}

.allfresh-cert-card__title {
	font-family: "Poppins", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: #1D1C1C;
}

/* ── Recipes Grid ───────────────────────────────────────────────── */

.allfresh-recipes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	padding: 1.5rem 0;
}

.allfresh-recipe-card {
	background: #FFFFFF;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	border: 1px solid #E0DCD0;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.allfresh-recipe-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.allfresh-recipe-card__image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.allfresh-recipe-card__body {
	padding: 1.25rem;
}

.allfresh-recipe-card__title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.375rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.allfresh-recipe-card__title a {
	color: #1D1C1C;
	text-decoration: none;
}

.allfresh-recipe-card__title a:hover {
	color: #BD9331;
}

.allfresh-recipe-card__excerpt {
	font-size: 0.9375rem;
	color: #545454;
	line-height: 1.6;
}

/* ── Contact Info Block ─────────────────────────────────────────── */

.allfresh-contact-info {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-size: 0.9375rem;
}

.allfresh-contact-info a {
	color: #BD9331;
	text-decoration: none;
}

.allfresh-contact-info a:hover {
	text-decoration: underline;
}

/* ── No Results ─────────────────────────────────────────────────── */

.allfresh-no-results {
	text-align: center;
	padding: 3rem;
	color: #888;
	font-style: italic;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.allfresh-form__row {
		grid-template-columns: 1fr;
	}

	.allfresh-form-wrapper {
		padding: 1.5rem;
		margin: 1rem;
	}

	.allfresh-certifications-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.allfresh-recipes-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.allfresh-certifications-grid {
		grid-template-columns: 1fr;
	}
}
