/*
Theme Name:   Kadence Child
Theme URI:    https://recipesaday.com
Description:  Child theme of Kadence for the food blog. All custom code goes here, never in the parent theme.
Template:     kadence
Version:      1.0.0
Requires PHP: 8.0
Text Domain:  kadence-child
*/

/* Custom CSS goes below. Keep it small: global colors and fonts live in the Kadence Customizer. */

/* ---------- Logo "Recipes A Day" (markup: rad_logo_markup() in functions.php) ---------- */
.rad-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.rad-logo-icon {
	flex: none;
	width: 42px;
	height: 42px;
}
.rad-logo-text {
	font-family: var(--global-heading-font-family);
	font-weight: 700;
	font-size: 1.65rem;
	line-height: 1;
	letter-spacing: -0.01em;
	white-space: nowrap;
	color: var(--global-palette3);
}
.rad-logo-accent {
	color: var(--global-palette1);
}
.rad-logo--footer .rad-logo-text {
	color: #fff;
	font-size: 1.9rem;
}
.rad-logo--footer .rad-logo-accent {
	color: #F07A4E;
}
@media (max-width: 767px) {
	.rad-logo-icon {
		width: 34px;
		height: 34px;
	}
	.rad-logo-text {
		font-size: 1.3rem;
	}
}

/* ---------- Mobile: more room for the recipes (the template had 48px + 24px side margins) ---------- */
@media (max-width: 767px) {
	:root {
		--global-content-edge-padding: 16px;
	}
	.content-bg .entry-content-wrap {
		padding: 20px 16px;
	}
}

/* ---------- Home page: featured recipe + "The Latest" ---------- */
.fb-kicker,
.fb-kicker a {
	font-family: var(--global-body-font-family);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--global-palette5);
	text-decoration: none;
}
.fb-kicker a:hover {
	color: var(--global-palette1);
}
.fb-featured-image img {
	border-radius: 6px;
}
.fb-featured .fb-kicker {
	margin-top: 18px;
}
.site .fb-featured-title {
	font-size: clamp(1.6rem, 3.2vw, 2.4rem);
	line-height: 1.15;
	margin: 8px 0 10px;
}
.fb-featured-title a,
.fb-latest-title a,
.fb-recipe-grid .wp-block-post-title a {
	color: var(--global-palette3);
	text-decoration: none;
}
.fb-featured-title a:hover,
.fb-latest-title a:hover {
	color: var(--global-palette1);
}
.fb-featured-excerpt {
	color: var(--global-palette5);
	font-size: 1.05rem;
}
.site .fb-latest-heading,
.site .fb-section-heading {
	font-size: 2rem;
	margin: 0 0 20px;
	padding-bottom: 10px;
	position: relative;
}
.fb-latest-heading::after,
.fb-section-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, #FFC851, var(--global-palette1));
}
.fb-section-heading::after {
	width: 120px;
}
.fb-latest-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fb-latest-list > li {
	padding: 18px 0;
	border-bottom: 1px solid #e6e6e0;
}
.fb-latest-list > li:first-child {
	padding-top: 4px;
}
.fb-latest-item {
	gap: 16px;
}
.fb-latest-thumb {
	flex: none;
	margin: 0;
}
.fb-latest-thumb img {
	border-radius: 4px;
}
.fb-latest-text {
	gap: 4px;
}
.fb-kicker-row {
	gap: 0;
}
.fb-kicker-row > * + *::before {
	content: "|";
	margin: 0 8px;
	color: #c9c9c2;
	font-weight: 400;
}
.site .fb-latest-title {
	font-family: var(--global-body-font-family);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}
@media (max-width: 781px) {
	.fb-latest {
		margin-top: 32px;
	}
}
@media (max-width: 480px) {
	.fb-kicker-row .fb-kicker-date {
		display: none;
	}
}

/* ---------- Home page ---------- */
.site .fb-hero-title {
	font-size: clamp(2rem, 6vw, 3.25rem);
	line-height: 1.15;
}
.fb-hero-search {
	max-width: 560px;
	margin-inline: auto;
}
.fb-recipe-grid .wp-block-post-title a {
	color: var(--global-palette3);
	text-decoration: none;
}
.fb-recipe-grid .wp-block-post-title a:hover {
	color: var(--global-palette1);
}

/* ---------- Footer ---------- */
.site-footer {
	border-top: 4px solid var(--global-palette1);
}
.site-footer .site-middle-footer-inner-wrap {
	padding-top: 56px;
	padding-bottom: 40px;
}
.site-footer .fb-footer-brand {
	font-family: var(--global-heading-font-family);
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	margin: 0 0 12px;
}
.site-footer .fb-footer-tagline {
	color: rgba(245, 246, 234, 0.75);
	max-width: 340px;
	margin-bottom: 20px;
}
.site-footer .widget-title {
	font-family: var(--global-body-font-family);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--global-palette1);
	display: inline-block;
}
.site-footer .widget_nav_menu ul.menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-footer .widget_nav_menu ul.menu li {
	margin: 0 0 10px;
	break-inside: avoid;
}
.site-footer .widget_nav_menu ul.menu a {
	color: rgba(245, 246, 234, 0.85);
	text-decoration: none;
}
.site-footer .widget_nav_menu ul.menu a:hover {
	color: var(--global-palette1);
}
/* Recipe categories on two columns. */
.site-footer .footer-widget2 ul.menu {
	columns: 2;
	column-gap: 24px;
}
.site-footer .footer-widget2 ul.menu a {
	white-space: nowrap;
}
@media (max-width: 767px) {
	.site-footer .site-middle-footer-inner-wrap {
		row-gap: 36px;
	}
	.site-footer .footer-widget2 ul.menu a {
		white-space: normal;
	}
	.site-footer .footer-social-wrap {
		margin-bottom: 8px;
	}
}
/* Bottom bar: copyright + legal links. */
.site-footer .site-bottom-footer-wrap {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer .site-bottom-footer-inner-wrap {
	padding-top: 18px;
	padding-bottom: 18px;
	font-size: 0.85rem;
	color: rgba(245, 246, 234, 0.6);
}
.site-footer .footer-navigation .menu {
	gap: 4px 20px;
}
.site-footer .footer-navigation a {
	font-size: 0.85rem;
	padding: 0 !important;
}

/* ---------- Footer social icons ---------- */
/* Kadence's Flipboard icon has a filled background circle that hides the logo: remove it. */
.social-link-flipboard #SVGRepo_bgCarrier {
	display: none;
}
.social-link-flipboard .kadence-flipboard-svg {
	stroke: none;
}

/* ---------- Legal pages (Privacy Policy, Terms of Use, Disclaimer) ---------- */
.fb-legal-updated {
	display: inline-block;
	font-size: 0.85rem;
	color: var(--global-palette5);
	background: var(--global-palette7);
	padding: 4px 12px;
	border-radius: 999px;
}
.fb-legal-lead {
	font-size: 1.2rem;
	color: var(--global-palette4);
}
.fb-legal-glance,
.fb-legal-toc,
.fb-legal-contact {
	border-radius: 12px;
	padding: 24px 28px;
	margin-block: 28px;
}
.fb-legal-glance {
	background: var(--global-palette7);
	border-left: 4px solid var(--global-palette1);
	border-radius: 0 12px 12px 0;
}
.fb-legal-toc {
	border: 1px solid var(--global-palette7);
}
.site .fb-box-title {
	font-size: 1.1rem;
	margin: 0 0 12px;
}
.fb-legal-glance ul,
.fb-legal-toc ul {
	margin: 0;
}
.fb-legal-toc-list {
	list-style: none;
	padding-left: 0;
	columns: 2 260px;
}
.fb-legal-toc-list li {
	margin-bottom: 6px;
}
.fb-legal-toc-list a {
	color: var(--global-palette4);
	text-decoration: none;
}
.fb-legal-toc-list a:hover {
	color: var(--global-palette1);
}
.site .fb-legal-h {
	font-size: 1.5rem;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--global-palette7);
	scroll-margin-top: 24px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.fb-legal-num {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--global-palette1);
	color: #fff;
	font-size: 0.95rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--global-body-font-family);
}
.fb-legal-contact {
	background: var(--global-palette3);
	color: var(--global-palette7);
	margin-top: 48px;
}
.site .fb-legal-contact .fb-box-title {
	color: #fff !important;
}
.fb-legal-contact a {
	color: #fff;
	text-decoration: underline;
}

/* ---------- About page ---------- */
.fb-about-intro {
	margin-bottom: 40px;
}
.fb-about-intro img {
	border-radius: 12px;
}
.fb-about-hello {
	font-family: var(--global-heading-font-family);
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--global-palette3);
	margin-bottom: 12px;
}
.fb-check-list {
	list-style: none;
	padding-left: 0;
}
.fb-check-list li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 10px;
}
.fb-check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--global-palette1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- WP Recipe Maker: use the site's fonts and colors ---------- */
.wprm-recipe,
.wprm-recipe :is(p, li, span, div) {
	font-family: var(--global-body-font-family);
}
.wprm-recipe :is(.wprm-recipe-name, .wprm-recipe-header, h2, h3, h4) {
	font-family: var(--global-heading-font-family) !important;
	color: var(--global-palette3) !important;
}
.wprm-recipe .wprm-recipe-author,
.wprm-recipe a:not(.wprm-recipe-link) {
	color: var(--global-palette1) !important;
}
/* "Jump to Recipe" / "Print Recipe" buttons (inline styles from WPRM, hence !important). */
.site a.wprm-recipe-link.wprm-recipe-link-inline-button,
.site .wprm-recipe a.wprm-recipe-link {
	background-color: var(--global-palette1) !important;
	border-color: var(--global-palette1) !important;
	color: #fff !important;
	border-radius: 4px !important;
	padding: 8px 14px !important;
}
.site a.wprm-recipe-link.wprm-recipe-link-inline-button:hover,
.site .wprm-recipe a.wprm-recipe-link:hover {
	background-color: var(--global-palette2) !important;
	border-color: var(--global-palette2) !important;
}

/* Kadence Blocks headings set word-break: break-word, which wins over hyphenation: reset it. */
.site :is(h1, h2, h3, h4, h5, h6) {
	word-break: normal;
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}
