/*
Theme Name: MVUMC Modern
Theme URI: https://mtviewdayton.com/
Author: Infinite Web Consulting
Author URI: https://infinitewebconsulting.com/
Description: Custom theme for Mountain View UMC. Renders existing block content with a modern header, footer and styling.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mvumc-modern
*/

/* ---------- Tokens ---------- */
:root {
	/* Astra's global palette — page blocks reference these variables directly. */
	--ast-global-color-0: #0067ff;
	--ast-global-color-1: #005ee9;
	--ast-global-color-2: #0f172a;
	--ast-global-color-3: #364151;
	--ast-global-color-4: #e7f6ff;
	--ast-global-color-5: #ffffff;
	--ast-global-color-6: #d1dae5;
	--ast-global-color-7: #070614;
	--ast-global-color-8: #222222;

	--blue: #0067ff;
	--blue-dark: #0052cc;
	--blue-soft: #e7f6ff;
	--navy: #0f172a;
	--navy-2: #0b1222;
	--slate: #364151;
	--muted: #5b6678;
	--line: #d1dae5;
	--white: #ffffff;
	--radius: 18px;
	--shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 30px -12px rgba(15, 23, 42, 0.18);
	--shadow-lg: 0 24px 50px -20px rgba(15, 23, 42, 0.35);
	--container: 1200px;
	--header-h: 92px;
	--font-head: "DM Sans", system-ui, sans-serif;
	--font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--white);
	color: var(--slate);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--navy);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	font-weight: 600;
}
/* Sizes carried over from the previous Astra settings so block layouts keep their proportions. */
h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 30px; }
h4 { font-size: 21px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; display: inline-block; vertical-align: middle; }

.mv-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.mv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; line-height: 1;
	padding: 0.85em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s;
}
.mv-btn:hover { transform: translateY(-2px); }
.mv-btn .icon { width: 1.1em; height: 1.1em; }
.mv-btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 103, 255, 0.7); }
.mv-btn-primary:hover { background: var(--blue-dark); color: #fff; }
.mv-btn-glass { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(6px); }
.mv-btn-glass:hover { background: #fff; color: var(--navy); }

/* ---------- Header ---------- */
.mv-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	background: linear-gradient(180deg, rgba(7, 6, 20, 0.55), rgba(7, 6, 20, 0));
	transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.admin-bar .mv-header { top: 32px; }
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block for the fixed mobile menu and squash the menu to the header's height. */
.mv-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	opacity: 0; transition: opacity 0.35s;
	background: rgba(15, 23, 42, 0.92);
	backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.mv-header.is-scrolled, .mv-nav-open .mv-header { background: transparent; box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5); }
.mv-header.is-scrolled::before, .mv-nav-open .mv-header::before { opacity: 1; }
.mv-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height 0.3s; }
.is-scrolled .mv-header-inner { height: 74px; }
.mv-brand img { display: block; height: 72px; width: auto; transition: height 0.3s; }
.is-scrolled .mv-brand img { height: 56px; }

.mv-nav { display: flex; align-items: center; gap: 18px; }
.mv-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mv-menu > li { position: relative; display: flex; align-items: center; }
.mv-menu > li > a {
	display: block; padding: 10px 14px; border-radius: 999px;
	font-family: var(--font-head); font-weight: 500; font-size: 0.97rem;
	color: rgba(255, 255, 255, 0.88); text-decoration: none;
	transition: color 0.2s, background 0.2s;
}
.mv-menu > li > a:hover, .mv-menu > li.is-open > a { color: #fff; background: rgba(255, 255, 255, 0.1); }
.mv-menu > li.current-menu-item > a, .mv-menu > li.current-menu-ancestor > a { color: #fff; }
.mv-menu > li.menu-item-has-children > a { padding-right: 4px; }
.mv-menu > li.menu-give > a { background: var(--blue); color: #fff; padding: 10px 20px; margin-left: 8px; box-shadow: 0 10px 24px -10px rgba(0, 103, 255, 0.8); }
.mv-menu > li.menu-give > a:hover { background: var(--blue-dark); }

.mv-sub-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; margin-right: 4px; padding: 0; border: 0; border-radius: 8px;
	background: none; color: rgba(255, 255, 255, 0.8); cursor: pointer;
}
.mv-sub-toggle .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.is-open > .mv-sub-toggle .icon { transform: rotate(180deg); }

.mv-menu .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; min-width: 240px;
	list-style: none; margin: 0; padding: 8px;
	background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.mv-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.mv-menu > li:hover > .sub-menu, .mv-menu > li:focus-within > .sub-menu, .mv-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mv-menu .sub-menu li { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.mv-menu .sub-menu a {
	flex: 1; display: block; padding: 10px 14px; border-radius: 10px;
	color: var(--navy); font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; text-decoration: none;
}
.mv-menu .sub-menu a:hover { background: var(--blue-soft); color: var(--blue); }
.mv-menu .sub-menu .mv-sub-toggle { color: var(--muted); }
.mv-menu .sub-menu .sub-menu {
	position: static; min-width: 0; width: 100%; padding: 0 0 0 12px; box-shadow: none;
	opacity: 1; visibility: visible; transform: none; display: none;
}
.mv-menu .sub-menu li:hover > .sub-menu, .mv-menu .sub-menu li.is-open > .sub-menu, .mv-menu .sub-menu li:focus-within > .sub-menu { display: block; }

.mv-nav-toggle {
	display: none; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
	background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff;
}
.mv-nav-toggle .icon { width: 22px; height: 22px; }
.mv-close { display: none; }

/* ---------- Simple hero (posts, 404, new pages) ---------- */
.mv-hero {
	padding: calc(var(--header-h) + 80px) 0 72px; color: #fff;
	background:
		radial-gradient(600px 300px at 85% 0%, rgba(0, 103, 255, 0.45), transparent 70%),
		linear-gradient(160deg, var(--navy) 0%, #13224a 100%);
}
.mv-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 600; margin: 0; max-width: 20ch; }
.mv-eyebrow { font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin: 0 0 0.8em; }
.mv-hero .mv-eyebrow { color: #8fbaff; }
.mv-section { padding: 72px 24px; }

/* ---------- Page content (existing blocks) ---------- */
.mv-content > :where(:not(.alignfull):not(.alignwide):not(.uagb-is-root-container)) {
	max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px;
}
.mv-content > .alignwide { max-width: var(--container); margin-left: auto; margin-right: auto; }
.mv-content > .alignfull { width: 100%; max-width: none; }
/* isolation keeps blocks with negative z-index (e.g. the Give hero) above this background. */
.mv-content { background: var(--blue-soft); position: relative; isolation: isolate; }

/* Astra palette preset classes used by blocks (e.g. has-ast-global-color-5-color). */
.has-ast-global-color-0-color { color: var(--ast-global-color-0) !important; }
.has-ast-global-color-1-color { color: var(--ast-global-color-1) !important; }
.has-ast-global-color-2-color { color: var(--ast-global-color-2) !important; }
.has-ast-global-color-3-color { color: var(--ast-global-color-3) !important; }
.has-ast-global-color-4-color { color: var(--ast-global-color-4) !important; }
.has-ast-global-color-5-color { color: var(--ast-global-color-5) !important; }
.has-ast-global-color-6-color { color: var(--ast-global-color-6) !important; }
.has-ast-global-color-7-color { color: var(--ast-global-color-7) !important; }
.has-ast-global-color-8-color { color: var(--ast-global-color-8) !important; }
.has-ast-global-color-0-background-color { background-color: var(--ast-global-color-0) !important; }
.has-ast-global-color-1-background-color { background-color: var(--ast-global-color-1) !important; }
.has-ast-global-color-2-background-color { background-color: var(--ast-global-color-2) !important; }
.has-ast-global-color-3-background-color { background-color: var(--ast-global-color-3) !important; }
.has-ast-global-color-4-background-color { background-color: var(--ast-global-color-4) !important; }
.has-ast-global-color-5-background-color { background-color: var(--ast-global-color-5) !important; }
.has-ast-global-color-6-background-color { background-color: var(--ast-global-color-6) !important; }
.has-ast-global-color-7-background-color { background-color: var(--ast-global-color-7) !important; }
.has-ast-global-color-8-background-color { background-color: var(--ast-global-color-8) !important; }
.mv-content-padded { padding-top: 64px; padding-bottom: 64px; }

/* Theme-default buttons (blocks that inherit theme colors). Specificity 0,1,1 beats WordPress
   core's grey default (0,1,0) but loses to colors set on an individual block (.uagb-block-x …). */
main .wp-block-button__link, main .uagb-buttons-repeater, main .uagb-forms-main-submit-button {
	background-color: var(--ast-global-color-0);
	color: #fff;
	padding: 15px 30px;
	text-decoration: none;
	display: inline-flex; align-items: center; gap: 0.4em;
}
.mv-content p:last-child { margin-bottom: 0; }

/* Heroes sit under the fixed header; give them room. */
.mv-content > .uagb-is-root-container:first-child { padding-top: max(var(--header-h), 92px) !important; }

/* Typography refresh */
.mv-content h1, .mv-content h2, .mv-content h3, .mv-content h4 { font-weight: 600; }
.mv-content .uagb-ifb-title, .mv-content .uagb-heading-text { text-wrap: balance; }

/* Buttons — every block button becomes a rounded pill with a gentle lift */
.mv-content .uagb-buttons-repeater,
.mv-content .wp-block-button__link,
.mv-content a.uagb-infobox-cta-link,
.mv-content .uagb-ifb-button-wrapper a,
.mv-content .uagb-forms-main-submit-button,
.mv-content .wp-block-search__button {
	border-radius: 999px !important;
	font-family: var(--font-head) !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em;
	transition: transform 0.25s var(--ease), box-shadow 0.25s, background-color 0.2s, color 0.2s !important;
}
.mv-content .uagb-buttons-repeater:hover,
.mv-content .wp-block-button__link:hover,
.mv-content a.uagb-infobox-cta-link:hover,
.mv-content .uagb-ifb-button-wrapper a:hover,
.mv-content .uagb-forms-main-submit-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -10px rgba(0, 103, 255, 0.6);
}

/* Astra "outline" buttons (Connect page) — Astra used to style these. */
main .ast-outline-button {
	display: inline-flex; align-items: center; gap: 0.4em;
	padding: 11px 24px; border: 2px solid var(--blue) !important; border-radius: 999px;
	background: transparent; color: var(--blue); text-decoration: none;
	font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
	transition: background 0.2s, color 0.2s, transform 0.25s var(--ease);
}
main .ast-outline-button:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* Cards — info boxes and bordered containers get soft corners and shadows */
/* Only elements that already draw a border become cards (info boxes are also used for plain text). */
.mv-content .wp-block-column[style*="border"],
.mv-content .wp-block-uagb-container:not(.uagb-is-root-container):not(.alignfull) {
	border-radius: var(--radius) !important;
	border-color: var(--line) !important;
}
.mv-content .wp-block-column[style*="border"] {
	border-width: 1px !important;
	background-color: #fff;
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.mv-content .wp-block-column[style*="border"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Images */
.mv-content .wp-block-image img,
.mv-content .wp-block-uagb-image img,
.mv-content .wp-block-uagb-info-box .uagb-ifb-image-content img {
	border-radius: 14px;
}

/* Forms (Spectra form on Contact) */
.mv-content .uagb-forms-main-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.mv-content .uagb-forms-main-form textarea,
.mv-content .uagb-forms-main-form select {
	border-radius: 12px !important;
	border: 1.5px solid var(--line) !important;
	background: #fff !important;
	padding: 12px 14px !important;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.mv-content .uagb-forms-main-form input:focus, .mv-content .uagb-forms-main-form textarea:focus {
	outline: none; border-color: var(--blue) !important; box-shadow: 0 0 0 4px rgba(0, 103, 255, 0.15);
}

/* Maps & embeds */
.mv-content iframe { max-width: 100%; }
.mv-content .wp-block-uagb-google-map iframe, .mv-content .kb-google-maps-container iframe { border-radius: var(--radius); }

/* ---------- Rebuilt page layouts (core blocks + mv-* classes) ---------- */
.mv-content > .mv-hero:first-child { padding-top: calc(var(--header-h) + 96px); }
.mv-hero, .mv-band, .mv-section {
	--gutter: max(24px, calc((100% - var(--container)) / 2 + 24px));
	padding-left: var(--gutter); padding-right: var(--gutter);
}
.mv-content .mv-hero, .mv-content .mv-band, .mv-content .mv-section { margin: 0; }

/* Hero */
.mv-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: clamp(440px, 66vh, 680px); display: flex; flex-direction: column; justify-content: flex-end;
	padding-bottom: 88px; color: #fff;
	background-color: var(--navy); background-size: cover !important; background-position: center !important;
}
.mv-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(7, 6, 20, 0.6) 0%, rgba(15, 23, 42, 0.35) 38%, rgba(15, 23, 42, 0.9) 100%),
		linear-gradient(90deg, rgba(0, 72, 200, 0.35) 0%, transparent 65%);
}
.mv-hero--home { min-height: clamp(600px, 94vh, 960px); }
.mv-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 15ch; margin: 0 0 0.35em; }
.mv-hero .mv-lead { color: rgba(255, 255, 255, 0.88); font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 38em; margin: 0 0 1.6em; }
.mv-hero .mv-kicker {
	width: fit-content; color: #fff; background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28); padding: 7px 16px; border-radius: 999px;
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); margin-bottom: 22px;
}
.mv-hero .wp-block-buttons { gap: 12px; }

/* Kicker / eyebrow */
.mv-kicker {
	font-family: var(--font-head); font-size: 0.8rem; font-weight: 700;
	letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px;
}

/* Sections */
.mv-section { padding-top: 104px; padding-bottom: 104px; }
.mv-section--white { background: #fff; }
.mv-section--soft { background: var(--blue-soft); }
.mv-section--navy { background: radial-gradient(700px 360px at 85% 0%, rgba(0, 103, 255, 0.4), transparent 70%), linear-gradient(160deg, var(--navy), #13224a); color: rgba(255, 255, 255, 0.85); }
.mv-section--navy h2, .mv-section--navy h3 { color: #fff; }
.mv-section--navy .mv-kicker { color: #8fbaff; }
.mv-section > * + * { margin-top: 0; }
.mv-section h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; }
.mv-section p { font-size: 1.06rem; }
.mv-head { max-width: 760px; margin: 0 auto 56px !important; text-align: center; }
.mv-head p:not(.mv-kicker) { color: var(--muted); font-size: 1.12rem; }
.mv-head .wp-block-buttons { justify-content: center; }
.mv-section h2 a { color: var(--blue); text-decoration: none; }
.mv-section h2 a:hover { text-decoration: underline; text-underline-offset: 6px; }
.mv-section p a, .mv-info a { color: var(--blue); font-weight: 600; }
.mv-section--navy .mv-head p:not(.mv-kicker) { color: rgba(255, 255, 255, 0.8); }
.mv-statement h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 500; line-height: 1.25; }

/* Split: image + text */
.mv-split { gap: clamp(32px, 6vw, 80px) !important; align-items: center !important; margin: 0 !important; }
.mv-split + .mv-split { margin-top: 96px !important; }
.mv-split-media img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow-lg); }
.mv-split-media .wp-block-image { margin: 0; }
.mv-split-media .wp-block-image + .wp-block-image { margin-top: 20px; }
.mv-split-body > :last-child { margin-bottom: 0; }
.mv-split-body h2 { margin-bottom: 0.45em; }
.mv-split-body p { color: var(--slate); }
.mv-split-body .wp-block-buttons { margin-top: 28px; }
@media (min-width: 782px) { .mv-split--flip { flex-direction: row-reverse; } }

/* Cards */
.mv-cards { gap: 24px !important; margin: 0 !important; }
.mv-cards + .mv-cards { margin-top: 24px !important; }
.mv-card {
	display: flex; flex-direction: column;
	padding: 32px; border-radius: 22px; background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.06); box-shadow: var(--shadow);
	transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.mv-card h3 { font-size: 1.4rem; margin: 0 0 10px; }
.mv-card p { color: var(--muted); margin: 0 0 12px; }
.mv-card .wp-block-image { margin: -12px -12px 24px; }
.mv-card .wp-block-image img { width: 100%; border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; }
.mv-card .wp-block-image.mv-contain img { object-fit: contain; background: #fff; }
.mv-card .wp-block-buttons { margin-top: auto; padding-top: 12px; }
.mv-card--accent { border-top: 4px solid var(--blue); }
.mv-card-num { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--blue); background: var(--blue-soft); align-self: flex-start; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px !important; }

/* Info list (contact details) */
.mv-info { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.mv-info li { padding: 18px 22px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); line-height: 1.6; }
.mv-info strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.mv-info a { color: var(--blue); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

/* Form card */
.mv-form-card { padding: 44px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-lg); }
.mv-form-card h2, .mv-form-card h3 { margin-bottom: 0.6em; }

/* Quote / testimonial */
.mv-quote { max-width: 860px; margin: 0 auto !important; padding: 0 !important; border: 0 !important; text-align: center; position: relative; }
.mv-quote::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 7rem; line-height: 0.8; color: var(--blue); opacity: 0.25; }
.mv-quote p { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem) !important; line-height: 1.4; color: var(--navy); font-weight: 500; }
.mv-quote cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; color: var(--blue); }
.mv-scripture { margin: 0 0 1.4em !important; padding: 20px 24px !important; border-left: 4px solid var(--blue) !important; background: #fff; border-radius: 0 16px 16px 0; }
.mv-scripture p { font-style: italic; font-size: 1.1rem !important; color: var(--navy); margin: 0; }
.mv-scripture cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--blue); font-size: 0.9rem; }

/* Photo band */
.mv-band {
	position: relative; isolation: isolate; overflow: hidden;
	padding-top: 130px; padding-bottom: 130px; text-align: center; color: #fff;
	background-color: var(--navy); background-size: cover !important; background-position: center !important;
}
.mv-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.75)); }
.mv-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 auto; max-width: 20ch; }
.mv-band .mv-kicker { color: #bcd5ff; }
.mv-band .wp-block-buttons { justify-content: center; margin-top: 28px; }
.mv-band--photo { padding-top: 220px; padding-bottom: 220px; }
.mv-band--photo::before { background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.35)); }

/* People */
.mv-people { gap: 32px !important; margin: 0 !important; justify-content: center; }
.mv-person { text-align: center; padding: 32px 24px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); flex-grow: 0 !important; flex-basis: 300px !important; }
.mv-person .wp-block-image { margin: 0 0 20px; }
.mv-person .wp-block-image img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; margin: 0 auto; border: 6px solid var(--blue-soft); }
.mv-person h3 { font-size: 1.35rem; margin: 0 0 4px; }
.mv-person p { color: var(--blue); font-weight: 700; font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }

/* Schedule / feature lists */
.mv-schedule { list-style: none; padding: 0; margin: 24px 0; background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mv-schedule li { display: flex; gap: 18px; padding: 14px 22px; border-bottom: 1px solid var(--blue-soft); }
.mv-schedule li:last-child { border-bottom: 0; }
.mv-schedule strong { flex: 0 0 132px; color: var(--blue); font-family: var(--font-head); }
.mv-ticks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.mv-ticks li { position: relative; padding-left: 30px; }
.mv-ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.mv-feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mv-feature-list li { padding: 26px 28px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); color: var(--muted); }
.mv-feature-list li strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); margin-bottom: 6px; }
.mv-feature-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mv-chip { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--blue-soft); color: var(--blue) !important; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem !important; }
.mv-section--soft .mv-chip { background: #fff; }
.mv-callout { max-width: 860px; margin: 56px auto 0 !important; padding: 32px 36px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); border-left: 5px solid var(--blue); font-family: var(--font-head); font-size: 1.25rem !important; color: var(--navy); }
.mv-prose p { font-size: 1.06rem; line-height: 1.8; }
.mv-role { color: var(--blue) !important; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem !important; margin-top: -6px !important; }

/* Gallery, map, embeds */
.mv-gallery.wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 16px !important; margin-top: 56px !important; }
.mv-gallery.wp-block-gallery .wp-block-image { width: auto !important; margin: 0 !important; }
.mv-gallery.wp-block-gallery img { width: 100%; height: 100% !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.mv-map iframe, .mv-embed iframe { display: block; width: 100%; border: 0; border-radius: 24px; box-shadow: var(--shadow-lg); background: #fff; }
.mv-map iframe { height: 420px; }
.mv-embed iframe { height: 680px; }
.mv-wide-img img { width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg); }
.mv-small-img img { max-width: 220px; border-radius: 16px; }
.mv-soon { display: inline-block; margin-top: 12px; padding: 14px 28px; border-radius: 999px; background: var(--blue); color: #fff !important; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.14em; }

/* Outline buttons */
main .is-style-outline .wp-block-button__link { background: transparent !important; color: var(--blue) !important; border: 2px solid var(--blue) !important; }
main .is-style-outline .wp-block-button__link:hover { background: var(--blue) !important; color: #fff !important; }
.mv-hero .is-style-outline .wp-block-button__link, .mv-band .is-style-outline .wp-block-button__link { color: #fff !important; border-color: rgba(255, 255, 255, 0.6) !important; }
.mv-hero .is-style-outline .wp-block-button__link:hover, .mv-band .is-style-outline .wp-block-button__link:hover { background: #fff !important; color: var(--navy) !important; }

/* Scroll reveal (added by site.js) */
.js .mv-anim { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .mv-anim.is-visible { opacity: 1; transform: none; }

@media (max-width: 781px) {
	.mv-section { padding-top: 72px; padding-bottom: 72px; }
	.mv-hero { min-height: clamp(420px, 72vh, 620px); padding-bottom: 64px; }
	.mv-hero--home { min-height: clamp(560px, 88vh, 760px); }
	.mv-split + .mv-split { margin-top: 64px !important; }
	.mv-feature-list, .mv-gallery.wp-block-gallery { grid-template-columns: 1fr 1fr; }
	.mv-form-card { padding: 28px 20px; }
	.mv-band { padding-top: 96px; padding-bottom: 96px; }
	.mv-band--photo { padding-top: 140px; padding-bottom: 140px; }
	.mv-embed iframe { height: 520px; }
}
@media (max-width: 600px) {
	.mv-hero, .mv-band, .mv-section { --gutter: 16px; }
	.mv-feature-list { grid-template-columns: 1fr; }
	.mv-schedule li { flex-direction: column; gap: 2px; }
	.mv-schedule strong { flex-basis: auto; }
}

/* ---------- Footer ---------- */
.mv-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); font-size: 0.96rem; }
.mv-footer a { color: #fff; text-decoration: none; }
.mv-footer a:hover { color: #8fbaff; }
.mv-footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 0.8fr; gap: 48px; padding-top: 80px; padding-bottom: 56px; }
.mv-footer-brand img { height: 80px; width: auto; display: block; margin-bottom: 18px; }
.mv-footer-brand p { max-width: 28em; margin: 0 0 22px; }
.mv-footer-title { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8fbaff; margin-bottom: 18px; }
.mv-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mv-footer-icons li { display: flex; gap: 12px; align-items: flex-start; overflow-wrap: anywhere; }
.mv-footer-icons .icon { color: #8fbaff; margin-top: 3px; }
.mv-footer-icons strong { color: #fff; }
.mv-footer-icons small { color: rgba(255, 255, 255, 0.5); }
.mv-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.86rem; color: rgba(255, 255, 255, 0.5); }
.mv-footer-bottom p { margin: 0; }
.mv-footer-bottom a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Posts ---------- */
.mv-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.mv-post-card { display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform 0.3s var(--ease); }
.mv-post-card:hover { transform: translateY(-4px); }
.mv-post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.mv-post-card > div { padding: 24px; }
.mv-post-card h2 { font-size: 1.3rem; }
.mv-pagination { margin-top: 40px; }
.mv-pagination .nav-links { display: flex; gap: 8px; }
.mv-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.mv-pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.mv-menu > li > a { padding: 10px 10px; font-size: 0.93rem; }
	.mv-live { padding: 0.75em 1em; }
}

@media (max-width: 1024px) {
	h1 { font-size: 48px; } h2 { font-size: 36px; } h3 { font-size: 28px; } h5 { font-size: 18px; } h6 { font-size: 14px; }
	.mv-nav-toggle { display: inline-flex; }
	.mv-nav {
		position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px 20px 32px; overflow-y: auto;
		background: var(--navy);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
	}
	.admin-bar .mv-nav { top: calc(var(--header-h) + 46px); }
	.is-scrolled .mv-nav { top: 74px; }
	.mv-nav-open .mv-nav { opacity: 1; visibility: visible; transform: none; }
	.mv-nav-open { overflow: hidden; }
	.mv-nav-open .mv-open { display: none; }
	.mv-nav-open .mv-close { display: inline; }
	.mv-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.mv-menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
	.mv-menu > li > a { flex: 1; padding: 14px 8px; font-size: 1.1rem; border-radius: 10px; }
	.mv-menu > li.menu-give { border-bottom: 0; margin-top: 12px; }
	.mv-menu > li.menu-give > a { margin-left: 0; text-align: center; }
	.mv-sub-toggle { width: 44px; height: 44px; }
	.mv-menu .sub-menu {
		position: static; width: 100%; min-width: 0; margin: 0 0 10px; padding: 6px;
		background: rgba(255, 255, 255, 0.05); box-shadow: none; border-radius: 12px;
		opacity: 1; visibility: visible; transform: none; display: none;
	}
	.mv-menu > li:hover > .sub-menu, .mv-menu > li:focus-within > .sub-menu { display: none; }
	.mv-menu > li.is-open > .sub-menu { display: block; }
	.mv-menu .sub-menu a { color: rgba(255, 255, 255, 0.85); }
	.mv-menu .sub-menu a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
	.mv-menu .sub-menu .mv-sub-toggle { color: rgba(255, 255, 255, 0.7); }
	.mv-menu .sub-menu li:hover > .sub-menu { display: none; }
	.mv-menu .sub-menu li.is-open > .sub-menu { display: block; }
	.mv-live { justify-content: center; }
	.mv-footer-top { grid-template-columns: 1fr 1fr; }
	.mv-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
	.admin-bar .mv-header { top: 46px; }
	/* Keep stacked cards and text off the screen edges on phones. */
	.mv-content .wp-block-column[style*="border"] { margin-left: 16px !important; margin-right: 16px !important; }
	.mv-content .uagb-is-root-container > .uagb-container-inner-blocks-wrap { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 600px) {
	:root { --header-h: 76px; }
	h1 { font-size: 38px; } h2 { font-size: 32px; } h3 { font-size: 26px; }
	.mv-container { padding: 0 16px; }
	.mv-brand img { height: 56px; }
	.is-scrolled .mv-brand img { height: 50px; }
	.mv-content > :where(:not(.alignfull):not(.alignwide):not(.uagb-is-root-container)) { padding-left: 16px; padding-right: 16px; }
	.mv-footer-top { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
