
/* Marketing site styles — theme tokens are runtime-resolved from the app Settings Single
   (theme_primary_color, theme_accent_color, theme_font_heading, ...) by www/marketing.py and
   emitted as CSS custom properties in an inline <style> that overrides this :root. Re-skinning
   = changing tokens, never editing the rules below. The craft (sticky nav, type pairing,
   editorial layouts, alternating tones, scroll-reveal, art-directed hero) is all token-driven. */
:root {
	--mk-primary: #1F4A3C;
	--mk-accent: #C9A227;
	--mk-bg: #FBF8F1;
	--mk-surface: #FFFFFF;
	--mk-ink: #1A2B24;
	--mk-muted: #6B7C74;
	--mk-font-heading: Fraunces, Georgia, 'Times New Roman', serif;
	--mk-font-body: Inter, ui-sans-serif, system-ui, sans-serif;

	/* Banding + hairline tokens — runtime overridden by the inline <style>; derived here as a
	   safety net so alternating section tones render even without the inline override. */
	--mk-bg-alt: color-mix(in srgb, var(--mk-ink) 4%, var(--mk-bg));
	--mk-line: color-mix(in srgb, var(--mk-ink) 12%, transparent);

	/* Foreground-on-primary and status tokens. These live here (not inline in the rules) so the
	   stylesheet holds NO raw hex outside :root — a re-skin that flips to a light primary can
	   override --mk-on-primary without touching a single rule. */
	--mk-on-primary: #ffffff;
	--mk-danger: #b00020;

	/* Derived layout tokens (constant; tweak once, not per-skin). */
	--mk-maxw: 1120px;
	--mk-gap: 1.5rem;
	--mk-radius: 18px;
	--mk-radius-sm: 12px;
	--mk-pad-section: clamp(3.5rem, 8vw, 6.5rem);
	--mk-shadow: 0 18px 44px -26px color-mix(in srgb, var(--mk-ink) 60%, transparent);
	--mk-shadow-sm: 0 8px 24px -16px color-mix(in srgb, var(--mk-ink) 45%, transparent);
	--mk-focus: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 45%, transparent);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html { scroll-behavior: smooth; }

.mk-body {
	margin: 0;
	font-family: var(--mk-font-body);
	color: var(--mk-ink);
	background: var(--mk-bg);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: var(--mk-font-heading);
	line-height: 1.08;
	letter-spacing: -0.01em;
	font-weight: 600;
	color: var(--mk-ink);
	margin: 0;
}

a { color: var(--mk-ink); text-decoration: none; }

img {
	max-width: 100%;
	height: auto;
}

/* Eyebrow — the small uppercase kicker above section titles that signals "editorial". */
.mk-eyebrow {
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--mk-accent);
	margin: 0 0 0.6rem;
}

/* Accessibility: visible skip link + clear focus rings on every interactive element. */
.mk-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--mk-primary);
	color: var(--mk-on-primary);
	padding: 0.75rem 1rem;
	border-radius: 0 0 var(--mk-radius-sm) 0;
	z-index: 100;
}
.mk-skip-link:focus { left: 0; }

a:focus-visible,
.mk-btn:focus-visible {
	outline: none;
	box-shadow: var(--mk-focus);
	border-radius: 6px;
}

.mk-container {
	width: 100%;
	max-width: var(--mk-maxw);
	margin: 0 auto;
	padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Sticky nav ---------- */
.mk-nav {
	position: sticky;
	top: 0;
	z-index: 30;
	backdrop-filter: blur(10px);
	background: color-mix(in srgb, var(--mk-bg) 82%, transparent);
	border-bottom: 1px solid var(--mk-line);
}
.mk-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}
.mk-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-family: var(--mk-font-heading);
	font-size: 1.35rem;
	font-weight: 600;
}
.mk-brand__dot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--mk-primary);
	color: var(--mk-bg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
}
.mk-nav__links {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}
.mk-nav__links a {
	color: var(--mk-muted);
	font-size: 0.95rem;
	font-weight: 500;
	transition: color 0.2s ease;
}
.mk-nav__links a:hover { color: var(--mk-primary); }
/* Specificity must beat `.mk-nav__links a` (0,1,1) — a bare `.mk-nav__cta` (0,1,0) loses and the
   CTA inherits --mk-muted on the primary pill, which measured 2.26:1 (below the WCAG AA 4.5:1). */
.mk-nav__links a.mk-nav__cta { color: var(--mk-on-primary); }

/* ---------- Buttons ---------- */
.mk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--mk-font-body);
	font-weight: 600;
	font-size: 0.97rem;
	text-decoration: none;
	cursor: pointer;
	border: none;
	height: 52px;
	padding: 0 1.7rem;
	border-radius: 999px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.mk-btn--primary {
	background: var(--mk-primary);
	color: var(--mk-on-primary);
	box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--mk-primary) 75%, transparent);
}
.mk-btn--primary:hover {
	transform: translateY(-2px);
	background: color-mix(in srgb, var(--mk-primary) 88%, black);
}
.mk-btn--accent {
	background: var(--mk-accent);
	color: var(--mk-on-primary);
}
.mk-btn--accent:hover { transform: translateY(-2px); }
.mk-btn--outline {
	background: transparent;
	color: var(--mk-ink);
	border: 1.5px solid var(--mk-ink);
}
.mk-btn--outline:hover { background: var(--mk-ink); color: var(--mk-bg); }
.mk-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- Sections ---------- */
.mk-section {
	position: relative;
	padding-block: var(--mk-pad-section);
}
.mk-tone-alt { background: var(--mk-bg-alt); }

.mk-section__head {
	max-width: 40rem;
	margin: 0 0 2.8rem;
}
.mk-section__title {
	font-size: clamp(1.9rem, 4vw, 3rem);
	margin: 0;
}
.mk-section__subtext {
	color: var(--mk-muted);
	font-size: 1.1rem;
	margin: 0.9rem 0 0;
}

/* ---------- Hero ---------- */
.mk-hero {
	overflow: hidden;
	padding-block: clamp(4rem, 9vw, 7rem);
}
.mk-hero__inner {
	position: relative;
	z-index: 1;
}
.mk-hero__title {
	font-size: clamp(2.4rem, 6.5vw, 4.6rem);
	margin: 0 0 1rem;
}
.mk-hero__title em { font-style: italic; color: var(--mk-primary); }
.mk-hero__subtext {
	color: var(--mk-muted);
	font-size: clamp(1.1rem, 2.2vw, 1.3rem);
	max-width: 34ch;
	margin: 0 0 2rem;
}
.mk-hero__cta { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Hero with media or art-directed aside — asymmetric split (text-only hero stays centered). */
.mk-hero--media .mk-hero__inner,
.mk-hero--art .mk-hero__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(1.5rem, 5vw, 3.5rem);
	align-items: center;
}
.mk-hero__media img {
	width: 100%;
	border-radius: var(--mk-radius);
	box-shadow: var(--mk-shadow);
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

/* Art direction (no photo): a warm radial glow behind the hero + an "arch" pedestal. The
   site looks designed without stock imagery — the same trick the salon exemplar used. */
.mk-hero--art::before {
	content: "";
	position: absolute;
	inset: -25% -10% auto -10%;
	height: 90%;
	background:
		radial-gradient(55% 65% at 28% 22%, color-mix(in srgb, var(--mk-accent) 36%, transparent), transparent 60%),
		radial-gradient(50% 60% at 82% 30%, color-mix(in srgb, var(--mk-primary) 32%, transparent), transparent 60%);
	filter: blur(22px);
	z-index: 0;
}
.mk-arch {
	aspect-ratio: 3 / 4;
	border-radius: 220px 220px 28px 28px;
	background: linear-gradient(160deg, color-mix(in srgb, var(--mk-accent) 80%, var(--mk-surface)), var(--mk-primary) 75%, color-mix(in srgb, var(--mk-primary) 70%, black));
	box-shadow: var(--mk-shadow);
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding: 1.6rem;
}
.mk-arch::after {
	content: "";
	position: absolute;
	inset: 1rem;
	border: 1.5px solid color-mix(in srgb, var(--mk-on-primary) 45%, transparent);
	border-radius: 200px 200px 18px 18px;
}
.mk-arch__chip {
	position: relative;
	background: color-mix(in srgb, var(--mk-surface) 92%, transparent);
	border-radius: 14px;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	color: var(--mk-ink);
	box-shadow: var(--mk-shadow-sm);
}
.mk-arch__chip strong { display: block; font-family: var(--mk-font-heading); font-size: 1.05rem; }

/* ---------- Card grids (features / services / team / pricing / testimonials) ---------- */
.mk-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--mk-gap);
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.mk-card {
	background: var(--mk-surface);
	border: 1px solid var(--mk-line);
	border-radius: var(--mk-radius);
	padding: 1.75rem;
	box-shadow: var(--mk-shadow-sm);
	transition: transform 0.2s ease;
}
.mk-card:hover { transform: translateY(-4px); }
.mk-card__icon {
	display: inline-flex;
	font-size: 1.6rem;
	margin-bottom: 0.6rem;
}
.mk-card__title { font-size: 1.25rem; margin: 0 0 0.5rem; }
.mk-card__text { color: var(--mk-muted); margin: 0; }
.mk-card__role { color: var(--mk-accent); font-weight: 600; margin: 0 0 0.5rem; }

/* Card imagery (features/services with an image render as media cards). */
.mk-card__img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: calc(var(--mk-radius) - 6px);
	margin: -0.25rem 0 1rem;
	display: block;
}
.mk-cards--media .mk-card { padding: 1rem; }

/* ---------- Editorial menu (list layout for services/features) ---------- */
.mk-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 3.5rem;
}
.mk-menu__row {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--mk-line);
}
.mk-menu__main { display: flex; flex-direction: column; }
.mk-menu__name { font-family: var(--mk-font-heading); font-size: 1.2rem; }
.mk-menu__meta { font-size: 0.85rem; color: var(--mk-muted); margin-top: 0.15rem; }
.mk-menu__lead { flex: 1; border-bottom: 1px dotted var(--mk-line); transform: translateY(-4px); }
.mk-menu__price { font-weight: 700; color: var(--mk-primary); white-space: nowrap; }

/* ---------- Team avatars ---------- */
.mk-card--team { text-align: left; }
.mk-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(150deg, var(--mk-accent), var(--mk-primary));
	color: var(--mk-on-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--mk-font-heading);
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

/* ---------- Pricing ---------- */
.mk-card--price {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.mk-card--featured {
	border-color: var(--mk-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--mk-primary) 30%, transparent), var(--mk-shadow);
}
.mk-card__price {
	font-family: var(--mk-font-heading);
	font-size: 2.1rem;
	font-weight: 700;
	color: var(--mk-primary);
	margin: 0;
}
.mk-card__features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.4rem;
	color: var(--mk-ink);
}
.mk-card__features li::before {
	content: "✓";
	color: var(--mk-accent);
	font-weight: 700;
	margin-right: 0.5rem;
}
.mk-card--price .mk-btn { margin-top: auto; }

/* ---------- Testimonials ---------- */
.mk-card--quote {
	background: var(--mk-bg-alt);
	border: none;
	border-left: 4px solid var(--mk-accent);
}
.mk-quote { margin: 0; }
.mk-quote__text { font-size: 1.15rem; margin: 0 0 1rem; quotes: "\201C" "\201D"; }
.mk-quote__author { display: flex; flex-direction: column; }
.mk-quote__name { font-weight: 600; }
.mk-quote__role { color: var(--mk-muted); font-size: 0.9rem; }

/* ---------- About / split ---------- */
.mk-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
}
.mk-about__lead { font-size: 1.2rem; color: var(--mk-ink); margin: 0.5rem 0 0; }
.mk-about__para { color: var(--mk-muted); margin: 1rem 0 0; }
.mk-about .mk-btn { margin-top: 1.5rem; }
.mk-about__card {
	background: var(--mk-surface);
	border: 1px solid var(--mk-line);
	border-radius: var(--mk-radius);
	padding: 2rem;
	box-shadow: var(--mk-shadow);
}
.mk-about__list { list-style: none; margin: 1rem 0 0; padding: 0; }
.mk-about__list li { padding: 0.7rem 0; border-bottom: 1px solid var(--mk-line); color: var(--mk-muted); }
.mk-about__list strong { color: var(--mk-ink); font-family: var(--mk-font-heading); }

/* ---------- Gallery ---------- */
.mk-gallery__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--mk-gap);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.mk-gallery__cell img,
.mk-gallery__ph {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--mk-radius);
}
.mk-gallery__ph {
	background: linear-gradient(135deg, color-mix(in srgb, var(--mk-primary) 24%, var(--mk-surface)) 0%, color-mix(in srgb, var(--mk-accent) 24%, var(--mk-surface)) 100%);
}
.mk-gallery__cap { margin: 0.6rem 0 0; color: var(--mk-muted); font-size: 0.95rem; }

/* ---------- CTA banner ---------- */
.mk-cta { background: var(--mk-primary); color: var(--mk-on-primary); text-align: center; }
.mk-cta__title { color: var(--mk-on-primary); font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 0.75rem; }
.mk-cta__subtext { color: color-mix(in srgb, var(--mk-on-primary) 85%, transparent); max-width: 50ch; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.mk-footer { background: var(--mk-ink); color: color-mix(in srgb, var(--mk-on-primary) 78%, transparent); padding-block: 3.5rem; }
.mk-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.mk-footer__brand { font-family: var(--mk-font-heading); font-weight: 700; color: var(--mk-on-primary); margin: 0 0 0.4rem; display: flex; align-items: center; gap: 0.5rem; }
.mk-footer__brand .mk-brand__dot { background: var(--mk-accent); }
.mk-footer__text { margin: 0; font-size: 0.95rem; }
.mk-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.mk-footer__links a { color: color-mix(in srgb, var(--mk-on-primary) 78%, transparent); }
.mk-footer__links a:hover { color: var(--mk-on-primary); text-decoration: underline; }

/* ---------- On-page capture form ---------- */
.mk-form-section { background: var(--mk-bg-alt); }
.mk-form { display: grid; gap: 1rem; max-width: 560px; }
.mk-field { display: grid; gap: 0.35rem; }
.mk-field label { font-weight: 600; font-size: 0.95rem; }
.mk-form input,
.mk-form textarea {
	font: inherit;
	color: var(--mk-ink);
	background: var(--mk-surface);
	border: 1.5px solid var(--mk-line);
	border-radius: var(--mk-radius-sm);
	padding: 0.75rem 0.9rem;
	width: 100%;
}
.mk-form input:focus-visible,
.mk-form textarea:focus-visible { outline: none; border-color: var(--mk-accent); box-shadow: var(--mk-focus); }
.mk-form .mk-btn { justify-self: start; }
.mk-form__status { margin: 0; font-size: 0.95rem; }
.mk-form__status--ok { color: color-mix(in srgb, var(--mk-primary) 80%, var(--mk-ink)); font-weight: 600; }
.mk-form__status--err { color: var(--mk-danger); }

/* ---------- Scroll-reveal motion ----------
   Only hides content when JS is present (.mk-js) AND the body opted in (.mk-motion); the
   script re-adds .in. No-JS visitors, crawlers, and reduced-motion users always see content. */
.mk-js .mk-motion .mk-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
/* Show rule MUST match the hide rule's specificity (0,3,0) or higher — otherwise the hide
   rule keeps winning even after JS adds .in and every revealed section stays invisible. */
.mk-js .mk-motion .mk-reveal.in { opacity: 1; transform: none; }

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

/* ---------- Archetype overrides ----------
   Fonts + palette come from the theme tokens (set per archetype by /factory-marketing). These
   classes tune shape/weight so each style reads distinctly even on the same content. */
.mk-style--bold { --mk-radius: 8px; --mk-radius-sm: 6px; }
.mk-style--bold .mk-hero__title { font-weight: 700; letter-spacing: -0.02em; }
.mk-style--bold .mk-btn { border-radius: 10px; }
.mk-style--bold .mk-tone-alt { background: var(--mk-ink); color: var(--mk-bg); }
.mk-style--bold .mk-tone-alt .mk-section__subtext,
.mk-style--bold .mk-tone-alt .mk-card__text { color: color-mix(in srgb, var(--mk-bg) 75%, transparent); }

.mk-style--minimal { --mk-radius: 10px; --mk-shadow: none; --mk-shadow-sm: none; }
.mk-style--minimal .mk-card { border: 1px solid var(--mk-line); }
.mk-style--minimal .mk-hero--art::before { opacity: 0.5; }
.mk-style--minimal .mk-eyebrow { color: var(--mk-muted); }

.mk-style--classic { --mk-radius: 6px; --mk-radius-sm: 4px; }
.mk-style--classic .mk-btn { border-radius: 6px; }
.mk-style--classic .mk-arch { border-radius: 12px; }
.mk-style--classic .mk-arch::after { border-radius: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.mk-hero--media .mk-hero__inner,
	.mk-hero--art .mk-hero__inner { grid-template-columns: 1fr; }
	.mk-hero__aside { display: none; }
	.mk-split,
	.mk-menu { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	.mk-cards { grid-template-columns: 1fr; }
	/* Keep the conversion path visible on mobile; drop the anchor links only. */
	.mk-nav__links a:not(.mk-nav__cta):not(.mk-nav__login) { display: none; }
	/* The 72px fixed height clipped the brand once the CTA pill wrapped (measured 89px of
	   content in a 72px box at 375px). Let the bar grow, and scale the brand + pill down. */
	.mk-nav__inner {
		height: auto;
		min-height: 64px;
		padding-block: 0.5rem;
		gap: 0.75rem;
	}
	.mk-brand { font-size: 1.1rem; gap: 0.5rem; }
	.mk-brand__dot { width: 26px; height: 26px; font-size: 0.8rem; }
	.mk-nav__links { gap: 0.9rem; }
	.mk-nav__links a.mk-nav__cta {
		height: 42px;
		padding: 0 1.1rem;
		font-size: 0.9rem;
		white-space: nowrap;
	}
}