/* ==========================================================================
   Carports Newcastle — Locked Component Library
   Industry: carports / carpentry construction · Location: Newcastle & Hunter Region, NSW
   Palette cues: graphite steel-frame darks + Hunter Valley brick/rust accent
   ========================================================================== */

:root {
  /* ---- Brand colour tokens ---- */
  --bc-primary: #24333F;        /* graphite steel-blue — trusses, roll-formed roofing */
  --bc-primary-dark: #141C22;   /* pressed shade for hovers / deep bands */
  --bc-primary-tint: #E7ECEE;   /* pale wash of primary for soft panels */
  --bc-accent: #B84B26;         /* Hunter brick / rust — steelworks heritage cue */
  --bc-accent-dark: #943B1D;    /* accent hover / border shade */
  --bc-accent-deep: #8A3A1C;    /* text-safe accent for links on light bg (AA) */
  --bc-accent-tint: #FFD3B8;    /* text-safe accent for small text on dark/primary bg (AA) */
  --bc-ink: #1B2023;            /* near-black body text */
  --bc-ink-soft: #52616B;       /* muted secondary text, still AA on paper */
  --bc-paper: #F7F5F1;          /* warm neutral off-white page background */
  --bc-paper-alt: #ECE7DE;      /* deeper warm band for alternating sections */
  --bc-white: #FFFFFF;
  --bc-line: #D9D3C8;           /* hairline border on paper */
  --bc-line-dark: rgba(255,255,255,0.18);
  --bc-success: #2E7D4F;
  --bc-focus: #0B5FFF;

  /* ---- Type ---- */
  --bc-font-heading: 'Barlow Condensed', 'Oswald', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bc-font-body: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bc-weight-heading: 700;
  --bc-weight-bold: 700;
  --bc-weight-semi: 600;
  --bc-weight-regular: 400;

  --bc-text-xs: 0.8125rem;
  --bc-text-sm: 0.9375rem;
  --bc-text-base: 1.0625rem;
  --bc-text-lg: 1.25rem;
  --bc-text-xl: 1.5rem;
  --bc-text-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --bc-text-3xl: clamp(2.1rem, 1.6rem + 2.3vw, 3.25rem);
  --bc-text-4xl: clamp(2.5rem, 1.8rem + 3.2vw, 4rem);

  --bc-leading-tight: 1.15;
  --bc-leading-snug: 1.35;
  --bc-leading-normal: 1.6;

  /* ---- Spacing scale (8px base) ---- */
  --bc-space-1: 0.5rem;
  --bc-space-2: 1rem;
  --bc-space-3: 1.5rem;
  --bc-space-4: 2rem;
  --bc-space-5: 3rem;
  --bc-space-6: 4rem;
  --bc-space-7: 6rem;

  /* ---- Layout ---- */
  --bc-container-w: 1200px;
  --bc-radius-sm: 6px;
  --bc-radius-md: 12px;
  --bc-radius-lg: 20px;
  --bc-shadow-sm: 0 2px 6px rgba(20, 28, 34, 0.08);
  --bc-shadow-md: 0 12px 28px rgba(20, 28, 34, 0.14);
  --bc-shadow-lg: 0 24px 48px rgba(20, 28, 34, 0.22);
  --bc-border-angle: 4px; /* roll-formed steel-sheet cue used on card tops */
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bc-paper);
  color: var(--bc-ink);
  font-family: var(--bc-font-body);
  font-weight: var(--bc-weight-regular);
  font-size: var(--bc-text-base);
  line-height: var(--bc-leading-normal);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--bc-accent-deep); text-decoration-thickness: 2px; }
a:hover { color: var(--bc-primary); }
:focus-visible { outline: 3px solid var(--bc-focus); outline-offset: 2px; }
h1, h2, h3, h4 {
  font-family: var(--bc-font-heading);
  font-weight: var(--bc-weight-heading);
  line-height: var(--bc-leading-tight);
  margin: 0 0 var(--bc-space-2);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--bc-text-4xl); }
h2 { font-size: var(--bc-text-3xl); }
h3 { font-size: var(--bc-text-2xl); }
h4 { font-size: var(--bc-text-lg); }
p { margin: 0 0 var(--bc-space-2); }

/* ==========================================================================
   Container / Eyebrow
   ========================================================================== */
.bc-container {
  width: 100%;
  max-width: var(--bc-container-w);
  margin-inline: auto;
  padding-inline: var(--bc-space-3);
}

.bc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--bc-font-body);
  font-weight: var(--bc-weight-bold);
  font-size: var(--bc-text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bc-accent-deep);
  margin-bottom: var(--bc-space-2);
}
.bc-eyebrow::before {
  content: "";
  width: 1.5em;
  height: 3px;
  background: var(--bc-accent);
  border-radius: 2px;
  display: inline-block;
}
.bc-eyebrow--on-dark { color: var(--bc-accent-tint); }
.bc-eyebrow--on-dark::before { background: var(--bc-accent-tint); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--bc-font-body);
  font-weight: var(--bc-weight-bold);
  font-size: var(--bc-text-sm);
  letter-spacing: 0.01em;
  padding: 0.9em 1.7em;
  border-radius: var(--bc-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.bc-btn:hover { transform: translateY(-2px); }
.bc-btn--primary {
  background: var(--bc-primary);
  color: var(--bc-white);
  box-shadow: var(--bc-shadow-sm);
}
.bc-btn--primary:hover { background: var(--bc-primary-dark); color: var(--bc-white); }
.bc-btn--accent {
  background: var(--bc-accent);
  color: var(--bc-white);
  box-shadow: var(--bc-shadow-sm);
}
.bc-btn--accent:hover { background: var(--bc-accent-dark); color: var(--bc-white); }
.bc-btn--ghost {
  background: transparent;
  color: var(--bc-white);
  border-color: var(--bc-line-dark);
}
.bc-btn--ghost:hover { background: rgba(255,255,255,0.12); color: var(--bc-white); }
.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-white);
  border-bottom: 1px solid var(--bc-line);
  position: sticky;
  top: 0;
  z-index: 70;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-space-3);
  padding-block: var(--bc-space-2);
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--bc-font-heading);
  font-size: var(--bc-text-lg);
  color: var(--bc-primary);
  text-decoration: none;
}
.site-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--bc-radius-sm);
  background: linear-gradient(145deg, var(--bc-accent), var(--bc-primary));
  flex-shrink: 0;
}

/* ---- Primary nav: desktop dropdown, up to 4 levels deep ---- */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--bc-space-3);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav__list a {
  color: var(--bc-ink);
  text-decoration: none;
  font-weight: var(--bc-weight-semi);
  font-size: var(--bc-text-sm);
}
.site-nav__list a:hover,
.site-nav__list a:focus-visible { color: var(--bc-accent-deep); }
.site-nav__toggle { display: none; }

.site-nav__item { position: relative; }
.site-nav__item > a { display: flex; align-items: center; gap: 0.35em; padding: 0.5em 0; }
.site-nav__caret { font-size: 0.65em; color: var(--bc-ink-soft); }
.site-nav__caret-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  color: var(--bc-ink-soft);
  font-size: 0.85rem;
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;
}
.site-nav__caret-btn[aria-expanded="true"] { color: var(--bc-accent-deep); transform: rotate(90deg); }

/* Dropdown submenus (levels 2-4) — desktop: hover/focus reveals, absolutely positioned */
.site-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-md);
  box-shadow: var(--bc-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 50;
}
.site-nav__item:hover > .site-nav__sub,
.site-nav__item:focus-within > .site-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav__sub .site-nav__sub { top: 0; left: 100%; }
/* Flip alignment (applied by a small script) so dropdowns never run off-screen at the right edge */
.site-nav__sub.site-nav__sub--flip { left: auto; right: 0; }
.site-nav__sub .site-nav__sub.site-nav__sub--flip { left: auto; right: 100%; }
.site-nav__sub li { position: relative; }
.site-nav__sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.6em 0.75em;
  border-radius: var(--bc-radius-sm);
  font-size: var(--bc-text-sm);
  color: var(--bc-ink);
}
.site-nav__sub a:hover,
.site-nav__sub a:focus-visible { background: var(--bc-primary-tint); color: var(--bc-accent-deep); }

/* Mobile hamburger */
.site-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-sm);
  background: var(--bc-white);
  cursor: pointer;
  position: relative;
  z-index: 65;
}
.site-nav__toggle-bar,
.site-nav__toggle-bar::before,
.site-nav__toggle-bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bc-ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav__toggle-bar::before { position: absolute; top: -6px; }
.site-nav__toggle-bar::after { position: absolute; top: 6px; }

.site-footer {
  background: var(--bc-primary-dark);
  color: var(--bc-white);
  padding-block: var(--bc-space-6) var(--bc-space-4);
}
.site-footer a { color: var(--bc-accent-tint); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--bc-space-4);
}
.site-footer__heading {
  font-family: var(--bc-font-body);
  font-weight: var(--bc-weight-bold);
  font-size: var(--bc-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bc-accent-tint);
  margin-bottom: var(--bc-space-2);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6em; }
.site-footer__bottom {
  margin-top: var(--bc-space-5);
  padding-top: var(--bc-space-3);
  border-top: 1px solid var(--bc-line-dark);
  font-size: var(--bc-text-xs);
  color: rgba(255,255,255,0.75);
  display: flex;
  justify-content: space-between;
  gap: var(--bc-space-2);
  flex-wrap: wrap;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.bc-hero {
  position: relative;
  background: linear-gradient(160deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%);
  color: var(--bc-white);
  overflow: hidden;
}
.bc-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(184,75,38,0.32), transparent 65%);
  pointer-events: none;
}
.bc-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--bc-space-5);
  align-items: center;
  padding-block: var(--bc-space-7) var(--bc-space-6);
}
.bc-hero__title { font-size: var(--bc-text-4xl); color: var(--bc-white); }
.bc-hero__lede {
  font-size: var(--bc-text-lg);
  color: rgba(255,255,255,0.9);
  max-width: 42ch;
  margin-bottom: var(--bc-space-4);
}
.bc-hero__actions { display: flex; gap: var(--bc-space-2); flex-wrap: wrap; }
.bc-hero__media {
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow-lg);
  border: 6px solid rgba(255,255,255,0.15);
}
.bc-hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.bc-hero__stats {
  position: relative;
  display: flex;
  gap: var(--bc-space-5);
  margin-top: var(--bc-space-5);
  flex-wrap: wrap;
}
.bc-hero__stat-num {
  font-family: var(--bc-font-heading);
  font-size: var(--bc-text-2xl);
  color: var(--bc-accent-tint);
  display: block;
}
.bc-hero__stat-label { font-size: var(--bc-text-xs); color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Hero variants: light + with-lede-only (no media) ---- */
.bc-hero--light {
  background: var(--bc-paper);
  color: var(--bc-ink);
}
.bc-hero--light::after { background: radial-gradient(circle, rgba(184,75,38,0.14), transparent 65%); }
.bc-hero--light .bc-hero__title { color: var(--bc-ink); }
.bc-hero--light .bc-hero__lede { color: var(--bc-ink-soft); }
.bc-hero--light .bc-hero__stat-num { color: var(--bc-accent-deep); }
.bc-hero--light .bc-hero__stat-label { color: var(--bc-ink-soft); }
.bc-hero--light .bc-eyebrow--on-dark { color: var(--bc-accent-deep); }
.bc-hero--light .bc-eyebrow--on-dark::before { background: var(--bc-accent); }
.bc-hero--light .bc-btn--ghost { color: var(--bc-primary); border-color: var(--bc-primary); }
.bc-hero--light .bc-btn--ghost:hover { background: var(--bc-primary); color: var(--bc-white); }

.bc-hero--with-lede { padding-block: var(--bc-space-7); }
.bc-hero--with-lede .bc-hero__grid { grid-template-columns: 1fr; text-align: center; padding-block: 0; }
.bc-hero--with-lede .bc-hero__lede { margin-inline: auto; }
.bc-hero--with-lede .bc-hero__actions { justify-content: center; }
.bc-hero--with-lede .bc-hero__stats { justify-content: center; }

/* ==========================================================================
   Prose
   ========================================================================== */
.bc-prose {
  padding-block: var(--bc-space-6);
}
.bc-prose__inner { max-width: 72ch; }
.bc-prose--has-color { background: var(--bc-primary-tint); }
.bc-prose--dark { background: var(--bc-primary-dark); color: var(--bc-white); }
.bc-prose--dark .bc-eyebrow { color: var(--bc-accent-tint); }
.bc-prose--dark h2, .bc-prose--dark h3 { color: var(--bc-white); }
.bc-prose--dark p { color: rgba(255,255,255,0.88); }
.bc-prose--dark a { color: var(--bc-accent-tint); }
.bc-prose--with-image .bc-prose__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-space-5);
  align-items: center;
}
.bc-prose--with-image .bc-prose__inner { max-width: none; }
.bc-prose__img {
  border-radius: var(--bc-radius-md);
  overflow: hidden;
  box-shadow: var(--bc-shadow-md);
}
.bc-prose__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ==========================================================================
   Grid (feature / service cards)
   ========================================================================== */
.bc-grid { padding-block: var(--bc-space-6); }
.bc-grid__head { max-width: 60ch; margin-bottom: var(--bc-space-4); }
.bc-grid__cells {
  display: grid;
  gap: var(--bc-space-3);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.bc-grid--2col .bc-grid__cells { grid-template-columns: repeat(2, 1fr); }
.bc-grid--3col .bc-grid__cells { grid-template-columns: repeat(3, 1fr); }
.bc-grid--4col .bc-grid__cells { grid-template-columns: repeat(4, 1fr); }

.bc-grid__card {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-top: var(--bc-border-angle) solid var(--bc-accent);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-space-3);
  box-shadow: var(--bc-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bc-grid__card:hover { transform: translateY(-4px); box-shadow: var(--bc-shadow-md); }
.bc-grid__card-img {
  border-radius: var(--bc-radius-sm);
  overflow: hidden;
  margin: calc(var(--bc-space-3) * -1) calc(var(--bc-space-3) * -1) var(--bc-space-2);
}
.bc-grid__card-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.bc-grid__card h3 { font-size: var(--bc-text-lg); margin-bottom: 0.4em; }
.bc-grid__card p { color: var(--bc-ink-soft); margin-bottom: 0; font-size: var(--bc-text-sm); }
.bc-grid--text-only .bc-grid__card { border-top: 1px solid var(--bc-line); border-left: var(--bc-border-angle) solid var(--bc-accent); }
.bc-grid--imaged .bc-grid__card { padding-bottom: var(--bc-space-3); }

/* ==========================================================================
   FAQ (accordion)
   ========================================================================== */
.bc-faq { padding-block: var(--bc-space-6); background: var(--bc-paper-alt); }
.bc-faq__head { max-width: 60ch; margin-bottom: var(--bc-space-4); }
.bc-faq__list { display: grid; gap: var(--bc-space-2); max-width: 78ch; }
.bc-faq__item {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-md);
  overflow: hidden;
}
.bc-faq__q {
  font-family: var(--bc-font-body);
  font-weight: var(--bc-weight-bold);
  font-size: var(--bc-text-base);
  margin: 0;
  padding: var(--bc-space-2) var(--bc-space-3);
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  gap: 0.6em;
  align-items: center;
  justify-content: space-between;
  color: var(--bc-ink);
}
.bc-faq__q-text { display: flex; gap: 0.6em; align-items: baseline; }
.bc-faq__q-text::before { content: "Q."; color: var(--bc-accent-deep); }
.bc-faq__icon {
  flex-shrink: 0;
  width: 1.4em;
  height: 1.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--bc-line);
  color: var(--bc-accent-deep);
  transition: transform 0.2s ease;
}
.bc-faq__item[data-open="true"] .bc-faq__icon { transform: rotate(45deg); }
.bc-faq__a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.bc-faq__item[data-open="true"] .bc-faq__a-wrap { grid-template-rows: 1fr; }
.bc-faq__a-inner { overflow: hidden; }
.bc-faq__a {
  margin: 0;
  padding: 0 var(--bc-space-3) var(--bc-space-2);
  color: var(--bc-ink-soft);
  display: flex;
  gap: 0.6em;
}
.bc-faq__a::before { content: "A."; color: var(--bc-primary); font-weight: var(--bc-weight-bold); flex-shrink: 0; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.bc-gallery { padding-block: var(--bc-space-6); }
.bc-gallery__head { max-width: 60ch; margin-bottom: var(--bc-space-4); }
.bc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--bc-space-2);
}
.bc-gallery__cell {
  position: relative;
  border-radius: var(--bc-radius-md);
  overflow: hidden;
  box-shadow: var(--bc-shadow-sm);
  margin: 0;
}
.bc-gallery__cell img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform 0.25s ease; }
.bc-gallery__cell:hover img { transform: scale(1.06); }
.bc-gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(20,28,34,0.9), transparent);
  color: var(--bc-white);
  font-size: var(--bc-text-xs);
  padding: var(--bc-space-2) var(--bc-space-1) var(--bc-space-1);
  margin: 0;
}

/* ==========================================================================
   Video
   ========================================================================== */
.bc-video { padding-block: var(--bc-space-6); background: var(--bc-primary-tint); }
.bc-video__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--bc-space-5);
  align-items: center;
}
.bc-video__copy p { color: var(--bc-ink-soft); }
.bc-video__player {
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow-md);
}
.bc-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bc-primary-dark);
}
.bc-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Map
   ========================================================================== */
.bc-map { padding-block: var(--bc-space-6); }
.bc-map__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--bc-space-4);
  align-items: stretch;
}
.bc-map__info {
  background: var(--bc-primary);
  color: var(--bc-white);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bc-map__info h3 { color: var(--bc-white); }
.bc-map__addr { list-style: none; margin: var(--bc-space-2) 0 0; padding: 0; display: grid; gap: 0.6em; font-size: var(--bc-text-sm); color: rgba(255,255,255,0.92); }
.bc-map__addr a { color: var(--bc-accent-tint); }
.bc-map__frame {
  border-radius: var(--bc-radius-md);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--bc-shadow-sm);
}
.bc-map__frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ==========================================================================
   Testimonial
   ========================================================================== */
.bc-testimonial { padding-block: var(--bc-space-6); background: var(--bc-primary-dark); color: var(--bc-white); }
.bc-testimonial__head { max-width: 60ch; margin: 0 auto var(--bc-space-4); text-align: center; }
.bc-testimonial__head .bc-eyebrow { justify-content: center; }
.bc-testimonial__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--bc-space-3);
}
.bc-testimonial__card {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--bc-line-dark);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-space-3);
  margin: 0;
}
.bc-testimonial__stars { color: var(--bc-accent-tint); letter-spacing: 0.15em; margin-bottom: var(--bc-space-1); }
.bc-testimonial__quote { color: rgba(255,255,255,0.94); font-size: var(--bc-text-base); }
.bc-testimonial__author { display: flex; align-items: center; gap: 0.8em; margin-top: var(--bc-space-2); }
.bc-testimonial__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(145deg, var(--bc-accent), var(--bc-primary));
  flex-shrink: 0;
}
.bc-testimonial__name { font-weight: var(--bc-weight-bold); font-size: var(--bc-text-sm); }
.bc-testimonial__role { font-size: var(--bc-text-xs); color: rgba(255,255,255,0.72); }

/* ==========================================================================
   Form band
   ========================================================================== */
.bc-formband { padding-block: var(--bc-space-6); background: var(--bc-paper-alt); }
.bc-formband__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--bc-space-5);
  align-items: center;
}
.bc-formband__title { margin-bottom: var(--bc-space-2); }
.bc-formband__lede { color: var(--bc-ink-soft); max-width: 44ch; }
.bc-formband__form {
  background: var(--bc-white);
  border-radius: var(--bc-radius-lg);
  border: 1px solid var(--bc-line);
  box-shadow: var(--bc-shadow-md);
  padding: var(--bc-space-4);
  display: grid;
  gap: var(--bc-space-2);
}
.bc-formband--intro { background: var(--bc-primary); color: var(--bc-white); }
.bc-formband--intro .bc-formband__title { color: var(--bc-white); }
.bc-formband--intro .bc-formband__lede { color: rgba(255,255,255,0.88); }
.bc-formband--intro .bc-eyebrow { color: var(--bc-accent-tint); }
.bc-formband--final { background: var(--bc-primary-dark); color: var(--bc-white); text-align: center; }
.bc-formband--final .bc-formband__grid { grid-template-columns: 1fr; justify-items: center; }
.bc-formband--final .bc-formband__title { color: var(--bc-white); }
.bc-formband--final .bc-formband__lede { color: rgba(255,255,255,0.88); margin-inline: auto; }
.bc-formband--final .bc-formband__form { max-width: 560px; width: 100%; }

.bc-form-field { display: grid; gap: 0.4em; text-align: left; }
.bc-form-field label {
  font-size: var(--bc-text-xs);
  font-weight: var(--bc-weight-semi);
  color: var(--bc-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bc-form-field input,
.bc-form-field textarea,
.bc-form-field select {
  font: inherit;
  font-size: var(--bc-text-sm);
  padding: 0.75em 0.9em;
  border-radius: var(--bc-radius-sm);
  border: 1.5px solid var(--bc-line);
  background: var(--bc-paper);
  color: var(--bc-ink);
  width: 100%;
}
.bc-form-field input:focus,
.bc-form-field textarea:focus,
.bc-form-field select:focus {
  border-color: var(--bc-primary);
  outline: 3px solid rgba(36,51,63,0.25);
  outline-offset: 0;
}
.bc-form-field--required label::after { content: " *"; color: var(--bc-accent-dark); }
.bc-formband__form .bc-btn { justify-self: start; margin-top: var(--bc-space-1); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .bc-hero__grid,
  .bc-prose--with-image .bc-prose__grid,
  .bc-video__grid,
  .bc-map__grid,
  .bc-formband__grid { grid-template-columns: 1fr; }
  .bc-grid--3col .bc-grid__cells,
  .bc-grid--4col .bc-grid__cells { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; }
}

@media (max-width: 780px) {
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 88vw); background: var(--bc-white); box-shadow: var(--bc-shadow-lg); padding: var(--bc-space-4) var(--bc-space-3); overflow-y: auto; transform: translateX(100%); transition: transform 0.25s ease; z-index: 60; }
  .site-nav[data-open="true"] { transform: translateX(0); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > .site-nav__item { border-bottom: 1px solid var(--bc-line); }
  .site-nav__item > a { padding: 0.9em 0; }
  .site-nav__sub { display: none; }
  .site-nav__item[data-open="true"] > .site-nav__sub { display: block; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--bc-line); border-radius: 0; padding-left: var(--bc-space-2); }
  .site-nav__sub .site-nav__sub { left: 0; }
  .site-nav__toggle { display: inline-flex; }
  .site-nav__list .bc-btn { margin-block: var(--bc-space-2); }
  .site-nav__caret-btn { display: inline-flex; }
  .site-nav__item > a { padding-right: 2.5em; }
  .site-nav__sub { min-width: 0; width: 100%; }
}

@media (max-width: 640px) {
  .bc-grid--2col .bc-grid__cells,
  .bc-grid--3col .bc-grid__cells,
  .bc-grid--4col .bc-grid__cells { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .bc-hero__stats { gap: var(--bc-space-3); }
  .bc-formband__form .bc-btn { justify-self: stretch; }
}
