/*
Theme Name: MCM Home Maintenance
Theme URI: https://mcmhomemaintenance.com
Author: MCM Home Maintenance
Description: Conversion-focused local contractor website for painting, repairs, remodeling, rental turns, and home-care memberships.
Version: 1.5.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: mcm-home-maintenance
*/

:root {
  --navy: #071c43;
  --navy-2: #0d2c60;
  --blue: #174f9f;
  --gold: #f3b51b;
  --gold-dark: #d89700;
  --ink: #152133;
  --muted: #5f6b7a;
  --paper: #ffffff;
  --soft: #f3f6fa;
  --line: #dbe2ea;
  --success: #177044;
  --shadow: 0 18px 45px rgba(7, 28, 67, .12);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }
.mcmhm-wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.mcmhm-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.mcmhm-section--soft { background: var(--soft); }
.mcmhm-section--navy { background: var(--navy); color: #fff; }
.mcmhm-eyebrow { margin: 0 0 .65rem; color: var(--blue); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.mcmhm-section--navy .mcmhm-eyebrow, .mcmhm-hero .mcmhm-eyebrow { color: var(--gold); }
.mcmhm-title { margin: 0; max-width: 760px; font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.045em; font-weight: 900; }
.mcmhm-section-title { margin: 0 0 .8rem; max-width: 850px; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 900; }
.mcmhm-lead { max-width: 760px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.mcmhm-section--navy .mcmhm-lead { color: rgba(255,255,255,.76); }
.mcmhm-grid { display: grid; gap: 1.35rem; }
.mcmhm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mcmhm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mcmhm-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.65rem; }

.mcmhm-button, button, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .8rem 1.25rem; border: 2px solid var(--gold); border-radius: 10px; background: var(--gold); color: var(--navy); font-weight: 900; line-height: 1.1; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.mcmhm-button:hover, button:hover, input[type="submit"]:hover { transform: translateY(-2px); background: #ffd15a; border-color: #ffd15a; color: var(--navy); box-shadow: 0 10px 25px rgba(243,181,27,.25); }
.mcmhm-button--navy { border-color: var(--navy); background: var(--navy); color: #fff; }
.mcmhm-button--navy:hover { border-color: var(--navy-2); background: var(--navy-2); color: #fff; }
.mcmhm-button--outline { border-color: currentColor; background: transparent; color: #fff; }
.mcmhm-button--outline:hover { border-color: #fff; background: #fff; color: var(--navy); }

.mcmhm-topbar { padding: .48rem 1rem; background: var(--navy); color: #fff; text-align: center; font-size: .86rem; font-weight: 800; }
.mcmhm-topbar a { color: #fff; }
.mcmhm-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.mcmhm-header__inner { min-height: 84px; display: flex; align-items: center; gap: 1.6rem; }
.mcmhm-brand { display: flex; align-items: center; flex: 0 0 auto; color: var(--navy); text-decoration: none; }
.mcmhm-brand img { width: 155px; height: 68px; object-fit: contain; }
.mcmhm-brand__text { display: none; font-weight: 950; line-height: 1; }
.mcmhm-nav { margin-left: auto; }
.mcmhm-nav ul { display: flex; align-items: center; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.mcmhm-nav a { color: var(--ink); font-size: .9rem; font-weight: 850; text-decoration: none; }
.mcmhm-nav a:hover, .mcmhm-nav .current-menu-item > a { color: var(--blue); }
.mcmhm-menu-toggle { display: none; min-height: 44px; padding: .55rem .7rem; border-radius: 8px; }

.mcmhm-hero { position: relative; overflow: hidden; background: linear-gradient(110deg, var(--navy) 0%, var(--navy) 52%, #0f3975 100%); color: #fff; }
.mcmhm-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,28,67,.1), rgba(7,28,67,0)); pointer-events: none; }
.mcmhm-hero__inner { position: relative; z-index: 1; min-height: 660px; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3.5rem, 7vw, 6rem); }
.mcmhm-hero .mcmhm-lead { color: rgba(255,255,255,.8); }
.mcmhm-hero__visual { position: relative; }
.mcmhm-hero__visual img { display: block; width: 100%; aspect-ratio: 1.08; object-fit: cover; border: 10px solid rgba(255,255,255,.12); border-radius: 26px; box-shadow: 0 25px 60px rgba(0,0,0,.3); }
.mcmhm-hero__badge { position: absolute; right: -1rem; bottom: 1.4rem; max-width: 230px; padding: 1rem 1.2rem; border-radius: 14px; background: var(--gold); color: var(--navy); font-weight: 900; box-shadow: var(--shadow); }
.mcmhm-trust { display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; margin-top: 1.8rem; color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 750; }
.mcmhm-trust span::before { content: "✓"; margin-right: .4rem; color: var(--gold); }

.mcmhm-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 25px rgba(7,28,67,.06); }
.mcmhm-card__image { width: 100%; aspect-ratio: 1.45; object-fit: cover; display: block; }
.mcmhm-card__body { padding: 1.55rem; }
.mcmhm-card h3 { margin: 0 0 .45rem; color: var(--navy); font-size: 1.45rem; line-height: 1.15; }
.mcmhm-card p { margin: 0 0 1rem; color: var(--muted); }
.mcmhm-card a { font-weight: 850; }
.mcmhm-card--accent { border: 0; background: var(--gold); }
.mcmhm-card--accent p { color: rgba(7,28,67,.78); }
.mcmhm-number { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 900; }
.mcmhm-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.mcmhm-split img { display: block; width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.mcmhm-checks { padding: 0; list-style: none; }
.mcmhm-checks li { position: relative; margin: .7rem 0; padding-left: 1.7rem; }
.mcmhm-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 950; }
.mcmhm-statbar { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: 18px; background: #fff; box-shadow: var(--shadow); transform: translateY(-42px); }
.mcmhm-stat { padding: 1.45rem; border-right: 1px solid var(--line); text-align: center; }
.mcmhm-stat:last-child { border: 0; }
.mcmhm-stat strong { display: block; color: var(--navy); font-size: 1.05rem; }
.mcmhm-stat span { color: var(--muted); font-size: .88rem; }
.mcmhm-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mcmhm-gallery figure { margin: 0; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); }
.mcmhm-gallery img { display: block; width: 100%; aspect-ratio: 1.2; object-fit: cover; transition: transform .25s ease; }
.mcmhm-gallery figure:hover img { transform: scale(1.025); }
.mcmhm-quote { padding: 2rem; border-left: 5px solid var(--gold); border-radius: 0 18px 18px 0; background: #fff; box-shadow: var(--shadow); }
.mcmhm-quote blockquote { margin: 0; font-size: 1.07rem; }
.mcmhm-quote cite { display: block; margin-top: 1rem; color: var(--navy); font-style: normal; font-weight: 900; }
.mcmhm-cta { position: relative; overflow: hidden; padding: clamp(2rem, 6vw, 4.5rem); border-radius: 26px; background: var(--navy); color: #fff; }
.mcmhm-cta::after { content: ""; position: absolute; right: -90px; bottom: -130px; width: 330px; height: 330px; border: 55px solid rgba(243,181,27,.18); border-radius: 50%; }
.mcmhm-cta > * { position: relative; z-index: 1; }
.mcmhm-cta p { max-width: 700px; color: rgba(255,255,255,.76); }

.mcmhm-page-hero { padding: clamp(3.5rem, 7vw, 6rem) 0; background: linear-gradient(135deg, var(--soft), #fff); text-align: center; }
.mcmhm-page-hero .mcmhm-section-title, .mcmhm-page-hero .mcmhm-lead { margin-inline: auto; }
.mcmhm-content { width: min(calc(100% - 2rem), 840px); margin-inline: auto; padding: 4rem 0 6rem; }
.mcmhm-content h2, .mcmhm-content h3 { color: var(--navy); line-height: 1.15; }
.mcmhm-note { padding: 1rem 1.1rem; border-left: 4px solid var(--gold); background: var(--soft); color: var(--muted); }

.mcmhm-form { padding: clamp(1.4rem, 4vw, 2.3rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.mcmhm-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mcmhm-field { margin-bottom: 1rem; }
.mcmhm-field--full { grid-column: 1 / -1; }
.mcmhm-field label { display: block; margin-bottom: .35rem; color: var(--ink); font-size: .88rem; font-weight: 850; }
.mcmhm-field input, .mcmhm-field select, .mcmhm-field textarea { width: 100%; min-height: 50px; padding: .72rem .85rem; border: 1px solid #bec8d4; border-radius: 9px; background: #fff; color: var(--ink); }
.mcmhm-field textarea { min-height: 135px; resize: vertical; }
.mcmhm-field input:focus, .mcmhm-field select:focus, .mcmhm-field textarea:focus { outline: 3px solid rgba(23,79,159,.15); border-color: var(--blue); }
.mcmhm-consent { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); font-size: .82rem; }
.mcmhm-consent input { width: auto; min-height: 0; margin-top: .25rem; }
.mcmhm-alert { margin: 1rem 0; padding: 1rem; border: 1px solid #a7d0b6; border-radius: 10px; background: #eef8f1; }
.mcmhm-alert--error { border-color: #e1aaa4; background: #fff0ee; }
.mcmhm-hp { position: absolute !important; left: -9999px !important; }

.mcmhm-footer { padding: 4rem 0 2rem; background: #06142d; color: rgba(255,255,255,.72); }
.mcmhm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; }
.mcmhm-footer h2, .mcmhm-footer h3 { color: #fff; }
.mcmhm-footer a { color: rgba(255,255,255,.9); }
.mcmhm-footer ul { margin: 0; padding: 0; list-style: none; }
.mcmhm-footer li { margin: .45rem 0; }
.mcmhm-footer__brand { color: #fff; font-size: 1.35rem; font-weight: 950; }
.mcmhm-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.13); display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.mcmhm-local-links { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.3rem 0 0; }
.mcmhm-local-links a { display: inline-flex; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-size: .9rem; font-weight: 850; text-decoration: none; }
.mcmhm-local-links a:hover { border-color: var(--gold); background: #fff8df; }
.mcmhm-local-faq { display: grid; gap: 1rem; margin-top: 2rem; }
.mcmhm-local-faq details { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mcmhm-local-faq summary { color: var(--navy); font-weight: 900; cursor: pointer; }
.mcmhm-local-faq p { margin-bottom: 0; color: var(--muted); }
.mcmhm-mobile-cta { display: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.mcmhm-tool-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 1.5rem; align-items: start; }
.mcmhm-tool-card { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.mcmhm-tool-card h2, .mcmhm-tool-card h3 { margin-top: 0; color: var(--navy); line-height: 1.15; }
.mcmhm-privacy-note { display: flex; gap: .7rem; align-items: flex-start; margin: 1rem 0; padding: .9rem 1rem; border-left: 4px solid var(--success); background: #eef8f1; color: #315a43; font-size: .9rem; }
.mcmhm-upload-zone { display: grid; place-items: center; min-height: 360px; padding: 1.2rem; border: 2px dashed #9fb0c5; border-radius: 16px; background: var(--soft); text-align: center; }
.mcmhm-upload-zone.has-photo { display: block; min-height: 0; padding: 0; border-style: solid; overflow: hidden; background: #e9edf2; }
.mcmhm-upload-zone canvas { display: none; width: 100%; height: auto; max-height: 680px; object-fit: contain; cursor: crosshair; touch-action: none; background: #dfe5ec; }
.mcmhm-upload-zone.has-photo canvas { display: block; }
.mcmhm-upload-zone.has-photo .mcmhm-upload-prompt { display: none; }
.mcmhm-tool-controls { display: none; margin-top: 1rem; }
.mcmhm-tool-controls.is-visible { display: block; }
.mcmhm-toolbar { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin: 1rem 0; }
.mcmhm-toolbar button { min-height: 42px; padding: .55rem .8rem; border-width: 1px; }
.mcmhm-toolbar button.is-active { outline: 3px solid rgba(23,79,159,.2); background: var(--navy); border-color: var(--navy); color: #fff; }
.mcmhm-toolbar button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.mcmhm-outline-help { margin: .75rem 0; padding: .8rem 1rem; border-radius: 10px; background: #fff8df; color: #5d4900; font-size: .9rem; }
.mcmhm-color-row { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.mcmhm-color-swatch { width: 42px; height: 42px; min-height: 42px; padding: 0; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #8f9caf; font-size: 0; }
.mcmhm-color-swatch.is-active { box-shadow: 0 0 0 3px var(--navy); }
.mcmhm-color-picker { width: 52px; height: 42px; padding: 2px; border: 1px solid #8f9caf; border-radius: 8px; background: #fff; cursor: pointer; }
.mcmhm-range-row { display: grid; grid-template-columns: 1fr auto; gap: .7rem; align-items: center; margin-top: .85rem; }
.mcmhm-range-row input { width: 100%; }
.mcmhm-estimator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.mcmhm-estimator-grid label { display: block; font-size: .84rem; font-weight: 850; }
.mcmhm-estimator-grid input, .mcmhm-estimator-grid select { width: 100%; min-height: 48px; margin-top: .28rem; padding: .6rem .7rem; border: 1px solid #bec8d4; border-radius: 9px; background: #fff; }
.mcmhm-estimator-extras { display: grid; gap: .55rem; margin: 1rem 0; }
.mcmhm-estimator-extras label { display: flex; gap: .55rem; align-items: center; font-weight: 700; }
.mcmhm-estimator-result { margin: 1.25rem 0; padding: 1.25rem; border-radius: 16px; background: var(--gold); color: var(--navy); }
.mcmhm-estimator-result small { display: block; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.mcmhm-estimator-price { display: block; margin: .2rem 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; font-weight: 950; }
.mcmhm-disclaimer { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.mcmhm-step-list { counter-reset: toolstep; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.mcmhm-step-list > div { padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mcmhm-step-list > div::before { counter-increment: toolstep; content: counter(toolstep); width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: .7rem; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 900; }
.mcmhm-step-list h3 { margin: 0 0 .35rem; color: var(--navy); }
.mcmhm-step-list p { margin: 0; color: var(--muted); font-size: .92rem; }
.mcmhm-visualizer-image { display: block; width: 100%; margin: 1.25rem 0; aspect-ratio: 1.55; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 30px rgba(7,28,67,.1); }
.mcmhm-external-note { margin-top: 1rem; color: var(--muted); font-size: .82rem; }
.mcmhm-visualizer-points { margin: 1.25rem 0; padding: 0; list-style: none; }
.mcmhm-visualizer-points li { position: relative; margin: .75rem 0; padding-left: 1.8rem; }
.mcmhm-visualizer-points li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 950; }

@media (max-width: 980px) {
  .mcmhm-menu-toggle { display: inline-flex; margin-left: auto; }
  .mcmhm-nav { position: absolute; display: none; top: 100%; left: 1rem; right: 1rem; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  .mcmhm-nav.is-open { display: block; }
  .mcmhm-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .mcmhm-nav a { display: block; padding: .72rem; }
  .mcmhm-header__cta { display: none; }
  .mcmhm-hero__inner, .mcmhm-split { grid-template-columns: 1fr; }
  .mcmhm-hero__inner { min-height: 0; }
  .mcmhm-hero__visual { max-width: 680px; }
  .mcmhm-grid--3, .mcmhm-gallery { grid-template-columns: repeat(2, 1fr); }
  .mcmhm-statbar { grid-template-columns: repeat(2, 1fr); transform: none; margin: 1rem auto; }
  .mcmhm-tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .mcmhm-brand img { width: 125px; height: 58px; }
  .mcmhm-grid--3, .mcmhm-grid--2, .mcmhm-gallery, .mcmhm-form__grid, .mcmhm-footer__grid, .mcmhm-statbar, .mcmhm-step-list, .mcmhm-estimator-grid { grid-template-columns: 1fr; }
  .mcmhm-actions .mcmhm-button { width: 100%; }
  .mcmhm-hero__badge { position: static; margin-top: .8rem; }
  .mcmhm-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .mcmhm-footer__bottom { flex-direction: column; }
  body { padding-bottom: 68px; }
  .mcmhm-mobile-cta { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: .55rem; background: var(--navy); box-shadow: 0 -8px 24px rgba(7,28,67,.24); }
  .mcmhm-mobile-cta a { min-height: 48px; display: grid; place-items: center; border-radius: 8px; background: var(--gold); color: var(--navy); font-weight: 950; text-decoration: none; }
  .mcmhm-mobile-cta a:first-child { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
