/* =========================================================
   MSYS Mobile Bottom Sheet Menu
   - Hidden on desktop by default
   - Enabled only on touch devices <= 1024px
   ========================================================= */

/* Desktop: completely remove from layout */
.msys-sheet,
.msys-sheet-trigger {
  display: none !important;
}

/* Only apply on mobile touch devices. Adjust breakpoint if needed */
@media (max-width: 1024px) and (pointer: coarse) {

  /* -------------------------
	 Tunables
	 ------------------------- */
  :root{
	--msys-mobile-header-h: 64px; /* sticky header height */
	--msys-trigger-y: -3.5px;     /* hamburger vertical fine tune */
	--msys-panel-gutter: 10px;    /* outer sheet gutter */
  }

  /* Show our trigger + sheet on mobile (sheet still hidden via opacity until open) */
  .msys-sheet,
  .msys-sheet-trigger { display: block !important; }

  /* Hide Genesis responsive hamburger + desktop menu on mobile */
  .nav-header .responsive-menu-icon { display: none !important; }
  #nav_menu-3 { display: none !important; }

  /* ============================================
	 Sticky mobile header
	 ============================================ */
  .site-header{
	position: sticky !important;
	top: 0 !important;
	z-index: 100001 !important;
	min-height: var(--msys-mobile-header-h);
  }

  .site-header .wrap{
	position: relative;
	z-index: 100001;
  }

  /* Reduce iOS tap highlight artifacts */
  .msys-sheet-trigger,
  .msys-sheet__close,
  .msys-acc__toggle{
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-touch-callout: none;
	user-select: none;
	touch-action: manipulation;
	-webkit-appearance: none;
	appearance: none;
  }

  /* =========================
	 Trigger button (hamburger)
	 ========================= */
  .msys-sheet-trigger{
	position: fixed !important;
	left: 12px !important;
	top: calc(
	  env(safe-area-inset-top, 0px) + (var(--msys-mobile-header-h) / 2) + var(--msys-trigger-y)
	) !important;
	transform: translateY(-50%) !important;
	z-index: 100002 !important;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 44px;
	height: 44px;
	padding: 0;

	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;

	cursor: pointer;
	border-radius: 12px;
  }

  /* Kill any theme focus/active transforms that cause "jump" */
  .msys-sheet-trigger:focus,
  .msys-sheet-trigger:active,
  .msys-sheet-trigger:focus-visible{
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	transform: translateY(-50%) !important;
  }

  .msys-sheet-trigger{
	color: #fff !important;            /* lock icon color */
	-webkit-text-fill-color: #fff;     /* iOS Safari oddities */
  }
  
  /* Make the pseudo-element an actual box */
  .msys-sheet-trigger::before{
	display: block;
	width: 24px;
	height: 24px;
	line-height: 24px;
	pointer-events: none;              /* never steal taps */
  }
  
  /* IMPORTANT: do NOT fade the whole button */
  .msys-sheet-trigger:active{
	opacity: 1 !important;
  }
  
  /* If you still want a press effect, fade ONLY the icon */
  .msys-sheet-trigger:active::before{
	opacity: .75;
  }

  /* Kill legacy hamburger span entirely */
  .msys-sheet-trigger__icon{
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	pointer-events: none !important;
  }
	
  .msys-sheet-trigger::before{
	content: "\e195"; /* grid */
	font-family: "Font Awesome 7 Pro", "Font Awesome 7 Free";
	font-weight: 900;
	font-size: 20px;
   }

  /* =========================
	 Sheet base + animations
	 ========================= */
  .msys-sheet{
	position: fixed;
	inset: 0;
	z-index: 99999;

	opacity: 0;
	pointer-events: none;
	transition: opacity 400ms ease;
  }

  .msys-sheet.is-open{
	opacity: 1;
	pointer-events: auto;
  }

  .msys-sheet__backdrop{
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.35);

	opacity: 0;
	transition: opacity 400ms ease;
	will-change: opacity;
  }
  .msys-sheet.is-open .msys-sheet__backdrop{ opacity: 1; }

  /* Panel: cap height so it never collides with sticky header */
  .msys-sheet__panel{
	position: absolute;
	left: var(--msys-panel-gutter);
	right: var(--msys-panel-gutter);
	bottom: var(--msys-panel-gutter);

	width: auto;

	/* tighter + prevents collision with sticky header */
	max-height: calc(
	  100vh - var(--msys-mobile-header-h) - env(safe-area-inset-top, 0px) - 22px
	);

	background: #1a63af;
	border-radius: 22px;

	transform: translateY(110%);
	transition: transform 400ms cubic-bezier(.2,.8,.2,1);
	will-change: transform;

	display: flex;
	flex-direction: column;
	overflow: hidden;
  }

  .msys-sheet.is-open .msys-sheet__panel{ transform: translateY(0); }

  .msys-sheet__handle{
	width: 44px;
	height: 5px;
	border-radius: 10px;
	background: rgba(255,255,255,.35);
	margin: 8px auto 6px; /* tighter */
  }

  /* =========================
	 Header (brand + close)
	 ========================= */
  .msys-sheet__header{
	display: flex;
	align-items: center;
	justify-content: space-between;

	padding: 12px 16px; /* tighter */
	border-bottom: 1px solid rgba(255,255,255,.14);
  }

  .msys-sheet__brand{
	color: #fff;
	font-weight: 800;
	letter-spacing: .10em;
	font-size: 15px; /* slightly tighter */
	text-transform: uppercase;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 10px;
  }

  .msys-sheet__close{
	border: 0;
	background: rgba(255,255,255,.14);
	color: #fff;

	width: 40px;
	height: 40px;
	border-radius: 14px;
	cursor: pointer;

	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: 22px;

	outline: 0 !important;
	box-shadow: none !important;
  }

  /* =========================
	 Nav list
	 ========================= */
  .msys-sheet__nav{
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 6px 10px 10px; /* tighter */
  }

  .msys-sheet-menu,
  .msys-sheet-menu .sub-menu{
	list-style: none;
	margin: 0;
	padding: 0;
  }

  .msys-sheet-menu > li{
	border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .msys-sheet-menu a{
	color: #fff;
	text-decoration: none;

	display: flex;
	align-items: center;

	padding: 12px 10px; /* tighter */
	font-size: 17px;    /* slightly tighter */
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .03em;
  }

  /* =========================
	 Font Awesome icons (menu)
	 ========================= */
  .msys-sheet .msys-sheet-menu > li > a::before,
  .msys-sheet .msys-sheet-menu .sub-menu > li > a::before{
	display: inline-block;
	width: 22px;
	min-width: 22px;
	text-align: center;
	margin-right: 10px;
	line-height: 1;
	opacity: 0.95;

	font-family: "Font Awesome 7 Pro", "Font Awesome 7 Free";
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
  }

  .msys-sheet .msys-sheet-menu > li.msys-ico-home > a::before       { content: "\f015"; font-weight: 900; }
  .msys-sheet .msys-sheet-menu > li.msys-ico-basketball > a::before { content: "\f434"; font-weight: 900; }
  .msys-sheet .msys-sheet-menu > li.msys-ico-soccer > a::before     { content: "\f1e3"; font-weight: 900; }
  .msys-sheet .msys-sheet-menu > li.msys-ico-volleyball > a::before { content: "\f45f"; font-weight: 900; }
  .msys-sheet .msys-sheet-menu > li.msys-ico-register > a::before   { content: "\f14a"; font-weight: 900; }
  .msys-sheet .msys-sheet-menu > li.msys-ico-faq > a::before        { content: "\f059"; font-weight: 900; }
  .msys-sheet .msys-sheet-menu > li.msys-ico-dashboard > a::before  { content: "\f624"; font-weight: 900; }

  .msys-sheet .msys-sheet-menu .sub-menu > li > a::before{
	content: "\f105";
	font-weight: 900;
	opacity: 0.6;
  }

  .msys-sheet .msys-sheet-menu .msys-dynamic > a::before{
	content: "\f073";
	font-weight: 400;
	opacity: 0.85;
  }

  /* =========================
	 Accordion toggle
	 ========================= */
  .msys-acc{ position: relative; }

  .msys-sheet .msys-acc > a{ padding-right: 64px; }

  /* IMPORTANT: hard-reset button to kill the press/warp */
  .msys-sheet .msys-acc__toggle{
	all: unset; /* nukes theme + UA button styles (fixes the “mess” on press) */
	box-sizing: border-box;

	position: absolute;
	right: 10px;
	top: 9px;

	width: 38px;
	height: 38px;

	display: flex;
	align-items: center;
	justify-content: center;

	background: rgba(255,255,255,.14);
	color: #fff;
	border-radius: 12px;
	cursor: pointer;

	line-height: 1;
	font-size: 20px;

	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-appearance: none;
	appearance: none;

	outline: none;
	box-shadow: none;

	overflow: hidden; /* prevents inner square artifacts */
  }

  /* Absolutely no visual change on press/focus */
  .msys-sheet .msys-acc__toggle:hover,
  .msys-sheet .msys-acc__toggle:active,
  .msys-sheet .msys-acc__toggle:focus,
  .msys-sheet .msys-acc__toggle:focus-visible{
	background: rgba(255,255,255,.14) !important;
	border-radius: 14px !important;
	outline: none !important;
	box-shadow: none !important;
	filter: none !important;
	transform: none !important;
	opacity: 1 !important;
  }

  .msys-acc__toggle span{
	display: block;
	transform: translateY(-1px);
	transition: transform 400ms ease;
  }

  .msys-acc.is-expanded .msys-acc__toggle span{
	transform: rotate(180deg);
  }

  .msys-acc__panel{
	overflow: hidden;
	transition: max-height 400ms ease;
	background: rgba(0,0,0,.08);
  }

  .msys-acc__panel a{
	font-size: 14px;      /* tighter */
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	padding: 10px 10px 10px 18px; /* tighter */
  }

  /* =========================
	 Footer
	 ========================= */
  .msys-sheet__footer{
	padding: 10px 14px 12px; /* tighter */
	//border-top: 1px solid rgba(255,255,255,.14);
  }

  .msys-sheet__footer-btn{
	display: block;
	text-align: center;
	background: rgba(255,255,255,.18);
	color: #fff;
	text-decoration: none;
	padding: 10px 14px; /* tighter */
	border-radius: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
  }

  .msys-sheet__social{
	display: flex;
	gap: 10px;
	margin-top: 10px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	justify-content: center;
  }

  .msys-sheet__social a{
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: rgba(255,255,255,.14);

	display: flex;
	align-items: center;
	justify-content: center;

	text-decoration: none;
  }

  /* Social icons: Font Awesome Brands */
  .msys-sheet__social a::before {
	display: block;
	font-family: "Font Awesome 7 Brands";
	font-weight: 400;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	line-height: 1;
	font-size: 20px;
	color: #fff;
	opacity: .95;
	content: "";
  }

  .msys-sheet__social a.msys-social-facebook::before  { content: "\f09a"; }
  .msys-sheet__social a.msys-social-instagram::before { content: "\f16d"; }
  .msys-sheet__social a.msys-social-twitter::before   { content: "\e61a"; }

  /* =========================
	 Scroll lock
	 ========================= */
  html.msys-sheet-open,
  body.msys-sheet-open{
	overflow: hidden;
	height: 100%;
  }
  
  /* =========================
	 Menu typography
	 ========================= */
  .msys-sheet__nav,
  .msys-sheet__nav a,
  .msys-sheet__nav button {
	font-family: 'Outfit', sans-serif;
  }
  
  /* Top-level menu items (parents) */
  .msys-sheet-menu > li > a {
	font-weight: 400; 
  }
  
  /* Sub-menu text styling */
  .msys-acc__panel a {
	text-transform: uppercase;
	letter-spacing: 0.04em; /* optional: matches parents */
  }
  
  .msys-acc__panel a {
	font-size: 14px; /* was 15px */
	font-weight: 700;
  }
}