/*
Theme Name: Mettle Medical
Theme URI: https://mettlemedical.com
Author: Mettle Medical Devices Pvt. Ltd.
Description: Custom block theme for Mettle Medical Devices — a premium, modern corporate site.
Version: 0.5.1
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: mettle
*/

/* ============================================================
   Mettle Medical — front-end styles
   Design tokens (colors, fonts, spacing) live in theme.json.
   ============================================================ */

:root {
	--mm-shadow-sm: 0 1px 2px rgba(1, 36, 74, 0.04), 0 4px 16px rgba(1, 36, 74, 0.05);
	--mm-shadow-md: 0 8px 30px rgba(1, 36, 74, 0.10);
	--mm-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--mm-navy: #01244a;
	--mm-glow: #7fb3c9;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

::selection { background: var(--wp--preset--color--accent); color: #fff; }

/* Never break words mid-character in headings */
h1, h2, h3, h4 {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	-webkit-hyphens: none;
}

/* ============================================================
   KICKERS (editorial section labels)
   ============================================================ */
.mm-kicker {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	font-family: var(--wp--preset--font-family--brand);
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	margin: 0 0 1.5rem;
}
.mm-kicker::before {
	content: "";
	width: 42px;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
	flex-shrink: 0;
}
.mm-kicker span {
	font-family: var(--wp--preset--font-family--heading);
	opacity: 0.55;
	letter-spacing: 0.08em;
	margin-right: 0.35rem;
}
.mm-kicker--light { color: var(--mm-glow); }
.mm-kicker--center { justify-content: center; }
.mm-kicker--center::before { display: none; }

/* Legacy eyebrow (still used on inner pages) */
.mm-eyebrow {
	font-family: var(--wp--preset--font-family--brand);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	margin: 0 0 1rem;
}
.mm-eyebrow--light { color: var(--mm-glow); }

.mm-muted { color: var(--wp--preset--color--muted); }
.mm-lead { color: var(--wp--preset--color--ink); max-width: 52ch; }

.mm-section__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.mm-section__title { margin: 0; }

/* ============================================================
   NAVY SECTIONS — shared surface (gradient + aurora + grain)
   ============================================================ */
.mm-section--navy {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--gradient--navy-depth, linear-gradient(160deg, #01244a, #011a35));
	color: rgba(255, 255, 255, 0.82);
}
.mm-section--navy::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(1100px 600px at 84% 12%, rgba(78, 157, 184, 0.20), transparent 60%),
		radial-gradient(800px 500px at 4% 100%, rgba(47, 125, 122, 0.16), transparent 58%);
	pointer-events: none;
}
.mm-section--navy::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
	opacity: 0.05;
	pointer-events: none;
}
.mm-section--navy > * { position: relative; z-index: 1; }

.mm-heading--light { color: #ffffff !important; margin: 0.5rem 0 1.25rem; }
.mm-lead--light { color: rgba(255, 255, 255, 0.78); font-size: 1.125rem; }

/* ============================================================
   HERO
   ============================================================ */
.mm-hero__grid { gap: clamp(2rem, 5vw, 6rem); }
.mm-hero__title {
	margin: 0 0 1.75rem;
	text-wrap: balance;
	max-width: 15ch;
	line-height: 1.04;
}
.mm-hero__lead { max-width: 50ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.75; }
.mm-hero__media { display: flex; justify-content: center; }

.mm-hero__ticks {
	margin-top: 2.75rem;
	font-size: 0.88rem;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.5);
}

/* Layered photo composition */
.mm-hero__stack {
	position: relative;
	width: min(100%, 440px);
	margin-inline: auto;
}
.mm-hero__rings {
	position: absolute;
	inset: -14% -18% auto auto;
	width: 120%;
	height: auto;
	z-index: 0;
}
.mm-hero__photo {
	position: relative;
	z-index: 1;
	margin: 0;
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.mm-hero__photo img { display: block; width: 100%; height: auto; }
.mm-hero__chip {
	position: absolute;
	z-index: 2;
	left: -2.5rem;
	bottom: 2.25rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.35rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
	color: var(--wp--preset--color--primary);
	backdrop-filter: blur(6px);
}
.mm-hero__chip-icon {
	display: inline-flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: rgba(47, 125, 122, 0.12);
	color: var(--wp--preset--color--accent);
	flex-shrink: 0;
}
.mm-hero__chip-icon svg { width: 22px; height: 22px; }
.mm-hero__chip-text { font-size: 0.82rem; line-height: 1.35; color: var(--wp--preset--color--muted); }
.mm-hero__chip-text strong { color: var(--wp--preset--color--primary); font-size: 0.9rem; }

/* ============================================================
   MARQUEE RIBBON
   ============================================================ */
.mm-marquee {
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--base);
	padding: 1.4rem 0 !important;
	overflow: hidden;
}
.mm-marquee__viewport { overflow: hidden; width: 100%; }
.mm-marquee__track {
	display: inline-flex;
	align-items: center;
	gap: 3.5rem;
	width: max-content;
	animation: mm-marquee 36s linear infinite;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	opacity: 0.75;
	white-space: nowrap;
}
.mm-marquee__track i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	opacity: 0.6;
	flex-shrink: 0;
}
@keyframes mm-marquee { to { transform: translateX(-50%); } }

/* ============================================================
   MISSION
   ============================================================ */
.mm-mission__statement {
	font-weight: 500;
	line-height: 1.22;
	letter-spacing: -0.02em;
	font-size: clamp(1.85rem, 3.9vw, 3.2rem);
	margin: 0;
	text-wrap: balance;
}
.mm-mission__statement em {
	font-style: normal;
	color: var(--wp--preset--color--accent);
}

/* ============================================================
   STATS BAND
   ============================================================ */
.mm-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(2rem, 4vw, 4rem);
	margin-inline: auto;
}
.mm-stat { display: flex; flex-direction: column; gap: 0.6rem; padding-left: 1.5rem; border-left: 1px solid var(--wp--preset--color--line); }
.mm-stat__value {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(3rem, 5.5vw, 4.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--primary);
	font-variant-numeric: tabular-nums;
}
.mm-stat__label { font-size: 0.95rem; color: var(--wp--preset--color--muted); max-width: 22ch; line-height: 1.5; }

@media (max-width: 981px) {
	.mm-stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.mm-stats__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   EDITORIAL ROWS (pillars)
   ============================================================ */
.mm-rows { margin-inline: auto; border-top: 1px solid var(--wp--preset--color--line); }
.mm-row {
	display: grid;
	grid-template-columns: 90px 1fr 1.3fr;
	align-items: baseline;
	gap: clamp(1.25rem, 3vw, 3rem);
	padding: clamp(1.75rem, 3.5vw, 2.75rem) 0.5rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	transition: background 0.35s var(--mm-ease), padding-left 0.35s var(--mm-ease);
}
.mm-row:hover {
	background: linear-gradient(90deg, rgba(47, 125, 122, 0.05), transparent 70%);
	padding-left: 1.25rem;
}
.mm-row__num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent);
	letter-spacing: 0.06em;
}
.mm-row__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--primary);
	line-height: 1.15;
}
.mm-row__desc { color: var(--wp--preset--color--muted); font-size: 1.05rem; max-width: 46ch; }

@media (max-width: 781px) {
	.mm-row { grid-template-columns: 1fr; gap: 0.6rem; }
	.mm-row__num { order: -1; }
}

/* ============================================================
   NAVY SPLIT (craftsmanship)
   ============================================================ */
.mm-split { gap: clamp(2rem, 5vw, 5rem); }
.mm-frame { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4); }
.mm-frame img, .mm-frame svg { width: 100%; height: auto; display: block; }

.mm-checklist {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}
.mm-checklist li {
	position: relative;
	padding-left: 2.1rem;
	color: rgba(255, 255, 255, 0.9);
}
.mm-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: rgba(127, 179, 201, 0.16);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fb3c9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px;
}

/* ============================================================
   PHOTO FRAMES
   ============================================================ */
.mm-photo { margin: 0; border-radius: 18px; overflow: hidden; }
.mm-photo img { display: block; width: 100%; height: auto; transition: transform 0.8s var(--mm-ease); }
.mm-photo:hover img { transform: scale(1.03); }
.mm-photo--raised { box-shadow: var(--mm-shadow-md); border: 1px solid var(--wp--preset--color--line); }

/* ============================================================
   STANDARDS strip
   ============================================================ */
.mm-standards__row { gap: 1rem; margin-top: 2rem; }
.mm-badge {
	margin: 0;
	padding: 0.75rem 1.6rem;
	border: 1px solid rgba(1, 36, 74, 0.18);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	background: transparent;
	transition: border-color 0.3s ease, background 0.3s ease;
}
.mm-badge:hover { border-color: var(--wp--preset--color--accent); background: rgba(47, 125, 122, 0.05); }
.mm-fineprint { color: var(--wp--preset--color--muted); font-size: 0.8rem; margin-top: 1.75rem; opacity: 0.7; }

/* ============================================================
   PAGE INTRO + CONTACT
   ============================================================ */
.mm-pageintro h1 { margin: 0.25rem 0 1rem; }

.mm-contact__item { margin-top: 1.5rem; }
.mm-contact__item p { margin: 0; }
.mm-contact__label {
	font-family: var(--wp--preset--font-family--brand);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	margin-bottom: 0.25rem !important;
}
.mm-formcard {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	padding: clamp(1.75rem, 4vw, 3rem);
	box-shadow: var(--mm-shadow-sm);
}
.mm-formcard__hint { color: var(--wp--preset--color--muted); font-size: 0.9rem; }
.mm-formstub { display: grid; gap: 1rem; margin-top: 1.5rem; opacity: 0.55; }
.mm-formstub__line { height: 48px; border-radius: 10px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); }
.mm-formstub__line--tall { height: 120px; }
.mm-formstub__btn {
	justify-self: start;
	padding: 0.9rem 1.9rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 0.95rem;
}

/* ============================================================
   HEADER
   ============================================================ */
/* NOTE: backdrop-filter must live on a pseudo-element, NOT the header
   itself — a filtered element becomes the containing block for
   position:fixed descendants, which would trap the mobile nav overlay
   inside the header. */
header.wp-block-group,
.mm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: transparent !important;
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.mm-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	backdrop-filter: saturate(180%) blur(10px);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	background: rgba(250, 249, 245, 0.82);
	transition: background 0.35s ease;
}
.mm-header.is-scrolled {
	border-bottom-color: var(--wp--preset--color--line);
	box-shadow: 0 6px 30px rgba(1, 36, 74, 0.07);
}
.mm-header.is-scrolled::before { background: rgba(250, 249, 245, 0.94); }
.wp-block-site-logo img { transition: transform 0.3s var(--mm-ease); }
.wp-block-site-logo a:hover img { transform: scale(1.03); }

.mm-header__right { align-items: center; }
.mm-header__cta .wp-block-button__link { font-size: 0.88rem; }
@media (max-width: 781px) {
	/* Doubled specificity: core's layout styles print after this sheet
	   and would otherwise re-apply display:flex. */
	.mm-header .mm-header__cta.mm-header__cta { display: none; }
}

.wp-block-navigation { font-family: var(--wp--preset--font-family--body); font-weight: 500; font-size: 0.98rem; }
.wp-block-navigation a {
	color: var(--wp--preset--color--primary);
	position: relative;
	padding-bottom: 2px;
	transition: color 0.2s ease;
}
.wp-block-navigation a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s var(--mm-ease);
}
.wp-block-navigation a:hover::after,
.wp-block-navigation .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }

/* Accessible focus states */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 2px;
}
.mm-section--navy :focus-visible { outline-color: var(--mm-glow); }

/* ============================================================
   MOBILE NAVIGATION (core nav overlay, restyled)
   ============================================================ */

/* Hamburger trigger — proper 44px tap target */
.wp-block-navigation__responsive-container-open {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	color: var(--wp--preset--color--primary);
	border: 1px solid rgba(1, 36, 74, 0.16);
	background: transparent;
	transition: background 0.2s ease, border-color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}
.wp-block-navigation__responsive-container-open:hover { background: rgba(1, 36, 74, 0.05); }
.wp-block-navigation__responsive-container-open svg { width: 24px; height: 24px; }

/* The "Get in Touch" nav item exists only for the mobile overlay */
@media (min-width: 600px) {
	.wp-block-navigation-item.mm-nav-cta { display: none; }
}

/* Full-screen overlay — navy, grain, generous */
.wp-block-navigation__responsive-container.is-menu-open {
	background: linear-gradient(165deg, #01244a 0%, #011a35 70%, #01203f 100%);
	color: #fff;
	padding: 1.1rem clamp(1.25rem, 6vw, 2.5rem) max(2.5rem, env(safe-area-inset-bottom, 0px) + 2rem);
}
.wp-block-navigation__responsive-container.is-menu-open::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
	opacity: 0.05;
	pointer-events: none;
}

/* Close button */
.wp-block-navigation__responsive-container-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: transparent;
	-webkit-tap-highlight-color: transparent;
}
.wp-block-navigation__responsive-container-close svg { width: 22px; height: 22px; }

/* Menu content — big editorial links, numbered, hairline-ruled */
.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 10vh;
	width: 100%;
}
.is-menu-open .wp-block-navigation__container {
	counter-reset: mm-nav;
	width: 100%;
	gap: 0 !important;
	/* !important: beats core's .is-content-justification-right mapping */
	align-items: stretch !important;
}
.is-menu-open .wp-block-navigation-item {
	counter-increment: mm-nav;
	width: 100%;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	animation: mm-navin 0.6s var(--mm-ease) backwards;
}
.is-menu-open .wp-block-navigation-item:nth-child(1) { animation-delay: 0.10s; }
.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.18s; }
.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.26s; }
.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 0.34s; }
.is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 0.42s; }
@keyframes mm-navin {
	from { opacity: 0; transform: translateY(26px); }
}
.is-menu-open .wp-block-navigation-item a {
	display: flex;
	align-items: baseline;
	gap: 1.1rem;
	width: 100%;
	padding: 1.25rem 0.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.9rem, 8.5vw, 2.5rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: #fff !important;
}
.is-menu-open .wp-block-navigation-item a::before {
	content: counter(mm-nav, decimal-leading-zero);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--mm-glow);
	flex-shrink: 0;
}
/* no desktop underline effect inside the overlay */
.is-menu-open .wp-block-navigation-item a::after { display: none; }

/* CTA item becomes a white pill */
.is-menu-open .wp-block-navigation-item.mm-nav-cta {
	border-bottom: none;
	margin-top: 2.25rem;
	display: flex;
	justify-content: flex-start;
}
.is-menu-open .wp-block-navigation-item.mm-nav-cta a {
	display: inline-flex !important;
	align-items: center;
	width: auto !important;
	background: #ffffff;
	color: var(--wp--preset--color--primary) !important;
	border-radius: 999px;
	padding: 1.1rem 2.2rem !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1;
}
.is-menu-open .wp-block-navigation-item.mm-nav-cta a::before { content: "→"; color: var(--wp--preset--color--accent); font-size: 1.05rem; order: 2; margin-left: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
	.is-menu-open .wp-block-navigation-item { animation: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.mm-footer {
	background: var(--wp--preset--color--primary-dark);
	color: rgba(255, 255, 255, 0.72);
	overflow: hidden;
}
.mm-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.2s ease; }
.mm-footer a:hover { color: #ffffff; }
.mm-footer h4 {
	font-family: var(--wp--preset--font-family--brand);
	color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 1rem;
}
.mm-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.mm-footer__wordmark {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: clamp(5rem, 17vw, 16rem);
	line-height: 0.85;
	letter-spacing: 0.02em;
	text-align: center;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
	user-select: none;
	margin-top: clamp(2rem, 5vw, 4rem);
	margin-bottom: -0.18em;
	white-space: nowrap;
}
@supports not (-webkit-text-stroke: 1px black) {
	.mm-footer__wordmark { color: rgba(255, 255, 255, 0.05); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.wp-block-button__link {
	transition: transform 0.25s var(--mm-ease), box-shadow 0.3s var(--mm-ease), background 0.25s ease, color 0.25s ease;
}
.wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: 0.6rem;
	transition: transform 0.3s var(--mm-ease);
}
.wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(1, 36, 74, 0.28);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 1.5px solid rgba(1, 36, 74, 0.35);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
	color: #fff;
}
.mm-section--navy .wp-block-button.is-style-outline .wp-block-button__link {
	color: #fff; border-color: rgba(255, 255, 255, 0.45);
}
.mm-section--navy .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.8);
	color: #fff;
}
.mm-section--navy .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: #ffffff;
	color: var(--wp--preset--color--primary);
}
.mm-section--navy .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

/* Small header CTA keeps tight padding */
.mm-header__cta .wp-block-button__link::after { content: none; }

/* ============================================================
   SCROLL REVEAL SYSTEM
   ============================================================ */
.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.9s var(--mm-ease), transform 0.9s var(--mm-ease), filter 0.9s var(--mm-ease);
	will-change: opacity, transform;
}
.reveal.reveal--blur { filter: blur(10px); }
.reveal.reveal--clip {
	transform: none;
	clip-path: inset(0 0 100% 0);
	transition: opacity 0.4s ease, clip-path 1.1s var(--mm-ease);
}
.reveal.is-visible {
	opacity: 1;
	transform: none;
	filter: none;
	clip-path: inset(0 0 0% 0);
}

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; transition: none; }
	.mm-marquee__track { animation: none; }
	.mm-photo img, .wp-block-button__link { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 781px) {
	.mm-header { padding-top: 0.65rem !important; padding-bottom: 0.65rem !important; }
	.mm-header .wp-block-site-logo img { width: 126px !important; height: auto !important; }
	.mm-hero__grid { text-align: center; }
	.mm-lead, .mm-hero__lead, .mm-hero__title { margin-inline: auto; }
	.mm-hero__title { font-size: clamp(2.5rem, 10vw, 3.2rem); }
	.mm-hero__stack { width: min(100%, 380px); margin-top: 2rem; }
	.mm-hero__chip { left: -0.5rem; }
	.mm-kicker { justify-content: center; }
	.mm-kicker::before { display: none; }
	.mm-standards__row { gap: 0.6rem; }
	.mm-footer__wordmark { font-size: clamp(3.5rem, 16vw, 6rem); }
}
