/*
Theme Name: MartechChoice Child
Description: Minimal Twenty Twenty-Five child theme for MartechChoice.
Template: twentytwentyfive
Version: 1.0.0
Text Domain: martechchoice-child
*/

/* Shared tokens follow the child theme's Global Styles presets. */
:root {
	--mc-ink: var(--wp--preset--color--contrast, #111827);
	--mc-muted: var(--wp--preset--color--muted, #4b5563);
	--mc-brand: var(--wp--preset--color--brand, #4f46e5);
	--mc-brand-dark: var(--wp--preset--color--brand-dark, #3730a3);
	--mc-white: var(--wp--preset--color--base, #fff);
	--mc-surface: var(--wp--preset--color--surface, #f8fafc);
	--mc-border: var(--wp--preset--color--border, #e5e7eb);
	--mc-gutter: 32px;
	--mc-admin-offset: 0px;
}
body.admin-bar { --mc-admin-offset: 32px; }
:where(.mc-header, .mc-home, .mc-footer), :where(.mc-header, .mc-home, .mc-footer) * { box-sizing: border-box; }
:where(.mc-header, .mc-home, .mc-footer) {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--mc-ink);
	letter-spacing: normal;
}
:where(.mc-header, .mc-home, .mc-footer) :where(h1, h2, h3, p, ul, ol) { margin: 0; }
:where(.mc-header, .mc-home, .mc-footer) a { color: inherit; text-decoration: none; }
:where(.mc-header, .mc-home, .mc-footer) :where(button, input) { font: inherit; }
:where(.mc-header, .mc-home, .mc-footer) :where(a, button, input, summary):focus-visible {
	outline: 3px solid var(--mc-brand);
	outline-offset: 4px;
}
.mc-container { width: min(1200px, calc(100% - var(--mc-gutter) * 2)); margin-inline: auto; }
/* The live root is unpadded; .mc-container supplies the page gutters. */
.wp-site-blocks > .mc-home,
.wp-site-blocks > .wp-block-template-part:has(.mc-header),
.wp-site-blocks > .wp-block-template-part:has(.mc-footer) {
	margin-inline: 0;
	max-width: none;
}
.wp-site-blocks > .mc-home,
.wp-site-blocks > .wp-block-template-part:has(.mc-footer) { margin-block-start: 0; }
.wp-site-blocks > .wp-block-template-part:has(.mc-header) {
	position: sticky;
	top: var(--mc-admin-offset);
	z-index: 50;
	margin-block-start: 0;
}
.mc-header { background: var(--mc-white); border-bottom: 1px solid var(--mc-border); }
.mc-header-row { min-height: 72px; display: flex; align-items: center; gap: 24px; position: relative; }
.mc-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 750; letter-spacing: -.8px; line-height: 1.2; flex-shrink: 0; }
.mc-brand-choice { font-weight: 450; }
.mc-brand-mark { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; border: 1px solid var(--mc-brand); color: var(--mc-brand); border-radius: 8px; font-size: 20px; font-weight: 750; letter-spacing: -3px; padding-right: 3px; }
.mc-brand-mark span { transform: translateY(-2px); }
.mc-navigation { margin-left: auto; }
.mc-nav-list { display: flex; align-items: center; gap: 20px; list-style: none; padding: 0; }
.mc-nav-list > li > a, .mc-dropdown > summary { display: flex; align-items: center; min-height: 44px; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.mc-nav-list a:hover, .mc-dropdown > summary:hover { color: var(--mc-brand); }
.mc-dropdown { position: relative; }
.mc-header summary { list-style: none; cursor: pointer; }
.mc-header summary::-webkit-details-marker { display: none; }
.mc-dropdown summary > span { font-size: 18px; line-height: 1; }
.mc-dropdown[open] summary > span { transform: rotate(180deg); }
.mc-dropdown > ul { position: absolute; z-index: 2; top: calc(100% + 12px); left: -16px; min-width: 220px; padding: 8px; list-style: none; border: 1px solid var(--mc-border); border-radius: 10px; background: var(--mc-white); box-shadow: 0 8px 20px rgb(17 24 39 / 6%); }
.mc-dropdown > ul a { display: block; padding: 10px 12px; font-size: 14px; border-radius: 5px; }
.mc-dropdown > ul a:hover { background: var(--mc-surface); }
.mc-search { flex-shrink: 0; }
.mc-search > summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; }
.mc-search > summary:hover { color: var(--mc-brand); background: var(--mc-surface); }
.mc-search form { position: absolute; right: 0; top: calc(100% + 1px); z-index: 3; width: min(430px, 100%); padding: 24px; border: 1px solid var(--mc-border); background: var(--mc-white); border-radius: 0 0 10px 10px; box-shadow: 0 8px 20px rgb(17 24 39 / 6%); }
.mc-search label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.mc-search form > div { display: flex; gap: 8px; }
.mc-search input { width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--mc-border); border-radius: 6px; font-size: 15px; color: var(--mc-ink); background: var(--mc-white); }
.mc-search button { padding: 10px 14px; border: 0; border-radius: 6px; color: var(--mc-white); background: var(--mc-brand); font-size: 14px; cursor: pointer; }
.mc-search button:hover { background: var(--mc-brand-dark); }
.mc-menu-toggle { display: none; background: none; border: 0; color: var(--mc-ink); cursor: pointer; width: 44px; height: 44px; padding: 11px; }
.mc-skip { position: absolute; left: 18px; top: -120px; padding: 12px 20px; z-index: 5; background: var(--mc-white); border: 2px solid var(--mc-brand); border-radius: 6px; }
.mc-skip:focus { top: 8px; }
.mc-home h1, .mc-home h2, .mc-home h3 { font-weight: 700; letter-spacing: -.035em; color: var(--mc-ink); text-wrap: balance; }
.mc-home h1 { font-size: clamp(36px, 4.5vw, 52px); line-height: 1.1; max-width: 850px; }
.mc-home h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.2; }
.mc-home h3 { font-size: 24px; line-height: 1.3; letter-spacing: -.025em; }
.mc-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--mc-muted); line-height: 1.5; }
.mc-hero { min-height: 510px; display: flex; align-items: center; padding-block: 80px; }
.mc-hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.mc-hero-eyebrow > span { width: 24px; height: 2px; background: var(--mc-brand); }
.mc-hero h1 > span { color: var(--mc-brand); }
.mc-hero-description { max-width: 630px; margin-top: 24px; color: var(--mc-muted); font-size: 19px; line-height: 1.65; }
.mc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.mc-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 22px; border: 1px solid transparent; border-radius: 8px; font-size: 15px; font-weight: 600; transition: background-color .15s, border-color .15s; }
.mc-button-primary { background: var(--mc-brand); color: var(--mc-white) !important; }
.mc-button-primary:hover { background: var(--mc-brand-dark); }
.mc-button-secondary { border-color: var(--mc-border); background: var(--mc-white); }
.mc-button-secondary:hover { border-color: var(--mc-ink); }
.mc-popular { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 14px; }
.mc-popular > span { color: var(--mc-muted); }
.mc-popular > a { text-decoration: underline; text-decoration-color: var(--mc-border); text-underline-offset: 4px; padding-block: 8px; }
.mc-popular > a:hover { color: var(--mc-brand); }
.mc-section { padding-block: 88px; scroll-margin-top: calc(96px + var(--mc-admin-offset)); }
.mc-tint { background: var(--mc-surface); border-block: 1px solid var(--mc-border); }
.mc-section-heading { margin-bottom: 32px; }
.mc-section-heading .mc-eyebrow { margin-bottom: 12px; }
.mc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mc-category-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mc-card { border: 1px solid var(--mc-border); border-radius: 12px; background: var(--mc-white); min-width: 0; transition: border-color .15s, box-shadow .15s; overflow-wrap: anywhere; }
.mc-card:hover, .mc-card:focus-within { border-color: var(--mc-brand); box-shadow: 0 4px 14px rgb(17 24 39 / 4%); }
.mc-category { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
.mc-category-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--mc-brand); background: var(--mc-surface); border: 1px solid var(--mc-border); border-radius: 8px; margin-bottom: 24px; }
.mc-category > p { color: var(--mc-muted); margin-block: 12px 24px; font-size: 16px; }
.mc-text-link { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 650; color: var(--mc-brand) !important; min-height: 44px; margin-top: auto; }
.mc-text-link:hover { text-decoration: underline; }
.mc-article { display: flex; flex-direction: column; }
.mc-card-image { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px 11px 0 0; border-bottom: 1px solid var(--mc-border); }
.mc-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mc-card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; flex: 1; }
.mc-card-body .mc-eyebrow { color: var(--mc-brand); margin-bottom: 12px; }
.mc-card-body h3 { font-size: 23px; }
.mc-card-body h3 a:hover { text-decoration: underline; }
.mc-excerpt { color: var(--mc-muted); font-size: 16px; margin-block: 14px 20px !important; }
.mc-methodology { border-top: 1px solid var(--mc-border); }
.mc-methodology-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 44px; }
.mc-methodology-intro .mc-eyebrow { margin-bottom: 14px; }
.mc-methodology-intro > p { color: var(--mc-muted); max-width: 580px; }
.mc-method-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; gap: 32px; }
.mc-method-steps > li { border-top: 2px solid var(--mc-border); padding-top: 20px; }
.mc-step-number { display: block; color: var(--mc-brand); font-size: 13px; font-weight: 650; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.mc-method-steps h3 { font-size: 21px; margin-bottom: 10px; }
.mc-method-steps p { font-size: 15px; color: var(--mc-muted); }
.mc-methodology-link { margin-top: 28px; }
.mc-footer { background: var(--mc-ink); color: #cbd5e1; padding-block: 64px 24px; }
.mc-footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.mc-footer-brand { flex: 1 1 250px; }
.mc-footer .mc-brand { color: var(--mc-white); font-size: 24px; }
.mc-footer-brand p { margin-top: 18px; font-size: 15px; line-height: 1.7; }
.mc-footer nav { flex: 0 1 150px; }
.mc-footer h2 { color: var(--mc-white); font-size: 14px; line-height: 1.5; letter-spacing: normal; font-weight: 650; margin-bottom: 14px; }
.mc-footer ul { padding: 0; list-style: none; }
.mc-footer li a { display: inline-flex; align-items: center; padding-block: 9px; min-height: 44px; font-size: 14px; }
.mc-footer a:hover { color: var(--mc-white); text-decoration: underline; }
.mc-footer a:focus-visible { outline-color: #a5b4fc; }
.mc-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #374151; font-size: 13px; }
.mc-footer-bottom > a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
@media (max-width: 1000px) {
	:root { --mc-gutter: 24px; }
	.mc-header-row { min-height: 64px; flex-wrap: wrap; gap: 0 12px; }
	.mc-brand { margin-right: auto; }
	.mc-enhanced .mc-menu-toggle { display: block; }
	.mc-search { order: 2; }
	.mc-menu-toggle { order: 1; }
	.mc-navigation { order: 3; flex-basis: 100%; margin: 0; padding-block: 12px 20px; max-height: calc(100dvh - 64px - var(--mc-admin-offset)); overflow-y: auto; }
	.mc-enhanced .mc-navigation { display: none; }
	.mc-enhanced .mc-navigation.is-open { display: block; }
	.mc-nav-list { display: block; }
	.mc-nav-list > li > a, .mc-dropdown > summary { font-size: 16px; min-height: 48px; padding-inline: 8px; }
	.mc-dropdown > summary { justify-content: space-between; }
	.mc-dropdown > ul { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--mc-border); border-radius: 0; padding: 0 0 0 12px; margin: 4px 8px 8px; }
	.mc-dropdown > ul a { min-height: 44px; }
	.mc-search form { top: 64px; }
	.mc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mc-methodology-intro { grid-template-columns: 1fr; gap: 20px; }
	.mc-method-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mc-footer-grid { gap: 32px; }
}
@media (max-width: 782px) { body.admin-bar { --mc-admin-offset: 46px; } }
@media (max-width: 600px) {
	:root { --mc-gutter: 18px; }
	body.admin-bar { --mc-admin-offset: 0px; }
	.mc-header-row { gap: 0 4px; }
	.mc-brand { font-size: 19px; gap: 8px; }
	.mc-brand-mark { width: 29px; height: 29px; font-size: 18px; }
	.mc-hero { min-height: 0; padding-block: 60px 64px; }
	.mc-hero h1 { max-width: 500px; }
	.mc-hero-description { font-size: 17px; margin-top: 20px; }
	.mc-hero-eyebrow { font-size: 10px; letter-spacing: .1em; margin-bottom: 20px; }
	.mc-section { padding-block: 60px; }
	.mc-grid, .mc-category-grid:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.mc-category, .mc-card-body { padding: 24px; }
	.mc-methodology-intro { margin-bottom: 32px; }
	.mc-method-steps { gap: 28px 20px; }
	.mc-method-steps h3 { font-size: 19px; }
	.mc-method-steps p { font-size: 14px; }
	.mc-footer { padding-top: 48px; }
	.mc-footer-brand { flex-basis: 100%; }
	.mc-footer nav { flex-basis: calc(50% - 16px); }
	.mc-footer-bottom { margin-top: 32px; }
}
@media (max-width: 360px) {
	.mc-brand-mark { display: none; }
	.mc-method-steps { grid-template-columns: minmax(0, 1fr); }
	.mc-home h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
	.mc-card, .mc-button { transition: none; }
}
