/**
 * Galustar Header — frontend v1.2.2
 */

/* Elementor — full-width, no extra padding */
.elementor-widget-shortcode:has(.ght-header) .elementor-widget-container,
.elementor-widget-shortcode:has(.ght-header) .elementor-shortcode {
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
}

.elementor-section:has(.ght-header),
.elementor-section:has(.ght-header) > .elementor-container,
.elementor-element:has(.ght-header),
.elementor-element:has(.ght-header) > .e-con,
.elementor-element:has(.ght-header) > .e-con-inner,
.elementor-element:has(.ght-header) > .elementor-widget-wrap,
.elementor-location-header:has(.ght-header),
.elementor-location-header:has(.ght-header) > .e-con,
.elementor-location-header:has(.ght-header) > .e-con-inner,
.elementor-location-header:has(.ght-header) .elementor-widget-wrap {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.elementor-location-header:has(.ght-header) {
	background: transparent !important;
}

/* Elementor list resets — keep our nav structure */
.ght-header .ght-header__nav,
.ght-header .ght-header__nav li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ght-header {
	--ght-gold: #c6a56a;
	--ght-gold-soft: rgba(198, 165, 106, 0.35);
	--ght-muted: rgba(17, 17, 17, 0.55);
	--ght-line: rgba(198, 165, 106, 0.2);
	--ght-inner-max: 1280px;
	--ght-side: clamp(16px, 4vw, 48px);
	--ght-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ght-logo-h: 40px;

	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
	background: var(--ght-bg, #f7f2ec);
	color: var(--ght-ink, #111);
	font-family: "Jost", system-ui, sans-serif;
	z-index: 9990;
}

.ght-header--sticky {
	position: sticky;
	top: 0;
}

.ght-header--sticky.ght-header--scrolled .ght-header__main {
	background: rgba(247, 242, 236, 0.98);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 4px 24px rgba(17, 17, 17, 0.05);
}

.ght-header__bar {
	background: #111;
	color: #fff;
}

.ght-header__bar-inner {
	max-width: var(--ght-inner-max);
	margin-inline: auto;
	padding: 10px var(--ght-side);
	text-align: center;
}

.ght-header__bar-link,
.ght-header__bar-text {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
}

.ght-header__main {
	background: var(--ght-bg, #f7f2ec);
	border-bottom: 1px solid var(--ght-line);
	transition: box-shadow 0.35s var(--ght-ease), background 0.35s var(--ght-ease);
	position: relative;
	z-index: 2;
}

.ght-header.is-open .ght-header__main {
	z-index: 10006;
	border-bottom-color: transparent;
	box-shadow: 0 4px 20px rgba(17, 17, 17, 0.06);
}

.ght-header__main::before {
	content: "";
	display: block;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--ght-gold-soft), transparent);
}

/* Mobile-first bar layout */
.ght-header__inner {
	display: grid !important;
	grid-template-columns: 1fr auto !important;
	align-items: center !important;
	gap: 12px !important;
	width: 100%;
	max-width: var(--ght-inner-max);
	margin-inline: auto;
	padding: var(--ght-py, 14px) var(--ght-side);
	box-sizing: border-box;
}

.ght-header__brand {
	grid-column: 1;
	justify-self: start;
	align-self: center;
	max-width: calc(100% - 52px);
	min-width: 0;
}

.ght-header__nav-wrap {
	display: none !important;
}

.ght-header__actions {
	grid-column: 2;
	justify-self: end;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

.ght-header__name {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.25rem, 4vw, 1.75rem);
	font-weight: 600;
	line-height: 1;
	color: var(--ght-ink, #111);
	text-decoration: none;
	letter-spacing: 0.04em;
}

.ght-header__logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
	max-width: 100%;
}

.ght-header__logo {
	display: block;
	width: auto;
	height: var(--ght-logo-h);
	max-height: var(--ght-logo-h);
	max-width: min(130px, 42vw);
	object-fit: contain;
	object-position: left center;
}

.ght-header__logo-link[style*="--ght-logo-w"] .ght-header__logo {
	width: var(--ght-logo-w);
	max-width: var(--ght-logo-w);
}

.ght-header__logo-link[style*="--ght-logo-h"] .ght-header__logo {
	height: var(--ght-logo-h);
	max-height: var(--ght-logo-h);
}

.ght-header__nav {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: clamp(18px, 2.5vw, 32px);
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ght-header__nav li {
	display: block;
	flex-shrink: 0;
}

.ght-header__nav a {
	position: relative;
	display: inline-block;
	padding: 6px 0;
	color: var(--ght-muted);
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color 0.3s ease;
}

.ght-header__nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--ght-gold);
	transform: scaleX(0);
	transition: transform 0.3s var(--ght-ease);
}

.ght-header__nav a:hover,
.ght-header__nav a:focus-visible {
	color: var(--ght-ink, #111);
}

.ght-header__nav a:hover::after,
.ght-header__nav a:focus-visible::after {
	transform: scaleX(1);
}

.ght-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border-radius: 999px;
	border: 1px solid var(--ght-gold);
	background: var(--ght-gold);
	color: #111;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.3s var(--ght-ease), box-shadow 0.3s ease, background 0.3s ease;
}

.ght-header__cta--desktop {
	display: none !important;
}

.ght-header__toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(198, 165, 106, 0.5);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ght-ink, #111);
	cursor: pointer;
	flex-shrink: 0;
	box-shadow: 0 2px 10px rgba(17, 17, 17, 0.06);
	transition: background 0.3s var(--ght-ease), border-color 0.3s var(--ght-ease), color 0.3s var(--ght-ease), box-shadow 0.3s var(--ght-ease), transform 0.2s var(--ght-ease);
	-webkit-tap-highlight-color: transparent;
}

.ght-header__toggle:hover,
.ght-header__toggle:focus-visible {
	border-color: var(--ght-gold);
	background: rgba(198, 165, 106, 0.14);
	color: var(--ght-ink, #111);
	outline: none;
	box-shadow: 0 4px 14px rgba(198, 165, 106, 0.22);
}

.ght-header__toggle-line {
	display: block;
	width: 16px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.3s ease, opacity 0.25s ease;
}

.ght-header__toggle[aria-expanded="true"] {
	background: linear-gradient(135deg, #d4b87a 0%, #b89455 100%);
	border-color: #b89455;
	color: #111111;
	box-shadow: 0 4px 16px rgba(184, 148, 85, 0.28);
}

.ght-header__toggle[aria-expanded="true"] .ght-header__toggle-line:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.ght-header__toggle[aria-expanded="true"] .ght-header__toggle-line:nth-child(2) {
	opacity: 0;
}

.ght-header__toggle[aria-expanded="true"] .ght-header__toggle-line:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer — opens below header bar */
.ght-header__mobile[hidden] {
	display: none !important;
}

.ght-header__mobile {
	position: fixed;
	top: var(--ght-bar-offset, 64px);
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10004;
	pointer-events: none;
	visibility: hidden;
	overflow: hidden;
}

.ght-header__mobile-panel {
	width: 100%;
	max-height: calc(100dvh - var(--ght-bar-offset, 64px));
	background: var(--ght-bg, #f7f2ec);
	border-bottom: 1px solid var(--ght-line);
	box-shadow: 0 18px 40px rgba(17, 17, 17, 0.1);
	transform: translateY(-12px);
	opacity: 0;
	transition:
		transform 0.38s var(--ght-ease),
		opacity 0.32s ease;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	pointer-events: auto;
}

.ght-header__mobile-inner {
	padding: 8px var(--ght-side) calc(24px + env(safe-area-inset-bottom, 0px));
}

.ght-header__overlay[hidden] {
	display: none !important;
}

.ght-header__overlay {
	position: fixed;
	top: var(--ght-bar-offset, 64px);
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10003;
	background: rgba(17, 17, 17, 0.4);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ght-header__nav--mobile {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0 !important;
	width: 100%;
}

.ght-header__nav--mobile li {
	display: block !important;
	width: 100% !important;
	border-bottom: 1px solid rgba(17, 17, 17, 0.07);
}

.ght-header__nav--mobile a {
	display: flex !important;
	align-items: center;
	width: 100%;
	min-height: 54px;
	padding: 12px 0;
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ght-ink, #111);
	white-space: normal;
}

.ght-header__nav--mobile a::after {
	display: none !important;
}

.ght-header__nav--mobile a:active {
	color: var(--ght-gold);
}

.ght-header__cta--mobile {
	display: none !important;
	margin-top: 20px;
	width: 100%;
	min-height: 52px;
	padding: 14px 22px;
	justify-content: center;
	font-size: 11px;
}

.ght-header.is-open .ght-header__mobile {
	display: block !important;
	pointer-events: auto;
	visibility: visible;
}

.ght-header.is-open .ght-header__mobile-panel {
	transform: translateY(0);
	opacity: 1;
}

.ght-header.is-open .ght-header__overlay {
	opacity: 1;
	visibility: visible;
}

.ght-header.is-open .ght-header__cta--mobile {
	display: inline-flex !important;
}

html.ght-menu-open,
html.ght-menu-open body {
	overflow: hidden;
	touch-action: none;
}

body.ght-hide-theme-header #site-header,
body.ght-hide-theme-header .site-header,
body.ght-hide-theme-header header.site-header,
body.ght-hide-theme-header .elementor-location-header:not(:has(.ght-header)) {
	display: none !important;
}

/* Tablet — dropdown menu below header */
@media (min-width: 768px) and (max-width: 991px) {
	.ght-header__cta--desktop {
		display: inline-flex !important;
		min-width: auto;
		padding: 10px 18px;
		font-size: 9px;
	}
}

/* Desktop — center nav row, same compact width as before */
@media (min-width: 992px) {
	.ght-header {
		--ght-side: clamp(20px, 4vw, 40px);
		--ght-inner-max: 1280px;
	}

	.ght-header__inner {
		grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr) !important;
		gap: 20px !important;
	}

	.ght-header__brand {
		grid-column: 1;
		max-width: none;
	}

	.ght-header__nav-wrap {
		display: flex !important;
		grid-column: 2;
		justify-self: center;
		align-items: center;
		justify-content: center;
		width: auto;
		height: auto;
		overflow: visible;
		visibility: visible;
		pointer-events: auto;
	}

	.ght-header__actions {
		grid-column: 3;
		gap: 10px;
	}

	.ght-header__cta--desktop {
		display: inline-flex !important;
	}

	.ght-header__toggle {
		display: none !important;
	}
}

@media (min-width: 1200px) {
	.ght-header__nav a {
		font-size: 0.78rem;
		letter-spacing: 0.16em;
	}
}

@media (max-width: 767px) {
	.ght-header {
		--ght-logo-h: 34px;
	}
}

@media (max-width: 479px) {
	.ght-header {
		--ght-logo-h: 32px;
	}

	.ght-header__toggle {
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ght-header__cta,
	.ght-header__nav a,
	.ght-header__nav a::after,
	.ght-header__toggle,
	.ght-header__toggle-line,
	.ght-header__main,
	.ght-header__mobile-panel,
	.ght-header__overlay {
		transition: none;
	}
}
