/* UK Plumbing Supplies (www.ukps.com) skin: brand tokens from the live site's theme variables
   (--highlight-color/--secondary-color #f3732d, --nav-color/--footer-color #57585A,
   --action-item-top-text #6D6E71). */
:root {
  --brand-primary: #57585a;
  --brand-accent: #f3732d;
  --brand-accent-strong: #f3732d;
  --brand-accent-stronger: #57585a;
  --brand-nav-bg: #57585a;
  --brand-nav-text: #ffffff;
  --brand-topbar: #f3732d;

  --drawer-account-text: #1c1c1b;
  --brand-ink: #57585a;
  --brand-footer-strip: #57585a;
  --brand-footer-bar: #f3732d;

  --header-bg: #ffffff;
  --action-title: #6d6e71;
  --action-sub: #f3732d;
  --action-icon: #57585a;
  --nav-hover-text: #f3732d;
  --link: #57585a;
  --link-hover: #f3732d;
  --footer-link-hover: #f3732d;
  --mobile-bar-bg: #f3732d;
  --locator-bar-bg: #57585a;   /* live finder bottom bar uses the nav colour */
  --tile-text: #f3732d;
  --highlight-color: #f3732d;

  --surface-muted: #efedec;
  --content-background-color: #efedec;
  --logo-width: 240px;

  /* Used by imported CMS content (inline styles and live-equivalent layout). */
  --fixed-height: 32px;
  --fixed-height-half: 16px;
}

@media (max-width: 767px) {
  :root { --fixed-height: 16px; }
}

/* ---------------------------------------------------------------- typography: match live ukps.com
   Headings on the live site are orange (#f3732d). Shared components.css uses --brand-ink
   (grey) so that other brands keep their own ink colour; override it here only. */
.cms-content:not(:has(#ukps-map-wrapper)) :is(h1, h2, h3, h4, h5, h6) {
  color: var(--brand-accent);
}
.cms-content a { color: var(--brand-accent); }
.cms-content p a { text-decoration: underline; }

.highlight-color {
  color: var(--highlight-color);
  font-weight: 700;
}

/* Orange disc bullets, as on live Environment / policy pages. */
ul.ukps-custom-bullets li {
  line-height: 25px;
  margin-bottom: 10px;
}
ul.ukps-custom-bullets li::before {
  content: "\2022";
  color: var(--highlight-color);
  font-weight: 700;
  font-size: 1.3em;
  display: inline-block;
  position: static;
  width: 1em;
  height: auto;
  left: auto;
  top: auto;
  margin-left: -1em;
  border-radius: 0;
  background: none;
}

/* Live Get in Touch / Careers tabs use the accent colour, not the grey nav colour. */
ul.nav-tabs > li > a {
  background: var(--brand-accent);
  color: #fff;
}
ul.nav-tabs > li > a:hover {
  background: #fff;
  color: var(--brand-accent);
}
ul.nav-tabs > li.active > a {
  background: var(--surface-muted);
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}
ul.nav-tabs .tab-menu-more {
  background: var(--brand-accent);
  color: #fff;
}
ul.nav-tabs.tab-menu-open {
  border-bottom-color: var(--brand-accent);
}
ul.nav-tabs.tab-menu-open > li > a,
ul.nav-tabs.tab-menu-open > li.active > a {
  color: var(--brand-accent);
}
ul.nav-tabs.tab-menu-open > li:hover > a {
  background: var(--brand-accent);
  color: #fff;
}

/* ---------------------------------------------------------------- Our Brands
   Light peach panel, 5-column grid of rounded white tiles. Grey logo by default;
   colour logo + orange glow on hover. The colour logo sits in an <a>, stacked over
   the grey tile (opacity, not display:none) so the link stays tappable on phones. */
.our-brands-wrap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: var(--space, var(--fixed-height));
  background-color: #fef4ef;
}
.our-brands-wrap .brand-item {
  position: relative;
  display: grid;
  width: 100%;
  margin: auto;
}
.our-brands-wrap .brand-item > .image-wrap,
.our-brands-wrap .brand-item > .image-wrap-hover {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: auto;
  text-align: center;
  border-radius: 10px;
  background-color: #fff;
  box-sizing: border-box;
}
.our-brands-wrap .image-wrap {
  border: 2px solid #ccc;
  padding: 3px;
}
.our-brands-wrap .image-wrap-hover {
  z-index: 1;
  border: 2px solid #bbbbbb99;
  padding: 0;
  opacity: 0;
  text-decoration: none;
}
.our-brands-wrap .image-wrap-hover a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.our-brands-wrap .image-wrap img,
.our-brands-wrap .image-wrap-hover img {
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.our-brands-wrap .brand-item:hover .image-wrap-hover,
.our-brands-wrap .brand-item:focus-within .image-wrap-hover {
  opacity: 1;
  cursor: pointer;
  box-shadow: -2px -2px 20px 5px rgb(243 115 45 / 31%), 2px 2px 19px 5px rgb(0 0 0 / 10%);
}

@media (max-width: 1110px) {
  .our-brands-wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .our-brands-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .our-brands-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .our-brands-wrap { grid-template-columns: 1fr; }
}

/* UKPS sub-brand page uses a slightly tighter column collapse. */
.our-brands-wrap.ukps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .our-brands-wrap.ukps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .our-brands-wrap.ukps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .our-brands-wrap.ukps { grid-template-columns: 1fr; }
}

.ukps-our-brands-text-wrap {
  margin: 0;
  padding: var(--space, var(--fixed-height));
  background-color: var(--surface-muted);
}
.ukps-our-brands-text {
  display: grid;
  grid-template-columns: 10fr 50px 6fr;
}
@media (max-width: 575px) {
  .ukps-our-brands-text { grid-template-columns: 1fr; gap: 10px; }
  .ukps-our-brands-text > div:nth-child(2) { display: none; }
}

/* ---------------------------------------------------------------- Community Support
   Beige two-column panel under the orange accent bar. The right column (icons,
   caption, photos) stays in the flow on mobile, stacked under the text. */
.ukps-community-content-wrap {
  margin: 0;
  padding: var(--space, var(--fixed-height));
  background-color: var(--surface-muted);
}
.ukps-community-content {
  display: grid;
  grid-template-columns: 10fr 50px minmax(320px, 6fr);
  align-items: start;
}
.ukps-community-content > :nth-child(2) { justify-self: center; align-self: stretch; }
.ukps-community-content-pics {
  display: grid;
  grid-template-rows: 1fr;
  gap: 40px;
}
.ukps-community-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.ukps-community-image-in-text { display: none; }
.ukps-community-content-wrap > img,
.ukps-community-content img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .ukps-community-content { display: block; }
  .ukps-community-image-in-text {
    display: block;
    float: right;
    width: 50%;
    margin: 5px 0 20px 20px;
  }
}
@media (max-width: 500px) {
  .ukps-community-image-in-text { width: 100%; margin: 5px 0 20px; }
}

/* ---------------------------------------------------------------- Environment (ESG)
   Same two-column beige layout as About Us: text + dashed rule + framed photos. */
.ukps-esg-content-wrap {
  margin: 0;
  padding: var(--space, var(--fixed-height));
  background-color: var(--surface-muted);
}
.ukps-esg-content {
  display: grid;
  grid-template-columns: 10fr 50px 6fr;
  align-items: stretch;
}
.ukps-esg-content > :nth-child(2) { justify-self: center; align-self: stretch; }
.ukps-esg-content-pics {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-self: stretch;
  min-height: 100%;
}
.ukps-esg-content-pics > div {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
}
.ukps-esg-image-wrap {
  flex: 1;
  width: 100%;
  min-height: 0;
  margin: 0 0 2px 10px;
  padding: 2px;
  background-color: #fff;
  border: 1px solid var(--border, #ccc);
  box-shadow: 0 0 2px 1px rgb(0 0 0 / 10%);
  box-sizing: border-box;
}
.ukps-esg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ukps-esg-image-in-text { display: none; }

@media (max-width: 767px) {
  .ukps-esg-content { display: block; }
  .ukps-esg-content-pics { display: none; }
  .ukps-esg-image-in-text {
    display: block;
    float: right;
    width: 50%;
    margin: 5px 0 20px 20px;
  }
}
@media (max-width: 500px) {
  .ukps-esg-image-in-text { width: 100%; margin: 5px 0 20px; }
}


/* Live vacancies iframe is 600px (700px on small screens); shared default 480px crops the list. */
iframe.ukps-vacancies { height: 600px; }
@media (max-width: 600px) {
  iframe.ukps-vacancies { height: 700px; }
}
