:root {
  --bfb-teal: #243b41;
  --bfb-ink: #1f1f1f;
  --bfb-paper: #f7f7f7;
  --bfb-gold: #c2a46d;
  --bfb-muted: #8a8a8a;
  --bfb-black: #000000;
  --bfb-white: #ffffff;
  --font-title: "Roboto", sans-serif;
  --font-subtitle: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: Inter, sans-serif;
  --font-body: "Open Sans", sans-serif;
  --size-title: 42px;
  --size-subtitle: 36px;
  --size-heading: 32px;
  --size-subheading: 24px;
  --size-section: 20px;
  --size-body: 16px;
}

html {
  background: var(--bfb-teal);
}

body.bfb-theme,
.bfb-theme .wp-site-blocks {
  background: var(--bfb-teal) !important;
  color: var(--bfb-paper) !important;
  font-family: var(--font-body) !important;
  font-size: var(--size-body) !important;
  line-height: 1.65 !important;
}

.bfb-theme p,
.bfb-theme li,
.bfb-theme td,
.bfb-theme label,
.bfb-theme input,
.bfb-theme textarea,
.bfb-theme .lead,
.bfb-theme .bfb-text,
.bfb-theme .bfb-lead,
.bfb-theme .bfb-list,
.bfb-theme .checklist li {
  font-family: var(--font-body) !important;
  font-size: var(--size-body) !important;
  line-height: 1.7 !important;
  color: var(--bfb-paper) !important;
}

.bfb-theme h1,
.bfb-theme .hero h1,
.bfb-theme .bfb-title,
.bfb-theme .bfb-home-title,
.bfb-theme .bfb-contact__title,
.bfb-theme .bfb-services__title,
.bfb-theme .bfbj-hero h1,
.bfb-theme .bfbic-hero h1,
.bfb-theme .bfbk-hero h1,
.bfb-theme .bfbr-hero h1,
.bfb-theme .bfbm-hero h1,
.bfb-theme .wp-block-heading:is(h1) {
  font-family: var(--font-title) !important;
  font-size: var(--size-title) !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  color: var(--bfb-white) !important;
  text-transform: none !important;
}

.bfb-theme .subtitle,
.bfb-theme .hero-subtitle {
  font-family: var(--font-subtitle) !important;
  font-size: var(--size-subtitle) !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  color: var(--bfb-gold) !important;
}
.bfb-theme .lead,
.bfb-theme .bfbj-hero__lead,
.bfb-theme .bfbic-hero__lead,
.bfb-theme .bfbk-lead,
.bfb-theme .bfbr-lead,
.bfb-theme .bfbm-lead {
  font-family: var(--font-body) !important;
  font-size: var(--size-body) !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: var(--bfb-paper) !important;
  max-width: 46ch;
}

.bfb-theme h2,
.bfb-theme .wp-block-heading:is(h2),
.bfb-theme .projects-title,
.bfb-theme .bfb-cta__title,
.bfb-theme .bfb-home-what__title {
  font-family: var(--font-heading) !important;
  font-size: var(--size-heading) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: var(--bfb-white) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.bfb-theme h3,
.bfb-theme .wp-block-heading:is(h3),
.bfb-theme .bfb-card__title,
.bfb-theme .bfb-heading,
.bfb-theme .bfb-service__title {
  font-family: var(--font-heading) !important;
  font-size: var(--size-subheading) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--bfb-white) !important;
}

.bfb-theme h4,
.bfb-theme .wp-block-heading:is(h4),
.bfb-theme .hero-panel h2,
.bfb-theme .bfbj-hero__card h2,
.bfb-theme .bfbic-hero__card h2,
.bfb-theme .bfbk-hero__card h2,
.bfb-theme .bfbr-hero__card h2,
.bfb-theme .bfbm-hero__card h2,
.bfb-theme .bfb-panel-title,
.bfb-theme .bfb-panel__title {
  font-family: var(--font-heading) !important;
  font-size: var(--size-section) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--bfb-gold) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bfb-theme .eyebrow,
.bfb-theme .bfbj-eyebrow,
.bfb-theme .bfbic-eyebrow,
.bfb-theme .bfbk-eyebrow,
.bfb-theme .bfbr-eyebrow,
.bfb-theme .bfbm-eyebrow,
.bfb-theme .bfb-kicker {
  font-family: var(--font-heading) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--bfb-gold) !important;
}

.bfb-theme .hero,
.bfb-theme .bfbj-hero,
.bfb-theme .bfbic-hero,
.bfb-theme .bfbk-hero,
.bfb-theme .bfbr-hero,
.bfb-theme .bfbm-hero,
.bfb-theme .bfb-contact__intro {
  position: relative;
  overflow: hidden;
  background-color: var(--bfb-teal);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.bfb-theme .hero::before,
.bfb-theme .bfbj-hero::before,
.bfb-theme .bfbic-hero::before,
.bfb-theme .bfbk-hero::before,
.bfb-theme .bfbr-hero::before,
.bfb-theme .bfbm-hero::before,
.bfb-theme .bfb-contact__intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(36, 59, 65, 0.92) 0%, rgba(36, 59, 65, 0.78) 48%, rgba(31, 31, 31, 0.55) 100%);
  z-index: 0;
  pointer-events: none;
}

.bfb-theme .hero > *,
.bfb-theme .bfbj-hero > *,
.bfb-theme .bfbic-hero > *,
.bfb-theme .bfbk-hero > *,
.bfb-theme .bfbr-hero > *,
.bfb-theme .bfbm-hero > *,
.bfb-theme .bfb-contact__intro > * {
  position: relative;
  z-index: 1;
}

.bfb-theme .hero-inner,
.bfb-theme .hero-grid {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  width: min(92%, 1200px);
  margin: 0 auto;
  padding: 72px 0 56px;
  transform: none !important;
}
.bfb-theme .hero-feature,
.bfb-theme .hero-process,
.bfb-theme .bfb-contact__hero,
.bfb-theme .bfb-contact-grid__info,
.bfb-theme .bfbk-showcase,
.bfb-theme .bfbm-hero-card-image,
.bfb-theme .bfbr-hero-card-image,
.bfb-theme .wp-block-jetpack-map,
.bfb-theme .bfb-about-slider,
.bfb-theme .wp-block-jetpack-slideshow {
  display: none !important;
}
.bfb-theme a.btn,
.bfb-theme .hero-actions a,
.bfb-theme .cta-band a.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 28px !important;
  border-radius: 2px !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  background-image: none !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.bfb-theme a.btn-primary,
.bfb-theme .hero-actions .btn-primary,
.bfb-theme .cta-band .btn-primary {
  background: var(--bfb-gold) !important;
  color: var(--bfb-teal) !important;
  -webkit-text-fill-color: var(--bfb-teal) !important;
}
.bfb-theme a.btn-ghost,
.bfb-theme a.btn-secondary,
.bfb-theme .hero-actions .btn-ghost {
  background: transparent !important;
  color: var(--bfb-white) !important;
  -webkit-text-fill-color: var(--bfb-white) !important;
  padding-left: 12px !important;
  text-decoration: underline !important;
  text-underline-offset: 5px !important;
}
.about-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(92%, 1200px);
  margin: 8px auto 0;
}
.about-photos img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}
.contact-extras {
  width: min(92%, 1200px);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-extras__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 16px;
}
.home-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.home-service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f6f3ee;
  border: 1px solid rgba(36, 59, 65, 0.08);
  border-radius: 16px;
  text-decoration: none !important;
  color: #243b41;
  box-shadow: 0 12px 28px rgba(18, 28, 32, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(18, 28, 32, 0.18);
}
.home-service img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #efeae2;
}
.home-service__body {
  padding: 18px 18px 20px;
}
.bfb-theme .home-service h3 {
  margin: 0 0 8px !important;
  color: #243b41 !important;
  font-size: 22px !important;
}
.bfb-theme .home-service p {
  margin: 0 0 14px !important;
  color: #4c585c !important;
}
.bfb-theme .home-service span {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: #7a5e32 !important;
  -webkit-text-fill-color: #7a5e32;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--bfb-paper);
  font-size: 14px !important;
}
.hero-trust li::before {
  content: "✓ ";
  color: var(--bfb-gold);
}
.bfb-theme .hero-panel {
  padding: 28px 32px;
  border-radius: 16px;
}
.bfb-theme .checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.bfb-theme .checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bfb-theme .checklist li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bfb-gold);
  flex-shrink: 0;
}
.bfb-theme .panel-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(194, 164, 109, 0.28);
  font-size: 13px !important;
  color: var(--bfb-gold) !important;
}
.page-about .cta {
  padding: 28px 0 40px !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: 0 !important;
  display: block !important;
  text-align: center !important;
}
.page-about .cta .container {
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  text-align: center !important;
  float: none !important;
}
.page-about .cta-band {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  text-align: center !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  float: none !important;
}
.page-about .cta-band > div,
.page-about .cta-band h2,
.page-about .cta-band p,
.page-about .cta-band .btn {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.page-about .bfb-about-slider,
.page-about .wp-block-jetpack-slideshow {
  max-height: 480px !important;
  margin: 16px auto 8px !important;
}
.page-home .hero { background-image: url("/images/2026-02-lr-tdg-kelston-15.jpg"); }
.page-about .hero { background-image: url("/images/2026-02-touch-design-knowle-house-4-copy-15001000.jpg"); }
.page-work .hero { background-image: url("/images/2026-02-img_20251111_164326.jpg"); }
.page-services .hero { background-image: url("/images/2026-02-20251012_161514.jpg"); }
.page-contact .hero { background-image: url("/images/2026-02-bfb-carpentry-kitchen-installation-exeter-jpg.jpg"); }
.page-blog .hero { background-image: url("/images/2026-02-bfb-carpentry-built-in-desk-bookshelves-jpg.jpg"); }
.page-blog-index .hero { background-image: url("/images/2026-02-bfb-carpentry-built-in-bookshelves-doorway-jpg.jpg"); }
.page-bespoke .hero,
.page-bespoke .bfbj-hero { background-image: url("/images/2026-02-bfb-carpentry-built-in-desk-bookshelves-jpg.jpg"); }
.page-interior .hero,
.page-interior .bfbic-hero { background-image: url("/images/2026-02-20251114_173957.jpg"); }
.page-kitchen .hero,
.page-kitchen .bfbk-hero { background-image: url("/images/2026-02-img_20251205_162240.jpg"); }
.page-renovations .hero,
.page-renovations .bfbr-hero { background-image: url("/images/2026-02-20251114_174005.jpg"); }
.page-maintenance .hero,
.page-maintenance .bfbm-hero { background-image: url("/images/2026-02-20250618_154749.jpg"); }

.bfb-theme .btn,
.bfb-theme .bfb-btn,
.bfb-theme .bfbj-btn,
.bfb-theme .bfbic-btn,
.bfb-theme .bfbk-btn,
.bfb-theme .bfbr-btn,
.bfb-theme .bfbm-btn,
.bfb-theme .wp-element-button,
.bfb-theme .wp-block-button__link {
  font-family: var(--font-heading) !important;
  font-size: var(--size-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  border-radius: 4px !important;
}

.bfb-theme .btn-primary,
.bfb-theme .bfb-btn--primary,
.bfb-theme .bfbj-btn--primary,
.bfb-theme .bfbic-btn--primary,
.bfb-theme .bfbk-btn-primary,
.bfb-theme .bfbr-btn-primary,
.bfb-theme .bfbm-btn-primary,
.bfb-theme .wp-block-button__link {
  background: var(--bfb-gold) !important;
  border: none !important;
  color: var(--bfb-teal) !important;
  -webkit-text-fill-color: var(--bfb-teal) !important;
  border-radius: 2px !important;
}

.bfb-theme .btn-ghost,
.bfb-theme .btn-secondary,
.bfb-theme .bfb-btn--ghost,
.bfb-theme .bfbj-btn--ghost,
.bfb-theme .bfbic-btn--ghost {
  background: transparent !important;
  border: none !important;
  color: var(--bfb-white) !important;
  -webkit-text-fill-color: var(--bfb-white) !important;
  text-decoration: underline !important;
  text-underline-offset: 5px !important;
}

.bfb-theme .hero-panel,
.bfb-theme .bfbj-hero__card,
.bfb-theme .bfbic-hero__card,
.bfb-theme .bfbk-hero__card,
.bfb-theme .bfbr-hero__card,
.bfb-theme .bfbm-hero__card,
.bfb-theme .bfb-card {
  background: rgba(31, 31, 31, 0.72) !important;
  border: 1px solid rgba(194, 164, 109, 0.28) !important;
  color: var(--bfb-paper);
}

.bfb-theme a {
  color: var(--bfb-gold);
}

.bfb-theme .wp-block-navigation a,
.bfb-theme .wp-block-navigation-item__label {
  font-family: var(--font-heading) !important;
  font-size: 15px !important;
  color: var(--bfb-gold) !important;
}

.bfb-theme footer,
.bfb-theme .wp-block-template-part {
  font-family: var(--font-body) !important;
  font-size: var(--size-body) !important;
  color: var(--bfb-muted) !important;
}

@media (max-width: 900px) {
  .bfb-theme .hero-inner,
  .bfb-theme .hero-grid {
    grid-template-columns: 1fr !important;
    padding: 48px 0 40px;
  }
  .page-about .cta-band {
    flex-direction: column !important;
    align-items: center !important;
  }
  .home-services,
  .about-photos,
  .contact-extras,
  .contact-extras__cards {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 700px) {
  .bfb-theme h1,
  .bfb-theme .hero h1,
  .bfb-theme .bfbj-hero h1,
  .bfb-theme .bfbic-hero h1,
  .bfb-theme .bfbk-hero h1,
  .bfb-theme .bfbr-hero h1,
  .bfb-theme .bfbm-hero h1,
  .bfb-theme .bfb-contact__title {
    font-size: 32px !important;
  }
  .bfb-theme .subtitle,
  .bfb-theme .bfbj-hero__lead,
  .bfb-theme .bfbic-hero__lead,
  .bfb-theme .bfbk-hero__lead,
  .bfb-theme .bfbr-hero__lead,
  .bfb-theme .bfbm-hero__lead {
    font-size: 22px !important;
  }
  .bfb-theme h2 {
    font-size: 24px !important;
  }
}

.bfb-theme.page-home .hero h1 {
  font-size: clamp(3rem, 3.5vw, 4rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.025em !important;
  max-width: none !important;
}
.bfb-theme.page-home .hero h1 span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .bfb-theme.page-home .hero h1 {
    font-size: clamp(1.8rem, 7.6vw, 3.15rem) !important;
  }
}

.bfb-theme .divider {
  height: 2px;
  width: 120px;
  background: var(--bfb-gold);
  border-radius: 999px;
  margin: 14px 0 22px;
}
.bfb-theme .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-top: 22px;
}
.bfb-blog-list,
.bfb-post {
  width: min(92%, 1200px);
  margin: 0 auto;
  padding: 56px 0 84px;
}
.bfb-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.bfb-theme a.bfb-blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 32px;
  background: rgba(31, 31, 31, 0.72) !important;
  border: 1px solid rgba(194, 164, 109, 0.28);
  border-radius: 16px;
  color: var(--bfb-paper) !important;
  text-decoration: none !important;
}
.bfb-theme a.bfb-blog-card:hover {
  transform: translateY(-3px);
}
.bfb-blog-card__date,
.bfb-post__date {
  margin: 0 0 10px;
  color: var(--bfb-gold) !important;
  font-family: var(--font-heading);
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bfb-theme .bfb-blog-card h2 {
  margin: 0 0 12px;
  color: var(--bfb-white) !important;
}
.bfb-theme .bfb-blog-card p {
  margin: 0 0 18px;
  color: var(--bfb-paper) !important;
}
.bfb-blog-card__link {
  margin-top: auto;
  color: var(--bfb-gold);
  font-family: var(--font-heading);
  font-weight: 600;
}
.bfb-post__body {
  max-width: 760px;
  padding: 8px 0 12px;
}
.bfb-theme .bfb-post__body h2 {
  margin: 28px 0 10px;
  color: var(--bfb-white) !important;
}
.bfb-theme .bfb-post__body p {
  color: var(--bfb-paper) !important;
}
@media (max-width: 800px) {
  .bfb-blog-grid {
    grid-template-columns: 1fr;
  }
}
