/*
Theme Name: Motorcycle Copilot
Theme URI: https://motorcyclecopilot.com
Author: pixelfat
Author URI: https://pixelfat.com
Description: Block theme for the Motorcycle Copilot website. Daylight style by default, with a Night ride style variation (Appearance › Editor › Styles). Section patterns for hero, features, join steps, data, privacy and guides.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: motorcycle-copilot
*/

/* ---------- Sections ---------- */
.mc-section {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}
.mc-section--tight { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.mc-surface {
	background: var(--wp--preset--color--surface);
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.mc-band {
	background: var(--wp--preset--color--band);
	color: var(--wp--preset--color--band-text);
}
.mc-band p { color: var(--wp--preset--color--band-muted); }
.mc-band h1, .mc-band h2, .mc-band h3 { color: var(--wp--preset--color--band-text); }
.mc-band a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--accent); }

/* ---------- Text helpers ---------- */
.mc-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-ink);
	margin: 0;
}
.mc-band .mc-eyebrow { color: var(--wp--preset--color--accent); }
.mc-pill {
	display: inline-block;
	background: var(--wp--preset--color--accent-tint);
	color: var(--wp--preset--color--accent-ink);
	padding: 6px 14px;
	border-radius: var(--wp--custom--radius--button);
	font-size: 14px;
	font-weight: 600;
	margin: 0;
	width: fit-content;
}
.mc-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); max-width: 38ch; }
.mc-muted, .mc-card p { color: var(--wp--preset--color--muted); }
.mc-checks { color: var(--wp--preset--color--muted); font-size: 15px; }
.mc-intro { max-width: 640px; }

/* ---------- Cards ---------- */
.mc-card, .wp-block-group.is-style-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	padding: 28px;
}
.mc-card > * { margin-block: 0; }
.mc-card > * + * { margin-top: 10px; }
.mc-card h3 { font-size: 22px; }
.mc-card .wp-block-buttons { margin-top: auto; padding-top: 8px; }
.mc-card { display: flex; flex-direction: column; }
.mc-feature > * { margin-block: 0; }
.mc-feature > * + * { margin-top: 8px; }
.mc-feature h3 { font-size: 23px; }

/* ---------- Media placeholders (replace with an Image block) ---------- */
.mc-placeholder {
	aspect-ratio: 5 / 4;
	border: 1px dashed var(--wp--preset--color--line);
	background: color-mix(in srgb, var(--wp--preset--color--line) 55%, var(--wp--preset--color--base));
	border-radius: var(--wp--custom--radius--media);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
}
.mc-placeholder p { font-family: var(--wp--preset--font-family--mono); font-size: 13px; color: var(--wp--preset--color--muted); margin: 0; }
.mc-band .mc-placeholder { background: #05080a; border-color: #2a3b44; }
.mc-band .mc-placeholder p { color: #6b838e; }
.mc-media img { border-radius: var(--wp--custom--radius--media); width: 100%; height: auto; display: block; }

/* ---------- Co-driver call-out ---------- */
.mc-callout {
	background: var(--wp--preset--color--band);
	color: var(--wp--preset--color--band-text);
	border-radius: 14px;
	padding: 18px 22px;
	box-shadow: 0 12px 32px rgba(11, 18, 22, 0.18);
	max-width: 380px;
	position: relative;
}
.mc-hero .mc-callout { margin-left: auto; margin-right: 24px; margin-top: -64px !important; }
.mc-callout > * { margin: 0; }
.mc-callout > * + * { margin-top: 6px; }
.mc-callout__label { font-family: var(--wp--preset--font-family--mono); font-size: 12px; letter-spacing: 0.12em; color: #8ea3ac; }
.mc-callout__text { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--wp--preset--color--accent); }

/* ---------- Join steps ---------- */
.mc-step-num {
	width: 40px; height: 40px;
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--accent-tint);
	color: var(--wp--preset--color--accent-ink);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700; font-size: 18px;
}
.mc-step-title { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 22px; color: var(--wp--preset--color--contrast) !important; }
.mc-card .wp-block-button, .mc-card .wp-block-button__link { width: 100%; text-align: center; }
.mc-qr-row { display: flex; align-items: center; gap: 12px; margin-top: 12px !important; }
.mc-qr-row .wp-block-image, .mc-qr-row figure { margin: 0; flex: 0 0 96px; }
.mc-qr-row img { width: 96px; height: 96px; border-radius: 6px; background: #fff; padding: 4px; }
.mc-qr-row p { font-size: 14px; line-height: 1.4; margin: 0; }
@media (max-width: 781px), (pointer: coarse) { .mc-qr-row { display: none; } }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 25%, transparent);
	padding: 13px 25px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* ---------- Header & footer ---------- */
.mc-header {
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.mc-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--contrast); }
.mc-footer {
	background: var(--wp--preset--color--surface);
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

/* ---------- Long-form pages ---------- */
.mc-back { font-size: 15px; margin-bottom: 0; }
.mc-prose h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2em; }

/* ---------- Columns gap on hero ---------- */
.mc-hero.wp-block-columns { gap: 56px; align-items: center; }

/* ---------- FAQ ---------- */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 18px 0; }
.wp-block-details summary { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 20px; cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: 8px; }
.wp-block-details p { color: var(--wp--preset--color--muted); margin: 0; }

/* ---------- Layout fixes ---------- */
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.mc-grid.wp-block-group { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)) !important; }
.mc-intro.wp-block-group { max-width: var(--wp--style--global--wide-size) !important; }
.mc-intro > * { max-width: 640px; }
.mc-prose > .mc-lead { max-width: var(--wp--style--global--content-size) !important; }
