/* Michael Grubbs Electric & Construction — production stylesheet
   Values are taken directly from the design handoff (README + reference HTML).
   Do not restyle here; change tokens only if the design changes. */

:root {
  --bg: #101114;
  --bg-deep: #0c0d10;
  --panel: rgba(255,255,255,.03);
  --line: rgba(255,255,255,.1);
  --line-soft: rgba(255,255,255,.08);
  --line-input: rgba(255,255,255,.15);
  --line-hover: rgba(231,168,62,.5);
  --text: #ECEDEF;
  --text-2: #c9cdd3;
  --body: #b9bec6;
  --muted: #9aa0a8;
  --fine: #7d838c;
  --gold: #E7A83E;
  --gold-hover: #F2C169;
  --on-gold: #15120a;
  --pad-x: clamp(16px,4vw,48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
::selection { background: rgba(231,168,62,.35); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap { max-width: 1140px; margin: 0 auto; }
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--gold); color: var(--on-gold);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 8px; }

/* ---- Type ---- */
.kicker {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--gold);
}
.h2 {
  font-size: clamp(28px,3.4vw,40px); font-weight: 800;
  letter-spacing: -.02em; margin: 10px 0 0;
}
.lede { font-size: 16px; line-height: 1.6; color: var(--body); margin: 12px 0 0; }
.lede.narrow { max-width: 60ch; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  border-radius: 8px; cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-gold { background: var(--gold); color: var(--on-gold); border: 0; }
.btn-gold:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn-ghost {
  color: var(--text); border: 1px solid rgba(255,255,255,.2); background: transparent;
}
.btn-ghost:hover { border-color: rgba(231,168,62,.6); color: var(--gold-hover); }
.btn-lg { padding: 14px 24px; }
.btn-md { padding: 13px 22px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--pad-x);
  background: rgba(16,17,20,.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { height: 44px; width: 44px; border-radius: 6px; }
.brand span { display: grid; line-height: 1.15; }
.brand b { font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.brand small {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--text-2); }
.nav-links a:hover { color: var(--gold-hover); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-phone { text-decoration: none; color: var(--text); font-weight: 700; font-size: 14px; }
.nav-phone:hover { color: var(--gold-hover); }

/* Mobile menu (approved production improvement) */
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; width: 42px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .nav { gap: 12px; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-links, .nav.open .nav-cta {
    display: flex; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 6px; margin-left: 0; padding-top: 10px; border-top: 1px solid var(--line-soft);
  }
  .nav.open .nav-links a, .nav.open .nav-phone { padding: 10px 4px; font-size: 16px; }
  .nav.open .nav-cta .btn { text-align: center; }
}

/* ---- Sections ---- */
.sec { padding: 72px var(--pad-x) 24px; }
.sec.last { padding-bottom: 40px; }

/* Hero */
.hero {
  padding: clamp(56px,8vw,110px) var(--pad-x) 56px;
  background: radial-gradient(1000px 500px at 75% -10%, rgba(231,168,62,.14), transparent 65%), var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px; align-items: center;
}
.pill {
  display: inline-block; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); border: 1px solid rgba(231,168,62,.4);
  padding: 6px 12px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(38px,4.6vw,60px); line-height: 1.06; font-weight: 800;
  letter-spacing: -.02em; margin: 22px 0 0;
}
.hero h1 em, .page-h1 em { color: var(--gold); }
.hero p { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 54ch; margin: 20px 0 0; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.chips {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-top: 36px;
}
.chip {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel);
}
.chip b { display: block; font-size: 15px; }
.chip span { font-size: 12.5px; color: var(--muted); }
.hero-art { display: grid; justify-items: center; }
.hero-art img {
  width: min(380px, 80vw); border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(231,168,62,.25);
}

/* Ticker */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line-soft);
  background: var(--bg-deep); padding: 12px 0; white-space: nowrap;
}
.ticker-track {
  display: inline-flex; gap: 36px; padding-right: 36px;
  animation: mgec-marquee 30s linear infinite;
}
.ticker span {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.ticker b { color: var(--gold); }
@keyframes mgec-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .btn { transition: none; }
}

/* Cards */
.cards { display: grid; gap: 18px; margin-top: 36px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--panel);
  transition: border-color .15s;
}
.card:hover { border-color: var(--line-hover); }
.card h3 { font-size: 19px; font-weight: 700; margin: 0; }
.card .tag {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700;
}
.card p { font-size: 14.5px; line-height: 1.6; color: var(--body); margin: 10px 0 0; }

/* Spotlight */
.spot { padding: 64px var(--pad-x) 24px; }
.spot-panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px; align-items: center;
  border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px,4vw,48px);
  background: linear-gradient(135deg, rgba(231,168,62,.08), transparent 55%);
}
.spot h2 { font-size: clamp(26px,3vw,36px); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 0; }
.spot p { font-size: 16px; line-height: 1.6; color: var(--body); max-width: 52ch; margin: 14px 0 0; }
.spot .btn { margin-top: 22px; padding: 12px 22px; }
.spot-media { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }

/* Image placeholder used until real job photos are dropped in */
.photo { position: relative; width: 100%; background: var(--bg-deep); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.r16x10 { aspect-ratio: 16/10; }
.photo.r4x3 { aspect-ratio: 4/3; }
.photo.empty {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px), var(--bg-deep);
  color: var(--fine); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  text-align: center; padding: 20px;
}

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 36px; }
.step { border-top: 2px solid var(--gold); padding-top: 18px; }
.step .num { font-size: 32px; font-weight: 800; color: rgba(231,168,62,.55); }
.step h3 { font-size: 18px; font-weight: 700; margin: 8px 0 0; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--body); margin: 8px 0 0; }

/* Why */
.two-col {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px; align-items: center;
}
.two-col.top { align-items: start; }
.why p.lede { max-width: 54ch; margin-top: 14px; }
.points { display: grid; gap: 16px; margin-top: 26px; }
.point { display: flex; gap: 14px; }
.point .dash { color: var(--gold); font-weight: 800; }
.point p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.point b { color: var(--text); }
.emblem { display: grid; justify-items: center; gap: 16px; }
.emblem img { width: min(280px, 70vw); border-radius: 14px; box-shadow: 0 18px 60px rgba(0,0,0,.5); }
.emblem span {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700;
}

/* Service area */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 32px; }
.area {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; background: var(--panel);
}
.area b { display: block; font-size: 18px; font-weight: 800; }
.area span { font-size: 12.5px; color: var(--muted); }
.area.hi { border-color: rgba(231,168,62,.4); background: rgba(231,168,62,.08); }

/* Reviews */
.stars { color: var(--gold); letter-spacing: .15em; font-size: 14px; }
.review p { font-size: 15px; line-height: 1.6; color: var(--text-2); margin: 12px 0 0; }
.review span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.fine { font-size: 13px; color: var(--fine); margin: 18px 0 0; }

/* Contact */
.contact p.lede { max-width: 50ch; margin-top: 14px; }
.info {
  display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; margin-top: 28px; font-size: 15px;
}
.info b {
  color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; align-self: center;
}
.info a { text-decoration: none; font-weight: 700; }
.info span { color: var(--text-2); }

.form-card {
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 26px; background: var(--panel);
}
.form-grid { display: grid; gap: 16px; }
.form-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; background: var(--bg-deep); border: 1px solid var(--line-input); border-radius: 8px;
  padding: 11px 12px; color: var(--text); font-family: inherit; font-size: 15px;
}
.form-grid textarea { min-height: 90px; resize: vertical; }
.form-grid select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px;
}
.form-grid .btn { padding: 13px 20px; font-size: 15px; }
.form-note { font-size: 12.5px; color: var(--fine); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  display: none; font-size: 13.5px; color: #ffb4a8; background: rgba(255,90,70,.08);
  border: 1px solid rgba(255,90,70,.35); border-radius: 8px; padding: 10px 12px;
}
.form-error.show { display: block; }

/* Gallery page */
.page-head {
  padding: clamp(48px,6vw,80px) var(--pad-x) 24px;
  background: radial-gradient(900px 400px at 70% -20%, rgba(231,168,62,.12), transparent 65%), var(--bg);
}
.page-h1 {
  font-size: clamp(34px,4.4vw,54px); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 0;
}
.page-head p { font-size: 16px; line-height: 1.6; color: var(--body); max-width: 56ch; margin: 16px 0 0; }
.gallery { padding: 40px var(--pad-x) 72px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.shot {
  margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel);
  transition: border-color .15s;
}
.shot:hover { border-color: var(--line-hover); }
.shot figcaption {
  padding: 14px 16px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--text-2);
}
.cta-panel {
  margin: 56px auto 0; border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px,4vw,40px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  background: linear-gradient(135deg, rgba(231,168,62,.08), transparent 55%);
}
.cta-panel .lead { font-size: clamp(20px,2.4vw,26px); font-weight: 800; letter-spacing: -.01em; }
.cta-panel .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; }

/* Footer */
.foot { border-top: 1px solid var(--line-soft); padding: 32px var(--pad-x); background: var(--bg-deep); }
.foot .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; font-size: 13px; color: var(--muted);
}
.foot img { height: 40px; width: 40px; border-radius: 6px; }
.foot .push { margin-left: auto; }
.foot a { text-decoration: none; }

/* Simple pages */
.mini { padding: 80px var(--pad-x) 100px; }
.mini h1 { font-size: clamp(30px,4vw,44px); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 0; }
.mini p { font-size: 16px; line-height: 1.6; color: var(--body); max-width: 56ch; margin: 16px 0 0; }
