/* Site additions on top of the template styles. Uses the template's own tokens. */
.w-uxr-badge, .template-badge { display: none !important; }

:root { --vp-wa: #25d366; --vp-wa-dark: #128c4b; }

/* ---------- page title */
.vp-pagetitle .pagetitle-content-block { max-width: 920px; }
.vp-pagetitle .pagetitle-title { margin-top: 14px; }
.vp-pagetitle-lead {
  color: rgba(255,255,255,.88); font-size: 18px; line-height: 28px; max-width: 760px;
  margin: 18px 0 0;
}
.vp-breadcrumb { color: rgba(255,255,255,.75); font-size: 14px; line-height: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.vp-breadcrumb a { color: #fff; text-decoration: none; }
.vp-breadcrumb a:hover { color: var(--_colors---primary-500); }
.vp-breadcrumb .vp-sep { opacity: .5; }
.vp-pagetitle-compact, .vp-pagetitle-compact .pagetitle-inner { min-height: 460px; }
@media (min-width: 992px) {
  .vp-pagetitle:has(+ .service-single-section) .pagetitle-inner { padding-bottom: 200px; }
}
@media (max-width: 767px) {
  .vp-pagetitle-lead { font-size: 16px; line-height: 25px; }
  .vp-pagetitle .pagetitle-title.style-2 { font-size: 34px; line-height: 40px; }
}

/* ---------- rich text */
.service-rich-text p + p, .service-rich-text p + ul, .service-rich-text ul + p,
.service-rich-text p + table, .service-rich-text table + p, .service-rich-text p + ol,
.service-rich-text ol + p { margin-top: 14px; }
.service-rich-text ul, .service-rich-text ol, .blog-rich-text ul, .blog-rich-text ol { padding-left: 20px; margin: 0; }
.service-rich-text li, .blog-rich-text li { margin-bottom: 8px; }
.service-rich-text a, .blog-rich-text a, .vp-faq-answer a, .vp-rich a, .vp-contact-card a {
  color: var(--_colors---primary-500); text-decoration: underline; text-underline-offset: 3px;
}
.service-rich-text h3, .vp-rich h3 { font-size: 22px; line-height: 30px; margin: 22px 0 8px; }
.vp-intro { margin-top: 30px; font-size: 17px; line-height: 28px; }
.vp-intro p + p { margin-top: 14px; }
.service-single-content-title { scroll-margin-top: 110px; }

/* ---------- tables and codes */
.vp-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: 15px; line-height: 22px; background: #fff; border-radius: 10px; overflow: hidden; }
.vp-table th { background: var(--_colors---secondary-500); color: #fff; text-align: left; font-weight: 500; padding: 12px 14px; }
.vp-table td { padding: 12px 14px; border-top: 1px solid var(--_colors---border-color-dark); vertical-align: top; color: var(--_colors---body-font-color); }
.vp-code { display: inline-block; min-width: 34px; text-align: center; border-radius: 20px; padding: 2px 8px; font-weight: 600; font-size: 13px; color: #fff; }
.vp-c1 { background: #b91c1c; } .vp-c2 { background: #ef4444; } .vp-c3 { background: #2563eb; } .vp-fi { background: #ca8a04; }
@media (max-width: 767px) {
  .vp-table { display: block; overflow-x: auto; white-space: normal; }
  .vp-table th, .vp-table td { padding: 10px; min-width: 110px; }
}

/* ---------- FAQ answers */
.vp-faq-answer p { margin: 0; }
.vp-faq-answer p + p { margin-top: 10px; }
.accordion-title { margin: 0; }

/* ---------- mega menu */
.vp-menu-heading { color: var(--_colors---primary-500); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.vp-menu-image { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }

/* ---------- section helpers */
.vp-button-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.vp-cta .section-desc { color: rgba(255,255,255,.85); }
.vp-cta .cta-heading-block-2 { width: 100%; max-width: 760px; }
.vp-rich-section .section-title { margin-bottom: 30px; }
.vp-grey { background: var(--_colors---bg-color); }
.vp-rich { font-size: 17px; line-height: 28px; }
.vp-rich p + p, .vp-rich p + ul, .vp-rich ul + p { margin-top: 14px; }

.vp-links-section .section-title { margin-bottom: 40px; }
.vp-link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.vp-link-col { background: var(--_colors---bg-color); border-radius: 10px; padding: 26px; }
.vp-link-col-title { font-size: 22px; line-height: 30px; margin-bottom: 12px; }
.vp-link-col ul { list-style: none; padding: 0; margin: 0; }
.vp-link-col li { padding: 7px 0; border-bottom: 1px solid var(--_colors---border-color-dark); }
.vp-link-col li:last-child { border-bottom: 0; }
.vp-link-col a { color: var(--_colors---heading-font-color); text-decoration: none; }
.vp-link-col a:hover { color: var(--_colors---primary-500); }
.vp-grey .vp-link-col, .service-3-section .vp-link-col { background: #fff; }
@media (max-width: 991px) { .vp-link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .vp-link-grid { grid-template-columns: 1fr; } .vp-link-col { padding: 20px; } }

.vp-step-desc { margin-bottom: 0; }

/* ---------- guides */
.vp-guide-summary { font-size: 22px; line-height: 32px; text-transform: none; }
.vp-toc { background: var(--_colors---bg-color); border-radius: 10px; padding: 24px 28px; margin-bottom: 36px; }
.vp-toc-title { font-weight: 600; color: var(--_colors---heading-font-color); margin-bottom: 10px; }
.vp-toc ol { margin: 0; padding-left: 20px; }
.vp-toc li { margin-bottom: 6px; }
.vp-toc a { color: var(--_colors---heading-font-color); text-decoration: none; }
.vp-toc a:hover { color: var(--_colors---primary-500); }
.vp-article h2 { font-size: 32px; line-height: 40px; margin: 44px 0 14px; scroll-margin-top: 110px; }
.vp-article h2:first-child { margin-top: 0; }
.vp-article h3 { font-size: 22px; line-height: 30px; margin: 24px 0 8px; }
.vp-article p { margin-bottom: 14px; }
.vp-article table { margin-bottom: 18px; }
.vp-guide-faq { margin-top: 50px; }
.vp-guide-faq h2 { font-size: 32px; line-height: 40px; margin-bottom: 24px; }
.vp-author-box { margin-top: 40px; border-left: 3px solid var(--_colors---primary-500); background: var(--_colors---bg-color); padding: 18px 22px; border-radius: 0 10px 10px 0; font-size: 15px; line-height: 24px; }
@media (max-width: 767px) {
  .vp-article h2, .vp-guide-faq h2 { font-size: 26px; line-height: 33px; }
  .vp-guide-summary { font-size: 18px; line-height: 27px; }
}

/* ---------- contact */
.vp-contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.vp-quote-form, .vp-contact-card { background: var(--_colors---bg-color); border-radius: 10px; padding: 34px; }
.vp-form-title { font-size: 30px; line-height: 38px; margin-bottom: 10px; }
.vp-form-note { font-size: 15px; line-height: 23px; margin-bottom: 18px; }
.vp-quote-form label { display: block; font-weight: 500; color: var(--_colors---heading-font-color); margin: 14px 0 6px; }
.vp-quote-form input, .vp-quote-form select, .vp-quote-form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--_colors---border-color-dark);
  border-radius: 6px; background: #fff; color: #141414;
}
.vp-quote-form input:focus, .vp-quote-form select:focus, .vp-quote-form textarea:focus { outline: 2px solid var(--_colors---primary-500); outline-offset: 1px; }
.vp-submit { margin-top: 22px; border: 0; cursor: pointer; }
.vp-contact-card p { margin-bottom: 12px; }
@media (max-width: 991px) { .vp-contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .vp-quote-form, .vp-contact-card { padding: 22px; } }

/* ---------- footer */
.vp-footer-hours { margin-top: 6px; opacity: .75; }
.vp-footer-small-link { color: inherit; margin-left: 10px; text-decoration: underline; }

/* ---------- WhatsApp button, always bottom right */
.vp-wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 9999;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px;
  background: var(--vp-wa); color: #fff; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 16px; line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s ease, background-color .2s ease;
}
.vp-wa-float:hover, .vp-wa-float:focus-visible { background: var(--vp-wa-dark); transform: translateY(-2px); color: #fff; }
.vp-wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.vp-wa-float svg { flex: none; }
@media (max-width: 767px) {
  .vp-wa-float { padding: 13px; }
  .vp-wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .vp-wa-float { transition: none; } }

/* ---------- process steps */
.vp-steps-section .section-title { margin-bottom: 44px; }
.vp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vp-step { background: var(--_colors---bg-color); border-radius: 10px; padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.vp-step-top { display: flex; justify-content: space-between; align-items: center; }
.vp-step-icon { width: 40px; height: 40px; }
.vp-step-num { font-size: 40px; line-height: 1; font-weight: 500; color: var(--_colors---border-color-dark); }
.vp-step-title { font-size: 22px; line-height: 30px; margin: 0; }
.vp-step-desc { margin: 0; font-size: 16px; line-height: 25px; }
@media (max-width: 991px) { .vp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .vp-steps { grid-template-columns: 1fr; } }

/* ---------- card grid for pages whose template stylesheet lacks it (home) */
.vp-cards-fallback .service-2-section-inner { margin-top: 50px; }
.vp-cards-fallback .service-2-item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.vp-cards-fallback .service-1-item-block { position: relative; display: block; height: 460px; border-radius: 10px; overflow: hidden; background: #000; }
.vp-cards-fallback .service-1-thumbnail { height: 100%; }
.vp-cards-fallback .service-1-image { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vp-cards-fallback .service-1-item-block:hover .service-1-image { transform: scale(1.05); }
.vp-cards-fallback .service-1-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 100px 30px 30px; background-image: linear-gradient(#0000, #000); }
.vp-cards-fallback .service-1-item-title { color: #fff; font-size: 26px; line-height: 34px; margin: 0; }
.vp-cards-fallback .service-1-icon-block { display: none; }
@media (max-width: 991px) { .vp-cards-fallback .service-2-item-grid { grid-template-columns: 1fr 1fr; } .vp-cards-fallback .service-1-item-block { height: 320px; } }
@media (max-width: 479px) { .vp-cards-fallback .service-2-item-grid { grid-template-columns: 1fr; } .vp-cards-fallback .service-1-item-block { height: 260px; } }

/* counters on the home page: space between number and unit */
.about-title-block { column-gap: 8px; }

/* client photos are portrait: keep the person and the work in frame */
img[src*="electrician-testing-consumer-unit"], img[src*="imassx-electric-electrician"], img[src*="electrician-wiring-socket"] { object-position: 50% 30%; }
.vp-footer-address { margin-bottom: 8px; color: #fff; }

/* enquiry form */
.vp-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.vp-quote-form { position: relative; }
.vp-form-status { min-height: 22px; margin: 14px 0 0; font-size: 15px; }
.vp-form-status.is-ok { color: #1f7a4c; }
.vp-form-status.is-error { color: #b42318; }
.vp-form-small { font-size: 13px; line-height: 20px; margin: 10px 0 0; }
.vp-submit:disabled { opacity: .6; cursor: wait; }
.vp-form-done p { margin: 10px 0 20px; }
