/* ==========================================================================
   SissyCrochets — Header & Footer
   Version: 0.3.0
   Designed to style Blocksy's native Header and Footer builders.
   ========================================================================== */

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

#header,
.ct-header {
	position: relative;
	z-index: 50;
}

.ct-header [data-row],
#header [data-row] {
	border-color: var(--sc-color-border);
}

.ct-header [data-row*="middle"],
#header [data-row*="middle"] {
	background: rgba(255, 249, 244, 0.96);
	border-bottom: 1px solid var(--sc-color-border);
	box-shadow: 0 8px 28px rgba(33, 28, 32, 0.035);
}

.ct-header [data-row*="top"],
#header [data-row*="top"] {
	background: var(--sc-color-sand);
	color: var(--sc-color-ink);
	font-size: var(--sc-text-xs);
}

/* Logo ------------------------------------------------------------------ */

.site-logo-container,
.site-branding {
	transition: opacity var(--sc-transition-fast);
}

.site-logo-container:hover,
.site-branding:hover {
	opacity: 0.86;
}

.site-logo-container img,
.site-branding img {
	max-height: 76px;
	width: auto;
	object-fit: contain;
}

/* Primary navigation ----------------------------------------------------- */

#header .menu,
.ct-header .menu {
	font-family: var(--sc-font-body);
}

#header .menu > li > a,
.ct-header .menu > li > a {
	position: relative;
	color: var(--sc-color-ink);
	font-size: var(--sc-text-sm);
	font-weight: 650;
	letter-spacing: 0.01em;
	transition: color var(--sc-transition-fast);
}

#header .menu > li > a::after,
.ct-header .menu > li > a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0.45rem;
	width: 0;
	height: 1.5px;
	background: var(--sc-color-berry);
	transform: translateX(-50%);
	transition: width var(--sc-transition-base);
}

#header .menu > li:hover > a,
#header .menu > li.current-menu-item > a,
#header .menu > li.current-menu-ancestor > a,
.ct-header .menu > li:hover > a,
.ct-header .menu > li.current-menu-item > a,
.ct-header .menu > li.current-menu-ancestor > a {
	color: var(--sc-color-berry);
}

#header .menu > li:hover > a::after,
#header .menu > li.current-menu-item > a::after,
#header .menu > li.current-menu-ancestor > a::after,
.ct-header .menu > li:hover > a::after,
.ct-header .menu > li.current-menu-item > a::after,
.ct-header .menu > li.current-menu-ancestor > a::after {
	width: calc(100% - 1.5rem);
}

/* Dropdown navigation ---------------------------------------------------- */

#header .sub-menu,
.ct-header .sub-menu {
	border: 1px solid var(--sc-color-border);
	border-radius: var(--sc-radius-md);
	background: var(--sc-color-white);
	padding: 0.45rem;
	box-shadow: var(--sc-shadow-soft);
}

#header .sub-menu a,
.ct-header .sub-menu a {
	border-radius: calc(var(--sc-radius-md) - 0.25rem);
	color: var(--sc-color-ink);
	font-size: var(--sc-text-sm);
	transition:
		background-color var(--sc-transition-fast),
		color var(--sc-transition-fast);
}

#header .sub-menu a:hover,
#header .sub-menu .current-menu-item > a,
.ct-header .sub-menu a:hover,
.ct-header .sub-menu .current-menu-item > a {
	background: var(--sc-color-ivory);
	color: var(--sc-color-berry);
}

/* Header utility icons --------------------------------------------------- */

.ct-header-cart,
.ct-header-account,
.ct-header-search,
.ct-offcanvas-trigger {
	transition:
		transform var(--sc-transition-fast),
		color var(--sc-transition-fast);
}

.ct-header-cart:hover,
.ct-header-account:hover,
.ct-header-search:hover,
.ct-offcanvas-trigger:hover {
	color: var(--sc-color-berry);
	transform: translateY(-1px);
}

/* Cart count ------------------------------------------------------------- */

.ct-cart-item {
	background: var(--sc-color-berry);
	color: var(--sc-color-white);
	font-family: var(--sc-font-body);
	font-weight: 700;
}

/* Mobile off-canvas ------------------------------------------------------ */

#offcanvas,
.ct-panel {
	background: var(--sc-color-ivory);
}

#offcanvas .ct-panel-content,
.ct-panel .ct-panel-content {
	color: var(--sc-color-ink);
}

#offcanvas .mobile-menu a,
.ct-panel .mobile-menu a {
	font-family: var(--sc-font-display);
	font-size: clamp(1.45rem, 5vw, 2rem);
	font-weight: 600;
	line-height: 1.25;
	color: var(--sc-color-ink);
}

#offcanvas .mobile-menu .sub-menu a,
.ct-panel .mobile-menu .sub-menu a {
	font-family: var(--sc-font-body);
	font-size: var(--sc-text-base);
	font-weight: 600;
}

/* Optional announcement bar -------------------------------------------- */

.sc-announcement {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 34px;
	padding: 0.4rem 1rem;
	background: var(--sc-color-sand);
	color: var(--sc-color-ink);
	font-size: var(--sc-text-xs);
	font-weight: 650;
	letter-spacing: 0.02em;
	text-align: center;
}

.sc-announcement strong {
	color: var(--sc-color-berry);
}

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

footer,
.ct-footer {
	position: relative;
	margin-top: var(--sc-space-8);
	background: var(--sc-color-ink);
	color: rgba(255, 255, 255, 0.82);
}

.ct-footer [data-row],
footer [data-row] {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.11);
}

.ct-footer [data-row*="middle"],
footer [data-row*="middle"] {
	padding-block: var(--sc-space-6);
}

.ct-footer [data-row*="bottom"],
footer [data-row*="bottom"] {
	border-top: 1px solid rgba(255, 255, 255, 0.11);
}

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

.ct-footer h1,
.ct-footer h2,
.ct-footer h3,
.ct-footer h4,
.ct-footer h5,
.ct-footer h6,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
	color: var(--sc-color-white);
}

.ct-footer p,
.ct-footer li,
footer p,
footer li {
	color: rgba(255, 255, 255, 0.75);
}

.ct-footer a,
footer a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.ct-footer a:hover,
.ct-footer a:focus-visible,
footer a:hover,
footer a:focus-visible {
	color: var(--sc-color-rose);
}

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

.ct-footer .menu {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.ct-footer .menu a {
	display: inline-flex;
	width: fit-content;
	font-size: var(--sc-text-sm);
}

/* Footer brand block helpers -------------------------------------------- */

.sc-footer-brand {
	max-width: 420px;
}

.sc-footer-brand__title {
	margin: 0 0 var(--sc-space-3);
	color: var(--sc-color-white);
	font-family: var(--sc-font-display);
	font-size: var(--sc-text-2xl);
	font-weight: 600;
	line-height: 1;
}

.sc-footer-brand__tagline {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--sc-text-sm);
	line-height: 1.7;
}

.sc-footer-kicker {
	display: inline-block;
	margin-bottom: var(--sc-space-2);
	color: var(--sc-color-rose);
	font-size: var(--sc-text-xs);
	font-weight: 750;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Copyright -------------------------------------------------------------- */

.ct-footer-copyright,
.ct-footer .ct-copyright {
	color: rgba(255, 255, 255, 0.55);
	font-size: var(--sc-text-xs);
}

/* Social icons ----------------------------------------------------------- */

.ct-footer .ct-social-box a,
footer .ct-social-box a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	transition:
		background-color var(--sc-transition-fast),
		border-color var(--sc-transition-fast),
		transform var(--sc-transition-fast);
}

.ct-footer .ct-social-box a:hover,
footer .ct-social-box a:hover {
	background: var(--sc-color-berry);
	border-color: var(--sc-color-berry);
	color: var(--sc-color-white);
	transform: translateY(-2px);
}

/* Newsletter / footer form ---------------------------------------------- */

.ct-footer input[type="email"],
footer input[type="email"] {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	color: var(--sc-color-white);
}

.ct-footer input[type="email"]::placeholder,
footer input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

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

@media (max-width: 1024px) {
	.site-logo-container img,
	.site-branding img {
		max-height: 64px;
	}

	#header .menu > li > a::after,
	.ct-header .menu > li > a::after {
		display: none;
	}
}

@media (max-width: 767px) {
	.ct-header [data-row*="middle"],
	#header [data-row*="middle"] {
		box-shadow: 0 6px 22px rgba(33, 28, 32, 0.04);
	}

	.site-logo-container img,
	.site-branding img {
		max-height: 58px;
	}

	footer,
	.ct-footer {
		margin-top: var(--sc-space-7);
	}

	.ct-footer [data-row*="middle"],
	footer [data-row*="middle"] {
		padding-block: var(--sc-space-5);
	}
}


/* ==========================================================================
   v0.3.1 — Custom SissyCrochets footer
   ========================================================================== */

/* Native Blocksy footer remains available in the builder, but is hidden
   while our custom branded footer is active. */
.sissycrochets-custom-footer .ct-footer,
.sissycrochets-custom-footer #footer.ct-footer {
	display: none !important;
}

.sc-site-footer {
	position: relative;
	margin-top: var(--sc-space-8);
	background:
		radial-gradient(circle at 12% 0%, rgba(201, 134, 152, 0.16), transparent 27rem),
		var(--sc-color-ink);
	color: rgba(255, 255, 255, 0.78);
	overflow: hidden;
}

.sc-site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(201, 134, 152, 0.7),
		transparent
	);
}

.sc-site-footer__inner {
	padding-block: clamp(3.5rem, 7vw, 6rem) 1.5rem;
}

.sc-site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(3, minmax(150px, 1fr));
	gap: clamp(2rem, 4vw, 4.5rem);
	align-items: start;
}

.sc-site-footer__brand {
	max-width: 440px;
}

.sc-site-footer__mark {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.055);
	color: var(--sc-color-rose);
	font-family: var(--sc-font-display);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.05em;
}

.sc-site-footer .sc-footer-kicker {
	margin: 0 0 0.55rem;
	color: var(--sc-color-rose);
}

.sc-site-footer__heading {
	max-width: 390px;
	margin: 0 0 1rem;
	color: var(--sc-color-white);
	font-size: clamp(2rem, 2.6vw, 3.15rem);
	line-height: 0.98;
}

.sc-site-footer__title {
	margin: 0 0 1.1rem;
	color: var(--sc-color-white);
	font-family: var(--sc-font-body);
	font-size: var(--sc-text-sm);
	font-weight: 750;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.sc-site-footer__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.64);
	font-size: var(--sc-text-sm);
	line-height: 1.75;
}

.sc-site-footer__text--small {
	max-width: 270px;
}

.sc-site-footer__links {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-site-footer__links li {
	margin: 0;
}

.sc-site-footer__links a,
.sc-site-footer__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	width: fit-content;
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--sc-text-sm);
	text-decoration: none;
	transition:
		color var(--sc-transition-fast),
		transform var(--sc-transition-fast);
}

.sc-site-footer__links a:hover,
.sc-site-footer__links a:focus-visible,
.sc-site-footer__cta:hover,
.sc-site-footer__cta:focus-visible {
	color: var(--sc-color-rose);
	transform: translateX(2px);
}

.sc-site-footer__cta {
	margin-top: 1.15rem;
	color: var(--sc-color-white);
	font-weight: 700;
}

.sc-site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.sc-site-footer__bottom p {
	margin: 0;
	color: rgba(255, 255, 255, 0.45);
	font-size: var(--sc-text-xs);
}

/* Current nav item gets the brand accent. */
#header .menu > li.current-menu-item > a,
#header .menu > li.current_page_item > a,
.ct-header .menu > li.current-menu-item > a,
.ct-header .menu > li.current_page_item > a {
	color: var(--sc-color-berry);
}

@media (max-width: 1024px) {
	.sc-site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sc-site-footer__brand {
		max-width: 520px;
	}
}

@media (max-width: 620px) {
	.sc-site-footer {
		margin-top: var(--sc-space-7);
	}

	.sc-site-footer__grid {
		grid-template-columns: 1fr;
		gap: 2.2rem;
	}

	.sc-site-footer__brand {
		max-width: none;
	}

	.sc-site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		margin-top: 3rem;
	}

	.sc-site-footer__mark {
		width: 46px;
		height: 46px;
	}
}
