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

.sb-header {
	--sb-header-fg: var(--sb-text);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--sb-header-h);
	color: var(--sb-header-fg);
	transition: background-color 0.5s var(--sb-ease), box-shadow 0.5s var(--sb-ease), height 0.4s var(--sb-ease), color 0.4s var(--sb-ease), transform 0.5s var(--sb-ease);
}

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

@media (max-width: 600px) {
	.admin-bar .sb-header.is-scrolled {
		top: 0;
	}
}

.sb-header-static .sb-header {
	position: absolute;
}

/* Solid header when the transparent option is off. */
body:not(.sb-header-overlay) .sb-header {
	background: rgba(255, 249, 245, 0.96);
	box-shadow: 0 1px 0 var(--sb-line);
}

.sb-header.is-scrolled {
	--sb-header-fg: var(--sb-text);
	height: 74px;
	background: rgba(255, 249, 245, 0.88);
	box-shadow: 0 1px 0 rgba(61, 48, 52, 0.07), 0 14px 34px -26px rgba(61, 48, 52, 0.45);
	-webkit-backdrop-filter: saturate(1.4) blur(16px);
	backdrop-filter: saturate(1.4) blur(16px);
}

@media (max-width: 1023px) {
	.sb-header.is-scrolled {
		height: 66px;
	}
}

/* Light text over the homepage slider. */
.sb-header-light .sb-header:not(.is-scrolled) {
	--sb-header-fg: #fff;
}

.sb-header-light .sb-header:not(.is-scrolled) .sb-logo__word .sb-script {
	color: #F7D3DA;
}

.sb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 100%;
}

/* Logo */

.sb-logo {
	position: relative;
	z-index: 2;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	flex: none;
	color: inherit;
	line-height: 1;
	text-decoration: none;
}

.sb-logo:hover {
	color: inherit;
}

.sb-logo__word {
	color: currentColor;
	font-family: var(--sb-font-serif);
	font-size: 1.95rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1;
	white-space: nowrap;
}

.sb-logo__word .sb-script {
	margin-left: -0.02em;
	padding: 0;
	font-size: 1.32em;
	line-height: 0.6;
}

.sb-logo__tagline {
	margin-top: 5px;
	padding-left: 2px;
	color: currentColor;
	font-family: var(--sb-font-sans);
	font-size: 0.56rem;
	font-weight: 500;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	opacity: 0.78;
	white-space: nowrap;
}

.sb-logo__images {
	position: relative;
	display: block;
	width: var(--sb-logo-w, 160px);
	max-width: 42vw;
}

.sb-logo__img {
	width: 100%;
	height: auto;
	transition: opacity 0.4s var(--sb-ease);
}

.sb-logo__img--light {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.sb-header-light .sb-header:not(.is-scrolled) .sb-logo__img--light {
	opacity: 1;
}

.sb-header-light .sb-header:not(.is-scrolled) .sb-logo__images:has(.sb-logo__img--light) .sb-logo__img--dark {
	opacity: 0;
}

.sb-header.is-scrolled .sb-logo__word {
	font-size: 1.75rem;
}

/* Navigation */

.sb-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.sb-menu {
	list-style: none;
}

.sb-nav .sb-menu {
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.6vw, 44px);
}

.sb-nav .menu-item {
	position: relative;
}

.sb-nav .sb-menu a {
	position: relative;
	display: inline-block;
	padding: 10px 0;
	color: var(--sb-header-fg);
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.sb-nav .sb-menu a::after {
	content: "";
	position: absolute;
	left: 50%;
	right: 50%;
	bottom: 2px;
	height: 1px;
	background: currentColor;
	opacity: 0.8;
	transition: left 0.45s var(--sb-ease), right 0.45s var(--sb-ease);
}

.sb-nav .sb-menu a:hover::after,
.sb-nav .sb-menu a:focus-visible::after,
.sb-nav .current-menu-item > a::after,
.sb-nav .current-menu-ancestor > a::after,
.sb-nav .current_page_item > a::after {
	left: 0;
	right: 0;
}

.sb-nav .current-menu-item > a,
.sb-nav .current-menu-ancestor > a {
	color: var(--sb-header-fg);
}

.sb-header:not(.sb-header--light) .sb-nav .current-menu-item > a::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 50%;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: var(--sb-champagne);
}

/* Dropdowns (only if an editor adds child items). */
.sb-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	min-width: 220px;
	padding: 14px 0;
	list-style: none;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius-sm);
	background: var(--sb-ivory);
	box-shadow: var(--sb-shadow-soft);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: all 0.35s var(--sb-ease);
}

.sb-nav .menu-item:hover > .sub-menu,
.sb-nav .menu-item:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.sb-nav .sub-menu a {
	display: block;
	padding: 8px 24px;
	color: var(--sb-text);
	letter-spacing: 0.14em;
}

.sb-nav .sub-menu a::after {
	display: none;
}

/* Actions */

.sb-header__actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 16px;
}

.sb-header__cta.sb-btn--primary {
	box-shadow: 0 12px 26px -16px rgba(133, 96, 110, 0.9);
}

.sb-header-light .sb-header:not(.is-scrolled) .sb-header__cta {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.6);
	box-shadow: none;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.sb-header-light .sb-header:not(.is-scrolled) .sb-header__cta:hover {
	background: #fff;
	color: var(--sb-text);
}

/* Social icons (shared) */

.sb-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	list-style: none;
}

.sb-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--sb-line-strong);
	border-radius: 50%;
	color: currentColor;
	transition: all 0.35s var(--sb-ease);
}

.sb-social a:hover,
.sb-social a:focus-visible {
	border-color: transparent;
	background: var(--sb-grad-btn);
	color: #fff;
	transform: translateY(-2px);
}

.sb-social--header a {
	width: 36px;
	height: 36px;
	border-color: currentColor;
	opacity: 0.85;
}

.sb-social--header .sb-icon {
	width: 16px;
	height: 16px;
}

/* Keep the header on one line: WhatsApp always shows, and the other icons
   appear as the screen allows (rank 1 is WhatsApp, then the networks). */
@media (max-width: 1535px) {
	.sb-social--header [data-rank="7"] {
		display: none;
	}
}

@media (max-width: 1439px) {
	.sb-social--header [data-rank="6"] {
		display: none;
	}
}

@media (max-width: 1365px) {
	.sb-social--header [data-rank="4"],
	.sb-social--header [data-rank="5"] {
		display: none;
	}
}

@media (max-width: 1279px) {
	.sb-social--header [data-rank="3"] {
		display: none;
	}
}

/* Burger (right aligned) */

.sb-burger {
	display: none;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-right: -8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sb-header-fg);
}

.sb-burger__lines {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	width: 28px;
}

.sb-burger__lines span {
	display: block;
	width: 100%;
	height: 1.5px;
	border-radius: 2px;
	background: currentColor;
	transition: width 0.4s var(--sb-ease);
}

.sb-burger__lines span:nth-child(2) {
	width: 70%;
}

.sb-burger__lines span:nth-child(3) {
	width: 45%;
}

.sb-burger:hover .sb-burger__lines span {
	width: 100%;
}

@media (max-width: 1199px) {
	.sb-nav .sb-menu {
		gap: 22px;
	}

	.sb-nav .sb-menu a {
		font-size: 0.7rem;
		letter-spacing: 0.18em;
	}

	.sb-social--header {
		display: none;
	}
}

@media (max-width: 1023px) {
	.sb-nav {
		display: none;
	}

	.sb-burger {
		display: grid;
	}

	.sb-logo__word {
		font-size: 1.7rem;
	}
}

@media (max-width: 599px) {
	.sb-header__cta {
		display: none;
	}

	.sb-logo__word {
		font-size: 1.55rem;
	}

	.sb-logo__tagline {
		font-size: 0.5rem;
		letter-spacing: 0.3em;
	}
}

/* Mobile menu -------------------------------------------------------------- */

.sb-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	justify-content: flex-end;
}

.sb-mobile-menu[hidden] {
	display: none !important;
}

/* Keep the close button clear of the WordPress toolbar for logged-in users. */
.admin-bar .sb-mobile-menu {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.sb-mobile-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(47, 36, 39, 0.5);
	opacity: 0;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	transition: opacity 0.45s var(--sb-ease);
}

.sb-mobile-menu__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(100%, 440px);
	height: 100%;
	height: 100dvh;
	padding: 24px clamp(24px, 6vw, 40px) 40px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background:
		radial-gradient(80% 50% at 100% 0%, rgba(217, 143, 155, 0.22), transparent 60%),
		radial-gradient(70% 40% at 0% 100%, rgba(216, 185, 138, 0.22), transparent 60%),
		var(--sb-ivory);
	box-shadow: -30px 0 60px -30px rgba(47, 36, 39, 0.35);
	transform: translateX(100%);
	transition: transform 0.6s var(--sb-ease-out);
}

.sb-mobile-menu.is-open .sb-mobile-menu__backdrop {
	opacity: 1;
}

.sb-mobile-menu.is-open .sb-mobile-menu__panel {
	transform: none;
}

.sb-mobile-menu__close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--sb-line-strong);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
	color: var(--sb-text);
	transition: all 0.35s var(--sb-ease);
}

.sb-mobile-menu__close:hover {
	border-color: transparent;
	background: var(--sb-grad-btn);
	color: #fff;
	transform: rotate(90deg);
}

.sb-mobile-menu__brand {
	display: flex;
	justify-content: center;
	padding: 44px 0 18px;
	color: var(--sb-text);
}

.sb-mobile-menu__brand .sb-logo {
	align-items: center;
}

.sb-mobile-menu__brand .sb-logo__word {
	font-size: 2.1rem;
}

.sb-divider {
	display: flex;
	justify-content: center;
	margin: 14px 0;
	color: var(--sb-champagne);
}

.sb-divider .sb-ornament {
	width: 100%;
	max-width: 260px;
	height: 16px;
}

.sb-mobile-nav .sb-menu {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px 0;
	list-style: none;
}

.sb-mobile-nav .sb-menu a {
	position: relative;
	display: inline-block;
	padding: 9px 12px;
	color: var(--sb-text);
	font-family: var(--sb-font-serif);
	font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.2rem);
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
}

.sb-mobile-nav .sb-menu a:hover,
.sb-mobile-nav .current-menu-item > a,
.sb-mobile-nav .current-menu-ancestor > a {
	color: var(--sb-ink);
	font-style: italic;
}

.sb-mobile-nav .sub-menu {
	list-style: none;
	text-align: center;
}

.sb-mobile-nav .sub-menu a {
	font-size: 1.3rem;
}

.sb-mobile-menu.is-open .sb-mobile-nav .menu-item {
	animation: sb-menu-in 0.7s var(--sb-ease-out) both;
}

.sb-mobile-nav .menu-item:nth-child(1) { animation-delay: 0.12s !important; }
.sb-mobile-nav .menu-item:nth-child(2) { animation-delay: 0.17s !important; }
.sb-mobile-nav .menu-item:nth-child(3) { animation-delay: 0.22s !important; }
.sb-mobile-nav .menu-item:nth-child(4) { animation-delay: 0.27s !important; }
.sb-mobile-nav .menu-item:nth-child(5) { animation-delay: 0.32s !important; }
.sb-mobile-nav .menu-item:nth-child(6) { animation-delay: 0.37s !important; }
.sb-mobile-nav .menu-item:nth-child(7) { animation-delay: 0.42s !important; }

@keyframes sb-menu-in {
	from {
		opacity: 0;
		transform: translateX(24px);
	}
}

.sb-mobile-menu__social {
	display: flex;
	justify-content: center;
	padding: 8px 0;
}

.sb-social--menu {
	justify-content: center;
	gap: 10px;
	color: var(--sb-text);
}

/* Sized so six networks fit on one line down to 360px screens. */
.sb-social--menu a {
	width: 42px;
	height: 42px;
}

.sb-mobile-menu__legal {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding-top: 6px;
	list-style: none;
	text-align: center;
}

.sb-mobile-menu__legal a {
	display: inline-block;
	padding: 6px 8px;
	color: var(--sb-muted);
	font-size: 0.74rem;
	letter-spacing: 0.2em;
	text-decoration: none;
	text-transform: uppercase;
}

.sb-mobile-menu__legal a:hover {
	color: var(--sb-ink);
}
