/* ==========================================================================
   Steel Belt theme — layout & components
   Colors, fonts and sizes live in theme.json; this file handles layout,
   the header/footer, and the reusable section styles used on pages.
   ========================================================================== */

:root {
	--sb-base: var(--wp--preset--color--base, #141210);
	--sb-surface: var(--wp--preset--color--surface, #1e1c19);
	--sb-surface-2: var(--wp--preset--color--surface-2, #28241f);
	--sb-line: var(--wp--preset--color--line, #3d372f);
	--sb-copper: var(--wp--preset--color--copper, #df9c50);
	--sb-copper-light: var(--wp--preset--color--copper-light, #f0b877);
	--sb-tan: var(--wp--preset--color--tan, #c9ad86);
	--sb-cream: var(--wp--preset--color--cream, #f3ece1);
	--sb-text: var(--wp--preset--color--text, #dcd4c7);
	--sb-muted: var(--wp--preset--color--muted, #ab9f8f);
	--sb-ember: var(--wp--preset--color--ember, #d4553a);
	--sb-heading: var(--wp--preset--font-family--heading, "Oswald", sans-serif);
	--sb-accent: var(--wp--preset--font-family--accent, "Alegreya", serif);
	--sb-radius: 8px;
	--sb-header-h: 76px;
}

/* Base ------------------------------------------------------------------- */

html { scroll-padding-top: calc(var(--sb-header-h) + 1rem); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--sb-copper); color: var(--sb-base); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--sb-copper-light);
	outline-offset: 2px;
	border-radius: 2px;
}

/* No gap between the header, main and footer. */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.sb-main { padding-top: 0; padding-bottom: 0; }
.sb-main > .wp-block-post-content > :first-child.alignfull { margin-block-start: 0; }
.sb-main > .wp-block-post-content > :last-child { margin-block-end: 0; }

img { height: auto; }

.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;
}

/* Header ----------------------------------------------------------------- */

.sb-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	/* Solid, not blurred: a backdrop blur would trap the full-screen phone menu inside the header. */
	background: rgba(20, 18, 16, 0.97);
	border-bottom: 1px solid var(--sb-line);
}
@media (max-width: 600px) {
	/* The admin bar is not fixed on phones. */
	.admin-bar .sb-site-header { top: 0; }
}

.sb-header .sb-brand { flex-shrink: 0; }
.sb-header .wp-block-site-logo img { width: 58px; height: auto; display: block; }
.sb-header .wp-block-site-title { max-width: 11ch; line-height: 1.05; overflow-wrap: normal; word-break: keep-all; }
.sb-header .wp-block-site-title a { display: block; }
.sb-header__right { flex-shrink: 0; }

/* Navigation: full links from 1024px up, menu button below. */
.sb-nav .wp-block-navigation-item__content { padding: 0.35rem 0; position: relative; }
.sb-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
	background: var(--sb-copper); transition: right 0.2s ease;
}
.sb-nav .wp-block-navigation-item__content:hover::after,
.sb-nav .current-menu-item > .wp-block-navigation-item__content::after,
.sb-nav [aria-current="page"]::after { right: 0; }

@media (min-width: 600px) and (max-width: 1023px) {
	.sb-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.sb-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.sb-nav .wp-block-navigation__responsive-container-open,
.sb-nav .wp-block-navigation__responsive-container-close { color: var(--sb-cream); }
.sb-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }

/* Full-screen phone menu */
.sb-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem 1.5rem 2rem;
}
.sb-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
	gap: 0.25rem;
}
.sb-nav .is-menu-open .wp-block-navigation-item__content {
	font-size: 1.75rem;
	letter-spacing: 0.06em;
	padding: 0.6rem 0;
}
.sb-nav .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--sb-line);
}
.sb-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.sb-nav .is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
	width: 100%;
}
.sb-nav .is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; }
.sb-nav .is-menu-open .wp-block-navigation-item__content::after { display: none; }

/* Call button in the header */
.sb-header .sb-call {
	padding: 0.65em 1.1em;
	font-size: 0.95rem;
	white-space: nowrap;
}
.sb-header .sb-call__num { display: none; }
@media (min-width: 1240px) {
	.sb-header .sb-call__label { display: none; }
	.sb-header .sb-call__num { display: inline; }
}
@media (max-width: 599px) {
	:root { --sb-header-h: 64px; }
	.sb-header .wp-block-site-logo img { width: 46px; }
	.sb-header .wp-block-site-title { font-size: 1.02rem !important; }
	.sb-header__right { gap: 0.75rem !important; }
	.sb-header .sb-call { padding: 0.6em 0.85em; }
}
@media (max-width: 345px) {
	.sb-header .wp-block-site-title { display: none; }
}

/* Page banner (plain pages) ---------------------------------------------- */

.sb-page-banner {
	background:
		radial-gradient(ellipse at 50% 120%, rgba(223, 156, 80, 0.14), transparent 60%),
		var(--sb-surface);
	border-bottom: 1px solid var(--sb-line);
}

/* Hero (cover blocks with .sb-hero) --------------------------------------- */

/* Photo-backed sections: the photo is set on the block (editable), and a
   dark gradient sits over it so text is always readable. */
.sb-hero {
	position: relative;
	isolation: isolate;
	min-height: min(88vh, 780px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-color: var(--sb-base);
	background-size: cover;
	background-repeat: no-repeat;
}
.sb-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(20, 18, 16, 0.62) 0%, rgba(20, 18, 16, 0.72) 55%, var(--sb-base) 100%);
}
.sb-hero--short { min-height: min(62vh, 560px); }
.sb-hero h1 {
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
	margin-top: 0.25rem;
	margin-bottom: 0.5rem;
}
.sb-hero p { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75); }
.sb-hero__lead {
	font-size: var(--wp--preset--font-size--large);
	max-width: 40rem;
	margin-left: auto !important;
	margin-right: auto !important;
	color: var(--sb-cream);
}
.sb-hero .wp-block-buttons { margin-top: 1.75rem; }
.sb-hero-logo { margin-bottom: 0.5rem; }
.sb-hero-logo img { width: clamp(110px, 18vw, 170px); border-radius: 0; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6)); }
.sb-hero .sb-next { max-width: 860px; margin: 0 auto; }

/* Photo band with a single statement */
.sb-band { min-height: 0; }
.sb-band::before { background: rgba(20, 18, 16, 0.72); }
.sb-statement {
	font-family: var(--sb-accent);
	font-style: italic;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.25;
	color: var(--sb-cream);
	max-width: 52rem;
	margin-left: auto !important;
	margin-right: auto !important;
}
.sb-statement::before, .sb-statement::after { color: var(--sb-copper); }
.sb-statement::before { content: "“"; }
.sb-statement::after { content: "”"; }

/* Rotating hero words: Old-school technique. / Steel-country pride. / Real wood. / Real fire. Real flavor. */
.sb-rotator {
	font-family: var(--sb-accent);
	font-style: italic;
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--sb-copper);
	min-height: 1.5em;
	margin: 0;
}

/* Eyebrow / kicker text */
.is-style-eyebrow {
	font-family: var(--sb-accent);
	font-style: italic;
	font-size: var(--wp--preset--font-size--large);
	color: var(--sb-copper);
	letter-spacing: 0.01em;
	margin-bottom: 0.25rem !important;
}
.is-style-eyebrow + h1, .is-style-eyebrow + h2 { margin-top: 0.15rem; }

/* Headings with a copper rule */
.is-style-underline::after {
	content: ""; display: block; width: 64px; height: 3px; margin-top: 0.9rem;
	background: var(--sb-copper);
}
.has-text-align-center.is-style-underline::after { margin-left: auto; margin-right: auto; }

/* Sections ---------------------------------------------------------------- */

.sb-section { position: relative; }
.sb-section--dark { background: var(--sb-surface); border-top: 1px solid var(--sb-line); border-bottom: 1px solid var(--sb-line); }
.sb-section--glow {
	background:
		radial-gradient(ellipse at 15% 0%, rgba(223, 156, 80, 0.10), transparent 55%),
		radial-gradient(ellipse at 85% 100%, rgba(212, 85, 58, 0.08), transparent 55%),
		var(--sb-base);
}
.sb-section-intro { color: var(--sb-text); font-size: var(--wp--preset--font-size--large); max-width: 40rem; margin-left: auto; margin-right: auto; }
.sb-note { color: var(--sb-muted); font-size: var(--wp--preset--font-size--small); font-style: italic; }

/* Panel / card style for groups */
.is-style-panel {
	background: var(--sb-surface-2);
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
}
.is-style-panel > :first-child { margin-top: 0; }

/* Framed images */
.is-style-framed img {
	border: 1px solid var(--sb-line);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

/* Badges list: "Real hardwood smoke · Custom offset pit · Steel Valley built" */
.is-style-badges {
	list-style: none;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.is-style-badges li {
	font-family: var(--sb-heading);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.85rem;
	color: var(--sb-cream);
	border: 1px solid var(--sb-line);
	background: rgba(223, 156, 80, 0.08);
	padding: 0.45em 0.9em;
	border-radius: 999px;
}
.is-style-badges li::before { content: "▲ "; color: var(--sb-copper); font-size: 0.7em; vertical-align: 0.15em; }
.has-text-align-center .is-style-badges, .is-style-badges.has-text-align-center { justify-content: center; }

/* Check-mark list */
.is-style-checks { list-style: none; padding-left: 0 !important; }
.is-style-checks li { position: relative; padding-left: 1.8rem; margin-bottom: 0.5rem; }
.is-style-checks li::before {
	content: ""; position: absolute; left: 0; top: 0.45em; width: 1rem; height: 0.55rem;
	border-left: 3px solid var(--sb-copper); border-bottom: 3px solid var(--sb-copper);
	transform: rotate(-45deg);
}
.is-style-checks strong { color: var(--sb-cream); }

/* Numbered steps (columns) */
.is-style-steps { counter-reset: sb-step; }
.is-style-steps > .wp-block-column {
	counter-increment: sb-step;
	position: relative;
	background: var(--sb-surface-2);
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	padding: 2.75rem 1.25rem 1.25rem;
	margin-top: 1.5rem;
}
.is-style-steps > .wp-block-column::before {
	content: counter(sb-step);
	position: absolute; top: -1.4rem; left: 1.25rem;
	width: 2.8rem; height: 2.8rem; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--sb-copper); color: var(--sb-base);
	font-family: var(--sb-heading); font-weight: 600; font-size: 1.3rem;
	box-shadow: 0 0 0 6px var(--sb-base);
}
.sb-section--dark .is-style-steps > .wp-block-column::before { box-shadow: 0 0 0 6px var(--sb-surface); }
.is-style-steps h3 { font-size: var(--wp--preset--font-size--large); margin-top: 0; }
.is-style-steps p { margin-bottom: 0; }

/* Feature tiles (homepage "what we do" cards) */
.sb-tiles .wp-block-column {
	background: var(--sb-surface-2);
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.sb-tiles .wp-block-column:hover { transform: translateY(-3px); border-color: var(--sb-copper); }
.sb-tiles .wp-block-image { margin: 0; }
.sb-tiles .wp-block-image img { border-radius: 0; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.sb-tiles .sb-tile__body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.sb-tiles .sb-tile__body > .wp-block-buttons { margin-top: auto; padding-top: 0.5rem; }
.sb-tiles h3 { font-size: var(--wp--preset--font-size--large); margin: 0 0 0.5rem; }

/* Split section: image + text, stacks on phones */
.sb-split .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 781px) {
	.sb-split.is-reversed-mobile { flex-direction: column-reverse; }
}

/* Tall portrait photos get cropped to a friendlier shape */
.sb-img-tall img { aspect-ratio: 4 / 5 !important; object-fit: cover; object-position: 50% 40%; }

/* Small italic subtitle under a heading */
.sb-sub {
	font-family: var(--sb-accent); font-style: italic; color: var(--sb-copper);
	font-size: var(--wp--preset--font-size--large); margin-top: 0 !important;
}

/* Catering menu panels */
.sb-panels .is-style-panel + .is-style-panel { margin-top: var(--wp--preset--spacing--40); }
.sb-menu-panel h3 { margin-bottom: 0.15rem; }
.sb-menu-panel h4 {
	font-size: 1rem; letter-spacing: 0.1em; color: var(--sb-tan);
	margin: 1.5rem 0 0.25rem;
}

/* Button row that mixes the Call button and regular buttons */
.sb-cta-actions { gap: 0.75rem !important; margin-top: 1.5rem; }
.sb-cta-actions .wp-block-buttons { gap: 0.75rem; }
.sb-cta-actions .sb-block--info { margin: 0; }

/* Menu section heading row */
.sb-menu-section {
	scroll-margin-top: calc(var(--sb-header-h) + 4.5rem);
}
.sb-menu-section .wp-block-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.sb-menu-section h2 { margin-bottom: 0.25rem; scroll-margin-top: calc(var(--sb-header-h) + 4.5rem); }

/* Jump links (sticky on the menu page) */
.sb-jump {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--sb-header-h));
	z-index: 50;
	background: rgba(20, 18, 16, 0.96);
	border-bottom: 1px solid var(--sb-line);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
@media (max-width: 600px) { .admin-bar .sb-jump { top: var(--sb-header-h); } }
.sb-jump ul {
	list-style: none; margin: 0 auto; padding: 0.6rem 1.25rem !important;
	display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
	max-width: 1200px; white-space: nowrap;
}
.sb-jump ul::-webkit-scrollbar { display: none; }
.sb-jump li a {
	display: inline-block;
	font-family: var(--sb-heading); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem;
	color: var(--sb-cream); text-decoration: none;
	border: 1px solid var(--sb-line); border-radius: 999px; padding: 0.4em 0.95em;
}
.sb-jump li a:hover, .sb-jump li a:focus-visible { border-color: var(--sb-copper); color: var(--sb-copper); }

/* Call-to-action band */
.sb-cta {
	background:
		linear-gradient(135deg, rgba(223, 156, 80, 0.18), rgba(212, 85, 58, 0.10)),
		var(--sb-surface-2);
	border-top: 1px solid rgba(223, 156, 80, 0.4);
	border-bottom: 1px solid rgba(223, 156, 80, 0.4);
}

/* Buttons: outline variant tuned for dark */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--sb-cream);
	border-color: var(--sb-copper);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--sb-copper);
	color: var(--sb-base);
}

/* FAQ (details blocks) */
.wp-block-details summary {
	font-family: var(--sb-heading);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 1.15rem;
	color: var(--sb-cream);
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; position: absolute; right: 0.25rem; top: -0.15rem;
	color: var(--sb-copper); font-size: 1.6rem; line-height: 1; transition: transform 0.2s ease;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin-top: 0.75rem; }

/* Pricing cards (Smoke & Serve) */
.sb-price-card { text-align: center; }
.sb-price-card .sb-price {
	font-family: var(--sb-heading);
	font-size: var(--wp--preset--font-size--display);
	color: var(--sb-copper);
	line-height: 1;
	margin: 0.25rem 0;
}
.sb-price-card .sb-price small { font-size: 0.35em; color: var(--sb-muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* Footer ------------------------------------------------------------------ */

.sb-footer {
	background:
		radial-gradient(ellipse at 50% 0%, rgba(223, 156, 80, 0.07), transparent 60%),
		#0e0d0b;
	border-top: 1px solid var(--sb-line);
	color: var(--sb-muted);
	font-size: 0.98rem;
}
.sb-footer .wp-block-site-logo img { width: 110px; }
.sb-footer .sb-tagline { font-family: var(--sb-accent); font-style: italic; color: var(--sb-copper); font-size: 1.15rem; margin: 0.75rem 0 0.25rem; }
.sb-footer__heading {
	font-size: 1rem !important;
	letter-spacing: 0.12em;
	color: var(--sb-tan) !important;
	margin-bottom: 0.9rem;
}
.sb-footer__links { list-style: none; padding-left: 0 !important; margin: 0; }
.sb-footer__links li { margin: 0 0 0.45rem; }
.sb-footer a { color: var(--sb-text); text-decoration: none; }
.sb-footer a:hover, .sb-footer a:focus-visible { color: var(--sb-copper); text-decoration: underline; }
.sb-footer .wp-block-separator { border-color: var(--sb-line); opacity: 1; margin-top: var(--wp--preset--spacing--50); margin-bottom: 1.25rem; }
.sb-footer__bottom { font-size: 0.88rem; }
.sb-footer__bottom p { margin: 0; }
.sb-footer .sb-contact-list { font-size: 0.98rem; }

/* 404 */
.sb-404 { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }

/* Motion ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
