/**
 * Site footer — Cailee Eats Visual Design (Figma 998:4434).
 * Tokens: light blue #d1e7ff, dark brown #5e4234, layered waves (green + periwinkle SVGs).
 */

.site-footer {
	--footer-bg: #d1e7ff;
	--footer-brown: #5e4234;
	background-color: var(--footer-bg);
	color: var(--footer-brown);
	padding: 0 0 clamp(1.5rem, 4vw, 2rem);
	margin-top: 0;
	position: relative;
}

/* Triple wave edge: green + periwinkle tiles (overrides inline bg on .site-footer__wave-strip) */
.site-footer__wave {
	display: block;
	line-height: 0;
	margin: 0 auto;
	padding: 0;
	position: absolute;
	top: -16px;
	width: 100%;
	height: 40px;
	left: 0;
}

.site-footer__wave-strip {
	display: block;
	width: 100%;
	height: 40px;
	background-color: transparent !important;
	background-position: center;
	background-size: 2300px;
	background-repeat: repeat-x;
}

@media (max-width: 600px) {
	/* Larger repeat period so scallops stay readable (narrow viewports are only a small window into the tile). */
	.site-footer__wave-strip {
		background-size: 3200px;
	}
}

/* Main grid — Recipes | Explore | About (Figma ~108px inset on 1400) */
.site-footer__top {
	position: relative;
	z-index: 2;
	max-width: 1186px;
	margin: 0 auto;
	padding: 84px 0 0;
	display: grid;
	grid-template-columns: 400px 19% 381px;
	gap: 91px;
	align-items: start;
}

@media (max-width: 1024px) {
	.site-footer__top {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__col--about {
		grid-column: 1;
	}
	.site-footer__watermark {
		max-width:90%;
		width:90%;
	}
	.site-footer__bottom {
		max-width:90%;
		width:90%;
	}
}

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

/* H5-style column titles */
.site-footer__heading {
	margin: 0 0 31px;
	font-family: var(--wp--preset--font-family--tt-norms-pro, "TT Norms Pro", sans-serif);
	font-size: 16px;
	font-weight: 700;
	font-style: normal;
	line-height: 1;
	letter-spacing: 2.24px;
	text-transform: uppercase;
	color: var(--footer-brown);
}

.site-footer__nav .footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__nav .footer-menu a {
	color: var(--footer-brown);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--tt-norms-pro, "TT Norms Pro", sans-serif);
	font-size: 18px;
	font-weight: 400;
	font-style: normal;
	line-height: 24px;
	letter-spacing: 0;
	transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.site-footer__nav .footer-menu a:hover,
.site-footer__nav .footer-menu a:focus {
	text-decoration: underline;
	opacity: 0.9;
}

ul.footer-menu--two-cols {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 44% 54%;
}

.footer-menu--two-cols .menu-item {
	break-inside: avoid;
	margin-bottom: 2px;
}

.footer-menu--single .menu-item {
	margin-bottom: 2px;
}

/* About — Paragraph P1 */
.site-footer__about {
	font-family: var(--wp--preset--font-family--tt-norms-pro, "TT Norms Pro", sans-serif);
	font-size: 20px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.6;
	letter-spacing: 0;
	color: var(--footer-brown);
}

.site-footer__about p {
	margin: 0 0 0.75rem;
}

.site-footer__about p:last-child {
	margin-bottom: 0;
}

/* Newsletter + socials row (Figma: flex, gap 10px / icon row) */
.site-footer__newsletter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 11px;
	margin-top: 18px;
}
.site-footer__newsletter-row a {
	text-decoration:none;
}

.site-footer__newsletter {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--footer-brown);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--tt-norms-pro, "TT Norms Pro", sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
}

.site-footer__newsletter:hover,
.site-footer__newsletter:focus {
	text-decoration: underline;
}

.site-footer__newsletter .fa-envelope {
	font-size: 15px;
	line-height: 28px;
}

.site-footer__socials-wrap .site-footer__socials {
	gap: 12px;
}

.site-footer__socials-wrap .site-footer__socials a i {
	font-size: 15px;
	line-height: 28px;
	color: var(--footer-brown);
}

/* Watermark — behind columns, 25% opacity (Figma Logo_Main) */
.site-footer__watermark {
	max-width: 1179px;
	margin: 130px auto 0;
	padding: 0;
	text-align: center;
	pointer-events: none;
	user-select: none;
}

.site-footer__watermark-img {
	display: block;
	width: 100%;
	max-width:100%;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}

/* Bottom bar — copyright | legal | credits (16px / 1.5) */
.site-footer__bottom {
	position: relative;
	z-index: 2;
	padding-top: 30px;
	margin-top: 40px;
	border-top: none;
}

.site-footer__bottom-inner {
	padding: 0;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 1rem;
	align-items: center;
	max-width: 1186px;
	margin: 0 auto;
}

.site-footer__copyright {
	margin: 0;
	font-family: var(--wp--preset--font-family--tt-norms-pro, "TT Norms Pro", sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	color: var(--footer-brown);
	justify-self: start;
}

@media (max-width: 640px) {
	.site-footer__copyright {
		justify-self: center;
	}
}

.site-footer__nav--bottom {
	justify-self: center;
}

.footer-menu--bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 27px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu--bottom .menu-item {
	margin: 0;
}

.footer-menu--bottom a {
	font-family: var(--wp--preset--font-family--tt-norms-pro, "TT Norms Pro", sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--footer-brown);
	text-decoration: none;
}

.footer-menu--bottom a:hover,
.footer-menu--bottom a:focus {
	text-decoration: underline;
}

.site-footer__credits-trigger {
	justify-self: end;
}

@media (max-width: 640px) {
	.site-footer__credits-trigger {
		justify-self: center;
	}
}

.site-footer__credits-toggle {
	background: none;
	border: none;
	padding: 0;
	font-family: var(--wp--preset--font-family--tt-norms-pro, "TT Norms Pro", sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--footer-brown);
	cursor: pointer;
	text-align: right;
	min-width: 0;
	text-decoration: none;
}

.site-footer__credits-toggle:hover,
.site-footer__credits-toggle:focus {
	opacity: 0.85;
}

.site-footer__credits-toggle:focus-visible {
	outline: 2px solid var(--footer-brown);
	outline-offset: 2px;
}

/* Centred credits popup */
.site-footer__credits-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
	box-sizing: border-box;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-footer__credits-modal.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.site-footer__credits-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(45, 35, 30, 0.45);
	cursor: pointer;
}

.site-footer__credits-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 240px;
	margin: 0;
	padding: 1.25rem 1.35rem 1.35rem;
	background-color: #fffbeb;
	border: 1px solid rgba(94, 66, 52, 0.15);
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(45, 35, 30, 0.18);
	transform: scale(0.96);
	opacity: 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-footer__credits-modal.is-open .site-footer__credits-panel {
	transform: scale(1);
	opacity: 1;
}

.site-footer__credits-panel-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--tt-norms-pro, "TT Norms Pro", sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--footer-brown);
	text-align: center;
}

.site-footer__credits-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--footer-brown);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.site-footer__credits-close:hover,
.site-footer__credits-close:focus {
	background-color: rgba(94, 66, 52, 0.08);
	opacity: 0.95;
}

.site-footer__credits-close:focus-visible {
	outline: 2px solid var(--footer-brown);
	outline-offset: 2px;
}

.site-footer__credits-inner {
	margin: 0;
	padding: 0;
}

.site-footer__credits-text {
	margin: 0;
	font-family: var(--wp--preset--font-family--tt-norms-pro, "TT Norms Pro", sans-serif);
	font-size: 14px;
	line-height: 1.55;
	color: var(--footer-brown);
	text-align: center;
}

.site-footer__credits-text a {
	color: var(--footer-brown);
	text-decoration: underline;
}

/*
 * Sticky recipe search modal — same shell / animation as .site-footer__credits-modal (proven in footer.css).
 */
#sticky-search-modal.site-footer__credits-modal .site-footer__credits-panel {
	max-width: min(420px, calc(100vw - 2rem));
	width: 100%;
	text-align: left;
}

#sticky-search-modal .sticky-search__heading {
	margin: 0 0 15px;
	letter-spacing: normal;
	text-transform: none;
	color: var(--footer-brown, #5e4234);
	font-family: "TT Norms Pro Condensed";
	font-size: 28px;
	font-style: normal;
	font-weight: 600;
	line-height: 100%; /* 28px */
	text-align: center;
}

#sticky-search-modal .sticky-search__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

#sticky-search-modal .sticky-search__input {
	width: 100%;
	box-sizing: border-box;
	border: none;
	background: transparent;
	color: var(--dark-brown, #5E4234);
	font-family: "TT Norms Pro Condensed";
	font-size: 20px;
	font-style: normal;
	font-weight: 600;
	border-bottom: 1px solid #5e4234;
	line-height: 100%; /* 28px */
	border-radius: 0;
	padding: 10px 0;
	margin: 0 auto 15px;
}

#sticky-search-modal .sticky-search__input::placeholder {
	color: var(--dark-brown, #5E4234);
}
#sticky-search-modal .sticky-search__input:focus {
	outline: none;
	box-shadow: none;
	border-bottom: 1px solid #5e4234;
}

#sticky-search-modal .sticky-search__submit {
	align-self: center;
	cursor: pointer;
	background-color: transparent;
	text-decoration: none;
	display: flex;
	padding: 3px 38px 1px;
	justify-content: center;
	align-items: center;
	gap: 100px;
	border-radius: 60px;
	border: 2px solid var(--dark-brown, #5E4234);
	color: var(--dark-brown, #5E4234);
	text-align: center;
	font-family: "TT Norms Pro";
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	line-height: 60px;
	letter-spacing: 2.24px;
	text-transform: uppercase;
	transition: all 0.5s;
}



html.site-footer-credits-modal-open,
body.site-footer-credits-modal-open,
html.sticky-search-modal-open,
body.sticky-search-modal-open {
	overflow: hidden;
}

/* Above body.mtt-primary-menu-dropdown-open .site-header-wrapper (10090) */
body.sticky-search-modal-open #sticky-search-modal.site-footer__credits-modal,
body.site-footer-credits-modal-open #footer-site-credits.site-footer__credits-modal {
	z-index: 10100;
}

@media (prefers-reduced-motion: reduce) {
	.site-footer__credits-modal,
	.site-footer__credits-panel {
		transition: none;
	}
}

/* -------------------------------------------------------------------------
   Mobile footer (≤768px) — accordion nav, centered about / newsletter / socials
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.site-footer {
		--footer-bg: #d6e9ff;
	}

	.site-footer__top {
		padding-top: clamp(2.5rem, 8vw, 4rem);
		padding-left: clamp(1rem, 5vw, 1.5rem);
		padding-right: clamp(1rem, 5vw, 1.5rem);
	}

	/* Accordion column headings — display font + title case (comp) */
	.site-footer__accordion-head {
		position: relative;
		display: flex;
		align-items: center;
		padding: 1.1rem 0;
		
	}
	.site-footer__accordion {
		border-bottom: 1px solid #729DE3;
	}

	.site-footer__col--nav1 .site-footer__accordion-head {
		border-top: 1px solid #729DE3;
	}

	.site-footer__accordion-head .site-footer__heading {
		position: relative;
		z-index: 0;
		flex: 1;
		min-width: 0;
		margin: 0;
		padding-right: 2rem;
		letter-spacing: 0.02em;
		text-transform: none;
		color: var(--footer-brown);
		pointer-events: none;
		font-family: "TT Norms Pro Condensed";
		font-size: 24px;
		font-style: normal;
		font-weight: 600;
		line-height: normal;
	}

	.site-footer__accordion-head::after {
		content: "";
		position: absolute;
		right: 0;
		top: 50%;
		z-index: 2;
		width: 0;
		height: 0;
		margin-top: -3px;
		border-left: 6px solid transparent;
		border-right: 6px solid transparent;
		border-top: 7px solid var(--footer-brown);
		pointer-events: none;
		transition: transform 0.2s ease;
		transform-origin: 50% 35%;
	}

	.site-footer__accordion.is-expanded .site-footer__accordion-head::after {
		transform: rotate(180deg);
	}

	.site-footer__accordion-trigger {
		position: absolute;
		left: 0;
		top: 0;
		right: 2rem;
		bottom: 0;
		z-index: 1;
		margin: 0;
		padding: 0;
		border: none;
		background: transparent;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		font-family: "TT Norms Pro Condensed";
		font-size: 24px;
		font-style: normal;
		font-weight: 600;
		line-height: normal;
		width:100%;
	}

	.site-footer__accordion-trigger:focus {
		outline: none;
	}

	.site-footer__accordion-trigger:focus-visible {
		outline: 2px solid var(--footer-brown);
		outline-offset: 4px;
	}

	/* Collapsed panels — hidden only on small screens */
	.site-footer__accordion:not(.is-expanded) .site-footer__nav {
		display: none;
	}

	.site-footer__accordion.is-expanded .site-footer__nav {
		display: block;
	}

	.site-footer__accordion .site-footer__nav {
		padding: 0.35rem 0 1.25rem;
	}

	ul.footer-menu--two-cols {
		grid-template-columns: 1fr;
	}

	.site-footer__col--about {
		text-align: center;
		margin-top: clamp(1.75rem, 5vw, 2.5rem);
	}

	.site-footer__about {
		font-size: clamp(1rem, 3.5vw, 1.125rem);
		line-height: 1.65;
		max-width: 36rem;
		margin-left: auto;
		margin-right: auto;
	}

	.site-footer__newsletter-row {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-top: clamp(1.25rem, 4vw, 1.75rem);
		row-gap: 1.25rem;
	}

	.site-footer__socials-wrap {
		width: 100%;
	}

	.site-footer__socials-wrap .site-footer__socials {
		justify-content: center;
		flex-wrap: wrap;
	}
}

@media (min-width: 769px) {
	.site-footer__accordion-head {
		display: block;
		border: none;
		padding: 0;
	}

	.site-footer__accordion-trigger {
		display: none !important;
	}

	.site-footer__accordion-head .site-footer__heading {
		pointer-events: auto;
	}

	.site-footer__accordion-head::after {
		content: none;
	}

	.site-footer__accordion .site-footer__nav {
		display: block !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-footer__accordion-head::after {
		transition: none;
	}
}
@media (max-width:1180px) {
	.site-footer__top {
	    max-width: 1000px;
	    margin: 0 auto;
	    gap: 14px;
	}
	.site-footer__watermark {
	    max-width: 1000px;
	    margin-top: 100px;
	}
	.site-footer__bottom {
	    max-width: 1000px;
	    margin: 30px auto 0;
	}
}
@media (max-width:1080px) {
	.site-footer__top {
	    grid-template-columns: 365px 19% 350px;
	    gap: 46px;
	}
}
@media (max-width:1000px) {
	.site-footer__top {
		max-width:90%;
	}
}
@media (max-width:768px) {
	.site-footer__top {display:block;padding-top: 65px;}
	.social-links {
		justify-content:center;
	}
	.site-footer__watermark {
		margin-top:40px;
	}
	.site-footer__copyright {
		font-size:12px;
		text-align:left;
	}
	.site-footer__credits-toggle {
		font-size:12px;
		text-align:right;
	}
	 .site-footer__bottom-inner .site-footer__nav a {
		font-size:12px!important;
	}
	.site-footer__bottom-inner {
		text-align:inherit!important;
	}
}