/*! Circle AI — additions for the static HTML build
 * Small rules that connect the original design to Bootstrap components
 * (offcanvas menu, collapse FAQ) and to the vanilla JS in assets/js/main.js. */

/* ------------------------------------------------------------------ header */
.site-header__indicator { will-change: transform; }

/* Mobile menu: Bootstrap offcanvas, full screen, styled like the original */
.site-header__menu.offcanvas {
  --bs-offcanvas-zindex: 1045;
  --bs-offcanvas-height: 100dvh;
  --bs-offcanvas-bg: var(--ink);
  --bs-offcanvas-color: var(--on-ink);
  /* React: the menu appears at once (hidden toggles); only its links rise in (site-header__menu-in). */
  --bs-offcanvas-transition: none;
  z-index: 1045;
  inset: 0 0 auto 0;
  height: 100dvh;
  border: 0;
  padding: env(safe-area-inset-top, 0px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  justify-content: flex-start;
  gap: 0;
  overflow-y: auto;
}
.site-header__menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  margin-bottom: 32px;
  flex: none;
}
.site-header__menu .site-header__menu-foot { margin-top: auto; padding-top: 32px; }
.site-header__menu:not(.show) .site-header__menu-links > li { animation: none; }
.site-header__menu-close {
  border-radius: var(--r-pill);
  height: 38px;
  box-shadow: inset 0 0 0 1px var(--line-ink-strong);
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  color: var(--on-ink);
}
.offcanvas-backdrop.show { opacity: 0; }

/* ------------------------------------------------------------------ FAQ (Bootstrap collapse) */
.faq__panel.collapse,
.faq__panel.collapsing {
  visibility: visible;
  grid-template-rows: none;
  transition: none;
}
.faq__panel.collapse.show,
.faq__panel.collapsing { display: block; }
/* React Ay: grid-template-rows .6s ease-out in both directions. */
.faq__panel.collapsing { transition: height .6s var(--ease-out); }

/* ------------------------------------------------------------------ filters */
[data-filter-hidden="true"] { display: none !important; }

/* ------------------------------------------------------------------ forms */
.enquiry__error { margin-top: 8px; }
.enquiry__note-preview { color: var(--fg-muted); font-size: 13.5px; margin: 0; max-width: 44ch; }
.newsletter__msg { margin-top: 12px; font-size: 14px; color: var(--fg-muted); }

/* ------------------------------------------------------------------ motion helpers */
.js-motion [data-reveal-ready] { will-change: transform, opacity; }
.split-line-mask { overflow: clip; }
.split-mask-line-mask { padding-bottom: .16em; margin-bottom: -.16em; }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}
