/*
Theme Name: MEAS Events
Theme URI: https://measevents.ae
Description: Standalone theme for MEAS Events. No parent, no page builder required, no external requests. Sections come from the MEAS Core plugin and are available as Elementor widgets if you want them.
Author: MEAS Events
Version: 2.2.9
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: meas
Tags: dark, one-column, custom-menu, block-styles, wide-blocks
*/

/* ------------------------------------------------------------ 1. reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: clamp(76px, 9vw, 96px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--meas-obsidian, #07070d);
	color: var(--meas-text, #f8fafc);
	font-family: var(--meas-body, ui-sans-serif, system-ui, sans-serif);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* clip, not hidden: hidden would create a scroll container and break the sticky header */
	overflow-x: clip;
}
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--meas-cyan, #00f0ff); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--meas-cyan, #00f0ff); color: #06060c; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.meas-skip {
	position: absolute; top: -100px; left: 12px; z-index: 1000;
	padding: 12px 20px; border-radius: 8px;
	background: var(--meas-cyan, #00f0ff); color: #06060c; font-weight: 600; text-decoration: none;
	transition: top .2s ease;
}
.meas-skip:focus { top: 12px; }

/* --------------------------------------------------------- 2. shell */
.meas-wrap { width: min(1280px, 100% - clamp(28px, 7vw, 96px)); margin-inline: auto; }

/* --------------------------------------------------------- 3. header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(7, 7, 13, 0.72);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-bottom: 1px solid transparent;
	transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-stuck {
	background: rgba(7, 7, 13, 0.92);
	border-bottom-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 6px 30px rgba(0, 0, 0, .5);
}
.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(12px, 2vw, 32px);
	height: clamp(64px, 8vw, 80px);
	transition: height .3s ease;
}
.site-header.is-stuck .site-header__bar { height: clamp(58px, 6.4vw, 68px); }

.site-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.site-brand img { max-height: 36px; width: auto; }
.site-brand__text {
	font-family: var(--meas-display, sans-serif);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	white-space: nowrap;
}
.site-brand__mark {
	width: 30px; height: 30px; border-radius: 9px; flex: none;
	background: linear-gradient(135deg, var(--meas-cyan, #00f0ff), #7000ff 55%, #ff007a);
	box-shadow: 0 0 20px rgba(0, 240, 255, .35);
}

.site-nav { display: none; }
@media (min-width: 1100px) { .site-nav { display: block; } }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
	display: block;
	position: relative;
	padding: 9px 13px;
	border-radius: 8px;
	font-family: var(--meas-display, sans-serif);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--meas-muted, #94a3b8);
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover { color: var(--meas-text, #f8fafc); background: rgba(255, 255, 255, .05); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a { color: #06060c; background: var(--meas-cyan, #00f0ff); }
.site-nav .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 220px;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	padding: 8px;
	border-radius: 14px;
	background: rgba(12, 13, 22, .97);
	border: 1px solid rgba(255, 255, 255, .1);
	box-shadow: 0 20px 46px rgba(0, 0, 0, .6);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.site-nav li { position: relative; }
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.site-header__side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-phone {
	display: none;
	align-items: center;
	gap: 8px;
	font-family: var(--meas-tech, monospace);
	font-size: 12px;
	letter-spacing: .06em;
	color: var(--meas-muted, #94a3b8);
	text-decoration: none;
	transition: color .2s ease;
}
.site-phone:hover { color: var(--meas-cyan, #00f0ff); }
.site-phone svg { width: 16px; height: 16px; }
@media (min-width: 720px) { .site-phone { display: inline-flex; } }
.site-header .meas-btn { display: none; }
@media (min-width: 900px) { .site-header .meas-btn { display: inline-flex; padding: 12px 22px; } }

/* burger */
.site-burger {
	width: 44px; height: 44px;
	display: grid; place-items: center;
	border: 0; border-radius: 12px;
	background: rgba(255, 255, 255, .06);
	cursor: pointer;
}
@media (min-width: 1100px) { .site-burger { display: none; } }
.site-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s cubic-bezier(.22,.8,.28,1), opacity .2s ease; }
.site-burger span + span { margin-top: 4px; }
.site-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.site-drawer {
	position: fixed;
	inset: 0;
	z-index: 950;
	display: grid;
	grid-template-rows: auto 1fr auto;
	padding: 20px clamp(20px, 6vw, 40px) calc(28px + env(safe-area-inset-bottom));
	background: rgba(6, 6, 12, .98);
	backdrop-filter: blur(20px);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.site-drawer[hidden] { display: none; }
.site-drawer__top { display: flex; align-items: center; justify-content: space-between; height: clamp(44px, 8vw, 60px); }
.site-drawer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: center; }
.site-drawer nav > ul { min-height: 100%; align-content: center; }
.site-drawer nav a {
	display: block;
	padding: 14px 4px;
	font-family: var(--meas-display, sans-serif);
	font-size: clamp(24px, 7vw, 34px);
	font-weight: 700;
	letter-spacing: -.02em;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .07);
	opacity: 0;
	transform: translateY(14px);
}
.site-drawer.is-open nav a { animation: meas-drawer-in .45s cubic-bezier(.22,.8,.28,1) forwards; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
@keyframes meas-drawer-in { to { opacity: 1; transform: none; } }
.site-drawer .sub-menu a { font-size: 16px; letter-spacing: 0; color: var(--meas-muted, #94a3b8); padding: 10px 4px 10px 18px; }
.site-drawer__foot { display: grid; gap: 12px; padding-top: 22px; }
.site-drawer__foot .meas-btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .site-drawer nav a { opacity: 1; transform: none; animation: none !important; } }
body.meas-locked { overflow: hidden; }

/* --------------------------------------------------------- 4. footer */
.site-footer {
	position: relative;
	background: #0b0c16;
	border-top: 1px solid rgba(255, 255, 255, .07);
	padding: clamp(48px, 6vw, 80px) 0 0;
	font-family: var(--meas-body, sans-serif);
	overflow: hidden;
}
.site-footer::before {
	content: "";
	position: absolute;
	inset: auto auto -60% -10%;
	width: 520px; height: 520px;
	background: radial-gradient(circle, rgba(112, 0, 255, .18), transparent 65%);
	filter: blur(90px);
	pointer-events: none;
}
.site-footer__grid {
	position: relative;
	align-items: start;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: clamp(28px, 4vw, 56px);
	padding-bottom: clamp(36px, 4vw, 56px);
}
.site-footer__brand { grid-column: span 2; max-width: 42ch; }
@media (max-width: 720px) { .site-footer__brand { grid-column: auto; } }
.site-footer p { color: var(--meas-muted, #94a3b8); font-size: 15px; }
.site-footer h2 {
	font-family: var(--meas-tech, monospace);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--meas-cyan, #00f0ff);
	margin: 0 0 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.site-footer a { color: var(--meas-muted, #94a3b8); text-decoration: none; font-size: 15px; transition: color .2s ease; }
.site-footer a:hover { color: var(--meas-text, #f8fafc); }
.site-footer__contact li { display: flex; align-items: center; gap: 10px; }
.site-footer__contact svg { width: 16px; height: 16px; color: var(--meas-cyan, #00f0ff); flex: none; }
.site-footer__bottom {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(255, 255, 255, .07);
	font-family: var(--meas-tech, monospace);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--meas-dim, #475569);
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__bottom a { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* ------------------------------------------------------- 5. page head */
.meas-pagehead {
	position: relative;
	padding: clamp(48px, 7vw, 100px) 0 clamp(28px, 4vw, 56px);
	overflow: hidden;
}
.meas-pagehead::before {
	content: "";
	position: absolute;
	inset: -180px -10% auto auto;
	width: 720px; height: 520px;
	background: linear-gradient(180deg, rgba(112, 0, 255, .3), rgba(0, 240, 255, .1) 60%, transparent);
	filter: blur(110px);
	pointer-events: none;
}
.meas-pagehead > .meas-shell { position: relative; }
.meas-pagehead .meas-h1 { max-width: 18ch; }
.meas-pagehead .meas-lead { margin-bottom: 0; }
.meas-crumbs {
	font-family: var(--meas-tech, monospace);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--meas-dim, #475569);
	margin: 0 0 18px;
}
.meas-crumbs a { text-decoration: none; }
.meas-crumbs a:hover { color: var(--meas-cyan, #00f0ff); }

/* ----------------------------------------------------- 6. content bits */
.meas-next {
	display: flex; flex-wrap: wrap; gap: 16px;
	align-items: center; justify-content: space-between;
	margin-top: clamp(32px, 5vw, 64px);
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, .08);
}
.meas-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.meas-list li { display: flex; gap: 12px; color: var(--meas-muted, #94a3b8); }
.meas-list li::before {
	content: ""; width: 6px; height: 6px; margin-top: .6em; flex: none;
	border-radius: 50%;
	background: var(--meas-cyan, #00f0ff);
	box-shadow: 0 0 8px rgba(0, 240, 255, .8);
}

/* editor content, kept readable on any screen */
.meas-prose h2, .meas-prose h3, .meas-prose h4 { font-family: var(--meas-display, sans-serif); letter-spacing: -.01em; }
.meas-prose a { color: var(--meas-cyan, #00f0ff); }
.meas-prose ul, .meas-prose ol { color: var(--meas-muted, #94a3b8); padding-left: 1.2em; }
.meas-prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 2px solid var(--meas-cyan, #00f0ff); background: rgba(255, 255, 255, .03); border-radius: 0 12px 12px 0; }
.meas-prose img { border-radius: 12px; }
.meas-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.meas-prose :is(th, td) { padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; }
.meas-prose pre { overflow-x: auto; padding: 18px; border-radius: 12px; background: rgba(0, 0, 0, .5); }

/* post and archive cards */
.meas-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 32px); }
.meas-post {
	display: flex; flex-direction: column;
	border-radius: 16px; overflow: hidden;
	background: rgba(15, 16, 30, .8);
	border: 1px solid rgba(255, 255, 255, .07);
	transition: transform .35s cubic-bezier(.22,.8,.28,1), border-color .3s ease;
}
.meas-post:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .14); }
.meas-post__media { aspect-ratio: 16 / 10; background: #10121f; }
.meas-post__media img { width: 100%; height: 100%; object-fit: cover; }
.meas-post__body { padding: 22px; display: grid; gap: 8px; }
.meas-post__date { font-family: var(--meas-tech, monospace); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--meas-dim, #475569); }
.meas-post a { text-decoration: none; }

.meas-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.meas-pagination .page-numbers {
	display: grid; place-items: center;
	min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .05);
	font-family: var(--meas-tech, monospace);
	font-size: 13px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.meas-pagination .page-numbers:hover { background: rgba(255, 255, 255, .11); }
.meas-pagination .current { background: var(--meas-cyan, #00f0ff); color: #06060c; }

.meas-searchform { display: flex; gap: 8px; max-width: 460px; }
.meas-searchform input[type="search"] {
	flex: 1; min-width: 0;
	padding: 14px 18px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, .1);
	background: rgba(255, 255, 255, .04);
}
.meas-searchform input[type="search"]:focus { outline: none; border-color: rgba(0, 240, 255, .5); }

/* --------------------------------------------------- 7. responsiveness */
@media (max-width: 600px) {
	.meas-section { padding: clamp(44px, 12vw, 72px) 0; }
	.meas-hero { padding-top: 32px; }
	.meas-btns { gap: 10px; }
	.meas-btn { flex: 1 1 auto; justify-content: center; min-height: 48px; }
	.meas-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-inline: calc(-1 * clamp(14px, 3.5vw, 48px)); padding-inline: clamp(14px, 3.5vw, 48px); }
	.meas-filters::-webkit-scrollbar { display: none; }
	.meas-chip { flex: none; }
}
/* touch targets stay comfortable everywhere */
@media (pointer: coarse) {
	.site-nav a, .meas-chip, .meas-add, .meas-link { min-height: 44px; display: inline-flex; align-items: center; }
}
/* print: readable, no chrome */
@media print {
	.site-header, .site-footer, .site-drawer, .meas-sticky, .meas-whatsapp, .meas-tray, .meas-form { display: none !important; }
	body { background: #fff; color: #000; }
}

/* Dashboard page runs edge to edge. */
.page-template-page-dashboard #meas-content { padding: 0; }
.page-template-page-dashboard .site-footer { display: none; }

/* ----------------------------------------------- 8. liquid glass chrome */
/* The header and drawer sit over moving page content, so they get real     */
/* backdrop blur with a saturation lift. Everything else fakes it with      */
/* layered gradients, which costs nothing.                                  */

.site-header {
	background: rgba(7, 7, 13, 0.5);
	-webkit-backdrop-filter: blur(22px) saturate(185%);
	backdrop-filter: blur(22px) saturate(185%);
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.site-header::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 60%);
}
.site-header.is-stuck {
	background: rgba(7, 7, 13, 0.68);
	-webkit-backdrop-filter: blur(28px) saturate(200%);
	backdrop-filter: blur(28px) saturate(200%);
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1), 0 10px 40px rgba(0, 0, 0, 0.5);
}
/* a thin brand light running along the bottom edge once it sticks */
.site-header.is-stuck::before {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(0, 240, 255, .55), rgba(255, 0, 122, .45), transparent);
	opacity: .8;
}
.site-header__bar { position: relative; z-index: 1; }

.site-nav a:hover {
	background: rgba(255, 255, 255, 0.07);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.site-nav .sub-menu {
	background: rgba(12, 13, 22, 0.72);
	-webkit-backdrop-filter: blur(26px) saturate(180%);
	backdrop-filter: blur(26px) saturate(180%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 24px 50px rgba(0, 0, 0, .6);
}

.site-burger {
	background: rgba(255, 255, 255, 0.05);
	-webkit-backdrop-filter: blur(14px) saturate(170%);
	backdrop-filter: blur(14px) saturate(170%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.site-drawer {
	background: rgba(6, 6, 12, 0.72);
	-webkit-backdrop-filter: blur(34px) saturate(190%);
	backdrop-filter: blur(34px) saturate(190%);
}
/* two slow blobs drifting behind the drawer glass */
.site-drawer::before,
.site-drawer::after {
	content: "";
	position: absolute;
	width: 70vw; height: 70vw;
	max-width: 560px; max-height: 560px;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
	z-index: -1;
}
.site-drawer::before { top: -18%; right: -22%; background: rgba(112, 0, 255, .38); animation: meas-drawer-a 20s ease-in-out infinite; }
.site-drawer::after { bottom: -22%; left: -18%; background: rgba(0, 240, 255, .22); animation: meas-drawer-b 26s ease-in-out infinite; }
@keyframes meas-drawer-a { 50% { transform: translate3d(-8%, 10%, 0) scale(1.15); } }
@keyframes meas-drawer-b { 50% { transform: translate3d(10%, -8%, 0) scale(.9); } }
.site-drawer nav a { border-bottom-color: rgba(255, 255, 255, .09); }
.site-drawer nav a:hover { color: var(--meas-cyan, #00f0ff); }

.site-footer::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
}
.site-footer__contact li {
	padding: 10px 14px;
	border-radius: 12px;
	background: linear-gradient(148deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .04);
	transition: box-shadow .25s ease, transform .25s ease;
}
.site-footer__contact li:hover { transform: translateX(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(0, 240, 255, .3); }

.meas-post, .meas-pagination .page-numbers, .meas-searchform input[type="search"] {
	background-image: linear-gradient(148deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

/* The page header gets a drifting light behind the glass of the content. */
.meas-pagehead::before { animation: meas-head-drift 24s ease-in-out infinite; }
@keyframes meas-head-drift {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(-6%, 5%, 0) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
	.site-drawer::before, .site-drawer::after, .meas-pagehead::before { animation: none; }
}
/* Phones: lighter blur, no drifting blobs. */
@media (max-width: 720px) {
	.site-header, .site-header.is-stuck { -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
	.site-drawer { -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
	.site-drawer::before, .site-drawer::after { animation: none; }
}

/* ------------------------------------------------- 9. header additions */
.site-brand__img { max-height: 34px; width: auto; }
@media (max-width: 600px) { .site-brand__img { max-height: 28px; } }

.site-header { transition: transform .35s cubic-bezier(.22,.8,.28,1), background-color .3s ease, box-shadow .3s ease; }
.site-header.is-transparent { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; box-shadow: none; }
.site-header.is-transparent.is-stuck { position: sticky; background: rgba(7,7,13,.68); -webkit-backdrop-filter: blur(28px) saturate(200%); backdrop-filter: blur(28px) saturate(200%); }
.site-header__progress {
	position: absolute; left: 0; bottom: 0;
	height: 2px; width: 100%;
	transform: scaleX(0); transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--meas-cyan, #00f0ff), #ff007a);
	pointer-events: none;
}

.site-iconbtn {
	width: 42px; height: 42px;
	display: grid; place-items: center;
	border: 0; border-radius: 12px;
	background: rgba(255,255,255,.05);
	color: var(--meas-muted, #94a3b8);
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.04);
	transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.site-iconbtn:hover { color: var(--meas-text, #f8fafc); background: rgba(255,255,255,.1); transform: translateY(-1px); }
.site-iconbtn svg { width: 18px; height: 18px; }
.site-iconbtn--wa:hover { color: #25d366; }
.site-iconbtn--dash { display: none; }
/* WhatsApp shows at every width in the header. The contact icon is the
   mobile stand-in for the labelled button, so it hides once that appears. */
.site-iconbtn--wa, .site-iconbtn--contact { display: grid; }
.site-iconbtn--wa { color: #25d366; }
@media (min-width: 900px) { .site-iconbtn--contact { display: none; } }
@media (min-width: 1100px) { .site-iconbtn--dash { display: grid; } }
.site-cta { display: none; }
@media (min-width: 900px) { .site-cta { display: inline-flex; padding: 12px 22px; } }

/* ------------------------------------------------------ search overlay */
.site-search { position: fixed; inset: 0; z-index: 960; }
.site-search[hidden] { display: none; }
.site-search__scrim { position: absolute; inset: 0; background: rgba(4,4,10,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-search__panel {
	position: relative;
	width: min(680px, calc(100% - 32px));
	margin: clamp(80px, 18vh, 200px) auto 0;
	padding: clamp(20px, 3vw, 32px);
	border-radius: 20px;
	background: rgba(12,13,22,.72);
	-webkit-backdrop-filter: blur(30px) saturate(190%);
	backdrop-filter: blur(30px) saturate(190%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 30px 70px rgba(0,0,0,.6);
	opacity: 0; transform: translateY(-12px) scale(.98);
	transition: opacity .28s cubic-bezier(.22,.8,.28,1), transform .28s cubic-bezier(.22,.8,.28,1);
}
.site-search.is-open .site-search__panel { opacity: 1; transform: none; }
.site-search .meas-searchform { max-width: none; }
.site-search__hint { margin: 14px 0 0; font-family: var(--meas-tech, monospace); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--meas-dim, #475569); }

/* --------------------------------------------------- footer additions */
.site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
/* align-content defaults to stretch on a grid with auto rows, which was
   inflating the last row and turning the quote button into a huge block. */
.site-footer__brand { grid-column: auto; display: grid; gap: 16px; justify-items: start; align-content: start; }
.site-footer__brand > * { max-width: 100%; }
.site-footer__brand .meas-btn {
	margin-top: 4px;
	width: auto;
	flex: 0 0 auto;
	align-self: start;
	justify-self: start;
	padding: 14px 26px;
	color: var(--meas-obsidian, #07070d);
	white-space: nowrap;
}
.site-footer__brand .meas-link { color: var(--meas-cyan, #00f0ff); }
.site-footer__social { display: flex; gap: 8px; }
.site-footer__social a {
	width: 40px; height: 40px; display: grid; place-items: center;
	border-radius: 12px; background: rgba(255,255,255,.05);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
	transition: color .2s ease, transform .2s ease;
}
.site-footer__social a:hover { color: var(--meas-cyan, #00f0ff); transform: translateY(-2px); }
.site-footer__social svg { width: 18px; height: 18px; }

.site-newsletter { margin-top: 22px; padding: 0; background: none; border: 0; box-shadow: none; display: grid; gap: 8px; }
.site-newsletter::before, .site-newsletter::after { display: none; }
.site-newsletter label { font-family: var(--meas-tech, monospace); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--meas-muted, #94a3b8); }
.site-newsletter__row { display: flex; gap: 8px; }
.site-newsletter input {
	flex: 1; min-width: 0; padding: 12px 14px;
	border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
	background: rgba(0,0,0,.3); color: inherit; font-size: 14px;
}
.site-newsletter .meas-btn { padding: 12px 16px; }
.site-newsletter .meas-btn svg { width: 18px; height: 18px; }

.site-totop {
	width: 40px; height: 40px; display: grid; place-items: center;
	border: 0; border-radius: 12px; cursor: pointer;
	background: rgba(255,255,255,.05); color: var(--meas-muted, #94a3b8);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
	opacity: 0; pointer-events: none;
	transition: opacity .3s ease, color .2s ease, transform .2s ease;
}
.site-totop.is-on { opacity: 1; pointer-events: auto; }
.site-totop:hover { color: var(--meas-cyan, #00f0ff); transform: translateY(-2px); }
.site-totop svg { width: 18px; height: 18px; }

/* --------------------------------------------- 10. mobile bottom nav */
.site-bottomnav { display: none; }
@media (max-width: 900px) {
	.site-bottomnav {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 940;
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		align-items: end;
		padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
		background: rgba(7,7,13,.72);
		-webkit-backdrop-filter: blur(24px) saturate(190%);
		backdrop-filter: blur(24px) saturate(190%);
		box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 -10px 30px rgba(0,0,0,.5);
		transition: transform .35s cubic-bezier(.22,.8,.28,1);
	}
	.site-bottomnav__item {
		display: grid; justify-items: center; gap: 4px;
		padding: 8px 2px; min-height: 52px;
		border: 0; background: none; cursor: pointer;
		color: var(--meas-muted, #94a3b8); text-decoration: none;
		font-family: var(--meas-tech, monospace); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
		transition: color .2s ease;
	}
	.site-bottomnav__item svg { width: 20px; height: 20px; }
	.site-bottomnav__item.is-on, .site-bottomnav__item:active { color: var(--meas-cyan, #00f0ff); }
	/* the old floating button and call bar are redundant now */
	.meas-whatsapp, .meas-sticky { display: none !important; }
	body { padding-bottom: 82px; }
}

/* -------------------------------------------- 11. mobile refinements */
@media (max-width: 600px) {
	.meas-h1 { font-size: clamp(30px, 9vw, 44px); }
	.meas-grid--3:not(.meas-carousel), .meas-grid--4:not(.meas-carousel) { grid-template-columns: 1fr; }
	.meas-h2 { font-size: clamp(24px, 7vw, 34px); }
	.meas-lead { font-size: 16px; line-height: 26px; }
	.meas-pagehead { padding: 28px 0 20px; }
	.meas-shell, .meas-wrap { width: min(100% - 28px, 1280px); }
	.meas-split, .meas-contact, .meas-jpex { gap: 24px; }
	.meas-form { padding: 18px; }
	.meas-field--2 { grid-template-columns: 1fr; }
	.meas-case__facts { grid-template-columns: 1fr 1fr; }
	.meas-stage__foot { padding: 14px; }
	.meas-stage__foot h2 { font-size: 18px; }
	.site-header__bar { gap: 8px; }
	.site-phone span { display: none; }
}
@media (max-width: 400px) {
	.site-phone, .site-iconbtn--search { display: none; }
	.meas-case__facts { grid-template-columns: 1fr; }
}
/* Landscape phones: stop the hero and drawer overflowing a short viewport. */
@media (max-height: 520px) and (orientation: landscape) {
	.meas-hero { padding-block: 24px; }
	.site-drawer nav a { font-size: 20px; padding: 9px 4px; }
}
/* dvh so Safari's address bar does not clip the drawer */
.site-drawer { height: 100dvh; }
.measd, .measd-gate { min-height: 100dvh; }

/* ------------------------------------------------------- 12. mega menu */
@media (min-width: 1100px) {
	.site-nav > ul > li { position: static; }
	.site-mega {
		position: absolute;
		left: 0; right: 0;
		top: 100%;
		padding: clamp(20px, 2vw, 32px) 0 clamp(24px, 2.6vw, 36px);
		background: rgba(10, 11, 20, .82);
		-webkit-backdrop-filter: blur(30px) saturate(190%);
		backdrop-filter: blur(30px) saturate(190%);
		box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 60px rgba(0,0,0,.6);
		opacity: 0; visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .24s cubic-bezier(.22,.8,.28,1), transform .24s cubic-bezier(.22,.8,.28,1), visibility .24s;
	}
	.site-nav > ul > li:hover > .site-mega,
	.site-nav > ul > li:focus-within > .site-mega { opacity: 1; visibility: visible; transform: none; }
	.site-mega__inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
	.site-mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.site-mega__cols--list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.site-mega__card {
		display: grid; gap: 4px;
		padding: 12px;
		border-radius: 14px;
		text-decoration: none;
		background: linear-gradient(148deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
		box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
		transition: transform .3s cubic-bezier(.22,.8,.28,1), box-shadow .3s ease;
	}
	.site-mega__card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 1px rgba(0,240,255,.3); }
	.site-mega__media { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #10121f, #1b1533); margin-bottom: 10px; }
	.site-mega__media img { width: 100%; height: 100%; object-fit: cover; }
	.site-mega__name { font-family: var(--meas-display, sans-serif); font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--meas-text, #f8fafc); }
	.site-mega__count { font-family: var(--meas-tech, monospace); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--meas-dim, #475569); }
	.site-mega__row {
		display: flex; align-items: center; gap: 12px;
		padding: 13px 14px; border-radius: 12px; text-decoration: none;
		transition: background-color .2s ease;
	}
	.site-mega__row:hover { background: rgba(255,255,255,.06); }
	.site-mega__row svg { width: 16px; height: 16px; margin-left: auto; color: var(--meas-cyan, #00f0ff); }
	.site-mega__num { font-family: var(--meas-tech, monospace); font-size: 11px; color: var(--meas-cyan, #00f0ff); }
	.site-mega__aside { display: grid; gap: 12px; justify-items: start; padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid rgba(255,255,255,.08); }
	.site-mega__aside p { margin: 0; color: var(--meas-muted, #94a3b8); font-size: 14px; }
}
/* the panel is desktop only; the drawer already lists everything on mobile */
@media (max-width: 1099px) { .site-mega { display: none; } }

/* ------------------------------------------------ 13. flush ticker band */
.meas-section--flush { padding: 0 !important; }
.meas-section--flush > .meas-shell { width: 100%; }

/* nav links draw a line under themselves */
@media (min-width: 1100px) {
	.site-nav > ul > li > a { position: relative; }
	.site-nav > ul > li > a::after {
		content: "";
		position: absolute;
		left: 13px; right: 13px; bottom: 4px;
		height: 1px;
		background: linear-gradient(90deg, var(--meas-cyan, #00f0ff), #ff007a);
		transform: scaleX(0);
		transform-origin: 0 50%;
		transition: transform .35s cubic-bezier(.22,.8,.28,1);
	}
	.site-nav > ul > li:hover > a::after { transform: scaleX(1); }
	.site-nav .current-menu-item > a::after { display: none; }
}

/* the logo settles in on load */
@media (prefers-reduced-motion: no-preference) {
	.site-header .site-brand { animation: meas-logo-in .7s cubic-bezier(.22,.8,.28,1) both; }
	@keyframes meas-logo-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
	.site-footer__grid > * { animation: meas-foot-in .6s cubic-bezier(.22,.8,.28,1) both; }
	.site-footer__grid > *:nth-child(2) { animation-delay: .06s; }
	.site-footer__grid > *:nth-child(3) { animation-delay: .12s; }
	.site-footer__grid > *:nth-child(4) { animation-delay: .18s; }
	@keyframes meas-foot-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ------------------------------------------- 14. announcement bar + chrome */
.site-topbar {
	position: relative;
	z-index: 901;
	background: linear-gradient(90deg, rgba(0,240,255,.14), rgba(112,0,255,.18) 50%, rgba(255,0,122,.14));
	box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
	font-family: var(--meas-tech, monospace);
	font-size: 12px;
	letter-spacing: .06em;
}
.site-topbar__inner {
	display: flex; flex-wrap: wrap; gap: 8px 16px;
	align-items: center; justify-content: center;
	min-height: 40px;
	padding: 8px 0;
	text-align: center;
}
.site-topbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--meas-cyan, #00f0ff); text-decoration: none; }
.site-topbar a svg { width: 14px; height: 14px; }
.site-topbar a:hover { color: #fff; }
@media (max-width: 600px) { .site-topbar { font-size: 11px; } }

/* logo height follows the customizer */
.site-brand__img { max-height: var(--meas-logo-h, 34px); }
@media (max-width: 600px) { .site-brand__img { max-height: calc(var(--meas-logo-h, 34px) * .8); } }

/* header that is not sticky */
.site-header.is-static { position: relative; }

/* ------------------------------------------------- 15. JPEX in the menu */
/* It is the one event MEAS owns, so it should not read like the others. */
@media (min-width: 1100px) {
	.site-nav .is-jpex > a {
		position: relative;
		padding-left: 26px;
		color: var(--meas-text, #f8fafc);
		background: linear-gradient(100deg, rgba(0, 240, 255, .14), rgba(112, 0, 255, .16) 55%, rgba(255, 0, 122, .14));
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 22px rgba(0, 240, 255, .12);
	}
	.site-nav .is-jpex > a::before {
		content: "";
		position: absolute;
		left: 12px;
		top: 50%;
		width: 6px;
		height: 6px;
		margin-top: -3px;
		border-radius: 50%;
		background: var(--meas-cyan, #00f0ff);
		box-shadow: 0 0 10px var(--meas-cyan, #00f0ff);
		animation: meas-jpex-dot 2.4s ease-in-out infinite;
	}
	.site-nav .is-jpex > a::after { display: none; }
	.site-nav .is-jpex > a:hover {
		background: linear-gradient(100deg, rgba(0, 240, 255, .26), rgba(112, 0, 255, .28) 55%, rgba(255, 0, 122, .26));
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 30px rgba(0, 240, 255, .28);
	}
	.site-nav .is-jpex.current-menu-item > a { background: var(--meas-cyan, #00f0ff); color: #06060c; }
	.site-nav .is-jpex.current-menu-item > a::before { background: #06060c; box-shadow: none; animation: none; }
}
@keyframes meas-jpex-dot {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.5); opacity: .55; }
}

/* in the drawer it takes the brand gradient instead of a pill */
.site-drawer .is-jpex > a {
	background: linear-gradient(92deg, #dbfcff, var(--meas-cyan, #00f0ff) 42%, var(--meas-fuchsia, #ff007a));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* and stands out in the footer list */
.site-footer .is-jpex > a { color: var(--meas-cyan, #00f0ff); }

@media (prefers-reduced-motion: reduce) { .site-nav .is-jpex > a::before { animation: none; } }
