/* Content Manager — editorial design kit for filled sections.
 *
 * Class-based, so every heading, paragraph and image stays a normal editable
 * widget. Colours, fonts and corner radius come from the client's own site
 * (set per page as CSS variables). No !important anywhere: if the client
 * changes something in the builder, the builder wins.
 *
 * Design rules baked in: a real type scale (display >> body), whitespace as
 * the main premium signal, section rhythm (plain / tinted / dark), images
 * treated as first-class, and one accent used sparingly as a graphic mark
 * rather than as body colour (which is what kills contrast).
 */

body {
	--cm-accent: var(--e-global-color-accent, #c9a739);
	--cm-dark: #101216;
	--cm-radius: 16px;
	--cm-line: rgba(128, 128, 128, .26);
	--cm-tint: rgba(128, 128, 128, .06);
	--cm-pad: clamp(56px, 7vw, 112px);
	--cm-gap: clamp(20px, 2.4vw, 32px);
	--cm-measure: 68ch;
}

/* ── section shells ────────────────────────────────────────────────── */
.cm-sec { padding-top: var(--cm-pad); padding-bottom: var(--cm-pad); }
.cm-sec--tint { background: var(--cm-tint); }
.cm-sec--dark { background: var(--cm-dark); color: #fff; }
.cm-sec--dark :is(h1, h2, h3, h4, .elementor-heading-title) { color: #fff; }
.cm-sec--dark .cm-lead, .cm-sec--dark p { color: rgba(255, 255, 255, .82); }
.cm-sec--dark .cm-faq-a { border-color: rgba(255, 255, 255, .16); }

/* ── type scale ────────────────────────────────────────────────────── */
.cm-display, .cm-display .elementor-heading-title {
	font-size: clamp(2.3rem, 4.6vw, 3.9rem);
	line-height: 1.06;
	letter-spacing: -.02em;
}
.cm-h2, .cm-h2 .elementor-heading-title {
	font-size: clamp(1.85rem, 3.2vw, 2.75rem);
	line-height: 1.14;
	letter-spacing: -.015em;
}
.cm-h3, .cm-h3 .elementor-heading-title {
	font-size: clamp(1.12rem, 1.5vw, 1.3rem);
	line-height: 1.32;
}
.cm-lead { font-size: clamp(1.06rem, 1.35vw, 1.28rem); line-height: 1.62; max-width: 62ch; opacity: .82; }
.cm-body { max-width: var(--cm-measure); }
.cm-body p, .cm-lead p { margin: 0 0 .85em; }
.cm-center { text-align: center; margin-left: auto; margin-right: auto; }

/* eyebrow: the accent shows as a graphic rule, never as small coloured text
   (coloured micro-text on a tint is what failed contrast before) */
.cm-eyebrow, .cm-eyebrow .elementor-heading-title {
	font-size: .8125rem;
	letter-spacing: .15em;
	text-transform: uppercase;
	font-weight: 600;
	opacity: .92;
	display: flex;
	align-items: center;
	gap: .7em;
}
.cm-eyebrow .elementor-heading-title::before,
.cm-eyebrow:not(:has(.elementor-heading-title))::before {
	content: "";
	width: 26px;
	height: 2px;
	background: var(--cm-accent);
	flex: none;
}
.cm-center .cm-eyebrow, .cm-eyebrow.cm-center,
.cm-center .cm-eyebrow .elementor-heading-title { justify-content: center; }

/* ── at-a-glance answer box ────────────────────────────────────────── */
.cm-answer {
	position: relative;
	background: var(--cm-tint);
	border-radius: var(--cm-radius);
	padding: clamp(26px, 3.2vw, 44px);
	border-top: 3px solid var(--cm-accent);
}
.cm-answer ul { margin: .5em 0 0; padding-left: 1.2em; }
.cm-answer li { margin: .45em 0; }

/* ── grids ─────────────────────────────────────────────────────────── */
.cm-grid { display: flex; flex-wrap: wrap; gap: var(--cm-gap); }
.cm-grid > * { flex: 1 1 clamp(240px, 28%, 340px); min-width: 0; }
/* stats are short — let four sit on one line instead of orphaning the last */
.cm-grid > .cm-stat { flex: 1 1 clamp(130px, 18%, 240px); }

.cm-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	overflow: hidden;
	background: transparent;
	transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s, border-color .5s;
}
.cm-card:hover { transform: translateY(-6px); border-color: var(--cm-accent); box-shadow: 0 22px 48px rgba(16, 18, 22, .13); }
.cm-card > :is(.elementor-widget-image, .cm-card-img) { margin: 0; }
.cm-card :is(img, .elementor-widget-image img) {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
	transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}
.cm-card:hover :is(img, .elementor-widget-image img) { transform: scale(1.045); }
.cm-card > :not(.elementor-widget-image):not(.cm-card-img) { padding-left: clamp(20px, 2vw, 28px); padding-right: clamp(20px, 2vw, 28px); }
.cm-card > :not(.elementor-widget-image):not(.cm-card-img):first-child { padding-top: clamp(22px, 2.2vw, 30px); }
.cm-card > :not(.elementor-widget-image):not(.cm-card-img):last-child { padding-bottom: clamp(22px, 2.2vw, 30px); }
.cm-card .elementor-widget-image + * { padding-top: clamp(20px, 2vw, 26px); }

/* ── numbered steps: the number is a mark, not washed-out text ─────── */
.cm-step { border: 0; border-top: 2px solid var(--cm-line); border-radius: 0; padding-top: 26px; }
.cm-step:hover { transform: none; box-shadow: none; border-color: var(--cm-accent); }
.cm-step > * { padding-left: 0; padding-right: 0; }
.cm-step-num, .cm-step-num .elementor-heading-title {
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .14em;
	color: var(--cm-accent);
}

/* ── stat band ─────────────────────────────────────────────────────── */
.cm-stat { text-align: center; padding: clamp(14px, 2vw, 26px) 12px; }
.cm-stat-num, .cm-stat-num .elementor-heading-title {
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	line-height: 1;
	font-weight: 700;
	letter-spacing: -.03em;
}
.cm-stat-label, .cm-stat-label p {
	font-size: .8125rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .68;
	margin: .7em 0 0;
}

/* ── image + text, the layout that carries a page ──────────────────── */
.cm-media { display: flex; flex-wrap: wrap; gap: clamp(26px, 4vw, 64px); align-items: center; }
.cm-media > * { flex: 1 1 46%; min-width: 0; }
.cm-media :is(img, .elementor-widget-image img) {
	width: 100%;
	border-radius: var(--cm-radius);
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.cm-media--flip { flex-direction: row-reverse; }

/* full-bleed feature image */
.cm-feature :is(img, .elementor-widget-image img) {
	width: 100%;
	border-radius: var(--cm-radius);
	aspect-ratio: 21 / 9;
	object-fit: cover;
	display: block;
}

/* ── tick list ─────────────────────────────────────────────────────── */
.cm-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1em; }
.cm-check li { position: relative; padding: .62em 0 .62em 2em; border-bottom: 1px solid var(--cm-line); }
.cm-check li::before {
	content: "";
	position: absolute;
	left: .15em;
	top: 1.05em;
	width: 9px;
	height: 5px;
	border-left: 2px solid var(--cm-accent);
	border-bottom: 2px solid var(--cm-accent);
	transform: rotate(-45deg);
}

/* ── pull quote: a moment, not a footnote ──────────────────────────── */
.cm-quote {
	max-width: 24ch;
	max-width: min(46ch, 100%);
	font-size: clamp(1.3rem, 2.3vw, 1.9rem);
	line-height: 1.42;
	letter-spacing: -.01em;
	padding-top: 1.1em;
	border-top: 2px solid var(--cm-accent);
}
.cm-quote p { margin: 0 0 .5em; }
.cm-quote cite {
	display: block;
	margin-top: .9em;
	font-style: normal;
	font-size: .8125rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .66;
}

/* ── call to action ────────────────────────────────────────────────── */
.cm-cta { text-align: center; }
.cm-cta .cm-lead { margin-left: auto; margin-right: auto; }
.cm-btn {
	display: inline-block;
	padding: 15px 34px;
	border-radius: var(--cm-radius);
	background: var(--cm-accent);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.2;
	transition: transform .3s, box-shadow .3s;
}
.cm-btn:hover, .cm-btn:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16, 18, 22, .22); }

/* ── FAQ: visible answers, generous rhythm ─────────────────────────── */
.cm-faq-q, .cm-faq-q .elementor-heading-title { font-size: clamp(1.05rem, 1.35vw, 1.18rem); line-height: 1.4; }
.cm-faq-a { padding-bottom: 1.4em; border-bottom: 1px solid var(--cm-line); max-width: var(--cm-measure); opacity: .84; }

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 767px) {
	.cm-grid > *, .cm-media > * { flex: 1 1 100%; }
	.cm-grid > .cm-stat { flex: 1 1 40%; }
	.cm-media { gap: 24px; }
	.cm-media--flip { flex-direction: row; }
	.cm-answer { padding: 24px 20px; }
	.cm-stat { padding: 10px 8px; }
	.cm-check li { padding-left: 1.8em; }
}

@media (prefers-reduced-motion: reduce) {
	.cm-card, .cm-card img, .cm-btn { transition: none; }
	.cm-card:hover { transform: none; }
	.cm-card:hover :is(img, .elementor-widget-image img) { transform: none; }
	.cm-btn:hover { transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   STYLE PACKS — the same content, a different look.
   Applied as a body class (cm-style-…), so switching the style of a page
   or the whole site changes nothing in the content: no rebuild, no reset,
   no lost edits. "editorial" is the default and needs no class.
   ══════════════════════════════════════════════════════════════════════ */

/* CLASSIC — conservative and symmetric. Lawyers, medical, finance, trades
   with an older audience. Nothing shouts. */
.cm-style-classic { --cm-radius: 4px; --cm-line: rgba(128, 128, 128, .34); --cm-tint: rgba(128, 128, 128, .05); }
.cm-style-classic :is(.cm-display, .cm-h2) , .cm-style-classic :is(.cm-display, .cm-h2) .elementor-heading-title { letter-spacing: 0; }
.cm-style-classic .cm-display, .cm-style-classic .cm-display .elementor-heading-title { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.cm-style-classic .cm-h2, .cm-style-classic .cm-h2 .elementor-heading-title { font-size: clamp(1.6rem, 2.5vw, 2.15rem); }
.cm-style-classic .cm-card { background: var(--cm-tint); }
.cm-style-classic .cm-card:hover { transform: none; box-shadow: none; border-color: var(--cm-line); }
.cm-style-classic .cm-card:hover :is(img, .elementor-widget-image img) { transform: none; }
.cm-style-classic .cm-answer { border: 1px solid var(--cm-line); border-top: 3px solid var(--cm-accent); }
.cm-style-classic .cm-sec--dark { --cm-dark: #1f2530; }
.cm-style-classic .cm-quote { font-size: clamp(1.12rem, 1.5vw, 1.35rem); font-style: italic; }
.cm-style-classic .cm-btn { border-radius: 4px; }

/* SOFT — warm and approachable. Care, beauty, family services, clinics. */
.cm-style-soft { --cm-radius: 22px; --cm-tint: rgba(128, 128, 128, .075); --cm-line: transparent; }
.cm-style-soft :is(.cm-display, .cm-h2), .cm-style-soft :is(.cm-display, .cm-h2) .elementor-heading-title { letter-spacing: -.005em; }
.cm-style-soft .cm-card { background: var(--cm-tint); border: 0; }
.cm-style-soft .cm-card:hover { box-shadow: 0 24px 52px rgba(16, 18, 22, .10); }
.cm-style-soft .cm-answer { border: 0; }
.cm-style-soft .cm-check li { border-bottom: 0; padding-top: .38em; padding-bottom: .38em; }
.cm-style-soft .cm-step { border-top: 0; background: var(--cm-tint); border-radius: var(--cm-radius); padding: 26px; }
.cm-style-soft .cm-quote { border-top: 0; padding-top: 0; }
.cm-style-soft .cm-sec--dark { --cm-dark: #191d24; }
.cm-style-soft .cm-btn { border-radius: 999px; }
.cm-style-soft .cm-media :is(img, .elementor-widget-image img) { border-radius: var(--cm-radius); }
/* a tinted card on a tinted section disappears — give it a hairline instead */
.cm-style-soft .cm-sec--tint :is(.cm-card, .cm-step) { box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .18); }

/* BOLD — dramatic and confident. Luxury, automotive, fitness, nightlife. */
.cm-style-bold { --cm-radius: 2px; }
.cm-style-bold .cm-display, .cm-style-bold .cm-display .elementor-heading-title { font-size: clamp(2.7rem, 6vw, 4.8rem); letter-spacing: -.035em; }
.cm-style-bold .cm-h2, .cm-style-bold .cm-h2 .elementor-heading-title { font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -.03em; }
.cm-style-bold .cm-eyebrow, .cm-style-bold .cm-eyebrow .elementor-heading-title { letter-spacing: .26em; }
.cm-style-bold .cm-stat-num, .cm-style-bold .cm-stat-num .elementor-heading-title { font-size: clamp(2.8rem, 6.5vw, 4.6rem); }
.cm-style-bold .cm-answer { background: var(--cm-dark); color: #fff; border: 0; border-left: 4px solid var(--cm-accent); border-radius: 0; }
.cm-style-bold .cm-answer :is(h1, h2, h3, h4, .elementor-heading-title) { color: #fff; }
.cm-style-bold .cm-answer :is(p, li) { color: rgba(255, 255, 255, .86); }
.cm-style-bold .cm-card { border: 0; border-top: 3px solid var(--cm-accent); border-radius: 0; }
.cm-style-bold .cm-card:hover { transform: translateY(-4px); box-shadow: none; }
.cm-style-bold .cm-quote { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.cm-style-bold .cm-btn { border-radius: 0; letter-spacing: .06em; text-transform: uppercase; font-size: .875rem; }

/* MINIMAL — Swiss. Architects, designers, photographers, high-end trades.
   No fills at all: hairlines and space do the work. */
.cm-style-minimal { --cm-radius: 0px; --cm-tint: transparent; --cm-line: rgba(128, 128, 128, .32); --cm-pad: clamp(60px, 7vw, 116px); }
.cm-style-minimal .cm-card { border: 0; border-top: 1px solid var(--cm-line); border-radius: 0; }
.cm-style-minimal .cm-card:hover { transform: none; box-shadow: none; }
.cm-style-minimal .cm-card:hover :is(img, .elementor-widget-image img) { transform: none; }
.cm-style-minimal .cm-card :is(img, .elementor-widget-image img) { border-radius: 0; }
.cm-style-minimal .cm-card > :not(.elementor-widget-image):not(.cm-card-img) { padding-left: 0; padding-right: 0; }
.cm-style-minimal .cm-answer { background: transparent; border: 0; border-left: 2px solid var(--cm-accent); border-radius: 0; padding: 2px 0 2px clamp(20px, 2.4vw, 34px); }
.cm-style-minimal .cm-sec--tint { background: transparent; border-top: 1px solid var(--cm-line); }
/* a band with no fill needs framing, or it reads as an empty gap */
.cm-style-minimal .cm-sec--dark { background: transparent; color: inherit;
	border-top: 1px solid var(--cm-line); border-bottom: 1px solid var(--cm-line);
	padding-top: clamp(40px, 4.5vw, 72px); padding-bottom: clamp(40px, 4.5vw, 72px); }
.cm-style-minimal .cm-sec--dark :is(h1, h2, h3, h4, .elementor-heading-title) { color: inherit; }
.cm-style-minimal .cm-sec--dark :is(p, .cm-lead) { color: inherit; }
.cm-style-minimal .cm-media :is(img, .elementor-widget-image img) { border-radius: 0; }
.cm-style-minimal .cm-btn { border-radius: 0; background: transparent; color: inherit; border: 1px solid currentColor; }
.cm-style-minimal .cm-btn:hover { background: var(--cm-accent); color: #fff; border-color: var(--cm-accent); transform: none; box-shadow: none; }
