/* Footer v5 — single row, logo left, titles on one line */
#qodef-page-footer {
	--tf-bg: #efc9c4;
	--tf-bg-bottom: #e5b5af;
	--tf-text: #2b2118;
	--tf-muted: #6b4540;
	--tf-accent: #a85f45;
	--tf-line: rgba(120, 55, 50, 0.18);
	--tf-title-size: 0.78rem;
	--tf-title-pad: 0.5rem;
	--tf-title-mb: 1rem;
	background: var(--tf-bg) !important;
	color: var(--tf-text);
	border-top: 1px solid var(--tf-line);
}

#qodef-page-footer-top-area,
#qodef-page-footer-top-area-inner,
#qodef-page-footer-bottom-area,
#qodef-page-footer-bottom-area-inner {
	background: transparent !important;
}

#qodef-page-footer-top-area {
	padding: 2.5rem 0 1.6rem !important;
}

#qodef-page-footer-top-area-inner.qodef-content-grid {
	width: min(100% - 3rem, 1280px) !important;
	max-width: none !important;
	margin-inline: auto !important;
	padding-inline: 0 !important;
}

/* Neutralize Qode float grid wrapper */
#qodef-page-footer-top-area .qodef-grid {
	display: block !important;
	width: 100% !important;
}

/*
 * Force ONE horizontal row.
 * Theme uses float + width:50% under 1024 — override hard.
 */
#qodef-page-footer-top-area .qodef-grid-inner,
#qodef-page-footer-top-area .qodef-grid-inner.clear {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	justify-content: space-between !important;
	gap: 0 2.75rem !important;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

#qodef-page-footer-top-area .qodef-grid-inner::before,
#qodef-page-footer-top-area .qodef-grid-inner::after {
	display: none !important;
	content: none !important;
}

/* Beat theme: .qodef-col-num--1024--2 … width:50% + clear:both */
#qodef-page-footer-top-area .qodef-grid.qodef-layout--columns > .qodef-grid-inner > .qodef-grid-item,
#qodef-page-footer-top-area .qodef-grid.qodef-responsive--custom > .qodef-grid-inner > .qodef-grid-item,
#qodef-page-footer-top-area .qodef-grid.qodef-responsive--custom.qodef-col-num--1024--2.qodef-layout--columns > .qodef-grid-inner > .qodef-grid-item,
#qodef-page-footer-top-area .qodef-grid.qodef-responsive--custom.qodef-col-num--1024--2.qodef-layout--columns > .qodef-grid-inner > .qodef-grid-item:nth-child(2n+1),
#qodef-page-footer-top-area .qodef-grid.qodef-responsive--custom.qodef-col-num--768--2.qodef-layout--columns > .qodef-grid-inner > .qodef-grid-item,
#qodef-page-footer-top-area .qodef-grid.qodef-responsive--custom.qodef-col-num--4.qodef-layout--columns > .qodef-grid-inner > .qodef-grid-item,
#qodef-page-footer-top-area .qodef-grid-inner > .qodef-grid-item {
	float: none !important;
	clear: none !important;
	position: relative !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	order: 0 !important;
}

/* Logo / bakery — leftmost, fixed-ish width */
#qodef-page-footer-top-area .qodef-grid-inner > .qodef-grid-item:nth-child(1) {
	flex: 0 0 200px !important;
	order: 1 !important;
}

#qodef-page-footer-top-area .qodef-grid-inner > .qodef-grid-item:nth-child(2) {
	flex: 1 1 0 !important;
	order: 2 !important;
}

#qodef-page-footer-top-area .qodef-grid-inner > .qodef-grid-item:nth-child(3) {
	flex: 1 1 0 !important;
	order: 3 !important;
}

#qodef-page-footer-top-area .qodef-grid-inner > .qodef-grid-item:nth-child(4) {
	flex: 1 1 0 !important;
	order: 4 !important;
	display: flex !important;
}

#qodef-page-footer .widget {
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
}

/* Kill separators so they cannot push layout */
#qodef-page-footer .widget_swissdelight_core_separator,
#qodef-page-footer .widget_swissdelight_core_separator .qodef-separator,
#qodef-page-footer .widget_swissdelight_core_separator .qodef-m-line {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
}

/* Shared title + underline — same box so underlines share one baseline */
#qodef-page-footer #block-20::before,
#qodef-page-footer .qodef-widget-title,
#qodef-page-footer .taitussi-footer-contact__title {
	display: block !important;
	box-sizing: border-box !important;
	width: 100% !important;
	margin: 0 0 var(--tf-title-mb) !important;
	padding: 0 0 var(--tf-title-pad) !important;
	border: 0 !important;
	border-bottom: 1px solid var(--tf-line) !important;
	font-family: inherit !important;
	font-size: var(--tf-title-size) !important;
	font-weight: 800 !important;
	letter-spacing: 0.1em !important;
	line-height: 1.2 !important;
	text-transform: uppercase !important;
	color: var(--tf-accent) !important;
	height: calc(1.2em + var(--tf-title-pad)) !important;
	min-height: calc(1.2em + var(--tf-title-pad)) !important;
}

/* Brand column */
#qodef-page-footer #block-20 {
	width: 100%;
}

#qodef-page-footer #block-20::before {
	content: "The bakery";
}

#qodef-page-footer #block-20 .wp-block-image,
#qodef-page-footer #block-20 figure {
	margin: 0 0 0.65rem !important;
	text-align: left !important;
}

#qodef-page-footer #block-20 img {
	width: 112px !important;
	height: auto !important;
	display: block !important;
	margin: 0 !important;
}

#qodef-page-footer #block-20::after {
	content: "Low-sugar bakery\A Pre-order · Nationwide delivery\A Soft bakes made for sharing";
	white-space: pre-line;
	display: block;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--tf-muted);
	max-width: 14rem;
}

/* Menus + contact — no cards */
#qodef-page-footer .widget_nav_menu,
#qodef-page-footer .taitussi-footer-contact {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	width: 100%;
}

#qodef-page-footer .widget_nav_menu .menu {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: grid !important;
	gap: 0.25rem !important;
}

#qodef-page-footer .widget_nav_menu .menu li {
	margin: 0 !important;
}

#qodef-page-footer .widget_nav_menu .menu a {
	display: block !important;
	padding: 0.32rem 0 !important;
	font-size: 1.02rem !important;
	font-weight: 650 !important;
	line-height: 1.35 !important;
	color: var(--tf-text) !important;
	text-decoration: none !important;
}

#qodef-page-footer .widget_nav_menu .menu a:hover,
#qodef-page-footer .widget_nav_menu .menu a:focus {
	color: var(--tf-accent) !important;
}

#qodef-page-footer .taitussi-footer-contact__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.8rem;
}

#qodef-page-footer .taitussi-footer-contact__label {
	display: block;
	margin-bottom: 0.12rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tf-muted);
}

#qodef-page-footer .taitussi-footer-contact a,
#qodef-page-footer .taitussi-footer-contact span {
	font-size: 0.98rem;
	font-weight: 650;
	line-height: 1.35;
	color: var(--tf-text);
	text-decoration: none;
}

#qodef-page-footer .taitussi-footer-contact a:hover,
#qodef-page-footer .taitussi-footer-contact a:focus {
	color: var(--tf-accent);
}

#qodef-page-footer .taitussi-footer-contact__note {
	margin: 0.9rem 0 0;
	font-size: 0.86rem;
	line-height: 1.45;
	color: var(--tf-muted);
	max-width: 16rem;
}

/* Bottom bar */
#qodef-page-footer-bottom-area {
	padding: 1rem 0 1.25rem !important;
	border-top: 1px solid var(--tf-line);
	background: var(--tf-bg-bottom) !important;
}

#qodef-page-footer-bottom-area-inner {
	width: min(100% - 3rem, 1280px) !important;
	max-width: none !important;
	margin-inline: auto !important;
}

#qodef-page-footer-bottom-area .textwidget {
	text-align: center;
	color: var(--tf-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

#qodef-page-footer-bottom-area .textwidget img {
	display: block;
	margin: 0 auto 0.65rem;
	max-width: min(100%, 340px);
	height: auto;
}

/* Tablet: still prefer one row if space; wrap only when needed */
@media (max-width: 900px) {
	#qodef-page-footer-top-area .qodef-grid-inner,
	#qodef-page-footer-top-area .qodef-grid-inner.clear {
		flex-wrap: wrap !important;
		gap: 1.75rem 2rem !important;
	}

	#qodef-page-footer-top-area .qodef-grid-inner > .qodef-grid-item:nth-child(1) {
		flex: 1 1 100% !important;
	}

	#qodef-page-footer-top-area .qodef-grid-inner > .qodef-grid-item:nth-child(2),
	#qodef-page-footer-top-area .qodef-grid-inner > .qodef-grid-item:nth-child(3),
	#qodef-page-footer-top-area .qodef-grid-inner > .qodef-grid-item:nth-child(4) {
		flex: 1 1 calc(33.33% - 1.5rem) !important;
	}
}

@media (max-width: 640px) {
	#qodef-page-footer-top-area {
		padding: 1.75rem 0 1rem !important;
	}

	#qodef-page-footer-top-area-inner.qodef-content-grid,
	#qodef-page-footer-bottom-area-inner {
		width: min(100% - 1.5rem, 1280px) !important;
	}

	#qodef-page-footer-top-area .qodef-grid-inner > .qodef-grid-item:nth-child(1),
	#qodef-page-footer-top-area .qodef-grid-inner > .qodef-grid-item:nth-child(2),
	#qodef-page-footer-top-area .qodef-grid-inner > .qodef-grid-item:nth-child(3),
	#qodef-page-footer-top-area .qodef-grid-inner > .qodef-grid-item:nth-child(4) {
		flex: 1 1 100% !important;
	}
}

