/* ==========================================================================
   86 ELECTRICS — SITE STYLESHEET

   BRAND TOKENS live in :root below. When James's final logo/colours land:
     1. Replace /assets/logo.jpg with the new logo file (same name is easiest,
        or update the src="assets/logo.jpg" references across the HTML files).
     2. Edit the --sun-1..4 and --ink colours below to match the new palette.
     3. Swap --font-display / --font-body if the new brand uses different
        typefaces (just change the Google Fonts <link> in each page's <head>
        to match).
   Everything else in this file reads from these variables, so a palette
   swap here should ripple through the whole site.
   ========================================================================== */

:root {
  /* --- Placeholder brand palette, lifted from the current logo --- */
  --ink: #181e2b;          /* primary dark / header & footer bg */
  --ink-2: #10141b;        /* darker dark, for depth on dark sections */
  --sun-1: #f2a65a;        /* gradient stop 1 — amber */
  --sun-2: #e8806e;        /* gradient stop 2 — coral */
  --sun-3: #c97b95;        /* gradient stop 3 — rose */
  --sun-4: #8f72b0;        /* gradient stop 4 — violet */
  --sunset: linear-gradient(90deg, var(--sun-1) 0%, var(--sun-2) 35%, var(--sun-3) 65%, var(--sun-4) 100%);

  /* --- Paper / light section colours --- */
  --paper: #faf8f4;
  --paper-2: #f1ede4;
  --line: #e2dccd;

  /* --- Text --- */
  --text: #1e2230;
  --text-muted: #5c6172;
  --text-on-dark: #f4f2ec;
  --text-on-dark-muted: #b7bccb;

  /* --- Type --- */
  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* --- Layout --- */
  --wrap: 1080px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
body.has-sticky-bar { padding-bottom: 64px; }
@media (min-width: 701px) { body.has-sticky-bar { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-weight: 700; }

p { margin: 0 0 1em; max-width: 68ch; }
.center p { margin-left: auto; margin-right: auto; }

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

.center { text-align: center; }

/* ---- buttons ---- */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--sunset) border-box;
  color: var(--text);
  border: 2px solid transparent;
  padding: 13px 23px;
}
.btn-primary:hover { box-shadow: 0 6px 20px -6px rgba(232, 128, 110, 0.55); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--text-on-dark); }

/* ---- stripe flourish — echoes the sunset stripes under the "86" in the logo ---- */
.stripes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 120px;
  margin: 0 auto 24px;
}
.stripes span { height: 4px; border-radius: 2px; background: var(--sunset); }
.stripes span:nth-child(1) { width: 100%; }
.stripes span:nth-child(2) { width: 78%; margin-left: 11%; }
.stripes span:nth-child(3) { width: 56%; margin-left: 22%; }

/* ---- header ---- */
.site-header {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 20px 0;
  position: relative;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--text-on-dark);
  flex-shrink: 0;
}
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.005em;
}
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  text-decoration: none;
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { color: var(--text-on-dark); }
.header-phone {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  color: var(--text-on-dark);
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-home { display: none; }
.nav-toggle { display: none; }

@media (max-width: 700px) {
  .brand span { font-size: 0.95rem; }
  .header-phone { display: none; }

  /* hamburger */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1.5px solid rgba(244, 242, 236, 0.35);
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text-on-dark);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* dropdown menu */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-top: 1px solid rgba(244, 242, 236, 0.12);
    box-shadow: 0 16px 24px -12px rgba(0, 0, 0, 0.5);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a,
  .main-nav .nav-home {
    display: block;
    padding: 16px 24px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(244, 242, 236, 0.08);
    color: var(--text-on-dark);
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.active { color: var(--sun-1); }
}

/* ---- hero (dark) ---- */
.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 56px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  max-width: 25ch;
  margin: 0 auto 16px;
}
.hero p.lede {
  color: var(--text-on-dark-muted);
  font-size: 1.1rem;
  max-width: 58ch;
  margin: 0 auto 28px;
}
.hero-photo-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--sunset);
  padding: 3px;
  margin: 0 auto 22px;
}
.hero-photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--ink);
}
br.hero-break { display: none; }
@media (min-width: 701px) {
  br.hero-break { display: inline; }
}
.hero .btn-row { justify-content: center; margin-bottom: 0; }

/* ---- page banner (dark, shorter — used on sub-pages) ---- */
.page-banner {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 44px 0 48px;
  text-align: center;
}
.page-banner h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 10px; }
.page-banner p { color: var(--text-on-dark-muted); max-width: 52ch; margin: 0 auto; }

/* ---- sections ---- */
section.block { padding: 56px 0; }
section.block.alt { background: var(--paper-2); }
.block h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 14px; }
.block .lede { color: var(--text-muted); max-width: 60ch; margin-bottom: 28px; }
.block .lede.center { margin-left: auto; margin-right: auto; }

/* ---- trust strip ---- */
.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.trust-strip .item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}
.trust-strip svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--sun-2); }

/* ---- cards / grids ---- */
.grid { display: grid; gap: 18px; }
.grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid.cols-5, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.card.spec {
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card.spec:hover { border-color: var(--sun-3); transform: translateY(-2px); }
.card.spec svg { width: 30px; height: 30px; color: var(--sun-2); margin-bottom: 12px; }
.card.spec h3 { font-size: 1.02rem; margin: 0 0 6px; }
.card.spec p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ---- reviews ---- */
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.review-card .stars { color: var(--sun-2); letter-spacing: 2px; margin-bottom: 8px; font-size: 0.9rem; }
.review-card p.quote { font-size: 0.95rem; margin-bottom: 10px; }
.review-card .who { font-size: 0.82rem; color: var(--text-muted); }
.reviews-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--sun-2);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 12px 0 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---- footer CTA + footer ---- */
.footer-cta {
  background: var(--ink);
  color: var(--text-on-dark);
  text-align: center;
  padding: 52px 0 40px;
}
.footer-cta h2 { color: var(--text-on-dark); margin-bottom: 24px; }
.footer-cta .btn-row { justify-content: center; margin-bottom: 8px; }

.site-footer {
  background: var(--ink-2);
  color: var(--text-on-dark-muted);
  padding: 28px 0;
  font-size: 0.82rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.footer-links a { text-decoration: none; color: var(--text-on-dark-muted); }
.footer-links a:hover { color: var(--text-on-dark); }
.footer-legal { max-width: 46ch; line-height: 1.7; }

/* ---- sticky mobile call/whatsapp bar ---- */
.sticky-bar {
  display: none;
}
@media (max-width: 700px) {
  .sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 40;
    background: var(--ink);
    border-top: 1px solid rgba(244,242,236,0.12);
  }
  .sticky-bar a {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--text-on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .sticky-bar a:first-child { border-right: 1px solid rgba(244,242,236,0.12); }
  .sticky-bar svg { width: 16px; height: 16px; }

  /* homepage: hidden until the hero buttons have scrolled out of view */
  .has-hero-cta .sticky-bar {
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
  }
  .has-hero-cta .sticky-bar.is-visible {
    transform: none;
    visibility: visible;
  }
}

/* ---- long-form content (services / EICR / EV / pool / terms) ---- */
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.content-narrow { max-width: 68ch; margin: 0 auto; }

/* ---- icon steps (EV "How it works") ---- */
.steps { list-style: none; margin: 18px 0 0; padding: 0; }
.prose .steps { padding-left: 0; }
.steps li,
.prose .steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  padding-bottom: 26px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--sun-2), var(--sun-4));
  opacity: 0.45;
}
.step-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sunset);
  padding: 2.5px;
}
.step-icon > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
}
.step-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.7;
  color: var(--sun-2);
}
.step-text { padding-top: 15px; line-height: 1.5; }
.step-text strong { font-family: var(--font-display); font-weight: 600; }
@media (max-width: 560px) {
  .steps li, .prose .steps li { gap: 14px; }
  .step-text { padding-top: 6px; }
}

/* ---- placeholder figures (pricing) — obviously "fill me in" ---- */
.fillin {
  border-bottom: 2px dashed var(--sun-2);
  color: var(--sun-2);
  font-weight: 600;
  padding: 0 2px;
}

table.rates {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.94rem;
}
table.rates th, table.rates td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.rates th { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 640px) {
  table.rates { font-size: 0.87rem; }
  table.rates th, table.rates td { padding: 10px 6px; }
}

.note-box {
  background: var(--paper-2);
  border-left: 3px solid var(--sun-3);
  border-radius: 4px;
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 24px 0;
}

/* ---- terms page ---- */
.terms-meta { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 2em; }
.terms-toc {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 2.5em;
  font-size: 0.92rem;
}
.terms-toc h2 { font-size: 0.95rem; margin-bottom: 10px; }
.terms-toc ul { columns: 2; column-gap: 24px; padding-left: 0; list-style: none; margin: 0; }
.terms-toc li { margin-bottom: 0.4em; break-inside: avoid; }
@media (max-width: 640px) { .terms-toc ul { columns: 1; } }
.terms-toc a { text-decoration: none; color: var(--text); }
.terms-toc a:hover { color: var(--sun-2); }
.prose h2 { scroll-margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
