/* Matrix Thornton: base styles. Page sections carry their own inline styles from the V2 design. */
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: #304151; font-family: Manrope, system-ui, sans-serif; font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
a { color: #680F0F; }
a:hover { color: #8B1414; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid #680F0F; outline-offset: 2px; }
[hidden] { display: none !important; }
main { display: block; }

.mt-skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 16px; background: #FFFFFF; color: #680F0F; font-weight: 700; }
.mt-skip:focus { left: 16px; top: 16px; }

/* Header: transparent over the hero, slate once scrolled or a menu is open */
.mt-header { background: rgba(48,65,81,0); box-shadow: none; }
.mt-header .mt-hbar { height: 110px; }
.mt-header.is-solid, .mt-solid-header .mt-header { background: rgba(48,65,81,0.92); box-shadow: 0 10px 24px rgba(14,20,25,0.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mt-header.is-solid .mt-hbar, .mt-solid-header .mt-header .mt-hbar { height: 84px; }
.admin-bar .mt-header { top: 32px !important; }
@media (max-width: 782px) { .admin-bar .mt-header { top: 46px !important; } }

.mt-nav-link:hover { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 8px !important; }
.mt-call:hover { background: #8B1414 !important; color: #FFFFFF !important; }
.mt-mega-item:hover { background: #F2F4F6; }
.mt-foot-link:hover { color: #680F0F !important; }
.mt-band-link:hover { text-decoration: underline !important; color: #FFFFFF !important; }
.mt-tile:hover { color: #680F0F !important; box-shadow: 0 15px 15px rgba(130,130,130,0.12); }
.mt-btn:hover { background: #8B1414 !important; color: #FFFFFF !important; }

/* Plain text pages (Privacy Policy and any page added later) */
.mt-prose { max-width: 820px; margin: 0 auto; padding: 180px 20px 96px; font-size: 18px; line-height: 1.7; color: #304151; }
.mt-prose h1 { margin: 0 0 32px; font-family: Rubik, sans-serif; font-weight: 700; font-size: 48px; line-height: 1.05; text-transform: uppercase; color: #131A21; }
.mt-prose h2, .mt-prose h3 { font-family: Rubik, sans-serif; font-weight: 700; text-transform: uppercase; color: #131A21; line-height: 1.15; margin: 40px 0 12px; }
.mt-prose h2 { font-size: 28px; }
.mt-prose h3 { font-size: 21px; }

/* Contact Form 7 */
.mt-f { display: grid; }
.mt-f .wpcf7-form-control-wrap { display: block; }
.mt-f__full { grid-column: 1 / -1; }
.mt-f--band { grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.mt-f--boxed { grid-template-columns: 1fr 1fr; gap: 18px; }
.mt-f--stack { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.mt-f input:not([type="submit"]):not([type="file"]), .mt-f select, .mt-f textarea { width: 100%; font-size: 17px; }
.mt-f textarea { resize: vertical; }

.mt-f--band input:not([type="submit"]), .mt-f--band textarea { padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid #FFFFFF; border-radius: 0; color: #FFFFFF; }
.mt-f--band textarea { height: auto; }
.mt-f--band ::placeholder { color: rgba(255,255,255,0.75); opacity: 1; }
.mt-f--band input:focus, .mt-f--band textarea:focus { outline: none; border-bottom-width: 2px; }
.mt-f--band .mt-f__submit { padding: 19px 28px; border: 0; border-radius: 5px; background: #FFFFFF; color: #680F0F; font-family: Rubik, sans-serif; font-weight: 700; font-size: 16px; line-height: 1; text-transform: uppercase; cursor: pointer; }
.mt-f--band .mt-f__submit:hover { background: #F2F4F6; }
.mt-cf7--footer .wpcf7-not-valid-tip { color: #FECACA; }

.mt-f--boxed input:not([type="submit"]), .mt-f--boxed select, .mt-f--stack input:not([type="submit"]):not([type="file"]) { height: 56px; padding: 0 18px; border: 1px solid #E1E1E1; border-radius: 5px; color: #131A21; }
.mt-f--boxed textarea, .mt-f--stack textarea { padding: 16px 18px; border: 1px solid #E1E1E1; border-radius: 5px; color: #131A21; }
.mt-f--boxed input:not([type="submit"]), .mt-f--boxed select, .mt-f--boxed textarea { background: #F2F4F6; }
.mt-f--boxed select { padding: 0 14px; color: #304151; }
.mt-f--stack input:not([type="submit"]), .mt-f--stack textarea { background: #FFFFFF; }
.mt-f--boxed input:focus, .mt-f--boxed select:focus, .mt-f--boxed textarea:focus { outline: none; border-color: #680F0F; background: #FFFFFF; }
.mt-f--stack input:focus, .mt-f--stack textarea:focus { outline: none; border-color: #680F0F; }
.mt-f--boxed .mt-f__submit, .mt-f--stack .mt-f__submit { padding: 19px 28px; border: 0; border-radius: 5px; background: #680F0F; color: #FFFFFF; font-family: Rubik, sans-serif; font-weight: 700; font-size: 16px; line-height: 1; text-transform: uppercase; cursor: pointer; }
.mt-f--boxed .mt-f__submit:hover, .mt-f--stack .mt-f__submit:hover { background: #8B1414; }

.mt-file { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; border: 1px dashed #A9B1BA; border-radius: 5px; background: #FFFFFF; cursor: pointer; }
.mt-file:hover { border-color: #680F0F; }
.mt-file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mt-file__btn { white-space: nowrap; font-family: Rubik, sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; color: #680F0F; }
.mt-file__name { font-size: 15px; color: #69727D; }
.mt-file .wpcf7-form-control-wrap { flex-basis: 100%; }

.wpcf7-not-valid-tip { margin-top: 6px; font-size: 14px; font-weight: 600; color: #B91C1C; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0 !important; padding: 12px 16px !important; border: 0 !important; border-radius: 5px; font-size: 15px; font-weight: 600; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output { background: #FEF2F2; color: #B91C1C; }
.wpcf7 form.sent .wpcf7-response-output { background: #F0FDF4; color: #166534; }
.wpcf7-spinner { margin: 0 0 0 16px; vertical-align: middle; }

@media (max-width: 700px) {
	.mt-f--band, .mt-f--boxed { grid-template-columns: 1fr; }
	.mt-prose { padding-top: 140px; }
	.mt-prose h1 { font-size: 36px; }
}
