/*
 * Small supporting rules that theme.json can't express.
 * Keep this file minimal — most styling lives in theme.json so it
 * stays editable from the Site Editor.
 */

.tc-recipe-card {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.tc-recipe-steps > li {
	margin-bottom: 0.75rem;
}

/* Visible, keyboard-reachable skip link for accessibility. */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 1rem;
	z-index: 999999;
	background: #fff;
	padding: 0.5rem 1rem;
	border-radius: 4px;
}

.skip-link:focus {
	left: 1rem;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #111;
	display: block;
	font-size: 0.9rem;
	height: auto;
	left: 1rem;
	line-height: normal;
	padding: 1rem 1.5rem;
	text-decoration: none;
	top: 1rem;
	z-index: 100000;
}

/* --- Site header polish --- */
.site-header {
	border-bottom: 1px solid #ece4d3;
	border-top: 4px solid #2fb673;
}

.tc-site-brand {
	gap: 0 !important;
}

.tc-site-brand .wp-block-site-title {
	margin: 0;
	line-height: 1.05;
}

.tc-site-tagline {
	margin: 0.15rem 0 0;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #2fb673;
}

.site-header .wp-block-navigation {
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.site-header .wp-block-navigation a {
	color: #1c1b19;
}

.site-header .wp-block-navigation a:hover {
	color: #2fb673;
}

.site-header .wp-block-site-title a {
	letter-spacing: -0.01em;
}

/* --- Site footer polish --- */
.site-footer {
	border-top: 1px solid #ece4d3;
}

/* --- Mosaic photo-overlay recipe cards (homepage & archives) --- */
.wp-block-post-template.is-layout-grid {
	gap: 1.5rem;
}

.tc-mosaic-card {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.2s ease;
}

.tc-mosaic-card:hover {
	transform: translateY(-3px);
}

.tc-mosaic-card .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
}

.tc-mosaic-card .wp-block-post-featured-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.tc-mosaic-card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0 !important;
}

.tc-mosaic-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.05) 75%, rgba(0,0,0,0) 90%);
	z-index: 1;
	pointer-events: none;
}

.tc-mosaic-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	max-height: 100%;
	padding: 1.1rem 1.25rem;
	color: #fff;
	box-sizing: border-box;
	overflow: hidden;
}

.tc-mosaic-overlay .tc-mosaic-category {
	margin: 0;
	line-height: 1;
}

.tc-mosaic-overlay .tc-mosaic-category a {
	color: #4fe396;
	text-transform: uppercase;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.tc-mosaic-overlay .wp-block-post-title {
	margin: 0.35rem 0 0.3rem;
}

.tc-mosaic-overlay .wp-block-post-title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: #fff;
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 600;
	font-size: 1.15rem;
	line-height: 1.3;
	text-decoration: none;
}

.tc-mosaic-overlay .wp-block-post-comments-count {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.78rem;
}

/* --- Homepage hero (latest recipe, full-bleed photo banner) --- */
.tc-hero {
	position: relative;
	aspect-ratio: 21 / 9;
	min-height: 280px;
	border-radius: 14px;
	overflow: hidden;
	isolation: isolate;
	margin: 0;
}

.tc-hero .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
}

.tc-hero .wp-block-post-featured-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.tc-hero .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0 !important;
}

.tc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.1) 65%, rgba(0,0,0,0) 85%);
	z-index: 1;
	pointer-events: none;
}

.tc-hero-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	max-width: 720px;
	padding: 2.5rem;
	color: #fff;
	box-sizing: border-box;
}

.tc-hero-overlay .tc-hero-category {
	margin: 0;
}

.tc-hero-overlay .tc-hero-category a {
	color: #4fe396;
	text-transform: uppercase;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.tc-hero-overlay .wp-block-post-title {
	margin: 0.5rem 0 0.6rem;
}

.tc-hero-overlay .wp-block-post-title a {
	color: #fff;
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 600;
	font-size: 2.5rem;
	line-height: 1.15;
	text-decoration: none;
}

.tc-hero-overlay .tc-hero-meta {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
}

@media (max-width: 600px) {
	.tc-hero {
		aspect-ratio: 4 / 5;
	}
	.tc-hero-overlay {
		padding: 1.5rem;
	}
	.tc-hero-overlay .wp-block-post-title a {
		font-size: 1.6rem;
	}
}

/* --- Utility bar (About / Contact / Privacy) --- */
.tc-utility-bar {
	background: #1c1b19;
	padding: 0.4rem 0;
}
.tc-utility-nav .wp-block-navigation__container {
	gap: 1.5rem;
}
.site-header .tc-utility-nav a {
	color: rgba(255, 255, 255, 0.75) !important;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.site-header .tc-utility-nav a:hover {
	color: #4fe396 !important;
}
/* --- Main nav row: curated nav + search --- */
.tc-nav-row {
	gap: 1.25rem;
}
.wp-block-navigation__submenu-container {
	background: #ffffff !important;
	border: 1px solid #ece4d3;
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(28, 27, 25, 0.12);
	padding: 0.4rem 0;
	min-width: 200px;
}
.wp-block-navigation__submenu-container a {
	color: #1c1b19 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-weight: 500 !important;
	padding: 0.5rem 1rem !important;
}
.wp-block-navigation__submenu-container a:hover {
	color: #2fb673 !important;
	background: #f6f1e7;
}
.site-header .wp-block-navigation .wp-block-navigation__submenu-icon svg {
	width: 0.7em;
	height: 0.7em;
}
.tc-header-search .wp-block-search__input {
	border: 1px solid #ece4d3 !important;
	border-radius: 6px !important;
	font-size: 0.85rem !important;
	padding: 0.4rem 0.6rem !important;
}
.tc-header-search .wp-block-search__button {
	background: #2fb673 !important;
	border-color: #2fb673 !important;
	border-radius: 6px !important;
	padding: 0.4rem 0.6rem !important;
}
.tc-header-search .wp-block-search__button svg {
	fill: #fff;
}
/* --- Footer: multi-column layout --- */
.tc-footer-columns {
	padding: 2.5rem 0 1.5rem;
	gap: 2rem;
	align-items: flex-start;
}
.tc-footer-col {
	flex: 1 1 220px;
	min-width: 200px;
	flex-direction: column;
	align-items: flex-start;
}
.tc-footer-col .wp-block-site-title a,
.tc-footer-col .wp-block-site-title {
	font-size: 1.3rem;
}
.tc-footer-blurb {
	color: #6b6b6b;
	font-size: 0.9rem;
	line-height: 1.6;
	margin-top: 0.5rem;
}
.tc-footer-heading {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
}
.tc-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tc-footer-list li {
	margin-bottom: 0.5rem;
}
.tc-footer-list a {
	color: #6b6b6b;
	font-size: 0.9rem;
	text-decoration: none;
}
.tc-footer-list a:hover {
	color: #2fb673;
}
.tc-footer-bottom {
	border-top: 1px solid #ece4d3;
	padding: 1.25rem 0;
	gap: 0.5rem;
}
.tc-footer-bottom-title {
	font-size: 0.95rem;
}
.tc-footer-bottom-text {
	color: #6b6b6b;
	font-size: 0.9rem;
	margin: 0;
}


/* --- Mobile header: hide utility bar (links duplicated into main nav), fix hamburger icon colors --- */
@media (max-width: 600px) {
	.tc-utility-bar.wp-block-group {
		display: none !important;
	}
}
.tc-utility-nav .wp-block-navigation__responsive-container-open svg {
	fill: rgba(255, 255, 255, 0.85) !important;
}
.tc-nav-row .wp-block-navigation__responsive-container-open svg {
	fill: #1c1b19 !important;
}


/* --- Pagination: styled pill buttons instead of plain text links --- */
.wp-block-query-pagination {
	gap: 0.5rem;
	margin-top: 2rem;
	flex-wrap: wrap;
	align-items: center;
}
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.9rem;
	border: 1px solid #ece4d3;
	border-radius: 999px;
	background: #fff;
	color: #1c1b19;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wp-block-query-pagination .page-numbers:hover {
	background: #2fb673;
	border-color: #2fb673;
	color: #fff;
}
.wp-block-query-pagination .page-numbers.current {
	background: #2fb673;
	border-color: #2fb673;
	color: #fff;
}
.wp-block-query-pagination .page-numbers.dots {
	border: none;
	background: transparent;
	min-width: auto;
	padding: 0 0.25rem;
}
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	font-weight: 600;
}


/* ==========================================================================
   Beautify pass: card motion, button polish, icon micro-interactions, focus
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {

	/* --- Card & hero photo zoom on hover --- */
	.tc-mosaic-card .wp-block-post-featured-image img,
	.tc-hero .wp-block-post-featured-image img {
		transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	}
	.tc-mosaic-card:hover .wp-block-post-featured-image img,
	.tc-hero:hover .wp-block-post-featured-image img {
		transform: scale(1.06);
	}
	.tc-mosaic-card {
		box-shadow: 0 1px 2px rgba(28, 27, 25, 0.06);
		transition: transform 0.25s ease, box-shadow 0.25s ease;
	}
	.tc-mosaic-card:hover {
		transform: translateY(-5px);
		box-shadow: 0 14px 28px rgba(28, 27, 25, 0.18);
	}

	/* --- Underline-grow hover on main nav & footer links --- */
	.tc-nav-row .wp-block-navigation-item > a,
	.tc-footer-list a {
		position: relative;
	}
	.tc-nav-row .wp-block-navigation-item > a::after,
	.tc-footer-list a::after {
		content: "";
		position: absolute;
		left: 0;
		bottom: -2px;
		width: 100%;
		height: 2px;
		background: currentColor;
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.2s ease;
	}
	.tc-nav-row .wp-block-navigation-item > a:hover::after,
	.tc-footer-list a:hover::after {
		transform: scaleX(1);
	}

	/* --- Buttons: lift + shadow on hover, press on click --- */
	.wp-element-button,
	.wp-block-button__link,
	input[type="submit"],
	.wp-block-search__button,
	.wp-block-query-pagination .page-numbers {
		transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
		box-shadow: 0 1px 2px rgba(28, 27, 25, 0.1);
	}
	.wp-element-button:hover,
	.wp-block-button__link:hover,
	input[type="submit"]:hover,
	.wp-block-search__button:hover,
	.wp-block-query-pagination .page-numbers:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 16px rgba(28, 27, 25, 0.18);
	}
	.wp-element-button:active,
	.wp-block-button__link:active,
	input[type="submit"]:active,
	.wp-block-search__button:active {
		transform: translateY(0);
		box-shadow: 0 1px 2px rgba(28, 27, 25, 0.1);
	}

	/* --- Icon micro-interactions: hamburger, search, dropdown chevron --- */
	.wp-block-navigation__responsive-container-open,
	.wp-block-navigation__responsive-container-close {
		transition: opacity 0.15s ease, transform 0.15s ease;
	}
	.wp-block-navigation__responsive-container-open:hover,
	.wp-block-navigation__responsive-container-close:hover {
		opacity: 0.7;
		transform: scale(1.08);
	}
	.wp-block-navigation__submenu-icon svg {
		transition: transform 0.2s ease;
	}
	.wp-block-navigation-item.is-menu-open > .wp-block-navigation__submenu-icon svg,
	.wp-block-navigation-submenu.is-menu-open > .wp-block-navigation__submenu-icon svg {
		transform: rotate(180deg);
	}
}

/* --- Accessible, on-brand focus ring (keyboard navigation) --- */
a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible,
input:focus-visible,
.page-numbers:focus-visible {
	outline: 2px solid #2fb673;
	outline-offset: 2px;
	border-radius: 4px;
}

/* --- Crisper heading rendering --- */
h1, h2, h3, h4, h5, h6,
.tc-hero-overlay .wp-block-post-title a,
.tc-mosaic-overlay .wp-block-post-title a {
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
