/* BX Hosting marketing theme */

:root {
	--bxh-bg: #333536;
	--bxh-bg-elevated: #3c3e40;
	--bxh-bg-deep: #2a2c2e;
	--bxh-text: #dbdbdb;
	--bxh-text-muted: #a8abad;
	--bxh-heading: #f3f3f3;
	--bxh-accent: #5c5f63;
	--bxh-accent-hover: #72767a;
	--bxh-border: #5c5f63;
	--bxh-copper: #c4785a;
	--bxh-font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
	--bxh-font-body: "Figtree", "Segoe UI", Tahoma, sans-serif;
	--bxh-max: 1120px;
	--bxh-radius: 14px;
	--bxh-space: clamp(1rem, 2vw, 2rem);
	--bxh-header-h: 4.25rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--bxh-font-body);
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--bxh-text);
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(196, 120, 90, 0.12), transparent 55%),
		radial-gradient(900px 500px at 90% 0%, rgba(92, 95, 99, 0.35), transparent 50%),
		linear-gradient(180deg, #2f3133 0%, var(--bxh-bg) 40%, #2c2e30 100%);
	background-attachment: fixed;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--bxh-heading);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus-visible {
	color: #fff;
}

h1,
h2,
h3,
h4 {
	font-family: var(--bxh-font-display);
	font-weight: 600;
	line-height: 1.15;
	color: var(--bxh-heading);
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1em;
}

.bxh-container {
	width: min(100% - 2rem, var(--bxh-max));
	margin-inline: auto;
}

.bxh-skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--bxh-heading);
	color: var(--bxh-bg);
	padding: 0.5rem 1rem;
	z-index: 1000;
}

.bxh-skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* Header */
.bxh-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(10px);
	background: rgba(45, 47, 49, 0.88);
	border-bottom: 1px solid rgba(92, 95, 99, 0.55);
}

.bxh-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--bxh-header-h);
}

.bxh-logo,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.bxh-logo img,
.custom-logo-link img,
.custom-logo {
	height: 40px;
	width: auto;
}

.bxh-nav {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.bxh-nav > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 1.1rem;
}

.bxh-nav a {
	text-decoration: none;
	color: var(--bxh-text);
	font-weight: 500;
	font-size: 0.95rem;
}

.bxh-nav a:hover,
.bxh-nav .current-menu-item > a,
.bxh-nav .current_page_item > a,
.bxh-nav .current-menu-ancestor > a {
	color: #fff;
}

.bxh-nav .menu-item-has-children {
	position: relative;
}

.bxh-nav .menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.55rem 0;
}

.bxh-nav .menu-item-has-children > a::after {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	opacity: 0.75;
}

.bxh-nav .sub-menu {
	list-style: none;
	margin: 0;
	/* Top padding bridges the gap so hover isn't lost moving into the menu */
	padding: 0.55rem 0.45rem 0.45rem;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 13.5rem;
	background: transparent;
	border: 0;
	box-shadow: none;
	display: none;
	flex-direction: column;
	gap: 0.15rem;
	z-index: 60;
}

.bxh-nav .sub-menu::before {
	content: "";
	position: absolute;
	top: 0.45rem;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(42, 44, 46, 0.97);
	border: 1px solid var(--bxh-border);
	border-radius: var(--bxh-radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	z-index: -1;
}

.bxh-nav .sub-menu a {
	display: block;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	white-space: nowrap;
	position: relative;
	z-index: 1;
}

.bxh-nav .sub-menu a:hover,
.bxh-nav .sub-menu a:focus-visible {
	background: var(--bxh-accent);
	color: #fff;
}

.bxh-nav .menu-item-has-children:hover > .sub-menu,
.bxh-nav .menu-item-has-children:focus-within > .sub-menu,
.bxh-nav .menu-item-has-children.is-open > .sub-menu {
	display: flex;
}

.bxh-nav-toggle {
	display: none;
	border: 1px solid var(--bxh-border);
	background: transparent;
	color: var(--bxh-heading);
	border-radius: 999px;
	padding: 0.45rem 0.9rem;
	font: inherit;
	cursor: pointer;
}

.bxh-nav-toggle[aria-expanded="true"] {
	background: var(--bxh-accent);
}

/* Header product search */
.bxh-search {
	position: relative;
	margin-left: 0.35rem;
}

.bxh-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border: 1px solid var(--bxh-border);
	border-radius: 999px;
	background: transparent;
	color: var(--bxh-heading);
	cursor: pointer;
}

.bxh-search__toggle[aria-expanded="true"],
.bxh-search__toggle:hover {
	background: var(--bxh-accent);
	color: #fff;
}

.bxh-search__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.55rem);
	width: min(22rem, calc(100vw - 2rem));
	padding: 0.75rem;
	background: rgba(42, 44, 46, 0.97);
	border: 1px solid var(--bxh-border);
	border-radius: var(--bxh-radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	z-index: 70;
}

.bxh-search__panel[hidden] {
	display: none;
}

.bxh-search__form {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.bxh-search__form--page {
	margin-top: 1rem;
	max-width: 36rem;
}

.bxh-search__input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--bxh-border);
	border-radius: 999px;
	background: var(--bxh-bg-deep);
	color: var(--bxh-heading);
	padding: 0.65rem 1rem;
	font: inherit;
}

.bxh-search__input::placeholder {
	color: var(--bxh-text-muted);
}

.bxh-search__submit {
	padding-inline: 1.1rem;
}

.bxh-search-results {
	margin-bottom: 2rem;
}

.bxh-search-results h2 {
	font-size: 1.25rem;
}

.bxh-search-results__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.bxh-search-results__list a {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	text-decoration: none;
	border: 1px solid var(--bxh-border);
	border-radius: var(--bxh-radius);
	padding: 0.95rem 1.1rem;
	background: rgba(42, 44, 46, 0.65);
	color: var(--bxh-heading);
}

.bxh-search-results__list a:hover,
.bxh-search-results__list a:focus-visible {
	border-color: var(--bxh-copper);
	color: #fff;
}

.bxh-search-results__meta {
	font-size: 0.9rem;
	color: var(--bxh-text-muted);
}

/* Buttons */
.bxh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.75rem 1.35rem;
	border-radius: 999px;
	border: 1px solid var(--bxh-border);
	background: var(--bxh-accent);
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	letter-spacing: 0.01em;
}

.bxh-btn:hover,
.bxh-btn:focus-visible {
	background: var(--bxh-accent-hover);
	color: #fff;
	transform: translateY(-1px);
}

.bxh-btn--ghost {
	background: transparent;
}

.bxh-btn--ghost:hover,
.bxh-btn--ghost:focus-visible {
	background: rgba(92, 95, 99, 0.35);
}

.bxh-link-arrow {
	color: var(--bxh-heading);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--bxh-border);
}

.bxh-link-arrow::after {
	content: " →";
}

/* Hero / home */
.bxh-hero {
	padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
	animation: bxh-fade-up 0.7s ease both;
}

.bxh-hero__brand {
	font-family: var(--bxh-font-display);
	font-size: clamp(2.6rem, 7vw, 4.6rem);
	letter-spacing: -0.03em;
	margin-bottom: 0.35em;
}

.bxh-hero__brand span {
	color: var(--bxh-copper);
}

.bxh-hero__lead {
	max-width: 36rem;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	color: var(--bxh-text-muted);
	margin-bottom: 1.5rem;
}

.bxh-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.bxh-services {
	display: grid;
	gap: 1rem;
	padding: 0 0 clamp(3rem, 7vw, 5rem);
	grid-template-columns: 1.4fr 1fr;
	grid-template-areas:
		"radio video"
		"radio web"
		"game game"
		"vpn vpn";
}

.bxh-service {
	border: 1px solid var(--bxh-border);
	border-radius: var(--bxh-radius);
	background: rgba(60, 62, 64, 0.55);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	animation: bxh-fade-up 0.7s ease both;
	animation-delay: var(--delay, 0s);
}

.bxh-service--radio { grid-area: radio; }
.bxh-service--video { grid-area: video; }
.bxh-service--web { grid-area: web; }
.bxh-service--game { grid-area: game; }
.bxh-service--vpn { grid-area: vpn; }

.bxh-service h2 {
	font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.bxh-service p {
	color: var(--bxh-text-muted);
}

.bxh-checklist {
	list-style: none;
	margin: 1.25rem 0 1.5rem;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.bxh-checklist li {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
}

.bxh-checklist li::before {
	content: "";
	width: 0.7rem;
	height: 0.7rem;
	margin-top: 0.4rem;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--bxh-accent);
	box-shadow: 0 0 0 2px rgba(92, 95, 99, 0.35);
}

/* Page sections */
.bxh-page {
	padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.bxh-page__intro {
	max-width: 44rem;
	margin-bottom: 2rem;
	animation: bxh-fade-up 0.6s ease both;
}

.bxh-page__intro .bxh-lede {
	color: var(--bxh-text-muted);
	font-size: 1.12rem;
}

.bxh-shared {
	border: 1px solid var(--bxh-border);
	border-radius: var(--bxh-radius);
	padding: 1.25rem 1.4rem;
	background: rgba(42, 44, 46, 0.65);
	margin-bottom: 2rem;
}

.bxh-shared h2 {
	font-size: 1.25rem;
}

.bxh-shared ul {
	margin: 0;
	padding-left: 1.1rem;
	columns: 2;
	gap: 2rem;
	color: var(--bxh-text-muted);
}

.bxh-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.bxh-tab {
	border: 1px solid var(--bxh-border);
	background: transparent;
	color: var(--bxh-text);
	border-radius: 999px;
	padding: 0.55rem 1rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bxh-tab[aria-selected="true"],
.bxh-tab:hover,
.bxh-tab:focus-visible {
	background: var(--bxh-accent);
	color: #fff;
}

.bxh-panel[hidden] {
	display: none;
}

.bxh-plans {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.bxh-plan {
	border: 1px solid var(--bxh-border);
	border-radius: var(--bxh-radius);
	background: rgba(60, 62, 64, 0.5);
	padding: 1.35rem 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	animation: bxh-fade-up 0.55s ease both;
}

.bxh-plan__name {
	font-size: 1.35rem;
	margin-bottom: 0.25rem;
}

.bxh-plan__price {
	font-family: var(--bxh-font-display);
	font-size: 2rem;
	color: #fff;
	margin-bottom: 0.85rem;
}

.bxh-plan__price small {
	font-size: 0.95rem;
	color: var(--bxh-text-muted);
	font-family: var(--bxh-font-body);
}

.bxh-plan__features {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: grid;
	gap: 0.45rem;
	color: var(--bxh-text-muted);
	flex: 1;
}

.bxh-plan__features li {
	padding-left: 1.1rem;
	position: relative;
}

.bxh-plan__features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--bxh-accent);
}

.bxh-placeholder-note {
	border: 1px dashed var(--bxh-border);
	border-radius: var(--bxh-radius);
	padding: 1.5rem;
	background: rgba(42, 44, 46, 0.5);
	color: var(--bxh-text-muted);
}

.bxh-content :where(h2, h3) {
	margin-top: 1.5em;
}

.bxh-content a {
	color: #fff;
	text-decoration-color: var(--bxh-border);
}

/* Footer */
.bxh-footer {
	border-top: 1px solid rgba(92, 95, 99, 0.55);
	background: rgba(42, 44, 46, 0.75);
	padding: 2.5rem 0 2rem;
	margin-top: auto;
}

.bxh-footer__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1.3fr 1fr 1fr;
}

.bxh-footer h2 {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--bxh-text-muted);
}

.bxh-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.4rem;
}

.bxh-footer a {
	text-decoration: none;
	color: var(--bxh-text);
}

.bxh-footer__copy {
	margin-top: 2rem;
	color: var(--bxh-text-muted);
	font-size: 0.9rem;
}

@keyframes bxh-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Game servers — 3x3 atmospheric tiles */
.bxh-page--games .bxh-shared ul {
	columns: 1;
}

@media (min-width: 640px) {
	.bxh-page--games .bxh-shared ul {
		columns: 2;
	}
}

.bxh-games {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.bxh-game {
	--game-grad: linear-gradient(145deg, #3a3d40 0%, #2a2c2e 55%, #1f2123 100%);
	position: relative;
	display: block;
	min-height: 14.5rem;
	border-radius: var(--bxh-radius);
	border: 1px solid var(--bxh-border);
	overflow: hidden;
	text-decoration: none;
	color: var(--bxh-heading);
	background-image: var(--game-grad);
	background-size: cover;
	background-position: center;
	isolation: isolate;
	animation: bxh-fade-up 0.55s ease both;
	animation-delay: var(--delay, 0s);
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bxh-game--has-image {
	background-image: var(--game-image), var(--game-grad);
}

.bxh-game:hover,
.bxh-game:focus-visible {
	border-color: var(--bxh-copper);
	box-shadow: 0 0 0 1px var(--bxh-copper);
	transform: translateY(-2px);
	color: #fff;
}

.bxh-game__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(20, 22, 24, 0.2) 0%, rgba(20, 22, 24, 0.55) 45%, rgba(20, 22, 24, 0.92) 100%);
	z-index: 1;
}

.bxh-game__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.35rem;
	min-height: 14.5rem;
	padding: 1.15rem 1.2rem 1.25rem;
}

.bxh-game__name {
	font-family: var(--bxh-font-display);
	font-size: clamp(1.15rem, 2.2vw, 1.45rem);
	font-weight: 600;
	line-height: 1.2;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.bxh-game__price {
	font-size: 0.92rem;
	color: var(--bxh-text-muted);
}

.bxh-game:hover .bxh-game__price,
.bxh-game:focus-visible .bxh-game__price {
	color: var(--bxh-text);
}

.bxh-game__cta {
	margin-top: 0.35rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--bxh-copper);
}

.bxh-game:hover .bxh-game__cta,
.bxh-game:focus-visible .bxh-game__cta {
	color: #e8a48a;
}

/* Mood gradients when press art is missing */
.bxh-game--palworld { --game-grad: linear-gradient(145deg, #3d5a3a 0%, #2a3530 50%, #1e2420 100%); }
.bxh-game--rust { --game-grad: linear-gradient(145deg, #6a3a28 0%, #3a2a24 50%, #1f1a18 100%); }
.bxh-game--asa { --game-grad: linear-gradient(145deg, #2f5a48 0%, #243840 50%, #1a2228 100%); }
.bxh-game--satisfactory { --game-grad: linear-gradient(145deg, #c4785a 0%, #5a4038 45%, #2a2c2e 100%); }
.bxh-game--dune { --game-grad: linear-gradient(145deg, #c4a06a 0%, #6a5438 50%, #2e2820 100%); }
.bxh-game--moria { --game-grad: linear-gradient(145deg, #3a4558 0%, #2a3038 50%, #161a20 100%); }
.bxh-game--conan { --game-grad: linear-gradient(145deg, #8a3a2a 0%, #4a3028 50%, #221c1a 100%); }
.bxh-game--minecraft-java { --game-grad: linear-gradient(160deg, #6fa86a 0%, #5a7a4a 35%, #6b5a42 70%, #3a3d40 100%); }
.bxh-game--minecraft-bedrock { --game-grad: linear-gradient(160deg, #5a8ab8 0%, #4a6a58 40%, #6b5a42 75%, #2a2c2e 100%); }

@media (max-width: 960px) {
	.bxh-games {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.bxh-games {
		grid-template-columns: 1fr;
	}

	.bxh-game,
	.bxh-game__body {
		min-height: 12.5rem;
	}
}

@media (max-width: 860px) {
	.bxh-services {
		grid-template-columns: 1fr;
		grid-template-areas:
			"radio"
			"video"
			"web"
			"game"
			"vpn";
	}

	.bxh-shared ul {
		columns: 1;
	}

	.bxh-footer__grid {
		grid-template-columns: 1fr;
	}

	.bxh-nav-toggle {
		display: inline-flex;
	}

	.bxh-nav {
		position: absolute;
		inset: var(--bxh-header-h) 0 auto;
		background: rgba(42, 44, 46, 0.97);
		border-bottom: 1px solid var(--bxh-border);
		padding: 1rem;
		display: none;
	}

	.bxh-nav.is-open {
		display: block;
		animation: bxh-fade-up 0.25s ease both;
	}

	.bxh-nav > ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.bxh-nav .menu-item-has-children > a::after {
		margin-left: auto;
	}

	.bxh-nav .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		margin-top: 0.25rem;
		padding: 0.35rem;
		background: rgba(42, 44, 46, 0.85);
		border: 1px solid var(--bxh-border);
		border-radius: var(--bxh-radius);
	}

	.bxh-nav .sub-menu::before {
		display: none;
	}

	.bxh-nav .menu-item-has-children.is-open > .sub-menu {
		display: flex;
	}

	.bxh-search {
		margin-left: auto;
	}

	.bxh-search__panel {
		position: fixed;
		left: 1rem;
		right: 1rem;
		top: calc(var(--bxh-header-h) + 0.5rem);
		width: auto;
	}

	.bxh-header__inner {
		position: relative;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
