/* =====================================================================
   B-Clean Design — header, footer, quote form
   Markup comes from includes/header.php and includes/footer.php.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Header: quiet chrome. Wordmark, the links, one button. Sticky, compact
   once the page scrolls. The Services panel opens on hover, focus or click.
   --------------------------------------------------------------------- */
.bc-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: var(--bc-header-h);
  background: rgba(253, 251, 247, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--bc-ease), background-color 200ms var(--bc-ease);
}
.bc-header.is-scrolled {
  background: rgba(253, 251, 247, 0.98);
  border-bottom-color: var(--bc-line);
}
.bc-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(var(--bc-wrap), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}
.bc-header__brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 40px;          /* the whole height of the bar is a target, not just the letters */
  border-radius: var(--bc-r-sm);
}
.bc-header__brand svg { display: block; width: 128px; height: auto; }

/* Links */
.bc-header__nav { margin-left: auto; }   /* links pushed to the right, next to the actions */
.bc-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bc-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--bc-r-sm);
  background: transparent;
  color: var(--bc-ink);
  font: 500 16px/1 var(--bc-font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms var(--bc-ease), color 150ms var(--bc-ease);
}
.bc-nav__link:hover,
.bc-nav__link:focus-visible,
.bc-nav__item.is-open > .bc-nav__link { background: var(--bc-sand-2); }
.bc-nav__link .bc-icon {
  width: 16px;
  height: 16px;
  transition: transform 180ms var(--bc-ease);
}
.bc-nav__item.is-parent { position: static; }
.bc-nav__item.is-open > .bc-nav__link .bc-icon { transform: rotate(180deg); }

/* Services panel: three columns of services under the whole header */
.bc-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms var(--bc-ease), transform 180ms var(--bc-ease), visibility 0s linear 180ms;
}
.bc-nav__item.is-parent:hover > .bc-panel,
.bc-nav__item.is-parent:focus-within > .bc-panel,
.bc-nav__item.is-parent.is-open > .bc-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.bc-panel__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0;
  padding: 12px;
  list-style: none;
  background: var(--bc-paper);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-r-md);
  box-shadow: 0 8px 24px rgba(31, 27, 22, 0.08);
}
.bc-panel__link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--bc-r-sm);
  color: var(--bc-ink);
  text-decoration: none;
  transition: background-color 150ms var(--bc-ease);
}
.bc-panel__link:hover,
.bc-panel__link:focus-visible { background: var(--bc-sand); }
.bc-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bc-sand-2);
  color: var(--bc-ink);
  transition: background-color 150ms var(--bc-ease), color 150ms var(--bc-ease);
}
.bc-panel__icon .bc-icon { width: 20px; height: 20px; }
.bc-panel__link:hover .bc-panel__icon { background: var(--bc-amber); }
.bc-panel__text { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.bc-panel__title { font: 500 16px/1.3 var(--bc-font); }
.bc-panel__desc { font-size: 14px; line-height: 1.45; color: var(--bc-muted); }

/* Actions */
.bc-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 0;
}
.bc-header__brand + .bc-header__actions { margin-left: auto; }
.bc-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bc-ink);
  font: 500 16px/1 var(--bc-font);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  border-radius: var(--bc-r-sm);
  min-height: 40px;
  padding: 0 8px;
  transition: color 150ms var(--bc-ease);
}
.bc-header__phone:hover,
.bc-header__phone:focus-visible { color: var(--bc-amber-ink); }
.bc-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: var(--bc-r-sm);
  background: transparent;
  color: var(--bc-ink);
  cursor: pointer;
}
.bc-header__toggle:hover { background: var(--bc-sand-2); }
.bc-header__toggle .bc-icon { width: 24px; height: 24px; }
.bc-header__toggle .bc-icon--close { display: none; }
.bc-header.is-open .bc-header__toggle .bc-icon--menu { display: none; }
.bc-header.is-open .bc-header__toggle .bc-icon--close { display: block; }

/* On the page the button leads to, the button is not shown */
.bc-header--on-cta .bc-header__cta,
.bc-header--on-cta .bc-mobile__actions .bc-btn { display: none !important; }

/* Mobile menu: one panel under the header */
.bc-mobile {
  position: fixed;
  top: var(--bc-header-h);
  left: 0;
  right: 0;
  z-index: 9998;
  max-height: calc(100dvh - var(--bc-header-h));
  overflow-y: auto;
  padding: 8px 16px 24px;
  background: var(--bc-paper);
  border-bottom: 1px solid var(--bc-line);
}
.bc-mobile[hidden] { display: none; }
.bc-mobile__list li.bc-mobile__label { border-top: 0; }
.bc-mobile__label {
  margin: 16px 0 4px;
  padding: 0 12px;
  color: var(--bc-muted);
  font: 500 13px/1.4 var(--bc-font);
}
.bc-mobile ul { margin: 0; padding: 0; list-style: none; }
.bc-mobile__list li + li:not(.bc-mobile__label) { border-top: 1px solid var(--bc-line); }
.bc-mobile a:not(.bc-btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 12px;
  color: var(--bc-ink);
  font: 500 18px/1.2 var(--bc-font);
  text-decoration: none;
}
.bc-mobile a:not(.bc-btn) .bc-icon { width: 18px; height: 18px; color: var(--bc-muted); }
.bc-mobile__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 12px 0;
  border-top: 1px solid var(--bc-line);
}
.bc-mobile__actions .bc-btn { width: 100%; }
.bc-mobile__actions .bc-header__phone { justify-content: center; height: 44px; }
body.bc-menu-open { overflow: hidden; }

/* ---------------------------------------------------------------------
   Footer: the amber band with the quote form, then the ink footer.
   --------------------------------------------------------------------- */
.bc-footer { color: var(--bc-paper); font-size: 16px; background: var(--bc-ink); }
.bc-footer *, .bc-cta * { box-sizing: border-box; }

/* CTA band — the one bright moment of the page */
.bc-cta { background: var(--bc-amber); color: var(--bc-ink); }
.bc-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
  width: min(var(--bc-wrap), calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;
}
.bc-cta__title {
  margin: 0 0 16px !important;
  color: var(--bc-ink) !important;
  font-size: clamp(32px, 3.6vw, 48px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  font-weight: 500 !important;
}
.bc-cta__text > p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--bc-ink); max-width: 44ch; }
.bc-cta__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.bc-cta__facts li { display: inline-flex; align-items: center; gap: 8px; font: 500 16px/1.3 var(--bc-font); font-variant-numeric: tabular-nums; }
.bc-cta__facts a { color: inherit; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color 150ms var(--bc-ease); }
.bc-cta__facts a:hover, .bc-cta__facts a:focus-visible { border-bottom-color: var(--bc-ink); }

/* The form sits on a paper card */
.bc-cta__form {
  padding: 32px;
  background: var(--bc-paper);
  border-radius: var(--bc-r-lg);
  box-shadow: 0 8px 24px rgba(31, 27, 22, 0.06);
}
.bc-cta__form-title { margin: 0 0 20px !important; color: var(--bc-ink) !important; font-size: 20px !important; font-weight: 500 !important; line-height: 1.3 !important; }

/* Quote form */
.bc-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bc-form__field { display: flex; flex-direction: column; min-width: 0; }
.bc-form__field--full { grid-column: 1 / -1; }
.bc-form__field label { margin: 0 0 6px; color: var(--bc-ink); font: 500 14px/1.4 var(--bc-font); }
.bc-form__field-captcha { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
body.bc-skin .bc-form .bc-form__field-captcha > label { margin: 0; }
.bc-form__field-captcha label { margin: 0; font-size: 15px; }
body.bc-skin .bc-form .bc-form__field-captcha input { width: 96px !important; text-align: center; }
.bc-form__field-captcha .bc-form__error { flex-basis: 100%; margin-top: 0; }
.bc-form__error { display: block; margin-top: 6px; color: #8a1c13; font-size: 13px; line-height: 1.45; }
.bc-form__optional { color: var(--bc-muted); font-weight: 400; }
.bc-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0 !important;
  color: var(--bc-muted) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  cursor: pointer;
}
.bc-form__consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--bc-ink);
  box-shadow: none !important;
}
.bc-form__hint { margin: 12px 0 0 !important; font-size: 13px !important; line-height: 1.5 !important; color: var(--bc-muted) !important; }
.bc-form__submit { margin-top: 16px; }
.bc-form__status {
  display: none;
  margin: 16px 0 0 !important;
  padding: 12px 14px;
  border-radius: var(--bc-r-sm);
  font-size: 15px !important;
  line-height: 1.5 !important;
}
.bc-form__status.is-shown { display: block; }
.bc-form__status.is-error { background: #fbe9e6; color: #8a1c13 !important; }
.bc-form__status.is-success { background: #e3f3e7; color: #135c2a !important; }
.bc-form.is-sent :is(.bc-form__grid, .bc-form__consent, .bc-form__error, .bc-form__hint, .bc-form__submit) { display: none !important; }
.bc-form.has-error input[aria-invalid="true"], .bc-form.has-error textarea[aria-invalid="true"] { border-color: #c5321f !important; }

/* Ink footer */
.bc-footer__main { background: var(--bc-ink); }
.bc-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr);
  gap: 48px;
  width: min(var(--bc-wrap), calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 48px;
}
.bc-footer__brand svg.bc-footer__wordmark { display: block; width: 148px; height: auto; margin-bottom: 20px; }
.bc-footer__brand p { margin: 0; max-width: 34ch; color: #cfc7bb; font-size: 15px; line-height: 1.6; }
.bc-footer__brand .bc-footer__mark { display: block; width: 44px; height: auto; margin-top: 24px; }
.bc-footer__label {
  margin: 0 0 16px;
  color: #fdfbf7;
  font: 500 14px/1.4 var(--bc-font);
  letter-spacing: 0.01em;
}
.bc-footer__col ul { margin: 0; padding: 0; list-style: none; }
.bc-footer__col li { margin: 0; }
.bc-footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #cfc7bb;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 150ms var(--bc-ease);
}
.bc-footer__col a:hover, .bc-footer__col a:focus-visible { color: var(--bc-amber); }
.bc-footer address {
  display: grid;
  gap: 12px;
  font-style: normal;
  color: #cfc7bb;
  font-size: 15px;
  line-height: 1.55;
}
.bc-footer address a { display: inline-flex; align-items: flex-start; gap: 10px; color: #cfc7bb; text-decoration: none; font-variant-numeric: tabular-nums; transition: color 150ms var(--bc-ease); }
.bc-footer address a:hover, .bc-footer address a:focus-visible { color: var(--bc-amber); }
.bc-footer address .bc-icon { margin-top: 3px; width: 18px; height: 18px; color: var(--bc-amber); }
.bc-footer address span { display: block; }

/* Legal line */
.bc-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  width: min(var(--bc-wrap), calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(253, 251, 247, 0.12);
  color: #a39b90;
  font-size: 13px;
}
.bc-footer__legal p { margin: 0; }
.bc-footer__legal a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.bc-footer__legal a:hover, .bc-footer__legal a:focus-visible { color: var(--bc-paper); border-bottom-color: var(--bc-amber); }
.bc-footer__legal nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }

@media (max-width: 1100px) {
  .bc-header__inner { gap: 16px; }
  .bc-header__phone span { display: none; }             /* icon only, still a tel: link */
  .bc-header__phone { padding: 10px; }
  .bc-panel__list { grid-template-columns: repeat(2, 1fr); }
  .bc-footer__inner { grid-template-columns: 1fr 1fr; }
  .bc-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .bc-header__nav, .bc-panel { display: none !important; }
  .bc-header__actions { gap: 8px; margin-left: auto; }
  .bc-header__cta.bc-btn { height: 40px; padding: 0 14px; font-size: 15px !important; }   /* stays in the bar: the one action is always at hand */
  .bc-header__phone { display: none; }
  .bc-header__toggle { display: inline-flex; }
  .bc-header__brand svg { width: 116px; }
  .bc-cta__inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .bc-cta__form { padding: 24px; }
}
@media (max-width: 600px) {
  .bc-form__grid { grid-template-columns: 1fr; }
  .bc-cta__form { padding: 20px; }
  .bc-cta__facts { flex-direction: column; gap: 12px; margin-top: 24px; }
  .bc-footer__inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 32px; }
  .bc-footer__legal nav { margin-left: 0; }
}
