/**
 * BCFOOD theme — layout and component styles.
 *
 * Colours, fonts and spacing come from theme.json. Only add rules here that
 * cannot be expressed as theme.json tokens or block settings.
 */

/* Sticky header. */
.bcfood-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar .bcfood-header {
	top: 32px;
}

@media ( max-width: 782px ) {
	.admin-bar .bcfood-header {
		top: 46px;
	}
}

/* The Enquire / Join button stays visible at every breakpoint — it must not
   be tucked inside the burger menu. */
.bcfood-cta .wp-block-button__link {
	white-space: nowrap;
}

@media ( max-width: 600px ) {
	.bcfood-topbar {
		display: none;
	}

	.bcfood-cta .wp-block-button__link {
		padding: 0.6rem 1rem;
		font-size: 0.9rem;
	}
}

/* Block style: card. */
.wp-block-group.is-style-bcfood-card {
	padding: 1.75rem;
	background: var( --wp--preset--color--bcfood-pale );
	border-radius: 8px;
}

/* Block style: navy hero band. */
.wp-block-group.is-style-bcfood-hero {
	padding: var( --wp--preset--spacing--50 ) var( --wp--preset--spacing--30 );
	background: var( --wp--preset--color--bcfood-navy );
	color: #fff;
}

.wp-block-group.is-style-bcfood-hero :where( h1, h2, h3, p ) {
	color: #fff;
}

/* Block style: gold button. */
.wp-block-button.is-style-bcfood-gold .wp-block-button__link {
	background-color: var( --wp--preset--color--bcfood-gold );
	color: var( --wp--preset--color--bcfood-navy );
}

.wp-block-button.is-style-bcfood-gold .wp-block-button__link:hover {
	background-color: #bd8a37;
}

/* Tick list used in the Provident Fund panel. */
.bcfood-ticks {
	list-style: none;
	padding-left: 0;
}

.bcfood-ticks li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.5rem;
}

.bcfood-ticks li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.45rem;
	height: 0.85rem;
	border: solid var( --wp--preset--color--bcfood-gold );
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg );
}

.bcfood-rounded img {
	border-radius: 10px;
}

/* Footer link colours. */
.bcfood-footer a {
	color: #fff;
	text-decoration: none;
}

.bcfood-footer a:hover,
.bcfood-footer a:focus {
	color: var( --wp--preset--color--bcfood-gold );
	text-decoration: underline;
}

/* Visible focus for keyboard users — do not remove. */
:where( a, button, input, select, textarea ):focus-visible {
	outline: 3px solid var( --wp--preset--color--bcfood-blue );
	outline-offset: 2px;
}

/* Every interactive target meets the 44px minimum. */
.wp-block-button__link,
.wp-block-navigation-item__content {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}
