/*
Theme Name: Modern Legacy
Theme URI: https://modernlegacy.com.sg
Author: Modern Legacy Pte Ltd
Description: Custom theme for Modern Legacy Pte Ltd: Wills, LPA and Trusts in Singapore. Creates every page on activation. Pair with the Modern Legacy Core plugin for the No-Will Calculator and forms.
Version: 2.0.1
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: modern-legacy
*/

/* Layout concept: calm and current. Warm white, charcoal type, one deep teal for action,
   soft sage surfaces; the logo's gold appears only in tiny details. Rounded cards, no ornaments. */
:root {
	--ml-bg: #FBFAF7;
	--ml-surface: #FFFFFF;
	--ml-soft: #F1F5F3;
	--ml-sage: #DDE8E3;
	--ml-ink: #1E2422;
	--ml-muted: #5B6663;
	--ml-line: #E3E8E5;
	--ml-teal: #1F5C57;
	--ml-teal-2: #174844;
	--ml-teal-soft: #E5EFEC;
	--ml-teal-mid: #6F9F97;
	--ml-dark: #12302D;
	--ml-gold: #B08D57;
	--ml-gold-soft: #EFE3CC;
	--ml-wa: #1FA855;
	--ml-head: "Manrope", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ml-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ml-wide: 1180px;
	--ml-text-w: 760px;
	--ml-gutter: clamp(18px, 4vw, 40px);
	--ml-radius: 16px;
	--ml-radius-sm: 10px;
	--ml-shadow: 0 1px 2px rgba(18, 48, 45, .04), 0 12px 32px -16px rgba(18, 48, 45, .18);
	--ml-shadow-lg: 0 2px 4px rgba(18, 48, 45, .04), 0 32px 64px -28px rgba(18, 48, 45, .28);
	/* legacy aliases used by the calculator plugin */
	--ml-navy: var(--ml-teal);
	--ml-text: var(--ml-ink);
	--ml-ivory: var(--ml-soft);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--ml-bg);
	color: var(--ml-ink);
	font-family: var(--ml-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ml-teal); text-decoration-color: rgba(31, 92, 87, .35); text-underline-offset: 3px; }
a:hover { color: var(--ml-teal-2); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ml-teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--ml-head); color: var(--ml-ink); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.022em; }
h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 1.8vw, 22px); letter-spacing: -.012em; }
p { margin: 0 0 1em; }
sup { font-size: .55em; line-height: 0; }
.ml-skip { position: absolute; left: -9999px; top: 8px; background: var(--ml-teal); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 8px; }
.ml-skip:focus { left: 8px; color: #fff; }
.ml-anchor { display: block; position: relative; top: -110px; visibility: hidden; }
.ml-center { text-align: center; }
.ml-small { font-size: 14px; color: var(--ml-muted); }
.ml-lead { font-size: clamp(17px, 1.45vw, 19px); color: var(--ml-muted); line-height: 1.6; max-width: 62ch; }
.ml-lead.ml-center { margin-inline: auto; }
.ml-eyebrow {
	display: block; width: fit-content; font-family: var(--ml-sans); font-size: 13px; font-weight: 600; letter-spacing: .01em;
	color: var(--ml-teal); background: var(--ml-teal-soft); padding: 6px 12px; border-radius: 999px; margin: 0 0 18px;
}
.ml-eyebrow a { color: inherit; text-decoration: none; }

/* Classic themes wrap group content in an inner container; let children join the parent's grid/flex. */
.wp-block-group__inner-container { display: contents; }

/* ---------- Buttons ---------- */
.ml-btn,
.wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--ml-teal); color: #fff; border: 1.5px solid var(--ml-teal); border-radius: 999px;
	padding: 14px 26px; font-family: var(--ml-sans); font-size: 16px; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(31, 92, 87, .6);
	transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.ml-btn:hover,
.wp-block-button .wp-block-button__link:hover { background: var(--ml-teal-2); border-color: var(--ml-teal-2); color: #fff; transform: translateY(-1px); }
.ml-btn:active, .wp-block-button .wp-block-button__link:active { transform: translateY(0); }
.ml-btn--ghost,
.wp-block-button.is-style-outline .wp-block-button__link { background: var(--ml-surface); color: var(--ml-ink); border-color: var(--ml-line); box-shadow: none; }
.ml-btn--ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ml-surface); color: var(--ml-teal); border-color: var(--ml-teal); }
.ml-btn--gold { background: #fff; border-color: #fff; color: var(--ml-dark); box-shadow: none; }
.ml-btn--gold:hover { background: var(--ml-sage); border-color: var(--ml-sage); color: var(--ml-dark); }
.ml-btn--sm { padding: 10px 18px; font-size: 15px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.wp-block-buttons > .wp-block-button { margin: 0; }
.ml-center-buttons { justify-content: center; }

/* ---------- Header ---------- */
.ml-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 250, 247, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.admin-bar .ml-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ml-header { top: 46px; } }
.ml-header.is-scrolled { border-bottom-color: var(--ml-line); }
.ml-header__inner { max-width: calc(var(--ml-wide) + 2 * var(--ml-gutter)); margin: 0 auto; padding: 12px var(--ml-gutter); display: flex; align-items: center; gap: 24px; }
.ml-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; min-width: 0; }
.ml-brand__mark { width: 44px; height: 44px; flex: none; }
.ml-brand__text { display: flex; flex-direction: column; line-height: 1; }
.ml-brand__name { font-family: var(--ml-head); font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--ml-ink); white-space: nowrap; }
.ml-brand__tag { font-family: var(--ml-sans); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ml-muted); margin-top: 5px; white-space: nowrap; }
.ml-nav { display: flex; align-items: center; gap: 18px; }
.ml-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.ml-menu > li { position: relative; display: flex; align-items: center; }
.ml-menu a { display: block; padding: 9px 12px; font-size: 15px; font-weight: 500; color: var(--ml-ink); text-decoration: none; border-radius: 999px; transition: background .15s, color .15s; }
.ml-menu a:hover { background: var(--ml-soft); color: var(--ml-ink); }
.ml-menu .current-menu-item > a, .ml-menu .current-menu-ancestor > a, .ml-menu .current_page_parent > a { color: var(--ml-teal); }
.ml-sub-toggle { background: none; border: 0; padding: 6px; margin-left: -8px; color: var(--ml-muted); cursor: pointer; display: inline-flex; }
.ml-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
	background: var(--ml-surface); border: 1px solid var(--ml-line); border-radius: 14px;
	box-shadow: var(--ml-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease;
}
.ml-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.ml-menu > li:hover > .sub-menu, .ml-menu > li:focus-within > .sub-menu, .ml-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ml-menu .sub-menu a { padding: 10px 12px; font-size: 15px; border-radius: 8px; }
.ml-nav__actions { display: flex; align-items: center; gap: 12px; }
.ml-nav-toggle { display: none; align-items: center; gap: 10px; background: var(--ml-surface); border: 1px solid var(--ml-line); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 500; color: var(--ml-ink); cursor: pointer; }
.ml-nav-toggle__bars, .ml-nav-toggle__bars::before, .ml-nav-toggle__bars::after { display: block; width: 18px; height: 1.8px; border-radius: 2px; background: currentColor; position: relative; transition: .2s; }
.ml-nav-toggle__bars::before, .ml-nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.ml-nav-toggle__bars::before { top: -6px; }
.ml-nav-toggle__bars::after { top: 6px; }
.ml-nav-open .ml-nav-toggle__bars { background: transparent; }
.ml-nav-open .ml-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.ml-nav-open .ml-nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
	/* backdrop-filter would trap the fixed menu panel inside the header */
	.ml-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ml-bg); }
	.ml-nav-toggle { display: inline-flex; }
	.ml-nav {
		position: fixed; inset: 0; top: var(--ml-header-h, 69px); z-index: 49; background: var(--ml-bg);
		flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--ml-gutter) 40px; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease;
	}
	.ml-nav-open .ml-nav { opacity: 1; visibility: visible; transform: none; }
	.ml-nav-open { overflow: hidden; }
	.ml-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.ml-menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--ml-line); }
	.ml-menu > li > a { flex: 1; padding: 16px 0; font-family: var(--ml-head); font-size: 19px; font-weight: 700; border-radius: 0; }
	.ml-menu > li > a:hover { background: transparent; }
	.ml-sub-toggle { margin: 0; padding: 12px; }
	.ml-menu .sub-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 4px; display: none; background: transparent; }
	.ml-menu > li.is-open > .sub-menu { display: block; }
	.ml-nav__actions { flex-direction: column; align-items: stretch; margin-top: 24px; }
	.ml-nav__actions .ml-btn { padding: 16px; font-size: 17px; }
}
@media (max-width: 480px) {
	.ml-brand__mark { width: 40px; height: 40px; }
	.ml-brand__name { font-size: 17px; }
	.ml-brand__tag { font-size: 9.5px; letter-spacing: .06em; }
	.ml-nav-toggle__label { display: none; }
	.ml-nav-toggle { padding: 12px; }
}

/* ---------- Sections ---------- */
.ml-landing-content > .wp-block-group,
.ml-section { padding: clamp(64px, 8vw, 112px) var(--ml-gutter); margin: 0; }
:is(.ml-section, .ml-section > .wp-block-group__inner-container) > * { max-width: var(--ml-wide); margin-left: auto; margin-right: auto; }
:is(.ml-section, .ml-section > .wp-block-group__inner-container) > .ml-lead, :is(.ml-section, .ml-section > .wp-block-group__inner-container) > p { max-width: var(--ml-text-w); }
:is(.ml-section, .ml-section > .wp-block-group__inner-container) > .ml-lead.ml-center { max-width: 62ch; }
.ml-section + .ml-section { padding-top: 0; }
.ml-ornament { text-align: center; }
:is(.ml-section, .ml-section > .wp-block-group__inner-container) > .ml-ornament { margin-bottom: 44px; }
:is(.ml-section, .ml-section > .wp-block-group__inner-container) > .ml-ornament + .ml-lead { margin-top: -28px; margin-bottom: 44px; }
.ml-eyebrow:has(+ .ml-ornament), .ml-eyebrow:has(+ .ml-center) { margin-left: auto !important; margin-right: auto !important; }
.ml-section.ml-steps-section, .ml-section.ml-faq, .ml-section.ml-founder { background: var(--ml-surface); padding-top: clamp(64px, 8vw, 112px); }
.ml-section.ml-steps-section + .ml-section, .ml-section.ml-faq + .ml-section, .ml-section.ml-founder + .ml-section { padding-top: clamp(64px, 8vw, 112px); }

/* Hero */
.ml-hero { padding-top: clamp(36px, 6vw, 84px); position: relative; overflow: hidden; }
.ml-hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(221, 232, 227, .9), rgba(221, 232, 227, 0)); pointer-events: none; }
.ml-hero .wp-block-columns.ml-hero__cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; margin: 0 auto; position: relative; }
.ml-hero__title { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; margin-bottom: 22px; }
.ml-hero .wp-block-column, .ml-founder .wp-block-column, .ml-two-lists .wp-block-column, .ml-contact__cols .wp-block-column { min-width: 0; margin: 0; flex-basis: auto !important; }
.ml-trustline { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14.5px; color: var(--ml-muted); }
.ml-trustline span { position: relative; padding-left: 24px; }
.ml-trustline span::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; background: var(--ml-teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231F5C57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

.ml-hero-card {
	position: relative; background: var(--ml-surface); padding: clamp(22px, 3vw, 32px);
	border: 1px solid var(--ml-line); border-radius: 22px; box-shadow: var(--ml-shadow-lg);
}
.ml-hero-card__label { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--ml-teal); background: var(--ml-teal-soft); padding: 5px 10px; border-radius: 999px; margin: 0 0 12px; }
.ml-hero-card__case { font-family: var(--ml-head); font-size: 20px; line-height: 1.3; color: var(--ml-ink); font-weight: 700; letter-spacing: -.01em; margin: 0 0 18px; }
.ml-hero-card__bar { display: flex; height: 44px; border-radius: 10px; overflow: hidden; margin-bottom: 12px; gap: 3px; }
.ml-hero-card__bar span { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 14px; border-radius: 6px; }
.ml-hero-card__bar .is-sand { color: var(--ml-ink); }
.is-navy { background: var(--ml-teal); }
.is-gold { background: var(--ml-teal-mid); }
.is-sand { background: var(--ml-sage); }
.ml-hero-card__legend { list-style: none; margin: 0 0 14px; padding: 0; font-size: 15px; }
.ml-hero-card__legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ml-line); }
.ml-hero-card__legend i { width: 10px; height: 10px; border-radius: 50%; }
.ml-hero-card__legend b { color: var(--ml-ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.ml-hero-card__note { font-size: 14px; color: var(--ml-muted); margin: 0 0 16px; line-height: 1.5; padding: 10px 12px; background: var(--ml-gold-soft); border-radius: 10px; color: #5B4520; }
.ml-hero-card__link { font-weight: 600; text-decoration: none; color: var(--ml-teal); }
.ml-hero-card__link:hover { text-decoration: underline; }

/* Page hero */
.ml-section.ml-page-hero { padding-left: max(var(--ml-gutter), calc((100% - var(--ml-wide)) / 2)); padding-right: max(var(--ml-gutter), calc((100% - var(--ml-wide)) / 2)); }
.ml-page-hero { padding-top: clamp(44px, 6vw, 84px); padding-bottom: clamp(24px, 3vw, 40px); margin-bottom: clamp(32px, 4vw, 56px) !important; position: relative; }
:is(.ml-page-hero, .ml-page-hero > .wp-block-group__inner-container) > * { max-width: 860px; margin-left: 0; margin-right: 0; }
.ml-page-hero .ml-hero__title { font-size: clamp(34px, 4.6vw, 54px); max-width: 860px; }
.ml-page-hero + .ml-section { padding-top: 0; }
.ml-page-hero:has(+ :is(.ml-founder, .ml-steps-section, .ml-faq)) { margin-bottom: 0 !important; }
.ml-section.ml-page-hero + :is(.ml-founder, .ml-steps-section, .ml-faq) { padding-top: clamp(64px, 8vw, 112px); }
.ml-price-chip { display: inline-flex !important; align-items: baseline; width: auto; margin-top: 24px !important; padding: 8px 16px; border-radius: 999px; font-size: 15px; color: var(--ml-muted); background: var(--ml-surface); border: 1px solid var(--ml-line); }
.ml-price-chip strong { font-family: var(--ml-head); font-size: 19px; margin-left: 6px; color: var(--ml-ink); }

/* Grids and cards */
.ml-grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.ml-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ml-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ml-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .ml-grid--4, .ml-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ml-grid--4, .ml-grid--3, .ml-grid--2 { grid-template-columns: minmax(0, 1fr); } }
.ml-card {
	background: var(--ml-surface); border: 1px solid var(--ml-line); border-radius: var(--ml-radius);
	padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; min-width: 0;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
:is(.ml-card, .ml-card > .wp-block-group__inner-container) > * { margin-top: 0; }
.ml-card h3 { margin-bottom: 8px; }
.ml-card p { color: var(--ml-muted); font-size: 15.5px; margin-bottom: 14px; }
.ml-card p:last-child { margin-bottom: 0; }
.ml-card__meta { margin-top: auto !important; padding-top: 14px; border-top: 1px solid var(--ml-line); color: var(--ml-muted) !important; font-size: 14.5px !important; }
.ml-card__meta strong { font-family: var(--ml-head); font-size: 22px; color: var(--ml-ink); letter-spacing: -.02em; }
.ml-card__link a { font-weight: 600; text-decoration: none; color: var(--ml-teal); }
.ml-card__link a::after { content: " \2192"; transition: margin .15s; }
.ml-card:has(.ml-card__link a:hover) { border-color: var(--ml-sage); box-shadow: var(--ml-shadow); transform: translateY(-3px); }
.ml-services .ml-card:has(.ml-card__link) { position: relative; }
.ml-services .ml-card .ml-card__link a::before { content: ""; position: absolute; inset: 0; }
.ml-audiences .ml-card, .ml-about-values .ml-card { background: var(--ml-soft); border-color: transparent; }

/* Calculator band */
.ml-section.ml-calc-band { background: var(--ml-dark); color: #D5E2DE; position: relative; padding-top: clamp(64px, 8vw, 112px); overflow: hidden; }
.ml-section.ml-calc-band + .ml-section { padding-top: clamp(64px, 8vw, 112px); }
.ml-calc-band::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -540px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(111, 159, 151, .35), rgba(111, 159, 151, 0)); pointer-events: none; }
.ml-calc-band > * { position: relative; }
.ml-calc-band h2 { color: #fff; max-width: 820px; }
.ml-calc-band .ml-eyebrow { color: #CFE3DD; background: rgba(255, 255, 255, .08); }
.ml-calc-band .ml-lead { color: #B9CCC6; margin-bottom: 40px; }
.ml-calc-page .mlcalc { max-width: 820px; }

/* Steps */
.ml-steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); counter-reset: step; }
.ml-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ml-steps li { counter-increment: step; position: relative; padding: 76px 26px 26px; color: var(--ml-muted); font-size: 15.5px; background: var(--ml-soft); border-radius: var(--ml-radius); }
.ml-steps li::before { content: counter(step); position: absolute; top: 24px; left: 26px; width: 36px; height: 36px; border-radius: 50%; background: var(--ml-teal); color: #fff; font-family: var(--ml-head); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.ml-steps li strong { display: block; font-family: var(--ml-head); font-size: 19px; color: var(--ml-ink); margin-bottom: 6px; font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 900px) { .ml-steps, .ml-steps--4 { grid-template-columns: minmax(0, 1fr); } .ml-steps li { padding: 24px 22px 24px 76px; } .ml-steps li::before { top: 24px; left: 22px; } }

/* Founder */
.ml-founder .wp-block-columns.ml-founder__cols { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; margin: 0 auto; }
.ml-portrait { position: relative; max-width: 380px; margin: 0 auto; aspect-ratio: 1; border-radius: 28px; padding: 36px; background: var(--ml-soft); }
.ml-portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ml-quote { margin: 0 0 22px; padding: 0; border: 0; }
.ml-quote p { font-family: var(--ml-head); font-weight: 600; font-size: clamp(20px, 2.1vw, 25px); line-height: 1.45; letter-spacing: -.012em; color: var(--ml-ink); margin: 0 0 18px; }
.ml-quote p::before { content: "\201C"; color: var(--ml-teal-mid); margin-right: 2px; }
.ml-quote p::after { content: "\201D"; color: var(--ml-teal-mid); margin-left: 2px; }
.ml-quote cite { font-style: normal; font-size: 14.5px; color: var(--ml-muted); }
@media (max-width: 820px) { .ml-founder .wp-block-columns.ml-founder__cols { grid-template-columns: minmax(0, 1fr); } .ml-portrait { max-width: 240px; padding: 24px; } }

/* Lists */
.ml-two-lists.wp-block-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-bottom: 24px; }
.ml-two-lists .wp-block-column { background: var(--ml-surface); border: 1px solid var(--ml-line); border-radius: var(--ml-radius); padding: clamp(22px, 2.4vw, 30px); }
@media (max-width: 780px) { .ml-two-lists.wp-block-columns { grid-template-columns: minmax(0, 1fr); } }
.ml-checks { list-style: none; padding: 0; margin: 0; }
.ml-checks li { position: relative; padding: 9px 0 9px 32px; }
.ml-checks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--ml-teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.7 2.7L14 7.6' fill='none' stroke='%231F5C57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.ml-callout { background: var(--ml-gold-soft); border-radius: var(--ml-radius); padding: 20px 24px; color: #4A3A1E; }
.ml-callout p { margin: 0; }
.ml-callout strong { color: #3A2C13; }

/* Pricing */
.ml-pricing { align-items: stretch; }
.ml-price { text-align: left; }
.ml-price__name { font-family: var(--ml-sans); font-size: 14px !important; font-weight: 600; color: var(--ml-teal) !important; margin-bottom: 8px !important; }
.ml-price__amount { font-family: var(--ml-head); font-size: 46px !important; line-height: 1 !important; color: var(--ml-ink) !important; font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px !important; }
.ml-price__amount small { font-family: var(--ml-sans); font-size: 15px; color: var(--ml-muted); font-weight: 400; letter-spacing: 0; margin-right: 4px; }
.ml-price .ml-checks { margin-bottom: 24px; font-size: 15px; }
.ml-price .wp-block-buttons { margin-top: auto; }
.ml-price--featured { border: 2px solid var(--ml-teal); box-shadow: var(--ml-shadow); position: relative; }
.ml-price--featured::before { content: "Most popular"; position: absolute; top: -13px; left: 24px; background: var(--ml-teal); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.ml-pricing + p { margin-top: 32px; }

/* Latest posts & post cards */
.wp-block-latest-posts.ml-posts,
.ml-post-grid { list-style: none; padding: 0; margin: 0 auto 8px; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.wp-block-latest-posts.ml-posts li,
.ml-post-card { background: var(--ml-surface); border: 1px solid var(--ml-line); border-radius: var(--ml-radius); padding: 26px; margin: 0 !important; width: auto !important; display: flex; flex-direction: column; min-width: 0; position: relative; transition: box-shadow .2s, transform .2s; }
.wp-block-latest-posts.ml-posts .wp-block-latest-posts__post-title,
.ml-post-card__title { font-family: var(--ml-head); font-size: 19px; font-weight: 700; letter-spacing: -.012em; line-height: 1.3; color: var(--ml-ink); text-decoration: none; margin: 0 0 10px; display: block; }
.ml-post-card__title a { text-decoration: none; color: inherit; }
.wp-block-latest-posts.ml-posts .wp-block-latest-posts__post-title::after,
.ml-post-card__title a::after { content: ""; position: absolute; inset: 0; }
.wp-block-latest-posts.ml-posts li:hover, .ml-post-card:hover { box-shadow: var(--ml-shadow); transform: translateY(-3px); }
.wp-block-latest-posts__post-excerpt, .ml-post-card__excerpt { color: var(--ml-muted); font-size: 15px; margin: 0 0 14px; }
.wp-block-latest-posts__post-excerpt a { display: none; }
.ml-post-card__more { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--ml-teal); }
@media (max-width: 900px) { .wp-block-latest-posts.ml-posts, .ml-post-grid { grid-template-columns: minmax(0, 1fr); } }
.ml-learn-teaser .wp-block-buttons { margin-top: 36px; }

/* FAQ */
:is(.ml-faq, .ml-faq > .wp-block-group__inner-container) > .wp-block-details, :is(.ml-faq, .ml-faq > .wp-block-group__inner-container) > .ml-center { max-width: 820px; }
.wp-block-details { background: var(--ml-soft); border-radius: 14px; padding: 0 22px; margin-top: 0; margin-bottom: 10px; }
.wp-block-details summary {
	list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
	font-family: var(--ml-head); font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; color: var(--ml-ink); line-height: 1.35;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--ml-surface); color: var(--ml-teal); font-size: 20px; font-weight: 500; line-height: 27px; text-align: center; transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > p { color: var(--ml-muted); margin: -6px 0 20px; max-width: 70ch; }
:is(.ml-faq, .ml-faq > .wp-block-group__inner-container) > .ml-center { margin-top: 24px; }

/* CTA band */
.ml-section.ml-cta-band { padding-top: clamp(24px, 4vw, 40px) !important; padding-bottom: clamp(64px, 8vw, 104px); }
:is(.ml-cta-band, .ml-cta-band > .wp-block-group__inner-container) > * { position: relative; }
.ml-cta-band { position: relative; }
.ml-cta-band::before { content: ""; position: absolute; left: var(--ml-gutter); right: var(--ml-gutter); top: 0; bottom: clamp(40px, 5vw, 64px); max-width: var(--ml-wide); margin: 0 auto; border-radius: 28px; background: var(--ml-teal); pointer-events: none; }
.ml-cta-band h2 { max-width: 760px; color: #fff; padding-top: clamp(48px, 6vw, 72px); }
.ml-cta-band .ml-lead { color: #CFE3DD; }
.ml-cta-band .wp-block-buttons { padding-bottom: clamp(48px, 6vw, 72px); }
.ml-cta-band .wp-block-button .wp-block-button__link { background: #fff; color: var(--ml-dark); border-color: #fff; box-shadow: none; }
.ml-cta-band .wp-block-button .wp-block-button__link:hover { background: var(--ml-sage); border-color: var(--ml-sage); }
.ml-cta-band .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.ml-cta-band .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* Contact */
.ml-contact__cols.wp-block-columns { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .ml-contact__cols.wp-block-columns { grid-template-columns: minmax(0, 1fr); } }
.ml-form-card { box-shadow: var(--ml-shadow); }
.ml-form-card h3 { margin-bottom: 20px; }
.ml-narrow { max-width: 780px !important; }
.ml-dl { margin: 0 0 20px; display: grid; gap: 12px; }
.ml-dl div { background: var(--ml-soft); border-radius: 12px; padding: 12px 16px; }
.ml-dl dt { font-size: 12.5px; font-weight: 600; color: var(--ml-teal); }
.ml-dl dd { margin: 2px 0 0; color: var(--ml-ink); font-size: 16px; }
.ml-qr { width: 150px; border: 1px solid var(--ml-line); border-radius: 14px; padding: 8px; background: #fff; }

/* Articles and simple pages */
.ml-article, .ml-archive { padding: clamp(44px, 6vw, 84px) var(--ml-gutter) clamp(60px, 8vw, 100px); }
.ml-article > *, .ml-article__header { max-width: var(--ml-text-w); margin-left: auto; margin-right: auto; }
.ml-archive > * { max-width: var(--ml-wide); margin-left: auto; margin-right: auto; }
.ml-archive__header { max-width: var(--ml-wide); margin-bottom: 44px; }
.ml-article__header { margin-bottom: 32px; }
.ml-article__title { font-size: clamp(32px, 4.2vw, 50px); }
.ml-article__meta { font-size: 14px; color: var(--ml-muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.ml-article__author { display: inline-flex; align-items: center; gap: 8px; color: var(--ml-ink); font-weight: 500; text-decoration: none; }
.ml-article__author img { width: 28px; height: 28px; border-radius: 50%; }
.ml-article__image img { border-radius: var(--ml-radius); }
.ml-prose { font-size: 17.5px; }
.ml-prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.6em; }
.ml-prose h3 { margin-top: 1.4em; }
.ml-prose ul, .ml-prose ol { padding-left: 1.3em; }
.ml-prose li { margin-bottom: .45em; }
.ml-prose li::marker { color: var(--ml-teal); }
.ml-prose .ml-tldr { background: var(--ml-teal-soft); border-radius: 14px; padding: 18px 22px; font-size: 16.5px; color: var(--ml-ink); }
.ml-prose .ml-tldr strong { color: var(--ml-teal); }
.ml-article__cta { margin-top: 56px; padding: 32px; background: var(--ml-dark); color: #CFE3DD; border-radius: 22px; }
.ml-article__cta .ml-eyebrow { background: rgba(255, 255, 255, .08); color: #CFE3DD; }
.ml-article__cta h2 { font-size: 26px; color: #fff; }
.ml-article__cta .ml-btn { background: #fff; border-color: #fff; color: var(--ml-dark); box-shadow: none; }
.ml-article__cta .ml-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.ml-article__cta p:last-child { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.ml-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ml-table th, .ml-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ml-line); vertical-align: top; }
.ml-table th { font-family: var(--ml-head); font-size: 14px; color: var(--ml-muted); font-weight: 700; }
.wp-block-table.ml-rules { background: var(--ml-surface); border: 1px solid var(--ml-line); border-radius: var(--ml-radius); overflow-x: auto; margin: 0 auto; }
.wp-block-table thead { border-bottom: 0; }
.wp-block-table tfoot { border-top: 0; }
.wp-block-table.ml-rules table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.wp-block-table.ml-rules th, .wp-block-table.ml-rules td { text-align: left; padding: 13px 18px; border: 0; border-bottom: 1px solid var(--ml-line); vertical-align: top; }
.wp-block-table.ml-rules thead th { font-family: var(--ml-head); font-size: 14px; color: var(--ml-muted); background: var(--ml-soft); border-bottom: 1px solid var(--ml-line); }
.wp-block-table.ml-rules tr:last-child td { border-bottom: 0; }
.wp-block-table.ml-rules figcaption { font-size: 13px; color: var(--ml-muted); padding: 10px 18px; text-align: left; margin: 0; }
.ml-pagination { margin-top: 40px; text-align: center; }
.ml-pagination .page-numbers { padding: 8px 12px; }
.ml-404__links { display: flex; flex-wrap: wrap; gap: 12px; }
.ml-crumbs { max-width: calc(var(--ml-wide) + 2 * var(--ml-gutter)); margin: 0 auto; padding: 22px var(--ml-gutter) 0; }
.ml-crumbs + .ml-landing-content .ml-page-hero { padding-top: clamp(20px, 3vw, 40px); }
.ml-breadcrumbs { font-size: 13.5px; color: var(--ml-muted); margin: 0 0 16px; }
.ml-breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ml-breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #A8B2AE; }
.ml-breadcrumbs a { color: var(--ml-muted); text-decoration: none; }
.ml-breadcrumbs a:hover { color: var(--ml-teal); }

/* ---------- Footer ---------- */
.ml-footer { background: var(--ml-dark); color: #B9CCC6; font-size: 15px; position: relative; }
.ml-footer a { color: #E6EFEC; text-decoration: none; }
.ml-footer a:hover { color: #fff; text-decoration: underline; }
.ml-footer .ml-btn--gold, .ml-footer .ml-btn--gold:hover { color: var(--ml-dark); text-decoration: none; }
.ml-footer__ornament { display: none; }
.ml-footer__inner { max-width: calc(var(--ml-wide) + 2 * var(--ml-gutter)); margin: 0 auto; padding: 64px var(--ml-gutter) 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
.ml-footer__brand img { width: 56px; height: 56px; background: #fff; border-radius: 50%; padding: 3px; }
.ml-footer__name { font-family: var(--ml-head); font-weight: 800; color: #fff; font-size: 20px; letter-spacing: -.01em; margin: 14px 0 4px; }
.ml-footer__motto { font-size: 15px; color: #B9CCC6; }
.ml-footer__h { font-family: var(--ml-sans); font-size: 13px; font-weight: 600; color: #fff; margin: 0 0 16px; }
.ml-footer__col ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.ml-social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 10px; }
.ml-social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); border-radius: 50%; }
.ml-footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); max-width: calc(var(--ml-wide) + 2 * var(--ml-gutter)); margin: 0 auto; padding: 22px var(--ml-gutter) 90px; font-size: 13px; color: #8FA7A0; }
.ml-footer__legal p { margin: 0 0 6px; }
.ml-footer__legal a { color: #B9CCC6; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); }
@media (max-width: 900px) { .ml-footer__inner { grid-template-columns: 1fr 1fr; } .ml-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ml-footer__inner { grid-template-columns: 1fr; } }

/* WhatsApp button */
.ml-wa-float {
	position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
	display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px;
	background: var(--ml-wa); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
	box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); transition: transform .15s;
}
.ml-wa-float:hover { color: #fff; transform: translateY(-2px); }
.ml-wa-float svg { width: 24px; height: 24px; }
@media (max-width: 600px) { .ml-wa-float span { display: none; } .ml-wa-float { padding: 14px; } }

/* ---------- Responsive hero ---------- */
@media (max-width: 960px) {
	.ml-hero .wp-block-columns.ml-hero__cols { grid-template-columns: minmax(0, 1fr); }
	.ml-hero-card { max-width: 540px; }
}

/* ---------- Block editor comfort ---------- */
.editor-styles-wrapper { background: var(--ml-bg); font-family: var(--ml-sans); }
