/* ── Unified site shell: header nav + footer ── */
#header .elementor-element-90e53cc > .elementor-container {
	max-width: var(--ag-max) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--ag-pad) !important;
	padding-right: var(--ag-pad) !important;
	box-sizing: border-box !important;
}

/* (Legacy Elementor info-bar hide rules removed 2026-07-07 —
   the header topbar widget 5379002 now renders the new .ag-topbar.) */

/* Reset nav overlap from old blue bar */
#header .elementor-element-90e53cc {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* ── AdamsGames top info bar (rebuilt) ── */
.ag-info-bar {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: linear-gradient(180deg, #f0fbfc 0%, #e8f7f8 100%);
	border-bottom: 1px solid rgba(0, 184, 184, 0.15);
	box-sizing: border-box;
}

.ag-info-bar__inner {
	max-width: min(var(--ag-max, 1200px), calc(100% - 32px));
	margin: 0 auto;
	padding: 12px var(--ag-pad, 16px);
	box-sizing: border-box;
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: clamp(14px, 2.8vw, 36px);
	min-height: 50px;
}

#header .ag-info-bar__item,
.ag-info-bar__item {
	display: inline-flex !important;
	align-items: center;
	gap: 9px;
	flex: 0 1 auto;
	min-width: 0;
	padding: 8px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(0, 184, 184, 0.14);
	box-shadow: 0 1px 3px rgba(0, 80, 90, 0.04);
	font-family: var(--ag-font-body, "Inter", system-ui, sans-serif);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.35;
	color: #1a2b3c;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ag-info-bar__item:hover,
.ag-info-bar__item:focus-visible {
	color: #007f7f;
	background: #ffffff;
	border-color: rgba(0, 184, 184, 0.28);
	box-shadow: 0 4px 14px rgba(0, 184, 184, 0.12);
	text-decoration: none;
}

.ag-info-bar__item:focus-visible {
	outline: 2px solid rgba(0, 184, 184, 0.45);
	outline-offset: 2px;
	border-radius: 4px;
}

.ag-info-bar__icon {
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	color: #00b8b8;
}

.ag-info-bar__item:hover .ag-info-bar__icon,
.ag-info-bar__item:focus-visible .ag-info-bar__icon {
	color: #00d4d4;
}

.ag-info-bar__text {
	overflow: hidden;
	text-overflow: ellipsis;
}

.ag-info-bar__item--address .ag-info-bar__text {
	white-space: nowrap;
}

.ag-info-bar__item--address {
	padding-inline: 20px;
}

@media (max-width: 1100px) {
	.ag-info-bar__inner {
		gap: 14px 20px;
	}

	.ag-info-bar__item {
		font-size: 12.5px;
		padding: 7px 14px;
		gap: 8px;
	}
}

@media (max-width: 767px) {
	.ag-info-bar__inner {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px 12px;
		padding: 10px var(--ag-pad);
		min-height: auto;
		justify-content: stretch;
	}

	.ag-info-bar__item {
		flex: unset;
		font-size: 12px;
		padding: 8px 12px;
		white-space: normal;
		justify-content: center;
	}

	.ag-info-bar__item--address {
		grid-column: 1 / -1;
	}

	.ag-info-bar__item--address .ag-info-bar__text {
		white-space: normal;
	}
}

@media (max-width: 400px) {
	.ag-info-bar__inner {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 12px;
		padding-block: 12px;
		justify-content: flex-start;
	}

	.ag-info-bar__inner::-webkit-scrollbar {
		display: none;
	}

	.ag-info-bar__item {
		flex: 0 0 auto;
		white-space: nowrap;
		padding: 8px 16px;
	}

	.ag-info-bar__item--address {
		grid-column: unset;
	}
}

/* ── Remove white gap between CTA and footer ── */
body.home .ag-cta {
	margin-bottom: 0 !important;
}
body.home .footer-wrapper,
body.home #footer,
body.home .footer-wrapper .container-fluid {
	margin-top: 0 !important;
	padding-top: 0 !important;
}
body.home .elementor-element-4cea360 {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

/* ── Footer shell width ── */
.elementor-366 {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.elementor-366 .elementor-element-634acb9,
.elementor-366 .elementor-element-e022c01 {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box !important;
}

/* (Old light-footer / map-injection styles removed 2026-07-07:
   footer is now a single custom HTML widget in post 366 — styles live
   in adamsgames-design.css under .ag-foot*.) */

/* Sticky header CTA */
.ag-header-cta {
	display: none;
}
@media (min-width: 992px) {
	#header .ag-header-cta {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		margin-left: 12px;
		padding: 10px 20px;
		border-radius: 999px;
		background: linear-gradient(135deg, #00d4d4, #00b8b8);
		color: #fff !important;
		font-weight: 700;
		font-size: .78rem;
		letter-spacing: .06em;
		text-decoration: none !important;
		box-shadow: 0 4px 18px rgba(0,184,184,.35);
		white-space: nowrap;
		transition: transform .2s ease, box-shadow .2s ease;
	}
	#header .ag-header-cta:hover {
		transform: translateY(-1px);
		box-shadow: 0 8px 24px rgba(0,184,184,.45);
		color: #fff !important;
	}
}

#header.sticky-header .header-main,
#header.fixed-header .header-main {
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* Hide duplicate raw page-content when Elementor missing */
body.home .page-content > h2:first-child,
body.home .page-content > ul:first-of-type {
	display: none;
}

/* Floating CTA — mobile only */
.ag-floating-cta {
	display: none;
}
@media (max-width: 991px) {
	.ag-floating-cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: fixed;
		bottom: 22px;
		right: 22px;
		z-index: 99999;
		padding: 14px 22px;
		border-radius: 999px;
		background: linear-gradient(135deg, #00d4d4, #00b8b8);
		color: #fff !important;
		font-weight: 700;
		font-size: .82rem;
		letter-spacing: .05em;
		text-decoration: none !important;
		box-shadow: 0 8px 32px rgba(0, 184, 184, .45);
		transition: transform .2s ease;
	}
	.ag-floating-cta:hover {
		transform: translateY(-2px);
		color: #fff !important;
	}

}

/* Header row alignment */
@media (min-width: 992px) {
	#header .header-row,
	#header .header-main .header-row {
		display: flex;
		align-items: center;
	}
	#header .header-col.header-right {
		display: flex;
		align-items: center;
		gap: 12px;
		margin-left: auto;
	}
	#header .elementor-element-f4ced8a .elementor-widget-wrap {
		display: flex;
		align-items: center;
		gap: 16px;
		flex-wrap: nowrap;
	}
	#header .elementor-element-b586061 {
		flex: 1 1 auto;
		min-width: 0;
	}
	#header .ag-header-cta {
		flex-shrink: 0;
		margin-left: 8px;
	}
}

/* Header nav: force single horizontal row (override Elementor 41% + inline-block wrap) */
@media (min-width: 992px) {
	#header .elementor-element-90e53cc > .elementor-container {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: clamp(12px, 2vw, 28px) !important;
	}
	#header .elementor-element-30d54a2 {
		flex: 0 0 auto !important;
	}
	.elementor-12 .elementor-element.elementor-element-f4ced8a,
	#header .elementor-element-f4ced8a {
		width: auto !important;
		max-width: none !important;
		flex: 1 1 auto !important;
		min-width: 0 !important;
	}
	#header .elementor-element-34c3bdb.elementor-hidden-desktop {
		display: none !important;
		flex: 0 0 0 !important;
		width: 0 !important;
		max-width: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
		overflow: hidden !important;
	}
	#header .elementor-element-f4ced8a .elementor-widget-wrap {
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		gap: clamp(8px, 1.2vw, 14px) !important;
		flex-wrap: nowrap !important;
		width: 100% !important;
	}
	#header .elementor-element-b586061 {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}
	#header .elementor-element-b586061 .main-menu,
	#header .elementor-element-b586061 #menu-main-menu {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: flex-end !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	#header .elementor-element-b586061 .main-menu > li.menu-item {
		flex: 0 0 auto !important;
		margin: 0 clamp(8px, 1.1vw, 18px) 0 0 !important;
	}
	#header .elementor-element-b586061 .main-menu > li.menu-item:last-child {
		margin-right: 0 !important;
	}
	#header .elementor-element-b586061 .main-menu > li.menu-item > a {
		white-space: nowrap !important;
		padding: 12px clamp(4px, 0.6vw, 10px) !important;
		font-size: clamp(12.5px, 0.95vw, 15px) !important;
		line-height: 1.2 !important;
	}
	#header .ag-header-cta {
		flex-shrink: 0 !important;
		margin-left: clamp(4px, 0.8vw, 10px) !important;
		padding: 10px clamp(12px, 1.2vw, 18px) !important;
		font-size: clamp(0.68rem, 0.75vw, 0.78rem) !important;
	}
}
