/*
 * MEC base: design tokens, layout utilities, buttons, waves and animations.
 * Loaded on the front-end and inside the editor canvas. Component styles live with
 * each block (src/blocks/<name>/style.css).
 */

:root {
	--petrol-900: #063642;
	--petrol: #094E5E;
	--petrol-700: #0B5E72;
	--petrol-600: #0E7286;
	--ice: #D8E3E7;
	--ice-soft: #EAF1F3;
	--ice-deep: #B9CED5;
	--sand: #C9795A;
	--sand-600: #B0654A;
	--accent-text: #E8A07A;
	--mint: #A8F0D4;
	--mist: #EAF1F3;
	--mist-soft: #F4F8F9;
	--paper: #fff;
	--ink: #22333a;
	--muted: #5c6b71;
	--line: #d8e4e7;
	--star: #e0a83d;
	--footer: #072636;
	--radius: 14px;
	--radius-sm: 9px;
	--maxw: 1180px;
	--font-heading: 'Playfair Display', Georgia, serif;
	--font-body: 'Open Sans', system-ui, sans-serif;
	--shadow-hover: 0 24px 48px -30px rgba(6, 54, 66, .4);
	--blob: 42% 58% 60% 40% / 45% 45% 55% 55%;
	--blob-2: 46% 54% 58% 42% / 50% 42% 58% 50%;
}

*, *::before, *::after { box-sizing: border-box; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.center { text-align: center; }
.eyebrow,
p.is-style-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--petrol-600); }
p.is-style-lead { font-size: 1.06rem; }
p.is-style-note { font-size: .86rem; color: var(--muted); }
[id] { scroll-margin-top: 96px; }

/* ---------- buttons (design .btn + core/button styles) ---------- */
.btn,
.wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1.4;
	padding: .9rem 1.8rem; border-radius: 999px; border: 1.6px solid transparent; cursor: pointer; text-decoration: none;
	transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .2s, color .2s;
}
.btn:hover,
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }

.btn-blue,
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link,
.wp-block-button.is-style-blue .wp-block-button__link { background: var(--petrol); color: #fff; box-shadow: 0 10px 26px -12px rgba(9, 78, 94, .7); }
.btn-blue:hover,
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover,
.wp-block-button.is-style-blue .wp-block-button__link:hover { background: var(--petrol-700); color: #fff; }

.btn-coral,
.wp-block-button.is-style-coral .wp-block-button__link { background: var(--sand); color: #fff; box-shadow: 0 10px 26px -12px rgba(201, 121, 90, .75); }
.btn-coral:hover,
.wp-block-button.is-style-coral .wp-block-button__link:hover { background: var(--sand-600); color: #fff; }

.btn-outline,
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.btn-outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--petrol); color: #fff; }

.btn-light,
.wp-block-button.is-style-light .wp-block-button__link { background: #fff; color: var(--petrol); }

.btn-ghost-light,
.wp-block-button.is-style-ghost-light .wp-block-button__link { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost-light:hover,
.wp-block-button.is-style-ghost-light .wp-block-button__link:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.wp-block-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }

/* ---------- lists with check marks ---------- */
ul.is-style-checks,
.mec-checks ul { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.is-style-checks li,
.mec-checks ul li { position: relative; padding-left: 1.6rem; color: var(--ink); font-weight: 500; margin-bottom: .5rem; }
ul.is-style-checks li::before,
.mec-checks ul li::before {
	content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; background: var(--petrol-600);
	-webkit-mask: 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- waves ---------- */
.wave { display: block; width: 100%; margin: 0; z-index: 2; pointer-events: none; line-height: 0; }
.wave svg { display: block; width: 100%; height: 64px; }
.wave-in { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; }
.wave-up { position: absolute; left: 0; right: 0; top: -1px; z-index: 3; }

/* ---------- decorative blobs ---------- */
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 28px) scale(1.08); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(34px, -26px) scale(1.1); } }
@keyframes morph { 0%, 100% { border-radius: 30% 70% 70% 30% / 40% 40% 60% 60%; } 50% { border-radius: 62% 38% 42% 58% / 52% 56% 44% 48%; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- scroll reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(3n+2) { transition-delay: .12s; }
.reveal:nth-child(3n) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- video card (used by several blocks) ---------- */
.vcard { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; display: block; background: var(--petrol-900); }
.vcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vcard:hover img { transform: scale(1.06); }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 54, 66, 0) 35%, rgba(6, 54, 66, .62)); pointer-events: none; }
.vcard .play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.vcard .play > span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; transition: transform .25s; }
.vcard:hover .play > span { transform: scale(1.12); }
.vcard .play svg { width: 24px; height: 24px; color: var(--petrol); margin-left: 3px; }
.vcard .label { position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 3; color: #fff; font-family: var(--font-heading); font-size: 1.02rem; }
.vcard__empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; z-index: 4; }
.vcard__empty input { background: #fff; }
