/* Interiors by Design: header, navigation and footer (from components/header.html and footer.html).
   Uses the design system's tokens and bb- buttons. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.ibd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ibd-hd { background: var(--ds-color-white, #fff); font-family: var(--ds-font-body, Poppins, sans-serif); color: var(--ds-color-ink, #232323); position: relative; z-index: 50; }
.ibd-util { background: var(--ds-color-tint, #EEF3EE); font-size: 13px; color: var(--ds-color-muted, #5E5E5E); }
.ibd-util__in { display: flex; justify-content: flex-end; gap: 28px; min-height: 38px; align-items: center; flex-wrap: wrap; }
.ibd-util a { color: var(--ds-color-ink, #232323); font-weight: 500; text-decoration: none; }
.ibd-util a:hover { color: var(--ds-color-green, #34623E); }
.ibd-hd__main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.ibd-logo img { display: block; height: 52px; width: auto; }
.ibd-hd__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ibd-menu-btn { display: none; }
.ibd-nav { border-top: 1px solid var(--ds-color-line, #D9DED8); border-bottom: 1px solid var(--ds-color-line, #D9DED8); }
.ibd-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: space-between; }
.ibd-nav__item { position: relative; display: flex; align-items: center; }
.ibd-nav__link { display: flex; align-items: center; min-height: 52px; padding: 0 6px; color: var(--ds-color-ink, #232323); text-decoration: none; font-weight: 500; font-size: 15px; }
.ibd-nav__link:hover, .ibd-nav__item.is-current > .ibd-nav__link { color: var(--ds-color-green, #34623E); }
.ibd-nav__item.is-current > .ibd-nav__link { box-shadow: inset 0 -2px 0 var(--ds-color-green, #34623E); }
.ibd-nav__toggle { width: 22px; height: 32px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; color: var(--ds-color-muted, #5E5E5E); }
.ibd-nav__toggle::after { content: ""; position: absolute; left: 6px; top: 11px; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
.ibd-nav__sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--ds-color-white, #fff); border: 1px solid var(--ds-color-line, #D9DED8); border-radius: 4px; display: none; z-index: 60; }
.ibd-nav__item:hover > .ibd-nav__sub, .ibd-nav__item:focus-within > .ibd-nav__sub, .ibd-nav__sub.is-open { display: block; }
.ibd-nav__sublink { display: block; padding: 9px 20px; color: var(--ds-color-ink, #232323); text-decoration: none; font-size: 15px; }
.ibd-nav__sublink:hover, .ibd-nav__sublink[aria-current] { color: var(--ds-color-green, #34623E); background: var(--ds-color-stone, #F6F6F4); }
.ibd-nav__item:last-child .ibd-nav__sub { left: auto; right: 0; }
.ibd-nav__btns { display: none; }

.ibd-ft { background: var(--ds-color-ink, #232323); color: rgba(255, 255, 255, .9); font-family: var(--ds-font-body, Poppins, sans-serif); font-size: 14px; padding: 80px 0 0; }
.ibd-ft a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.ibd-ft a:hover { color: #fff; text-decoration: underline; }
.ibd-ft__top { display: grid; grid-template-columns: 4fr 3fr 3fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.ibd-ft__logo img { height: 96px; width: auto; display: block; margin-bottom: 22px; }
.ibd-ft__h { font-family: var(--ds-font-body, Poppins, sans-serif); font-weight: 600; font-size: 15px; line-height: 1.4; color: #fff; margin: 0 0 14px; }
.ibd-ft__h a { color: #fff; }
.ibd-ft ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ibd-ft__show { display: flex; flex-direction: column; gap: 6px; }
.ibd-ft__mid { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.ibd-ft__explore ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.ibd-ft__badge { margin-top: 24px; width: 140px; height: 56px; border: 1px dashed rgba(255, 255, 255, .4); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(255, 255, 255, .75); }
.ibd-ft__bot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 0 32px; color: rgba(255, 255, 255, .75); font-size: 13px; }
.ibd-ft__bot nav { display: flex; gap: 20px; }
.ibd-ft__btns { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ibd-ft .bb-btn--primary { background: #fff; color: var(--ds-color-green, #34623E); border-color: #fff; }
.ibd-ft .bb-btn--primary:hover { background: var(--ds-color-tint, #EEF3EE); color: var(--ds-color-green-dark, #264A2E); text-decoration: none; }
.ibd-ft__u { text-decoration: underline !important; text-underline-offset: 4px; }

@media (max-width: 1100px) {
  .ibd-nav__link { font-size: 14px; padding: 0 2px; }
  .ibd-ft__mid { grid-template-columns: 1fr 1fr; }
  .ibd-ft__explore { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .ibd-util__in { justify-content: center; gap: 2px 18px; padding: 7px 20px; text-align: center; }
  .ibd-util { font-size: 12px; line-height: 1.5; }
  .ibd-util__in > span { white-space: nowrap; }
  .ibd-hd__btns { display: none; }
  .ibd-menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ds-color-green, #34623E); background: #fff; color: var(--ds-color-green, #34623E); font: 500 15px var(--ds-font-body, Poppins, sans-serif); cursor: pointer; }
  .ibd-logo img { height: 42px; }
  .ibd-nav { display: none; }
  .ibd-nav.is-open { display: block; }
  .ibd-nav__list { flex-direction: column; gap: 0; }
  .ibd-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--ds-color-line, #D9DED8); }
  .ibd-nav__link { min-height: 48px; flex: 1; }
  .ibd-nav__toggle { width: 48px; height: 48px; }
  .ibd-nav__toggle::after { left: 20px; top: 18px; }
  .ibd-nav__toggle[aria-expanded="true"]::after { transform: rotate(-135deg); top: 22px; }
  .ibd-nav__sub, .ibd-nav__item:hover > .ibd-nav__sub, .ibd-nav__item:focus-within > .ibd-nav__sub { position: static; display: none; border: 0; padding: 0 0 10px 12px; min-width: 0; width: 100%; }
  .ibd-nav__sub.is-open { display: block; }
  .ibd-nav__btns { display: flex; flex-direction: column; gap: 12px; padding: 20px 0 24px; }
  .ibd-ft__top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .ibd-ft__mid { grid-template-columns: 1fr; }
}

/* PHP templates (project, blog post, legal) and shortcode output: the design
   system's reset, restated so browser default margins don't creep in. */
.fl-ds-page :is(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
.fl-ds-page :is(h1, h2, h3, h4, h5, h6) { text-wrap: balance; }
.fl-ds-page .bb-prose > * + *, .fl-ds-page .bb-body > * + *, .fl-ds-page .bb-faq__a > * + * { margin-top: 16px; }
.fl-ds-page .bb-prose > * + * { margin-top: 22px; }
.fl-ds-page .bb-prose h2 { margin-top: 44px; }
.fl-ds-page .bb-prose h3 { margin-top: 36px; }
.fl-ds-page .bb-gallery figure { margin: 0; }
.fl-ds-page .bb-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: rgba(255, 255, 255, .92); color: var(--ds-color-ink, #232323); }

/* Shortcodes wrap their output in .fl-ds-page so they style correctly on
   their own; inside a page section the wrapper must not repaint the band
   (the reviews band was showing a white box with white text). */
.bb-sc > .fl-ds-page,
.fl-ds-block .fl-ds-page {
	background: transparent;
	color: inherit;
}

/* FAQ page: topic list beside the groups (design T14). */
.ibd-toc {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 15px;
	border-top: 1.5px solid var(--ds-color-ink, #232323);
	padding-top: 18px;
}
.ibd-toc a { color: var(--ds-color-ink, #232323); text-decoration: none; }
.ibd-toc a:hover, .ibd-toc a:focus-visible { color: var(--ds-color-green, #34623E); text-decoration: underline; }
.bb-faq-groups { display: flex; flex-direction: column; gap: 56px; }
.bb-faq-groups .bb-h3 { font-size: 26px; margin: 0 0 18px; }
@media (max-width: 900px) {
	.ibd-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
}

/* Panels in a side column fill its width, as in the design (the aside
   aligns its children to the start, which shrank the hours panels). */
.bb-colgrid-aside > .bb-panel { align-self: stretch; }
.bb-cta-links{display:flex;flex-direction:column;gap:6px}
.fl-ds-page .bb-ph img[src*="logo-stacked"]{object-fit:contain;padding:18%;background:var(--ds-color-stone,#EEF2EC)}
.fl-ds-page .bb-ph img[src*="ibd-brochure-cover"]{object-fit:contain;padding:4%;background:var(--ds-color-stone,#F6F6F4)}
.fl-ds-page .bb-cut__group th{text-align:left;font-family:var(--ds-font-heading);font-weight:700;font-size:20px;padding-top:28px;color:var(--ds-color-green,#34623E)}
.blog-card-date{font-size:13px}
.ibd-form iframe{max-width:100%}
.ibd-form{max-width:100%;overflow:hidden}
.bb-vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Breadcrumbs on PHP templates (404, search, archives): match the page crumbs */
.presa-crumbs { padding: 18px 24px 0; font-size: var(--ds-text-xs, 13px); color: var(--ds-color-muted, #5E5E5E); }
.presa-tpl > .presa-crumbs:first-child { margin-top: 0; }
.presa-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; max-width: 1200px; margin: 0 auto; padding: 0; }
.presa-crumbs li + li::before { content: "/"; margin-right: 8px; }
.presa-crumbs a { color: inherit; text-decoration: none; }
.presa-crumbs a:hover { color: var(--ds-color-green, #2F5D3A); text-decoration: underline; }

/* Complianz cookie banner: house type and colours */
body .cmplz-cookiebanner {
  --cmplz_banner_background_color: #ffffff;
  --cmplz_text_color: var(--ds-color-ink, #1F1F1F);
  --cmplz_hyperlink_color: var(--ds-color-green, #2F5D3A);
  --cmplz_button_accept_background_color: var(--ds-color-green, #2F5D3A);
  --cmplz_button_accept_border_color: var(--ds-color-green, #2F5D3A);
  --cmplz_button_accept_text_color: #ffffff;
  --cmplz_button_deny_background_color: #ffffff;
  --cmplz_button_deny_border_color: var(--ds-color-green, #2F5D3A);
  --cmplz_button_deny_text_color: var(--ds-color-green, #2F5D3A);
  --cmplz_button_settings_background_color: #ffffff;
  --cmplz_button_settings_border_color: var(--ds-color-green, #2F5D3A);
  --cmplz_button_settings_text_color: var(--ds-color-green, #2F5D3A);
  --cmplz_slider_active_color: var(--ds-color-green, #2F5D3A);
  --cmplz_button_border_radius: 999px;
  font-family: var(--ds-font-body, Poppins, sans-serif);
}
body .cmplz-cookiebanner .cmplz-title, body .cmplz-cookiebanner .cmplz-btn, body .cmplz-cookiebanner .cmplz-message,
body .cmplz-cookiebanner .cmplz-link, body .cmplz-manage-consent { font-family: var(--ds-font-body, Poppins, sans-serif); }
body .cmplz-cookiebanner .cmplz-message { font-size: 13px; line-height: 1.5; }

/* Cookie policy (no on-page contents list): one readable column */
.cookies-02 .bb-colgrid { display: block; }
.cookies-02 .bb-prose { max-width: 760px; }
body .cmplz-cookiebanner .cmplz-btn:focus-visible { outline: 2px solid var(--ds-color-green, #2F5D3A); outline-offset: 2px; }

/* Page intro: heading at the top of its column, level with the intro text (James, 30 Nov) */
body .bb-intro__in, body .fl-ds-block .bb-intro__in, body .fl-ds-page .bb-intro__in { align-items: start; }

/* Project heroes from older, smaller photos: contained rather than full bleed */
.bb-phero--contained { max-width: 1200px; margin-left: auto; margin-right: auto; }
@media (min-width: 1241px) { .bb-phero--contained { margin-top: 24px; } .bb-phero--contained .bb-ph, .bb-phero--contained img { border-radius: 4px; } }
