/*
Theme Name:        Membrayn Motion Theme
Theme URI:         https://membrayn.com
Author:            Membrayn Limited
Author URI:        https://membrayn.com
Description:       A lean block theme in the Membrayn brand colours and fonts (Poppins and Nunito Sans), built to pair with the Membrayn Motion plugin and Elementor. Pages built in Elementor automatically get a full-width template with no theme title or padding.
Version:           0.1.0
Requires at least: 6.6
Tested up to:      6.8
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       membrayn-motion-theme
Tags:              block-theme, full-site-editing, custom-colors, editor-style, wide-blocks, accessibility-ready
*/

/* Layout: no gaps between header, content and footer. */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks { padding-left: 0; padding-right: 0; }

/* Skip link and keyboard focus. */
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--charcoal);
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	padding: 0.75rem 1rem;
	z-index: 100000;
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--azure);
	outline-offset: 2px;
}

/* Header: white, with a Mist Blue hairline. */
.mbm-header {
	background: var(--wp--preset--color--white);
	border-bottom: 1px solid var(--wp--preset--color--mist);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

/* Footer: Teal with white text (guideline: white on Teal is safe for body text). */
.mbm-footer {
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50);
}
.mbm-footer :where(a, h1, h2, h3, h4, h5, h6, p, .wp-block-site-title a, .wp-block-navigation a) { color: var(--wp--preset--color--white); }
.mbm-footer .wp-block-navigation a { text-decoration: none; }
.mbm-footer .wp-block-navigation a:hover { text-decoration: underline; }
.mbm-footer__legal { font-size: var(--wp--preset--font-size--small); opacity: 0.85; margin: 0; }
.mbm-footer :focus-visible { outline-color: var(--wp--preset--color--white); }

/* Main area. Pages built with Elementor use the template below: edge to edge, no theme padding. */
.mbm-main { padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50); }
.mbm-main--elementor { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.mbm-main--elementor > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

/* Buttons: a quiet hover that stays inside the palette (a darker Teal, never an off-brand colour). */
.wp-element-button:hover,
.wp-block-button__link:hover { filter: brightness(0.9); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { filter: none; background: var(--wp--preset--color--mist); }

/* Respect visitors who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
