/* Munster FA site-wide header + footer (2026 design). Every rule is scoped to body.mfa-2026,
   which slomo-mfa-home.php adds only where the new design is switched on. */

@font-face { font-family: "MFA Josefin"; src: url("fonts/josefinsans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "MFA Open Sans"; src: url("fonts/opensans.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "MFA Source Sans"; src: url("fonts/sourcesans3.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

/* ---------- Header: white, 150px, logo left, one-line menu, FB/X right ---------- */
body.mfa-2026 #header,
body.mfa-2026 #header_main,
body.mfa-2026 #header .header_bg { background: #fff !important; }
body.mfa-2026 #header .header_bg { opacity: 1 !important; }
body.mfa-2026 #header { box-shadow: none; border: 0; }
body.mfa-2026 #header_main { border: 0 !important; }
body.mfa-2026 #header_main .container,
body.mfa-2026 #header_main .inner-container,
body.mfa-2026 #header .main_menu ul:first-child > li > a { height: 150px !important; line-height: 150px !important; }
body.mfa-2026 #header_main .container { max-width: 1560px; width: auto; padding: 0 15px; position: relative; }
body.mfa-2026 #header .logo,
body.mfa-2026 #header .logo a { height: 150px !important; max-height: none !important; display: flex; align-items: center; }
body.mfa-2026 #header .logo img { height: 120px !important; width: 120px !important; max-height: none !important; padding: 0 !important; object-fit: contain; }
body.mfa-2026 #main { padding-top: 150px !important; }

body.mfa-2026 #header .main_menu { right: 115px; }
body.mfa-2026 #header .av-main-nav > li > a {
	padding: 0 12px !important; color: #000 !important;
	font-family: "MFA Source Sans", "Source Sans 3", sans-serif !important; font-weight: 600 !important; font-size: 20px !important; letter-spacing: 0;
}
body.mfa-2026 #header .av-main-nav > li > a .avia-menu-text { position: relative; border: 0; }
body.mfa-2026 #header .av-main-nav > li > a .avia-menu-fx { display: none !important; }
body.mfa-2026 #header .av-main-nav > li > a .avia-menu-text::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; background: #6ebc45;
	transform: scaleX(0); transition: transform .2s ease;
}
body.mfa-2026 #header .av-main-nav > li > a:hover,
body.mfa-2026 #header .av-main-nav > li.current-menu-item > a,
body.mfa-2026 #header .av-main-nav > li.current-menu-ancestor > a { color: #6ebc45 !important; }
body.mfa-2026 #header .av-main-nav > li > a:hover .avia-menu-text::after,
body.mfa-2026 #header .av-main-nav > li.current-menu-item > a .avia-menu-text::after,
body.mfa-2026 #header .av-main-nav > li.current-menu-ancestor > a .avia-menu-text::after { transform: scaleX(1); }

/* Dropdowns */
body.mfa-2026 #header .av-main-nav ul { background: #fff; border: 0; box-shadow: 0 10px 24px rgba(0,0,0,.12); border-top: 3px solid #6ebc45 !important; }
body.mfa-2026 #header .av-main-nav ul a {
	font-family: "MFA Source Sans", "Source Sans 3", sans-serif !important; font-size: 16px !important; font-weight: 600;
	color: #111 !important; background: #fff !important; border-color: #eee !important; padding: 10px 18px !important;
}
body.mfa-2026 #header .av-main-nav ul a:hover { color: #163e9d !important; background: #f4f7fb !important; }

/* FB / X circles */
.mfa-hsocial { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); display: flex; gap: 13px; z-index: 5; }
.mfa-hsocial a {
	width: 32px; height: 32px; border-radius: 50%; background: #163e9b; color: #fff !important;
	display: inline-flex; align-items: center; justify-content: center; transition: background .2s;
}
.mfa-hsocial a:hover { background: #6ebc45; }
.mfa-hsocial svg { width: 17px; height: 17px; display: block; }

/* Scrolled: shrink to 100px */
body.mfa-2026 #header.header-scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.08); }
body.mfa-2026 #header.header-scrolled #header_main .container,
body.mfa-2026 #header.header-scrolled #header_main .inner-container,
body.mfa-2026 #header.header-scrolled .main_menu ul:first-child > li > a,
body.mfa-2026 #header.header-scrolled .logo,
body.mfa-2026 #header.header-scrolled .logo a { height: 100px !important; line-height: 100px !important; }
body.mfa-2026 #header.header-scrolled .logo img { height: 80px !important; width: 80px !important; }

/* Hide the old footer widgets; our footer is printed just before it */
body.mfa-2026 #footer { display: none !important; }

/* ---------- Footer ---------- */
.mfa-footer { background: #0c2c5f; color: #fff; text-align: center; padding: 38px 20px 36px; }
.mfa-footer-inner { max-width: 1530px; margin: 0 auto; }
.mfa-footer-crest img { width: 180px; height: 180px; display: block; margin: 0 auto; }
.mfa-footer-sponsors { display: flex; align-items: center; justify-content: center; gap: 12px 26px; flex-wrap: wrap; margin-top: 6px; }
.mfa-footer-sponsors a { display: block; line-height: 0; opacity: 1; transition: opacity .2s; }
.mfa-footer-sponsors a:hover { opacity: .8; }
.mfa-footer-sponsors a:nth-child(2) { margin-top: 30px; } /* McCarthy sits lower in the design */
.mfa-footer-copy {
	margin: 112px 0 0; font-family: "MFA Source Sans", "Source Sans 3", sans-serif; font-size: 16px; line-height: 1.5; color: #fff;
}
#top .mfa-footer-copy a { color: #6ebc45; text-decoration: none; }
#top .mfa-footer-copy a.mfa-footer-privacy { color: #fff; }
#top .mfa-footer-copy a:hover { text-decoration: underline; }

/* ---------- Mobile (Enfold switches to the burger menu at 989px) ---------- */
@media (max-width: 1500px) {
	body.mfa-2026 #header .av-main-nav > li > a { padding: 0 8px !important; font-size: 17px !important; }
}
@media (max-width: 1400px) {
	body.mfa-2026 #header .av-main-nav > li > a { padding: 0 7px !important; font-size: 16px !important; }
}
@media (max-width: 1299px) {
	body.mfa-2026 #header .av-main-nav > li > a { padding: 0 6px !important; font-size: 15px !important; }
}
/* 990-1199: nine items no longer fit beside the logo, so use Enfold's burger early */
@media (min-width: 990px) and (max-width: 1199px) {
	body.mfa-2026 #avia-menu > li.menu-item-top-level { display: none !important; }
	body.mfa-2026 #avia-menu > li.av-burger-menu-main { display: block !important; }
}

/* Child-theme title banner on phones: the banner image scales down to ~90px but the 48px title doesn't, so it was cropped
   (also on the old design). Give the banner a minimum height, cover-fit the image and centre a smaller title. */
@media (max-width: 767px) {
	body.mfa-2026 .content_header { min-height: 140px; overflow: hidden; display: flex; align-items: center; }
	body.mfa-2026 .content_header > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
	body.mfa-2026 .content_header .sub_head { position: relative !important; top: auto !important; bottom: auto !important; transform: none !important; padding: 28px 0 !important; width: 100%; }
	body.mfa-2026 .content_header .sub_head .container { width: 85%; margin: 0 auto; }
	body.mfa-2026 .content_header .sub_head h2 { font-size: 30px !important; line-height: 1.15 !important; margin: 0 !important; }
}

/* Burger overlay (phones + 990-1199): same type as the desktop menu, tighter rows */
body.mfa-2026 #av-burger-menu-ul li a {
	font-family: "MFA Source Sans", "Source Sans 3", sans-serif !important; font-size: 19px !important; font-weight: 600 !important;
	color: #111 !important; padding-top: 14px !important; padding-bottom: 14px !important;
}
body.mfa-2026 #av-burger-menu-ul li li a { font-size: 16px !important; font-weight: 500 !important; color: #333 !important; padding-top: 10px !important; padding-bottom: 10px !important; }
body.mfa-2026 #av-burger-menu-ul li a:hover,
body.mfa-2026 #av-burger-menu-ul li.current-menu-item > a { color: #6ebc45 !important; }
body.mfa-2026 #av-burger-menu-ul .avia-menu-text { font-size: inherit !important; }

/* Dropdowns wide enough for the cup names on one line */
body.mfa-2026 #header .av-main-nav ul { width: 300px; }
body.mfa-2026 #header .av-main-nav ul ul { left: -299px; }
@media (max-width: 989px) {
	body.mfa-2026 #main { padding-top: 0 !important; }
	body.mfa-2026 #header_main .container,
	body.mfa-2026 #header_main .inner-container,
	body.mfa-2026 #header .main_menu ul:first-child > li > a,
	body.mfa-2026 #header .logo,
	body.mfa-2026 #header .logo a { height: 90px !important; line-height: 90px !important; }
	body.mfa-2026 #header .logo img { height: 72px !important; width: 72px !important; }
	body.mfa-2026 #header .main_menu { right: 60px; }
	.mfa-hsocial { display: none; }
	.mfa-footer-crest img { width: 130px; height: 130px; }
	.mfa-footer-copy { margin-top: 48px; font-size: 15px; }
}
