/* MotionSAFE: Option A (statement-led), December 2026 */

:root {
	--ms-ink: #0A1E2C;
	--ms-navy: #0E2739;
	--ms-blue: #1A85C8;
	--ms-blue-dark: #156FA8;
	--ms-blue-light: #7FC0EA;
	--ms-mist: #EEF3F7;
	--ms-slate: #44596A;
	--ms-rule: #B9CCDA;
	--ms-fog: #D3DEE6;
	--ms-muted-dark: #A9BCCB;
	--ms-wide: 1320px;
	--ms-gutter: clamp(20px, 4vw, 40px);
	--ms-display: "Red Hat Display", system-ui, sans-serif;
	--ms-text: "Red Hat Text", system-ui, sans-serif;
}

body { margin: 0; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
:where(a, button, input, summary):focus-visible { outline: 3px solid var(--ms-blue-light); outline-offset: 2px; }
.skip-link:focus { z-index: 100000; }
img { max-width: 100%; height: auto; }

/* Shared layout helpers */
.ms-wrap { width: 100%; max-width: calc(var(--ms-wide) + 2 * var(--ms-gutter)); margin-inline: auto !important; padding-inline: var(--ms-gutter); }
.ms-wrap > *, .ms-grid > *, .ms-facts > *, .ms-split > *, .ms-logos > *, .ms-header__inner > *, .ms-header__bar > *, .ms-footer__inner > *, .ms-footer__cols > *, .ms-footer__cta > *, .ms-footer__base > * { margin-block: 0; }
.ms-section { padding-block: clamp(72px, 8vw, 112px); }
.ms-section--tight { padding-block: clamp(56px, 6vw, 88px); }
.ms-stack { display: flex; flex-direction: column; gap: 16px; }
.ms-stack > * { margin-block: 0; }
.ms-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ms-blue-dark); }
.ms-lead { font-size: var(--wp--preset--font-size--l); line-height: 1.5; }
.ms-muted { color: var(--ms-slate); }
.ms-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.ms-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.ms-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px 64px; }

/* Dark and light bands */
.is-style-ms-dark, .ms-dark { background: var(--ms-navy); color: #fff; }
.is-style-ms-dark a:where(:not(.wp-element-button)), .ms-dark a:where(:not(.wp-element-button)) { color: #fff; }
.is-style-ms-mist, .ms-mist { background: var(--ms-mist); }

/* Buttons */
.wp-block-button__link { display: inline-flex; align-items: center; gap: 24px; min-height: 54px; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.wp-block-button.is-style-ms-white .wp-block-button__link { background: #fff; color: var(--ms-navy); }
.wp-block-button.is-style-ms-white .wp-block-button__link:hover { background: var(--ms-mist); color: var(--ms-navy); }
.wp-block-button.is-style-ms-outline .wp-block-button__link { background: transparent; color: #fff; border: 1px solid #fff; min-height: 46px; padding: 0 22px; font-size: 15px; }
.wp-block-button.is-style-ms-outline .wp-block-button__link:hover { background: #fff; color: var(--ms-navy); }
.wp-block-button.is-style-ms-link .wp-block-button__link { background: none; color: inherit; padding: 0; min-height: 54px; text-decoration: underline; text-underline-offset: 4px; }
.wp-block-button.is-style-ms-link .wp-block-button__link:hover { background: none; text-decoration-thickness: 2px; }
.wp-block-buttons { gap: 14px 32px; align-items: center; }

/* Header */
.ms-header-part { position: relative; z-index: 20; }
.ms-header { color: #fff; }
.ms-header--solid { background: var(--ms-navy); }
.ms-has-overlay-header .ms-header-part { position: absolute; inset: var(--wp-admin--admin-bar--height, 0px) 0 auto 0; }
.ms-header--overlay { background: transparent; border-bottom: 1px solid rgba(255,255,255,0.18); }
.ms-header__inner { max-width: calc(var(--ms-wide) + 2 * var(--ms-gutter)); margin-inline: auto; padding-inline: var(--ms-gutter); }
.ms-header a { color: #fff; }
.ms-utility { padding-top: 14px; font-family: var(--ms-text) !important; font-size: 14px !important; font-weight: 400 !important; gap: 4px 28px !important; }
.ms-utility a, .ms-utility .wp-block-navigation-item__content { color: var(--ms-fog) !important; }
.ms-header__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 56px; min-height: 84px; }
.ms-logo { flex: 0 0 auto; }
.ms-logo img { height: 40px; width: auto; display: block; }
.ms-mainnav { flex: 1 1 auto; gap: 4px 36px !important; }
.ms-mainnav .wp-block-navigation-item__content { padding-block: 6px; }
.ms-mainnav .wp-block-navigation-item__content:hover,
.ms-mainnav .current-menu-item > .wp-block-navigation-item__content { text-decoration: underline; text-decoration-color: var(--ms-blue); text-decoration-thickness: 2px; text-underline-offset: 10px; }
.ms-header__actions { display: flex; align-items: center; gap: 10px; }
.ms-header__actions > * { margin: 0 !important; }
.ms-search .wp-block-search__button { background: transparent; color: #fff; border: 0; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; }
.ms-search .wp-block-search__button svg { width: 24px; height: 24px; fill: currentColor; }
.ms-search .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.ms-search.wp-block-search__searchfield-hidden .wp-block-search__input { width: 0; padding: 0; border: 0; }
.ms-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input { min-width: 220px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08); color: #fff; }
.ms-cart .wc-block-mini-cart__button { color: #fff; padding: 0 10px; height: 44px; }
.ms-cart .wc-block-mini-cart__badge { background: var(--wp--preset--color--yellow) !important; color: var(--ms-navy) !important; border-radius: 0; font-weight: 700; }
.ms-header__cta { margin: 0; }
.ms-header .wp-block-navigation__responsive-container-open { color: #fff; }
.ms-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--ms-navy) !important; color: #fff !important; padding: 32px var(--ms-gutter); }
.ms-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 24px; padding-block: 8px; }
@media (max-width: 781px) {
	.ms-header__bar { gap: 8px 16px; min-height: 72px; }
	.ms-mainnav { order: 3; flex: 0 0 auto; margin-left: auto !important; }
	.ms-header__actions { margin-left: auto !important; }
	.ms-header__cta { display: none; }
	.ms-logo img { height: 32px; }
	.ms-utility { gap: 4px 18px !important; font-size: 13px !important; }
}

/* Hero (home) */
.ms-hero { position: relative; isolation: isolate; background: var(--ms-ink); color: #fff; min-height: clamp(640px, 100svh, 860px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.ms-hero > * { margin-block: 0; }
.ms-hero__bg { position: absolute !important; inset: 0; margin: 0 !important; z-index: -2; }
.ms-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; }
.ms-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,30,44,0.82) 0%, rgba(10,30,44,0.35) 30%, rgba(10,30,44,0.45) 55%, rgba(10,30,44,0.92) 100%); }
.ms-hero__content { padding-top: 190px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 64px; }
.ms-hero__copy { display: flex; flex-direction: column; gap: 28px; max-width: 900px; }
.ms-hero__copy > * { margin: 0; }
.ms-hero h1 { font-size: var(--wp--preset--font-size--hero); font-weight: 500; line-height: 1.02; letter-spacing: -0.025em; }
.ms-hero .ms-lead { color: var(--ms-fog); max-width: 640px; }
.ms-hero a { color: #fff; }
.ms-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px 40px; }
.ms-fact { border-top: 1px solid rgba(255,255,255,0.35); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.ms-fact > * { margin: 0; }
.ms-fact__k { font-family: var(--ms-display); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.ms-fact__v { font-size: 15px; color: #C3D2DD; }

/* Section headings */
.ms-sechead { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin-bottom: 56px !important; }
.ms-sechead > * { margin: 0; }
.ms-sechead h2 { font-size: var(--wp--preset--font-size--xxxl); }
.ms-sechead--row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 40px !important; }
.ms-sechead--row h2 { font-size: var(--wp--preset--font-size--xxl); }
.ms-sechead a { font-weight: 600; }

/* Service cards */
.ms-service { display: flex; flex-direction: column; gap: 18px; }
.ms-service > * { margin: 0 !important; }
.ms-service .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--ms-mist); }
.ms-service p:not(.ms-arrowlink) { color: var(--ms-slate); }
.ms-arrowlink a { display: flex; align-items: center; gap: 16px; font-weight: 600; color: var(--ms-blue-dark); text-decoration: none; }
.ms-arrowlink a::after { content: "→"; order: 3; }
.ms-arrowlink a::before { content: ""; order: 2; flex: 1 1 auto; height: 1px; background: var(--ms-rule); }
.ms-arrowlink a:hover { color: var(--ms-navy); }

/* Industries band */
.ms-industries h2 { margin: 0 0 48px; font-size: var(--wp--preset--font-size--xxl); }
.ms-industry { position: relative; border-top: 2px solid var(--ms-blue); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.ms-industry > * { margin: 0; }
.ms-industry h3 { font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.ms-industry h3 a { color: #fff; text-decoration: none; }
.ms-industry h3 a::after { content: ""; position: absolute; inset: 0; }
.ms-industry p { font-size: 15px; color: var(--ms-muted-dark); }
.ms-industry::after { content: "→"; color: var(--ms-blue-light); font-size: 20px; margin-top: auto; padding-top: 6px; }
.ms-industry:hover h3 a { text-decoration: underline; text-underline-offset: 4px; }

/* Field-guide cards */
.ms-guide-grid { gap: 24px; }
.ms-guide { position: relative; overflow: hidden; min-height: 240px; padding: 28px; background: var(--ms-mist); display: flex; flex-direction: column; gap: 18px; }
.ms-guide > * { margin: 0; }
.ms-guide::after { content: ""; position: absolute; right: 20px; bottom: 20px; width: 220px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='40' viewBox='0 0 220 40' fill='none' stroke='%23C3D4E1' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M0 20h70l6-8 6 16 7-28 8 38 7-30 6 18 5-6h105'/%3E%3C/svg%3E") no-repeat; pointer-events: none; }
.ms-tag, .ms-guide .ms-tag { align-self: flex-start; background: #fff; color: var(--ms-navy); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 10px; }
.ms-tag a { color: inherit; text-decoration: none; }
.ms-guide h3 { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: 0; max-width: 340px; }
.ms-guide h3 a { color: var(--ms-navy); text-decoration: none; }
.ms-guide h3 a::after { content: ""; position: absolute; inset: 0; }
.ms-guide:hover h3 a { text-decoration: underline; text-underline-offset: 4px; }

/* Page heads (inner pages) */
.ms-pagehead { background: var(--ms-navy); color: #fff; padding: clamp(48px, 6vw, 88px) var(--ms-gutter) clamp(40px, 5vw, 72px); }
.ms-pagehead > * { max-width: var(--ms-wide); margin-inline: auto !important; }
.ms-pagehead > * + * { margin-top: 16px; }
.ms-pagehead__title, .ms-pagehead h1 { font-size: var(--wp--preset--font-size--hero); font-weight: 500; line-height: 1.04; margin-block: 0; }
.ms-pagehead--post .ms-pagehead__title { font-size: var(--wp--preset--font-size--xxxl); max-width: 980px; margin-left: max(0px, calc((100% - var(--ms-wide)) / 2)) !important; }
.ms-pagehead__meta, .ms-kicker { color: var(--ms-fog); font-size: 15px; }
.ms-kicker a { color: var(--ms-blue-light); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: 13px; text-decoration: none; }
.ms-pagehead__lead { color: var(--ms-fog); font-size: var(--wp--preset--font-size--l); max-width: 760px !important; margin-left: max(0px, calc((100% - var(--ms-wide)) / 2)) !important; }

/* Prose pages and posts */
.ms-prose { padding-block: clamp(48px, 6vw, 88px); }
.ms-prose :where(h2) { font-size: var(--wp--preset--font-size--xl); font-weight: 600; margin-top: 1.8em; }
.ms-prose :where(h3) { font-size: var(--wp--preset--font-size--l); margin-top: 1.6em; }
.ms-prose :where(p, li) { color: #24384A; }
.ms-prose :where(ul, ol) { padding-left: 1.2em; }
.ms-prose a:where(:not(.wp-element-button)) { text-decoration: underline; text-underline-offset: 3px; }
.ms-feature { margin-bottom: 40px !important; max-width: 1040px !important; }
.ms-feature img { width: 100%; object-fit: cover; }
.ms-post-cta { margin-top: 56px !important; padding: 32px; background: var(--ms-mist); border-left: 4px solid var(--ms-blue); }
.ms-post-cta > * + * { margin-top: 16px; }
.ms-postnav { margin-top: 24px !important; font-weight: 600; }
.ms-postnav a { text-decoration: none !important; }

/* Listing cards (Learn, archives, search) */
.ms-listing { padding-block: clamp(48px, 6vw, 88px); }
.ms-cards { max-width: var(--ms-wide); margin-inline: auto; }
.ms-cards__grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.ms-cards__grid > li { margin: 0; }
.ms-card { position: relative; height: 100%; padding: 28px; background: var(--ms-mist); display: flex; flex-direction: column; gap: 14px; }
.ms-card > * { margin: 0; }
.ms-card__title { font-size: 22px !important; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.ms-card__title a { color: var(--ms-navy); text-decoration: none; }
.ms-card__title a::after { content: ""; position: absolute; inset: 0; }
.ms-card:hover .ms-card__title a { text-decoration: underline; text-underline-offset: 4px; }
.ms-card__excerpt { color: var(--ms-slate); font-size: 15px; }
.ms-card__excerpt .wp-block-post-excerpt__more-link { display: none; }
.ms-pagination { margin-top: 40px !important; font-weight: 600; }

/* Split rows (text + photo), used on inner pages */
.ms-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px 72px; align-items: center; }
.ms-split > * { margin: 0 !important; }
.ms-split .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ms-anchor { scroll-margin-top: 24px; }
.ms-checklist { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 10px; }
.ms-checklist li { padding-left: 28px; position: relative; }
.ms-checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--ms-blue); }
.ms-rule-list > * { border-top: 1px solid var(--ms-rule); padding-top: 20px; }

.ms-section--flush { padding-top: 0; }
.ms-split--top { align-items: start; }
.ms-split .ms-stack { gap: 18px; }
.ms-split .wp-block-image img { object-position: center 40%; }
.ms-stack > .wp-block-buttons { margin-top: 8px; }
.ms-pagehead .ms-eyebrow, .is-style-ms-dark .ms-eyebrow, .ms-dark .ms-eyebrow { color: var(--ms-blue-light); }

/* Reasons (four-up, rule above each) */
.ms-reason { display: flex; flex-direction: column; gap: 10px; }
.ms-reason > * { margin: 0; }
.ms-reason h3 { font-size: 21px; font-weight: 600; letter-spacing: 0; }
.ms-reason p { color: var(--ms-slate); font-size: 15px; }

/* Pull quote */
.ms-quote { max-width: 960px; display: flex; flex-direction: column; gap: 20px; }
.ms-quote > * { margin: 0; }
.ms-quote__text { font-family: var(--ms-display); font-size: var(--wp--preset--font-size--xl); font-weight: 500; line-height: 1.35; color: #fff; }
.ms-quote__cite { font-size: 15px; color: var(--ms-muted-dark); }

/* Contact */
.ms-details { display: flex; flex-direction: column; gap: 20px; }
.ms-detail { display: flex; flex-direction: column; gap: 4px; }
.ms-detail > * { margin: 0; }
.ms-detail a { font-size: var(--wp--preset--font-size--l); }
.ms-formcard { background: var(--ms-mist); padding: clamp(24px, 4vw, 40px); }

/* Learn: official guides */
.ms-guides { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.ms-guides > * { margin: 0; border-top: 1px solid var(--ms-rule); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.ms-guides > * > * { margin: 0; }
.ms-guides h3 { font-size: 19px; font-weight: 600; letter-spacing: 0; }
.ms-guides h3 a::after { content: " ↗"; }
.ms-guides p { color: var(--ms-slate); font-size: 15px; }

/* Logos */
.ms-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px; align-items: center; }
.ms-logos > * { margin: 0 !important; }
.ms-logos img { max-height: 64px; width: auto; margin-inline: auto; display: block; filter: grayscale(1); opacity: .8; }

/* Forms (Contact Form 7) */
.wpcf7 :where(input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea) { width: 100%; padding: 12px 14px; border: 1px solid var(--ms-rule); border-radius: 0; font: inherit; color: var(--ms-navy); background: #fff; }
.wpcf7 :where(input, select, textarea):focus { outline: 3px solid var(--ms-blue-light); outline-offset: 0; border-color: var(--ms-blue-dark); }
.wpcf7 label { font-weight: 600; display: block; }
.wpcf7 p { margin: 0 0 18px; }
.wpcf7 input[type=submit] { background: var(--ms-blue-dark); color: #fff; border: 0; min-height: 54px; padding: 0 28px; font: inherit; font-weight: 600; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--ms-navy); }

/* Footer */
.ms-footer { background: var(--ms-ink); color: #C9D6E0; font-size: 15px; }
.ms-footer a { color: #C9D6E0; text-decoration: none; }
.ms-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ms-footer__inner { max-width: calc(var(--ms-wide) + 2 * var(--ms-gutter)); margin-inline: auto; padding-inline: var(--ms-gutter); }
.ms-footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 72px 0 64px; border-bottom: 1px solid #23445C; }
.ms-footer__statement { font-family: var(--ms-display); font-weight: 500; font-size: var(--wp--preset--font-size--xxl); line-height: 1.1; letter-spacing: -0.02em; color: #fff; max-width: 720px; }
.ms-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; padding: 56px 0; }
.ms-footer__brand { flex: 2 1 300px; display: flex; flex-direction: column; gap: 18px; }
.ms-footer__brand > * { margin: 0; max-width: 320px; }
.ms-footer__brand .ms-logo img { height: 30px; }
.ms-footer__contact { line-height: 1.6; }
.ms-footer__contact a { color: #fff; }
.ms-footer__col { flex: 1 1 160px; }
.ms-footer__col > * { margin: 0; }
.ms-footer__heading { font-family: var(--ms-display); font-size: 16px !important; font-weight: 600; letter-spacing: 0; color: #fff; padding-bottom: 14px; }
.ms-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ms-footer__base { border-top: 1px solid #23445C; padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: var(--ms-muted-dark); }
.ms-footer__base p { margin: 0; }
.ms-footer__legal { display: flex; flex-wrap: wrap; gap: 24px; }
.ms-footer__legal a { color: var(--ms-muted-dark); }
