/* Much Much Media — Site Header & Footer (global, all pages) */

/* Some pages (the homepage) run their own custom-cursor system: the real
   cursor is hidden page-wide (cursor:none) and only re-shown, as a custom
   dot/chip, on elements carrying a data-cursor attribute. This header and
   footer's own links/buttons don't opt into that system, so on such a page
   the cursor was simply invisible while hovering them. Force it back on,
   regardless of what the host page does elsewhere. */
#mmshf-header, #mmshf-header *,
#mmshf-footer, #mmshf-footer * {
	cursor: auto !important;
}
#mmshf-header a, #mmshf-header button,
#mmshf-footer a, #mmshf-footer button {
	cursor: pointer !important;
}

#mmshf-header {
	position: relative; top: 0; left: 0; right: 0; z-index: 9999;
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
	padding: 18px clamp(20px, 4vw, 44px);
	box-sizing: border-box; width: 100%;
}
#mmshf-header[data-sticky="1"] { position: fixed; }

/* When the header is fixed (sticky), it's lifted out of normal document
   flow — so give the page content matching top spacing via JS (see
   mm-site-header-footer.js), driven by this CSS var it sets on <body>. */
body.mmshf-sticky-active { padding-top: var( --mmshf-header-h, 86px ); }

.mmshf-logo { line-height: 1; display: block; }
.mmshf-logo-img { display: block; max-height: 40px; width: auto; }
.mmshf-logo-top { display: block; font-weight: 800; font-size: 15px; letter-spacing: 0.02em; }
.mmshf-logo-bottom { display: block; font-weight: 500; font-size: 10px; letter-spacing: 0.32em; opacity: 0.7; }

.mmshf-nav { display: flex; gap: clamp(14px, 2.4vw, 28px); font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.mmshf-nav li { list-style: none; }
.mmshf-nav a { color: inherit; text-decoration: none; }
.mmshf-nav a:hover,
.mmshf-nav a:focus { color: #fff626; }

/* ---------- submenu (dropdown) ---------- */
/* #mmshf-nav (ID selector) + !important everywhere here on purpose: the
   theme (Avada/etc.) already styles WordPress's default .sub-menu /
   .menu-item-has-children classes for ITS OWN nav, and those rules can be
   more specific than plain classes — so without this, the dropdown loses
   position:absolute, falls back into normal flow, and visibly inflates
   the header's height instead of floating over the page. */
#mmshf-nav .sub-menu { list-style: none !important; margin: 0 !important; padding: 0 !important; }
#mmshf-nav .mmshf-submenu-toggle {
	  background: none !important; border: 0 !important; color: inherit !important; cursor: pointer;
	font-size: 12px; line-height: 1; padding: 2px 6px; margin-left: 4px;
	-webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none;
}
#mmshf-nav .mmshf-submenu-toggle svg { display: block; width: 16px; height: 16px; transition: transform .25s ease; pointer-events: none; }
#mmshf-nav .mmshf-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (min-width: 761px) {
	#mmshf-nav li.menu-item-has-children { position: relative !important; }
	#mmshf-nav .sub-menu {
		position: absolute !important; top: 100% !important; left: 0 !important; right: auto !important; bottom: auto !important;
		float: none !important; min-width: 190px; width: max-content; max-width: 280px;
		display: none !important; flex-direction: column !important; gap: 0; margin: 0 !important; padding: 14px 0 10px !important;
		background: var( --mmshf-header-bg, #1B1916 ) !important; border-radius: 8px;
		box-shadow: 0 14px 32px rgba(0,0,0,0.28); z-index: 9999 !important; opacity: 1 !important; visibility: visible !important;
	}
	#mmshf-nav li.menu-item-has-children:hover > .sub-menu,
	#mmshf-nav li.menu-item-has-children:focus-within > .sub-menu { display: flex !important; }
	#mmshf-nav .sub-menu li { width: 100% !important; float: none !important; }
	#mmshf-nav .sub-menu a { display: block !important; padding: 9px 18px !important; white-space: nowrap; float: none !important; }
}

.mmshf-contact-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px;
	border: 1.5px solid currentColor; font-size: 13px; font-weight: 700; white-space: nowrap;
	color: inherit; text-decoration: none; transition: transform .2s ease-out;
}
.mmshf-contact-btn:hover { transform: translateY(-2px); }
.mmshf-contact-btn-arrow { flex-shrink: 0; }

#mmshf-header .mmshf-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    color: #fff625;
}
#mmshf-header .mmshf-menu-toggle span { display: block !important; width: 100%; height: 2px; background: currentColor !important; opacity: 1 !important; transition: transform .25s ease, opacity .25s ease; }
#mmshf-header .mmshf-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#mmshf-header .mmshf-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0 !important; }
/* smaller close (X): shorter bars, still centred inside the 30x30 tap area */
#mmshf-header .mmshf-menu-toggle[aria-expanded="true"] span { width: 18px; align-self: center; }
#mmshf-header .mmshf-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 760px) {
span.mmshf-letter {
    font-size: 28px;
}
.mmshf-footer {
    padding: 50px clamp(20px, 4vw, 44px) 36px;
    overflow: hidden;
}
	.mmshf-contact-btn { display: none !important; }
	#mmshf-header .mmshf-menu-toggle {
		display: flex !important; visibility: visible !important; opacity: 1 !important;
		position: relative !important; z-index: 10000 !important;
	}
	.mmshf-nav {
		flex-basis: 100%; display: none; flex-direction: column; gap: 20px;
		padding: 18px 0 6px;
	}
	.mmshf-nav.mmshf-nav--open { display: flex; }

	/* Only the link text gets the active underline (not the full row).
	   Kill any full-width border/underline the theme puts on li / a. */
	#mmshf-nav li,
	#mmshf-nav li.current-menu-item,
	#mmshf-nav li.current_page_item,
	#mmshf-nav li.current-menu-ancestor,
	#mmshf-nav li.current-menu-parent,
	#mmshf-nav li.current-page-ancestor { border: 0 !important; box-shadow: none !important; background-image: none !important; }
	#mmshf-nav a { font-size: 14.5px !important; display: inline-block !important; width: auto !important; border: 0 !important; box-shadow: none !important; background-image: none !important; text-decoration: none !important; }
	#mmshf-nav a::before, #mmshf-nav a::after { content: none !important; display: none !important; }
	#mmshf-nav li.current-menu-item > a,
	#mmshf-nav li.current_page_item > a,
	#mmshf-nav li.current-menu-ancestor > a,
	#mmshf-nav li.current-menu-parent > a,
	#mmshf-nav li.current-page-ancestor > a {
		color: #fff626 !important;
		text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 6px !important;
	}

	/* link + arrow sit on one row, submenu drops to its own full row */
	#mmshf-nav li.menu-item-has-children { position: relative !important; display: flex !important; flex-wrap: wrap; align-items: center; }
	#mmshf-nav li.menu-item-has-children > .sub-menu { flex: 0 0 100%; }
	#mmshf-nav .mmshf-submenu-toggle {
		display: inline-flex !important; align-items: center; justify-content: center;
		width: 32px; height: 32px; padding: 0 !important; margin-left: 6px !important;
	}
	#mmshf-nav .mmshf-submenu-toggle svg { width: 18px; height: 18px; }
	#mmshf-nav .sub-menu {
		position: static !important; display: none !important; flex-direction: column !important; gap: 10px;
		padding: 12px 0 4px 14px !important; margin-top: 6px !important; box-shadow: none !important; background: none !important;
	}
	#mmshf-nav .sub-menu.mmshf-submenu-open { display: flex !important; }
}

/* ---------- footer ---------- */
.mmshf-footer { padding: 80px clamp(20px, 4vw, 44px) 36px; overflow: hidden; }
.mmshf-inner { max-width: 1400px; margin: 0 auto; }
.mmshf-footerword { display: flex; flex-wrap: wrap; justify-content: center; user-select: none; }
.mmshf-letter {
	font-weight: 800; font-size: clamp(34px, 8.6vw, 104px); line-height: 1; letter-spacing: -0.03em; display: inline-block;
	white-space: pre; transition: transform .35s cubic-bezier(.2,.8,.25,1), color .35s, opacity .5s ease; color: inherit;
}
.mmshf-tagline { text-align: center; opacity: 0.6; font-size: 13px; margin: 14px 0 0; }
.mmshf-footer-bottom {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 54px;
	border-top: 1px solid currentColor; border-top-color: rgba(255,255,255,0.12); padding-top: 22px;
	font-size: 12px; opacity: 0.7;
}
.mmshf-copyright { justify-self: start; }
.mmshf-madewith {
	justify-self: center; text-align: center; white-space: nowrap;
	text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; opacity: 0.65;
}
.mmshf-madewith em { font-style: italic; font-weight: 800; opacity: 1; color: inherit; }
.mmshf-social { justify-self: end; display: flex; gap: 20px; font-weight: 600; letter-spacing: 0.06em; font-size: 11.5px; }
.mmshf-social a { color: inherit; text-decoration: none; transition: color .2s ease; }
.mmshf-social a:hover { color: #B3540F; text-decoration: underline; }

@media (max-width: 640px) {
	.mmshf-footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; }
	.mmshf-copyright, .mmshf-madewith, .mmshf-social { justify-self: center; }
	.mmshf-madewith { white-space: normal; }
}