/* Shared Cerberus colours and controls across the fire and security ranges. */
:root {
  --cb-orange: #ff6500;
  --cb-hover: #ff8840;
  --cb-pressed: #ed6108;
  --cb-ink: #000000;
  --cb-panel: #0b0b0b;
  --cb-rule: #363636;
  --cb-text: #dadada;
  --cb-display: #303030;
  color-scheme: dark;
  background-color: var(--cb-ink);
  --cb-soft: #c7c7c7;
  --orange: var(--cb-orange);
  --orange2: var(--cb-hover);
  --orange3: var(--cb-hover);
}
body[data-cb-layout="fire"] {
  --black: var(--cb-ink); --black2: var(--cb-ink); --anth: var(--cb-ink);
  --anth2: var(--cb-panel); --paper: var(--cb-panel); --white: var(--cb-text);
}
body[data-cb-layout="security"] {
  --orange: var(--cb-orange); --ink: var(--cb-ink); --paper: var(--cb-panel);
  --light: var(--cb-ink); --panel: var(--cb-panel); --anthracite: var(--cb-ink);
}
body .topline, body .groupbar {
  background: var(--cb-panel); color: var(--cb-soft);
  border-bottom: 1px solid var(--cb-rule); font-weight: 650;
}
body .topline a, body .groupbar a {color: var(--cb-text)}
body .logo-type strong {background: none; color: var(--cb-orange); -webkit-text-fill-color: currentColor}
body .section-dark, body .masthead, body .buyer-hero, body .servicebar, body .contact-band,
[data-cb-layout="security"] #contact, body .security-examples {background-color: var(--cb-ink)}
body .section-anth, body .buyer-sectors, body .firestop-project-gallery {background-color: var(--cb-panel)}
body .section-paper {background-color: var(--cb-panel); color: var(--cb-text)}
body .section-paper :is(.kicker,.eyebrow,.card b,.card a:not(.btn)) {color: var(--cb-orange)}
body :is(.button,.btn,.nav-cta,.security-action,.builder-next),
body .buyer-nav a.quote-tab, body a.quote-tab, body .qty-row button,
body .merchant-card .qty-row button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; box-sizing: border-box; max-width: 100%;
  padding: .7em 1.12em; border: 1px solid transparent; border-radius: 5px;
  background: var(--cb-orange); color: var(--cb-ink); box-shadow: none;
  font-weight: 730; text-transform: none; letter-spacing: normal; line-height: 1.28;
  text-align: center; text-decoration: none; white-space: normal; cursor: pointer;
}
body .hero-actions .button {padding: .93em 1.3em}
body .btn.ghost, body .btn.secondary, body .secondary-form-action {
  background: var(--cb-panel); color: var(--cb-text); border: 1px solid #757b75;
  border-radius: 5px; min-height: 44px;
}
body :is(.button,.btn,.nav-cta,.security-action,.builder-next):hover,
body .buyer-nav a.quote-tab:hover,body a.quote-tab:hover,body .qty-row button:hover {
  background: var(--cb-hover); color: var(--cb-ink); text-decoration: none;
}
body .btn.ghost:hover, body .btn.secondary:hover, body .secondary-form-action:hover {
  background: #363b36; color: var(--cb-text); border-color: var(--cb-soft);
}
body :is(.button,.btn,.nav-cta,.security-action,.builder-next):active {background: var(--cb-pressed); color: var(--cb-ink)}
body button:disabled {opacity: .6; cursor: default}
body .cta-band, body .iron-support-band, main .hardware-section {
  background: var(--cb-panel); color: var(--cb-text);
}
body .cta-band {border-top: 3px solid var(--cb-orange)}
body .iron-support-band {border: 1px solid var(--cb-rule); border-left: 3px solid var(--cb-orange); border-radius: 5px}
body .cta-band h2, body .iron-support-band h2 {
  color: var(--cb-text); text-transform: none; letter-spacing: -.035em; line-height: 1.09;
}
body .cta-band p, body .iron-support-band p {color: var(--cb-soft); line-height: 1.55}
body .iron-support-band>div>span {color: var(--cb-orange); letter-spacing: .06em}
body .sector-grid span {
  padding: 12px 16px; background: var(--cb-panel); color: var(--cb-text);
  border: 1px solid var(--cb-rule); border-radius: 5px; box-shadow: none;
  text-transform: none; font-weight: 650; line-height: 1.4;
}
body .sector-grid span:before {display: none}
body .photo-copy .tag, body .image-panel .caption, body .route-label,
body .machine-badge, body .image-stamp, body .merchant-image>span,
body .order-help-label, body .preview-top strong, body .glazing-code,
body .firestop-photo-card figcaption>span {
  background: var(--cb-ink); color: var(--cb-text); border-left: 3px solid var(--cb-orange);
  border-radius: 3px; padding: .42em .75em; font-weight: 650; letter-spacing: .04em;
  line-height: 1.4; box-shadow: none; max-width: 100%;
}
body .filter-chips button {
  min-height: 44px; border-radius: 5px; padding: 8px 12px; font-weight: 680; line-height: 1.3;
}
body .filter-chips button.active, body .filter-chips button:hover {
  color: var(--cb-ink); background: var(--cb-orange); border-color: var(--cb-orange);
}
body :is(.option-button,.finish-option,.glazing-option).active {border-color: var(--cb-orange); box-shadow: inset 0 0 0 1px var(--cb-orange)}
body .panel-heading>span {border-radius: 4px; background: var(--cb-orange); color: var(--cb-ink)}
body .mobile-actions a, body .mobile-actions a:nth-child(2) {
  display: flex; align-items: center; justify-content: center; gap: .3em;
  min-height: 48px; background: var(--cb-ink); color: var(--cb-text); font-weight: 700;
  text-transform: none; letter-spacing: 0; line-height: 1.2;
}
body .mobile-actions a[data-primary] {background: var(--cb-orange); color: var(--cb-ink)}
body input[type=checkbox], body input[type=radio] {accent-color:var(--cb-orange)}
body :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
body #survey :focus-visible {
  outline: 3px solid var(--cb-ink) !important; outline-offset: 1px !important;
  box-shadow: 0 0 0 6px var(--cb-orange) !important;
}
/* Each photographic layout uses the focal point stored with the image. */
body img[data-photo] {object-position: var(--photo-x,50%) var(--photo-y,50%)}
body .diptych img, body .image-frame img, body .image-panel img,
body .trade-image img, body .frame-gallery img {object-fit: cover}
body .image-panel .caption {max-width: calc(100% - 12px)}
body .person-card>img {width:100%;height:auto;aspect-ratio:4/4.3;object-fit:cover}
body .packed-photo img, body .installation-photo img, body .report-photo img {
  display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;
}
body .packed-photo img {aspect-ratio: 5/4}
body .report-photo img {aspect-ratio: 1/1}
body .project-image-link, body .project-image-link.screenshot-photo {aspect-ratio:4/3;border-radius:4px;overflow:hidden}
body .project-image-link img, body .project-image-link.screenshot-photo img {
  display:block;width:100%;height:100%;object-fit:cover;
}
body .security-photos figure {background:var(--cb-panel)}
body .security-photos img, body .install img, body .gate img, body.access-page main figure img,
body .service-photo img {display:block;width:100%;height:auto;aspect-ratio:4/3;max-height:none;object-fit:cover}
body .gate img {aspect-ratio: 1.3}
body .install img[src*="alarm"] {aspect-ratio: 1}
body .access-page img {object-position: center}
body[data-cb-layout="security"] .camera img {width:100%;height:100%;object-fit:cover}
body .intro .product img, body .fog-equipment img {display:block;object-fit:contain;margin-inline:auto}
body .fog-equipment img {height:clamp(240px,30vw,380px)}
body .order-help-card .closer-range-photo {width:100%;height:auto;aspect-ratio:1.9;object-fit:cover}
body .merchant-image:has(.catalogue-photo) {background:var(--cb-display) !important}
body .merchant-image img.catalogue-photo, body .hardware-photo-choice img {
  object-fit:contain;padding:clamp(9px,1.1vw,16px);background:var(--cb-display);transition:none;
}
body .merchant-card:hover .merchant-image img.catalogue-photo {transform:none}
@media(max-width:760px) {
  body .mobile-actions a, body.storefront .mobile-actions a {font-size:.78rem;padding:10px 4px}
  .nav-end .button.small {min-height:44px;padding:.63em .85em}
  body .frame-gallery img {height:auto;aspect-ratio:4/3}
  body .trade-image img {height:auto;aspect-ratio:4/3}
  body .security-photos img {max-height:none;aspect-ratio:1.4}
}
@media(forced-colors:active) {
  body .mobile-actions a[data-primary], body .filter-chips button.active {border:2px solid ButtonText}
}
body .logo-type strong {color:var(--cb-text)}
body .btn.dark {background:var(--cb-panel);color:var(--cb-text);border-color:#757b75}
body .btn.dark:hover {background:#363b36;border-color:var(--cb-soft)}
body .label.orange {border-radius:3px;background:var(--cb-orange);color:var(--cb-ink);font-weight:700;line-height:1.4}
body .filter-chips button {text-transform:none;letter-spacing:normal}
body .filter-chips button:focus-visible {position:relative;z-index:1}
body[data-cb-layout="home"] .nav-end {flex:0 0 auto}
body[data-cb-layout="home"] .nav-end .button.small,
body[data-cb-layout="home"] .brand-text>span {white-space:nowrap}
body[data-cb-layout="home"] .nav-end .button.small {padding-inline: .85em}
@media(min-width:1101px) {
  body[data-cb-layout="fire"] :is(section,form,article,div)[id] {scroll-margin-top:145px}
}
@media(max-width:1100px) {
  body[data-cb-layout="fire"] :is(section,form,article,div)[id] {scroll-margin-top:16px}
}
@media(max-width:360px) {
  body[data-cb-layout="home"] .nav {gap:6px}
  body[data-cb-layout="home"] .nav-end .button.small {padding-inline:.6em}
  body[data-cb-layout="home"] .brand-text>span {letter-spacing:.04em;font-size:.48rem}
}
.cookie-choice {
  position:fixed;bottom:16px;left:16px;right:16px;z-index:10000;max-height:75vh;overflow:auto;
  display:flex;align-items:center;gap:20px;padding:18px 20px;
  background:var(--cb-panel);color:var(--cb-text);border:1px solid #656a65;
  border-radius:6px;box-shadow:0 4px 22px #0005;
}
.cookie-choice[hidden] {display:none}
.cookie-choice p {margin:5px 0 0;font:normal .88rem/1.45 Arial,sans-serif;color:var(--cb-soft)}
.cookie-choice a {color:var(--cb-hover);text-decoration:underline}
.cookie-actions {display:flex;align-items:stretch;gap:8px;flex-shrink:0}
.cookie-actions button {
  min-height:44px;cursor:pointer;border:1px solid #8c918b;border-radius:4px;
  padding:9px 12px;color:var(--cb-text);background:var(--cb-panel);font:600 .87rem/1.3 Arial,sans-serif;
}
.cookie-actions button:hover {background:#383b38}
.cookie-settings {
  min-height:32px;padding:4px 8px;background:transparent;color:inherit;font:inherit;
  border:1px solid #777d76;border-radius:3px;cursor:pointer;
}
@media(max-width:760px) {
  .cookie-choice {flex-direction:column;align-items:stretch;gap:10px;inset:auto 8px 8px;padding:14px}
  .cookie-actions {flex-shrink:1}
  .cookie-actions button {flex:1}
}

/* Black canvas, orange headings and actions, and neutral body copy. */
body[data-cb-layout="home"] {background:var(--cb-ink);color:var(--cb-text);--line:var(--cb-rule)}
body[data-cb-layout="home"] .range {background:var(--cb-ink)}
body[data-cb-layout="home"] .services {background:var(--cb-ink)}
body[data-cb-layout="home"] :is(.product p,.services p) {color:var(--cb-soft)}
body[data-cb-layout="home"] :is(.textlink,.service-list a) {color:var(--cb-orange)}
body[data-cb-layout="home"] .image-frame {background:var(--cb-display)}
body :is(.skip,.cerberus-skip) {background:var(--cb-panel);color:var(--cb-text)}
body .person-card>img {background:var(--cb-panel)}
body .merchant-body details img.catalogue-photo, body .hardware-photo-choice img {
  background:var(--cb-display);mix-blend-mode:normal;filter:none;
}
body .intro .product:has(img[data-photo="hikvision-ptz"]) {
  background:var(--cb-display);border-radius:5px;padding:clamp(14px,2vw,28px);
}
body .product-detail input,body .pack-controls input,body .basket-item input,
body #survey input:not([type=checkbox]),body #survey select,body #survey textarea,
body input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=range]):not([type=hidden]),
body textarea,body select,body select option {
  background-color:var(--cb-ink);color:var(--cb-text);border-color:#656d66;color-scheme:dark;
}
body :is(input,textarea)::placeholder {color:#b7bcb7;opacity:1}
body input::file-selector-button {
  background:var(--cb-panel);color:var(--cb-text);border:1px solid #6c736c;border-radius:4px;
  padding:.5em .75em;margin-right:.7em;cursor:pointer;
}

/* The fire, security and catalogue templates share the same branded hierarchy. */
body[data-cb-layout] {background-color:var(--cb-ink);color:var(--cb-text)}
body[data-cb-layout="home"] {--ink:var(--cb-ink);--cream:var(--cb-text)}
body[data-cb-layout] :is(main,header,footer) {background-color:var(--cb-ink)}
body[data-cb-layout] :is(.hero,.top,.services,.contact-band,.trade-hero,.iron-hero,.reviews-hero,
.page-hero,.buyer-hero,.buyer-sectors,.section-anth,.section-dark,.section-paper,.firestop-project-gallery,
.security-examples,.section,.lead-paths,.configurator-section,.iron-shop-section,.about-business-section) {
  background-color:var(--cb-ink);
}
body[data-cb-layout] :is(h1,h2,h3,h4,h5,h6),
body[data-cb-layout] :is(h1,h2,h3,h4,h5,h6) :is(em,strong,span,a),
body[data-cb-layout] .project-shot figcaption strong {color:var(--cb-orange) !important}
body[data-cb-layout] .section-paper {background:var(--cb-ink) !important}
body[data-cb-layout] :is(.testimonial-card,.audience-card,.finish-showcase,.hardware-cta) {
  background-color:var(--cb-panel) !important;
}
body[data-cb-layout] :is(.section-paper .card,.section-paper .tick) {
  background-color:var(--cb-panel) !important;
}
body[data-cb-layout="home"] .schedule,body[data-cb-layout="home"] .band-phone {color:var(--cb-orange)}
body[data-cb-layout] .contact-band,body[data-cb-layout] .cta-band {
  border-top:2px solid var(--cb-orange);
}
