/* SIC Co visual refresh — draft only. Leaves Spectra blocks and page content untouched. */
:root {
  --sic-refresh-blue: #0078C8;
  --sic-refresh-green: #219D48;
  --sic-refresh-navy: #0C345B;
  --sic-refresh-pale: #F5F9FB;
}

/* Replace legacy coral call-to-action accents with approved corporate blue. */
.site-content .uagb-infobox-cta-link.wp-block-button__link,
.site-content .wp-block-button__link,
.site-content a.uagb-infobox-cta-link,
.site-content .wp-element-button,
.site-content input[type="submit"] {
  background: var(--sic-refresh-blue) !important;
  border-color: var(--sic-refresh-blue) !important;
  color: #fff !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  transition: background-color .18s ease, transform .18s ease;
}
.site-content a.uagb-infobox-cta-link:hover,
.site-content .wp-block-button__link:hover,
.site-content .wp-element-button:hover {
  background: #055B94 !important;
  border-color: #055B94 !important;
  color: #fff !important;
}
.site-content .wp-block-button__link:focus-visible,
.site-content a.uagb-infobox-cta-link:focus-visible {
  outline: 3px solid #6AD0F5 !important;
  outline-offset: 4px;
}

/* Recolour the pink/coral flat service and technology icons; do not touch photos. */
.site-content svg circle[fill="#EC5B53"],
.site-content svg circle[fill="#ec5b53"],
.site-content svg rect[fill="#EC5B53"],
.site-content svg rect[fill="#ec5b53"] { fill: var(--sic-refresh-blue) !important; }
.site-content svg path[fill="#EC5B53"],
.site-content svg path[fill="#ec5b53"] { fill: var(--sic-refresh-blue) !important; }

/* Home hero: retain catalyst pellet photo while giving text a cleaner rhythm. */
body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .uagb-ifb-title {
  color: #fff !important;
  max-width: 700px;
  text-wrap: balance;
  letter-spacing: -.018em !important;
}
body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .uagb-ifb-desc {
  color: #fff !important;
  font-weight: 450 !important;
  letter-spacing: normal !important;
  line-height: 1.72 !important;
  text-wrap: pretty;
}
body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .wp-block-button__link {
  padding: 13px 23px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .wp-block-uagb-image__figure {
  max-width: 100%;
}
body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .wp-block-uagb-image__figure img {
  max-width: 100%;
  object-fit: contain;
  filter: saturate(.78);
  opacity: .94;
}

/* Deliberately understated science-led interface details. */
body:is(.page-id-1201,.page-id-3135) .uagb-block-78bf713a,
body:is(.page-id-1201,.page-id-3135) .uagb-block-bc61caa3 {
  border-top: 1px solid rgba(12,52,91,.045);
}
body:is(.page-id-1201,.page-id-3135) .uagb-ifb-separator {
  border-color: var(--sic-refresh-green);
}
.site-header .ast-mobile-menu-trigger-minimal .ast-mobile-svg,
.site-header .menu-toggle .ast-mobile-svg {
  fill: var(--sic-refresh-blue) !important;
}

/* Tablet layout: avoid an oversized hero paragraph and figure. */
@media (max-width: 921px) {
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe {
    min-height: auto !important;
  }
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .uagb-ifb-title {
    font-size: clamp(30px, 4.7vw, 41px) !important;
    line-height: 1.25 !important;
  }
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .uagb-ifb-desc {
    font-size: 16px !important;
    line-height: 1.67 !important;
  }
}
/* Phones: shorten perceived fold, protect reading line-length, show full molecule. */
@media (max-width: 600px) {
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe {
    padding: 35px 20px 26px !important;
    min-height: auto !important;
    height: auto !important;
    background-position: 50% 30% !important;
    row-gap: 12px !important;
    column-gap: 12px !important;
  }
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .uagb-block-f0ed2d57,
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .uagb-block-417295f8 {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    text-align: center;
  }
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .uagb-ifb-title {
    margin-inline: auto !important;
    max-width: 340px !important;
    font-size: clamp(27px, 7.2vw, 32px) !important;
    line-height: 1.28 !important;
  }
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .uagb-ifb-desc {
    max-width: 340px !important;
    font-size: 15px !important;
    line-height: 1.62 !important;
    font-weight: 450 !important;
    margin: 16px auto 19px !important;
  }
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .wp-block-button__link {
    font-size: 14px !important;
    line-height: 1.3 !important;
    padding: 13px 18px !important;
  }
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .uagb-block-e1e19fdd,
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .uagb-block-4961d180 {
    max-width: 100% !important;
    width: 100% !important;
    margin-inline: auto !important;
  }
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .uagb-block-4961d180 figure {
    float: none !important;
    width: 100% !important;
    text-align: center;
    margin: 0 auto !important;
  }
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .uagb-block-4961d180 img {
    width: auto !important;
    max-width: min(78vw, 300px) !important;
    max-height: 225px !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
  }
  body:is(.page-id-1201,.page-id-3135) .uagb-block-42cd53fe .uagb-ifb-content { margin: 0 auto !important; }
}
/* Single approved bilingual brand mark in the existing footer image widget. */
.site-footer .sic-footer-brand {
  margin: 0;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
.site-footer .sic-footer-brand a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 120, 200, .08);
  border-radius: 7px;
}
.site-footer .sic-footer-brand .sic-footer-brand-image {
  display: block;
  width: 330px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.site-footer .sic-footer-brand a:focus-visible {
  outline: 3px solid #00A6E3;
  outline-offset: 5px;
}
@media (max-width: 921px) {
  .site-footer .sic-footer-brand .sic-footer-brand-image {
    width: 260px;
  }
}
@media (max-width: 600px) {
  .site-footer .sic-footer-brand {
    margin: 10px auto 4px;
    justify-content: center;
  }
  .site-footer .sic-footer-brand .sic-footer-brand-image {
    width: 230px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-content .wp-block-button__link { transition: none; }
}
