/*
Theme Name: Recipe Exchange Modern
Theme URI: https://recipeexchange.co.za/
Author: Recipe Exchange
Description: A warm, modern and lightweight theme for the Halaal Recipe Exchange community.
Version: 0.1.1
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: recipe-exchange-modern
*/

:root {
	--re-ink: #18352c;
	--re-deep: #0f5b48;
	--re-green: #16725b;
	--re-mint: #dfeee7;
	--re-sage: #a8c9b6;
	--re-cream: #fbf7ee;
	--re-paper: #fffdf8;
	--re-gold: #e5a742;
	--re-coral: #cb6d54;
	--re-muted: #68766e;
	--re-border: #dde5df;
	--re-shadow: 0 18px 55px rgba(25, 53, 44, .11);
	--re-radius: 22px;
	--re-serif: Georgia, 'Times New Roman', serif;
	--re-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--re-ink);
	background: var(--re-paper);
	font-family: var(--re-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--re-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--re-coral); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { margin-top: 0; color: var(--re-ink); font-family: var(--re-serif); line-height: 1.12; }
h1 { font-size: clamp(2.35rem, 6vw, 5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 4vw, 3.25rem); letter-spacing: -.03em; }
h3 { font-size: 1.45rem; }
p { margin-top: 0; }

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 10px 14px; background: #fff; }
.re-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.re-narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.re-section { padding-block: clamp(70px, 9vw, 120px); }
.re-kicker { margin-bottom: 12px; color: var(--re-coral); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.re-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.re-section-heading h2, .re-section-heading p { margin-bottom: 0; }
.re-section-heading p { max-width: 560px; color: var(--re-muted); }

.site-header { position: relative; z-index: 20; background: rgba(255, 253, 248, .96); border-bottom: 1px solid rgba(221, 229, 223, .8); }
.admin-bar .site-header { top: 32px; }
.site-header-inner { min-height: 84px; display: flex; align-items: center; gap: 32px; }
.site-branding { display: flex; align-items: center; gap: 11px; color: var(--re-ink); text-decoration: none; white-space: nowrap; }
.site-mark { width: 42px; aspect-ratio: 1; display: grid; place-items: center; color: var(--re-paper); background: var(--re-deep); border-radius: 50% 50% 50% 15%; font-family: var(--re-serif); font-size: 1.4rem; font-weight: 700; transform: rotate(-5deg); }
.site-mark span { transform: rotate(5deg); }
.site-name { display: grid; line-height: 1.05; }
.site-name strong { font-family: var(--re-serif); font-size: 1.22rem; }
.site-name small { margin-top: 4px; color: var(--re-muted); font-size: .67rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.primary-navigation { margin-left: auto; }
.primary-navigation ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-navigation a { color: var(--re-ink); font-size: .92rem; font-weight: 650; text-decoration: none; }
.primary-navigation .current-menu-item > a, .primary-navigation a:hover { color: var(--re-coral); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.re-header-link { padding: 10px; color: var(--re-ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.re-button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 20px;
	border: 1px solid var(--re-deep); border-radius: 999px;
	background: transparent; color: var(--re-deep);
	font-weight: 750; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.re-button:hover, .wp-block-button__link:hover { color: var(--re-deep); transform: translateY(-2px); }
.re-button-primary, .wp-block-button__link { background: var(--re-deep); color: #fff; box-shadow: 0 9px 22px rgba(15, 91, 72, .18); }
.re-button-primary:hover, .wp-block-button__link:hover { background: #0b493a; color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--re-border); border-radius: 50%; background: #fff; color: var(--re-ink); }

.re-hero { position: relative; overflow: hidden; padding-block: clamp(65px, 9vw, 118px); background: var(--re-cream); }
.re-hero::before, .re-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.re-hero::before { width: 560px; height: 560px; right: -230px; top: -250px; border: 1px solid rgba(22, 114, 91, .14); box-shadow: inset 0 0 0 80px rgba(22, 114, 91, .025); }
.re-hero::after { width: 220px; height: 220px; left: -120px; bottom: -100px; background: rgba(229, 167, 66, .09); }
.re-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); align-items: center; gap: clamp(42px, 8vw, 100px); }
.re-hero-copy h1 { max-width: 760px; margin-bottom: 24px; }
.re-hero-copy h1 em { color: var(--re-green); font-style: normal; }
.re-hero-copy > p:not(.re-kicker) { max-width: 660px; color: #56675e; font-size: clamp(1.05rem, 1.7vw, 1.22rem); }
.re-hero .re-site-search { max-width: 680px; margin-top: 30px; }
.re-site-search { display: flex; gap: 8px; padding: 7px; background: #fff; border: 1px solid var(--re-border); border-radius: 999px; box-shadow: 0 14px 38px rgba(25, 53, 44, .08); }
.re-site-search input { width: 100%; min-width: 0; padding: 10px 15px; border: 0; outline: 0; background: transparent; color: var(--re-ink); }
.re-site-search button { min-width: 112px; padding: 11px 20px; border: 0; border-radius: 999px; background: var(--re-deep); color: #fff; font-weight: 750; cursor: pointer; }
.re-trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: var(--re-muted); font-size: .85rem; font-weight: 650; }
.re-trust-row span::before { content: '✓'; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; background: var(--re-mint); color: var(--re-deep); font-size: .7rem; }

.re-plate-scene { position: relative; min-height: 440px; display: grid; place-items: center; }
.re-plate { position: relative; width: min(390px, 85vw); aspect-ratio: 1; border: 28px solid #fff; border-radius: 50%; background: radial-gradient(circle at 55% 50%, #f9d8a3 0 12%, #ce794f 13% 28%, #5e8f68 29% 34%, #f5e5bc 35% 49%, #c68a50 50% 54%, #f8edcf 55%); box-shadow: var(--re-shadow), inset 0 0 0 2px #ece6da; transform: rotate(-6deg); }
.re-plate::before { content: ''; position: absolute; width: 26%; height: 31%; left: 19%; top: 22%; border-radius: 70% 30% 65% 35%; background: #6d9c69; box-shadow: 80px 92px 0 -9px #ba633f, 118px 19px 0 -17px #e2a43d, 40px 140px 0 -14px #4f7d55; opacity: .88; }
.re-plate-card { position: absolute; max-width: 220px; padding: 15px 18px; background: rgba(255,255,255,.96); border: 1px solid var(--re-border); border-radius: 16px; box-shadow: 0 14px 32px rgba(25,53,44,.13); font-size: .84rem; }
.re-plate-card strong { display: block; margin-bottom: 2px; font-family: var(--re-serif); font-size: 1.05rem; }
.re-plate-card-one { left: -8px; top: 50px; transform: rotate(-3deg); }
.re-plate-card-two { right: -5px; bottom: 47px; transform: rotate(3deg); }

.re-category-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.re-category-chips a { padding: 8px 14px; border: 1px solid var(--re-border); border-radius: 999px; background: rgba(255,255,255,.66); color: var(--re-ink); font-size: .83rem; font-weight: 700; text-decoration: none; }
.re-category-chips a:hover { border-color: var(--re-sage); background: var(--re-mint); }

.re-feature-strip { position: relative; z-index: 2; margin-top: -25px; }
.re-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--re-deep); border-radius: var(--re-radius); box-shadow: var(--re-shadow); overflow: hidden; }
.re-feature { padding: 28px 31px; color: #fff; border-right: 1px solid rgba(255,255,255,.14); }
.re-feature:last-child { border-right: 0; }
.re-feature strong { display: block; margin-bottom: 5px; font-family: var(--re-serif); font-size: 1.22rem; }
.re-feature span { color: rgba(255,255,255,.72); font-size: .86rem; }

.re-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 25px; }
.re-card { overflow: hidden; background: #fff; border: 1px solid var(--re-border); border-radius: 19px; transition: transform .22s ease, box-shadow .22s ease; }
.re-card:hover { transform: translateY(-5px); box-shadow: var(--re-shadow); }
.re-card-image { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(145deg, var(--re-mint), #f2d9b7); }
.re-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.re-card:hover .re-card-image img { transform: scale(1.035); }
.re-card-placeholder { height: 100%; display: grid; place-items: center; color: var(--re-deep); font-size: 3.8rem; }
.re-card-badge { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.93); color: var(--re-deep); font-size: .69rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.re-card-copy { padding: 21px 22px 24px; }
.re-card-copy h3 { margin-bottom: 8px; }
.re-card-copy h3 a { color: var(--re-ink); text-decoration: none; }
.re-card-copy p { margin-bottom: 15px; color: var(--re-muted); font-size: .9rem; }
.re-card-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--re-muted); font-size: .76rem; font-weight: 650; }

.re-categories-section { background: var(--re-cream); }
.re-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.re-category-tile { min-height: 140px; display: flex; flex-direction: column; justify-content: end; padding: 22px; border: 1px solid rgba(22,114,91,.13); border-radius: 18px; background: rgba(255,255,255,.7); color: var(--re-ink); text-decoration: none; }
.re-category-tile:hover { background: #fff; color: var(--re-deep); box-shadow: 0 12px 30px rgba(25,53,44,.07); }
.re-category-tile span { margin-bottom: auto; color: var(--re-coral); font-size: 1.35rem; }
.re-category-tile strong { font-family: var(--re-serif); font-size: 1.22rem; }
.re-category-tile small { color: var(--re-muted); }

.re-share-panel { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 55px; padding: clamp(35px, 6vw, 72px); background: var(--re-ink); border-radius: 28px; color: #fff; overflow: hidden; }
.re-share-panel h2 { color: #fff; }
.re-share-panel p { max-width: 620px; color: rgba(255,255,255,.7); }
.re-share-steps { display: grid; gap: 11px; }
.re-share-step { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; background: rgba(255,255,255,.055); }
.re-share-step span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--re-gold); color: var(--re-ink); font-weight: 850; }

.site-main { min-height: 50vh; }
.re-page-header { padding-block: 60px 38px; background: var(--re-cream); }
.re-page-header h1 { margin-bottom: 12px; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.re-page-header p { max-width: 720px; color: var(--re-muted); }
.re-content { padding-block: 55px 90px; }
.re-content > *:not(.alignwide):not(.alignfull) { max-width: 820px; margin-inline: auto; }
.re-content .alignwide { max-width: 1180px; margin-inline: auto; }
.re-content .alignfull { width: 100%; }
.re-content blockquote { margin-block: 30px; padding: 10px 0 10px 24px; border-left: 4px solid var(--re-gold); font-family: var(--re-serif); font-size: 1.22rem; }
.re-archive-layout { padding-block: 55px 90px; }
.re-results-info { margin-bottom: 26px; color: var(--re-muted); }
.re-pagination { margin-top: 45px; }
.re-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.re-pagination .page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 8px; border: 1px solid var(--re-border); border-radius: 50%; text-decoration: none; }
.re-pagination .current { background: var(--re-deep); color: #fff; border-color: var(--re-deep); }
.re-empty { padding: 45px; border: 1px dashed var(--re-sage); border-radius: var(--re-radius); background: var(--re-cream); text-align: center; }
.re-single-recipe { padding-block: 50px 90px; }

.site-footer { padding-block: 65px 28px; background: #102a23; color: rgba(255,255,255,.7); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.footer-brand .site-branding { color: #fff; }
.footer-brand .site-name small { color: rgba(255,255,255,.55); }
.footer-brand p { max-width: 430px; margin-top: 20px; }
.footer-column h2 { margin-bottom: 18px; color: #fff; font-family: var(--re-sans); font-size: .77rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li + li { margin-top: 8px; }
.footer-column a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-column a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

@media (max-width: 980px) {
	.primary-navigation { position: absolute; left: 20px; right: 20px; top: 75px; display: none; padding: 18px; background: #fff; border: 1px solid var(--re-border); border-radius: 16px; box-shadow: var(--re-shadow); }
	.primary-navigation.is-open { display: block; }
	.primary-navigation ul { align-items: stretch; flex-direction: column; gap: 4px; }
	.primary-navigation a { display: block; padding: 9px 6px; }
	.menu-toggle { display: inline-grid; place-items: center; margin-left: auto; }
	.header-actions .re-header-link { display: none; }
	.re-hero-grid { grid-template-columns: 1fr; }
	.re-plate-scene { min-height: 380px; }
	.re-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.re-category-grid { grid-template-columns: repeat(3, 1fr); }
	.re-share-panel { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
	.re-wrap, .re-narrow { width: min(100% - 28px, 1180px); }
	.site-header-inner { min-height: 72px; gap: 12px; }
	.site-name small { display: none; }
	.header-actions .re-button { min-height: 40px; padding-inline: 13px; font-size: .78rem; }
	.re-hero { padding-top: 48px; }
	.re-hero-grid { gap: 25px; }
	.re-plate-scene { min-height: 310px; }
	.re-plate { border-width: 20px; }
	.re-plate-card { padding: 11px 13px; font-size: .72rem; }
	.re-site-search { border-radius: 17px; }
	.re-site-search button { min-width: auto; padding-inline: 16px; }
	.re-feature-strip { margin-top: 0; background: var(--re-deep); }
	.re-feature-strip .re-wrap { width: 100%; }
	.re-feature-grid { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; }
	.re-feature { padding: 22px 28px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
	.re-feature:last-child { border-bottom: 0; }
	.re-section-heading { align-items: start; flex-direction: column; gap: 12px; }
	.re-card-grid, .re-category-grid { grid-template-columns: 1fr; }
	.re-category-tile { min-height: 115px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1/-1; }
	.footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
	.site-name strong { font-size: 1rem; }
	.site-mark { width: 36px; }
	.header-actions .re-button { width: 42px; padding: 0; font-size: 0; }
	.header-actions .re-button::after { content: '+'; font-size: 1.2rem; }
	.re-plate-card-one { left: -5px; }
	.re-plate-card-two { right: -5px; }
}

@media print {
	.site-header, .site-footer, .re-page-header { display: none !important; }
}
