/*
Theme Name: Franky's BBQ
Theme URI: https://www.frankysbbq.com
Author: Franky's BBQ
Author URI: https://www.frankysbbq.com
Description: A warm, campfire-inspired theme for Franky's BBQ — the Swiss food truck. Smoked-charcoal backgrounds, ember accents, and bold signage type. Ships with self-hosted fonts (privacy-friendly), a restaurant homepage, and hooks that light up when the Franky's BBQ Review QR plugin is active.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frankys-bbq
Tags: restaurant, food, dark, one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ============================================================
   Fonts (self-hosted — no external requests)
   ============================================================ */
@font-face {
	font-family: "Big Shoulders";
	src: url("assets/fonts/bigshoulders-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Big Shoulders";
	src: url("assets/fonts/bigshoulders-800.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("assets/fonts/figtree-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("assets/fonts/figtree-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("assets/fonts/figtree-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ============================================================
   Tokens
   ============================================================ */
:root {
	--ink: #17120e;        /* smoked charcoal, warm near-black */
	--ink-90: #17120eE6;
	--smoke: #1f1811;      /* panel */
	--smoke-2: #2a2118;    /* raised panel */
	--ember: #e8571e;      /* fire — primary accent */
	--ember-deep: #c6440f; /* darker ember for gradients */
	--flame: #f4a62a;      /* flame tip highlight */
	--cream: #f4ebdd;      /* primary text on dark */
	--ash: #a2937f;        /* muted secondary text */
	--line: rgba(244, 235, 221, 0.12);
	--line-strong: rgba(244, 235, 221, 0.22);

	--font-display: "Big Shoulders", "Arial Narrow", system-ui, sans-serif;
	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1180px;
	--radius: 14px;
	--radius-lg: 22px;
	--section-pad: clamp(3.75rem, 9vw, 7.5rem);
	--glow: 0 0 40px rgba(232, 87, 30, 0.45);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	background: var(--ink);
	color: var(--cream);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--flame); text-decoration: none; }
a:hover { color: var(--ember); }

::selection { background: var(--ember); color: var(--ink); }

.wrap { width: min(var(--wrap), 100% - 2.75rem); margin-inline: auto; }

.section { padding-block: var(--section-pad); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--smoke { background: var(--smoke); }

/* focus visibility (quality floor) */
:focus-visible {
	outline: 3px solid var(--flame);
	outline-offset: 3px;
	border-radius: 3px;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px;
	overflow: hidden;
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	z-index: 100;
	background: var(--ember);
	color: var(--ink);
	padding: 10px 16px;
	font-weight: 700;
	border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: var(--ink); }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 0.98;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	margin: 0 0 0.5em;
	color: var(--cream);
}
h1 { font-size: clamp(2.6rem, 8vw, 5.75rem); line-height: 0.9; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.28em;
	font-size: 0.82rem;
	color: var(--ember);
	display: inline-block;
	margin-bottom: 0.9rem;
}
.lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--cream); max-width: 62ch; }
.muted { color: var(--ash); }

/* ember divider — the signature hairline that glows */
.ember-rule {
	width: 64px;
	height: 3px;
	border: 0;
	margin: 1.5rem 0;
	background: linear-gradient(90deg, var(--ember), var(--flame));
	box-shadow: var(--glow);
	border-radius: 3px;
}
.ember-rule--center { margin-inline: auto; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 1.02rem;
	padding: 0.85em 1.6em;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-ember {
	background: linear-gradient(135deg, var(--flame), var(--ember) 55%, var(--ember-deep));
	color: var(--ink);
}
.btn-ember:hover {
	color: var(--ink);
	box-shadow: var(--glow);
	transform: translateY(-2px);
}
.btn-ghost {
	background: transparent;
	color: var(--cream);
	border-color: var(--line-strong);
}
.btn-ghost:hover {
	border-color: var(--ember);
	color: var(--ember);
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	background: rgba(23, 18, 14, 0.85);
	backdrop-filter: blur(10px);
	border-bottom-color: var(--line);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1rem;
}
.brand {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--cream);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.brand:hover { color: var(--cream); }
.brand .brand-ember { color: var(--ember); }
.brand img { max-height: 52px; width: auto; }

.main-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1.6rem;
	margin: 0;
	padding: 0;
}
.main-nav a {
	color: var(--cream);
	font-weight: 600;
	font-size: 0.98rem;
	position: relative;
	padding-block: 0.3rem;
}
.main-nav a::after {
	content: "";
	position: absolute;
	left: 0; bottom: -2px;
	width: 100%; height: 2px;
	background: linear-gradient(90deg, var(--ember), var(--flame));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.22s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--flame); }
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after { transform: scaleX(1); }
.main-nav .btn { color: var(--ink); }
.main-nav .btn::after { display: none; }

.nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.nav-toggle span {
	display: block;
	width: 26px; height: 2px;
	background: var(--cream);
	margin: 5px 0;
	transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero — the signature campfire glow
   ============================================================ */
.hero {
	position: relative;
	min-height: min(92vh, 820px);
	display: flex;
	align-items: center;
	padding-top: 6rem;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}
/* dark wash over any background image */
.hero::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(23,18,14,0.72) 0%, rgba(23,18,14,0.55) 40%, rgba(23,18,14,0.92) 100%);
	z-index: 0;
}
/* the ember glow rising from below like a fire */
.hero::after {
	content: "";
	position: absolute;
	left: 50%; bottom: -30%;
	width: min(120vw, 1100px);
	height: 70%;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(232,87,30,0.55) 0%, rgba(232,87,30,0.22) 35%, rgba(232,87,30,0) 70%);
	filter: blur(6px);
	z-index: 0;
	pointer-events: none;
	animation: emberBreathe 6s ease-in-out infinite;
}
@keyframes emberBreathe {
	0%, 100% { opacity: 0.82; transform: translateX(-50%) scaleY(1); }
	50%      { opacity: 1;    transform: translateX(-50%) scaleY(1.08); }
}
@media (prefers-reduced-motion: reduce) {
	.hero::after { animation: none; }
}
.hero-inner { position: relative; z-index: 1; max-width: 46rem; }
.hero h1 { margin-bottom: 0.4em; }
.hero h1 .flame { color: var(--ember); }
.hero .lede { color: var(--cream); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* little "truck status" pill */
.truck-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(244,235,221,0.06);
	border: 1px solid var(--line);
	color: var(--cream);
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}
.truck-pill .dot {
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--flame);
	box-shadow: 0 0 10px var(--flame);
	animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
@media (prefers-reduced-motion: reduce) { .truck-pill .dot { animation: none; } }

/* ============================================================
   Section header
   ============================================================ */
.section-head { max-width: 60ch; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ============================================================
   Credo — the three pillars (a real sequence → numbered)
   ============================================================ */
.credo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.credo-card {
	background: var(--smoke-2);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 2rem 1.75rem;
	position: relative;
	overflow: hidden;
}
.credo-card .num {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 3.5rem;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--ember);
	display: block;
	margin-bottom: 0.6rem;
}
.credo-card h3 { color: var(--flame); margin-bottom: 0.5rem; }
.credo-card p { color: var(--ash); margin: 0; }

/* ============================================================
   Menu / dishes grid (integrates plugin CPT)
   ============================================================ */
.dish-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
	gap: 1.5rem;
}
.dish-card {
	background: var(--smoke);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.dish-card:hover {
	transform: translateY(-4px);
	border-color: rgba(232,87,30,0.5);
	box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.dish-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--smoke-2); }
.dish-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dish-card .body { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.dish-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.dish-card h3 { margin: 0; font-size: 1.25rem; }
.dish-card .price { font-family: var(--font-display); font-weight: 700; color: var(--flame); white-space: nowrap; }
.dish-card .excerpt { color: var(--ash); font-size: 0.94rem; margin: 0; }

/* ============================================================
   Events grid
   ============================================================ */
.event-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 1.25rem;
}
.event-card {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.6rem 1.5rem;
	background: linear-gradient(180deg, var(--smoke-2), var(--smoke));
	transition: border-color 0.18s ease, transform 0.18s ease;
}
.event-card:hover { border-color: rgba(232,87,30,0.5); transform: translateY(-3px); }
.event-card h3 { color: var(--cream); font-size: 1.3rem; margin-bottom: 0.4rem; }
.event-card p { color: var(--ash); font-size: 0.95rem; margin: 0 0 1rem; }
.event-card a { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem; }

/* ============================================================
   Locations / split feature
   ============================================================ */
.split {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(1.5rem, 5vw, 4rem);
	align-items: center;
}
.location-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 1.75rem; }
.chip {
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	padding: 0.45rem 1rem;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--cream);
}
.feature-media {
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--line);
	aspect-ratio: 4 / 3;
	background:
		radial-gradient(120% 120% at 70% 20%, rgba(244,166,42,0.18), transparent 55%),
		radial-gradient(120% 120% at 20% 90%, rgba(232,87,30,0.28), transparent 55%),
		var(--smoke-2);
	display: grid;
	place-items: center;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media .placeholder {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ash);
	font-size: 0.95rem;
}

/* ============================================================
   Reviews / QR call to action
   ============================================================ */
.review-cta {
	text-align: center;
	max-width: 46rem;
	margin-inline: auto;
}
.review-cta .fbbq-qr-block { margin-top: 1.5rem; display: inline-block; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
	background: #120e0a;
	border-top: 1px solid var(--line);
	padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}
.footer-sign {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	line-height: 1;
	margin-bottom: 2.5rem;
	max-width: 20ch;
}
.footer-sign .flame { color: var(--ember); }
.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 2rem;
}
.footer-grid h4 {
	font-size: 0.85rem;
	letter-spacing: 0.22em;
	color: var(--ash);
	margin-bottom: 1rem;
}
.footer-grid a { color: var(--cream); }
.footer-grid a:hover { color: var(--ember); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-contact p { color: var(--cream); margin: 0 0 0.4rem; }
.social-row { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-row a {
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	color: var(--cream);
}
.social-row a:hover { border-color: var(--ember); color: var(--ember); }
.footer-bottom {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	color: var(--ash);
	font-size: 0.88rem;
}
.footer-bottom a { color: var(--ash); }
.footer-bottom a:hover { color: var(--cream); }

/* ============================================================
   Generic content (pages, posts, blog)
   ============================================================ */
.page-hero {
	padding-top: 8.5rem;
	padding-bottom: 2.5rem;
	position: relative;
}
.page-hero::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 1px; background: var(--line);
}
.content-area { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.entry { max-width: 72ch; margin-inline: auto; }
.entry a { color: var(--flame); text-decoration: underline; text-underline-offset: 3px; }
.entry img, .entry figure { border-radius: var(--radius); margin: 1.5rem 0; }
.entry h2, .entry h3 { margin-top: 1.6em; }
.entry blockquote {
	border-left: 3px solid var(--ember);
	margin: 1.5rem 0;
	padding: 0.4rem 0 0.4rem 1.25rem;
	color: var(--cream);
	font-size: 1.15rem;
}
.entry ul, .entry ol { padding-left: 1.3rem; }
.entry code { background: var(--smoke-2); padding: 0.15em 0.4em; border-radius: 5px; font-size: 0.92em; }

.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.post-card {
	background: var(--smoke);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform 0.18s ease, border-color 0.18s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(232,87,30,0.4); }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.25rem 1.4rem 1.5rem; }
.post-card .meta { color: var(--ash); font-size: 0.85rem; margin-bottom: 0.5rem; }
.post-card h3 { font-size: 1.35rem; }
.post-card h3 a { color: var(--cream); }
.post-card h3 a:hover { color: var(--ember); }

.pagination { margin-top: 3rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	padding: 0.5rem 0.9rem;
	color: var(--cream);
}
.pagination .current, .pagination .page-numbers:hover { background: var(--ember); color: var(--ink); border-color: var(--ember); }

/* forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="tel"], textarea, select {
	width: 100%;
	background: var(--smoke-2);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	color: var(--cream);
	padding: 0.7rem 0.9rem;
	font: inherit;
}
input::placeholder, textarea::placeholder { color: var(--ash); }
label { font-weight: 600; }

.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { border-bottom: 1px solid var(--line); padding: 1rem 0; }

/* ============================================================
   Reveal-on-scroll (progressive; disabled w/ reduced motion)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
	.credo-grid { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(80vw, 320px);
		background: var(--smoke);
		border-left: 1px solid var(--line);
		padding: 6rem 2rem 2rem;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
	}
	.nav-open .main-nav { transform: translateX(0); }
	.main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
	.main-nav a { font-size: 1.15rem; }
	.footer-grid { grid-template-columns: 1fr; }
	.hero { min-height: auto; padding-block: 8rem 4.5rem; }
}
