/*
Theme Name: Mareva
Theme URI: https://marevaplatform.com
Author: Mareva Labs
Description: Block theme for the Mareva Platform marketing site.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mareva
*/

/* ---------- Motion tokens ---------- */
:root {
	--mv-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--mv-line: #E1E6F0;
	--mv-line-soft: #E8ECF4;
	--mv-shadow-shot: 0 30px 80px -30px rgba(11, 20, 48, 0.28);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

::selection { background: #D6E0FF; color: var(--wp--preset--color--ink); }
:root { accent-color: var(--wp--preset--color--brand); }
a { text-underline-offset: 0.18em; }

.mv-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Buttons: press feedback, no `transition: all` ---------- */
.wp-element-button,
.wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 160ms var(--mv-ease-out), box-shadow 150ms ease, background-color 150ms ease;
}
.wp-element-button:active,
.wp-block-button__link:active { transform: scale(0.97); }
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible,
a:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 3px;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	border: 1px solid #D5DCEB;
}

@media (hover: hover) and (pointer: fine) {
	.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { box-shadow: 0 6px 20px rgba(43, 92, 255, 0.32); }
	.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #EEF2FB; }
}

@media (prefers-reduced-motion: reduce) {
	.wp-element-button:active,
	.wp-block-button__link:active { transform: none; }
}

/* ---------- Header ---------- */
/* Sticky must sit on the template-part wrapper, not the inner group. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
/*
 * The frosted background lives on a pseudo-element: backdrop-filter on the
 * header itself would make it the containing block for the fixed mobile
 * menu overlay and squash the overlay to the header's height.
 */
.mv-header {
	position: relative;
	isolation: isolate;
	border-bottom: 1px solid var(--mv-line-soft);
}
.mv-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
}

/* Mobile menu: 44px toggles, menu-only links, a real demo button. */
/* Size only: WordPress owns the display toggle that hides these on desktop. */
.mv-header .wp-block-navigation__responsive-container-open,
.mv-header .wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
}
.mv-header .wp-block-navigation__responsive-container:not(.is-menu-open) .mv-menu-only { display: none; }
.mv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 1.25rem;
	padding-top: 2rem;
}
.mv-header .is-menu-open .wp-block-navigation-item a { font-size: 1.375rem; color: var(--wp--preset--color--ink); }
.mv-header .is-menu-open .mv-menu-cta { margin-top: 0.75rem; }
.mv-header .is-menu-open .mv-menu-cta a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 1.4rem !important;
	border-radius: 10px;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--base);
	font-size: 1rem;
	font-weight: 600;
}

/* Anchored sections clear the sticky header. */
[id] { scroll-margin-top: 88px; }
.mv-header .wp-block-navigation { font-size: 0.9375rem; font-weight: 500; gap: 1.75rem; }
.mv-header .wp-block-navigation a { color: #3A4566; text-decoration: none; transition: color 150ms ease; }
.mv-header .wp-block-navigation a:hover { color: var(--wp--preset--color--ink); }
.mv-header .wp-block-button__link { min-height: 44px; font-size: 0.875rem; padding: 0.6rem 1.1rem; white-space: nowrap; }
@media (max-width: 860px) { .mv-header .mv-login { display: none; } }
/* On phones the hero carries the demo button; keep the header to logo + menu. */
/* Below 700px the hero carries the demo button; the header keeps logo + menu on one row. */
@media (max-width: 699px) { .mv-header .alignwide > .wp-block-group:last-child { display: none; } }

/* ---------- Type helpers ---------- */
/* Small caps-style labels for panels and captions (never above a heading). */
.mv-eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	text-wrap: balance;
}
.mv-eyebrow.is-brand { color: var(--wp--preset--color--brand); text-transform: none; letter-spacing: 0; }
.mv-eyebrow.is-tobacco { color: var(--wp--preset--color--tobacco); }
.mv-lede { font-size: 1.1875rem; color: var(--wp--preset--color--muted); }
.mv-muted { color: var(--wp--preset--color--muted); }
.mv-note { font-size: 0.875rem; color: var(--wp--preset--color--muted); }

/* ---------- Sections ---------- */
.mv-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.mv-band { border-top: 1px solid var(--mv-line-soft); border-bottom: 1px solid var(--mv-line-soft); }

.mv-hero { padding-top: clamp(40px, 6vw, 64px) !important; padding-bottom: 0 !important; border-bottom: 1px solid var(--mv-line-soft); }
.mv-hero .mv-shot--hero { margin-top: 2.5rem; margin-bottom: 0; }

/* ---------- Product screenshots ---------- */
.mv-shot {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--mv-line);
	border-radius: 14px;
	padding: 8px;
	box-shadow: var(--mv-shadow-shot);
}
.mv-shot img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top left;
	border-radius: 8px;
}
.mv-shot--hero { border-bottom: 0; border-radius: 16px 16px 0 0; padding: 10px 10px 0; }
.mv-shot--hero img { aspect-ratio: 16 / 9; border-radius: 8px 8px 0 0; }

/* ---------- Customer strip ---------- */
.mv-customers { padding-top: 3.5rem !important; padding-bottom: 4rem !important; border-bottom: 1px solid var(--mv-line-soft); }

/* Customer brands styled as cigar bands: ivory label, double rule, diamond ornaments. */
.mv-bands {
	list-style: none;
	padding: 0;
	margin: 1.75rem 0 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 196px), 1fr));
	gap: 12px;
}
.mv-bands li {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 72px;
	padding: 14px 18px;
	background: #FBF7F1;
	border: 1px solid #E3D5BF;
	border-radius: 12px;
	box-shadow: inset 0 0 0 4px #FBF7F1, inset 0 0 0 5px #EADFCD;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: center;
	line-height: 1.35;
	color: #3B2E22;
	transition: border-color 200ms ease, background-color 200ms ease;
}
.mv-bands li::before,
.mv-bands li::after {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	background: #C8955A;
	transform: rotate(45deg);
}
@media (hover: hover) and (pointer: fine) {
	.mv-bands li:hover { border-color: #D3BC98; background-color: #F8F1E6; }
}
@media (max-width: 600px) {
	.mv-bands { gap: 8px; }
	.mv-bands li { min-height: 56px; padding: 12px 16px; }
}

/* ---------- Cards ---------- */
/* Feature items: a ruled list, not a wall of boxed cards. */
.mv-card {
	border-top: 1px solid #D5DCEB;
	padding: 24px 0 8px !important;
}
.mv-card p { font-size: 1rem; color: var(--wp--preset--color--muted); }
.mv-panel { border-radius: 16px; padding: 32px !important; }
.mv-panel--light { background: var(--wp--preset--color--surface); border: 1px solid var(--mv-line-soft); }
.mv-panel--dark { background: var(--wp--preset--color--ink); color: #D7DEEF; }
.mv-price-card { background: var(--wp--preset--color--base); color: var(--wp--preset--color--ink); border-radius: 18px; padding: 36px !important; }
.mv-price { font-size: 3.5rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
/* Closing box borrows the cigar-band treatment so the page ends in its own world. */
.mv-cta-box {
	background: #FBF7F1;
	border: 1px solid #E3D5BF;
	border-radius: 20px;
	box-shadow: inset 0 0 0 6px #FBF7F1, inset 0 0 0 7px #EADFCD;
	padding: clamp(32px, 6vw, 72px) !important;
}
.mv-cta-box h2 { color: #2A2018; }
.mv-cta-box .mv-muted { color: #5C4B3B; }

/* ---------- Icons (CSS masks, recolorable) ---------- */
.mv-icon::before {
	content: "";
	display: block;
	width: 24px;
	height: 24px;
	background: var(--wp--preset--color--brand);
	-webkit-mask: var(--mv-icon) center / contain no-repeat;
	mask: var(--mv-icon) center / contain no-repeat;
}
.mv-icon--grid { --mv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E"); }
.mv-icon--users { --mv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.8-3.5 3.4-5.5 6.5-5.5s5.7 2 6.5 5.5'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7M18.5 14.8c1.6.8 2.6 2.6 3 5.2'/%3E%3C/svg%3E"); }
.mv-icon--cart { --mv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 11h11l2-8H6.5'/%3E%3Ccircle cx='9' cy='19.5' r='1.5'/%3E%3Ccircle cx='17' cy='19.5' r='1.5'/%3E%3C/svg%3E"); }
.mv-icon--box { --mv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8.5 4.5v9L12 21l-8.5-4.5v-9z'/%3E%3Cpath d='M3.5 7.5L12 12l8.5-4.5M12 12v9'/%3E%3C/svg%3E"); }
.mv-icon--chat { --mv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H8l-4 4z'/%3E%3Cpath d='M8 9.5h8M8 12.5h5'/%3E%3C/svg%3E"); }
.mv-icon--shield { --mv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3v5.5c0 4.5-3.2 8.2-7.5 9.5-4.3-1.3-7.5-5-7.5-9.5V6z'/%3E%3Cpath d='M9 12l2.2 2.2L15.5 10'/%3E%3C/svg%3E"); }

/* ---------- Check / cross lists ---------- */
.mv-checklist,
.mv-xlist { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.mv-checklist li,
.mv-xlist li { position: relative; padding-left: 2rem; }
.mv-checklist li::before,
.mv-xlist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.15em;
	height: 1.15em;
	-webkit-mask: var(--mv-mark) center / contain no-repeat;
	mask: var(--mv-mark) center / contain no-repeat;
}
.mv-checklist li::before { background: var(--wp--preset--color--brand); --mv-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.mv-panel--dark .mv-checklist li::before { background: #7FA0FF; }
.mv-xlist li { color: #3A4566; }
.mv-xlist li::before { background: #8A93AB; --mv-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.mv-checklist.is-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0.6rem 1.25rem; font-size: 0.9375rem; border-top: 1px solid var(--mv-line-soft); padding-top: 1.5rem; }

/* ---------- Footer ---------- */
.mv-footer { border-top: 1px solid var(--mv-line-soft); font-size: 0.9375rem; }
.mv-footer a { color: var(--wp--preset--color--muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.mv-footer a:hover { color: var(--wp--preset--color--ink); }
.mv-social .wp-social-link { transition: color 150ms ease; }
.mv-social .wp-social-link a { padding: 4px; }
@media (hover: hover) and (pointer: fine) {
	.mv-social .wp-social-link:hover { color: var(--wp--preset--color--brand) !important; transform: none; }
}
