/* =====================================================================
   ACF bridge skin (2026-10-07)
   Makes the TEMPLATE blog / project markup look native to the ACF clone.
   Loaded by BaseLayout ONLY on template-skin pages (body.tpl-skin), after
   style.css and acf.css. Every rule is scoped to body.tpl-skin plus a
   blog/project class, so the form, thank-you, 404 and sitemap pages are
   untouched, and J2C-generated project pages (same template markup) get
   the same look with no markup change.
   Contrast (white text): #2b79b4 4.67, #2a77b5 4.77, #007dba 4.52,
   #ab6504 4.57. Small coloured text only ever sits on white.
   ===================================================================== */

/* ---------- ACF InnerHero on template-skin pages (blog / project indexes) ----------
   style.css's generic .hero rules (dark !important background, 200px top padding,
   flex-end) would otherwise flatten the photo and stretch the band. Restore the
   InnerHero look exactly as it renders on the ACF-skin pages. */
html body.tpl-skin section.ih.hero {
  background: var(--ih-img) var(--ih-pos, center) / cover no-repeat !important;
  padding: 0 !important; min-height: 0 !important; height: auto !important;
  display: block !important; overflow: hidden;
}
html body.tpl-skin section.ih.hero .ih__inner { margin: 0 auto; }
/* Phones: the smaller hero file when the page passes InnerHero imageSm (matches BaseLayout's media preload). */
@media (max-width: 767px) { html body.tpl-skin section.ih.hero { background-image: var(--ih-img-sm, var(--ih-img)) !important; } }

/* ---------- Detail heroes: live ACF inner-page band ----------
   The photo stays (inline background on the element); the live ACF 135deg
   blue diagonal is laid over it, as on /boiler-servicing and /heating. */
html body.tpl-skin .article-hero,
html body.tpl-skin .project-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 56px 20px 60px !important; min-height: 0 !important; height: auto !important;
  display: block !important; text-align: center;
}
html body.tpl-skin .article-hero::before,
html body.tpl-skin .project-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(135deg, rgba(43, 121, 180, .96) 50%, rgba(43, 121, 180, .72) 100%);
}
/* thin ACF orange rule along the bottom edge, like the live title rows */
html body.tpl-skin .article-hero::after,
html body.tpl-skin .project-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: -1;
  background: linear-gradient(90deg, var(--acf-orange) 0%, var(--acf-orange-deep) 100%);
}
html body.tpl-skin .article-hero-content,
html body.tpl-skin .project-hero-content { max-width: 960px; margin: 0 auto; }
html body.tpl-skin .article-hero h1,
html body.tpl-skin .project-hero h1 {
  font-family: var(--acf-head-font) !important; font-weight: 700 !important; color: #fff !important;
  font-size: 41px !important; line-height: 1.3 !important; letter-spacing: 0 !important;
  margin: 0 0 14px !important; text-shadow: 0 1px 8px rgba(0, 0, 0, .18);
}
html body.tpl-skin .project-hero-subtitle {
  font-family: var(--acf-body-font); font-size: 18px !important; line-height: 27px; color: #fff !important; margin: 0 0 28px !important;
}

/* Breadcrumb pill (white on the blue band) */
html body.tpl-skin .article-breadcrumb {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  background: rgba(0, 0, 0, .18) !important; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50px !important; padding: 6px 18px !important; margin-bottom: 18px !important;
  font-family: var(--acf-body-font); font-size: 14px !important; line-height: 1.4; color: #fff;
}
html body.tpl-skin .article-breadcrumb a { color: #fff !important; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; font-weight: 500; }
html body.tpl-skin .article-breadcrumb a:hover { text-decoration-color: #fff; }
html body.tpl-skin .article-breadcrumb span,
html body.tpl-skin .article-breadcrumb span[aria-current] { color: #fff !important; opacity: 1 !important; }

/* Blog meta row */
html body.tpl-skin .article-meta { justify-content: center; gap: 10px 22px !important; }
html body.tpl-skin .article-meta-item { color: #fff !important; font-size: 15px !important; font-family: var(--acf-body-font); }
html body.tpl-skin .article-meta-item svg { opacity: 1 !important; color: var(--acf-orange); }

/* Project quick facts: white ACF card on the band */
html body.tpl-skin .project-hero .quick-facts {
  background: #fff !important; border: 0 !important; border-radius: var(--acf-radius) !important;
  box-shadow: 0 14px 34px rgba(10, 40, 70, .25) !important; backdrop-filter: none !important;
  padding: 18px 20px !important; color: var(--acf-text);
}
html body.tpl-skin .project-hero .quick-fact { padding: 8px 14px !important; }
html body.tpl-skin .project-hero .quick-fact:not(:last-child)::after { background: #dfe7ee !important; width: 1px !important; }
html body.tpl-skin .project-hero .quick-fact-label {
  color: var(--acf-btn-orange) !important; opacity: 1 !important; font-family: var(--acf-head-font);
  font-weight: 700; font-size: 13px !important; letter-spacing: .08em;
}
html body.tpl-skin .project-hero .quick-fact-value {
  color: var(--acf-text) !important; font-family: var(--acf-body-font); font-weight: 700; font-size: 16px !important; line-height: 1.4;
}
html body.tpl-skin .project-hero .quick-fact-value a { color: var(--acf-navy-2) !important; }

/* ---------- Body copy: Roboto, ACF text colour, Palanquin headings ---------- */
html body.tpl-skin .article-content,
html body.tpl-skin .project-content { font-family: var(--acf-body-font); color: var(--acf-text); }
html body.tpl-skin .article-content p,
html body.tpl-skin .article-content li,
html body.tpl-skin .project-content p,
html body.tpl-skin .project-content li { font-size: 17px !important; line-height: 1.7 !important; color: var(--acf-text) !important; }
html body.tpl-skin .article-content h2,
html body.tpl-skin .project-content h2 {
  font-family: var(--acf-head-font) !important; font-weight: 700 !important; color: var(--acf-blue) !important;
  font-size: 32px !important; line-height: 1.3 !important; letter-spacing: 0 !important;
}
html body.tpl-skin .article-content h3,
html body.tpl-skin .project-content h3 { font-family: var(--acf-head-font) !important; color: var(--acf-navy-2) !important; letter-spacing: 0 !important; }
html body.tpl-skin .article-content ul li::marker,
html body.tpl-skin .project-content ul li::marker { color: var(--acf-orange-deep); }
html body.tpl-skin .project-content { padding-top: var(--acf-section-y) !important; padding-bottom: var(--acf-section-y) !important; }

/* Lead / TL;DR answer: ACF sky panel */
html body.tpl-skin .article-lead {
  background: var(--acf-sky) !important; border-left: 5px solid var(--acf-blue) !important;
  border-radius: 0 var(--acf-radius) var(--acf-radius) 0 !important; padding: 18px 22px !important;
  font-size: 18px !important; color: var(--acf-text) !important;
}
html body.tpl-skin .article-hero-image { border-radius: var(--acf-radius) !important; box-shadow: var(--acf-shadow); }

/* Table of contents: ACF card */
html body.tpl-skin .toc-card { border: 0 !important; border-radius: var(--acf-radius) !important; box-shadow: var(--acf-shadow) !important; border-top: 4px solid var(--acf-blue) !important; top: 130px !important; }
html body.tpl-skin .toc-title { font-family: var(--acf-head-font) !important; color: var(--acf-btn-orange) !important; font-size: 15px !important; }
html body.tpl-skin .toc-list a { font-family: var(--acf-body-font); font-size: 14px !important; color: #4a5560 !important; }
html body.tpl-skin .toc-list a:hover,
html body.tpl-skin .toc-list a.active { color: var(--acf-btn-blue) !important; border-left-color: var(--acf-blue) !important; font-weight: 500; }

/* Mid-article CTA: navy box with the ACF wave texture, orange pill */
html body.tpl-skin .mid-article-cta {
  background-color: var(--acf-navy-2) !important; border-radius: 26px !important; text-align: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60'%3E%3Cpath d='M0 30 Q30 10 60 30 T120 30 T180 30 T240 30' fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='3'/%3E%3C/svg%3E") !important;
  background-size: 240px 60px !important;
}
html body.tpl-skin .mid-article-cta h3 { color: #fff !important; font-family: var(--acf-head-font) !important; font-size: 28px !important; line-height: 1.3; }
html body.tpl-skin .mid-article-cta p { color: #fff !important; }

/* ---------- Buttons: ACF pills (orange on blue grounds, blue on white) ---------- */
html body.tpl-skin .mid-article-cta a.btn.btn-primary,
html body.tpl-skin section.article-bottom-cta a.article-cta-btn.btn.btn-primary {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-height: 49px; min-width: 250px; padding: 10px 28px !important; border-radius: 50px !important; border: 0 !important;
  background: var(--acf-btn-orange) !important; color: #fff !important;
  font-family: var(--acf-body-font) !important; font-weight: 500 !important; font-size: 18px !important; line-height: 1.6 !important;
  text-transform: uppercase; letter-spacing: 0; text-decoration: none !important; box-shadow: none !important;
  transition: background-color .18s, transform .18s, box-shadow .18s;
}
html body.tpl-skin .mid-article-cta a.btn.btn-primary:hover,
html body.tpl-skin section.article-bottom-cta a.article-cta-btn.btn.btn-primary:hover {
  background: var(--acf-btn-orange-hover) !important; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18) !important;
}
html body.tpl-skin .mid-article-cta a.btn.btn-primary:focus-visible,
html body.tpl-skin section.article-bottom-cta a.article-cta-btn.btn.btn-primary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- Bottom CTA: the ACF blue wave strip ---------- */
html body.tpl-skin section.article-bottom-cta {
  background-color: var(--acf-navy-2) !important; padding: var(--acf-section-y) 20px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60'%3E%3Cpath d='M0 30 Q30 10 60 30 T120 30 T180 30 T240 30' fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='3'/%3E%3C/svg%3E") !important;
  background-size: 240px 60px !important;
}
html body.tpl-skin section.article-bottom-cta h2 {
  font-family: var(--acf-head-font) !important; font-weight: 700 !important; color: #fff !important;
  font-size: 41px !important; line-height: 1.3 !important; letter-spacing: 0 !important; margin: 0 0 12px !important;
}
html body.tpl-skin section.article-bottom-cta p {
  color: #fff !important; font-family: var(--acf-body-font); font-size: 18px !important; line-height: 27px; max-width: 640px !important; margin-bottom: 28px !important;
}

/* ---------- FAQ accordion (template markup) in the live ACF look:
   blue bar closed, orange bar open, white chevron, white answer panel ---------- */
html body.tpl-skin .article-content .faq-item {
  border-radius: 5px !important; box-shadow: none !important; background: #fff !important; transform: none !important;
  margin-bottom: 10px !important; border: 1px solid #e3e8ec;
}
html body.tpl-skin .article-content .faq-question {
  background: var(--acf-btn-blue) !important; color: #fff !important; border-left: 0 !important;
  font-family: var(--acf-body-font); font-weight: 700 !important; font-size: 19px !important; line-height: 24px; padding: 14px 16px !important;
}
html body.tpl-skin .article-content .faq-question:hover { background: var(--acf-btn-blue-hover) !important; }
html body.tpl-skin .article-content .faq-item.active .faq-question { background: var(--acf-btn-orange) !important; }
html body.tpl-skin .article-content .faq-arrow,
html body.tpl-skin .article-content .faq-item.active .faq-arrow { background: transparent !important; color: #fff !important; }
html body.tpl-skin .article-content .faq-arrow svg { width: 16px !important; height: 16px !important; }
html body.tpl-skin .article-content .faq-answer p { font-size: 17px !important; }

/* ---------- Cards (blog + project listings, related articles) ---------- */
html body.tpl-skin .blog-card,
html body.tpl-skin .project-card {
  border: 0 !important; border-radius: var(--acf-radius) !important; box-shadow: var(--acf-shadow) !important; background: #fff !important;
}
html body.tpl-skin .blog-card:hover,
html body.tpl-skin .project-card:hover { box-shadow: 0 16px 36px rgba(17, 60, 100, .16) !important; }
html body.tpl-skin .blog-card-content,
html body.tpl-skin .project-card-content { font-family: var(--acf-body-font); }
html body.tpl-skin .blog-card-title,
html body.tpl-skin .project-card-title {
  font-family: var(--acf-head-font) !important; color: var(--acf-navy-2) !important; font-size: 23px !important; line-height: 1.3 !important;
}
html body.tpl-skin .blog-card-excerpt,
html body.tpl-skin .project-card-description { color: var(--acf-text) !important; font-size: 16px !important; line-height: 1.6 !important; }
html body.tpl-skin .blog-card-meta,
html body.tpl-skin .project-card-meta { color: #5f6b73 !important; font-size: 14px !important; flex-wrap: wrap; }
/* "Read Article" / "View Project": text link in ACF button blue (acf.css paints .project-card-btn as a solid button; keep it a link like the blog cards) */
html body.tpl-skin .blog-card .blog-card-btn,
html body.tpl-skin .project-card .project-card-btn {
  background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important;
  color: var(--acf-btn-blue) !important; font-family: var(--acf-body-font); font-weight: 700 !important; font-size: 15px !important;
  text-transform: uppercase; letter-spacing: .03em;
}
/* Category / service pills on cards: ACF pill shape, accessible shades */
html body.tpl-skin .blog-tag,
html body.tpl-skin .project-tag {
  background: var(--acf-btn-blue) !important; color: #fff !important; border-radius: 50px !important;
  font-family: var(--acf-body-font); font-size: 12px !important; font-weight: 700 !important; letter-spacing: .05em !important;
  padding: 5px 14px !important; top: 14px !important; left: 14px !important; box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}
html body.tpl-skin .blog-tag { background: var(--acf-btn-orange) !important; }

/* Listing sections: ACF section rhythm on the soft grey-to-white ground used on /careers */
html body.tpl-skin .blog-listing-section,
html body.tpl-skin .projects-listing-section {
  background: linear-gradient(180deg, #f2f2f2 0%, #fff 100%) !important;
  padding: var(--acf-section-y) 20px !important;
}

/* Related articles */
html body.tpl-skin .related-articles { background: linear-gradient(180deg, #f2f2f2 0%, #fff 100%) !important; padding: var(--acf-section-y) 20px !important; }
html body.tpl-skin .related-articles h2 {
  font-family: var(--acf-head-font) !important; color: var(--acf-blue) !important; font-weight: 700 !important;
  font-size: 41px !important; line-height: 1.3 !important; letter-spacing: 0 !important; margin-bottom: 32px !important;
}
html body.tpl-skin .related-grid { justify-content: center; grid-template-columns: repeat(auto-fit, minmax(280px, 420px)) !important; }

/* Project gallery */
html body.tpl-skin .project-content .gallery-item { border-radius: var(--acf-radius) !important; box-shadow: var(--acf-shadow); }

/* ---------- Tablet / phone ---------- */
@media (max-width: 1024px) {
  html body.tpl-skin .article-hero h1,
  html body.tpl-skin .project-hero h1 { font-size: 36px !important; }
}
@media (max-width: 767px) {
  html body.tpl-skin .article-hero,
  html body.tpl-skin .project-hero { padding: 38px 16px 42px !important; }
  html body.tpl-skin .article-hero::before,
  html body.tpl-skin .project-hero::before { background: linear-gradient(160deg, rgba(43, 121, 180, .96) 60%, rgba(43, 121, 180, .80) 100%); }
  html body.tpl-skin .article-hero h1,
  html body.tpl-skin .project-hero h1 { font-size: 27px !important; }
  html body.tpl-skin .project-hero-subtitle { font-size: 17px !important; }
  html body.tpl-skin .article-breadcrumb { font-size: 13px !important; padding: 5px 14px !important; }
  html body.tpl-skin .article-content h2,
  html body.tpl-skin .project-content h2 { font-size: 23px !important; }
  html body.tpl-skin .article-content p,
  html body.tpl-skin .article-content li,
  html body.tpl-skin .project-content p,
  html body.tpl-skin .project-content li { font-size: 16px !important; }
  html body.tpl-skin .article-content .faq-question { font-size: 17px !important; }
  html body.tpl-skin .mid-article-cta h3 { font-size: 23px !important; }
  html body.tpl-skin section.article-bottom-cta { padding: 40px 16px !important; }
  html body.tpl-skin section.article-bottom-cta h2,
  html body.tpl-skin .related-articles h2 { font-size: 27px !important; }
  html body.tpl-skin .mid-article-cta a.btn.btn-primary,
  html body.tpl-skin section.article-bottom-cta a.article-cta-btn.btn.btn-primary { min-width: 0; width: 100%; max-width: 360px; }
  html body.tpl-skin .blog-card-title,
  html body.tpl-skin .project-card-title { font-size: 21px !important; }
  html body.tpl-skin .blog-listing-section,
  html body.tpl-skin .projects-listing-section,
  html body.tpl-skin .related-articles { padding-left: 16px !important; padding-right: 16px !important; }
  html body.tpl-skin .related-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 360px) {
  html body.tpl-skin .blog-grid { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body.tpl-skin .mid-article-cta a.btn.btn-primary,
  html body.tpl-skin section.article-bottom-cta a.article-cta-btn.btn.btn-primary { transition: none; }
}

/* ---------- ACF components on template-skin pages: style.css sets Inter + navy
   headings globally; restore what they render as on the ACF-skin pages. ---------- */
html body.tpl-skin :is(.ih, .cta, .rv__intro, .blog-listing-section, .projects-listing-section, .article-layout, .project-content, .related-articles, .article-hero, .project-hero, .article-bottom-cta) :is(p, li, a, span, strong, div, figcaption, nav),
html body.tpl-skin :is(.ih, .cta, .rv__intro) { font-family: var(--acf-body-font); }
html body.tpl-skin .rv h2 { color: var(--acf-blue) !important; }
html body.tpl-skin .rv { color: #333; }
