/* Gentle Giants Menu — standalone plugin styles */
/* Fully self-contained: no Bootstrap component classes (offcanvas, collapse,
   dropdown) and no dependency on stylesheet load order against the theme.
   Mobile-first: the base rules below ARE the phone flyout. Desktop-only
   behaviour (inline pills, hover mega dropdown) is added back inside a
   min-width media query at the bottom, so it structurally cannot leak into
   the mobile layout regardless of CSS specificity. */
.ggm-header .navbar {
	padding-top: 10px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f4ebdd;
}

/* Hamburger toggle button (mobile only) */

.ggm-toggler {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	flex-shrink: 0;
}

.ggm-toggler span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--brown);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ggm-toggler[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.ggm-toggler[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.ggm-toggler[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* An actual "Register" menu item, if one exists in the menu, gets this gold
   pill styling automatically (see GG_Walker_Nav_Menu::is_register_item). */

.gg-btn-register > .ggm-nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--master);
	color: var(--brown);
	font-weight: 700;
	font-size: 15px;
	padding: 10px 26px;
	border-radius: 999px;
	border: 0;
	text-decoration: none;
	transition: background-color 0.18s ease;
}

.gg-btn-register > .ggm-nav-link:hover,
.gg-btn-register > .ggm-nav-link:focus-visible {
	background: var(--master-hover);
	color: var(--brown);
}

.gg-btn-register {
	margin-top: 10px;
}

.gg-btn-register > .ggm-nav-link {
	justify-content: center;
}

/* Notice */

.ggm-notice {
	padding: 14px 24px;
	background: #fff3cd;
	color: #664d03;
	font-size: 14px;
}

/* ===================================================================
   MOBILE BASE (default) — the right-side flyout panel
   =================================================================== */

.ggm-panel {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 320px;
	max-width: 85vw;
	background: var(--light-cream);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	z-index: 1045;
	box-shadow: 12px 0 40px rgba(40, 30, 20, 0.2);
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
}

.ggm-panel.show {
	transform: translateX(0);
}

.ggm-panel-head {
	display: flex;
	justify-content: flex-end;
	padding: 20px 20px 0;
	flex-shrink: 0;
}

.ggm-panel-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 0;
	background: var(--brown-hoverbg);
	color: var(--brown);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ggm-panel-body {
	padding: 12px 20px 32px;
}

.ggm-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(46, 38, 32, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 1040;
}

.ggm-backdrop.show {
	opacity: 1;
	visibility: visible;
}

body.ggm-panel-open {
	overflow: hidden;
}

.ggm-menu {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ggm-menu > li {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px;
}

.ggm-nav-link {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	border-radius: 12px;
	color: var(--brown);
	text-decoration: none;
	font-size: 16px;
	font-weight: 700;
	transition: background-color 0.18s ease, color 0.18s ease;
}
.ggm-nav-link:hover {
	background-color: var(--brown-hoverbg);
	color: var(--brown);
}

.ggm-menu > li.current-menu-item > .ggm-nav-link,
.ggm-menu > li.current_page_item > .ggm-nav-link,
.ggm-menu > li.current-menu-ancestor > .ggm-nav-link {
	background: var(--brown-activebg);
	color:#4a5f6f;
}

/* Separate tap target for opening/closing a section's children — the link
   next to it stays a normal, independently-navigable link. */
.gg-caret-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border: 0;
	border-radius: 10px;
	background: none;
	padding: 0;
	margin: 0;
	color: var(--brown);
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.gg-has-dropdown.ggm-open > .gg-caret-btn {
	background-color: var(--brown-hoverbg);
}

.gg-caret {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.18s ease;
	flex-shrink: 0;
	position: relative;
	top: -2px;
}

.gg-has-dropdown.ggm-open .gg-caret {
	transform: rotate(45deg);
}

/* Dropdown children toggle open/closed on tap — collapsed by default. */

.gg-dropdown {
	display: none;
	flex-basis: 100%;
	background: transparent;
	box-shadow: none;
	padding: 0;
	margin: 4px 0 0;
	min-width: 0;
	width: 100%;
}

.gg-has-dropdown.ggm-open > .gg-dropdown {
	display: block;
}

.gg-dropdown-list,
.gg-dropdown .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.gg-dropdown-list li + li {
	margin-top: 2px;
}

.gg-dropdown-link {
	display: block;
	padding: 10px 14px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	color: var(--brown);
	transition: background-color 0.15s ease;
}

.gg-dropdown-link:hover {
	background-color: var(--brown-hoverbg);
	color: var(--brown);
}

.gg-dropdown-list li.current-menu-item > .gg-dropdown-link,
.gg-dropdown .sub-menu li.current-menu-item > .gg-dropdown-link {
	background: var(--brown-activebg);
}

.gg-dropdown-title {
	display: block;
	color: var(--brown);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
}

.gg-dropdown-desc {
	display: none;
}

.gg-dropdown .sub-menu .gg-dropdown-link {
	padding-left: 28px;
}

/* Top-level items with children become small-caps section labels on the
   mobile flyout only — scoped here (not !important) so it can never block
   the desktop hover-pill background further down. */
@media (max-width: 991px) {
	.ggm-menu > li.gg-has-dropdown > .ggm-nav-link {
		padding: 4px 14px;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--orange);
		background: none;
		margin-top: 10px;
	}

	.ggm-menu > li.gg-has-dropdown:first-child > .ggm-nav-link {
		margin-top: 0;
	}

	.ggm-menu > li.gg-has-dropdown > .gg-caret-btn {
		color: var(--orange);
	}
}

/* ===================================================================
   DESKTOP (>= 992px) — inline pills + hover mega dropdown.
   Everything here only exists above the breakpoint, so it can never
   affect the mobile flyout above, no matter how CSS specificity shakes out.
   =================================================================== */

@media (min-width: 992px) {
	.ggm-toggler {
		display: none;
	}

	.ggm-panel {
		position: static;
		width: auto;
		max-width: none;
		background: transparent;
		transform: none;
		transition: none;
		box-shadow: none;
		overflow: visible;
		display: contents;
	}

	.ggm-panel-head {
		display: none;
	}

	.ggm-panel-body {
		display: contents;
	}

	.ggm-backdrop {
		display: none;
	}

	.ggm-menu {
		flex-direction: row;
		align-items: center;
		gap: 4px;
		width: auto;
	}

	.ggm-menu > li {
		width: auto;
		gap: 0;
	}

	.ggm-nav-link {
		padding: 10px 18px;
		border-radius: 999px;
		font-size: 15px;
		white-space: nowrap;
	}

	.ggm-menu > li:not(.gg-btn-register):not(.gg-has-dropdown) > .ggm-nav-link:hover,
	.ggm-menu > li:not(.gg-btn-register):not(.gg-has-dropdown) > .ggm-nav-link:focus-visible {
		background: var(--brown-hoverbg);
	}

	/* Items with a dropdown: the <li> itself is the pill, so the link label
	   and the arrow button merge into one seamless shape with no visible seam. */
	.ggm-menu > li.gg-has-dropdown {
		display: flex;
		align-items: stretch;
		border-radius: 999px;
		transition: background-color 0.18s ease;
	}

	.ggm-menu > li.gg-has-dropdown > .ggm-nav-link {
		padding-right: 4px;
	}

	.ggm-menu > li.gg-has-dropdown.current-menu-item > .ggm-nav-link,
	.ggm-menu > li.gg-has-dropdown.current_page_item > .ggm-nav-link,
	.ggm-menu > li.gg-has-dropdown.current-menu-ancestor > .ggm-nav-link {
		background: none;
	}

	.ggm-menu > li.gg-has-dropdown.current-menu-item,
	.ggm-menu > li.gg-has-dropdown.current_page_item,
	.ggm-menu > li.gg-has-dropdown.current-menu-ancestor {
		background: var(--brown-activebg);
	}

	.ggm-menu > li.gg-has-dropdown:hover,
	.ggm-menu > li.gg-has-dropdown.ggm-open {
		background: var(--brown-hoverbg);
	}

	.gg-has-dropdown > .gg-caret-btn {
		width: auto;
		height: auto;
		align-self: stretch;
		padding: 0 16px 0 2px;
		border-radius: 0 999px 999px 0;
	}

	.gg-has-dropdown:hover > .gg-caret-btn,
	.gg-has-dropdown.ggm-open > .gg-caret-btn {
		background: none;
	}

	.gg-caret {
		transform: rotate(45deg);
	}

	.gg-has-dropdown.ggm-open .gg-caret {
		transform: rotate(-135deg);
	}

	.gg-dropdown {
		display: block;
		position: absolute;
		top: calc(100% + 10px);
		left: 0;
		width: auto;
		min-width: 280px;
		margin: 0;
		background: #fff;
		border-radius: 16px;
		box-shadow: 0 20px 45px rgba(40, 30, 20, 0.15);
		padding: 10px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
		z-index: 200;
	}

	.gg-has-dropdown.ggm-open > .gg-dropdown,
	.gg-has-dropdown:hover > .gg-dropdown {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.gg-dropdown-link:hover,
	.gg-dropdown-link:focus-visible {
		background: var(--brown-hoverbg);
	}

	.gg-dropdown-list li.current-menu-item > .gg-dropdown-link,
	.gg-dropdown .sub-menu li.current-menu-item > .gg-dropdown-link {
		background: var(--brown-activebg);
	}

	.gg-dropdown-title {
		font-size: 15px;
	}

	.gg-dropdown-desc {
		display: block;
		color: var(--ggm-muted);
		font-size: 13px;
		font-weight: 400;
		margin-top: 4px;
		line-height: 1;
	}

	.gg-btn-register {
		margin-left: 8px;
		margin-top: 0;
	}
}

/* Standalone "Register" button in the header markup — not tied to any menu
   item or selector above. */

.ggm-btn-register {
	display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:124px;
    height:50px;
    padding:0 28px;
    background:var(--master);
    color:#5C4216;
    font-size:16px;
    font-weight:800 !important;
    text-decoration:none;
    border:none;
    border-radius:999px;
    cursor:pointer;
    box-shadow:
        0 5px 0 #C89E45,
        0 12px 20px rgba(227,184,95,.22);
    transition:all .25s ease;
	position:relative;
    overflow:visible;
	font-family: "Baloo 2", sans-serif;
}

.ggm-btn-register:hover{
	color:#5C4216;
	background:var(--master-hover);
    box-shadow:
        0 2px 0 #D5A94E,
        0 10px 24px rgba(227,184,95,.35);
    transform:translateY(-1px);
}
.ggm-btn-register:active{
    transform:translateY(2px);
    box-shadow:
        0 2px 0 #C89E45,
        0 6px 12px rgba(227,184,95,.2);
}
.ggm-btn-register::after{
    content:"";
    position:absolute;
    left:1%;
    right:1%;
    bottom:-12px;
    height:18px;
    border-radius:50%;
    background:rgba(227,184,95,.7);
    filter:blur(12px);
    opacity:0;
    transition:.3s;
    z-index:-1;
}
.ggm-btn-register:hover::after{
    opacity:1;
    bottom:-10px;
}