/*
Theme Name: MeetingResult
Theme URI: https://www.meetingresult-consulting.com
Description: Twenty Twenty-Five child theme for MeetingResult Consulting. Design tokens live in theme.json; this file carries header/footer chrome, block-style extras, and shims for legacy utility classes still present in content.
Author: KM Digital
Template: twentytwentyfive
Version: 1.3.1
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meetingresult
*/

:root {
	--mr-header-height: 88px;
	--mr-shadow-soft: 0 10px 40px -12px rgba(23, 20, 31, 0.12);
}

/* ---------------------------------------------------------------------------
 * Header / footer chrome
 * ------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--wp--preset--color--border);
	min-height: var(--mr-header-height);
	align-items: center;
	transition: transform 0.28s ease, background-color 0.25s ease, border-color 0.25s ease;
}

/* While the mobile menu is open, the header must not create a containing
   block (backdrop-filter/transform would trap the fixed fullscreen overlay
   inside the header bar). */
.site-header:has(.wp-block-navigation__responsive-container.is-menu-open) {
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	transform: none !important;
	transition: none;
}

/* Headroom behavior (assets/js/header.js): hidden while scrolling down,
   frosted while scrolling up, transparent at the very top. */
.site-header.mr-hide {
	transform: translateY(-100%);
}

.site-header.mr-top {
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-bottom-color: transparent;
}

.site-logo {
	display: inline-flex;
	line-height: 0;
}

/* Two logo variants; light one only shows on the overlay header */
.site-logo .logo-light {
	display: none;
}

/* ---------------------------------------------------------------------------
 * Overlay header: when a page opens with a dark image hero, the header goes
 * absolute + transparent over it, with white nav and the white-mark logo.
 * ------------------------------------------------------------------------- */

.wp-site-blocks:has(.wp-block-post-content > .wp-block-cover.mr-dark-band:first-child) .site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: rgba(16, 16, 20, 0.62);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Fully transparent over the hero image at the top of the page */
.wp-site-blocks:has(.wp-block-post-content > .wp-block-cover.mr-dark-band:first-child) .site-header.mr-top {
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-bottom-color: transparent;
}

.wp-site-blocks:has(.wp-block-post-content > .wp-block-cover.mr-dark-band:first-child) .site-header .wp-block-navigation-item__label {
	color: #fff;
}

.wp-site-blocks:has(.wp-block-post-content > .wp-block-cover.mr-dark-band:first-child) .site-header .wp-block-navigation a:where(:not(.wp-element-button)):hover .wp-block-navigation-item__label {
	color: var(--wp--preset--color--accent);
}

.wp-site-blocks:has(.wp-block-post-content > .wp-block-cover.mr-dark-band:first-child) .site-header .wp-block-navigation__responsive-container-open {
	color: #fff;
}

.wp-site-blocks:has(.wp-block-post-content > .wp-block-cover.mr-dark-band:first-child) .site-header .logo-dark {
	display: none;
}

.wp-site-blocks:has(.wp-block-post-content > .wp-block-cover.mr-dark-band:first-child) .site-header .logo-light {
	display: inline;
}

/* Dropdown submenu labels stay dark on their white panels */
.wp-site-blocks:has(.wp-block-post-content > .wp-block-cover.mr-dark-band:first-child) .site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
	color: var(--wp--preset--color--contrast);
}

/* With the header fixed (out of flow), the hero starts at the top edge and
   fills the full viewport behind it */
.wp-site-blocks:has(.wp-block-post-content > .wp-block-cover.mr-dark-band:first-child) .wp-block-post-content > .is-style-full-height:first-child {
	min-height: min(100svh, 1100px);
}

.wp-block-navigation .wp-block-navigation-item__label {
	color: var(--wp--preset--color--contrast);
}

.wp-block-navigation a:where(:not(.wp-element-button)):hover .wp-block-navigation-item__label {
	color: var(--wp--preset--color--primary);
}

/* "Contact Us" nav item rendered as a pill button */
.wp-block-navigation .nav-cta a {
	background: var(--wp--preset--color--primary);
	border-radius: 999px;
	padding: 0.6rem 1.4rem;
	transition: background 0.15s ease;
}

.wp-block-navigation .nav-cta a:hover {
	background: #5a29b3;
}

.wp-block-navigation .nav-cta a .wp-block-navigation-item__label,
.wp-block-navigation .nav-cta a:hover .wp-block-navigation-item__label {
	color: #fff;
}

/* Dropdown panels */
.wp-block-navigation .wp-block-navigation__submenu-container {
	background: #fff !important;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
	box-shadow: var(--mr-shadow-soft);
	padding: 0.5rem 0;
}

/* ---------------------------------------------------------------------------
 * Mobile overlay menu — white sheet, dark comfortable-size links, in both
 * header modes (the !importants beat the dark-hero white-label rules).
 * ------------------------------------------------------------------------- */

.wp-block-navigation__responsive-container.is-menu-open {
	background-color: #fff !important;
	padding: calc(var(--mr-header-height) + 1.5rem) var(--wp--preset--spacing--50) var(--wp--preset--spacing--50);
}

/* Left-align the open menu regardless of the desktop nav justification */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	justify-content: flex-start !important;
	text-align: left;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label {
	color: var(--wp--preset--color--contrast) !important;
	font-size: 1.35rem;
	font-weight: 500;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	border: none;
	box-shadow: none;
	padding: 0.25rem 0 0 1.25rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
	color: var(--wp--preset--color--muted) !important;
	font-size: 1.05rem;
	font-weight: 400;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
	color: var(--wp--preset--color--contrast);
}

.wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--contrast) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .nav-cta {
	margin-top: 1.25rem;
}

.wp-block-navigation__responsive-container.is-menu-open .nav-cta a {
	display: inline-flex !important;
	align-items: center;
	padding: 0.9rem 2rem !important;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	line-height: 1 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .nav-cta .wp-block-navigation-item__label {
	color: #fff !important;
	font-size: 1.15rem;
	font-weight: 600;
}

.site-footer {
	background: var(--wp--preset--color--soft);
	border-top: 1px solid var(--wp--preset--color--border);
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--wp--preset--color--primary);
}

/* ---------------------------------------------------------------------------
 * Hero + section framework
 * ------------------------------------------------------------------------- */

/* Registered block style: "Full viewport height" (group & cover).
   Fills the first screen minus the sticky header, content centered. */
.is-style-full-height {
	/* full first screen minus sticky header, sanity-capped for very tall displays */
	min-height: min(calc(100svh - var(--mr-header-height)), 1100px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Subtle brand wash available to any hero via the Aurora Light gradient
   preset, or automatically on the first full-bleed section of a page. */
.wp-block-post-content > .wp-block-group.alignfull:first-child {
	background-image: radial-gradient(90% 70% at 20% 0%, rgba(111, 54, 213, 0.10) 0%, rgba(0, 147, 192, 0.06) 45%, rgba(255, 255, 255, 0) 80%);
}

/* Consistent vertical rhythm for legacy sections that had no explicit padding */
.wp-block-post-content > .wp-block-group {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

/* No gap between the sticky header and the first section */
.wp-site-blocks > main {
	margin-block-start: 0;
}

/* ---------------------------------------------------------------------------
 * Composition components (used by meetingresult/* patterns)
 * ------------------------------------------------------------------------- */

/* Full-bleed hero cover: align inner content with the wide grid */
.wp-block-cover.mr-hero .wp-block-cover__inner-container {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-left: var(--wp--preset--spacing--50);
	padding-right: var(--wp--preset--spacing--50);
}

/* Rounded editorial imagery */
.mr-rounded img {
	border-radius: 1.5rem;
	box-shadow: var(--mr-shadow-soft);
}

/* Stat tiles */
.mr-stat {
	border-left: 3px solid var(--wp--preset--color--primary);
	padding-left: 1.25rem;
}

.mr-stat h2,
.mr-stat .wp-block-heading {
	font-size: clamp(1.9rem, 3vw, 2.75rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	margin: 0;
}

.mr-stat p {
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
	margin-top: 0.35rem;
}

/* Service / feature cards with flush image tops */
.mr-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.25rem;
	overflow: hidden;
	height: 100%;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mr-card:hover {
	box-shadow: var(--mr-shadow-soft);
	transform: translateY(-4px);
}

.mr-card .wp-block-image {
	margin: 0;
}

.mr-card .wp-block-image img {
	display: block;
	width: 100%;
	height: 230px;
	object-fit: cover;
}

.mr-card .mr-card-body {
	padding: 1.5rem 1.75rem 2rem;
}

.mr-card .mr-card-body h3 {
	margin-top: 0;
}

/* Capability chips */
.mr-chips {
	gap: 0.65rem !important;
}

.mr-chips > p {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	padding: 0.5rem 1.15rem;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
}

/* Tick lists (dark bands + light differentiators) */
ul.mr-ticks {
	list-style: none;
	padding-left: 0;
}

ul.mr-ticks li {
	position: relative;
	padding-left: 1.7rem;
	margin-bottom: 0.65rem;
}

ul.mr-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.95rem;
	height: 2px;
	background: var(--wp--preset--color--accent);
}

/* Dark image band — force readable text over dimmed covers */
.mr-dark-band,
.mr-dark-band h2,
.mr-dark-band h3,
.mr-dark-band p,
.mr-dark-band li {
	color: #fff;
}

.mr-dark-band h6 {
	color: var(--wp--preset--color--accent);
}

/* Gradient CTA band */
.mr-cta-band {
	color: #fff;
}

.mr-cta-band h2 {
	color: #fff;
	font-size: var(--wp--preset--font-size--x-large);
}

.mr-cta-band p {
	color: rgba(255, 255, 255, 0.85);
}

.mr-cta-band .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--primary);
}

.mr-cta-band .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: #fff;
}

.mr-cta-band a:not(.wp-block-button__link) {
	color: #fff;
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * Cards (Query Loop news cards + legacy .card links)
 * ------------------------------------------------------------------------- */

.featured-posts .wp-block-post {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	padding: 1.75rem;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.featured-posts .wp-block-post:hover {
	box-shadow: var(--mr-shadow-soft);
	transform: translateY(-3px);
}

.featured-posts .wp-block-post-title a {
	text-decoration: none;
}

.featured-posts .wp-block-post-excerpt {
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
}

/* ---------------------------------------------------------------------------
 * Legacy content-class shims (Bootstrap-era classes still in post content).
 * Remove each rule as the class is cleaned out of the content.
 * ------------------------------------------------------------------------- */

.display-1,
.display-2,
.display-3,
.display-4 {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

/* Legacy sections carried `container`; groups are constrained by theme.json
   layout already, so just keep the class from fighting the layout. */
.wp-block-group.container {
	max-width: var(--wp--style--global--wide-size);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

/* Legacy `btn btn-primary` classes on core buttons — theme.json already styles
   wp-element-button; neutralize Bootstrap remnants that would double-pad. */
.wp-block-button.btn {
	padding: 0;
}

/* text-white only appears inside dark cover overlays after the redesign */
.wp-block-cover .text-white {
	color: #fff;
}
