/* Quality Electric — dark navy + electric yellow. Mobile first. */
:root {
  --navy: #0c1f33;
  --navy-dark: #081627;
  --yellow: #ffd60a;
  --ink: #16222e;
  --muted: #5b6b7b;
  --line: #dde4ec;
  --bg: #f5f8fb;
  --white: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 3.4rem; /* room for the fixed call button */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }
h2 { font-size: 1.75rem; margin: 0 0 1.5rem; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid var(--yellow); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  background: var(--navy);
  padding: 0.6rem 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--white); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav { display: none; }
.nav a { color: var(--white); text-decoration: none; margin-left: 1.2rem; opacity: 0.9; }
.nav a:hover { opacity: 1; color: var(--yellow); }
.top .btn-call { margin-left: auto; padding: 0.55rem 1rem; font-size: 0.95rem; }

/* Hero */
.hero {
  background: linear-gradient(rgba(8, 22, 39, 0.82), rgba(8, 22, 39, 0.82)),
              url("images/hero.png") center / cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}
.kicker { color: var(--yellow); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9rem; }
.hero h1 { color: var(--white); font-size: 2.6rem; margin: 0.5rem 0; }
.tagline { font-size: 1.25rem; font-weight: 600; margin: 0 0 1rem; }
.hero-text { max-width: 620px; margin: 0 auto 2rem; opacity: 0.95; }
.hero-cta .btn { margin: 0.3rem; }

/* Sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--white); }
.prose p { max-width: 65ch; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.note { color: var(--muted); }
.licence { font-weight: 700; color: var(--navy); }

/* Cards (services + testimonials) */
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.quote blockquote { margin: 0 0 0.8rem; font-size: 1.02rem; }
.quote figcaption { font-weight: 700; color: var(--navy); }
.quote figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.g-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.15s ease;
}
.g-item:hover img { transform: scale(1.02); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(4, 10, 18, 0.94);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 8px; }
.lb-cap { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; color: var(--white); }
.lightbox button {
  position: absolute;
  background: none; border: none;
  color: var(--white);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
}
.lb-close { top: 0.4rem; right: 0.4rem; }
.lb-prev { left: 0.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.2rem; top: 50%; transform: translateY(-50%); }

/* Service-area towns */
.towns { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.towns a {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.95rem;
}
.towns a:hover { border-color: var(--yellow); background: var(--yellow); color: var(--navy-dark); }

/* Google reviews box */
.g-box {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  color: var(--muted);
}
.g-summary { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.g-review { border-top: 1px solid var(--line); padding: 0.8rem 0; color: var(--ink); }
.g-stars { color: #f5b301; margin: 0; }
.g-who { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { margin-bottom: 0.6rem; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; }
.form label { display: block; font-weight: 600; margin-bottom: 1rem; color: var(--navy); }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 0.3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit;
}
.form input:focus, .form textarea:focus { outline: 3px solid rgba(255, 214, 10, 0.5); border-color: var(--yellow); }
.form .hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-status { margin: 0.8rem 0 0; font-weight: 600; color: var(--navy); }

/* Footer */
.footer { background: var(--navy); color: #c7d3e0; padding: 3rem 0 1.5rem; }
.footer a { color: var(--white); }
.footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.footer-brand { color: var(--white); font-weight: 800; font-size: 1.15rem; margin-top: 0; }
.copy { text-align: center; color: #7f93a8; font-size: 0.85rem; margin: 2rem 0 0; }

/* Big tappable call button, fixed at the bottom on phones */
.mobile-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: block;
  background: var(--yellow);
  color: var(--navy-dark);
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 1rem;
  text-decoration: none;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
}

/* Bigger screens */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .mobile-call { display: none; }
  .nav { display: block; margin-left: auto; }
  .top .btn-call { margin-left: 1rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  #testimonials .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 2fr 1fr; }
  .hero h1 { font-size: 3.4rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Service cards that carry a video (content/site.md third field) */
a.card-video { display: block; color: inherit; text-decoration: none; cursor: pointer; }
a.card-video:hover, a.card-video:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
a.card-video .watch { display: inline-block; margin-top: .75rem; font-weight: 600; color: var(--accent, #f5c400); }
.vbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.vbox.open { display: flex; }
.vbox video, .vbox iframe { max-width: min(96vw, 960px); max-height: 80vh; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; }
.vbox .lb-close { position: absolute; top: .5rem; right: .75rem; }
