/*
Theme Name: The New Crumbs
Theme URI: https://example.com/the-new-crumbs
Author: The New Crumbs
Description: A block (Full Site Editing) theme for The New Crumbs sandwich shop in Walton-on-Thames. Signage-style typography, menu-board panels, reusable header and footer template parts applied to every page, post and archive by default.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-new-crumbs
*/

/* ---------------------------------------------------------------------------
   Sticky header
--------------------------------------------------------------------------- */
.crumbs-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 3px solid var(--wp--preset--color--ink);
}

/* Logo mark: teal tile next to the site title */
.crumbs-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	font-weight: 800;
	letter-spacing: -0.02em;
	box-shadow: 3px 3px 0 var(--wp--preset--color--ink);
	flex: none;
}

/* ---------------------------------------------------------------------------
   Signage headline + eyebrow labels
--------------------------------------------------------------------------- */
.crumbs-eyebrow {
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Menu boards — the signature element.
   Navy panels with teal panel titles and dashed price rows, echoing the
   physical board behind the counter.
--------------------------------------------------------------------------- */
.crumbs-board {
	border-radius: 18px;
	box-shadow: 6px 6px 0 rgba(23, 32, 30, 0.9);
}

.crumbs-board .wp-block-table {
	margin: 0;
}

.crumbs-board table {
	border-collapse: collapse;
	width: 100%;
	border: none;
	font-variant-numeric: tabular-nums;
}

.crumbs-board table th,
.crumbs-board table td {
	border: none;
	border-bottom: 1px dashed rgba(250, 247, 241, 0.28);
	padding: 0.5em 0.25em;
	background: transparent;
}

.crumbs-board table tr:last-child td {
	border-bottom: none;
}

.crumbs-board table th {
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--teal-bright);
	border-bottom: 2px solid var(--wp--preset--color--teal);
}

.crumbs-board table td:not(:first-child),
.crumbs-board table th:not(:first-child) {
	text-align: right;
	white-space: nowrap;
	width: 1%;
	padding-left: 1.25em;
}

/* Sand boards (light variant) flip the dash colour */
.crumbs-board.is-style-light table td,
.crumbs-board.is-style-light table th {
	border-bottom-color: rgba(23, 32, 30, 0.25);
}

/* ---------------------------------------------------------------------------
   Rotated offer badge ("Spend £20 …")
--------------------------------------------------------------------------- */
.crumbs-badge {
	transform: rotate(-4deg);
	border-radius: 999px;
	box-shadow: 4px 4px 0 var(--wp--preset--color--ink);
}

/* ---------------------------------------------------------------------------
   Cards (catering tiers, feature strip)
--------------------------------------------------------------------------- */
.crumbs-card {
	border-radius: 18px;
	border: 3px solid var(--wp--preset--color--ink);
	box-shadow: 6px 6px 0 var(--wp--preset--color--ink);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.crumbs-card:hover {
	transform: translate(-2px, -2px);
	box-shadow: 8px 8px 0 var(--wp--preset--color--ink);
}

/* Small pill labels (Bronze / Silver / Gold / New) */
.crumbs-pill {
	display: inline-block;
	border-radius: 999px;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	padding: 0.35em 0.9em;
}

/* ---------------------------------------------------------------------------
   Buttons: chunky signage buttons
--------------------------------------------------------------------------- */
.wp-block-button__link {
	box-shadow: 4px 4px 0 var(--wp--preset--color--ink);
	transition: transform 150ms ease, box-shadow 150ms ease;
}

.wp-block-button__link:hover {
	transform: translate(-1px, -1px);
	box-shadow: 5px 5px 0 var(--wp--preset--color--ink);
}

.wp-block-button__link:active {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--wp--preset--color--ink);
}

/* ---------------------------------------------------------------------------
   Accessibility & motion
--------------------------------------------------------------------------- */
:focus-visible {
	outline: 3px solid var(--wp--preset--color--teal);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* ---------------------------------------------------------------------------
   Small screens
--------------------------------------------------------------------------- */
@media (max-width: 781px) {
	.crumbs-board {
		box-shadow: 4px 4px 0 rgba(23, 32, 30, 0.9);
	}
	.crumbs-board table {
		font-size: 0.92rem;
	}
}
