/*
Theme Name: Mallette Mechanical Custom
Theme URI: https://constructionworkofallkinds.com/
Author: OpenAI
Description: Lightweight contractor theme for Mallette Mechanical with fully editable homepage content in the WordPress Customizer.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: mallette-mechanical
*/

:root {
  --mm-bg: #0f1720;
  --mm-surface: #131d29;
  --mm-surface-2: #1b2735;
  --mm-text: #eaf1f7;
  --mm-muted: #b7c4d1;
  --mm-border: rgba(255,255,255,0.08);
  --mm-accent: #e7a73a;
  --mm-accent-dark: #cf8f22;
  --mm-white: #ffffff;
  --mm-max: 1200px;
  --mm-radius: 18px;
  --mm-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #1a2430;
  background: #f5f7fa;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font: inherit;
}
.screen-reader-text {
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.mm-container {
  width: min(calc(100% - 2rem), var(--mm-max));
  margin: 0 auto;
}
.mm-section {
  padding: 4.5rem 0;
}
.mm-grid {
  display: grid;
  gap: 1.5rem;
}
.mm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mm-topbar {
  background: var(--mm-bg);
  color: var(--mm-white);
  font-size: 0.95rem;
}
.mm-topbar-inner {
  display:flex;
  gap:1rem;
  justify-content:space-between;
  align-items:center;
  padding: .7rem 0;
  flex-wrap: wrap;
}
.mm-topbar strong { color: var(--mm-white); }
.mm-topbar .mm-muted { color: rgba(255,255,255,.78); }

.mm-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 32, 0.95);
  backdrop-filter: blur(8px);
  color: var(--mm-white);
  box-shadow: 0 6px 25px rgba(0,0,0,.12);
}
.mm-header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  min-height: 78px;
}
.mm-brand {
  display:flex;
  align-items:center;
  gap: .85rem;
  min-width: 0;
}
.mm-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mm-accent), #ffd280);
  color: #111;
  display:grid;
  place-items:center;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: var(--mm-shadow);
  flex: 0 0 auto;
}
.mm-brand-text {
  display:flex;
  flex-direction:column;
  min-width: 0;
}
.mm-brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
}
.mm-brand-tag {
  color: rgba(255,255,255,.74);
  font-size: .88rem;
}

.mm-nav-wrap {
  display:flex;
  align-items:center;
  gap: 1rem;
}
.mm-primary-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display:flex;
  align-items:center;
  gap: 1rem;
}
.mm-primary-nav a {
  display:block;
  padding: .8rem .25rem;
  color: rgba(255,255,255,.92);
  font-weight: 600;
}
.mm-primary-nav a:hover,
.mm-primary-nav .current-menu-item > a {
  color: var(--mm-accent);
}
.mm-header-actions {
  display:flex;
  align-items:center;
  gap: .85rem;
}

.mm-button,
.wp-block-button__link,
button,
input[type="submit"] {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--mm-accent);
  color: #111;
  font-weight: 800;
  padding: .95rem 1.35rem;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 22px rgba(231,167,58,.22);
}
.mm-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--mm-accent-dark);
  transform: translateY(-1px);
}
.mm-button--ghost {
  background: transparent;
  color: var(--mm-white);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: none;
}
.mm-button--ghost:hover {
  background: rgba(255,255,255,.08);
}

.mm-hero {
  position: relative;
  color: var(--mm-white);
  background:
    radial-gradient(circle at top right, rgba(231,167,58,.18), transparent 36%),
    linear-gradient(135deg, #101923 0%, #162433 55%, #101923 100%);
  overflow: hidden;
}
.mm-hero::after {
  content:"";
  position:absolute;
  inset:auto -10% -80px auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(231,167,58,.25), transparent 60%);
  pointer-events:none;
}
.mm-hero-inner {
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 2rem;
  padding: 5.5rem 0;
  align-items: center;
}
.mm-eyebrow {
  display:inline-flex;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  color: #ffe5b2;
  background: rgba(255,255,255,.04);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.mm-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  max-width: 12ch;
}
.mm-hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,.86);
  max-width: 62ch;
  margin: 0 0 1.5rem;
}
.mm-hero-actions {
  display:flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.mm-bullet-strip {
  display:flex;
  gap: .85rem;
  flex-wrap:wrap;
  color: rgba(255,255,255,.8);
  font-weight: 600;
  font-size: .95rem;
}
.mm-bullet-strip span {
  padding-right: .85rem;
  border-right: 1px solid rgba(255,255,255,.12);
}
.mm-bullet-strip span:last-child { border-right: 0; padding-right:0; }

.mm-hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 26px;
  padding: 1.35rem;
  box-shadow: var(--mm-shadow);
}
.mm-mini-grid {
  display:grid;
  gap: .85rem;
}
.mm-mini-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 1rem;
}
.mm-mini-card h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
}
.mm-mini-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .95rem;
}
.mm-stat-row {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .8rem;
  margin-top: 1rem;
}
.mm-stat {
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: .9rem;
  text-align:center;
}
.mm-stat strong {
  display:block;
  font-size: 1.2rem;
  color: #fff0ce;
}
.mm-stat span {
  color: rgba(255,255,255,.74);
  font-size: .85rem;
}

.mm-card {
  background: #fff;
  border-radius: 22px;
  padding: 1.5rem;
  border: 1px solid rgba(19, 29, 41, 0.08);
  box-shadow: 0 10px 26px rgba(15, 23, 32, 0.05);
}
.mm-card h3,
.mm-card h4 {
  margin-top: 0;
}
.mm-kicker {
  color: #8a97a5;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 800;
  margin-bottom: .4rem;
}
.mm-section-title {
  margin: 0 0 .85rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
  color: #13202e;
}
.mm-section-intro {
  max-width: 70ch;
  color: #596776;
  margin: 0 0 2rem;
}

.mm-number {
  color: var(--mm-accent);
  font-weight: 900;
  font-size: 1.05rem;
}

.mm-feature-list,
.mm-check-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}
.mm-feature-list li,
.mm-check-list li {
  margin: .35rem 0;
}

.mm-process-step {
  position: relative;
  padding-top: 3rem;
}
.mm-process-letter {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  width: 38px;
  height: 38px;
  display:grid;
  place-items:center;
  border-radius: 50%;
  background: rgba(231,167,58,.16);
  color: #9b6510;
  font-weight: 800;
}

.mm-cta-band {
  background: linear-gradient(135deg, #192737, #101923);
  color: var(--mm-white);
  border-radius: 30px;
  padding: 2rem;
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--mm-shadow);
}
.mm-cta-band p { color: rgba(255,255,255,.8); margin: .4rem 0 0; }

.mm-blog-grid article h3 {
  margin-bottom: .4rem;
}
.mm-blog-grid article p {
  color: #5c6a78;
}

.mm-contact-box {
  background: #fff;
  border-radius: 30px;
  padding: 2rem;
  box-shadow: var(--mm-shadow);
}
.mm-contact-grid {
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2rem;
}
.mm-contact-list {
  list-style:none;
  padding:0;
  margin:0;
}
.mm-contact-list li {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(19, 29, 41, 0.08);
}
.mm-contact-list li:last-child { border-bottom: 0; }

.mm-form-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}
.mm-form-grid .mm-full { grid-column: 1 / -1; }
label { display:block; font-weight:700; margin-bottom:.35rem; color:#1a2430; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width:100%;
  border:1px solid rgba(19,29,41,.14);
  border-radius: 14px;
  background:#fff;
  padding:.95rem 1rem;
  color:#13202e;
}
textarea { min-height: 140px; resize: vertical; }

.mm-site-footer {
  background: #0f1720;
  color: rgba(255,255,255,.85);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.mm-footer-grid {
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
}
.mm-site-footer h3,
.mm-site-footer h4 {
  color: var(--mm-white);
}
.mm-site-footer ul {
  list-style:none;
  padding:0;
  margin:0;
}
.mm-site-footer li {
  margin: .45rem 0;
}
.mm-footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .95rem;
  color: rgba(255,255,255,.66);
}

.entry-content,
.entry-header,
.page-content,
.post-thumbnail {
  width: min(calc(100% - 2rem), 860px);
  margin-left: auto;
  margin-right: auto;
}
.entry-header { padding-top: 3rem; }
.entry-title { font-size: clamp(2rem, 4vw, 3rem); }
.entry-content { padding-bottom: 3rem; }

@media (max-width: 980px) {
  .mm-hero-inner,
  .mm-contact-grid,
  .mm-footer-grid,
  .mm-cta-band {
    grid-template-columns: 1fr;
  }
  .mm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-grid-3,
  .mm-grid-2 { grid-template-columns: 1fr; }
  .mm-primary-nav { display:none; }
  .mm-header-inner { padding: .6rem 0; }
}
@media (max-width: 640px) {
  .mm-grid-4,
  .mm-form-grid,
  .mm-stat-row { grid-template-columns: 1fr; }
  .mm-hero h1 { max-width: none; }
  .mm-topbar-inner { align-items:flex-start; }
  .mm-section { padding: 3.4rem 0; }
}
