/* ============================================================
   MK Electric — Botanical Modern theme
   Warm cream paper, Fraunces serif headings,
   Plus Jakarta Sans body, emerald + terracotta accents.
   ============================================================ */

:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #ecebe2;
  --text: #1f3329;
  --text-muted: #7a8471;
  --accent: #1f7d56;
  --accent-deep: #155a3e;
  --accent2: #d97757;
  --accent2-deep: #b35a3c;
  --accent3: #d4ddc6;
  --heading-font: 'Fraunces', 'Source Serif Pro', Georgia, serif;
  --body-font: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --shadow-soft: 0 4px 16px rgba(31, 51, 41, 0.06);
  --shadow-card: 0 6px 28px rgba(31, 51, 41, 0.08);
  --radius-card: 16px;
  --radius-figure: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid rgba(31, 125, 86, 0.18);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(4px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  height: 52px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a.active {
  border-bottom-color: var(--accent);
  color: var(--accent-deep);
}

/* ------------------------------------------------------------
   Hero — soft sage band
   ------------------------------------------------------------ */
.hero {
  background: var(--accent3);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 18px;
}

.hero-text h1 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 1.08;
  color: var(--text);
  margin: 0 0 22px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 120;
}

.hero-text .subtitle {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 540px;
}

.accent-line { display: none; }

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 36px rgba(31, 51, 41, 0.14);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hero-image::after {
  content: "";
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  background: var(--accent2);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(217, 119, 87, 0.35);
}

/* ------------------------------------------------------------
   Main body — paper cards
   ------------------------------------------------------------ */
.site-main {
  padding: 80px 0 96px;
}

.site-main .container {
  max-width: 880px;
}

.section {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 48px 56px;
  margin: 0 0 36px;
  position: relative;
}

.section + .section {
  margin-top: 36px;
}

.section h2 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1.85rem;
  color: var(--accent-deep);
  line-height: 1.25;
  margin: 0 0 22px;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 36;
  position: relative;
  padding-left: 22px;
}

.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.section p {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 18px;
  max-width: 720px;
}

.section p:last-of-type { margin-bottom: 0; }

.section a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color 160ms ease, border-color 160ms ease;
}

.section a:hover {
  color: var(--accent2-deep);
  border-bottom-color: var(--accent2-deep);
}

/* keyword anchor — terracotta highlight */
.section a[href="https://www.mkelectricman.com/"] {
  color: var(--accent2-deep);
  border-bottom: 2px solid var(--accent2);
  font-weight: 500;
  padding: 0 2px;
}

.section a[href="https://www.mkelectricman.com/"]:hover {
  color: var(--accent2);
  border-bottom-color: var(--accent2-deep);
}

.section figure {
  margin: 32px 0 8px;
}

.section figure img {
  width: 100%;
  border-radius: var(--radius-figure);
  box-shadow: 0 6px 20px rgba(31, 51, 41, 0.10);
}

/* section divider — sage line with emerald diamond */
.section + .section::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(31, 125, 86, 0.22);
}

.section + .section::after {
  content: "◆";
  position: absolute;
  top: -49px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--accent);
  font-size: 0.78rem;
  padding: 0 12px;
  line-height: 1;
}

/* ------------------------------------------------------------
   Footer — Horizontal stacked bands
   ------------------------------------------------------------ */
.site-footer {
  margin-top: 40px;
}

.site-footer .container { padding: 0; max-width: none; }

/* BAND 1 — Get In Touch */
.footer-band-contact {
  background: var(--bg);
  text-align: center;
  padding: 80px 28px;
}

.footer-eyebrow {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.footer-phone-big {
  display: block;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 3rem;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  font-variation-settings: "opsz" 96;
  transition: color 160ms ease;
}

.footer-phone-big:hover { color: var(--accent-deep); }

.footer-address {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* BAND 2 — pill chips */
.footer-band-chips {
  background: var(--accent3);
  padding: 36px 24px;
}

.footer-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--surface);
  border: 1.5px solid var(--accent2);
  border-radius: 999px;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.footer-chip:hover {
  background: var(--accent2);
  color: var(--bg);
  border-color: var(--accent2-deep);
}

/* BAND 3 — full-width map */
.footer-band-map {
  width: 100%;
  display: block;
  line-height: 0;
}

.footer-band-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* BAND 4 — copyright bar */
.footer-band-copy {
  background: var(--accent-deep);
  padding: 32px 24px;
  text-align: center;
}

.footer-band-copy p {
  margin: 0;
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 0.92rem;
  color: rgba(247, 244, 238, 0.88);
  letter-spacing: 0.02em;
}

.footer-dot-ornament {
  color: var(--accent);
  margin: 0 10px;
  font-size: 0.7em;
  vertical-align: middle;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 980px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-text h1 { font-size: 2.6rem; }
  .hero-text .subtitle { font-size: 1.15rem; }
  .hero-image::after { width: 30px; height: 30px; bottom: -10px; right: -10px; }

  .site-main { padding: 56px 0 72px; }
  .section { padding: 36px 36px; }
  .section h2 { font-size: 1.55rem; }

  .footer-phone-big { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 18px 20px;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
  }
  .logo-link img { height: 44px; }
  .main-nav {
    width: 100%;
    gap: 18px;
    justify-content: flex-start;
  }
  .main-nav a { font-size: 0.95rem; padding: 4px 0; }

  .container { padding: 0 22px; }

  .hero { padding: 48px 0 56px; }
  .hero-text h1 { font-size: 2.15rem; }
  .hero-text .subtitle { font-size: 1.05rem; }
  .hero-eyebrow { font-size: 0.72rem; margin-bottom: 14px; }

  .section { padding: 28px 26px; margin-bottom: 28px; }
  .section h2 { font-size: 1.35rem; padding-left: 20px; }
  .section p { font-size: 1rem; }

  .section + .section::before { top: -28px; left: 6%; right: 6%; }
  .section + .section::after { top: -41px; }

  .footer-band-contact { padding: 56px 22px; }
  .footer-phone-big { font-size: 2rem; }
  .footer-band-chips { padding: 28px 18px; }
  .footer-band-map iframe { height: 240px; }
  .footer-band-copy { padding: 24px 18px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .header-inner { padding: 14px 16px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 0.88rem; }

  .container { padding: 0 18px; }

  .hero { padding: 38px 0 46px; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-text .subtitle { font-size: 0.98rem; }

  .section { padding: 22px 20px; }
  .section h2 { font-size: 1.22rem; padding-left: 18px; }
  .section h2::before { width: 8px; height: 8px; }
  .section p { font-size: 0.96rem; }
  .section figure { margin: 22px 0 6px; }

  .footer-band-contact { padding: 44px 18px; }
  .footer-eyebrow { font-size: 0.7rem; }
  .footer-phone-big { font-size: 1.75rem; }
  .footer-address { font-size: 0.92rem; }
  .footer-chip { font-size: 0.88rem; padding: 7px 14px; }
  .footer-band-copy p { font-size: 0.85rem; }
}
