/* Mister Sparky - site styles
   Brand: red #ED1C24, yellow #FECD08, near-black #1A1D1F, Lato */

:root {
  --red: #ED1C24;
  --red-dark: #C4151C;
  --yellow: #FECD08;
  --ink: #1A1D1F;
  --body: #3A3F43;
  --grey: #6D6E71;
  --line: #E2E5E7;
  --tint: #F6F7F8;
  --white: #fff;
  --wrap: 1140px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Lato, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

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

a { color: var(--red); }
a:hover { color: var(--red-dark); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink);
  color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- topbar */

.topbar { background: var(--ink); color: #C9CDD0; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar-tag { letter-spacing: .02em; }
.topbar-phone { color: var(--yellow); font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar-phone:hover { color: #fff; }

/* ---------------------------------------------------------------- header */

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.logo img { display: block; width: auto; max-height: 62px; }

.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 10px 14px; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em;
  border-radius: var(--radius);
}
.site-nav a:hover, .site-nav a.active { color: var(--red); background: var(--tint); }

.has-children { position: relative; }
.site-nav .submenu {
  display: none; position: absolute; left: 0; top: 100%;
  grid-template-rows: repeat(7, auto); grid-auto-flow: column;
  grid-auto-columns: minmax(210px, max-content);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0,0,0,.10); padding: 8px 0;
}
.site-nav .has-children:hover .submenu,
.site-nav .has-children:focus-within .submenu { display: grid; }
.site-nav .submenu a { text-transform: none; letter-spacing: 0; font-weight: 400; padding: 9px 18px; border-radius: 0; }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,14,15,.93) 0%, rgba(12,14,15,.82) 42%, rgba(12,14,15,.28) 100%);
}
.hero .wrap { position: relative; padding: 78px 0 84px; }
.hero h1 { color: #fff; margin: 0 0 22px; max-width: 15em; }
.hero-lead {
  margin: 0; max-width: 38em; font-size: 18px; line-height: 1.55;
  color: rgba(255,255,255,.90);
  border-left: 3px solid var(--yellow); padding-left: 18px;
}
.hero + main { padding-top: 46px; }

/* ------------------------------------------------------------------ main */

main { padding: 48px 0 56px; }

h1 {
  font-size: 40px; line-height: 1.15; font-weight: 900; color: var(--ink);
  margin: 0 0 28px; letter-spacing: -.01em;
}
h1::after {
  content: ""; display: block; width: 68px; height: 4px;
  background: var(--red); margin-top: 18px; border-radius: 2px;
}

.prose { max-width: 820px; }
.prose h2 { font-size: 28px; font-weight: 900; color: var(--ink); margin: 44px 0 14px; }
.prose h3 { font-size: 22px; font-weight: 700; color: var(--ink); margin: 38px 0 12px; }
.prose h4 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose img { border-radius: var(--radius); margin: 8px 0 24px; }

.prose blockquote {
  margin: 24px 0; padding: 20px 24px; background: var(--tint);
  border-left: 4px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p { margin: 0; font-size: 18px; }

.prose table { border-collapse: collapse; width: 100%; margin: 0 0 24px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; color: var(--ink); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; font-size: 16px;
  text-transform: uppercase; letter-spacing: .04em; border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ------------------------------------------------------------------- cta */

.cta { background: var(--ink); color: #fff; padding: 52px 0; text-align: center; }
.cta h2 { font-size: 30px; font-weight: 900; margin: 0 0 10px; color: #fff; }
.cta p { margin: 0 0 22px; color: #C9CDD0; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: #101315; color: #A8ADB1; padding: 48px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-bottom: 36px; }
.site-footer h3 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.site-footer p { margin: 0 0 12px; }
.site-footer a { color: var(--yellow); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #23282B; padding-top: 18px; padding-bottom: 22px; font-size: 14px; }
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------- mobile callbar */

.call-bar { display: none; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  body.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav a { padding: 13px 20px; border-radius: 0; }
  .site-nav .submenu {
    display: flex; flex-direction: column; position: static; border: 0;
    box-shadow: none; padding: 0 0 6px 16px; min-width: 0;
  }
  .site-nav .submenu a { padding: 9px 20px; color: var(--grey); }
  .site-header .wrap { min-height: 72px; flex-wrap: wrap; position: relative; }

  .hero .wrap { padding: 46px 0 50px; }
  .hero-lead { font-size: 16px; padding-left: 14px; }
  .hero + main { padding-top: 30px; }

  h1 { font-size: 30px; }
  .prose h2 { font-size: 24px; }
  .prose h3 { font-size: 20px; }
  main { padding: 32px 0 40px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .topbar-tag { display: none; }
  .topbar .wrap { justify-content: flex-end; }

  .call-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--red); color: #fff; text-align: center; padding: 15px 10px;
    font-weight: 700; text-decoration: none; text-transform: uppercase;
    letter-spacing: .04em; box-shadow: 0 -2px 12px rgba(0,0,0,.18);
  }
  body { padding-bottom: 56px; }
}

@media print {
  .topbar, .site-nav, .cta, .call-bar, .menu-toggle { display: none; }
}

/* ------------------------------------------------------------- enquiry form */

.enquiry { margin: 26px 0 8px; max-width: 700px; }
.enquiry .field { margin-bottom: 20px; border: 0; padding: 0; }
.enquiry .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.enquiry label, .enquiry legend {
  display: block; font-weight: 700; color: var(--ink); margin-bottom: 7px; font-size: 15px;
}
.enquiry input[type="text"], .enquiry input[type="tel"], .enquiry input[type="email"],
.enquiry select, .enquiry textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1px solid #C7CCD0; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus {
  outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(237,28,36,.14);
}
.enquiry textarea { resize: vertical; }
.enquiry .checks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 18px;
}
.enquiry .checks label {
  font-weight: 400; margin: 0; display: flex; align-items: center; gap: 9px; padding: 4px 0;
}
.enquiry .checks input { width: 18px; height: 18px; accent-color: var(--red); }
.enquiry input[type="file"] { font-size: 15px; }
.enquiry .hint { font-size: 14px; color: var(--grey); margin: 8px 0 0; }
.enquiry button { margin-top: 6px; cursor: pointer; }
.honeypot { position: absolute !important; left: -9999px !important; }

@media (max-width: 640px) {
  .enquiry .field-row { grid-template-columns: 1fr; gap: 0; }
}
