/* ===== component-library.css ===== */
/* =========================================================================
   Sydney Carports Professionals — Component Library
   Industry: carport / steel structure builder, Sydney NSW
   Palette concept: deep steel-charcoal + Colorbond-style burnt terracotta
   accent on a warm concrete paper ground. Condensed, weighty display type
   for an industrial trade feel; clean workhorse body sans.
   ========================================================================= */

:root {
  /* ---- Brand palette ---- */
  --bc-primary: #1c2530;        /* deep steel charcoal-navy */
  --bc-primary-dark: #10161e;
  --bc-primary-light: #2c3948;
  --bc-accent: #c65a28;         /* Colorbond-style burnt terracotta/rust */
  --bc-accent-dark: #a4471d;
  --bc-accent-light: #e07a45;
  --bc-paper: #f4efe6;          /* warm concrete off-white */
  --bc-paper-alt: #ece4d4;      /* deeper warm sand for banding */
  --bc-ink: #1c2530;
  --bc-ink-soft: #4d5763;
  --bc-line: #d9cfba;
  --bc-white: #ffffff;
  --bc-success: #3f7d4a;

  /* ---- Type ---- */
  --bc-font-display: 'Oswald', 'Arial Narrow', 'Segoe UI', Roboto, sans-serif;
  --bc-font-body: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --bc-fs-xs: 0.8125rem;
  --bc-fs-sm: 0.9375rem;
  --bc-fs-base: 1.0625rem;
  --bc-fs-md: 1.25rem;
  --bc-fs-lg: 1.75rem;
  --bc-fs-xl: 2.5rem;
  --bc-fs-2xl: 3.25rem;
  --bc-lh-tight: 1.12;
  --bc-lh-normal: 1.6;

  /* ---- Space scale ---- */
  --bc-sp-2xs: 0.375rem;
  --bc-sp-xs: 0.75rem;
  --bc-sp-sm: 1.125rem;
  --bc-sp-md: 1.75rem;
  --bc-sp-lg: 2.75rem;
  --bc-sp-xl: 4.5rem;
  --bc-sp-2xl: 6.5rem;

  /* ---- Misc ---- */
  --bc-radius: 4px;
  --bc-radius-lg: 8px;
  --bc-shadow: 0 6px 20px rgba(16, 22, 30, 0.14);
  --bc-shadow-sm: 0 2px 8px rgba(16, 22, 30, 0.10);
  --bc-container: 1180px;
  --bc-border-w: 3px;
}

/* =========================================================================
   Base / reset
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--bc-white);
  color: var(--bc-primary);
  padding: 0.6em 1.1em;
  font-family: var(--bc-font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--bc-radius) 0;
}
.skip-link:focus {
  left: 0;
}
body {
  margin: 0;
  background: var(--bc-paper);
  color: var(--bc-ink);
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-base);
  line-height: var(--bc-lh-normal);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--bc-accent-dark); }
/* Dark-background sections need a lighter link colour — accent-dark fails AA on primary/primary-dark grounds. */
.bc-hero a:not(.bc-btn),
.bc-prose--dark a:not(.bc-btn),
.bc-video a:not(.bc-btn),
.bc-formband:not(.bc-formband--intro) a:not(.bc-btn) { color: var(--bc-accent-light); }
h1, h2, h3, h4 {
  font-family: var(--bc-font-display);
  font-weight: 600;
  line-height: var(--bc-lh-tight);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 var(--bc-sp-sm);
  color: var(--bc-primary);
}
h1 { font-size: var(--bc-fs-2xl); }
h2 { font-size: var(--bc-fs-xl); }
h3 { font-size: var(--bc-fs-lg); }
h4 { font-size: var(--bc-fs-md); }
p { margin: 0 0 var(--bc-sp-sm); }

.bc-container {
  width: 100%;
  max-width: var(--bc-container);
  margin: 0 auto;
  padding: 0 var(--bc-sp-md);
}

.bc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--bc-font-display);
  font-size: var(--bc-fs-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bc-accent-dark);
  margin: 0 0 var(--bc-sp-xs);
}
.bc-eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--bc-accent);
  display: inline-block;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--bc-font-display);
  font-size: var(--bc-fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.9em;
  border-radius: var(--bc-radius);
  border: var(--bc-border-w) solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.bc-btn:hover { transform: translateY(-1px); }

.bc-btn--primary {
  background: var(--bc-accent-dark);
  color: var(--bc-white);
  border-color: var(--bc-accent-dark);
}
.bc-btn--primary:hover { background: #8a3b18; border-color: #8a3b18; }

.bc-btn--accent {
  background: var(--bc-primary);
  color: var(--bc-white);
  border-color: var(--bc-primary);
}
.bc-btn--accent:hover { background: var(--bc-primary-dark); border-color: var(--bc-primary-dark); }

.bc-btn--ghost {
  background: transparent;
  color: var(--bc-white);
  border-color: var(--bc-white);
}
.bc-btn--ghost:hover { background: var(--bc-white); color: var(--bc-primary); }

.bc-btn--outline {
  background: transparent;
  color: var(--bc-primary);
  border-color: var(--bc-primary);
}
.bc-btn--outline:hover { background: var(--bc-primary); color: var(--bc-white); }

/* =========================================================================
   Site shell: header / nav / footer
   ========================================================================= */
.site-header {
  background: var(--bc-primary);
  color: var(--bc-white);
  position: relative;
  z-index: 40;
}
.site-header .bc-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--bc-sp-xs) var(--bc-sp-md);
  padding-top: var(--bc-sp-sm);
  padding-bottom: var(--bc-sp-sm);
}
.site-header__brand {
  font-family: var(--bc-font-display);
  font-size: var(--bc-fs-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bc-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.site-header__brand span { color: var(--bc-accent-light); }

.site-nav { display: flex; }
.site-nav__list {
  list-style: none;
  display: flex;
  gap: var(--bc-sp-md);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav__list a {
  color: var(--bc-white);
  text-decoration: none;
  font-family: var(--bc-font-display);
  font-size: var(--bc-fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s ease, color .15s ease;
}
.site-nav__list a:hover,
.site-nav__list a:focus-visible { border-color: var(--bc-accent); color: var(--bc-accent-light); }

.site-footer {
  background: var(--bc-primary-dark);
  color: #cfd6dd;
  padding: var(--bc-sp-xl) 0 var(--bc-sp-lg);
  font-size: var(--bc-fs-sm);
}
.site-footer a { color: var(--bc-accent-light); text-decoration: none; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--bc-sp-lg);
}
.site-footer h4 { color: var(--bc-white); font-size: var(--bc-fs-sm); margin-bottom: var(--bc-sp-xs); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5em; }
.site-footer__bottom {
  margin-top: var(--bc-sp-lg);
  padding-top: var(--bc-sp-md);
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #8f99a4;
  font-size: var(--bc-fs-xs);
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--bc-sp-md); }
}

/* =========================================================================
   Hero
   ========================================================================= */
.bc-hero {
  background: linear-gradient(155deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%);
  color: var(--bc-white);
  padding: var(--bc-sp-2xl) 0;
  position: relative;
  overflow: hidden;
  border-bottom: var(--bc-border-w) solid var(--bc-accent);
}
.bc-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -30%;
  width: 60%;
  height: 160%;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.bc-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--bc-sp-xl);
  align-items: center;
  position: relative;
}
.bc-hero__eyebrow {
  color: var(--bc-accent-light);
}
.bc-hero h1 {
  color: var(--bc-white);
  font-size: var(--bc-fs-2xl);
  margin-bottom: var(--bc-sp-sm);
}
.bc-hero p {
  color: #d7dde3;
  font-size: var(--bc-fs-md);
  max-width: 42ch;
}
.bc-hero__actions { display: flex; gap: var(--bc-sp-sm); flex-wrap: wrap; margin-top: var(--bc-sp-md); }
.bc-hero__media {
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow);
  border: 1px solid rgba(255,255,255,0.12);
}
.bc-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .bc-hero__grid { grid-template-columns: 1fr; }
  .bc-hero { padding: var(--bc-sp-xl) 0; }
}

/* =========================================================================
   Prose
   ========================================================================= */
.bc-prose { padding: var(--bc-sp-xl) 0; }
.bc-prose__inner { max-width: 76ch; }
.bc-prose--has-color { background: var(--bc-paper-alt); }
.bc-prose--dark { background: var(--bc-primary); color: var(--bc-white); }
.bc-prose--dark h2, .bc-prose--dark h3 { color: var(--bc-white); }
.bc-prose--dark .bc-eyebrow { color: var(--bc-accent-light); }
.bc-prose--with-image .bc-prose__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-sp-xl);
  align-items: center;
}
.bc-prose--with-image img {
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow-sm);
}
@media (max-width: 780px) {
  .bc-prose--with-image .bc-prose__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Grid (feature / services)
   ========================================================================= */
.bc-grid { padding: var(--bc-sp-xl) 0; }
.bc-grid__head { max-width: 62ch; margin-bottom: var(--bc-sp-lg); }
.bc-grid__list {
  display: grid;
  gap: var(--bc-sp-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.bc-grid--2col .bc-grid__list { grid-template-columns: repeat(2, 1fr); }
.bc-grid--3col .bc-grid__list { grid-template-columns: repeat(3, 1fr); }
.bc-grid--4col .bc-grid__list { grid-template-columns: repeat(4, 1fr); }

.bc-grid__card {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-top: var(--bc-border-w) solid var(--bc-accent);
  border-radius: var(--bc-radius);
  padding: var(--bc-sp-md);
  height: 100%;
}
.bc-grid--text-only .bc-grid__card { padding: var(--bc-sp-lg) var(--bc-sp-md); }
.bc-grid__card h3 { font-size: var(--bc-fs-md); margin-bottom: var(--bc-sp-2xs); }
.bc-grid__card p { color: var(--bc-ink-soft); margin-bottom: 0; font-size: var(--bc-fs-sm); }
.bc-grid--imaged .bc-grid__card { padding: 0; overflow: hidden; }
.bc-grid__card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.bc-grid--imaged .bc-grid__card > div { padding: var(--bc-sp-sm) var(--bc-sp-md) var(--bc-sp-md); }

@media (max-width: 900px) {
  .bc-grid--4col .bc-grid__list { grid-template-columns: repeat(2, 1fr); }
  .bc-grid--3col .bc-grid__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bc-grid--2col .bc-grid__list,
  .bc-grid--3col .bc-grid__list,
  .bc-grid--4col .bc-grid__list { grid-template-columns: 1fr; }
}

/* =========================================================================
   FAQ
   ========================================================================= */
.bc-faq { padding: var(--bc-sp-xl) 0; background: var(--bc-paper-alt); }
.bc-faq__inner { max-width: 78ch; margin: 0 auto; }
.bc-faq__list { display: grid; gap: var(--bc-sp-sm); }
.bc-faq__item {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  padding: var(--bc-sp-sm) var(--bc-sp-md);
}
.bc-faq__q {
  font-family: var(--bc-font-display);
  font-size: var(--bc-fs-md);
  text-transform: none;
  letter-spacing: 0;
  color: var(--bc-primary);
  margin: 0 0 0.5em;
  display: flex;
  gap: 0.6em;
}
.bc-faq__q::before { content: "Q."; color: var(--bc-accent); font-weight: 700; }
.bc-faq__a { color: var(--bc-ink-soft); margin: 0; }

/* =========================================================================
   Gallery
   ========================================================================= */
.bc-gallery { padding: var(--bc-sp-xl) 0; }
.bc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bc-sp-sm);
}
.bc-gallery__cell {
  position: relative;
  border-radius: var(--bc-radius);
  overflow: hidden;
  box-shadow: var(--bc-shadow-sm);
}
.bc-gallery__cell img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.bc-gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(16,22,30,0.85), transparent);
  color: var(--bc-white);
  font-size: var(--bc-fs-xs);
  padding: var(--bc-sp-sm) var(--bc-sp-xs) var(--bc-sp-2xs);
  margin: 0;
}
@media (max-width: 700px) {
  .bc-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   Video
   ========================================================================= */
.bc-video { padding: var(--bc-sp-xl) 0; background: var(--bc-primary); color: var(--bc-white); }
.bc-video h2, .bc-video h3 { color: var(--bc-white); }
.bc-video .bc-eyebrow { color: var(--bc-accent-light); }
.bc-video__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--bc-sp-xl);
  align-items: center;
}
.bc-video__copy p { color: #d7dde3; }
.bc-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow);
  border: 1px solid rgba(255,255,255,0.15);
}
.bc-video__frame iframe,
.bc-video__frame img { width: 100%; height: 100%; border: 0; object-fit: cover; }
@media (max-width: 820px) {
  .bc-video__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Map
   ========================================================================= */
.bc-map { padding: var(--bc-sp-xl) 0; }
.bc-map__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--bc-sp-lg);
  align-items: stretch;
}
.bc-map__info {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-left: var(--bc-border-w) solid var(--bc-accent);
  border-radius: var(--bc-radius);
  padding: var(--bc-sp-md);
}
.bc-map__addr { color: var(--bc-ink-soft); margin: 0 0 var(--bc-sp-sm); }
.bc-map__frame {
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--bc-shadow-sm);
}
.bc-map__frame iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }
@media (max-width: 820px) {
  .bc-map__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Testimonial
   ========================================================================= */
.bc-testimonial { padding: var(--bc-sp-xl) 0; background: var(--bc-paper-alt); }
.bc-testimonial__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bc-sp-md);
}
.bc-testimonial__card {
  background: var(--bc-white);
  border-radius: var(--bc-radius);
  padding: var(--bc-sp-md);
  border: 1px solid var(--bc-line);
  box-shadow: var(--bc-shadow-sm);
}
.bc-testimonial__stars { color: var(--bc-accent-dark); letter-spacing: 0.15em; margin-bottom: var(--bc-sp-2xs); }
.bc-testimonial__quote { color: var(--bc-ink); margin-bottom: var(--bc-sp-sm); font-style: italic; }
.bc-testimonial__name { font-family: var(--bc-font-display); font-size: var(--bc-fs-sm); text-transform: uppercase; letter-spacing: 0.04em; color: var(--bc-primary); }
.bc-testimonial__role { color: var(--bc-ink-soft); font-size: var(--bc-fs-xs); }
@media (max-width: 900px) {
  .bc-testimonial__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Form band
   ========================================================================= */
.bc-formband { padding: var(--bc-sp-xl) 0; background: var(--bc-primary); color: var(--bc-white); }
.bc-formband h2 { color: var(--bc-white); }
.bc-formband .bc-eyebrow { color: var(--bc-accent-light); }
.bc-formband__lede { color: #d7dde3; max-width: 52ch; }
.bc-formband__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-sp-xl);
  align-items: start;
}
.bc-formband__form {
  background: var(--bc-white);
  border-radius: var(--bc-radius-lg);
  padding: var(--bc-sp-md);
  display: grid;
  gap: var(--bc-sp-sm);
  box-shadow: var(--bc-shadow);
}
.bc-formband--intro { background: var(--bc-paper); color: var(--bc-ink); }
.bc-formband--intro h2 { color: var(--bc-primary); }
.bc-formband--intro .bc-formband__lede { color: var(--bc-ink-soft); }
.bc-formband--intro .bc-eyebrow { color: var(--bc-accent-dark); }
.bc-formband--final { background: var(--bc-primary-dark); }
.bc-formband--final .bc-formband__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.bc-formband--final .bc-formband__form { max-width: 560px; width: 100%; text-align: left; }

.bc-form-field { display: grid; gap: 0.4em; }
.bc-form-field label {
  font-size: var(--bc-fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bc-ink-soft);
}
.bc-form-field input,
.bc-form-field select,
.bc-form-field textarea {
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-base);
  padding: 0.75em 0.9em;
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  background: var(--bc-paper);
  color: var(--bc-ink);
}
.bc-form-field input:focus,
.bc-form-field select:focus,
.bc-form-field textarea:focus {
  outline: 2px solid var(--bc-accent);
  outline-offset: 1px;
}
.bc-form-field--required label::after {
  content: " *";
  color: var(--bc-accent-dark);
}

@media (max-width: 820px) {
  .bc-formband__grid { grid-template-columns: 1fr; }
}


/* ===== nav.css ===== */
/* =========================================================================
   Navigation & Footer Standardisation — linked site-wide (every page,
   including blog/legal, since header/footer are shared chrome). Self-
   contained tokens (Module 02 values) so it works even on pages that don't
   link hero.css/page-body.css.
   ========================================================================= */
:root {
  /* Design-system consolidation: these now resolve to the locked component-library.css
     tokens instead of an independent palette, so header/footer match the rest of the
     page on every layout that links this file. Names kept as-is (nv-*) so every rule
     below needs no further changes. */
  --nv-navy: var(--bc-primary); --nv-navy-dark: var(--bc-primary-dark); --nv-surface-dark: var(--bc-primary-light);
  --nv-sage: var(--bc-accent); --nv-sage-dark: var(--bc-accent-dark); --nv-sage-light: var(--bc-accent-light);
  --nv-paper: var(--bc-paper); --nv-ink-inverse: var(--bc-white); --nv-ink-inverse-soft: #d7dde3;
  --nv-font-display: var(--bc-font-display);
  --nv-font-body: var(--bc-font-body);
}

/* body's overflow-x:hidden (component-library.css) leaves overflow-y unset, which the spec
   auto-computes to "auto" — turning body into its own scroll container and silently breaking
   position:sticky (sticky is relative to the nearest scrolling ancestor). Pinned explicit,
   here (not page-body.css) since nav.css is the file linked on every page. */
body { overflow-y: visible; }

.site-header { background: var(--nv-navy) !important; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(16,22,30,0.18); }
.site-header .bc-container {
  max-width: 1180px; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 1.5rem;
}
.site-header__brand { display: flex; align-items: center; }
.site-header__brand img { height: 2.4em; width: auto; display: block; }

/* ---- primary nav ---- */
.site-nav { display: flex; }
.site-nav__list {
  list-style: none; display: flex; align-items: center; gap: 1.75rem; margin: 0; padding: 0;
}
.site-nav__list > li { position: relative; }
.site-nav__list > li > a {
  font-family: var(--nv-font-body); font-weight: 600; font-size: 0.9375rem;
  color: var(--nv-ink-inverse); text-decoration: none; padding: 0.4rem 0;
  border-bottom: 2px solid transparent; transition: border-color 150ms ease, color 150ms ease;
}
.site-nav__list > li > a:hover, .site-nav__list > li > a:focus-visible { border-color: var(--nv-sage-light); }

/* dropdown */
.has-dropdown > a::after { content: " ▾"; font-size: 0.7em; }
.dropdown {
  list-style: none; margin: 0; padding: 0.5rem 0; position: absolute; top: 100%; left: 0;
  min-width: 220px; background: var(--nv-surface-dark); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px; box-shadow: 0 12px 32px rgba(16,22,30,0.28);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
  z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block; padding: 0.55rem 1rem; font-family: var(--nv-font-body); font-size: 0.9rem;
  color: var(--nv-ink-inverse); text-decoration: none;
}
.dropdown li a:hover, .dropdown li a:focus-visible { background: var(--nv-sage); }

.nav-cta {
  font-family: var(--nv-font-body); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.02em;
  background: var(--nv-sage); color: var(--nv-ink-inverse); border-radius: 4px;
  padding: 0.6rem 1.1rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 44px;
}
.nav-cta:hover { background: var(--nv-sage-dark); }
.nav-cta img { filter: none; }

/* ---- mobile hamburger ---- */
.nav-toggle {
  display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--nv-ink-inverse); transition: transform 150ms ease, opacity 150ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--nv-navy-dark);
    max-height: 0; overflow: hidden; transition: max-height 200ms ease;
  }
  .site-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.5rem 1rem; }
  .site-nav__list > li { width: 100%; }
  .site-nav__list > li > a { display: block; padding: 0.75rem 0; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: transparent; border: 0; padding: 0 0 0 1rem; display: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .has-dropdown > a::after { float: right; }
  /* Superseded by .sticky-mobile-cta (fixed to the bottom edge) on mobile —
     showing both duplicates the call CTA in the header and the floating bar. */
  .nav-cta { display: none; }
}
@media (min-width: 901px) {
  .nav-toggle { display: none !important; }
  .site-nav { position: static; max-height: none; overflow: visible; }
}

/* =========================================================================
   Footer — 4-column standard structure
   ========================================================================= */
.site-footer { background: var(--nv-navy-dark) !important; color: var(--nv-ink-inverse-soft) !important; padding: 3rem 0 1.5rem !important; }
.site-footer .bc-container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--nv-font-display); font-weight: 600; font-size: 0.9375rem; color: var(--nv-ink-inverse);
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.85rem;
}
.footer-grid p { font-size: 0.875rem; line-height: 1.6; margin: 0 0 0.75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-grid a { color: var(--nv-ink-inverse-soft); text-decoration: none; font-size: 0.875rem; }
.footer-grid a:hover { color: var(--nv-sage-light); }
.footer-phone { font-family: var(--nv-font-display); font-weight: 600; font-size: 1.0625rem; color: var(--nv-ink-inverse) !important; }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.75rem; color: #8c93a0; }
.footer-bottom p { margin: 0 0 0.5rem; }

/* ---- social profile icons (footer, sitewide) ---- */
.social-icons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--nv-ink-inverse-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.social-icon:hover, .social-icon:focus-visible { background: var(--nv-sage); color: var(--nv-ink-inverse); }
.social-icon svg { display: block; }

/* ---- contextual social row (homepage / about / contact) ---- */
.social-icons--contextual .social-icon {
  background: rgba(30,42,51,0.06); color: var(--nv-navy);
}
.social-icons--contextual .social-icon:hover, .social-icons--contextual .social-icon:focus-visible {
  background: var(--nv-sage); color: #fff;
}
.footer-disclaimer { max-width: 74ch; }

/* =========================================================================
   Sticky mobile CTA bar — fixed to the bottom edge, mobile only
   ========================================================================= */
.sticky-mobile-cta { display: none; }
@media (max-width: 900px) {
  .sticky-mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--nv-navy-dark); box-shadow: 0 -2px 12px rgba(16,22,30,0.22);
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    gap: 0.6rem;
  }
  /* keep fixed bar from covering footer content/links at the bottom of the page */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
.sticky-mobile-cta__btn {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 0.4em;
  font-family: var(--nv-font-body); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; border-radius: 4px; min-height: 44px; padding: 0.5rem 0.75rem;
}
.sticky-mobile-cta__btn--call { background: var(--nv-sage); color: var(--nv-ink-inverse); }
.sticky-mobile-cta__btn--call:hover, .sticky-mobile-cta__btn--call:focus-visible { background: var(--nv-sage-dark); }
.sticky-mobile-cta__btn--quote { background: var(--nv-ink-inverse); color: var(--nv-navy); }
.sticky-mobile-cta__btn--quote:hover, .sticky-mobile-cta__btn--quote:focus-visible { background: var(--nv-ink-inverse-soft); }


/* ===== hero.css ===== */
/* =========================================================================
   Homepage hero — Module 03
   Tokens scoped to .hero-v2 only (Module 02 Design System values). Does not
   touch component-library.css or its :root tokens, so no other page/section
   is affected. `html{scroll-behavior:smooth}` is the one document-level rule
   required for the "Get a Quote" anchor, and only takes effect on pages that
   link this stylesheet (homepage only).
   ========================================================================= */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hero-v2 {
  /* ---- Design-system consolidation: resolve to the locked component-library.css
     tokens instead of an independent palette, so the hero matches the rest of the
     page. Names kept as-is (hv-*) so every rule below needs no further changes. ---- */
  --hv-navy: var(--bc-primary);
  --hv-navy-dark: var(--bc-primary-dark);
  --hv-surface-dark: var(--bc-primary-light);
  --hv-sage: var(--bc-accent);
  --hv-sage-dark: var(--bc-accent-dark);
  --hv-sage-light: var(--bc-accent-light);
  --hv-ink-inverse: var(--bc-white);
  --hv-ink-inverse-soft: #d7dde3;
  --hv-ink: var(--bc-ink);
  --hv-ink-soft: var(--bc-ink-soft);
  --hv-surface: var(--bc-white);
  --hv-line: rgba(255, 255, 255, 0.14);
  --hv-error: #a4432f;

  /* ---- Type: locked display/body faces ---- */
  --hv-font-display: var(--bc-font-display);
  --hv-font-body: var(--bc-font-body);

  /* ---- Space scale (Module 02 §5) ---- */
  --hv-sp-xs: 0.5rem;
  --hv-sp-sm: 0.75rem;
  --hv-sp-md: 1rem;
  --hv-sp-lg: 1.5rem;
  --hv-sp-xl: 2rem;
  --hv-sp-2xl: 3rem;

  /* ---- Radius / shadow: locked equivalents ---- */
  --hv-radius-btn: var(--bc-radius);
  --hv-radius-card: var(--bc-radius-lg);
  --hv-radius-badge: var(--bc-radius);
  --hv-shadow-sm: var(--bc-shadow-sm);
  --hv-shadow-md: var(--bc-shadow);

  background: var(--hv-navy);
  color: var(--hv-ink-inverse);
  font-family: var(--hv-font-body);
  padding: var(--hv-sp-2xl) 0;
}

.hero-v2__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-v2__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--hv-sp-2xl);
  align-items: center;
  position: relative;
}

/* Photo variant — homepage only. Real carport photo + Navy gradient scrim for text
   legibility (Module 02 image strategy: scrim reserved for the hero only). Other pages
   stay solid Navy (no image) since no other page-specific photography exists yet. */
.hero-v2--photo {
  background-image: linear-gradient(100deg, rgba(16,22,30,0.94) 0%, rgba(16,22,30,0.82) 38%, rgba(16,22,30,0.45) 100%), url('/wp-content/uploads/2021/12/carport-companies-near-me.jpg');
  background-size: cover;
  background-position: center;
}
@media (max-width: 640px) {
  .hero-v2--photo {
    background-image: linear-gradient(180deg, rgba(16,22,30,0.75) 0%, rgba(16,22,30,0.94) 65%), url('/wp-content/uploads/2021/12/carport-companies-near-me.jpg');
  }
}

/* ---- Left column ---- */
.hero-v2__eyebrow {
  font-family: var(--hv-font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hv-sage-light);
  margin: 0 0 var(--hv-sp-sm);
}
.hero-v2__headline {
  font-family: var(--hv-font-display);
  font-weight: 700;
  color: var(--hv-ink-inverse);
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 var(--hv-sp-sm);
  text-wrap: balance;
}
.hero-v2__sub {
  font-family: var(--hv-font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--hv-ink-inverse-soft);
  margin: 0 0 var(--hv-sp-lg);
  max-width: 46ch;
}

.hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hv-sp-sm);
  margin-bottom: var(--hv-sp-lg);
}
.hero-v2__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--hv-font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.5rem;
  border-radius: var(--hv-radius-btn);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  transition: transform 150ms ease-out, background 150ms ease-out;
}
.hero-v2__btn:hover { transform: translateY(-1px); }
.hero-v2__btn--primary {
  background: var(--hv-sage);
  color: var(--hv-ink-inverse);
  border-color: var(--hv-sage);
}
.hero-v2__btn--primary:hover { background: var(--hv-sage-dark); border-color: var(--hv-sage-dark); }
.hero-v2__btn--phone {
  background: transparent;
  color: var(--hv-ink-inverse);
  border-color: var(--hv-ink-inverse-soft);
}
.hero-v2__btn--phone:hover { background: rgba(255, 255, 255, 0.08); }

.hero-v2__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--hv-sp-xs);
  margin: 0;
  padding: 0;
}
.hero-v2__trust li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hv-ink-inverse);
  background: rgba(198, 90, 40, 0.18);
  border: 1px solid var(--hv-sage-light);
  border-radius: var(--hv-radius-badge);
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}

/* ---- Right column: form card ---- */
.hero-v2__form-wrap {
  background: var(--hv-surface-dark);
  border: 1px solid var(--hv-line);
  border-radius: var(--hv-radius-card);
  box-shadow: var(--hv-shadow-md);
  padding: var(--hv-sp-lg);
  /* reserves height so the reCAPTCHA badge iframe loading in causes no layout shift */
  min-height: 560px;
}
.hero-v2__form-heading {
  font-family: var(--hv-font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--hv-ink-inverse);
  margin: 0 0 0.25rem;
}
.hero-v2__form-note {
  font-family: var(--hv-font-body);
  font-size: 0.875rem;
  color: var(--hv-ink-inverse-soft);
  margin: 0 0 var(--hv-sp-md);
}
.hero-v2__field { display: grid; gap: 0.4em; margin-bottom: var(--hv-sp-sm); }
.hero-v2__field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hv-ink-inverse-soft);
}
.hero-v2__field--required label::after {
  content: " *";
  color: var(--hv-sage-light);
}
.hero-v2__field input,
.hero-v2__field textarea {
  font-family: var(--hv-font-body);
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  min-height: 44px;
  border-radius: var(--hv-radius-btn);
  border: 1px solid var(--hv-ink-inverse-soft);
  background: var(--hv-surface);
  color: var(--hv-ink);
}
.hero-v2__field textarea { min-height: 72px; resize: vertical; }
.hero-v2__field input:focus,
.hero-v2__field textarea:focus {
  outline: 2px solid var(--hv-sage-light);
  outline-offset: 2px;
}
.hero-v2__form-legal {
  font-size: 0.75rem;
  color: var(--hv-ink-inverse-soft);
  margin: 0.4rem 0 0.9rem;
}
.hero-v2__submit {
  width: 100%;
}

/* =========================================================================
   Tablet (768px design target) keeps the two-column above-the-fold layout —
   the form must be fully visible with no scrolling at this width too, not
   just reachable via the mobile anchor-scroll flow. Only true phone widths
   (≤640px) switch to the stacked "Get a Quote anchor + one scroll" pattern.
   ========================================================================= */
@media (max-width: 900px) {
  .hero-v2__grid { gap: var(--hv-sp-xl); }
  .hero-v2__headline { font-size: 1.75rem; }
}

@media (max-width: 640px) {
  .hero-v2 { padding: var(--hv-sp-xl) 0; }
  .hero-v2__grid { grid-template-columns: 1fr; gap: var(--hv-sp-lg); }
  .hero-v2__headline { font-size: 1.625rem; }
  .hero-v2__sub { font-size: 0.9375rem; margin-bottom: var(--hv-sp-md); }
  .hero-v2__actions { margin-bottom: var(--hv-sp-md); }
  .hero-v2__btn { flex: 1 1 auto; }
  .hero-v2__form-wrap { min-height: 0; padding: var(--hv-sp-md); }
}


/* ===== page-body.css ===== */
/* =========================================================================
   Phase 5 — page body components (Module 02 Design System tokens).
   Linked only on pages whose body has been migrated off the old
   component-library.css palette: homepage, service, location, about, contact.
   Blog and legal pages never link this file, so they're unaffected.
   ========================================================================= */

:root {
  /* Design-system consolidation: resolve to the locked component-library.css tokens
     instead of an independent palette. Names kept as-is (pb-*) so every rule below —
     including the backward-compat layer that restyles bc-* markup — needs no further
     changes; it now restyles bc-* markup back to the locked palette it already used. */
  --pb-navy: var(--bc-primary);
  --pb-navy-dark: var(--bc-primary-dark);
  --pb-surface-dark: var(--bc-primary-light);
  --pb-sage: var(--bc-accent);
  --pb-sage-dark: var(--bc-accent-dark);
  --pb-sage-light: var(--bc-accent-light);
  --pb-paper: var(--bc-paper);
  --pb-paper-alt: var(--bc-paper-alt);
  --pb-surface: var(--bc-white);
  --pb-line: var(--bc-line);
  --pb-line-dark: rgba(255,255,255,0.14);
  --pb-ink: var(--bc-ink);
  --pb-ink-soft: var(--bc-ink-soft);
  --pb-ink-inverse: var(--bc-white);
  --pb-ink-inverse-soft: #d7dde3;

  --pb-font-display: var(--bc-font-display);
  --pb-font-body: var(--bc-font-body);

  --pb-sp-xs: 0.5rem; --pb-sp-sm: 0.75rem; --pb-sp-md: 1rem;
  --pb-sp-lg: 1.5rem; --pb-sp-xl: 2rem; --pb-sp-2xl: 3rem; --pb-sp-3xl: 4rem;

  --pb-radius-btn: var(--bc-radius); --pb-radius-card: var(--bc-radius-lg); --pb-radius-badge: var(--bc-radius);
  --pb-shadow-sm: var(--bc-shadow-sm);
  --pb-shadow-md: var(--bc-shadow);
  --pb-container: 1180px;
}

/* ---- section shell ---- */
.pb-section { padding: var(--pb-sp-3xl) 0; background: var(--pb-paper); }
.pb-section--alt { background: var(--pb-paper-alt); }
.pb-section--dark { background: var(--pb-navy); color: var(--pb-ink-inverse); }
.pb-container { max-width: var(--pb-container); margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 640px) { .pb-section { padding: var(--pb-sp-2xl) 0; } }

.pb-eyebrow {
  font-family: var(--pb-font-display); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--pb-sage-dark); margin: 0 0 var(--pb-sp-xs);
}
.pb-section--dark .pb-eyebrow { color: var(--pb-sage-light); }

/* ---- prose content block ---- */
.pb-prose { max-width: none; }
.pb-prose--wide { max-width: none; }
/* Standalone prose (no image beside it — .pb-container.pb-prose directly, not nested inside
   a .pb-prose-grid pairing) is centered as a readable column at the same treatment as the
   old bc-prose__inner sections. Headings/eyebrows/CTAs center; body paragraphs stay left-
   aligned within that centered column for readability. */
.pb-container.pb-prose {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.pb-container.pb-prose p { text-align: left; }
.pb-prose h2 {
  font-family: var(--pb-font-display); font-weight: 700; font-size: 1.75rem; line-height: 1.15;
  color: var(--pb-ink); margin: 0 0 var(--pb-sp-md); text-wrap: balance;
}
.pb-section--dark .pb-prose h2 { color: var(--pb-ink-inverse); }
.pb-prose h3 {
  font-family: var(--pb-font-display); font-weight: 600; font-size: 1.125rem;
  color: var(--pb-ink); margin: var(--pb-sp-md) 0 var(--pb-sp-xs);
}
.pb-section--dark .pb-prose h3 { color: var(--pb-ink-inverse); }
.pb-prose p {
  font-family: var(--pb-font-body); font-size: 1rem; line-height: 1.65;
  color: var(--pb-ink-soft); margin: 0 0 var(--pb-sp-md);
}
.pb-section--dark .pb-prose p { color: var(--pb-ink-inverse-soft); }
.pb-prose a { color: var(--pb-sage-dark); }
.pb-section--dark .pb-prose a { color: var(--pb-sage-light); }
.pb-prose--columns { column-count: 2; column-gap: var(--pb-sp-xl); }
.pb-prose--columns p { break-inside: avoid; }
@media (max-width: 780px) { .pb-prose--columns { column-count: 1; } }

.pb-prose-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--pb-sp-2xl); align-items: center; }
@media (max-width: 780px) { .pb-prose-grid { grid-template-columns: 1fr; } }
.pb-prose-grid img { width: 100%; border-radius: var(--pb-radius-card); box-shadow: var(--pb-shadow-sm); }

/* ---- buttons (reuses hero button visual language) ---- */
.pb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--pb-font-body); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.02em;
  padding: 0.85rem 1.4rem; border-radius: var(--pb-radius-btn); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 44px; transition: transform 150ms ease-out, background 150ms ease-out;
}
.pb-btn:hover { transform: translateY(-1px); }
.pb-btn--primary { background: var(--pb-sage); color: var(--pb-ink-inverse); border-color: var(--pb-sage); }
.pb-btn--primary:hover { background: var(--pb-sage-dark); border-color: var(--pb-sage-dark); }
.pb-btn--outline { background: transparent; color: var(--pb-sage-dark); border-color: var(--pb-sage); }
.pb-btn--outline:hover { background: var(--pb-sage); color: var(--pb-ink-inverse); }
.pb-section--dark .pb-btn--outline { color: var(--pb-ink-inverse); border-color: var(--pb-ink-inverse-soft); }
.pb-section--dark .pb-btn--outline:hover { background: rgba(255,255,255,0.1); }

/* ---- CTA / form band (final-contact sections; NOT the hero) ---- */
.pb-ctaband { background: var(--pb-navy); color: var(--pb-ink-inverse); padding: var(--pb-sp-3xl) 0; }
.pb-ctaband__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pb-sp-2xl); align-items: start; }
@media (max-width: 780px) { .pb-ctaband__grid { grid-template-columns: 1fr; } }
.pb-ctaband h2 { font-family: var(--pb-font-display); font-weight: 700; font-size: 1.625rem; color: var(--pb-ink-inverse); margin: 0 0 var(--pb-sp-sm); }
.pb-ctaband p { color: var(--pb-ink-inverse-soft); margin: 0 0 var(--pb-sp-sm); font-size: 0.9375rem; }
.pb-ctaband__form { background: var(--pb-surface-dark); border: 1px solid var(--pb-line-dark); border-radius: var(--pb-radius-card); box-shadow: var(--pb-shadow-md); padding: var(--pb-sp-lg); }
.pb-field { display: grid; gap: 0.4em; margin-bottom: var(--pb-sp-sm); }
.pb-field label { font-size: 0.8125rem; font-weight: 600; color: var(--pb-ink-inverse-soft); }
.pb-field--required label::after { content: " *"; color: var(--pb-sage-light); }
.pb-field input, .pb-field textarea {
  font-family: var(--pb-font-body); font-size: 1rem; padding: 0.75rem 0.85rem; min-height: 44px;
  border-radius: var(--pb-radius-btn); border: 1px solid var(--pb-ink-inverse-soft); background: var(--pb-surface); color: var(--pb-ink);
}
.pb-field input:focus, .pb-field textarea:focus { outline: 2px solid var(--pb-sage-light); outline-offset: 2px; }
.pb-legal { font-size: 0.75rem; color: var(--pb-ink-inverse-soft); margin: 0.4rem 0 0.9rem; }

/* ---- service / stat card grid ---- */
.pb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pb-sp-lg); }
.pb-cards--2col { grid-template-columns: repeat(2, 1fr); }
.pb-cards--4col { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .pb-cards, .pb-cards--4col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pb-cards, .pb-cards--2col, .pb-cards--4col { grid-template-columns: 1fr; } }

.pb-card { background: var(--pb-surface); border: 1px solid var(--pb-line); border-radius: var(--pb-radius-card); overflow: hidden; box-shadow: var(--pb-shadow-sm); transition: box-shadow 150ms ease-out, transform 150ms ease-out; }
.pb-card:hover { box-shadow: var(--pb-shadow-md); transform: translateY(-2px); }
.pb-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.pb-card__body { padding: var(--pb-sp-md); }
.pb-card h3 { font-family: var(--pb-font-display); font-weight: 600; font-size: 1.0625rem; color: var(--pb-ink); margin: 0 0 0.35rem; }
.pb-card p { font-family: var(--pb-font-body); font-size: 0.9375rem; color: var(--pb-ink-soft); margin: 0 0 var(--pb-sp-sm); line-height: 1.55; }

.pb-card--text { padding: var(--pb-sp-lg) var(--pb-sp-md); text-align: center; }
.pb-card--text h3 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pb-sage-dark); }

/* ---- gallery ---- */
.pb-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pb-sp-sm); }
.pb-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--pb-radius-card); }
@media (max-width: 780px) { .pb-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---- compact internal-link grid (service areas / neighbourhoods) — structure untouched,
   this only restyles the container/chips ---- */
.pb-linkgrid { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.pb-linkgrid li a, .pb-linkline a {
  display: inline-block; font-size: 0.875rem; color: var(--pb-sage-dark); text-decoration: none;
  padding: 0.4rem 0.75rem; background: var(--pb-surface); border: 1px solid var(--pb-line); border-radius: var(--pb-radius-badge);
}
.pb-linkgrid li a:hover { background: var(--pb-sage); color: var(--pb-ink-inverse); border-color: var(--pb-sage); }
.pb-linkline { line-height: 2.2; }
.pb-linkline a { margin: 0 0.15rem 0.35rem 0; }

/* ---- map section wrapper (embed itself untouched) ---- */
.pb-map { padding: var(--pb-sp-2xl) 0; background: var(--pb-paper-alt); }
.pb-map__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--pb-sp-lg); align-items: center; }
@media (max-width: 780px) { .pb-map__grid { grid-template-columns: 1fr; } }
.pb-map h3 { font-family: var(--pb-font-display); font-weight: 600; color: var(--pb-ink); margin: 0 0 0.35rem; }
.pb-map p { font-size: 0.9375rem; color: var(--pb-ink-soft); margin: 0.15rem 0; }
.pb-map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--pb-radius-card); }

/* ---- video ---- */
.pb-video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pb-sp-2xl); align-items: center; }
@media (max-width: 780px) { .pb-video-grid { grid-template-columns: 1fr; } }
.pb-video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--pb-radius-card); overflow: hidden; box-shadow: var(--pb-shadow-md); }
.pb-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- flagged/placeholder note (visually distinct dev marker, not shown as real content) ---- */
.pb-flag-note { font-size: 0.8125rem; color: var(--pb-ink-soft); background: var(--pb-paper-alt); border: 1px dashed var(--pb-line); border-radius: var(--pb-radius-badge); padding: 0.5rem 0.75rem; margin-top: 0.5rem; }

/* =========================================================================
   BACKWARD-COMPAT LAYER — restyles the EXISTING bc-* markup already on the
   service/location/about/contact pages to the same Module 02 tokens, without
   touching a single HTML file's structure (loaded after component-library.css,
   so it wins the cascade at equal specificity). This is how Phase 5 reaches
   40 pages safely: zero risk of corrupting verbatim content via bulk HTML
   edits — only the CSS changes. The 3 approved content-safety edits (remove
   fake testimonials, flag the broken stat, flag the family-owned sentence)
   are still done as small targeted HTML edits per page, everything else is
   pure restyle.
   ========================================================================= */
/* Standardise every content container to the exact same width/padding as the hero
   (.hero-v2__container: 1180px, 1.5rem side padding) so every section lines up flush. */
.bc-container { max-width: var(--pb-container) !important; padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.bc-eyebrow, .bc-hero__eyebrow {
  font-family: var(--pb-font-display) !important; font-weight: 600; font-size: 0.875rem !important;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--pb-sage-dark) !important;
}
.bc-eyebrow::before { display: none; }

.bc-prose { background: var(--pb-paper); padding: var(--pb-sp-3xl) 0; }
.bc-prose--has-color { background: var(--pb-paper-alt); }
.bc-prose--dark { background: var(--pb-navy); color: var(--pb-ink-inverse); }
/* Section outer width matches the hero (1180px, standardised above). Content WITHOUT an
   image beside it is then centered as a readable column within that width, rather than
   stretching edge-to-edge or sitting left-aligned. Sections that DO have an image (with-image
   grid) are excluded — those already use the full width, split between text and image. */
.bc-prose:not(.bc-prose--with-image) .bc-prose__inner,
.bc-prose:not(.bc-prose--with-image) > .bc-container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.bc-prose:not(.bc-prose--with-image) .bc-prose__inner p,
.bc-prose:not(.bc-prose--with-image) > .bc-container p {
  text-align: left;
}
.bc-prose h2 { font-family: var(--pb-font-display); font-weight: 700; font-size: 1.75rem; color: var(--pb-ink); margin: 0 0 var(--pb-sp-md); text-wrap: balance; }
.bc-prose h3 { font-family: var(--pb-font-display); font-weight: 600; font-size: 1.125rem; color: var(--pb-ink); margin: var(--pb-sp-md) 0 var(--pb-sp-xs); }
.bc-prose p { font-family: var(--pb-font-body); font-size: 1rem; line-height: 1.65; color: var(--pb-ink-soft); margin: 0 0 var(--pb-sp-md); }
.bc-prose a { color: var(--pb-sage-dark); }
.bc-prose--dark h2, .bc-prose--dark h3 { color: var(--pb-ink-inverse); }
.bc-prose--dark p { color: var(--pb-ink-inverse-soft); }
.bc-prose--dark a { color: var(--pb-sage-light); }
.bc-prose--with-image .bc-prose__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--pb-sp-2xl); align-items: center; }
.bc-prose--with-image .bc-prose__grid.bc-prose__grid--reverse { direction: rtl; }
.bc-prose--with-image .bc-prose__grid.bc-prose__grid--reverse > * { direction: ltr; }
@media (max-width: 780px) { .bc-prose--with-image .bc-prose__grid { grid-template-columns: 1fr; } }
.bc-prose--with-image img { border-radius: var(--pb-radius-card); box-shadow: var(--pb-shadow-sm); }

/* Content-Design & Readability framework: a text block of 4+ consecutive paragraphs (or
   >250 words) reads as a wall. Auto-detected via :has() — no HTML change, no words touched
   — and flowed into 2 columns at desktop widths, same pattern as Pattern-7 "Two-Column Text"
   from the Service Overview module. Falls back to normal single-column stacking below 900px
   and in browsers without :has() support (graceful degradation, never breaks). */
/* Only plain full-width bc-prose__inner blocks get the 2-column treatment — a with-image
   text column is already half the container width, so splitting it further recreates the
   same squeeze. Text beside an image always stays single-column. */
.bc-prose__inner:has(> p:nth-of-type(4)) {
  column-gap: var(--pb-sp-xl);
}
@media (min-width: 900px) {
  /* override the 74ch reading-width cap here specifically — splitting an already-narrow
     700px block into 2 columns left each column ~330px wide (the reported "squeeze").
     A 2-column block needs the full container width to read comfortably. */
  .bc-prose__inner:has(> p:nth-of-type(4)) {
    max-width: none;
    column-count: 2;
  }
  .bc-prose__inner:has(> p:nth-of-type(4)) > h2 {
    column-span: all;
  }
  .bc-prose__inner:has(> p:nth-of-type(4)) p {
    break-inside: avoid;
  }
}

/* Readability framework "Icon Section" visual break: where 3+ plain bc-prose sections stack
   back-to-back (e.g. decking/patios service pages), a small Design-System icon marker
   precedes each section heading — a genuine visual element, zero new words, no fabricated
   imagery. Excludes the CTA-band/dark/has-color variants (already visually distinct bands). */
.bc-prose:not(.bc-prose--dark):not(.bc-prose--has-color):not(.bc-prose--with-image) .bc-prose__inner > h2::before {
  content: "";
  display: block;
  width: 2.25rem; height: 2.25rem;
  margin-bottom: var(--pb-sp-sm);
  background-color: var(--pb-sage);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5"><path d="M3 12l9-9 9 9M5 10v10a1 1 0 001 1h4v-6h4v6h4a1 1 0 001-1V10"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5"><path d="M3 12l9-9 9 9M5 10v10a1 1 0 001 1h4v-6h4v6h4a1 1 0 001-1V10"/></svg>') center/contain no-repeat;
}

.bc-btn { font-family: var(--pb-font-body) !important; font-weight: 600; font-size: 0.9375rem !important; letter-spacing: 0.02em; border-radius: var(--pb-radius-btn) !important; min-height: 44px; padding: 0.85rem 1.4rem !important; transition: transform 150ms ease-out, background 150ms ease-out; }
.bc-btn:hover { transform: translateY(-1px); }
.bc-btn--primary, .bc-btn--accent { background: var(--pb-sage) !important; color: var(--pb-ink-inverse) !important; border-color: var(--pb-sage) !important; }
.bc-btn--primary:hover, .bc-btn--accent:hover { background: var(--pb-sage-dark) !important; border-color: var(--pb-sage-dark) !important; }
.bc-btn--outline { background: transparent !important; color: var(--pb-sage-dark) !important; border-color: var(--pb-sage) !important; }
.bc-btn--outline:hover { background: var(--pb-sage) !important; color: var(--pb-ink-inverse) !important; }
.bc-prose--dark .bc-btn--outline, .bc-formband .bc-btn--outline { color: var(--pb-ink-inverse) !important; border-color: var(--pb-ink-inverse-soft) !important; }
.bc-btn--ghost { background: transparent !important; color: var(--pb-ink-inverse) !important; border-color: var(--pb-ink-inverse-soft) !important; }

.bc-formband { background: var(--pb-navy) !important; color: var(--pb-ink-inverse); padding: var(--pb-sp-3xl) 0 !important; }
.bc-formband h2, .bc-formband h3 { color: var(--pb-ink-inverse) !important; font-family: var(--pb-font-display); }
.bc-formband p, .bc-formband__lede { color: var(--pb-ink-inverse-soft) !important; }
.bc-formband--intro { background: var(--pb-navy) !important; color: var(--pb-ink-inverse); }
.bc-formband--intro h2, .bc-formband--intro h3 { color: var(--pb-ink-inverse) !important; }
.bc-formband--intro p, .bc-formband--intro .bc-formband__lede { color: var(--pb-ink-inverse-soft) !important; }
.bc-formband__form { background: var(--pb-surface-dark); border: 1px solid var(--pb-line-dark); border-radius: var(--pb-radius-card); box-shadow: var(--pb-shadow-md); padding: var(--pb-sp-lg); }
.bc-form-field label { color: var(--pb-ink-inverse-soft) !important; font-weight: 600; font-size: 0.8125rem !important; }
.bc-form-field input, .bc-form-field textarea, .bc-form-field select {
  font-family: var(--pb-font-body) !important; border-radius: var(--pb-radius-btn) !important; border: 1px solid var(--pb-ink-inverse-soft) !important;
  background: var(--pb-surface) !important; color: var(--pb-ink) !important; min-height: 44px;
}
.bc-form-field input:focus, .bc-form-field textarea:focus { outline: 2px solid var(--pb-sage-light); outline-offset: 2px; }

.bc-grid { padding: var(--pb-sp-3xl) 0; background: var(--pb-paper); }
.bc-grid__head h2 { font-family: var(--pb-font-display); font-weight: 700; font-size: 1.75rem; color: var(--pb-ink); }
.bc-grid__card {
  background: var(--pb-surface) !important; border: 1px solid var(--pb-line) !important; border-radius: var(--pb-radius-card) !important;
  box-shadow: var(--pb-shadow-sm); transition: box-shadow 150ms ease-out, transform 150ms ease-out;
}
.bc-grid__card:hover { box-shadow: var(--pb-shadow-md); transform: translateY(-2px); }
.bc-grid__card h3 { font-family: var(--pb-font-display); font-weight: 600; color: var(--pb-ink); }
.bc-grid__card p { font-family: var(--pb-font-body); color: var(--pb-ink-soft); }
.bc-grid--text-only .bc-grid__card { text-align: center; padding: var(--pb-sp-lg) var(--pb-sp-md) !important; }
.bc-grid--text-only .bc-grid__card h3 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pb-sage-dark); }
.bc-grid--text-only .bc-grid__card a { color: var(--pb-sage-dark); }
.bc-grid__card-img { border-radius: 0; }

.bc-gallery { padding: var(--pb-sp-2xl) 0; background: var(--pb-paper-alt); }
.bc-gallery__cell img { border-radius: var(--pb-radius-card); }
/* Always a single row (the base component-library.css rule is 3 columns, dropping to 2 on
   mobile — both wrap a 4-image gallery onto a second row). Forced to 4-across at every
   width; cells shrink rather than wrap. On very narrow screens the row scrolls horizontally
   instead of squeezing images unreadably small. */
.bc-gallery__grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: var(--pb-sp-xs);
}
@media (max-width: 560px) {
  .bc-gallery__grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--pb-sp-xs);
  }
  .bc-gallery__cell { flex: 0 0 70%; scroll-snap-align: start; }
}

.bc-map { background: var(--pb-paper-alt) !important; padding: var(--pb-sp-2xl) 0 !important; }
.bc-map__info h3 { font-family: var(--pb-font-display); font-weight: 600; color: var(--pb-ink); }
.bc-map__addr { color: var(--pb-ink-soft); }
.bc-map__addr a { color: var(--pb-sage-dark); }
.bc-map__frame iframe { border-radius: var(--pb-radius-card); }

.bc-video { padding: var(--pb-sp-3xl) 0; background: var(--pb-paper); }
.bc-video__copy h2 { font-family: var(--pb-font-display); font-weight: 700; color: var(--pb-ink); }
.bc-video__copy p { color: var(--pb-ink-soft); }
.bc-video__frame { border-radius: var(--pb-radius-card); box-shadow: var(--pb-shadow-md); overflow: hidden; }

/* Service-area / neighbourhood link lists — container/link chip restyle only, structure and hrefs untouched */
.bc-prose a[href*="goo.gl/maps"], .bc-prose a[href*="forecast7.com"] {
  color: var(--pb-sage-dark);
}

/* "Services Areas" grid (a flat list of ~34 suburb links, no heading/paragraph per item) —
   the generic .bc-grid__card treatment above is a full padded/bordered/shadowed card, sized
   for real content cards, and produces 34 disproportionately tall boxes here. Targeted via
   :has() at cards that contain ONLY a link and no heading, so this does NOT catch the
   visually-identical .bc-grid--text-only.bc-grid--3col classes used on about-us's real
   stat cards (which do have an h3 + p and must stay full cards). Falls back gracefully to
   the default full-card style in browsers without :has() support — never breaks, just less
   compact. Link targets/order/text untouched — visual only. */
.bc-grid__card:has(> a):not(:has(h3)) {
  background: var(--pb-surface) !important; border: 1px solid var(--pb-line) !important;
  border-radius: var(--pb-radius-badge) !important; box-shadow: none !important;
  padding: 0.4rem 0.75rem !important; text-align: left; flex: 0 0 auto;
}
.bc-grid__card:has(> a):not(:has(h3)):hover { background: var(--pb-sage); transform: none; box-shadow: none !important; }
.bc-grid__card:has(> a):not(:has(h3)) a { color: var(--pb-sage-dark); font-size: 0.875rem; text-decoration: none; }
.bc-grid__card:has(> a):not(:has(h3)):hover a { color: var(--pb-ink-inverse); }
.bc-grid__list:has(> .bc-grid__card > a:only-child) { display: flex !important; flex-wrap: wrap; gap: 0.5rem; }
