/*
 * Homepage UI/UX layer.
 *
 * Loaded after the inline <style> block in templates/header.php and after
 * design-tokens.css, so it can lean on the shared --bc-*/--yellow-*/--font-*
 * custom properties for the BadmintonClick visual language (black-first,
 * shuttle-yellow + sale-red accents, condensed italic display type).
 * Selectors that have to beat the per-page WPBakery CSS (which
 * ContentExtractor re-emits inside <body>, i.e. later in document order) are
 * deliberately written with an extra class of specificity - see
 * .quick-nav #thct.
 *
 * Nothing here changes copy: every rule is layout, spacing or colour.
 */

/* ---------------------------------------------------------------------
 * 3. Hero call-to-action ("Are you a beginner? Click Here")
 * A yellow pill CTA with a black circular arrow, on the dark hero band.
 * ------------------------------------------------------------------ */
.hero-cta {
	background: transparent;
}

.hero-cta-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 32px 56px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	flex-wrap: wrap;
}

.hero-cta-icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	filter: brightness(0) invert(1);
	opacity: .85;
}

.hero-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	background: var(--accent-energy);
	color: var(--bc-black);
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
	text-decoration: none;
	padding: 11px 11px 11px 26px;
	border-radius: var(--radius-pill);
	box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
	transition: transform var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out);
}

.hero-cta-btn::after {
	content: '\2192';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--bc-black);
	color: #fff;
	font-size: 15px;
	line-height: 1;
}

.hero-cta-btn:hover,
.hero-cta-btn:focus {
	filter: brightness(1.08);
	color: var(--bc-black);
	transform: translateY(-2px);
}

@media (max-width: 640px) {
	.hero-cta-inner { padding: 16px 20px 44px; gap: 12px; }
	.hero-cta-btn { font-size: 14px; padding: 10px 10px 10px 22px; }
	.hero-cta-icon { width: 32px; height: 32px; }
}

/* ---------------------------------------------------------------------
 * 4. Quick-nav tab bar (the 8-icon category strip)
 *
 * The legacy markup is ul#thct with floated 130px <li>s; those rules live
 * in the per-page WPBakery <style> that is emitted inside <body>, so every
 * selector below carries the .quick-nav class to outrank them.
 *
 * This is the sticky white bar the strip wears when it sits in the page.
 * On the homepage it is part of the hero band instead, marked .hero-strip
 * and dressed by home-v2.css - so the sticky treatment excludes it rather
 * than being undone rule by rule.
 * ------------------------------------------------------------------ */
.quick-nav:not(.hero-strip) {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 25;
	background: #fff;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	margin: 28px 0 0;
}

.quick-nav-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 12px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.quick-nav #thct {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 4px;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

.quick-nav #thct li {
	float: none;
	display: flex;
	list-style-type: none;
	border: 0;
	width: auto;
	max-width: none;
	flex: 1 1 0;
	min-width: 92px;
	padding: 0;
	text-align: center;
	position: relative;
	background: transparent;
	/* li#rle7 sets border-right with !important in the legacy page CSS. */
	border: 0 !important;
}

.quick-nav #thct li:hover {
	background: transparent;
	border-top: 0;
}

/*
 * These carry .quick-nav + #thct + li so they outrank the legacy
 * "ul#thct li a" rule (1 id, 2 elements) in the page-level WPBakery CSS,
 * which would otherwise force the link back to display:block and leave the
 * icons hugging the left edge of each tab.
 */
.quick-nav #thct li .quick-nav-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	height: auto;
	padding: 14px 6px 12px;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	border-radius: 10px 10px 0 0;
	transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.quick-nav #thct li .quick-nav-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--surface-sunken);
	transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

/* Consistent icon sizing: the source PNGs vary, so box them identically. */
.quick-nav #thct li img {
	display: block;
	width: 24px;
	height: 24px;
	max-width: 24px;
	object-fit: contain;
}

.quick-nav #thct li .quick-nav-label {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-secondary);
	transition: color var(--dur-fast) var(--ease-out);
}

.quick-nav #thct li .quick-nav-link:hover,
.quick-nav #thct li .quick-nav-link:focus {
	background: var(--surface-sunken);
	border-bottom-color: var(--accent-energy);
	outline: none;
}

.quick-nav #thct li .quick-nav-link:hover .quick-nav-icon,
.quick-nav #thct li .quick-nav-link:focus .quick-nav-icon {
	background: var(--accent-energy);
	transform: translateY(-2px);
}

.quick-nav #thct li .quick-nav-link:hover .quick-nav-label {
	color: var(--bc-black);
}

.quick-nav #thct li.is-active .quick-nav-link {
	background: var(--surface-sunken);
	border-bottom-color: var(--bc-black);
}

.quick-nav #thct li.is-active .quick-nav-icon {
	background: var(--bc-black);
}

.quick-nav #thct li.is-active .quick-nav-label {
	color: var(--bc-black);
}

@media (max-width: 900px) {
	.quick-nav #thct { justify-content: flex-start; }
	.quick-nav #thct li { flex: 0 0 auto; min-width: 84px; }
	.quick-nav-label { font-size: 9.5px; }
}

/* ---------------------------------------------------------------------
 * 5. "All Categories" directory panel
 * Reframed as a bordered browse tool so it reads differently from the
 * quick-nav tab bar above it.
 * ------------------------------------------------------------------ */
.cat-section.cat-directory {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	padding: 0;
	margin: 46px 0;
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.cat-directory-head {
	background: var(--surface-sunken);
	border-bottom: 1px solid var(--border);
	padding: 34px 40px 28px;
}

.cat-directory .cat-section-title {
	text-align: left;
	font-size: 30px;
	margin: 0 0 4px;
}

.cat-directory .cat-section-subtitle {
	text-align: left;
	margin: 0 0 22px;
}

.cat-directory .cat-section-controls {
	margin-bottom: 0;
}

.cat-directory .cat-search-input {
	border-radius: var(--radius-pill);
	padding-left: 44px;
}

.cat-directory .cat-expand-all {
	border-radius: var(--radius-pill);
	background: var(--bc-black);
	border-color: var(--bc-black);
	color: #fff;
}

.cat-directory .cat-expand-all:hover {
	filter: brightness(1.4);
}

.cat-directory .cat-grid {
	padding: 26px 40px 36px;
	gap: 16px;
}

.cat-directory .cat-accordion {
	border: 1px solid var(--border);
	box-shadow: none;
	transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
	scroll-margin-top: 104px;
}

.cat-directory .cat-accordion:hover,
.cat-directory .cat-accordion[open] {
	border-color: var(--border-strong);
	box-shadow: var(--shadow-md);
}

/* Brief highlight when a quick-nav tab jumps to this card. */
.cat-directory .cat-accordion.is-targeted {
	border-color: var(--accent-energy);
	box-shadow: 0 0 0 3px rgba(255, 212, 0, .35);
}

@media (max-width: 640px) {
	.cat-directory-head { padding: 24px 20px 20px; }
	.cat-directory .cat-grid { padding: 18px 20px 26px; }
	.cat-directory .cat-section-title { font-size: 24px; }
}

/* ---------------------------------------------------------------------
 * 6. "How To Play Badminton" intro reflow
 * ------------------------------------------------------------------ */
.home-intro .wpb_wrapper > h2,
.home-intro h2 {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 36px;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--bc-black);
	margin: 0 0 26px;
	text-align: center;
}

.home-intro-prose {
	columns: 2;
	column-gap: 56px;
	margin-bottom: 26px;
}

.home-intro-prose p {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	font-size: 16px;
	line-height: 1.75;
	margin: 0 0 1.15em;
}

.home-intro-lead {
	font-size: 17px;
	line-height: 1.7;
	font-weight: 700;
	color: var(--bc-black);
	margin: 0 0 20px;
	padding-left: 14px;
	border-left: 4px solid var(--accent-energy);
}

.home-intro-list {
	list-style: none !important;
	margin: 0 0 10px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.home-intro-list li {
	list-style: none;
	background: var(--surface-sunken);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 18px 20px;
	font-size: 15px;
	line-height: 1.65;
}

.home-intro-list li strong {
	display: block;
	color: var(--bc-black);
	margin-bottom: 4px;
}

@media (max-width: 900px) {
	.home-intro-prose { columns: 1; }
	.home-intro-list { grid-template-columns: 1fr; }
	.home-intro h2 { font-size: 27px; }
}

/* ---------------------------------------------------------------------
 * 8. Top navigation grouping (primary content vs. utility links)
 * Desktop: a pill rail. Phone: header.php's inline <style> turns
 * .nav-groups itself into the full-screen takeover panel (position:fixed);
 * this file only supplies what goes inside it at both widths.
 * ------------------------------------------------------------------ */
.nav-groups {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

.nav-groups .nav-list {
	max-width: none;
	margin: 0;
	padding: 0;
	justify-content: flex-start;
}

.nav-list-utility {
	position: relative;
	gap: 2px;
}

/* Divider marking where content links end and utility links begin. */
.nav-list-utility::before {
	content: '';
	position: absolute;
	left: -9px;
	top: 22%;
	bottom: 22%;
	width: 1px;
	background: rgba(255, 255, 255, .18);
}

.nav-list-utility .nav-item > a {
	color: rgba(255, 255, 255, .72);
	font-size: 11px;
}

.nav-list-utility .nav-item > a:hover {
	color: #fff;
}

.nav-item-store > a {
	background: #fff;
	color: var(--bc-black) !important;
	border-radius: 999px;
	padding: 8px 18px !important;
	margin-left: 8px;
	font-weight: 700 !important;
	letter-spacing: .1em !important;
	text-transform: uppercase;
	font-size: 10.5px !important;
}

.nav-item-store > a:hover {
	background: var(--accent-energy);
	color: var(--bc-black) !important;
}

/* Mega-menu panel for the wider groups. */
.nav-dropdown.nav-dropdown-mega {
	display: none;
	min-width: 460px;
	padding: 14px;
	columns: 2;
	column-gap: 10px;
}

.nav-item:hover > .nav-dropdown.nav-dropdown-mega,
.nav-item:focus-within > .nav-dropdown.nav-dropdown-mega {
	display: block;
}

.nav-dropdown.nav-dropdown-mega li {
	break-inside: avoid;
}

/* Keep the right-hand panels inside the viewport. */
.nav-list-utility .nav-dropdown,
.nav-item:last-child .nav-dropdown {
	left: auto;
	right: 0;
}

/* Matches the nav's own collapse breakpoint in templates/header.php. */
@media (max-width: 1100px) {
	.nav-groups .nav-list { max-height: none; overflow: visible; }

	.nav-list-utility { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 10px; padding-top: 16px; }
	.nav-list-utility::before { display: none; }

	/* The mega panel's own "display:none" outranks the generic
	 * ".nav-dropdown{display:block}" above, which left every child of the
	 * only mega group unreachable on phones. Restate display here. */
	.nav-dropdown.nav-dropdown-mega,
	.nav-item:hover > .nav-dropdown.nav-dropdown-mega,
	.nav-item:focus-within > .nav-dropdown.nav-dropdown-mega {
		display: block;
		columns: 1;
		min-width: 0;
		padding: 0;
	}

	.nav-item-store > a { margin-left: 0; display: inline-flex; }
}

/* ---------------------------------------------------------------------
 * 10. Site footer base (every page). body.home-v2 in home-v2.css layers
 * the rounded top corners and larger spacing on top of this.
 * ------------------------------------------------------------------ */
#colophon {
	background: var(--bc-black);
	padding: 40px 0 30px;
}

.site-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

#colophon .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
}

#colophon .menu li { list-style: none; margin: 0; }

#colophon .menu li a {
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, .8);
	text-decoration: none;
}

#colophon .menu li a:hover { color: var(--accent-energy); }

.site-footer-divider {
	width: 100%;
	max-width: 700px;
	height: 1px;
	background: rgba(255, 255, 255, .12);
}

.site-footer-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px 24px;
}

#colophon .textwidget,
#colophon .textwidget a {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: .06em;
	color: rgba(255, 255, 255, .62);
}

#colophon .textwidget strong { color: rgba(255, 255, 255, .88); font-weight: 700; }

.site-footer-top {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: var(--radius-pill);
	color: rgba(255, 255, 255, .8);
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	padding: 9px 18px;
	text-decoration: none;
	display: inline-block;
}

.site-footer-top:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------------------------------------------------------------------
 * 9. "Where to Play" map (where-to-play-in-australia.html)
 * ------------------------------------------------------------------ */
.wtp-map-wrap {
	position: relative;
	width: 100%;
	padding-bottom: 66%;
	height: 0;
	overflow: hidden;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	margin: 22px 0 30px;
}

.wtp-map {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 640px) {
	.wtp-map-wrap { padding-bottom: 120%; border-radius: var(--radius-md); }
}
