/**
 * Food26 Recipe Search
 *
 * Contents
 * 1. Layout (variables)
 * 2. Greeting, title, text
 * 3. Search box
 * 4. Popular searches, trust points
 * 5. Photos and the recipe card
 * 6. Centred layout, smaller screens, reduced motion
 *
 * Colours read the Food26 Design Scheme (--inoforest-color-*, --inoforest-custom-*) with the design's values as
 * fallbacks. Rules use two classes; the Style tab's controls three, so a choice in the panel always wins.
 */

/* 1. Layout ---------------------------------------------------------------------- */
.food26-recipe-search {
	--food26-rs-primary: var(--inoforest-color-primary, #b23a1e);
	--food26-rs-heading: var(--inoforest-color-heading, #2b1a12);
	--food26-rs-accent: var(--inoforest-color-accent, #3f6b32);
	--food26-rs-muted: var(--inoforest-custom-muted, #6e5f55);
	--food26-rs-border: var(--inoforest-color-border, #ece2d6);
	--food26-rs-shadow: 0 18px 44px rgba(43, 26, 18, 0.12);
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: 60px;
}

.food26-recipe-search__content {
	min-width: 0;
}

/* 2. Greeting, title, text ---------------------------------------------------------- */
.food26-recipe-search .food26-recipe-search__greeting {
	display: block;
	margin-bottom: 10px;
	font-family: "Caveat", cursive;
	font-size: 2rem;
	line-height: 1.1;
	color: var(--food26-rs-accent);
}

.food26-recipe-search .food26-recipe-search__title {
	margin: 0 0 0.55em;
	font-family: var(--inoforest-font-heading-family, inherit);
	font-size: clamp(2.5rem, 4.2vw, 3.9rem);
	font-weight: var(--inoforest-font-heading-weight, 600);
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--food26-rs-heading);
}

.food26-recipe-search .food26-recipe-search__title span {
	font-style: italic;
	color: var(--food26-rs-primary);
}

.food26-recipe-search .food26-recipe-search__text {
	max-width: 540px;
	margin: 0 0 1.2em;
	font-size: 1.15rem;
}

/* 3. Search box -------------------------------------------------------------------- */
.food26-recipe-search .food26-recipe-search__form {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	max-width: 600px;
	margin: 30px 0 18px;
	padding: 8px 8px 8px 22px;
	background-color: #fff;
	border: 1px solid var(--food26-rs-border);
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(43, 26, 18, 0.08);
	transition: border-color 0.3s ease;
}

[dir="rtl"] .food26-recipe-search .food26-recipe-search__form {
	padding: 8px 22px 8px 8px;
}

.food26-recipe-search .food26-recipe-search__form:focus-within {
	border-color: var(--food26-rs-primary);
}

.food26-recipe-search .food26-recipe-search__search-icon {
	display: inline-flex;
	flex: none;
	font-size: 1.3rem;
	color: var(--food26-rs-muted);
}

.food26-recipe-search__search-icon svg,
.food26-recipe-search__trust-icon svg,
.food26-recipe-search__card-meta svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.food26-recipe-search .food26-recipe-search__form input {
	flex: 1;
	min-width: 0;
	height: 50px;
	margin: 0;
	padding: 0;
	font: inherit;
	color: var(--food26-rs-heading);
	background: transparent;
	border: 0;
	outline: 0;
	box-shadow: none;
}

.food26-recipe-search .food26-recipe-search__button {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	min-height: 54px;
	margin: 0;
	padding: 14px 30px;
	font-family: inherit;
	font-size: 0.975rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	cursor: pointer;
	background-color: var(--food26-rs-primary);
	border: 2px solid var(--food26-rs-primary);
	border-radius: 999px;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.food26-recipe-search .food26-recipe-search__button:is(:hover, :focus-visible) {
	color: #fff;
	background-color: var(--inoforest-custom-primary-dark, #8e2c15);
	border-color: var(--inoforest-custom-primary-dark, #8e2c15);
}

.food26-recipe-search .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* 4. Popular searches, trust points ----------------------------------------------------- */
.food26-recipe-search .food26-recipe-search__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
}

.food26-recipe-search .food26-recipe-search__chips-label {
	margin-inline-end: 4px;
	font-weight: 700;
	color: var(--food26-rs-heading);
}

.food26-recipe-search .food26-recipe-search__chip {
	padding: 6px 14px;
	font-weight: 600;
	color: var(--food26-rs-heading);
	text-decoration: none;
	background-color: #fff;
	border: 1px solid var(--food26-rs-border);
	border-radius: 999px;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.food26-recipe-search .food26-recipe-search__chip:is(:hover, :focus-visible) {
	color: var(--food26-rs-primary);
	border-color: var(--food26-rs-primary);
}

.food26-recipe-search .food26-recipe-search__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: 28px 0 0;
	padding: 0;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--food26-rs-heading);
	list-style: none;
}

.food26-recipe-search .food26-recipe-search__trust li {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
}

.food26-recipe-search .food26-recipe-search__trust-icon {
	display: inline-flex;
	color: var(--food26-rs-accent);
}

/* 5. Photos and the recipe card ---------------------------------------------------------- */
.food26-recipe-search .food26-recipe-search__collage {
	position: relative;
	min-height: 540px;
}

.food26-recipe-search .food26-recipe-search__photo {
	margin: 0;
	overflow: hidden;
	background-color: var(--inoforest-custom-warm, #f3e9dc);
	border-radius: 26px;
}

/* Two classes to beat Elementor's `.elementor img` reset. */
.food26-recipe-search__photo img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.food26-recipe-search .food26-recipe-search__photo--main {
	width: 70%;
	aspect-ratio: 9 / 11;
	margin-inline-start: auto;
	box-shadow: var(--food26-rs-shadow);
}

.food26-recipe-search .food26-recipe-search__photo--top,
.food26-recipe-search .food26-recipe-search__photo--bottom {
	position: absolute;
	box-sizing: border-box;
	aspect-ratio: 1;
	border: 6px solid #fff;
	box-shadow: var(--food26-rs-shadow);
}

.food26-recipe-search .food26-recipe-search__photo--top {
	top: 4%;
	inset-inline-start: 0;
	width: 38%;
}

.food26-recipe-search .food26-recipe-search__photo--bottom {
	bottom: 2%;
	inset-inline-start: 10%;
	width: 32%;
}

.food26-recipe-search .food26-recipe-search__card {
	position: absolute;
	bottom: 12%;
	inset-inline-end: -3%;
	display: grid;
	gap: 2px;
	max-width: 250px;
	padding: 14px 18px;
	color: var(--inoforest-color-text, #56463d);
	text-decoration: none;
	background-color: #fff;
	border-radius: 16px;
	box-shadow: var(--food26-rs-shadow);
}

.food26-recipe-search .food26-recipe-search__card-title {
	font-family: var(--inoforest-font-heading-family, inherit);
	font-size: 1.05rem;
	line-height: 1.3;
	color: var(--food26-rs-heading);
	transition: color 0.3s ease;
}

.food26-recipe-search a.food26-recipe-search__card:is(:hover, :focus-visible) .food26-recipe-search__card-title {
	color: var(--food26-rs-primary);
}

.food26-recipe-search .food26-recipe-search__card-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--food26-rs-accent);
}

.food26-recipe-search .food26-recipe-search__card-meta {
	font-size: 0.85rem;
}

.food26-recipe-search .food26-recipe-search__card-meta :is(i, svg) {
	color: var(--inoforest-custom-rating, #b7791f);
}

/* 6. Centred layout, smaller screens, reduced motion ----------------------------------------- */
.food26-recipe-search[data-layout="center"] {
	grid-template-columns: minmax(0, 1fr);
}

.food26-recipe-search[data-layout="center"] .food26-recipe-search__content {
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
}

.food26-recipe-search[data-layout="center"] :is(.food26-recipe-search__text, .food26-recipe-search__form) {
	margin-inline: auto;
}

.food26-recipe-search[data-layout="center"] :is(.food26-recipe-search__chips, .food26-recipe-search__trust) {
	justify-content: center;
}

@media (max-width: 1199px) {
	.food26-recipe-search {
		gap: 40px;
	}

	.food26-recipe-search .food26-recipe-search__card {
		inset-inline-end: 0;
	}
}

@media (max-width: 991px) {
	.food26-recipe-search {
		grid-template-columns: minmax(0, 1fr);
	}

	.food26-recipe-search .food26-recipe-search__collage {
		width: min(560px, 100%);
		min-height: 0;
		margin-inline: auto;
	}
}

@media (max-width: 767px) {
	.food26-recipe-search .food26-recipe-search__form {
		flex-wrap: wrap;
		padding: 10px 10px 10px 18px;
		border-radius: 26px;
	}

	[dir="rtl"] .food26-recipe-search .food26-recipe-search__form {
		padding: 10px 18px 10px 10px;
	}

	.food26-recipe-search .food26-recipe-search__form input {
		flex-basis: calc(100% - 40px);
		height: 46px;
	}

	.food26-recipe-search .food26-recipe-search__button {
		flex: 1 1 100%;
	}

	.food26-recipe-search .food26-recipe-search__trust {
		gap: 8px 18px;
	}

	.food26-recipe-search .food26-recipe-search__card {
		bottom: 6%;
		max-width: 210px;
		padding: 12px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.food26-recipe-search .food26-recipe-search__form,
	.food26-recipe-search .food26-recipe-search__button,
	.food26-recipe-search .food26-recipe-search__chip,
	.food26-recipe-search .food26-recipe-search__card-title {
		transition: none;
	}
}
