/* Chip Chop theme stylesheet
 * Block-theme base styles. theme.json handles most tokens.
 * This file is for things theme.json can't express: pseudo-elements, complex selectors,
 * dotted-leader menu rows, etc.
 */

:root {
	--cc-leader-dot: '·';
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	text-decoration: none;
	transition: color 160ms ease;
}

a:hover,
a:focus {
	text-decoration: underline;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border: 2px solid currentColor;
}

.wp-block-button.is-style-amber .wp-block-button__link {
	background-color: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--text-dark);
}

.wp-block-button.is-style-amber .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--amber-light);
}

/* Header logo — height-sized so width auto-scales to natural aspect ratio.
 * Avoids the inline-width + max-height conflict that squishes the image.
 */
.cc-header-logo {
	margin: 0;
	flex: 0 0 auto;
}

.cc-header-logo a {
	display: inline-block;
	line-height: 0;
}

.cc-header-logo img {
	display: block;
	height: 80px;
	width: auto;
	max-width: 100%;
}

@media (max-width: 640px) {
	.cc-header-logo img { height: 60px; }
}

/* Navigation links — burgundy text, no underline default */
header .wp-block-navigation-item__content {
	color: var(--wp--preset--color--burgundy);
}

header .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--amber);
	text-decoration: none;
}

/* Script accent helper — pair with the "Great Vibes" font family.
 * Used for the "Our Story", "Freshly Cut. Always Delicious." style flourishes.
 */
.cc-script {
	font-family: var(--wp--preset--font-family--script);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	color: var(--wp--preset--color--amber);
	font-weight: 400;
	line-height: 1;
}

/* Menu — front-end rendering for [chip_chop_menu] shortcode.
 * Two-column grid, dotted-leader item rows, tabs for Regular vs GF.
 */
.cc-menu {
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--text-dark);
}

.cc-menu-intro {
	text-align: center;
	font-style: italic;
	margin: 0 0 1.5rem;
	color: var(--wp--preset--color--text-dark);
}

.cc-menu-empty {
	text-align: center;
	color: var(--wp--preset--color--text-dark);
	opacity: 0.7;
	padding: 2rem 0;
}

.cc-menu-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

@media (max-width: 768px) {
	.cc-menu-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

.cc-menu-col {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
}

.cc-menu-section-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.cc-menu-section {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

/* Items with dotted leader between title and price */
.cc-menu-item {
	margin: 0.35rem 0;
}

.cc-menu-item__row {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
}

.cc-menu-item__title {
	flex: 0 0 auto;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--text-dark);
	font-size: 1rem;
}

.cc-menu-item__leader {
	flex: 1 1 auto;
	border-bottom: 2px dotted rgba(105, 20, 39, 0.45);
	transform: translateY(-0.3em);
	min-width: 1.5rem;
}

.cc-menu-item__price {
	flex: 0 0 auto;
	font-weight: 700;
	white-space: nowrap;
	color: var(--wp--preset--color--burgundy);
}

.cc-menu-item--no-price .cc-menu-item__leader,
.cc-menu-item--no-price .cc-menu-item__price {
	display: none;
}

.cc-menu-item__description {
	display: block;
	font-size: 0.85rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--wp--preset--color--text-dark);
	opacity: 0.85;
	margin-top: 0.1rem;
	padding-right: 50px;
	line-height: 1.35;
}

/* Featured Favourites cards — your CSS, with :nth-child(1) dropped so all 4 columns get it. */
#wp--skip-link--target > div > div:nth-child(4) > div > div {
	background-color: #fff;
	padding: 12px;
	border-radius: 5px;
	box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.2);
}

/* FAQ — animated <details> blocks (the JS in /assets/js/details.js wraps the
 * post-summary content in .cc-details-body so we can transition max-height).
 */
.wp-block-details {
	border-bottom: 1px solid rgba(105, 20, 39, 0.18);
	padding: 0.75rem 0;
	margin: 0;
}

.wp-block-details > summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding: 0.4rem 0 0.4rem 2rem;
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--wp--preset--color--burgundy);
	line-height: 1.35;
	transition: color 160ms ease;
}

.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::marker                  { content: ""; }

.wp-block-details > summary::before {
	content: "+";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1.4rem;
	height: 1.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--burgundy);
	border-radius: 50%;
	font-weight: 700;
	font-size: 1.1rem;
	line-height: 1;
	transition: transform 240ms ease, background-color 240ms ease;
}

.wp-block-details[open] > summary::before {
	content: "−";
	transform: translateY(-50%) rotate(180deg);
	background: var(--wp--preset--color--burgundy);
	color: var(--wp--preset--color--cream);
}

.wp-block-details > summary:hover { color: var(--wp--preset--color--burgundy-dark); }

/* Animated body wrapper added by details.js */
.cc-details-body {
	overflow: hidden;
	transition: max-height 280ms ease;
	padding-left: 2rem;
}

.cc-details-body > p,
.cc-details-body > ul,
.cc-details-body > ol {
	margin: 0.5rem 0 0.6rem;
	color: var(--wp--preset--color--text-dark);
	font-weight: 400;
}

/* Contact page — Google Maps embed */
.cc-contact-map {
	margin-top: 0.75rem;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid rgba(105, 20, 39, 0.15);
}

.cc-contact-map iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: 0;
}

/* Pre-order form (customer-facing) — Fish Wednesday page */
.cc-preorder-form {
	background: var(--wp--preset--color--cream-light);
	border: 1px solid rgba(105, 20, 39, 0.15);
	border-radius: 8px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 720px;
	margin: 1.5rem auto;
	font-family: var(--wp--preset--font-family--body);
}

.cc-preorder-pool {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.7rem 1rem;
	background: var(--wp--preset--color--burgundy);
	color: var(--wp--preset--color--cream);
	border-radius: 6px;
	gap: 0.75rem;
}

.cc-preorder-pool__label {
	text-transform: uppercase;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
}

.cc-preorder-pool__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.6rem;
	line-height: 1;
}

.cc-preorder-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

@media (max-width: 560px) {
	.cc-preorder-form__row {
		grid-template-columns: 1fr;
	}
}

.cc-preorder-field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-size: 0.95rem;
}

.cc-preorder-field span {
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--wp--preset--color--burgundy);
}

.cc-preorder-field input[type="text"],
.cc-preorder-field input[type="email"],
.cc-preorder-field input[type="tel"],
.cc-preorder-field input[type="number"],
.cc-preorder-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.7rem;
	border: 1px solid rgba(105, 20, 39, 0.25);
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	background: #fff;
}

.cc-preorder-field input:focus,
.cc-preorder-field textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--burgundy);
	box-shadow: 0 0 0 3px rgba(105, 20, 39, 0.15);
}

.cc-preorder-items {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.cc-preorder-items__heading {
	margin: 0.5rem 0 0.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--burgundy);
	font-weight: 700;
}

.cc-preorder-item {
	display: flex;
	gap: 1rem;
	background: #fff;
	border: 1px solid rgba(105, 20, 39, 0.15);
	border-radius: 6px;
	padding: 0.85rem 1rem;
	align-items: center;
}

@media (max-width: 560px) {
	.cc-preorder-item {
		flex-direction: column;
		align-items: stretch;
	}
}

.cc-preorder-item__info {
	flex: 1 1 auto;
	min-width: 0;
}

.cc-preorder-item__name {
	display: block;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--text-dark);
}

.cc-preorder-item__price {
	color: var(--wp--preset--color--burgundy);
	font-weight: 700;
	margin-left: 0.35rem;
}

.cc-preorder-item__desc {
	margin: 0.2rem 0 0;
	font-size: 0.88rem;
	color: var(--wp--preset--color--text-dark);
	opacity: 0.85;
}

.cc-preorder-item__avail {
	display: inline-block;
	margin-top: 0.3rem;
	font-size: 0.78rem;
	color: #50575e;
}

.cc-preorder-item__out {
	display: inline-block;
	margin-top: 0.3rem;
	font-size: 0.82rem;
	color: var(--wp--preset--color--burgundy);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cc-preorder-item--out { opacity: 0.55; }

.cc-preorder-item__qty {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex: 0 0 auto;
}

.cc-preorder-step {
	width: 36px;
	height: 36px;
	border: 1px solid var(--wp--preset--color--burgundy);
	background: #fff;
	color: var(--wp--preset--color--burgundy);
	font-size: 1.2rem;
	line-height: 1;
	font-weight: 700;
	border-radius: 4px;
	cursor: pointer;
}

.cc-preorder-step:hover { background: var(--wp--preset--color--burgundy); color: var(--wp--preset--color--cream); }
.cc-preorder-step:disabled { opacity: 0.4; cursor: not-allowed; }

.cc-preorder-qty {
	width: 56px;
	text-align: center;
	padding: 0.45rem 0.3rem;
	border: 1px solid rgba(105, 20, 39, 0.25);
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
}

.cc-preorder-form__actions {
	text-align: center;
}

.cc-preorder-submit {
	background: var(--wp--preset--color--burgundy);
	color: var(--wp--preset--color--cream);
	border: 0;
	padding: 0.85rem 2.5rem;
	font-family: inherit;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 1rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 160ms ease;
}

.cc-preorder-submit:hover { background: var(--wp--preset--color--burgundy-dark); }

.cc-preorder-empty {
	text-align: center;
	padding: 2rem;
	background: var(--wp--preset--color--cream-light);
	border-radius: 6px;
}

.cc-preorder-success {
	background: rgba(26, 126, 26, 0.08);
	border: 2px solid #1a7e1a;
	border-radius: 6px;
	padding: 1.25rem 1.5rem;
	text-align: center;
	margin: 1.5rem auto;
	max-width: 720px;
}

.cc-preorder-success h3 {
	color: #1a7e1a;
	margin: 0 0 0.35rem;
}

.cc-preorder-success p { margin: 0; }

/* Menu images (decorative shots placed between items) */
.cc-menu-image {
	margin: 0.5rem 0;
}

.cc-menu-image__img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

.cc-menu-image--full {
	grid-column: 1 / -1;
}

/* Section heading inside menu — Bebas Neue burgundy, frybox icon on each side, gold underline */
.cc-menu-section__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.6rem, 3.2vw, 2.25rem);
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--burgundy);
	text-align: center;
	margin: 2rem 0 0.4rem;
	line-height: 1.05;
}

.cc-menu-section__title-text {
	flex: 0 0 auto;
}

.cc-menu-section__icon {
	flex: 0 0 auto;
	width: 36px;
	height: auto;
	display: block;
}

.cc-menu-section__rule {
	display: block;
	width: 100px;
	height: 2px;
	background: var(--wp--preset--color--amber);
	margin: 0 auto 1.25rem;
	border: 0;
}

/* Specials / chalkboard variant — a wood-framed slate look for rotating specials */
.cc-menu-section--chalkboard {
	position: relative;
	background:
		radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.04), transparent 50%),
		radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.03), transparent 60%),
		#2a2e2a;
	color: #f4ecd8;
	padding: 1.75rem 1.5rem 1.5rem;
	border-radius: 10px;
	/* Layered wood-grain frame outside the slate */
	box-shadow:
		0 0 0 8px #6b4423,
		0 0 0 9px #4a2f18,
		0 0 0 13px #8a5a30,
		0 0 0 14px #4a2f18,
		0 8px 24px rgba(0, 0, 0, 0.25);
	margin: 0.5rem 0;
}

/* Faint chalk-dust streaks across the surface */
.cc-menu-section--chalkboard::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
		repeating-linear-gradient(95deg, transparent, transparent 3px, rgba(255, 255, 255, 0.012) 3px, rgba(255, 255, 255, 0.012) 4px);
	pointer-events: none;
}

.cc-menu-section--chalkboard > * { position: relative; }

.cc-menu-section--chalkboard .cc-menu-section__title {
	color: #f4ecd8;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 0 6px rgba(244, 236, 216, 0.15);
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	transform: rotate(-1.5deg);
	margin-top: 0.5rem;
}

.cc-menu-section--chalkboard .cc-menu-section__rule {
	background: rgba(244, 236, 216, 0.45);
	width: 90px;
	height: 1px;
	margin-bottom: 1.25rem;
}

.cc-menu-section--chalkboard .cc-menu-item__title,
.cc-menu-section--chalkboard .cc-menu-item__price {
	color: #f4ecd8;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
	font-weight: 600;
	letter-spacing: 0.06em;
}

.cc-menu-section--chalkboard .cc-menu-item__description {
	color: rgba(244, 236, 216, 0.78);
	font-style: italic;
}

.cc-menu-section--chalkboard .cc-menu-item__leader {
	border-bottom-color: rgba(244, 236, 216, 0.4);
}

/* Menu tabs (Regular / Gluten Free) */
.cc-menu-tabs {
	display: flex;
	justify-content: center;
	gap: 0;
	margin-bottom: 2rem;
	border-bottom: 2px solid var(--wp--preset--color--burgundy);
}

.cc-menu-tabs__btn {
	background: transparent;
	border: 0;
	padding: 0.85rem 1.75rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	color: var(--wp--preset--color--text-dark);
	border-bottom: 4px solid transparent;
	margin-bottom: -2px;
	transition: color 160ms ease, border-color 160ms ease;
}

.cc-menu-tabs__btn[aria-selected="true"] {
	color: var(--wp--preset--color--burgundy);
	border-bottom-color: var(--wp--preset--color--amber);
}

.cc-menu-tabs__btn:hover,
.cc-menu-tabs__btn:focus {
	color: var(--wp--preset--color--burgundy);
}

/* Homepage notice — rendered by [chip_chop_notice] shortcode.
 * Designed to overlay the hero (top-right card style from the mockup) but works standalone too.
 */
.cc-notice {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: rgba(78, 15, 29, 0.92);
	color: var(--wp--preset--color--cream);
	padding: 1.25rem 1.5rem;
	border-radius: 8px;
	border: 2px solid var(--wp--preset--color--amber);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	max-width: 420px;
	font-family: var(--wp--preset--font-family--body);
	backdrop-filter: blur(2px);
}

.cc-notice__image {
	flex: 0 0 auto;
	max-width: 80px;
	height: auto;
	border-radius: 4px;
}

.cc-notice__body {
	flex: 1 1 auto;
}

.cc-notice__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.35rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.15;
	margin: 0 0 0.35rem;
	color: var(--wp--preset--color--cream);
}

.cc-notice__message {
	font-size: 0.95rem;
	line-height: 1.45;
	margin: 0;
	color: var(--wp--preset--color--cream);
}

/* Optional absolute-overlay positioning (legacy, used by .is-overlay only).
 * Hero now uses a flex row so the notice sits naturally to the right of the text.
 */
.cc-notice.is-overlay {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 2;
}

/* Feature icons strip — 4 columns inside the burgundy band */
.cc-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	color: var(--wp--preset--color--cream-light);
}

.cc-feature {
	text-align: center;
	padding: 0 0.5rem;
	border-left: 1px solid rgba(243, 236, 227, 0.18);
}

.cc-feature:first-child {
	border-left: 0;
}

.cc-feature__icon {
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--wp--preset--color--cream-light);
	margin-bottom: 0.5rem;
	height: 50px;
}

.cc-feature__icon svg {
	display: block;
}

.cc-feature__title {
	margin: 0 0 0.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--cream-light);
}

.cc-feature__sub {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.4;
	color: rgba(243, 236, 227, 0.85);
}

@media (max-width: 900px) {
	.cc-features { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
	.cc-feature:nth-child(3) { border-left: 0; }
}

@media (max-width: 540px) {
	.cc-features { grid-template-columns: 1fr; }
	.cc-feature { border-left: 0; border-top: 1px solid rgba(243, 236, 227, 0.18); padding-top: 1rem; }
	.cc-feature:first-child { border-top: 0; padding-top: 0; }
}

/* Hero row layout — text on the left at its natural width, notice on the right */
.cc-hero-row {
	gap: 2rem;
	align-items: flex-start;
}

.cc-hero-text {
	flex: 1 1 480px;
	max-width: 560px;
}

.cc-hero-notice {
	flex: 0 1 420px;
	max-width: 420px;
}

@media (max-width: 768px) {
	.cc-notice {
		max-width: 100%;
	}
	.cc-hero-text {
		flex: 1 1 100%;
		max-width: 100%;
	}
	.cc-hero-notice {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

/* Hours block — rendered by [chip_chop_hours] shortcode */
.cc-hours {
	list-style: none;
	padding: 0;
	margin: 1.5rem auto;
	max-width: 480px;
	font-family: var(--wp--preset--font-family--body);
}

.cc-hours__row {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(105, 20, 39, 0.15);
}

.cc-hours__row:last-child {
	border-bottom: 0;
}

.cc-hours__day {
	flex: 0 0 auto;
	min-width: 6.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--burgundy);
	white-space: nowrap;
}

.cc-hours__sep {
	flex: 1 1 auto;
	border-bottom: 2px dotted rgba(105, 20, 39, 0.35);
	transform: translateY(-0.35em);
	min-width: 1.5rem;
}

.cc-hours__value {
	flex: 0 0 auto;
	font-weight: 500;
	color: var(--wp--preset--color--text-dark);
}

.cc-hours__note {
	text-align: center;
	font-style: italic;
	color: var(--wp--preset--color--burgundy);
	margin-top: 0.75rem;
}

/* Print styles — used by the pre-order pull sheet */
@media print {
	.cc-no-print { display: none !important; }
	body { background: #fff; color: #000; }
}
