/*
Theme Name: MAE Electrical
Theme URI: https://maelectricalcontractor.com/
Author: M.A Electrical Contractor Ltd
Description: Static MAE site packaged as a WordPress theme.
Version: 1.7
*/
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --bg: #f5f5f7;
  --white: #fff;
  --line: rgba(0,0,0,.08);
  --blue: #0071e3;
  --blue-2: #0077ed;
  --navy: #1d1d1f;
  --navy-2: #000;
  --amber: #0071e3;
  --amber-2: #2997ff;
  --paper: #f5f5f7;
  --ok: #248a3d;
  --ok-bg: #e4f5e8;
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --shadow: 0 20px 60px rgba(0,0,0,.12);
  --radius: 28px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #000;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.topbar {
  background: #000;
  color: #a1a1a6;
  font-size: 12px;
  letter-spacing: .01em;
}
.topbar .wrap {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0; flex-wrap: wrap;
}
.topbar a:hover { color: #fff; }
.gas-chip { color: #f5f5f7; font-weight: 500; }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(22,22,23,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #f5f5f7; font-size: 14px; }
.brand img {
  width: 22px; height: 22px; object-fit: cover; border-radius: 50%;
  filter: grayscale(1) contrast(1.2);
}
nav.desk { display: flex; gap: 28px; align-items: center; }
nav.desk a { font-size: 12px; color: #d2d2d7; font-weight: 400; }
nav.desk a:hover { color: #fff; }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 980px; padding: 12px 22px; font-weight: 500;
  cursor: pointer; transition: .22s background, .22s transform, .22s opacity;
  font-size: 14px;
}
.btn:hover { transform: scale(1.02); }
.btn-amber, .btn-navy { background: var(--blue); color: #fff; }
.btn-amber:hover, .btn-navy:hover { background: var(--blue-2); }
.btn-ghost {
  background: transparent; color: var(--blue);
  border: 0; padding-left: 0; padding-right: 0;
}
.btn-ghost:hover { opacity: .75; transform: none; }
header .btn-ghost { color: #f5f5f7; border: 1px solid rgba(255,255,255,.28); padding: 6px 14px; font-size: 12px; }
header .btn-amber { padding: 6px 14px; font-size: 12px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.menu-btn { display: none; background: none; border: 0; font-size: 22px; color: #fff; }

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 70%, #000 100%),
    url("assets/gbp-site.jpg") center/cover no-repeat;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  padding: 120px 0 64px;
  align-items: end;
}
.kicker {
  display: inline-block;
  color: #a1a1a6;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(56px, 9vw, 96px);
  line-height: .88;
  letter-spacing: -0.055em;
  font-weight: 600;
  max-width: 10ch;
}
.hero p.lead {
  color: #d2d2d7;
  font-size: 21px;
  max-width: 34ch;
  margin-top: 18px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 22px; flex-wrap: wrap; margin: 28px 0 26px; align-items: center; }
.trust-row { display: flex; gap: 28px; flex-wrap: wrap; color: #a1a1a6; font-size: 12px; }
.trust-row strong { color: #f5f5f7; display: block; font-size: 13px; font-weight: 600; }
.hero-card {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(24px);
  color: var(--ink);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.hero-card img { display: none; }
.hero-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 4px; }
.quick-form { display: grid; gap: 10px; margin-top: 14px; }
.quick-form input, .quick-form select,
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-radius: 14px;
  padding: 13px 14px; background: #f5f5f7; color: var(--ink);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus,
.quick-form input:focus, .quick-form select:focus {
  box-shadow: 0 0 0 4px rgba(0,113,227,.18);
}
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); }

section { padding: 92px 0; background: var(--bg); }
.band-dark { background: #000; color: #f5f5f7; }
.band-white { background: #fff; }
.sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.sec-head h2, h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 600;
}
.eyebrow {
  color: var(--muted);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
}
.band-dark .eyebrow { color: #a1a1a6; }
.muted { color: var(--muted); }
.band-dark .muted { color: #a1a1a6; }
.link { color: var(--blue); font-weight: 400; }
.link:hover { text-decoration: underline; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: #fff;
  border: 0;
  border-radius: 28px;
  padding: 32px 28px 28px;
  box-shadow: none;
  min-height: 240px;
  transition: transform .25s ease;
}
.card:hover { transform: scale(1.015); }
.card .ico { display: none; }
.card h3 { font-size: 28px; margin-bottom: 8px; letter-spacing: -.03em; font-weight: 600; }
.price { color: var(--muted); font-weight: 500; margin-top: 18px; font-size: 17px; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.feature-tile {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.feature-tile img { width: 100%; height: 300px; object-fit: cover; }
.feature-copy { padding: 36px 32px 32px; }
.feature-copy h3 { font-size: 40px; letter-spacing: -.04em; font-weight: 600; line-height: 1.05; }
.feature-copy p { color: var(--muted); margin: 10px 0 18px; font-size: 17px; }

.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.photo { border-radius: 28px; height: 520px; object-fit: cover; width: 100%; }
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 22px; font-size: 17px; }
.checklist li { display: flex; gap: 10px; }
.tick { color: var(--blue); font-weight: 600; }

.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill {
  background: #fff; border: 0; padding: 8px 14px; border-radius: 980px;
  font-size: 13px; font-weight: 500; color: var(--ink);
}

.panel {
  background: #fff; border-radius: 28px; padding: 28px;
  border: 0;
}
.band-white .panel, #book .panel { background: var(--bg); }
.steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.step {
  padding: 6px 12px; border-radius: 980px; font-size: 13px; font-weight: 500;
  background: #fff; color: var(--muted);
}
.step.on { background: var(--ink); color: white; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-result {
  background: var(--ink); color: white; border-radius: 22px; padding: 22px; margin-top: 16px;
}
.quote-result .big { font-size: 40px; font-weight: 600; letter-spacing: -.04em; color: #fff; }

.cal-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { font-size: 11px; color: var(--muted); text-align: center; font-weight: 600; }
.day {
  aspect-ratio: 1; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; font-size: 13px; font-weight: 500;
}
.day:hover { background: #e8e8ed; }
.day.sel { background: var(--ink); color: white; }
.day.off { opacity: .28; pointer-events: none; }
.day.busy { box-shadow: inset 0 -3px 0 var(--blue); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  border: 0; background: #fff; border-radius: 980px;
  padding: 10px 14px; cursor: pointer; font-weight: 500; font-size: 13px;
}
.slot.sel { background: var(--ink); color: white; }
.slot.taken { opacity: .3; pointer-events: none; text-decoration: line-through; }

.planner-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 22px; flex-wrap: wrap; }
.planner-toolbar .sec-head, .planner-toolbar h2 { text-align: left; margin: 0; font-size: clamp(32px, 4vw, 48px); }
.week { display: grid; grid-template-columns: 70px repeat(7, 1fr); gap: 6px; }
.week .h { font-size: 12px; font-weight: 600; text-align: center; color: var(--muted); }
.cell {
  min-height: 72px; background: #fff; border: 0;
  border-radius: 12px; padding: 6px; font-size: 11.5px;
}
.job {
  background: #eef4ff; border-left: 3px solid var(--blue); padding: 5px 6px;
  border-radius: 6px; margin-bottom: 4px; cursor: pointer;
}
.job.em { background: var(--danger-bg); border-left-color: var(--danger); }
.job.q { background: #fff6e0; border-left-color: #e8a317; }
.closed-slot { background: #ececef; color: #8e8e93; font-style: normal; }

table.leads { width: 100%; border-collapse: collapse; font-size: 14px; }
table.leads th, table.leads td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--line); }
.status { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 980px; }
.status.booked { background: var(--ok-bg); color: var(--ok); }
.status.lead { background: #eef4ff; color: var(--blue); }
.status.quote { background: #fff6e0; color: #8a5b00; }

#chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: var(--ink); color: #fff; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); cursor: pointer; font-size: 12px;
  letter-spacing: -.01em;
}
#chat {
  position: fixed; right: 22px; bottom: 92px; z-index: 50;
  width: min(380px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 130px));
  background: #fff; border-radius: 24px; box-shadow: var(--shadow);
  display: none; flex-direction: column; overflow: hidden;
}
#chat.open { display: flex; }
.chat-head {
  background: #000; color: white; padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-head small { color: #a1a1a6; display: block; font-weight: 400; }
.chat-body { flex: 1; overflow: auto; padding: 16px; background: #f5f5f7; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 12px; border-radius: 16px; font-size: 14px; }
.bubble.bot { background: white; align-self: flex-start; }
.bubble.me { background: var(--ink); color: white; align-self: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 0; background: #fff; border-radius: 980px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.chat-in { display: flex; gap: 8px; padding: 10px; background: #fff; }
.chat-in input { flex: 1; border: 0; background: #f5f5f7; border-radius: 980px; padding: 10px 14px; }
.chat-in button { border: 0; background: var(--ink); color: white; border-radius: 980px; padding: 0 16px; font-weight: 500; cursor: pointer; }


.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.work-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
}
.work-card img, .work-embed, #gg-embed iframe, #fb-embed iframe {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 0;
  background: #ececef;
}
.work-copy { padding: 22px; }
.work-copy h3 { font-size: 24px; letter-spacing: -.03em; margin: 4px 0 8px; }
.work-meta { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.work-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.social-boards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.social-board, .social-studio {
  background: #fff;
  border-radius: 28px;
  padding: 22px;
}
.social-board h3, .social-studio h3 { font-size: 22px; margin-bottom: 12px; letter-spacing: -.03em; }
.social-empty { background: var(--bg); border-radius: 18px; padding: 22px; min-height: 180px; }
#gg-embed iframe { height: 240px; border-radius: 18px; }
@media (max-width: 900px) {
  .feature[style*='repeat(3'] { grid-template-columns: 1fr !important; }

  .work-grid, .social-boards { grid-template-columns: 1fr; }
}

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  background: var(--bg);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 10px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -.02em;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { color: var(--muted); margin-top: 10px; font-size: 16px; }

footer {
  background: var(--bg); color: #6e6e73; padding: 56px 0 28px;
  font-size: 13px;
}
footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer h4 { color: var(--ink); margin-bottom: 10px; font-weight: 600; font-size: 12px; }
footer a:hover { color: var(--ink); }
.legal { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 12px; }

.mobile-nav {
  display: none; position: fixed; inset: 48px 0 0 0; background: #000; z-index: 39; padding: 20px;
}
.mobile-nav a { display: block; padding: 14px 0; font-weight: 500; color: #f5f5f7; border-bottom: 1px solid rgba(255,255,255,.08); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: white; padding: 12px 18px; border-radius: 980px;
  z-index: 80; display: none; font-size: 13px;
}

@media (max-width: 900px) {
  .feature[style*='repeat(3'] { grid-template-columns: 1fr !important; }

  nav.desk { display: none; }
  .menu-btn { display: block; }
  .hero { min-height: auto; }
  .hero-grid, .cards, .two-col, .cal-wrap, .grid-2, footer .grid, .week, .feature {
    grid-template-columns: 1fr;
  }
  .feature-tile { min-height: 0; }
  .week { overflow: auto; }
  section { padding: 64px 0; }
  .hero-grid { padding: 80px 0 40px; }
}

.hp{position:absolute;left:-9999px;height:0;overflow:hidden;opacity:0;pointer-events:none;}


/* WordPress front-end cleanup */
html { margin-top: 0 !important; }
body { overflow-x: hidden; }
#wpadminbar, .wp-block-group, .skip-link { display: none !important; }
img, video { max-width: 100%; height: auto; }
.feature-tile img, .photo, .work-grid img, .hero-bg {
  background: #111;
}
.feature { align-items: stretch; }
.feature-tile img { height: 280px; object-fit: cover; }
.work-grid img { width: 100%; height: 220px; object-fit: cover; display: block; }
.photo { height: min(520px, 70vw); object-fit: cover; }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr !important; }
  .feature-tile img, .photo { height: 220px; }
  .hero { min-height: 86vh; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
}

.social-studio {
  background: #f5f5f7;
  border: 0;
  padding: 32px;
}
.social-studio .grid-2 { gap: 20px; }
.social-studio .field input,
.social-studio .field textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
}
.social-board {
  background: #f5f5f7;
  min-height: 220px;
}

.hero-anim {
  animation: maeRise .9s cubic-bezier(.22,1,.36,1) both;
}
.hero-anim.delay { animation-delay: .12s; }
@keyframes maeRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.in { opacity: 1; transform: none; }
.feature-tile img, .photo, .work-card img {
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.feature-tile:hover img, .work-card:hover img, .photo:hover {
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim, .reveal { animation: none; opacity: 1; transform: none; }
  .feature-tile img, .photo, .work-card img { transition: none; }
}

.quote-band { background:#000; color:#fff; padding:88px 0; text-align:center; }
.quote-mark { font-size:clamp(28px,4.5vw,48px); letter-spacing:-.04em; line-height:1.15; max-width:18ch; margin:0 auto 16px; font-weight:600; }
.stats-band { background:#f5f5f7; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; padding:36px 0; text-align:center; }
.stats strong { display:block; font-size:40px; letter-spacing:-.04em; }
.stats span { color:var(--muted); font-size:13px; }
.landlord-band { background:#fff; padding:72px 0; }
.mob-bar { display:none; }
@media (max-width:800px) {
  .stats { grid-template-columns:repeat(2,1fr); }
  .mob-bar {
    display:grid; grid-template-columns:1fr 1fr 1fr;
    position:fixed; left:0; right:0; bottom:0; z-index:40;
    background:#000; padding:10px 10px 14px; gap:8px;
  }
  .mob-bar a {
    text-align:center; color:#fff; border-radius:980px; padding:12px 8px;
    font-size:14px; font-weight:600; background:#1d1d1f;
  }
  .mob-bar a.on { background:var(--blue); }
  body { padding-bottom:72px; }
}
