/* Mays Consulting Group, public site */

:root {
  --ink: #1C1A1F;
  --body: #45414A;
  --muted: #5C5760;
  --wash: #F5F3F2;
  --wash-line: #E8E3E1;
  --line: #E3DEDC;
  --line-2: #DDD6D4;
  --maroon: #7A1F2E;
  --maroon-dark: #5E1622;
  --band: #26232B;
  --footer: #1C1A1F;
}

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; }
.mcg { font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: #FFFFFF; font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.mcg *, .mcg *::before, .mcg *::after { box-sizing: border-box; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.mcg h1, .mcg h2, .mcg h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
.mcg h1 { font-size: clamp(40px, 5.2vw, 64px); }
.mcg h2 { font-size: clamp(30px, 3.4vw, 44px); }
.mcg h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; }
.mcg p, .mcg ul, .mcg ol { margin: 0; }
.mcg figure { margin: 0; }
a { color: var(--maroon); }
a:hover { color: var(--maroon-dark); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #C98591; outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: #FFFFFF; color: var(--ink); padding: 10px 16px; z-index: 10; font-family: 'Public Sans', sans-serif; font-weight: 700; }
.skip:focus { left: 8px; }

.lede { font-size: 21px; line-height: 1.55; color: var(--body); max-width: 34em; }
.muted { color: var(--muted); }
.serif { font-family: 'Literata', Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; }
.num { font-variant-numeric: tabular-nums; }
.plain { text-decoration: none; font-weight: 600; }
.small { font-size: 16px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--maroon); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 0; font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: 0.005em; text-decoration: none; border: 1.5px solid transparent; font-family: inherit; cursor: pointer; }
.btn-primary { background: var(--maroon); color: #FFFFFF; }
.btn-primary:hover { background: var(--ink); color: #FFFFFF; }
.btn-quiet { border-color: transparent; background: none; color: var(--ink); padding: 0 2px; text-decoration: underline; text-decoration-color: var(--maroon); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.btn-quiet:hover { color: var(--maroon); text-decoration-thickness: 3px; }
.btn-light { border-color: transparent; color: #FFFFFF; padding: 0 2px; text-decoration: underline; text-decoration-color: #C98591; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.btn-light:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Layout helpers */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 40px; }
.section { padding-block: 88px; }
.band { background: var(--wash); border-block: 1px solid var(--wash-line); }
.rule-top { border-top: 1px solid var(--line); }
.photo { width: 100%; object-fit: cover; border-radius: 8px; }
.caption { font-size: 15px; }
.fig { display: flex; flex-direction: column; gap: 10px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; }
.brand span { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; line-height: 1.1; }
.brand:hover { color: var(--ink); }
.header-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; }
.navlink { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.navlink:hover, .navlink[aria-current="page"] { border-bottom-color: var(--maroon); color: var(--ink); }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.header-actions a { font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); }
.header-actions a:hover { color: var(--maroon); }
.menu-btn { display: none; font: inherit; font-size: 16px; font-weight: 700; min-height: 44px; padding: 0 16px; background: #FFFFFF; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 0; cursor: pointer; }

/* Dark CTA band */
.band-dark { background: var(--band); color: #FFFFFF; }
.band-dark h2 { color: #FFFFFF; }
.cta-row { padding-block: 80px; gap: 32px 56px; }
.cta-row > .cta-actions { flex: 0 1 420px; }
.on-dark { color: #D9D3D1; }

/* Footer */
.footer { background: var(--footer); color: #D9D3D1; font-size: 16px; }
.footer a { color: #D9D3D1; text-decoration: none; }
.footer a:hover { color: #FFFFFF; }
.footer-grid { padding-block: 64px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { width: 44px; height: 44px; background: #FFFFFF; border-radius: 50%; }
.footer-logo span { color: #FFFFFF; font-weight: 800; line-height: 1.2; }
.footer-tagline { color: #FFFFFF; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-head { color: #FFFFFF; font-weight: 700; }
.footer-base { border-top: 1px solid #3A363E; padding-block: 20px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* Home: school day */
.day { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px 24px; }
.day li { position: relative; border-top: 2px solid #D6CECC; padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.day li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--maroon); }
.day li:last-child::before { background: var(--ink); }
.day .time { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.day .what { font-size: 16px; line-height: 1.5; }

/* Client logos */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logo-cell { background: #FFFFFF; min-height: 150px; padding: 22px 16px 14px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; }
.logo-cell .logo-box { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.logo-cell img { max-width: 80%; object-fit: contain; }
.logo-cell span { font-size: 13px; text-align: center; line-height: 1.3; color: var(--muted); }
.logo-cell.cta { padding: 22px 20px; align-items: flex-start; justify-content: center; gap: 6px; text-decoration: none; }
.logo-cell.cta b { font-weight: 700; color: var(--ink); font-size: 17px; line-height: 1.3; }
.logo-cell.cta span { font-size: 15px; color: var(--maroon); font-weight: 600; text-align: left; }

/* Ruled lists */
.ruled > * { padding-block: 20px; border-top: 1px solid var(--line); }
.ruled > *:last-child { border-bottom: 1px solid var(--line); }
.ruled.soft > * { border-color: var(--line-2); }
.ruled .big { font-size: 21px; font-weight: 500; line-height: 1.4; }
.ruled .mid { font-size: 19px; font-weight: 600; }

/* Cards with a top rule */
.ruled-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; align-content: start; }
.topline { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--ink); padding-top: 18px; }
.topline p { font-size: 17px; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--maroon); padding-top: 20px; }
.stat .figure { font-size: clamp(44px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span:last-child { font-size: 17px; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.steps .n { font-family: 'Literata', Georgia, serif; font-style: italic; font-size: 56px; line-height: 1; color: var(--maroon); }
.steps p { font-size: 17px; }
.steps .timing { font-size: 15px; font-weight: 600; }

/* Offer box */
.offer { background: var(--wash); border: 1px solid var(--wash-line); border-radius: 10px; padding: clamp(28px, 4vw, 56px); gap: 48px; }
.offer ul.bullets { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }

/* Quote */
.quote { padding-block: 80px; display: flex; flex-direction: column; gap: 24px; max-width: 980px; }
.quote blockquote { margin: 0; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.35; color: var(--ink); }
.quote figcaption { font-size: 16px; }

/* Services */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 32px; border: 1px solid var(--line-2); border-radius: 10px; background: #FFFFFF; }
.plan h3 { font-size: 24px; letter-spacing: -0.015em; line-height: 1.2; }
.plan ul, .area ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 17px; }
.plan .one { font-size: 19px; font-weight: 500; }
.plan .who { font-size: 17px; }
.def-row { display: flex; flex-wrap: wrap; gap: 6px 32px; }
.def-row b { flex: 0 0 240px; font-weight: 700; font-size: 19px; }
.def-row span { flex: 1 1 280px; font-size: 17px; }

/* K-12 */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px 56px; }
.area { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--ink); padding-top: 20px; }
.area h3 { font-size: 23px; letter-spacing: -0.015em; line-height: 1.2; }
.area ul { color: var(--body); }
.area p { font-size: 17px; }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.check-list li { padding-block: 16px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; }
.check-list li:last-child { border-bottom: 1px solid var(--line-2); }
.check-list b { font-weight: 700; }
.check-list span { font-size: 16px; color: var(--muted); }
.faq { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-2); }
.qa { display: flex; flex-wrap: wrap; gap: 8px 48px; padding-block: 24px; border-top: 1px solid var(--line-2); }
.qa > h3 { flex: 1 1 340px; font-size: 20px; }
.qa > p { flex: 1.3 1 420px; min-width: 0; color: var(--body); }

/* Case studies */
.case-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.case-head img { height: 64px; width: auto; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px 48px; }
.step { display: flex; flex-direction: column; gap: 6px; }
.step > b { font-size: 15px; font-weight: 700; color: var(--maroon); }
.step ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 28px; }
.case { display: flex; flex-direction: column; gap: 20px; padding: 36px; border: 1px solid var(--line-2); border-radius: 10px; background: #FFFFFF; }
.case h3 { font-size: 24px; letter-spacing: -0.015em; line-height: 1.2; }
.case .step p { font-size: 17px; color: var(--muted); }
.case-stats { display: flex; flex-wrap: wrap; gap: 24px 40px; border-top: 1px solid var(--line-2); padding-top: 20px; }
.case-stats div { display: flex; flex-direction: column; }
.case-stats b { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.case-stats span { font-size: 15px; color: var(--muted); }

/* Resources */
.grow-card { background: var(--wash); border: 1px solid var(--wash-line); border-top: 4px solid var(--maroon); border-radius: 12px; padding: clamp(28px, 4vw, 56px); gap: 40px 64px; }
.grow-mark { flex: 0 1 300px !important; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.word { display: inline-flex; align-items: center; font-weight: 900; letter-spacing: -0.035em; line-height: 1; font-size: 76px; }
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.doc { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line-2); border-radius: 10px; background: #FFFFFF; text-decoration: none; color: var(--ink); }
.doc:hover { border-color: #9E8F92; color: var(--ink); }
.doc h3 { font-size: 20px; }
.doc .kind { font-size: 13px; font-weight: 600; color: var(--muted); }
.doc .go { font-size: 15px; font-weight: 600; color: var(--maroon); margin-top: auto; }
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; flex-wrap: wrap; gap: 8px 40px; padding-block: 24px; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.news-item:last-child { border-bottom: 1px solid var(--line-2); }
.news-item:hover { color: var(--ink); }
.news-item:hover .t { color: var(--maroon); }
.news-item .d { flex: 0 0 160px; font-size: 16px; color: var(--muted); }
.news-item .b { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.news-item .t { font-size: 22px; font-weight: 700; line-height: 1.3; }
.news-item .s { font-size: 16px; color: var(--muted); }

/* About */
.row { display: flex; flex-wrap: wrap; gap: 8px 40px; padding-block: 22px; border-top: 1px solid var(--line-2); }
.row:last-child { border-bottom: 1px solid var(--line-2); }
.row > .when { flex: 0 0 170px; font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }
.row > .what { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px; }

/* Team */
.lead-person { align-items: flex-start; gap: 48px 64px; padding-bottom: 72px; border-bottom: 1px solid var(--line); }
.lead-person > img { flex: 0.7 1 300px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.role { font-size: 15px; font-weight: 600; color: var(--maroon); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 48px 32px; padding-top: 72px; }
.person { display: flex; flex-direction: column; gap: 12px; }
.person h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.2; }
.person > img, .person .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: #EDEAE9; }
.person .ph { display: flex; align-items: center; justify-content: center; background: var(--wash); }
.person .ph img { width: 55%; height: auto; }
.person .role { margin-top: 6px; }
.person a { font-size: 15px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.aside-line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; }
.aside-line img { width: 72px; height: 72px; object-fit: cover; object-position: 50% 20%; border-radius: 50%; }
.aside-line p { font-size: 16px; flex: 1 1 200px; }

/* Contact */
.mcg .page-contact h2, .page-contact .mcg h2 { font-size: clamp(26px, 2.8vw, 34px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 32px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts .k { font-size: 15px; color: var(--muted); }
.facts .v { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.next-steps { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.next-steps li { display: flex; gap: 16px; align-items: baseline; }
.next-steps .n { font-family: 'Literata', Georgia, serif; font-style: italic; font-size: 30px; color: var(--maroon); line-height: 1; flex: 0 0 24px; }
.form { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; background: var(--wash); border: 1px solid var(--wash-line); border-radius: 10px; padding: clamp(24px, 3.5vw, 44px); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 17px; color: var(--ink); background: #FFFFFF; border: 1.5px solid #CFC8C6; border-radius: 6px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid #E7C9CE; border-color: var(--maroon); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 16px; font-weight: 600; }
.form-status.ok { color: #1F5E3A; }
.form-status.err { color: #9B1C1C; }

/* Per-page heading sizes, matching the approved design */
.page-cases .mcg h2, .page-resources .mcg h2 { font-size: clamp(28px, 3.2vw, 40px); }


/* Long text pages (privacy, news) */
.mcg .page-doc h1, .page-doc .mcg h1 { font-size: clamp(38px, 4.6vw, 56px); }
.doc-layout { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.toc { flex: 0 1 260px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; padding-top: 6px; }
.toc a { text-decoration: none; color: var(--body); }
.toc a:hover { color: var(--maroon); }
.toc b { color: var(--ink); }
.prose { flex: 999 1 560px; min-width: 0; max-width: 46em; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 26px !important; letter-spacing: -0.015em; line-height: 1.2; margin-top: 30px !important; }
.prose h2:first-child { margin-top: 0 !important; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 15px; background: #F2EFEE; padding: 1px 6px; border-radius: 4px; }

.empty-note { padding: 32px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--muted); }

@media (max-width: 900px) {
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; padding: 0 14px; }
  .header-row { gap: 12px 12px; }
  .brand { gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 16px; }
  .header-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 0 12px; }
  .header-menu.open { display: flex; }
  .main-nav { flex-direction: column; align-items: flex-start; gap: 4px; }
  .navlink { font-size: 18px; }
  .no-js .header-menu { display: flex; }
  .no-js .menu-btn { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .mcg { font-size: 17px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: 64px; }
  .lede { font-size: 19px; }
  .case { padding: 24px; }
  .plan { padding: 24px; }
  .split > * { flex-basis: 100% !important; }
  .word { font-size: 60px; }
}

.facts > div:first-child { grid-column: 1 / -1; }
