/*
Theme Name: MetroBasket Corporate
Text Domain: metrobasket-corporate
Description: A custom corporate staging theme for MetroBasket, with editable WordPress pages and service/project sections.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* This file holds the WordPress theme header (above) plus truly global
 * rules only. Tailwind handles everything else.
 *
 * - Design tokens live in theme.css's @theme block.
 * - Prose + form styles live in presets.css.
 * - Layout, color, typography utilities come from Tailwind v4.
 *
 * Do NOT add component classes here (.btn-primary, .card, etc.). Use
 * Tailwind utilities in templates instead.
 */

html {
	scroll-behavior: smooth;
}

/* Reference-site MB emblem motion: slow 3D coin turn + soft shine sweep. */
.mb-header .mb-brand,
.mb-footer .mb-brand {
	position: relative;
	perspective: 900px;
	isolation: isolate;
}

.mb-header .mb-brand-logo,
.mb-footer .mb-brand-logo {
	transform-style: preserve-3d;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform-origin: 50% 50%;
	will-change: transform, filter;
	animation: mbLogoCoinRotate 8s ease-in-out infinite;
	filter: drop-shadow(0 3px 5px #0009) drop-shadow(0 0 2px #ffffff80);
}

.mb-header .mb-brand::after,
.mb-footer .mb-brand::after {
	content: "";
	position: absolute;
	z-index: 2;
	left: 0;
	top: 50%;
	width: 58px;
	height: 58px;
	pointer-events: none;
	clip-path: inset(0 round 9px);
	background: linear-gradient(110deg, transparent 38%, #ffffff08 44%, #ffffffa8 50%, #ffffff08 56%, transparent 62%);
	transform: translate(-130%, -50%) skewX(-18deg);
	animation: mbLogoShineSweep 4.5s ease-in-out infinite;
}

@keyframes mbLogoCoinRotate {
	0%, 100% { transform: perspective(700px) translateZ(0) rotateY(0deg) rotateX(3deg) scale(1); }
	25% { transform: perspective(700px) translateZ(9px) rotateY(48deg) rotateX(-5deg) scale(1.055); }
	50% { transform: perspective(700px) translateZ(12px) rotateY(58deg) rotateX(3deg) scale(1.07); }
	75% { transform: perspective(700px) translateZ(9px) rotateY(-42deg) rotateX(-4deg) scale(1.045); }
}

@keyframes mbLogoShineSweep {
	0% { transform: translate(-130%, -50%) skewX(-18deg); opacity: 0; }
	12% { opacity: .9; }
	38%, 100% { transform: translate(130%, -50%) skewX(-18deg); opacity: 0; }
}

.mb-header .mb-brand:hover .mb-brand-logo,
.mb-footer .mb-brand:hover .mb-brand-logo {
	animation-play-state: paused;
	transform: rotateY(0deg) rotateX(0deg) scale(1.05);
	filter: drop-shadow(0 4px 12px #0284c780);
}

.mb-header .mb-brand:hover::after,
.mb-footer .mb-brand:hover::after {
	animation-play-state: paused;
	opacity: 0;
}

@media (max-width: 1100px) {
	.mb-header .mb-brand::after { width: 48px; height: 48px; }
}

@media (max-width: 700px) {
	.mb-header .mb-brand::after { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	.mb-header .mb-brand-logo,
	.mb-footer .mb-brand-logo {
		animation: none !important;
		transform: none !important;
		will-change: auto;
	}
	.mb-header .mb-brand::after,
	.mb-footer .mb-brand::after {
		animation: none !important;
		display: none !important;
	}
}


/* Product showcase cards: text panels must flow beneath their matching images. */
.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-product-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:18px!important}
.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-product-card{position:relative!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;min-width:0!important;height:100%!important;overflow:hidden!important;isolation:isolate!important}
.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-product-image,.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-monitor{position:relative!important;inset:auto!important;display:grid!important;flex:0 0 190px!important;width:100%!important;height:190px!important;min-height:190px!important;margin:0!important;z-index:0!important;overflow:hidden!important}
.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-product-copy{position:relative!important;inset:auto!important;display:flex!important;flex:1 0 auto!important;flex-direction:column!important;width:100%!important;min-width:0!important;margin:0!important;padding:18px!important;z-index:1!important;transform:none!important;background:linear-gradient(160deg,#132239,#0d1726)!important}
.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-product-copy h3{position:relative!important;margin:0 0 9px!important}
.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-product-copy p{position:relative!important;margin:0 0 14px!important}
.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-product-copy .mb-card-link{position:relative!important;display:inline-block!important;margin-top:auto!important}
@media(max-width:700px){.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-product-image,.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-monitor{flex-basis:160px!important;height:160px!important;min-height:160px!important}}
@media(max-width:420px){.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-product-grid{grid-template-columns:1fr!important}.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-product-image,.mb-home-v4 section[aria-labelledby="mb-products-title"] .mb-monitor{flex-basis:200px!important;height:200px!important;min-height:200px!important}}


/* Uniform left-to-right marquee motion for partners, certificates and customer feedback. */
.mb-home-v4 section[aria-labelledby="mb-partners-title"] .mbwm-content-grid.mbwm-marquee-ready,
.mb-home-v4 section[aria-labelledby="mb-certificates-title"] .mbwm-content-grid.mbwm-marquee-ready,
.mb-home-v4 section[aria-labelledby="mb-feedback-title"] .mbwm-content-grid.mbwm-marquee-ready{
 display:block!important;
 position:relative!important;
 width:100%!important;
 max-width:100%!important;
 overflow:hidden!important;
 padding:4px 0 16px!important;
 scroll-snap-type:none!important;
 scrollbar-width:none!important;
 overscroll-behavior:contain;
}
.mb-home-v4 .mbwm-marquee-track{
 display:flex!important;
 flex-flow:row nowrap!important;
 align-items:stretch!important;
 gap:0!important;
 width:max-content!important;
 max-width:none!important;
 will-change:transform;
 animation:mbwm-marquee-right var(--mbwm-marquee-duration,36s) linear infinite;
}
.mb-home-v4 .mbwm-marquee-set{
 display:flex!important;
 flex:0 0 auto!important;
 flex-flow:row nowrap!important;
 align-items:stretch!important;
 gap:18px!important;
 width:max-content!important;
 padding:0 9px!important;
}
.mb-home-v4 .mbwm-marquee-set .mbwm-content-card{
 flex:0 0 clamp(250px,28vw,320px)!important;
 width:clamp(250px,28vw,320px)!important;
 min-width:clamp(250px,28vw,320px)!important;
 max-width:clamp(250px,28vw,320px)!important;
}
.mb-home-v4 .mbwm-marquee-track:hover,
.mb-home-v4 .mbwm-marquee-track:focus-within{
 animation-play-state:paused;
}
@keyframes mbwm-marquee-right{
 from{transform:translate3d(-50%,0,0)}
 to{transform:translate3d(0,0,0)}
}
@media(max-width:700px){
 .mb-home-v4 .mbwm-marquee-set{gap:12px!important;padding:0 6px!important}
 .mb-home-v4 .mbwm-marquee-set .mbwm-content-card{
  flex-basis:82vw!important;
  width:82vw!important;
  min-width:82vw!important;
  max-width:82vw!important;
 }
}
@media(prefers-reduced-motion:reduce){
 .mb-home-v4 .mbwm-marquee-track{animation:none!important;transform:none!important}
 .mb-home-v4 section[aria-labelledby="mb-partners-title"] .mbwm-content-grid.mbwm-marquee-ready,
 .mb-home-v4 section[aria-labelledby="mb-certificates-title"] .mbwm-content-grid.mbwm-marquee-ready,
 .mb-home-v4 section[aria-labelledby="mb-feedback-title"] .mbwm-content-grid.mbwm-marquee-ready{
  overflow-x:auto!important;
 }
}


/* Applications cards: dark readable typography on their white card backgrounds. */
.mb-home-v4 section[aria-labelledby="mb-applications-title"] .mbwm-content-card{
 color:#243247!important;
 background:#fff!important;
}
.mb-home-v4 section[aria-labelledby="mb-applications-title"] .mbwm-content-card h3,
.mb-home-v4 section[aria-labelledby="mb-applications-title"] .mbwm-content-card h3 a{
 color:#172b46!important;
}
.mb-home-v4 section[aria-labelledby="mb-applications-title"] .mbwm-content-card p,
.mb-home-v4 section[aria-labelledby="mb-applications-title"] .mbwm-content-card div,
.mb-home-v4 section[aria-labelledby="mb-applications-title"] .mbwm-content-card small{
 color:#334155!important;
}
.mb-home-v4 section[aria-labelledby="mb-applications-title"] .mbwm-content-card a{
 color:#b42332!important;
}
.mb-home-v4 section[aria-labelledby="mb-applications-title"] .mbwm-content-card a:hover,
.mb-home-v4 section[aria-labelledby="mb-applications-title"] .mbwm-content-card a:focus-visible{
 color:#7f1723!important;
}
.mb-home-v4 section[aria-labelledby="mb-applications-title"] .mbwm-content-card img{
 background:#f8fafc;
}
