/* ==========================================================================
   Local Plumbers Co — site.css
   Design system ported from The Electricians plumbing section (Avada/Fusion).
   Palette, type scale and section rhythm preserved exactly.
   ========================================================================== */

:root {
  --ink:        #111111;
  --red:        #c53030;
  --red-dark:   #9b2626;
  --amber:      #F5A623;
  --grey:       #F5F5F5;
  --white:      #ffffff;
  --rule:       #e3e3e3;
  --rule-light: rgba(17, 17, 17, 0.09);
  --rule-dark:  rgba(255, 255, 255, 0.10);
  --body:       #555555;
  --lead:       #444444;
  --muted:      #888888;
  --tint-row:   #F7F7F7;
  --tint-pick:  #fffaf5;
  --tint-pill:  #fff5ec;
  --green:      #2e7d32;

  --wrap: 1240px;
  --stack: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset ------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  font-family: var(--stack);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
}

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

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

h1, h2, h3 { margin: 0; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--white);
  padding: 12px 20px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* Bands ------------------------------------------------------------------
   Every section is a band. Colour sets the rhythm: white, grey, ink, red. */

.band {
  border-top: 1px solid var(--rule-light);
  padding: 56px 4%;
  background: var(--white);
}
.band > .wrap { max-width: var(--wrap); margin: 0 auto; }

.band--grey { background: var(--grey); }
.band--ink  { background: var(--ink); border-top-color: var(--rule-dark); }
.band--red  { background: var(--red); border-top-color: var(--rule-dark); }

.band--tight { padding-top: 34px; padding-bottom: 34px; }
.band--ribbon { padding-top: 18px; padding-bottom: 18px; }

.band--ink h2, .band--ink h3, .band--red h2, .band--red h3 { color: var(--white); }
.band--ink p { color: rgba(255, 255, 255, 0.70); }
.band--red p { color: #ffe5e5; }

/* Split layouts ---------------------------------------------------------- */

.split { display: flex; flex-wrap: wrap; gap: 0 5%; }
.split > * { flex: 1 1 320px; min-width: 0; }

.split--3-2 > :first-child { flex: 3 1 420px; }
.split--3-2 > :last-child  { flex: 2 1 300px; }
.split--2-3 > :first-child { flex: 2 1 300px; }
.split--2-3 > :last-child  { flex: 3 1 420px; }
.split--2-1 > :first-child { flex: 2 1 420px; }
.split--2-1 > :last-child  { flex: 1 1 260px; }

.split--center { align-items: center; }

/* Section headings -------------------------------------------------------
   The red left-bar heading block is the signature device of this system. */

.lede { border-left: 4px solid var(--red); padding-left: 22px; }
.band--ink .lede, .band--ink .lede--amber { border-left-color: var(--amber); }
.band--red .lede { border-left-color: var(--white); }
.lede--amber { border-left-color: var(--amber); }
.lede--heavy { border-left-width: 5px; padding-left: 26px; }

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
}
.eyebrow--amber { color: var(--amber); }
.eyebrow--light { color: rgba(255, 255, 255, 0.80); }

h1, .h1 {
  font-size: clamp(32px, 5.2vw, 48px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -1.3px;
  color: var(--white);
  margin: 0 0 20px;
}

h2, .h2 {
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.8px;
  color: var(--ink);
}

.h2--sm { font-size: clamp(24px, 3.2vw, 30px); line-height: 1.18; letter-spacing: -0.7px; }

h3 { font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--ink); }

.lede p, .band-intro {
  font-size: 17px;
  line-height: 1.7;
  margin: 14px 0 0;
}
.band--ink .band-intro { color: rgba(255, 255, 255, 0.66); }

.prose p { font-size: 16px; line-height: 1.8; margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose p.first { font-size: 17px; color: var(--lead); }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 34px;
  border: 1px solid var(--red);
  border-radius: 5px;
  margin: 22px 10px 0 0;
}
.btn:hover, .btn:focus { background: var(--red-dark); border-color: var(--red-dark); }

.btn--invert { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--invert:hover, .btn--invert:focus { background: #f2f2f2; color: var(--red-dark); border-color: #f2f2f2; }

/* Hero ------------------------------------------------------------------- */

.hero {
  padding: 0;
  border-top: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(17,17,17,0.90) 0%, rgba(17,17,17,0.68) 100%),
    var(--hero-img, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero > .wrap { max-width: var(--wrap); margin: 0 auto; }
.hero .hero-copy { padding: 60px 5% 60px 6%; }
.hero .hero-form { padding: 40px 6% 40px 4%; }
.hero p { font-size: 19px; color: rgba(255, 255, 255, 0.78); line-height: 1.65; margin: 0 0 22px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.tag {
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.40);
  color: var(--amber);
  padding: 7px 15px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.licence-line {
  margin-top: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
}

/* Form card -------------------------------------------------------------- */

.form-card {
  background: var(--white);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}
.form-card .pill {
  display: inline-block;
  background: var(--tint-pill);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
}
.form-card h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 14px 0 6px;
  line-height: 1.2;
}
.form-card .sub { font-size: 14px; color: #666666; margin: 0; }
.form-mount { margin-top: 18px; }

/* Credential ribbon ------------------------------------------------------ */

.ribbon { display: flex; flex-wrap: wrap; gap: 14px; }
.ribbon > div { flex: 1 1 210px; padding: 6px 22px; border-left: 2px solid var(--red); }
.ribbon dt {
  font-size: 10px; font-weight: 800; color: var(--muted);
  letter-spacing: 1.7px; text-transform: uppercase; margin: 0 0 5px;
}
.ribbon dd { font-size: 15px; font-weight: 800; color: var(--ink); margin: 0; }

/* Stat row --------------------------------------------------------------- */

.stats { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.stats > div { flex: 1 1 200px; border-left: 3px solid var(--red); padding: 4px 0 4px 18px; }
.stat-n { font-size: 28px; font-weight: 900; color: var(--ink); line-height: 1.1; letter-spacing: -1px; }
.stat-l {
  font-size: 12px; font-weight: 800; color: var(--muted);
  letter-spacing: 1.3px; text-transform: uppercase; margin-top: 6px;
}

/* Service index ---------------------------------------------------------- */

.index { margin-top: 26px; }
.index-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 20px;
  padding: 20px 6px; border-bottom: 1px solid var(--rule);
}
.index-n { flex: 0 0 34px; color: var(--amber); font-weight: 800; font-size: 13px; letter-spacing: 1px; }
.index-t { flex: 1 1 250px; font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.index-t a { color: var(--ink); text-decoration: none; }
.index-t a:hover, .index-t a:focus { color: var(--red); text-decoration: underline; }
.index-d { flex: 2 1 330px; font-size: 14px; line-height: 1.65; }
.index-go { flex: 0 0 auto; color: var(--red); font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; }

/* Numbered deep-dive (sequence only) ------------------------------------- */

.deep { margin-top: 24px; }
.deep-item {
  display: flex; flex-wrap: wrap; gap: 26px;
  padding: 28px 0; border-top: 1px solid var(--rule);
}
.band--ink .deep-item { border-top-color: var(--rule-dark); }
.deep-n { flex: 0 0 70px; font-size: 44px; font-weight: 900; color: var(--amber); line-height: 0.9; letter-spacing: -2px; }
.deep-b { flex: 1 1 520px; }
.deep-b h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.3px; margin: 0 0 10px; }
.deep-b p { font-size: 15px; line-height: 1.75; margin: 0; }

/* Label/body rows (unnumbered) ------------------------------------------- */

.rows { margin-top: 26px; }
.row {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding: 24px 0; border-top: 1px solid var(--rule);
}
.band--ink .row { border-top-color: var(--rule-dark); }
.row-k { flex: 1 1 240px; }
.row-k .k-label {
  font-size: 11px; font-weight: 800; color: var(--red);
  letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 6px;
}
.band--ink .row-k .k-label { color: var(--amber); }
.row-k .k-title { font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.band--ink .row-k .k-title { color: var(--white); }
.row-v { flex: 2 1 400px; font-size: 15px; line-height: 1.75; }

/* Scenario list ---------------------------------------------------------- */

.qa { margin-top: 26px; }
.qa-item { display: flex; flex-wrap: wrap; gap: 24px; padding: 22px 0; border-top: 1px solid var(--rule); }
.qa-item h3 { flex: 1 1 280px; font-size: 19px; line-height: 1.35; letter-spacing: -0.2px; }
.qa-item div { flex: 2 1 400px; font-size: 15px; line-height: 1.75; }

/* Checkmark scope list --------------------------------------------------- */

.scope { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 24px; }
.scope > ul { flex: 1 1 300px; list-style: none; margin: 0; padding: 0; }
.scope li {
  display: flex; gap: 11px; padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px; color: var(--ink); font-weight: 600; line-height: 1.5;
}
.scope li::before { content: "\2713"; color: var(--red); font-weight: 900; flex-shrink: 0; }

/* Do / do-not cards ------------------------------------------------------ */

.advice { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.advice-card {
  flex: 1 1 330px; background: var(--white);
  border: 1px solid var(--rule); border-radius: 8px;
  padding: 24px;
}
.advice-card h3 { font-size: 20px; letter-spacing: -0.3px; margin: 0 0 6px; }
.advice-card ul { list-style: none; margin: 0; padding: 0; }
.advice-card li {
  display: flex; gap: 12px; padding: 12px 0;
  border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.7;
}
.advice-card li::before { font-weight: 900; flex-shrink: 0; font-size: 15px; }
.advice--do { border-top: 4px solid var(--green); }
.advice--do li::before { content: "\2713"; color: var(--green); }
.advice--dont { border-top: 4px solid var(--red); background: #fffafa; }
.advice--dont li::before { content: "\2717"; color: var(--red); }

/* Symptom cards ---------------------------------------------------------- */

.cards { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.card {
  flex: 1 1 290px; background: var(--white);
  border: 1px solid var(--rule); border-radius: 8px; padding: 22px;
}
.card-n {
  font-size: 11px; font-weight: 900; color: var(--amber);
  letter-spacing: 1.8px; text-transform: uppercase; margin: 0 0 10px;
}
.card h3 { font-size: 18px; margin: 0 0 10px; }
.card-b { border-top: 1px solid var(--rule); padding-top: 12px; font-size: 14px; line-height: 1.7; }
.card-b strong {
  color: var(--red); font-size: 11px; letter-spacing: 1.4px;
  text-transform: uppercase; display: block; margin-bottom: 5px;
}

/* Process steps ---------------------------------------------------------- */

.steps { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.step { flex: 1 1 230px; border-top: 3px solid var(--red); padding-top: 18px; }
.step-n { font-size: 12px; font-weight: 800; color: var(--amber); letter-spacing: 1.6px; margin: 0 0 8px; }
.step h3 { font-size: 17px; margin: 0 0 8px; }
.step p { font-size: 14px; line-height: 1.7; margin: 0; }

/* Choice tiles (non-sequential) ------------------------------------------ */

.tiles { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.tile { flex: 1 1 230px; border-top: 3px solid var(--ink); padding-top: 16px; }
.tile h3 { font-size: 17px; margin: 0 0 8px; }
.tile p { font-size: 14px; line-height: 1.7; margin: 0; }

/* Comparison table ------------------------------------------------------- */

.table-scroll { margin-top: 26px; overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; }
table.cmp th {
  padding: 14px 16px; background: var(--ink); color: var(--white);
  text-align: left; font-size: 14px; font-weight: 700;
}
table.cmp th:first-child { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; }
table.cmp th.pick { background: var(--red); }
table.cmp td {
  padding: 14px 16px; border-bottom: 1px solid var(--rule);
  font-size: 14px; color: var(--body); line-height: 1.6;
}
table.cmp td:first-child {
  font-size: 12px; font-weight: 800; color: var(--ink);
  text-transform: uppercase; letter-spacing: 1px; background: var(--tint-row);
}
table.cmp td.pick { background: var(--tint-pick); }

/* Emergency grid --------------------------------------------------------- */

.emergency { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
.emergency > div:first-child { flex: 1 1 330px; }
.emergency-list {
  flex: 1 1 330px; border-left: 2px solid rgba(255, 255, 255, 0.25);
  padding-left: 26px; list-style: none; margin: 0;
}
.emergency-list li {
  color: var(--white); font-size: 14px; font-weight: 600;
  padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* Service-area pills ----------------------------------------------------- */

.pills { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; list-style: none; margin: 0; }
.pills li {
  border: 1px solid var(--rule); background: var(--white); color: var(--ink);
  padding: 9px 18px; border-radius: 3px; font-size: 15px; font-weight: 600;
}

/* FAQ -------------------------------------------------------------------- */

.faq { margin-top: 6px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  font-size: 19px; font-weight: 600; color: var(--ink);
  padding: 18px 40px 18px 0; cursor: pointer; position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%); color: var(--red); font-size: 22px; font-weight: 700;
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover, .faq summary:focus-visible { color: var(--red); }
.faq .answer { padding: 0 40px 20px 0; font-size: 15px; line-height: 1.8; }
.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Header ----------------------------------------------------------------- */

.site-header { background: var(--ink); border-bottom: 1px solid var(--rule-dark); }
.site-header .wrap {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 4%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
}
.brand { text-decoration: none; margin-right: auto; }
.brand b { display: block; color: var(--white); font-size: 20px; font-weight: 900; letter-spacing: -0.5px; }
.brand span {
  display: block; color: var(--amber); font-size: 10px;
  font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase;
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover, .site-nav a:focus { color: var(--amber); }
.site-nav a[aria-current="page"] { color: var(--amber); }
.header-cta {
  background: var(--red); color: var(--white); text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 11px 22px; border-radius: 5px;
}
.header-cta:hover, .header-cta:focus { background: var(--red-dark); }

/* Footer ----------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.66); padding: 54px 4% 34px; }
.site-footer .wrap { max-width: var(--wrap); margin: 0 auto; }
.site-footer h2 {
  font-size: 12px; font-weight: 800; color: var(--amber);
  letter-spacing: 2.2px; text-transform: uppercase; margin: 0 0 14px;
}
.footer-cols { display: flex; flex-wrap: wrap; gap: 36px; }
.footer-cols > div { flex: 1 1 240px; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--amber); }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 2; }
.site-footer address { font-style: normal; font-size: 15px; line-height: 1.8; }
.footer-legal {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule-dark);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.45);
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 860px) {
  .band { padding: 40px 6%; }
  .hero .hero-copy { padding: 48px 6% 34px; }
  .hero .hero-form { padding: 0 6% 48px; }
  .split { gap: 0; }
  .emergency-list { border-left: 0; padding-left: 0; }
  table.cmp thead { position: absolute; left: -9999px; }
  table.cmp tr { display: block; border-bottom: 2px solid var(--ink); margin-bottom: 16px; }
  table.cmp td { display: block; border-bottom: 1px solid var(--rule); }
  table.cmp td::before {
    content: attr(data-label); display: block;
    font-size: 10px; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
  }
  table.cmp td:first-child::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Conversion layer
   Added after the first build. Trust-led, no stock photography.
   ========================================================================== */

/* Typographic hero (replaces the photo hero) ----------------------------- */

.hero--type {
  background: var(--ink);
  background-image: none;
  border-top: 6px solid var(--amber);
}
.hero--type .hero-copy { padding: 64px 5% 64px 6%; }
.hero--type .hero-form { padding: 44px 6% 44px 0; }

.hero-kicker {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--amber);
  margin: 0 0 20px;
  max-width: 34ch;
}

.hero--type h1 { letter-spacing: -1.6px; }

.hero--type p.hero-body {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
}

/* Rating ----------------------------------------------------------------- */

.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 22px; }
.rating .score { font-size: 30px; font-weight: 900; color: var(--white); line-height: 1; letter-spacing: -1px; }
.rating .stars { color: var(--amber); font-size: 19px; letter-spacing: 3px; }
.rating .count { font-size: 14px; color: rgba(255, 255, 255, 0.62); }
.rating .count strong { color: rgba(255, 255, 255, 0.90); font-weight: 700; }

.rating--light .score { color: var(--ink); }
.rating--light .count { color: var(--body); }
.rating--light .count strong { color: var(--ink); }

.rating--compact { margin: 0 0 14px; }
.rating--compact .score { font-size: 22px; }
.rating--compact .stars { font-size: 15px; }

/* Testimonials ----------------------------------------------------------- */

.quotes { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.quote {
  flex: 1 1 300px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  padding: 24px;
}
.quote .stars { color: var(--amber); font-size: 15px; letter-spacing: 3px; }
.quote blockquote {
  margin: 10px 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 500;
}
.quote cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--muted);
}

/* Promise strip ---------------------------------------------------------- */

.promise { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 8px; }
.promise > div { flex: 1 1 240px; }
.promise h3 { font-size: 17px; color: var(--white); margin: 0 0 8px; }
.promise p { font-size: 15px; line-height: 1.7; margin: 0; }
.promise .mark { color: var(--amber); font-size: 22px; font-weight: 900; line-height: 1; display: block; margin-bottom: 10px; }

/* Form reassurance ------------------------------------------------------- */

.form-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #6b6b6b;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.form-note strong { color: var(--ink); }

/* Sticky action bar (mobile) --------------------------------------------- */

.actionbar { display: none; }

@media (max-width: 860px) {
  body { padding-bottom: 76px; }
  .actionbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .actionbar a {
    flex: 1 1 0;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 8px;
    border-radius: 5px;
  }
  .actionbar .ab-call { background: var(--red); color: var(--white); }
  .actionbar .ab-form { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.45); }
}

/* Hierarchy: quiet the secondary sections --------------------------------
   Only the signature sections keep the full eyebrow-and-bar treatment. */

.lede--quiet { border-left: 0; padding-left: 0; }
.lede--quiet h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.6px; }

/* Service grid (replaces the 15-row index) -------------------------------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  padding: 24px 22px 20px;
  text-decoration: none;
}
.svc-card:hover, .svc-card:focus-visible { border-color: var(--red); }
.svc-card h3 { font-size: 18px; line-height: 1.3; margin: 0 0 10px; }
.svc-card p { font-size: 14px; line-height: 1.65; color: var(--body); margin: 0 0 16px; flex: 1 1 auto; }
.svc-card .go { font-size: 13px; font-weight: 800; color: var(--red); letter-spacing: 0.3px; }

.svc-more { margin-top: 34px; border-top: 1px solid var(--rule); padding-top: 24px; }
.svc-more h3 {
  font-size: 12px; font-weight: 800; color: var(--muted);
  letter-spacing: 1.7px; text-transform: uppercase; margin: 0 0 16px;
}
.svc-more ul {
  columns: 2; column-gap: 40px;
  list-style: none; margin: 0; padding: 0;
}
.svc-more li {
  break-inside: avoid;
  font-size: 14px; line-height: 1.6; color: var(--body);
  padding: 0 0 12px;
}
.svc-more li b { color: var(--ink); font-weight: 700; }

@media (max-width: 700px) { .svc-more ul { columns: 1; } }

/* Embedded lead form (iframe from WordPress) ------------------------------ */

.form-embed { margin: 0; }
.form-embed iframe {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color-scheme: normal;
}

.form-embed .form-note {
  border-top: 0;
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.form-embed .form-note strong { color: rgba(255, 255, 255, 0.85); }

.form-embed noscript p {
  background: var(--white); border-radius: 10px; padding: 24px;
  font-size: 16px; color: var(--ink);
}

@media (max-width: 860px) {
  .form-embed iframe { min-height: 700px; }
}

/* The widget needs room. Keep its column from collapsing too far. */
.hero .hero-form, .band--ink .form-embed { min-width: 0; }
.split > .hero-form { flex: 2 1 430px; }

/* Hero copy: breathing room at the narrower column width ------------------ */

.hero--type .hero-copy { padding: 58px 4% 58px 5%; }
.hero--type h1 { font-size: clamp(32px, 4.4vw, 46px); }
.hero--type p.hero-body { font-size: 17px; line-height: 1.75; }
.hero-kicker { max-width: 24ch; margin-bottom: 18px; }
.hero--type .tags { margin-bottom: 4px; }
.hero--type .btn { margin-top: 26px; }

@media (min-width: 861px) and (max-width: 1080px) {
  .hero--type h1 { font-size: 38px; letter-spacing: -1.1px; }
  .hero-kicker { font-size: 19px; }
  .hero--type p.hero-body { font-size: 16px; }
}

/* Closing CTA form column: match the hero, no left padding ---------------- */
#servicetitan .form-embed { padding-left: 0; }

/* Footer location maps ---------------------------------------------------- */

.footer-maps {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-dark);
}
.footer-maps > h2 {
  font-size: 12px; font-weight: 800; color: var(--amber);
  letter-spacing: 2.2px; text-transform: uppercase; margin: 0 0 20px;
}
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.map-card { min-width: 0; }
.map-card h3 {
  font-size: 17px; font-weight: 800; color: var(--white);
  margin: 0 0 6px; line-height: 1.3;
}
.map-card address {
  font-style: normal; font-size: 14px; line-height: 1.7;
  color: rgba(255, 255, 255, 0.62); margin: 0 0 14px;
}
.map-card iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 8px;
  filter: grayscale(1) contrast(0.95);
}
.map-card iframe:hover, .map-card iframe:focus-within { filter: none; }

@media (prefers-reduced-motion: reduce) {
  .map-card iframe { filter: grayscale(1); }
}
@media (max-width: 1040px) {
  .map-card iframe { height: 330px; }
}
@media (max-width: 720px) {
  .map-grid { grid-template-columns: 1fr; gap: 24px; }
  .map-card iframe { height: 280px; }
}

/* Breadcrumbs ------------------------------------------------------------- */

.crumbs { background: var(--ink); border-top: 1px solid var(--rule-dark); }
.crumbs .wrap { max-width: var(--wrap); margin: 0 auto; padding: 12px 4%; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, 0.28); }
.crumbs a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-weight: 600; }
.crumbs a:hover, .crumbs a:focus { color: var(--amber); }

/* ==========================================================================
   Conversion layer 2: centered CTAs, sticky header, scannable summaries
   ========================================================================== */

/* Sticky header: Call is always reachable -------------------------------- */

.site-header { position: sticky; top: 0; z-index: 80; }
.crumbs { position: relative; z-index: 1; }

/* Bigger, more confident buttons ----------------------------------------- */

.btn--lg {
  font-size: 20px;
  font-weight: 700;
  padding: 19px 44px;
  letter-spacing: -0.2px;
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover, .btn--ghost:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

/* Centered hero for inner pages ------------------------------------------ */

.hero--center {
  background: var(--ink);
  border-top: 6px solid var(--amber);
  padding: 0;
}
.hero--center .wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 66px 6% 60px;
  text-align: center;
}
.hero--center .rating { justify-content: center; }
.hero--center h1 { letter-spacing: -1.6px; margin-bottom: 18px; }
.hero--center .hero-kicker {
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}
.hero--center .hero-body {
  margin: 0 auto 26px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}
.hero--center .tags { justify-content: center; margin-bottom: 30px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.hero-actions .btn { margin: 0; }
.hero--center .licence-line { margin-top: 26px; }

/* Centered CTA band, used between content sections ------------------------ */

.cta-band { text-align: center; }
.cta-band .wrap { max-width: 760px; margin: 0 auto; }
.cta-band .eyebrow { color: var(--amber); }
.band--red .cta-band .eyebrow, .cta-band.band--red .eyebrow { color: rgba(255, 255, 255, 0.85); }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 auto 28px;
}
.cta-band .hero-actions { margin-top: 4px; }
.cta-band .licence-line { margin-top: 24px; }

/* At-a-glance strip: what we do, without paragraphs ---------------------- */

.glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.glance > div { background: var(--white); padding: 24px 22px; }
.glance dt {
  font-size: 11px; font-weight: 800; color: var(--red);
  letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 8px;
}
.glance dd {
  margin: 0; font-size: 16px; font-weight: 600;
  color: var(--ink); line-height: 1.45;
}
.glance .sub {
  display: block; margin-top: 6px;
  font-size: 13px; font-weight: 400; color: var(--body); line-height: 1.6;
}

/* Full-width form band --------------------------------------------------- */

.form-band .wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.form-band h2 { color: var(--white); margin-bottom: 12px; }
.form-band > .wrap > p {
  font-size: 17px; line-height: 1.7;
  margin: 0 auto 28px;
}
.form-band .form-embed { text-align: left; }
.form-band .form-embed .form-note { text-align: center; }

/* Looser reading rhythm so pages feel less dense -------------------------- */

.qa-item { padding: 26px 0; }
.deep-item { padding: 32px 0; }

/* Logo -------------------------------------------------------------------- */

.brand { display: block; margin-right: auto; line-height: 0; }
.brand img { display: block; width: 158px; height: auto; }
.site-header .wrap { padding-top: 10px; padding-bottom: 10px; }

.footer-brand { width: 230px; height: auto; margin: 0 0 16px; }

@media (max-width: 860px) {
  .brand img { width: 124px; }
  .footer-brand { width: 190px; }
}

/* Fix: tag pills were rendering list markers -------------------------------
   display:flex alone does not suppress ::marker in Chrome or Safari. */

.tags, .emergency-list, .scope > ul, .advice-card ul, .pills, .svc-more ul {
  list-style: none;
  padding-left: 0;
}
.tags li::marker, .pills li::marker { content: none; }

/* Fix: centre the section-level buttons ------------------------------------
   Any button that closes a full-width band now sits centred, matching the
   hero and the CTA bands. Buttons inside split columns stay with their text. */

.band > .wrap > .btn,
.band > .wrap > .hero-actions {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-top: 34px;
  text-align: center;
}
.band > .wrap > .hero-actions { display: flex; }

/* In a split column, the button follows the column's own alignment --------- */

.split .btn { margin-top: 26px; }

/* Two-up comparison cards (residential vs commercial) ---------------------- */

.compare { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.compare-card {
  flex: 1 1 340px; min-width: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  padding: 26px 24px;
}
.compare-card--alt { border-top-color: var(--ink); }
.compare-card > .kicker {
  font-size: 11px; font-weight: 900; color: var(--red);
  letter-spacing: 2px; text-transform: uppercase; margin: 0 0 8px;
}
.compare-card--alt > .kicker { color: var(--ink); }
.compare-card h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.3px; margin: 0 0 14px; }
.compare-card dl { margin: 0; }
.compare-card dt {
  font-size: 11px; font-weight: 800; color: var(--red);
  letter-spacing: 1.4px; text-transform: uppercase;
  margin: 0 0 4px; padding-top: 13px; border-top: 1px solid var(--rule);
}
.compare-card--alt dt { color: var(--ink); }
.compare-card dd { margin: 0 0 13px; font-size: 14px; color: var(--body); line-height: 1.7; }

/* Vertical process rail --------------------------------------------------- */

.rail { margin-top: 26px; border-left: 2px solid var(--rule); padding-left: 30px; margin-left: 16px; }
.band--ink .rail { border-left-color: var(--rule-dark); }
.rail-step { padding: 0 0 26px; }
.rail-step:last-child { padding-bottom: 0; }
.rail-step .n {
  font-size: 11px; font-weight: 900; color: var(--red);
  letter-spacing: 1.8px; text-transform: uppercase; margin: 0 0 6px;
}
.band--ink .rail-step .n { color: var(--amber); }
.rail-step h3 { font-size: 19px; margin: 0 0 6px; }
.rail-step p { font-size: 15px; line-height: 1.75; margin: 0; }

/* Outbound nav link to the electrical site -------------------------------- */

.site-nav .nav-out {
  margin-left: 6px;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.site-nav .nav-out a { color: var(--amber); display: inline-flex; align-items: center; gap: 6px; }
.site-nav .nav-out a:hover, .site-nav .nav-out a:focus { color: var(--white); }
.site-nav .nav-out svg { width: 11px; height: 11px; flex-shrink: 0; }

@media (max-width: 980px) {
  .site-nav .nav-out { margin-left: 0; padding-left: 0; border-left: 0; }
}

.skip-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Mobile menu ------------------------------------------------------------- */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 11px 16px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--amber); color: var(--amber); }

.nav-toggle .bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background 120ms linear;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, top 160ms ease;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }

  /* With JS the menu starts closed. Without JS it stays open and usable. */
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }

  .site-nav {
    order: 9;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 12px;
    padding-top: 6px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .site-nav ul { display: block; }
  .site-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a {
    display: block;
    padding: 15px 4px;
    font-size: 17px;
  }
  .site-nav .nav-out { margin-top: 4px; }
  .site-nav .nav-out a { padding-top: 16px; }
}

@media (max-width: 560px) {
  /* The sticky bar already carries Call, so the header keeps the logo and menu */
  .header-cta { display: none; }
  .brand img { width: 112px; }
  .nav-toggle { padding: 10px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle .bars,
  .nav-toggle .bars::before,
  .nav-toggle .bars::after { transition: none; }
}
