/*
Theme Name: FreshBowl
Theme URI: https://akudigital.example/product/freshbowl-wordpress/
Author: AKU Digital
Author URI: https://akudigital.example/
Description: A light, fresh theme for healthy bowls, salad bars and smoothie kitchens. Peach-and-cream colours, a slowly turning hero bowl with a discount badge, colourful dish cards with cut-out food, a fanned photo deck that spreads open as you scroll, a top-foods row, chef cards and a first-order offer. Works with the block editor and free Elementor; no paid plugins required. Pair with the AKU Restaurant Core plugin.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freshbowl
Tags: food-and-drink, one-column, custom-logo, custom-menu, editor-style, featured-images, block-patterns, wide-blocks, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--fb-ink: #2b2622;
	--fb-coral: #f2683c;
	--fb-coral-2: #e2552a;
	--fb-green: #3fae5a;
	--fb-purple: #8b6ce7;
	--fb-red: #ef5a5a;
	--fb-yellow: #ffc93c;
	--fb-gold: var(--fb-coral);  /* accent used by shared components */
	--fb-gold-text: #b4421a;     /* coral for small text on peach: 5.3:1 */
	--fb-peach: #fdeee4;
	--fb-cream: #fff8f2;
	--fb-paper: #fffdfb;
	--fb-muted: #6e6259;
	--fb-line: rgba(43, 38, 34, 0.1);
	--fb-line-dark: rgba(255, 248, 242, 0.16);
	--fb-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--fb-text: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
	--fb-content: 760px;
	--fb-wide: 1240px;
	--fb-gutter: clamp(20px, 4vw, 48px);
	--fb-section: clamp(44px, 5.5vw, 72px);
	--fb-radius: 28px;
	--fb-shadow: 0 18px 40px -18px rgba(150, 80, 40, 0.35);
	--fb-shadow-lg: 0 34px 70px -28px rgba(150, 80, 40, 0.45);
	--fb-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--fb-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--fb-cream); color: var(--fb-ink); font-family: var(--fb-text); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--fb-coral-2); }
:focus-visible { outline: 3px solid var(--fb-coral); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--fb-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; margin: 0 0 0.5em; font-variation-settings: "SOFT" 100; }
h1 { font-size: clamp(44px, 6.4vw, 86px); }
h2 { font-size: clamp(34px, 4.4vw, 58px); }
h3 { font-size: clamp(21px, 2vw, 26px); }
h4 { font-size: 19px; }
p { margin: 0 0 1em; }
.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 !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; background: var(--fb-coral); color: #fff; }

/* ---------- Buttons: soft pills ---------- */
.button, .wp-block-button__link, .aku-btn--primary {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--fb-text); font-size: 15px; font-weight: 700;
	padding: 15px 28px; border-radius: 999px; border: 0;
	background: var(--fb-coral); color: #fff; text-decoration: none; cursor: pointer;
	box-shadow: 0 12px 24px -10px rgba(242, 104, 60, 0.7);
	transition: transform 0.3s var(--fb-ease), box-shadow 0.3s, background-color 0.25s;
}
.button:hover, .wp-block-button__link:hover, .aku-btn--primary:hover { color: #fff; background: var(--fb-coral-2); transform: translateY(-3px); box-shadow: 0 18px 30px -12px rgba(242, 104, 60, 0.8); }
.button--outline, .is-style-outline .wp-block-button__link { background: #fff; color: var(--fb-ink); box-shadow: var(--fb-shadow); }
.aku-btn { border-radius: 999px; font-weight: 700; }

/* ---------- Header: a floating white pill ---------- */
.site-header { position: sticky; top: 12px; z-index: 50; padding: 0 var(--fb-gutter); margin-top: 12px; }
.admin-bar .site-header { top: 44px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 12px; } }
.site-header__inner {
	max-width: var(--fb-wide); margin: 0 auto; padding: 10px 12px 10px 24px; min-height: 68px;
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
	background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-radius: 999px; box-shadow: var(--fb-shadow); transition: box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled .site-header__inner { box-shadow: var(--fb-shadow-lg); background: #fff; }
.brand { display: flex; align-items: center; gap: 8px; line-height: 1; }
.brand__name { font-family: var(--fb-display); font-size: 27px; font-weight: 700; font-style: italic; text-decoration: none; color: var(--fb-ink); letter-spacing: -0.02em; }
.brand__name::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50% 0; background: var(--fb-green); transform: rotate(-45deg) translateY(-3px); }
.brand__name:hover { color: var(--fb-coral); }
.brand__tagline { display: none; }
.brand .custom-logo { max-height: 48px; width: auto; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 4px; }
.site-nav a { position: relative; display: block; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--fb-muted); padding: 9px 16px; border-radius: 999px; transition: color 0.2s, background-color 0.25s; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--fb-coral-2); background: var(--fb-peach); }
.site-nav .sub-menu { display: none; }
.site-header__end { display: flex; align-items: center; gap: 12px; }
.site-header__end .aku-open { font-size: 13px; }
.site-header__cta { padding: 12px 22px; }
.menu-toggle { display: none; }

/* Phones: an app-style tab bar (footer.php). */
.fb-tabbar { display: none; }
@media (max-width: 960px) {
	.site-header__inner { grid-template-columns: 1fr auto; padding: 8px 10px 8px 18px; min-height: 58px; }
	.site-nav, .site-header__cta, .site-header__end .aku-open { display: none; }
	.fb-tabbar {
		display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
		position: fixed; z-index: 60; left: 10px; right: 10px; bottom: 10px;
		padding: 6px 6px 8px; border-radius: 24px; background: #fff; color: var(--fb-muted);
		box-shadow: 0 18px 40px -12px rgba(120, 60, 30, 0.45);
	}
	.fb-tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; color: var(--fb-muted); text-decoration: none; font-size: 11px; font-weight: 700; }
	.fb-tabbar a[aria-current="page"] { color: var(--fb-coral-2); }
	.fb-tabbar svg { width: 22px; height: 22px; }
	.fb-tabbar .fb-tabbar__order { margin-top: -24px; }
	.fb-tabbar .fb-tabbar__order span:first-child { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--fb-coral); color: #fff; box-shadow: 0 10px 20px -8px rgba(242, 104, 60, 0.8); }
	body { padding-bottom: 92px; }
}

/* ---------- Content ---------- */
.site-main { min-height: 50vh; overflow-x: clip; }
.page-header { max-width: var(--fb-wide); margin: 0 auto; padding: calc(var(--fb-section) * 0.7) var(--fb-gutter) 32px; }
.page-title { margin: 0; }
/* Long words never run off a small screen. */
h1, h2, h3, h4, .page-title { overflow-wrap: break-word; }
.page-intro, .entry-meta { color: var(--fb-muted); font-size: 14px; }
.entry-content { max-width: var(--fb-content); margin: 0 auto; padding: 0 var(--fb-gutter) var(--fb-section); }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content > .alignwide { max-width: var(--fb-wide); margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.entry-content--full { max-width: none; padding: 0; }
.entry-content--full > * + * { margin-top: 0; }
.entry-content--full > :not(.alignfull):not(.alignwide) { max-width: var(--fb-content); margin-left: auto; margin-right: auto; padding-left: var(--fb-gutter); padding-right: var(--fb-gutter); }
.entry-content--full > .alignfull { margin-left: 0; margin-right: 0; }
.single-entry__media { max-width: var(--fb-wide); margin: 0 auto 48px; padding: 0 var(--fb-gutter); }
.single-entry__media img { border-radius: var(--fb-radius); }

/* ---------- Section building blocks ---------- */
.fb-section { padding: var(--fb-section) var(--fb-gutter); }
.fb-section > * { max-width: var(--fb-wide); margin-left: auto; margin-right: auto; }
.fb-peach { background: var(--fb-peach); }
.fb-cream { background: var(--fb-cream); }
.fb-light { background: var(--fb-paper); }
.fb-dark { background: var(--fb-ink); color: var(--fb-cream); }
.fb-eyebrow { font-family: var(--fb-text) !important; font-size: 14px !important; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fb-coral-2); margin-bottom: 12px !important; }
.fb-lead { font-size: 19px; line-height: 1.6; max-width: 34em; color: var(--fb-muted); }
.fb-dark .fb-lead { color: rgba(255, 248, 242, 0.8); }
.fb-center { text-align: center; }
.fb-center .fb-lead { margin-left: auto; margin-right: auto; }
.fb-hl { color: var(--fb-coral); font-style: italic; }

/* ---------- AKU Restaurant Core, restyled ---------- */
.aku-menu, .aku-res, .aku-open, .aku-hours, .aku-address {
	--aku-accent: var(--fb-coral);
	--aku-accent-ink: #fff;
	--aku-radius: 18px;
	--aku-name-font: var(--fb-display);
	--aku-gap: 26px;
	--aku-line: var(--fb-line);
}
.aku-menu__filters { justify-content: center; }
.aku-chip { border-radius: 999px; border: 0; background: #fff; box-shadow: var(--fb-shadow); font-weight: 700; font-size: 14px; }
.aku-chip[aria-pressed="true"] { background: var(--fb-coral); color: #fff; }
.aku-tag { border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.25); font-weight: 700; font-size: 11px; }

/* Dish cards: a coloured card with the bowl popping out of the top. */
.aku-menu--cards .aku-menu__title { font-size: clamp(32px, 3.6vw, 48px); }
.aku-menu--cards .aku-menu__items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 70px 24px; padding-top: 70px; align-items: start; }
.aku-menu--cards .aku-dish {
	--fb-card: var(--fb-red);
	min-width: 0; position: relative; padding-top: 60px; border-radius: var(--fb-radius); background: var(--fb-card); color: #fff; text-align: center;
	box-shadow: 0 24px 40px -22px var(--fb-card); transition: translate 0.4s var(--fb-ease), box-shadow 0.4s, opacity 0.5s, transform 0.8s var(--fb-ease);
}
.aku-menu--cards .aku-dish:nth-child(4n+2) { --fb-card: var(--fb-coral); }
.aku-menu--cards .aku-dish:nth-child(4n+3) { --fb-card: var(--fb-green); }
.aku-menu--cards .aku-dish:nth-child(4n+4) { --fb-card: var(--fb-purple); }
.aku-menu--cards .aku-dish:hover { translate: 0 -8px; box-shadow: 0 34px 50px -24px var(--fb-card); }
.aku-menu--cards .aku-dish__media { position: absolute; left: 50%; top: -70px; width: 150px; aspect-ratio: 1; translate: -50% 0; overflow: visible; }
.aku-menu--cards .aku-dish__media img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 0; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.25)); transition: transform 0.8s var(--fb-ease); }
.aku-menu--cards .aku-dish:hover .aku-dish__media img { transform: rotate(40deg) scale(1.06); }
.aku-menu--cards .aku-dish__body { padding: 26px 22px 24px; justify-items: center; }
.aku-menu--cards .aku-dish__head { justify-content: center; flex-wrap: wrap; }
.aku-menu--cards .aku-dish__name { font-size: 24px; color: #fff; line-height: 1.1; width: 100%; }
.aku-menu--cards .aku-dish__price { font-family: var(--fb-text); font-weight: 800; font-size: 22px; color: #fff; }
.aku-menu--cards .aku-dish__desc { color: rgba(255, 255, 255, 0.85); font-size: 14.5px; }
.aku-menu--cards .aku-dish__meta { justify-content: center; }
.aku-menu--cards .aku-dish__order { margin: 4px auto 0; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--fb-ink); font-weight: 800; text-decoration: none; }
.aku-menu--cards .aku-dish__order:hover { color: var(--fb-coral-2); }
.aku-menu--cards .aku-spice { color: #fff; }
.aku-menu--cards .aku-dish__sizes { justify-content: center; }
.aku-menu--cards .aku-dish__sizes li span:first-child { color: rgba(255, 255, 255, 0.8); }
.aku-menu--cards .aku-dish:not(:has(.aku-dish__media)) { padding-top: 0; }
@media (max-width: 767px) {
	.fb-cards-sec .aku-menu--cards .aku-menu__items { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 80px 12px 24px 4px; }
	.fb-cards-sec .aku-menu--cards .aku-dish { scroll-snap-align: start; }
}

/* Offer: first-order discount */
.aku-offer, .aku-qr { --aku-accent: var(--fb-coral); --aku-accent-ink: #fff; --aku-radius: var(--fb-radius); }
.aku-offer { background: #fff; color: var(--fb-ink); border: 0; border-radius: var(--fb-radius); box-shadow: var(--fb-shadow-lg); --aku-muted: var(--fb-muted); }
.aku-offer__title { font-family: var(--fb-display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; }
.aku-countdown__unit { background: var(--fb-peach); border: 0; border-radius: 16px; }
.aku-countdown__num { font-family: var(--fb-display); color: var(--fb-coral-2); font-size: 36px; }
.aku-offer__code-value { color: var(--fb-coral-2); }

/* Forms */
.wpcf7-form, .wpforms-form { display: grid; gap: 16px; }
.wpcf7-form p { margin: 0; }
.wpcf7-form label, .wpforms-field-label { font-size: 13px !important; font-weight: 700 !important; color: var(--fb-muted); }
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .wpcf7-form textarea, .wpcf7-form select,
.wpforms-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .wpforms-form textarea, .wpforms-form select {
	width: 100%; max-width: none !important; font: inherit; color: inherit; background: #fff; border: 1px solid var(--fb-line) !important; border-radius: 16px !important; padding: 13px 16px !important; margin-top: 6px; box-sizing: border-box;
}
.wpcf7-submit, .wpforms-submit { justify-self: start; font-family: var(--fb-text) !important; font-size: 15px !important; font-weight: 700 !important; padding: 15px 28px !important; border: 0 !important; border-radius: 999px !important; background: var(--fb-coral) !important; color: #fff !important; cursor: pointer; }
.aku-res__field input, .aku-res__field textarea, .aku-res__field select { border: 1px solid var(--fb-line); border-radius: 16px; background: #fff; }
.aku-res__field label { font-weight: 700; font-size: 13px; }

/* ---------- Posts ---------- */
.post-list { max-width: var(--fb-wide); margin: 0 auto; padding: 0 var(--fb-gutter) var(--fb-section); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 36px 26px; }
.post-card { border-radius: var(--fb-radius); overflow: hidden; background: #fff; box-shadow: var(--fb-shadow); transition: translate 0.4s var(--fb-ease), box-shadow 0.4s; }
.post-card:hover { translate: 0 -6px; box-shadow: var(--fb-shadow-lg); }
.post-card__media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.post-card__title { font-size: 26px; margin: 18px 22px 6px; }
.post-card__title a { text-decoration: none; }
.post-card__excerpt, .post-card .entry-meta { color: var(--fb-muted); margin-inline: 22px; }
.pagination, .navigation.pagination { grid-column: 1 / -1; text-align: center; }
.nav-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.post-navigation { max-width: var(--fb-content); margin: 0 auto; padding: 0 var(--fb-gutter) 48px; }
.post-navigation .nav-links { justify-content: space-between; }
.comments { max-width: var(--fb-content); margin: 0 auto; padding: 0 var(--fb-gutter) var(--fb-section); }
.not-found, .no-results { max-width: var(--fb-content); margin: 0 auto; padding: var(--fb-section) var(--fb-gutter); text-align: center; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fb-gold-text); }
.search-form { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }
.search-form input[type="search"] { font: inherit; padding: 13px 18px; border: 0; border-radius: 999px; background: #fff; box-shadow: var(--fb-shadow); min-width: 0; }
.search-submit { font: 700 15px var(--fb-text); padding: 13px 22px; border: 0; border-radius: 999px; background: var(--fb-coral); color: #fff; cursor: pointer; }
.widget { margin-bottom: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--fb-peach); color: var(--fb-ink); border-radius: 44px 44px 0 0; margin-top: 24px; }
.site-footer__inner { max-width: var(--fb-wide); margin: 0 auto; padding: 72px var(--fb-gutter) 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 40px; }
@media (max-width: 960px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__name { font-family: var(--fb-display); font-size: 44px; font-style: italic; font-weight: 700; line-height: 1; margin: 0 0 12px; }
.site-footer__note { color: var(--fb-muted); max-width: 26em; }
.site-footer__label { font-family: var(--fb-text); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fb-coral-2); margin-bottom: 14px; }
.site-footer .aku-hours { font-size: 14px; }
.site-footer .aku-address { color: var(--fb-muted); font-size: 15px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-menu a { text-decoration: none; color: var(--fb-muted); font-weight: 600; }
.footer-menu a:hover { color: var(--fb-coral-2); }
.site-footer__bar { border-top: 1px solid var(--fb-line); text-align: center; padding: 22px var(--fb-gutter); font-size: 13px; color: var(--fb-muted); }
.site-footer__bar p { margin: 0; }

/* Arrow buttons under sideways-scrolling rows on phones (added by navigation.js). */
.fb-scroll-arrows { display: none; }
@media (max-width: 767px) {
	.fb-scroll-arrows { display: flex; justify-content: center; gap: 14px; margin-top: 6px; }
	.fb-scroll-arrows button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; cursor: pointer; font-size: 20px; line-height: 1; border: 0; border-radius: 50%; background: #fff; color: var(--fb-ink); box-shadow: var(--fb-shadow); }
	.fb-scroll-arrows button:disabled { opacity: 0.35; cursor: default; }
}
