/* =========================================================
   ALSTON HEADER SYSTEM
========================================================= */

.alston-topbar,
.alston-header,
.alston-mobile-menu {
	font-family: 'Inter', -apple-system, sans-serif;
}

.alston-topbar *,
.alston-header *,
.alston-mobile-menu * {
	box-sizing: border-box;
}

/* =========================================================
   TOP BAR
========================================================= */

.alston-topbar {
	width: 100%;
	min-height: 42px;
	padding: 11px 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	background: #0a0a0a;
	color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.04em;
	position: relative;
	z-index: 1002;
}

.alston-topbar__left,
.alston-topbar__right {
	display: flex;
	align-items: center;
	gap: 24px;
	min-width: 0;
}

.alston-topbar a,
.alston-topbar span {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.3s ease;
}

.alston-topbar a:hover {
	color: #c9a961;
}

/* =========================================================
   HEADER BASE
========================================================= */

.alston-header {
	width: 100%;
	position: fixed;
	top: 42px;
	left: 0;
	z-index: 1001;
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	transition:
		top 0.35s ease,
		background 0.35s ease,
		box-shadow 0.35s ease,
		border-color 0.35s ease;
}

.admin-bar .alston-header {
	top: 74px;
}

.alston-header.is-scrolled {
	top: 0;
	background: #ffffff;
	border-bottom-color: rgba(0, 0, 0, 0.08);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.admin-bar .alston-header.is-scrolled {
	top: 32px;
}

.alston-header__inner {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 24px 5px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 32px;
	transition: padding 0.35s ease;
}

.alston-header.is-scrolled .alston-header__inner {
	padding-top: 14px;
	padding-bottom: 14px;
}

/* =========================================================
   LEFT MENU
========================================================= */

.alston-header__nav {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-width: 0;
}

.alston-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 34px;
}

.alston-header__menu li {
	margin: 0;
	padding: 0;
}

.alston-header__menu a {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: #ffffff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.04em;
	white-space: nowrap;
	transition: color 0.3s ease;
}

.alston-header.is-scrolled .alston-header__menu a {
	color: #111111;
}

.alston-header__menu a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -7px;
	width: 0;
	height: 1px;
	background: #c9a961;
	transition: width 0.3s ease;
}

.alston-header__menu a:hover,
.alston-header__menu .current-menu-item > a,
.alston-header__menu .current_page_item > a {
	color: #c9a961;
}

.alston-header__menu a:hover::after,
.alston-header__menu .current-menu-item > a::after,
.alston-header__menu .current_page_item > a::after {
	width: 100%;
}

/* =========================================================
   CENTER LOGO
========================================================= */

.alston-header__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	text-decoration: none;
	line-height: 0;
}

.alston-header__logo-img {
	width: auto;
	max-width: 250px;
	height: auto;
	max-height: 62px;
	display: block;
	transition: opacity 0.3s ease;
}

.alston-header__logo-img--dark {
	display: none;
}

.alston-header.is-scrolled .alston-header__logo-img--light {
	display: none;
}

.alston-header.is-scrolled .alston-header__logo-img--dark {
	display: block;
}

/* =========================================================
   RIGHT BUTTONS
========================================================= */

.alston-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	min-width: 0;
}

.alston-header__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	white-space: nowrap;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	transition:
		color 0.3s ease,
		background 0.3s ease,
		border-color 0.3s ease;
}

.alston-header__button--text {
	color: #ffffff;
	padding: 12px 4px;
}

.alston-header__button--outline {
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.45);
	padding: 13px 22px;
}

.alston-header__button--solid {
	color: #0a0a0a;
	background: #ffffff;
	border: 1px solid #ffffff;
	padding: 13px 24px;
}

.alston-header.is-scrolled .alston-header__button--text {
	color: #111111;
}

.alston-header.is-scrolled .alston-header__button--outline {
	color: #111111;
	border-color: rgba(0, 0, 0, 0.25);
}

.alston-header.is-scrolled .alston-header__button--solid {
	color: #ffffff;
	background: #0a0a0a;
	border-color: #0a0a0a;
}

.alston-header__button:hover {
	color: #0a0a0a;
	background: #c9a961;
	border-color: #c9a961;
}

/* =========================================================
   MOBILE HAMBURGER
========================================================= */

.alston-header__hamburger {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.38);
	background: rgba(255, 255, 255, 0.06);
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	transition:
		background 0.3s ease,
		border-color 0.3s ease;
}

.alston-header.is-scrolled .alston-header__hamburger {
	border-color: rgba(0, 0, 0, 0.18);
	background: #ffffff;
}

.alston-header__hamburger img {
	width: 22px;
	height: 22px;
	display: block;
	filter: brightness(0) invert(1);
	transition: filter 0.3s ease;
}

.alston-header.is-scrolled .alston-header__hamburger img {
	filter: brightness(0);
}

/* =========================================================
   MOBILE OFF CANVAS
========================================================= */

.alston-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 2000;
	pointer-events: none;
	visibility: hidden;
}

.alston-mobile-menu.is-open {
	pointer-events: auto;
	visibility: visible;
}

.alston-mobile-menu__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.alston-mobile-menu.is-open .alston-mobile-menu__overlay {
	opacity: 1;
}

.alston-mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(420px, 88vw);
	height: 100%;
	background: #ffffff;
	color: #111111;
	transform: translateX(100%);
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
	box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
	overflow-y: auto;
}

.alston-mobile-menu.is-open .alston-mobile-menu__panel {
	transform: translateX(0);
}

.alston-mobile-menu__head {
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.alston-mobile-menu__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	line-height: 0;
}

.alston-mobile-menu__logo img {
	width: auto;
	max-width: 130px;
	height: auto;
	display: block;
}

.alston-mobile-menu__close {
	width: 44px;
	height: 44px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #ffffff;
	position: relative;
	cursor: pointer;
}

.alston-mobile-menu__close span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 1px;
	background: #111111;
	transform-origin: center;
}

.alston-mobile-menu__close span:first-child {
	transform: translate(-50%, -50%) rotate(45deg);
}

.alston-mobile-menu__close span:last-child {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.alston-mobile-menu__body {
	padding: 34px 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.alston-mobile-menu__title {
	margin: 0;
	font-family: 'Cormorant Garamond', 'Times New Roman', serif;
	font-size: 42px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #111111;
}

.alston-mobile-menu__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.alston-mobile-menu__links li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.alston-mobile-menu__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	color: #111111;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	transition: color 0.3s ease;
}

.alston-mobile-menu__links a::after {
	content: '→';
	color: #c9a961;
	font-size: 16px;
	transition: transform 0.3s ease;
}

.alston-mobile-menu__links a:hover {
	color: #c9a961;
}

.alston-mobile-menu__links a:hover::after {
	transform: translateX(4px);
}

/* Mobile Buttons */

.alston-mobile-menu__buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.alston-mobile-menu__button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 15px 20px;
	text-decoration: none;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	transition:
		color 0.3s ease,
		background 0.3s ease,
		border-color 0.3s ease;
}

.alston-mobile-menu__button--solid {
	background: #0a0a0a;
	color: #ffffff;
	border: 1px solid #0a0a0a;
}

.alston-mobile-menu__button--outline {
	background: #ffffff;
	color: #0a0a0a;
	border: 1px solid rgba(0, 0, 0, 0.18);
}

.alston-mobile-menu__button--text {
	background: transparent;
	color: #0a0a0a;
	border: 1px solid transparent;
}

.alston-mobile-menu__button:hover {
	background: #c9a961;
	border-color: #c9a961;
	color: #0a0a0a;
}

/* Mobile Contact */

.alston-mobile-menu__contact {
	padding-top: 24px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.alston-mobile-menu__contact-item span {
	display: block;
	margin-bottom: 6px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #777777;
}

.alston-mobile-menu__contact-item a,
.alston-mobile-menu__contact-item p {
	margin: 0;
	color: #111111;
	text-decoration: none;
	font-family: 'Cormorant Garamond', 'Times New Roman', serif;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.25;
}

.alston-mobile-menu__contact-item a:hover {
	color: #c9a961;
}

body.alston-menu-open {
	overflow: hidden;
}

/* =========================================================
   RESPONSIVE - LAPTOP
========================================================= */

@media (min-width: 1025px) and (max-width: 1366px) {

	.alston-topbar {
		padding-left: 20px;
		padding-right: 20px;
	}

	.alston-header__inner {
		padding-left: 20px;
		padding-right: 20px;
		gap: 26px;
	}

	.alston-header__menu {
		gap: 24px;
	}

	.alston-header__menu a {
		font-size: 12px;
	}

	.alston-header__button {
		font-size: 10px;
		letter-spacing: 0.16em;
	}

	.alston-header__button--outline,
	.alston-header__button--solid {
		padding-left: 18px;
		padding-right: 18px;
	}

}

/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

	.alston-topbar {
		padding: 10px 32px;
	}

	.alston-topbar__left,
	.alston-topbar__right {
		gap: 16px;
	}

	.alston-header {
		top: 40px;
	}

	.alston-header__inner {
		padding: 20px 32px;
		grid-template-columns: auto 1fr auto;
	}

	.alston-header__nav,
	.alston-header__actions {
		display: none;
	}

	.alston-header__logo {
		justify-self: start;
	}

	.alston-header__hamburger {
		display: inline-flex;
		justify-self: end;
	}

	.alston-header__logo-img {
		max-width: 140px;
	}

}

/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (min-width: 481px) and (max-width: 767px) {

	.alston-topbar {
		display: none;
	}

	.alston-header,
	.admin-bar .alston-header,
	.alston-header.is-scrolled,
	.admin-bar .alston-header.is-scrolled {
		top: 0;
	}

	.alston-header__inner {
		padding: 18px 24px;
		grid-template-columns: auto 1fr auto;
	}

	.alston-header__nav,
	.alston-header__actions {
		display: none;
	}

	.alston-header__logo {
		justify-self: start;
	}

	.alston-header__logo-img {
		max-width: 132px;
		max-height: 54px;
	}

	.alston-header__hamburger {
		display: inline-flex;
		justify-self: end;
	}

}

/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (min-width: 320px) and (max-width: 480px) {

	.alston-topbar {
		display: none;
	}

	.alston-header,
	.admin-bar .alston-header,
	.alston-header.is-scrolled,
	.admin-bar .alston-header.is-scrolled {
		top: 0;
	}

	.alston-header__inner {
		padding: 16px 20px;
		grid-template-columns: auto 1fr auto;
	}

	.alston-header__nav,
	.alston-header__actions {
		display: none;
	}

	.alston-header__logo {
		justify-self: start;
	}

	.alston-header__logo-img {
		max-width: 222px;
		max-height: 50px;
	}

	.alston-header__hamburger {
		display: inline-flex;
		width: 42px;
		height: 42px;
		justify-self: end;
	}

	.alston-header__hamburger img {
		width: 21px;
		height: 21px;
	}

	.alston-mobile-menu__panel {
		width: 90vw;
	}

	.alston-mobile-menu__head {
		padding: 20px;
	}

	.alston-mobile-menu__body {
		padding: 30px 20px 26px;
		gap: 28px;
	}

	.alston-mobile-menu__title {
		font-size: 38px;
	}

	.alston-mobile-menu__contact-item a,
	.alston-mobile-menu__contact-item p {
		font-size: 19px;
	}

}