/*
 * Glass header — Transform by Shivani
 * Loaded by hello-elementor-child.
 */

:root {
	--tws-pink: #f080a0;
	/* Hamburger + CTA */
	--tws-brand: #c36;
	--tws-brand-hover: #b32d5d;
	--tws-text: #1a1a1a;
	--tws-text-muted: #333333;
	--tws-ring: rgba(0, 0, 0, 0.12);
}

/* -------------------------------------------------------------------------
   Bar & glass shell
------------------------------------------------------------------------- */

.tws-glass-header {
	position: sticky;
	top: 0;
	z-index: 1000;
}

.tws-glass-header__bar {
	background: rgba(255, 255, 255, 0.35);
	border-bottom: 1px solid rgba(255, 255, 255, 0.7);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	backdrop-filter: blur(16px) saturate(180%);
}

.tws-glass-header__inner {
	max-width: 1240px;
	margin: 0 auto;
	min-height: 72px;
	padding: 14px clamp(18px, 4vw, 32px);
	display: grid;
	align-items: center;
	column-gap: clamp(14px, 2.5vw, 28px);
}

/* Desktop: logo | centered nav | actions */
@media (min-width: 901px) {
	.tws-glass-header__inner {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	}

	.tws-glass-header__logo {
		grid-column: 1;
		justify-self: start;
	}

	.tws-glass-header__nav-desktop {
		grid-column: 2;
		justify-self: center;
	}

	.tws-glass-header__actions {
		grid-column: 3;
		justify-self: end;
	}
}

/* Phone: hamburger | logo | CTA */
@media (max-width: 900px) {
	.tws-glass-header__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		min-height: 64px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.tws-glass-header__burger {
		grid-column: 1;
		justify-self: start;
		order: unset;
	}

	.tws-glass-header__logo {
		grid-column: 2;
		justify-self: center;
		text-align: center;
		pointer-events: auto;
	}

	.tws-glass-header__nav-desktop {
		display: none;
	}

	.tws-glass-header__actions {
		grid-column: 3;
		justify-self: end;
	}

	/* Center logo sparkle + text as a compact unit */
	.tws-glass-header__logo-wordmark {
		justify-content: center;
		flex-wrap: wrap;
	}
}

/* -------------------------------------------------------------------------
   Burger
------------------------------------------------------------------------- */

.tws-glass-header__burger {
	width: 44px;
	height: 44px;
	border: none;
	background: var(--tws-brand);
	border-radius: 10px;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	color: #ffffff;
	transition: background 0.2s ease;
}

.tws-glass-header__burger:hover {
	background: var(--tws-brand-hover);
}

.tws-glass-header__burger:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.tws-glass-header__burger-line {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.28s ease, opacity 0.2s ease;
	transform-origin: center;
}

.tws-glass-header[data-tws-nav-open='true'] .tws-glass-header__burger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.tws-glass-header[data-tws-nav-open='true'] .tws-glass-header__burger-line:nth-child(2) {
	opacity: 0;
}

.tws-glass-header[data-tws-nav-open='true'] .tws-glass-header__burger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Show hamburger only on tablet / phone (must follow base `.tws-glass-header__burger` so it wins the cascade). */
@media (max-width: 900px) {
	.tws-glass-header__burger {
		display: inline-flex;
	}
}

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

.tws-glass-header__logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

/* Appearance → Customize → Site Identity → Logo */
.tws-glass-header__logo--custom {
	line-height: 0;
	justify-content: center;
	align-items: center;
}

@media (min-width: 901px) {
	.tws-glass-header__logo--custom {
		justify-content: flex-start;
	}
}

.tws-glass-header__logo--custom .custom-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.tws-glass-header__logo--custom .custom-logo-link:focus-visible {
	outline: 2px solid var(--tws-pink);
	outline-offset: 4px;
	border-radius: 4px;
}

.tws-glass-header__logo--custom .custom-logo {
	display: block;
	height: auto;
	max-height: 48px;
	max-width: min(240px, 46vw);
	width: auto;
	object-fit: contain;
}

.tws-glass-header__logo--text {
	text-decoration: none;
	color: inherit;
}

.tws-glass-header__logo-sparkle {
	display: flex;
	flex-shrink: 0;
	line-height: 0;
}

.tws-glass-header__logo-wordmark {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: nowrap;
	gap: 6px;
	min-width: 0;
}

.tws-glass-header__logo-transform {
	font-family: "DM Sans", system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1875rem);
	letter-spacing: -0.02em;
	color: #000000;
	line-height: 1.05;
}

.tws-glass-header__logo-by {
	font-family: "Great Vibes", "Brush Script MT", cursive;
	font-size: clamp(1.15rem, 1.05rem + 0.55vw, 1.62rem);
	color: var(--tws-pink);
	line-height: 1;
	transform: translateY(1px);
}

/* -------------------------------------------------------------------------
   Desktop nav
------------------------------------------------------------------------- */

.tws-glass-header__nav-desktop {
	justify-self: center;
}

.tws-glass-header__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(14px, 2.2vw, 32px);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* WordPress submenu (depth > 1) */
.tws-glass-header__menu > .menu-item {
	position: relative;
}

.tws-glass-header__menu .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 220px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	z-index: 1010;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 14px;
	-webkit-backdrop-filter: blur(14px) saturate(180%);
	backdrop-filter: blur(14px) saturate(180%);
}

.tws-glass-header__menu .sub-menu .menu-item {
	position: relative;
}

.tws-glass-header__menu .sub-menu .tws-glass-header__link {
	display: flex;
	width: 100%;
	padding: 10px 18px;
	font-size: 14px;
	justify-content: flex-start;
	box-sizing: border-box;
}

.tws-glass-header__menu .menu-item-has-children:hover > .sub-menu,
.tws-glass-header__menu .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.tws-glass-header__menu .sub-menu .sub-menu {
	left: calc(100% + 14px);
	top: 0;
	transform: none;
	margin-left: 0;
}

.tws-glass-header__menu-note {
	margin: 0;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
}

.tws-glass-header__menu-note a {
	color: var(--tws-text-muted);
}

.tws-glass-header__menu-note a:hover {
	color: var(--tws-pink);
}

.tws-glass-header__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0;
	cursor: default;
	font-family: "DM Sans", system-ui, -apple-system, sans-serif;
	font-weight: 500;
	font-size: 15px;
	color: var(--tws-text-muted);
	text-decoration: none;
	transition: color 0.18s ease;
}

.tws-glass-header__link:hover,
.tws-glass-header__link:focus-visible {
	color: #000;
}

.tws-glass-header__link:focus-visible {
	outline: 2px solid var(--tws-pink);
	outline-offset: 6px;
	border-radius: 4px;
}

/* Current menu item (WordPress `.current-menu-item` on `<li>`) */
.tws-glass-header__menu .current-menu-item > .tws-glass-header__link {
	font-weight: 600;
	color: #000000;
}

/* -------------------------------------------------------------------------
   Actions: CTA
------------------------------------------------------------------------- */

.tws-glass-header__actions {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.tws-glass-header__cta {
	display: inline-flex;
	align-items: center;
	position: relative;
	gap: 10px;
	padding: 12px clamp(18px, 2vw, 24px);
	border-radius: 999px;
	font-family: "DM Sans", system-ui, sans-serif;
	font-weight: 600;
	font-size: 15px;
	color: #ffffff;
	background: var(--tws-brand);
	text-decoration: none;
	box-shadow: none;
	filter: none;
	text-shadow: none;
	transition: background 0.2s ease;
	white-space: nowrap;
}

.tws-glass-header__cta:hover {
	background: var(--tws-brand-hover);
	box-shadow: none;
	filter: none;
}

.tws-glass-header__cta:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
	box-shadow: none;
	filter: none;
}

.tws-glass-header__cta-arrow {
	display: flex;
	line-height: 0;
}

.tws-glass-header__cta-arrow svg {
	display: block;
}

/* Beat global / builder link button shadows on the CTA */
.tws-glass-header a.tws-glass-header__cta,
.tws-glass-header a.tws-glass-header__cta:hover,
.tws-glass-header a.tws-glass-header__cta:focus-visible {
	box-shadow: none !important;
	filter: none;
}

@media (max-width: 900px) {
	/* Arrow only visually; label uses visually-hidden sizing (better for SR than display:none). */
	.tws-glass-header__cta-text {
		position: absolute;
		block-size: 1px;
		inline-size: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		white-space: nowrap;
		border: 0;
		clip-path: inset(50%);
		clip: rect(1px, 1px, 1px, 1px);
	}

	.tws-glass-header__cta {
		padding: 12px;
		gap: 0;
	}
}

/* -------------------------------------------------------------------------
   Mobile overlay & panel
------------------------------------------------------------------------- */

.tws-glass-header__overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.28);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	z-index: 998;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
}

.tws-glass-header[data-tws-nav-open='true'] .tws-glass-header__overlay {
	opacity: 1;
	pointer-events: auto;
}

.tws-glass-header__mobile-panel {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(86vw, 320px);
	z-index: 999;
	padding: calc(64px + env(safe-area-inset-top, 0)) 24px 32px;
	background: rgba(255, 255, 255, 0.55);
	border-right: 1px solid rgba(255, 255, 255, 0.75);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	backdrop-filter: blur(20px) saturate(180%);
	overflow-y: auto;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-103%);
	transition:
		transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0s linear 0.32s;
}

.tws-glass-header[data-tws-nav-open='true'] .tws-glass-header__mobile-panel {
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0);
	transition:
		transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0s linear 0s;
}

.tws-glass-header__mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tws-glass-header__mobile-link {
	display: block;
	padding: 14px 4px;
	cursor: default;
	font-family: "DM Sans", system-ui, sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: var(--tws-text-muted);
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	transition: color 0.18s ease, padding-left 0.18s ease;
}

.tws-glass-header__mobile-link:hover,
.tws-glass-header__mobile-link:focus-visible {
	color: #000;
	padding-left: 6px;
}

.tws-glass-header__mobile-menu .current-menu-item > .tws-glass-header__mobile-link {
	font-weight: 700;
	color: #000000;
	border-left: 3px solid var(--tws-pink);
	padding-left: 10px;
}

/* Nested items in drawer */
.tws-glass-header__mobile-menu .sub-menu {
	list-style: none;
	margin: 4px 0 0;
	padding: 0 0 8px 12px;
}

.tws-glass-header__mobile-menu .sub-menu .tws-glass-header__mobile-link {
	font-size: 15px;
	padding-top: 8px;
	padding-bottom: 8px;
	border-bottom: none;
}

body.tws-nav-locked {
	overflow: hidden;
}

@media (min-width: 901px) {
	.tws-glass-header__overlay,
	.tws-glass-header__mobile-panel {
		display: none !important;
	}
}
