/* ============================================================
   Builder Bee Projects LLC - Design System
   Premium residential renovation & project support (Raleigh, NC)
   Palette: charcoal / black / gold / cream / neutral
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand colors */
  --ink: #14161a;
  --charcoal: #23282d;
  --charcoal-2: #2c323a;
  --charcoal-3: #383f48;
  --gold: #d4a017;
  --gold-dark: #b8860b;
  --gold-light: #e8b53d;
  --cream: #faf8f3;
  --white: #ffffff;
  --gray-100: #f2f1ec;
  --gray-200: #e7e5df;
  --gray-300: #d6d4cc;
  --gray-400: #b4b2aa;
  --gray-500: #6b7280;
  --gray-600: #4b5158;
  --text: #2b3036;
  --muted: #646b73;

  /* Typography */
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Type scale (fluid) */
  --fs-hero: clamp(2.3rem, 5.2vw, 4.1rem);
  --fs-h1: clamp(2rem, 4vw, 3.1rem);
  --fs-h2: clamp(1.65rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.27rem);
  --fs-body: 1.02rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --gap: clamp(1.2rem, 3vw, 2.2rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(20, 22, 26, 0.08), 0 1px 2px rgba(20, 22, 26, 0.06);
  --shadow: 0 8px 24px rgba(20, 22, 26, 0.1);
  --shadow-lg: 0 20px 48px rgba(20, 22, 26, 0.16);
  --ring: 0 0 0 3px rgba(212, 160, 23, 0.4);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 76px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
/* subtle placeholder only for photographic content (not transparent logos/SVGs) */
.hero__media img, .service-card__media img, .gallery__item img, .split__media img, .cta-band__media img { background: var(--gray-100); }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul, ol { padding-left: 1.2rem; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; color: var(--charcoal); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; color: var(--charcoal); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 4rem); }
.section--cream { background: var(--cream); }
.section--ink { background: var(--charcoal); color: var(--gray-200); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }
.grid { display: grid; gap: var(--gap); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.section--ink .eyebrow { color: var(--gold-light); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin: 0.6rem 0 0.8rem; }
.section-head p { font-size: var(--fs-lead); color: var(--muted); margin: 0; }
.section--ink .section-head p { color: var(--gray-300); }
.lead { font-size: var(--fs-lead); color: var(--muted); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.96rem; line-height: 1;
  padding: 0.95rem 1.7rem; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); text-align: center; white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn--outline:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); transform: translateY(-2px); }
.btn--dark { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.btn--dark:hover { background: var(--ink); border-color: var(--ink); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--gray-300); }
.btn--ghost:hover { border-color: var(--charcoal); color: var(--charcoal); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- 5. Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; min-height: var(--header-h);
  background: transparent; transition: background var(--transition), box-shadow var(--transition), min-height var(--transition);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 22, 26, 0.55), rgba(20, 22, 26, 0));
  opacity: 1; transition: opacity var(--transition);
}
.site-header.scrolled { background: var(--charcoal); box-shadow: var(--shadow); min-height: 64px; }
.site-header.scrolled::before { opacity: 0; }
.site-header.solid { background: var(--charcoal); }
.site-header.solid::before { opacity: 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.nav__brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav__brand img { height: 42px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--font-head); font-weight: 500; font-size: 0.94rem; color: rgba(255, 255, 255, 0.88);
  padding: 0.5rem 0.2rem; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 0.8rem; }
.nav__phone { display: inline-flex; align-items: center; gap: 0.45rem; color: rgba(255, 255, 255, 0.9); font-weight: 600; font-family: var(--font-head); font-size: 0.92rem; }
.nav__phone:hover { color: var(--gold-light); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; width: 44px; height: 44px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px auto; transition: var(--transition); }
.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: 940px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(82%, 340px); z-index: 1001;
    background: var(--charcoal); flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: calc(var(--header-h) + 1rem) 1.8rem 2rem; gap: 0; transform: translateX(100%);
    transition: transform var(--transition); box-shadow: var(--shadow-lg); display: flex;
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__links li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav__links a { display: block; padding: 1rem 0; font-size: 1.05rem; }
  .nav__actions { flex-direction: column; align-items: stretch; width: 100%; margin-top: 1.4rem; gap: 1rem; }
  .nav__phone { justify-content: center; padding: 0.6rem; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10, 11, 13, 0.5); z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition); }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
}

/* ---------- 6. Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 90vh; color: var(--white); padding-top: var(--header-h); isolation: isolate; }
.hero--inner { min-height: 56vh; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(20, 22, 26, 0.86) 0%, rgba(20, 22, 26, 0.62) 45%, rgba(20, 22, 26, 0.28) 100%);
}
.hero__inner { padding-block: clamp(3rem, 7vw, 6rem); max-width: 760px; }
.hero h1 { font-size: var(--fs-hero); color: var(--white); font-weight: 800; margin-bottom: 1.2rem; }
.hero--inner h1 { font-size: var(--fs-h1); }
.hero__sub { font-size: var(--fs-lead); color: rgba(255, 255, 255, 0.9); max-width: 600px; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__crumbs { display: flex; gap: 0.5rem; align-items: center; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.75); margin-bottom: 0.8rem; }
.hero__crumbs a { color: rgba(255, 255, 255, 0.85); }
.hero__crumbs a:hover { color: var(--gold-light); }
/* Legal / standalone pages have no hero: their first section must clear the fixed header */
main > .section:first-child:not(.hero) { padding-top: calc(var(--header-h) + clamp(1.4rem, 4vw, 2.8rem)); }

/* ---------- 7. Trust badges ---------- */
.trust { background: var(--ink); }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(0.6rem, 2vw, 2.4rem); padding-block: 1.3rem; list-style: none; margin: 0; }
.trust__row li { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--gray-200); font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; }
.trust__row svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* ---------- 8. Feature / audience cards ---------- */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.audience__card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 2rem 1.7rem; transition: var(--transition); }
.audience__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gray-300); }
.audience__icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(212, 160, 23, 0.13); color: var(--gold-dark); display: grid; place-items: center; margin-bottom: 1.1rem; }
.audience__icon svg { width: 26px; height: 26px; }
.audience__card h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.audience__card p { color: var(--muted); margin: 0; font-size: var(--fs-sm); }

/* ---------- 9. Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.service-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__media { aspect-ratio: 16 / 11; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.service-card__body p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 1.1rem; }
.service-card__link { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--gold-dark); display: inline-flex; align-items: center; gap: 0.4rem; }
.service-card__link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.service-card:hover .service-card__link svg { transform: translateX(4px); }
.service-card__tag { position: absolute; top: 1rem; left: 1rem; background: rgba(20, 22, 26, 0.82); color: var(--white); font-size: var(--fs-xs); font-weight: 600; font-family: var(--font-head); padding: 0.3rem 0.7rem; border-radius: 999px; letter-spacing: 0.04em; }

/* List-style services (no image) */
.service-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--gap); }
.service-item { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 1.8rem; transition: var(--transition); }
.service-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-item__num { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--gold); }
.service-item h3 { font-size: 1.18rem; margin: 0.5rem 0 0.6rem; }
.service-item p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 0.9rem; }
.service-item ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: var(--fs-sm); }
.service-item li { margin-bottom: 0.3rem; }

/* ---------- 10. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--gap); text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--gold); line-height: 1; }
.stat__label { color: var(--gray-300); font-size: var(--fs-sm); margin-top: 0.5rem; }
.section:not(.section--ink) .stat__label { color: var(--muted); }

/* ---------- 11. Project gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.gallery__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--gray-100); cursor: pointer; border: 0; padding: 0; width: 100%; }
.gallery__item.is-tall { aspect-ratio: 3 / 4; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem; background: linear-gradient(0deg, rgba(20, 22, 26, 0.82) 0%, rgba(20, 22, 26, 0) 55%);
  opacity: 0; transition: opacity var(--transition); text-align: left;
}
.gallery__item:hover .gallery__overlay, .gallery__item:focus-visible .gallery__overlay { opacity: 1; }
.gallery__cat { color: var(--gold-light); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.gallery__title { color: var(--white); font-size: 0.96rem; font-weight: 500; margin-top: 0.2rem; }
.gallery__filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.gallery__filter { font-family: var(--font-head); font-weight: 500; font-size: 0.88rem; padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--gray-300); background: var(--white); color: var(--charcoal); cursor: pointer; transition: var(--transition); }
.gallery__filter:hover { border-color: var(--gold); color: var(--gold-dark); }
.gallery__filter.active { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 11, 13, 0.93); display: none; place-items: center; padding: 4vw; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__cap { color: var(--gray-200); text-align: center; margin-top: 1rem; font-size: var(--fs-sm); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255, 255, 255, 0.1); border: 0; color: var(--white); width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; display: grid; place-items: center; transition: var(--transition); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--ink); }
.lightbox__close { top: 4vw; right: 4vw; }
.lightbox__nav--prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 3vw; top: 50%; transform: translateY(-50%); }

/* ---------- 12. Process steps ---------- */
.steps { display: grid; gap: 1.3rem; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.7rem; transition: var(--transition); }
.step:hover { box-shadow: var(--shadow); border-color: var(--gray-300); }
.step__num { counter-increment: step; width: 54px; height: 54px; border-radius: 50%; background: var(--charcoal); color: var(--gold); font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; display: grid; place-items: center; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.step p { color: var(--muted); margin: 0; font-size: var(--fs-sm); }
@media (min-width: 760px) { .steps--flow { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 13. CTA band ---------- */
.cta-band { position: relative; isolation: isolate; color: var(--white); text-align: center; overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 22, 26, 0.9), rgba(20, 22, 26, 0.82)); }
.cta-band h2 { color: var(--white); font-size: var(--fs-h2); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255, 255, 255, 0.88); font-size: var(--fs-lead); max-width: 620px; margin: 0 auto 2rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- 14. Split feature ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse .split__media { order: 2; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split__media--stack img { aspect-ratio: 3 / 4; }
.split__body h2 { font-size: var(--fs-h2); margin: 0.6rem 0 1rem; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.7rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; color: var(--text); }
.checklist svg { width: 22px; height: 22px; color: var(--gold-dark); margin-top: 2px; flex-shrink: 0; }
.section--ink .checklist li { color: var(--gray-200); }

/* ---------- 15. Quote / testimonial ---------- */
.quote { max-width: 820px; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--white); margin: 0 0 1.3rem; }
.quote blockquote::before { content: "\201C"; color: var(--gold); font-size: 2.6em; line-height: 0; vertical-align: -0.35em; margin-right: 0.06em; }
.quote__cite { color: var(--gray-300); font-size: var(--fs-sm); font-style: normal; }
.quote__cite strong { color: var(--gold-light); }

/* ---------- 16. Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 4vw, 2.8rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; color: var(--charcoal); }
.field .req { color: var(--gold-dark); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--text);
  padding: 0.8rem 0.95rem; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
.field input:invalid:not(:placeholder-shown) { border-color: #c0392b; }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.field--check { flex-direction: row; align-items: flex-start; gap: 0.6rem; grid-column: 1 / -1; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold-dark); flex-shrink: 0; }
.field--check label { font-weight: 400; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); margin-bottom: 1.2rem; display: none; }
.form-status.show { display: block; }
.form-status--ok { background: rgba(39, 174, 96, 0.12); color: #1e7e45; border: 1px solid rgba(39, 174, 96, 0.3); }
.form-status--err { background: rgba(192, 57, 43, 0.1); color: #a5342a; border: 1px solid rgba(192, 57, 43, 0.3); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--ink); color: var(--gray-300); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--gap); padding-bottom: 2.8rem; }
.site-footer h4 { color: var(--white); font-size: 0.96rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-brand img { height: 46px; margin-bottom: 1.1rem; }
.footer-brand p { color: var(--gray-400); max-width: 320px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-links a { color: var(--gray-300); }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.footer-contact li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }
.footer-contact a { color: var(--gray-200); }
.footer-disclaimer { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 1.5rem; }
.footer-disclaimer p { color: var(--gray-500); font-size: var(--fs-xs); line-height: 1.6; max-width: 1000px; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 1.3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; align-items: center; }
.footer-bottom p { margin: 0; color: var(--gray-500); font-size: var(--fs-xs); }
.footer-bottom nav { display: flex; gap: 1.2rem; }
.footer-bottom a { color: var(--gray-400); font-size: var(--fs-xs); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 18. Chatbot widget ---------- */
.bb-chat-launcher {
  position: fixed; bottom: 22px; right: 22px; z-index: 1500;
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.2rem 0.8rem 0.85rem;
  background: var(--gold); color: var(--ink); border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow-lg);
  transition: transform var(--transition), background var(--transition);
}
.bb-chat-launcher:hover { transform: translateY(-3px); background: var(--gold-light); }
.bb-chat-launcher svg { width: 26px; height: 26px; }
.bb-chat-launcher.hidden { display: none; }
.bb-chat-panel {
  position: fixed; bottom: 22px; right: 22px; z-index: 1600;
  width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 44px));
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden; transform-origin: bottom right;
}
.bb-chat-panel.open { display: flex; animation: bbpop 0.22s ease; }
@keyframes bbpop { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: none; } }
.bb-chat-header { background: var(--charcoal); color: var(--white); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.75rem; }
.bb-chat-header img { height: 34px; width: 34px; }
.bb-chat-header .t { font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; line-height: 1.2; }
.bb-chat-header .s { font-size: var(--fs-xs); color: var(--gray-300); display: flex; align-items: center; gap: 0.35rem; }
.bb-chat-header .s::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; }
.bb-chat-close { margin-left: auto; background: none; border: 0; color: var(--gray-300); cursor: pointer; font-size: 1.4rem; line-height: 1; padding: 0.2rem; }
.bb-chat-close:hover { color: var(--white); }
.bb-chat-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; background: var(--cream); }
.bb-msg { max-width: 82%; padding: 0.7rem 0.95rem; border-radius: 14px; font-size: 0.92rem; line-height: 1.5; }
.bb-msg--bot { background: var(--white); color: var(--text); border: 1px solid var(--gray-200); align-self: flex-start; border-bottom-left-radius: 4px; }
.bb-msg--user { background: var(--charcoal); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.bb-typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 0.8rem 1rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; }
.bb-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-400); animation: bbblink 1.2s infinite; }
.bb-typing span:nth-child(2) { animation-delay: 0.2s; }
.bb-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bbblink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.bb-chat-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1.1rem 0.6rem; background: var(--cream); }
.bb-chat-quick button { font-size: var(--fs-xs); font-family: var(--font-head); font-weight: 500; padding: 0.4rem 0.75rem; border: 1px solid var(--gray-300); background: var(--white); border-radius: 999px; cursor: pointer; color: var(--charcoal); transition: var(--transition); }
.bb-chat-quick button:hover { border-color: var(--gold); color: var(--gold-dark); }
.bb-chat-input { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid var(--gray-200); background: var(--white); }
.bb-chat-input textarea { flex: 1; resize: none; border: 1.5px solid var(--gray-300); border-radius: 999px; padding: 0.65rem 1rem; font-family: var(--font-body); font-size: 0.92rem; max-height: 90px; line-height: 1.4; }
.bb-chat-input textarea:focus { outline: none; border-color: var(--gold); }
.bb-chat-send { background: var(--gold); border: 0; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: var(--transition); }
.bb-chat-send:hover { background: var(--gold-dark); }
.bb-chat-send svg { width: 20px; height: 20px; color: var(--ink); }
.bb-chat-footer { font-size: 10px; color: var(--muted); text-align: center; padding: 0.4rem; background: var(--white); }

/* ---------- 19. Utilities & motion ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 0.7rem 1.2rem; z-index: 3000; font-weight: 600; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.badge-pill { display: inline-block; background: rgba(212,160,23,0.14); color: var(--gold-dark); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); padding: 0.35rem 0.85rem; border-radius: 999px; letter-spacing: 0.05em; }

/* Prose for legal pages */
.prose { max-width: var(--container-narrow); }
.prose h2 { font-size: var(--fs-h3); margin: 2rem 0 0.7rem; }
.prose h3 { font-size: 1.12rem; margin: 1.4rem 0 0.5rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { margin: 0 0 1rem; }
.prose a { text-decoration: underline; }
.prose .updated { color: var(--muted); font-size: var(--fs-sm); }

/* ============================================================
   20. SEO content add-ons - Learning Center, service-area &
   case-study pages. Added 2026-05-31 (growth build).
   ============================================================ */

/* --- Category filter chips (blog index) --- */
.cat-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 0 0 2.2rem; }
.cat-chip { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); padding: 0.45rem 1rem; border-radius: 999px; border: 1.5px solid var(--gray-300); background: var(--white); color: var(--charcoal); cursor: pointer; transition: var(--transition); }
.cat-chip:hover { border-color: var(--gold); color: var(--gold-dark); }
.cat-chip.active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }

/* --- Post / card grid (blog index, related posts, case studies) --- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--gap); }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { align-self: flex-start; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.5rem; }
.post-card__body h3 { font-size: 1.16rem; line-height: 1.3; margin: 0 0 0.5rem; }
.post-card__body h3 a { color: var(--charcoal); text-decoration: none; }
.post-card__body h3 a:hover { color: var(--gold-dark); }
.post-card__body p { color: var(--text); font-size: 0.96rem; margin: 0 0 1rem; }
.post-card__more { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--gold-dark); text-decoration: none; }
.post-card__more:hover { text-decoration: underline; }

/* --- Article meta line --- */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.9rem; color: var(--muted); font-size: var(--fs-sm); margin: 0 0 1.4rem; }
.article-meta .post-cat { color: var(--gold-dark); font-weight: 600; font-family: var(--font-head); }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gray-300); display: inline-block; }

/* --- Long-form article prose (extends .prose) --- */
.prose--article { max-width: 760px; }
.prose--article > p, .prose--article > ul, .prose--article > ol { font-size: 1.06rem; line-height: 1.75; }
.prose--article figure { margin: 1.6rem 0; }
.prose--article figure img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.prose--article figcaption { color: var(--muted); font-size: var(--fs-sm); margin-top: 0.5rem; text-align: center; }
.prose--article h2 { margin-top: 2.4rem; }

/* --- Callout box: "When to call a professional", safety notes, disclaimer --- */
.callout { border: 1px solid var(--gray-200); border-left: 4px solid var(--gold); background: var(--cream); border-radius: var(--radius-sm); padding: 1.15rem 1.35rem; margin: 1.8rem 0; }
.callout__title { font-family: var(--font-head); font-weight: 700; color: var(--charcoal); margin: 0 0 0.45rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--pro { border-left-color: var(--gold-dark); }
.callout--note { border-left-color: var(--charcoal); background: #f4f5f6; }

/* --- FAQ accordion (native <details>, works without JS) --- */
.faq { max-width: var(--container-narrow); margin-inline: auto; }
.faq__item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 0.75rem; background: var(--white); overflow: hidden; }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.05rem 1.25rem; font-family: var(--font-head); font-weight: 600; color: var(--charcoal); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-dark); font-weight: 400; line-height: 1; flex-shrink: 0; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item .faq__a { padding: 0 1.25rem 1.15rem; color: var(--text); }
.faq__item .faq__a p:first-child { margin-top: 0; }

/* --- Case-study facts strip --- */
.cs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.8rem 0; padding: 0; list-style: none; }
.cs-facts li { background: var(--cream); border-radius: var(--radius-sm); padding: 1rem 1.15rem; }
.cs-facts .k { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-family: var(--font-head); font-weight: 600; margin-bottom: 0.25rem; }
.cs-facts .v { color: var(--charcoal); font-weight: 500; }
