/* Buckingham Electrical — design layer (injected by scripts/design.py).
   Scopes: .bex-service (sector-service pages), .bex-project (project pages),
   .bex-article (blog posts). Sitewide: click-to-zoom lightbox. */

/* ============ compact, left-aligned sector-service hero ============ */
.bex-service .hero-text {
  min-height: 0;
  justify-content: flex-start;
  padding-top: 70px;
  padding-bottom: 0;
}
.bex-service .title-wrap-centre-2 {
  width: 100%;
  max-width: 1340px;
  align-items: flex-start;
  text-align: left;
  grid-row-gap: 14px;
}
.bex-service .hero-copy {
  font-size: clamp(36px, 4.4vw, 54px);
  margin-bottom: 0;
}
.bex-eyebrow {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9a6a00;
}
.bex-hero-rule {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold, #fec20e);
}

/* ============ left-aligned project hero ============ */
.bex-project .title-section.no-top-margin {
  width: 100%;
  max-width: 1340px;
  align-items: flex-start;
  text-align: left;
}
.bex-project .top-sub-heading {
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  color: #9a6a00;
}
.bex-project .title-section.no-top-margin .body-text-paragraph {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* ============ two-column shell: sticky sidebar + content ============ */
.bex-shell {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 8px 3% 40px;
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.bex-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bex-sidebar {
  position: sticky;
  top: 110px;
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 3rem;
}

/* left-align everything that lives in the content column */
.bex-content .section-normal {
  padding-left: 0;
  padding-right: 0;
  align-items: flex-start;
}
.bex-content .container-normal { align-items: flex-start; }
.bex-content .title-section {
  width: 100%;
  align-items: flex-start;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.bex-content .body-text-paragraph { text-align: left; }
.bex-content .alternative-h2 { text-align: left; }
.bex-content .w-container { margin-left: 0; }
.bex-content .full-width-image {
  height: 52vh;
  border-radius: 12px;
}

/* ============ table of contents (sticky "on this page") ============ */
.bex-toc-label {
  margin: 0 0 10px;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7b88a8;
}
.toc-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.toc-link {
  color: #7b88a8;
  border-left: 2px solid #e6e9f0;
  padding: .45rem .5em .45rem 1em;
  font-family: Raleway, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.toc-link:hover { color: #232936; }
.toc-link[data-toc-status="active"] {
  color: #232936;
  border-left-color: var(--gold, #fec20e);
}
.toc-link[data-toc-depth="3"] {
  padding-left: 1.9em;
  font-size: 14px;
  font-weight: 500;
}

/* sidebar contact card */
.bex-side-card {
  width: 100%;
  background: #f7f8fa;
  border: 1px solid #e9edf2;
  border-radius: 10px;
  padding: 22px;
}
.bex-side-card p {
  margin: 0 0 14px;
  font-family: Raleway, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #232936;
}

@media (max-width: 991px) {
  .bex-sidebar { display: none; }
  .bex-shell { display: block; padding-top: 0; }
}

/* ============ blog article sidebar (TOC + author chip) ============ */
.bex-article .author-column { row-gap: 26px; }
.bex-article .author-column .bex-toc-block { width: 100%; }
.bex-article .author-social-links {
  display: flex;
  align-items: center;
  column-gap: 12px;
}
.bex-article .blog-by-image {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
}
.bex-article .bex-author-lines .author-connect {
  margin: 0;
  line-height: 1.4;
}

/* ============ click-to-zoom ============ */
img[data-click-zoom],
[data-click-zoom] img { cursor: zoom-in; }

[data-click-zoom-lightbox] {
  z-index: 9999;
  cursor: zoom-out;
  background-color: #000000e6;
  justify-content: center;
  align-items: center;
  padding: 3em;
  display: none;
  position: fixed;
  inset: 0%;
}
[data-click-zoom-lightbox] > img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: .75em;
}

/* gallery navigation inside the lightbox */
.bex-lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  transition: background .2s;
}
.bex-lb-btn:hover { background: rgba(255, 255, 255, .28); }
.bex-lb-prev { left: 20px; }
.bex-lb-next { right: 20px; }
.bex-lb-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  opacity: .85;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}
@media (max-width: 767px) {
  [data-click-zoom-lightbox] { padding: 1.25em; }
  .bex-lb-prev { left: 8px; }
  .bex-lb-next { right: 8px; }
}
