/*
Theme Name: Jumper Bee
Theme URI: https://jumperbee.com/
Author: Jumper Bee Entertainment
Description: Custom theme for Jumper Bee Entertainment — bounce house and party rentals serving Dallas-Fort Worth and Texas.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jumperbee
*/

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

html, body {
	margin: 0;
	padding: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #222;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

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

a { color: #0d1b3d; }

/* SITE TOP BAR (utility nav) */
.site-topbar {
	background: #eef0f3;
	color: #0d1b3d;
	position: sticky;
	top: 0;
	z-index: 51;
	border-bottom: 1px solid rgba(13,27,61,.08);
	font-size: .8125rem;
}
@media (min-width: 783px) {
	.admin-bar .site-topbar { top: 32px; }
}
.site-topbar__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 1.25rem;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.site-topbar__tagline {
	display: none;
	align-items: center;
	gap: .4em;
	color: #3a4a6b;
	font-weight: 500;
	white-space: nowrap;
}
.site-topbar__tagline .jb-icon {
	width: 14px;
	height: 14px;
	color: #00a6ff;
	flex-shrink: 0;
}
.site-topbar__sep { color: #b0b8c9; }
@media (min-width: 640px) {
	.site-topbar__tagline { display: inline-flex; }
}
.site-topbar__nav {
	display: flex;
	gap: 1.25rem;
	margin-left: auto;
}
.site-topbar__nav a {
	color: #3a4a6b;
	text-decoration: none;
	line-height: 30px;
	transition: color .15s ease;
}
.site-topbar__nav a:hover,
.site-topbar__nav a:focus { color: #0d1b3d; }

/* SITE HEADER */
.site-header {
	background: #ffffff;
	color: #0d1b3d;
	position: sticky;
	top: 30px;
	z-index: 50;
	box-shadow: 0 2px 14px rgba(13,27,61,.08);
	border-bottom: 1px solid rgba(13,27,61,.06);
}
@media (min-width: 783px) {
	.admin-bar .site-header { top: 62px; }
}
.site-header__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: .85rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.site-brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	color: #0d1b3d;
	text-decoration: none;
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
}
.site-brand img {
	height: 44px;
	width: auto;
	display: block;
	transition: transform .18s ease, filter .18s ease;
}
.site-brand:hover img { transform: translateY(-2px); }
a.site-brand:focus img { filter: brightness(1.35) saturate(0.7); }
.site-brand:active img { transform: translateY(1px); transition-duration: .05s; }
.site-brand__name { line-height: 1; }

/* ---------- Shared button system ----------
   High-specificity selectors (a.jb-btn[...]) so .jb-home p > a and similar
   container rules cannot override color / underline on buttons.
   Variants:
     .jb-btn--primary  = brand blue filled (any bg)
     .jb-btn--secondary = outline for dark backgrounds (white text/border)
     .jb-btn--outline   = outline for light backgrounds (dark text/border)
*/
.jb-btn,
a.jb-btn,
button.jb-btn,
input.jb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: 1.05rem 1.85rem;
	border-radius: 999px;
	font-weight: 800;
	font-family: "Fredoka", "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1.02rem;
	line-height: 1.15;
	letter-spacing: .01em;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .15s ease, box-shadow .15s ease, background .15s, color .15s, border-color .15s;
}
a.jb-btn:hover, a.jb-btn:focus { text-decoration: none; }
a.jb-btn:focus-visible, button.jb-btn:focus-visible {
	outline: 3px solid rgba(0,166,255,.55);
	outline-offset: 3px;
}

a.jb-btn.jb-btn--primary,
.jb-btn.jb-btn--primary,
button.jb-btn.jb-btn--primary {
	background: #00a6ff;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
a.jb-btn.jb-btn--primary:hover,
.jb-btn.jb-btn--primary:hover,
button.jb-btn.jb-btn--primary:hover {
	background: #0077cc;
	color: #fff;
	transform: translateY(-2px);
}

a.jb-btn.jb-btn--secondary,
.jb-btn.jb-btn--secondary {
	background: transparent;
	color: #fff;
	border-color: #fff;
}
a.jb-btn.jb-btn--secondary:hover,
.jb-btn.jb-btn--secondary:hover {
	background: #fff;
	color: #0d1b3d;
}

a.jb-btn.jb-btn--outline,
.jb-btn.jb-btn--outline {
	background: transparent;
	color: #0d1b3d;
	border-color: #0d1b3d;
}
a.jb-btn.jb-btn--outline:hover,
.jb-btn.jb-btn--outline:hover {
	background: #0d1b3d;
	color: #fff;
}

/* MEGAMENU + HAMBURGER (mobile-first) */
.jb-nav-toggle { position: absolute; left: -9999px; }

.jb-hamburger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: #00a6ff;
	border-radius: 10px;
	cursor: pointer;
	order: 2;
}
.jb-hamburger span {
	display: block;
	width: 22px;
	height: 3px;
	background: #fff;
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}
.jb-nav-toggle:checked ~ .jb-hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.jb-nav-toggle:checked ~ .jb-hamburger span:nth-child(2) { opacity: 0; }
.jb-nav-toggle:checked ~ .jb-hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.jb-megamenu {
	display: none;
	width: 100%;
	order: 99;
	margin-top: .75rem;
	max-height: 70vh;
	overflow-y: auto;
}
.jb-nav-toggle:checked ~ .jb-megamenu { display: block; }

.jb-mm { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.jb-mm__item { border-top: 1px solid rgba(13,27,61,.1); }
.jb-mm__item:last-child { border-bottom: 1px solid rgba(13,27,61,.1); }
.jb-mm__top {
	color: #0d1b3d;
	text-decoration: none;
	font-weight: 700;
	padding: .9rem .25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 1rem;
}
.jb-mm__top:hover { color: #00a6ff; }
.jb-mm__caret { font-size: .8em; opacity: .7; margin-left: .45em; }
.jb-mm__panel { padding: 0 0 1rem; }
.jb-mm__grid { display: flex; flex-direction: column; gap: 1rem; }
.jb-mm__col h4 {
	color: #00a6ff;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin: 0 0 .5rem;
	font-weight: 800;
}
.jb-mm__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .1rem; }
.jb-mm__col a {
	color: #4a5470;
	text-decoration: none;
	font-size: .95rem;
	padding: .4rem .75rem;
	display: block;
	border-radius: 6px;
}
.jb-mm__col a:hover { color: #00a6ff; background: #f0f9ff; }
.jb-mm__top.is-pending { color: #b5bccb; }
.jb-mm__col a.is-pending { color: #b5bccb; }

@media (min-width: 1024px) {
	.jb-hamburger, .jb-nav-toggle { display: none; }
	.site-brand img {
		height: 69px;
		width: auto;
		display: block;
		position: absolute;
		margin-top: 22px;
	}
	nav.jb-megamenu {
		margin-left: 142px;
	}
	.jb-megamenu {
		display: block;
		flex: 1;
		order: 0;
		width: auto;
		margin: 0;
		max-height: none;
		overflow: visible;
	}
	.jb-mm {
		flex-direction: row;
		justify-content: center;
		gap: 0;
	}
	.jb-mm__item, .jb-mm__item:last-child { border: 0; position: relative; }
	.jb-mm__top {
		padding: .55rem .6rem;
		border-radius: 8px;
		font-size: .95rem;
	}
	.jb-mm__top:hover, .jb-mm__item--has-panel:hover > .jb-mm__top,
	.jb-mm__item--has-panel:focus-within > .jb-mm__top {
		background: #f0f9ff;
		color: #00a6ff;
	}
	.jb-mm__panel {
		position: absolute;
		top: 100%;
		left: 0;
		background: #fff;
		color: #1a1626;
		padding: 1.5rem;
		border-radius: 14px;
		box-shadow: 0 24px 60px rgba(0,0,0,.28);
		min-width: 280px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity .15s, transform .15s, visibility .15s;
		z-index: 100;
		border-top: 4px solid #00a6ff;
		margin-top: .25rem;
	}
	.jb-mm__item--has-panel:hover > .jb-mm__panel,
	.jb-mm__item--has-panel:focus-within > .jb-mm__panel {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	.jb-mm__grid { flex-direction: row; gap: 2rem; }
	.jb-mm__col { min-width: 180px; }
	.jb-mm__col h4 {
		color: #0d1b3d;
		border-bottom: 2px solid #00a6ff;
		padding-bottom: .4rem;
		margin-bottom: .6rem;
	}
	.jb-mm__col a { color: #333; }
	.jb-mm__col a:hover { color: #00a6ff; background: #f0f9ff; }
}

.site-header__phone {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	background: #00a6ff;
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	padding: .55rem 1rem;
	border-radius: 999px;
	font-size: .95rem;
	white-space: nowrap;
}
.site-header__phone:hover { background: #0077cc; color: #fff; }

/* ---------- SITE FOOTER ---------- */
.site-footer {
	background:
		radial-gradient(ellipse at 85% 0%, rgba(0,166,255,.18), transparent 55%),
		radial-gradient(ellipse at 10% 100%, rgba(123,63,242,.18), transparent 50%),
		linear-gradient(180deg, #0d1b3d 0%, #0a1530 100%);
	color: #c8d0e0;
	margin-top: 0;
	font-size: .95rem;
	line-height: 1.6;
}

.site-footer__main {
	max-width: 1440px;
	margin: 0 auto;
	padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}
@media (min-width: 640px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
	.site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 2.5rem; }
}

.site-footer h3 {
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin: 0 0 1rem;
	font-family: "Fredoka", "Baloo 2", system-ui, sans-serif;
}

.site-footer a {
	color: #c8d0e0;
	text-decoration: none;
	transition: color .15s ease;
}
.site-footer a:hover { color: #ffd400; }

.site-footer__brand .site-footer__logo {
	display: inline-block;
	margin-bottom: 1.25rem;
}
.site-footer__brand .site-footer__logo img {
	height: 50px;
	width: auto;
}
.site-footer__tagline {
	margin: 0 0 1.25rem;
	max-width: 36ch;
	color: #a9b2c7;
}
.site-footer__contact {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}
.site-footer__contact a {
	color: #fff;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: .45em;
}
.site-footer__contact a:hover { color: #ffd400; }
.site-footer__sep { color: #4a5573; margin: 0 .35em; }
.site-footer__hours { color: #8e99b3; font-size: .9rem; }

.site-footer__col ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: .55rem;
}
.site-footer__col a { display: inline-block; }

.site-footer__cta p { margin: 0 0 1rem; color: #a9b2c7; }
.site-footer__cta-btn { margin: .25rem 0 1rem; }
.site-footer__cta .jb-btn { font-size: 1rem; padding: .9rem 1.5rem; }
.site-footer__sub a {
	color: #ffd400;
	font-weight: 600;
	font-size: .9rem;
}
.site-footer__sub a:hover { color: #fff; }

.site-footer__bar {
	border-top: 1px solid rgba(255,255,255,.08);
	background: rgba(0,0,0,.2);
}
.site-footer__bar-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	font-size: .85rem;
	color: #8e99b3;
}
.site-footer__bar-inner p { margin: 0; }
.footer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}
.footer-nav a { font-weight: 600; color: #a9b2c7; }
.footer-nav a:hover { color: #fff; }

/* ---------- INLINE ICONS ---------- */
.jb-icon--inline {
	width: 1em;
	height: 1em;
	vertical-align: -.125em;
	flex-shrink: 0;
}
.jb-icon--star {
	width: 1.1em;
	height: 1.1em;
	color: var(--jb-yellow, #ffd400);
	fill: currentColor;
	stroke: currentColor;
	vertical-align: -.2em;
}
.jb-icon--placeholder {
	width: 64px;
	height: 64px;
	color: #c4ccdd;
	opacity: .7;
}
.jb-mm__caret .jb-icon--inline {
	width: .9em;
	height: .9em;
}
