/* Buttercup Childcare - global header and footer chrome.
   Mirrors the live Squarespace header: social icons left, site title over a
   two-line centred nav, cart and Contact button right. */

/* ---------------- Buttons ---------------- */

.bc-btn {
	display: inline-block;
	background: var(--bc-accent);
	color: var(--bc-white);
	font-family: var(--bc-font);
	font-weight: var(--bc-weight-heading);
	font-size: 16px;
	line-height: 1.2;
	padding: 16px 26px;
	border: 0;
	border-radius: 2px;
	text-align: center;
	transition: background-color 0.25s ease;
}

.bc-btn:hover,
.bc-btn:focus-visible {
	background: var(--bc-accent-dark);
	color: var(--bc-white);
}

.bc-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------------- Header ----------------
   All header layout lives here rather than in Oxygen node styles: OCC writes
   per-post CSS, and a template post's CSS is not emitted on ordinary pages. */

.bc-header {
	background: var(--bc-white);
	padding: 16px 28px 12px;
	width: 100%;
}

.bc-header-inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1560px;
	margin: 0 auto;
	width: 100%;
}

.bc-social {
	display: flex;
	align-items: center;
	gap: 18px;
	color: var(--bc-black);
	flex: 0 0 auto;
}

.bc-social a {
	color: inherit;
	display: inline-flex;
	line-height: 0;
}

.bc-social a:hover {
	color: var(--bc-accent);
}

.bc-brandnav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
}

.bc-sitetitle {
	font-family: var(--bc-font);
	font-weight: var(--bc-weight-heading);
	font-size: 34px;
	line-height: 1.2;
	color: var(--bc-black);
	white-space: nowrap;
}

.bc-sitetitle:hover {
	color: var(--bc-accent);
}

.bc-nav {
	width: 100%;
}

.bc-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 26px;
}

.bc-menu > li {
	position: relative;
}

.bc-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 16px;
	font-weight: 400;
	color: var(--bc-black);
	padding: 5px 0;
	white-space: nowrap;
}

.bc-menu > li > a:hover,
.bc-menu > li > a:focus-visible {
	color: var(--bc-accent);
}

.bc-caret {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	display: inline-block;
	transition: transform 0.2s ease;
}

/* Submenus */
.bc-menu ul {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, 6px);
	min-width: 232px;
	background: var(--bc-white);
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.14);
	border-radius: 4px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 200;
}

.bc-menu > li.bc-wide ul {
	min-width: 210px;
}

.bc-menu ul li a {
	display: block;
	padding: 9px 20px;
	font-size: 15px;
	color: var(--bc-black);
	white-space: nowrap;
}

.bc-menu ul li a:hover,
.bc-menu ul li a:focus-visible {
	background: var(--bc-sage);
	color: var(--bc-black);
}

.bc-has-sub:hover > ul,
.bc-has-sub:focus-within > ul,
.bc-has-sub.bc-open > ul {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.bc-has-sub:hover > a .bc-caret,
.bc-has-sub.bc-open > a .bc-caret {
	transform: rotate(180deg);
}

.bc-header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 0 0 auto;
}

.bc-cart {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--bc-black);
	font-size: 15px;
}

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

.bc-btn-header {
	padding: 18px 34px;
	font-size: 15px;
}

/* Burger, hidden on desktop */
.bc-burger {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
	width: 42px;
}

.bc-burger span {
	display: block;
	height: 2px;
	width: 24px;
	background: var(--bc-black);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.bc-footer {
	background: var(--bc-accent);
	color: var(--bc-white);
	padding: 58px 28px 34px;
}

.bc-footer a {
	color: var(--bc-white);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bc-footer a:hover {
	color: var(--bc-white);
	opacity: 0.78;
}

.bc-footer-cols {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px;
	text-align: center;
}

.bc-footer h2 {
	font-size: 22px;
	font-weight: var(--bc-weight-heading);
	color: var(--bc-white);
	margin: 0 0 14px;
}

.bc-footer p {
	font-size: 15px;
	line-height: 1.8;
	margin: 0 0 6px;
	color: var(--bc-white);
}

.bc-footer-social {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 18px;
	color: var(--bc-white);
}

.bc-footer-social a {
	color: inherit;
	display: inline-flex;
	line-height: 0;
	text-decoration: none;
}

.bc-footer-bottom {
	max-width: 1100px;
	margin: 40px auto 0;
	text-align: center;
	font-size: 14px;
}

.bc-footer-bottom p {
	font-size: 14px;
	margin: 4px 0;
}

/* Newsletter */
.bc-signup {
	max-width: 520px;
	margin: 26px auto 0;
	text-align: center;
}

.bc-signup-row {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 12px;
	flex-wrap: wrap;
}

.bc-signup input[type="email"] {
	flex: 1 1 260px;
	min-width: 0;
	padding: 13px 14px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	background: transparent;
	color: var(--bc-white);
	font-family: var(--bc-font);
	font-size: 15px;
	border-radius: 2px;
}

.bc-signup input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.8);
}

.bc-signup button {
	background: var(--bc-white);
	color: var(--bc-accent);
	border: 0;
	padding: 13px 30px;
	font-family: var(--bc-font);
	font-weight: var(--bc-weight-heading);
	font-size: 15px;
	border-radius: 2px;
	cursor: pointer;
}

.bc-signup button:hover {
	background: rgba(255, 255, 255, 0.88);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1180px) {
	.bc-sitetitle { font-size: 28px; }
	.bc-menu { gap: 4px 18px; }
	.bc-menu > li > a { font-size: 15px; }
	.bc-btn-header { padding: 14px 22px; }
}

@media (max-width: 900px) {
	.bc-burger {
		display: flex;
		margin: 0 auto;
	}

	.bc-menu {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 0 4px;
	}

	.bc-nav.bc-open .bc-menu {
		display: flex;
	}

	.bc-menu > li > a {
		justify-content: space-between;
		padding: 12px 4px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
		width: 100%;
	}

	/* Submenus become inline accordions on mobile */
	.bc-menu ul {
		position: static;
		transform: none;
		opacity: 1;
		visibility: visible;
		box-shadow: none;
		display: none;
		min-width: 0;
		padding: 0 0 6px 14px;
		background: transparent;
	}

	.bc-has-sub.bc-open > ul {
		display: block;
		transform: none;
	}

	.bc-has-sub:hover > ul {
		display: none;
	}

	.bc-has-sub.bc-open > ul {
		display: block;
	}

	.bc-footer-cols {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* Below this width the site title, social icons and the Contact button cannot
   share one row without colliding, so the brand block drops to its own line. */
@media (max-width: 760px) {
	.bc-header-inner {
		flex-wrap: wrap;
		gap: 10px 16px;
	}

	.bc-social { order: 1; }
	.bc-header-actions { order: 2; }

	.bc-brandnav {
		order: 3;
		flex: 1 0 100%;
	}
}

@media (max-width: 620px) {
	.bc-sitetitle { font-size: 23px; }
	.bc-header-actions { gap: 10px; }
	.bc-btn-header { padding: 12px 16px; font-size: 14px; }
	.bc-social { gap: 12px; }
	.bc-header { padding: 12px 18px 10px; }
	.bc-footer { padding: 44px 20px 28px; }
}
