/* Layout: container, header, footer. Values measured on the live site.
   Breakpoints as on the live site: desktop >= 1025, tablet 768-1024, phone <= 767. */

.tch-container {
	width: min(1120px, 100% - 40px);
	margin-inline: auto;
}

@media (max-width: 1024px) {
	.tch-container {
		width: min(680px, 90%);
	}
}

@media (max-width: 767px) {
	.tch-container {
		width: 90%;
	}
}

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

.tch-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 95;
}

.admin-bar .tch-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* Room for the fixed header (42 + 50) plus the 20px gap under it. */
.tch-main {
	padding-top: 112px;
}

.tch-topbar {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 42px;
	padding-inline: 4%;
	background: var(--tch-green-900);
}

.tch-topbar__group {
	display: flex;
	align-items: center;
	gap: 20px;
}

.tch-topbar__group--wide {
	flex: 1;
}

.tch-topbar__group--end {
	justify-content: flex-end;
}

.tch-topbar__group--compact {
	display: none;
}

.tch-topbar__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--tch-line-strong);
	font-size: 14px;
	line-height: 21px;
	text-decoration: none;
	white-space: nowrap;
}

.tch-topbar__link:hover {
	color: var(--tch-white);
}

.tch-topbar__link .tch-ico {
	width: 18px;
	height: 18px;
	color: #ADBEA7;
}

.tch-navbar {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 50px;
	background: var(--tch-mist);
}

.tch-navbar__side {
	display: flex;
	flex: 0 0 9.85%;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.tch-navbar__main {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 0;
	padding: 10px;
}

.tch-nav {
	display: flex;
	flex: 1 0 auto;
}

.tch-nav--left {
	justify-content: flex-end;
}

.tch-nav__list {
	display: flex;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tch-nav__list a {
	display: block;
	padding: 5px 0;
	color: var(--tch-green-700);
	font-size: 18px;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
}

.tch-nav__list a:hover,
.tch-nav__list a:focus-visible,
.tch-nav__list .current-menu-item > a,
.tch-nav__list .current_page_parent > a,
.tch-nav__list .current-menu-ancestor > a {
	color: var(--tch-accent);
}

/* Logo tab: 250 x 60, rising 29px into the dark top bar. */
.tch-logo {
	display: block;
	flex: none;
	width: 250px;
	height: 60px;
	margin-top: -48px;
}

.tch-logo img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 20px 20px 0 0;
}

.tch-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--tch-green-700);
	text-decoration: none;
}

.tch-cart-link:hover {
	color: var(--tch-accent);
}

.tch-cart-link .tch-icon {
	width: 24px;
	height: 24px;
}

.tch-cart-count {
	position: absolute;
	top: -6px;
	right: -9px;
	min-width: 17px;
	height: 17px;
	padding-inline: 4px;
	border-radius: 99px;
	background: var(--tch-green-700);
	color: var(--tch-white);
	font-size: 11px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}

.tch-cart-count--empty {
	display: none;
}

.tch-menu-toggle {
	display: none;
	align-items: center;
	gap: 6px;
	padding: 4px;
	border: 0;
	background: transparent;
	color: var(--tch-green-700);
	font: inherit;
	font-size: 14px;
	line-height: 14px;
	cursor: pointer;
}

.tch-menu-toggle .tch-icon {
	width: 22px;
	height: 22px;
}

.tch-menu-toggle__close,
.tch-menu-toggle[aria-expanded="true"] .tch-menu-toggle__open {
	display: none;
}

.tch-menu-toggle[aria-expanded="true"] .tch-menu-toggle__close {
	display: block;
}

.tch-mobile-nav {
	background: var(--tch-mist);
	box-shadow: 0 12px 20px -14px rgba(7, 61, 0, .35);
}

.tch-mobile-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tch-mobile-nav__list a {
	display: block;
	padding: 13px 24px;
	color: var(--tch-olive);
	font-size: 18px;
	line-height: 20px;
	text-decoration: none;
}

.tch-mobile-nav__list a:hover,
.tch-mobile-nav__list .current-menu-item > a {
	background: var(--tch-green-700);
	color: var(--tch-white);
}

/* Tablet: header scrolls with the page, short labels in the top bar, small inline logo. */
@media (max-width: 1024px) {
	.tch-header {
		position: relative;
		top: auto;
	}

	.admin-bar .tch-header {
		top: auto;
	}

	.tch-main {
		padding-top: 20px;
	}

	.tch-topbar {
		min-height: 60px;
	}

	.tch-topbar__group--wide {
		display: none;
	}

	.tch-topbar__group--compact {
		display: flex;
		gap: 32px;
	}

	.tch-topbar__link {
		gap: 10px;
		color: var(--tch-mist);
	}

	.tch-topbar__link .tch-ico {
		width: 22px;
		height: 22px;
		color: var(--tch-mist);
	}

	.tch-navbar {
		min-height: 60px;
	}

	.tch-nav {
		flex: 0 0 auto;
	}

	.tch-nav__list a {
		font-size: 16px;
	}

	.tch-logo {
		width: 125px;
		height: 30px;
		margin-top: -12px;
	}
}

/* Phone: logo left, "Menu" button and cart right, links in a drop-down. */
@media (max-width: 767px) {
	.tch-topbar {
		justify-content: center;
		padding-inline: 5%;
	}

	.tch-topbar__link .tch-ico {
		width: 30px;
		height: 30px;
	}

	.tch-navbar {
		min-height: 69px;
		padding-inline: 6%;
	}

	.tch-navbar__side:not(.tch-navbar__side--end),
	.tch-nav {
		display: none;
	}

	.tch-navbar__main {
		justify-content: flex-start;
		padding: 0;
	}

	.tch-logo {
		width: 119px;
		height: 30px;
		margin: 0;
	}

	.tch-navbar__side--end {
		flex: none;
		gap: 22px;
	}

	.tch-menu-toggle {
		display: inline-flex;
	}

	.tch-cart-link .tch-icon {
		width: 28px;
		height: 28px;
	}
}

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

.tch-footer {
	color: var(--tch-mist);
}

.tch-footer a {
	color: var(--tch-mist);
	text-decoration: none;
}

.tch-footer a:hover {
	color: var(--tch-accent);
}

.tch-footer__main {
	padding-inline: 3%;
	background: var(--tch-green-900);
}

.tch-footer__grid {
	display: flex;
	flex-wrap: wrap;
	max-width: 1140px;
	margin-inline: auto;
	padding-block: 7.5vw 3.75vw;
}

.tch-footer__col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 20%;
}

.tch-footer__col--brand {
	gap: 20px;
	width: 30%;
	padding-right: 5%;
}

.tch-footer__col--newsletter {
	gap: 20px;
	width: 30%;
	padding-left: 8%;
}

.tch-footer__heading {
	margin: 0;
	color: var(--tch-cream);
	font-family: var(--tch-font-heading);
	font-size: var(--tch-fs-h4);
	font-weight: 600;
	line-height: 1;
}

.tch-footer__mark {
	display: block;
	width: 50%;
	aspect-ratio: 1 / 1;
}

.tch-footer__mark img {
	display: block;
	width: 100%;
	height: 100%;
}

.tch-footer__tagline {
	color: var(--tch-cream);
	font-size: var(--tch-fs-body);
	line-height: 1.5;
}

.tch-footer__address {
	font-size: var(--tch-fs-body);
	line-height: 27px;
}

.tch-footer__tagline p,
.tch-footer__address p {
	margin: 0;
}

.tch-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tch-footer__menu a {
	display: block;
	padding: 13px 20px;
	font-size: var(--tch-fs-accent);
	line-height: 20px;
}

.tch-footer__newsletter-text {
	font-size: var(--tch-fs-accent);
	line-height: 1.5;
}

.tch-footer__newsletter-text p,
.tch-footer__newsletter-text > :last-child {
	margin: 0 0 14.4px;
}

.tch-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 65px;
	padding-inline: 8%;
	background: var(--tch-green-950);
	font-size: var(--tch-fs-body);
	line-height: 1.5;
}

.tch-footer__copy {
	margin: 0;
}

/* Tablet: newsletter, menu and activities in one row, brand block underneath. */
@media (max-width: 1024px) {
	.tch-footer__col,
	.tch-footer__col--newsletter {
		width: 32%;
		padding: 2%;
	}

	.tch-footer__col--newsletter {
		order: 1;
	}

	.tch-footer__col--menu {
		order: 2;
	}

	.tch-footer__col--activities {
		order: 3;
	}

	/* Brand block: centred, without its title, as on the live site. */
	.tch-footer__col--brand {
		order: 4;
		align-items: center;
		gap: 0;
		width: 100%;
		padding: 0 5% 0 0;
		text-align: center;
	}

	.tch-footer__col--brand .tch-footer__heading {
		display: none;
	}

	.tch-footer__mark {
		width: 22%;
		margin-bottom: 20px;
	}

	.tch-footer__col--brand .tch-social {
		justify-content: center;
		padding-block: 32px;
	}

	.tch-footer__address {
		line-height: 1.5;
	}
}

/* Phone: everything stacked, newsletter first, brand block last. */
@media (max-width: 767px) {
	.tch-footer__main {
		padding-inline: 7.7%;
	}

	.tch-footer__col,
	.tch-footer__col--newsletter {
		width: 100%;
		margin-top: 40px;
	}

	.tch-footer__newsletter-text > :last-child {
		margin-bottom: 16px;
	}

	.tch-footer .tch-newsletter {
		margin-bottom: 32px;
	}

	.tch-footer__col--brand {
		margin-block: 32px;
		padding: 0;
	}

	.tch-footer__mark {
		width: 48%;
	}

	.tch-footer__bottom {
		flex-direction: column;
		justify-content: center;
		gap: 15px;
		padding: 12vw 2vw;
		text-align: center;
	}
}
