/* Home page: "Browse by category" - 4 cards in the middle, a round button at each end (js/home-categories.js) */
#wb-cats { padding: 80px 0 70px; margin: 0; background: #fff; }
#wb-cats .wb-cats-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0 0 32px; padding: 0 64px; }
#wb-cats .wb-cats-head h2 { margin: 0; padding: 0; font-family: 'Geomanist', sans-serif; font-size: 40px; line-height: 1.15; font-weight: normal; color: #1a1a1a; }
#wb-cats .wb-cats-all { flex: none; font-family: 'Geomanist_r', sans-serif; font-size: 16px; color: #c43030; text-decoration: none; }
#wb-cats .wb-cats-all:hover { text-decoration: underline; }
#wb-cats .wb-cats-slider { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 20px; align-items: center; }
#wb-cats .wb-cats-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding: 14px 20px 26px; margin: 0 -20px; scroll-padding: 0 20px; }      /* (side room so the hover shadow of the first / last card isn't cut off) */
#wb-cats .wb-cats-viewport::-webkit-scrollbar { display: none; }
#wb-cats .wb-cats-track { display: flex; gap: 20px; }
#wb-cats .wb-cat-card { position: relative; display: block; flex: 0 0 calc((100% - 60px) / 4); aspect-ratio: 300 / 430; border-radius: 10px; overflow: hidden; scroll-snap-align: start;
    background: #eee; text-decoration: none; transition: box-shadow .3s ease; }
#wb-cats .wb-cat-card:hover { box-shadow: 0 5px 12px rgba(0, 0, 0, .2); }      /* (shadow on hover only) */
#wb-cats .wb-cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* hover: a white panel slides up over the picture's caption with the category name, a short line about it and an arrow */
#wb-cats .wb-cat-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px 20px; background: #fff; transform: translateY(101%); transition: transform .35s ease; }
#wb-cats .wb-cat-card:hover .wb-cat-info, #wb-cats .wb-cat-card:focus-visible .wb-cat-info { transform: translateY(0); }
#wb-cats .wb-cat-title { display: block; margin: 0 0 8px; padding-right: 28px; font-family: 'Geomanist', sans-serif; font-size: 20px; line-height: 1.3; font-weight: normal; color: #c43030; }
#wb-cats .wb-cat-desc { display: block; font-family: 'Geomanist_r', sans-serif; font-size: 14px; line-height: 1.5; color: #555; }
#wb-cats .wb-cat-info i { position: absolute; top: 20px; right: 22px; font-size: 18px; color: #c43030; }
/* same arrows as the other sliders on this page: the grey rounded square with the white chevron */
#wb-cats .wb-cats-btn { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 5px; background: rgba(153, 153, 153, .4); color: #fff; font-family: 'Geomanist', sans-serif;
    font-size: 30px; line-height: 40px; text-align: center; cursor: pointer; transition: background-color .2s ease, opacity .2s ease; }
#wb-cats .wb-cats-btn:hover:not(:disabled) { background: rgba(153, 153, 153, .6); }
#wb-cats .wb-cats-btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 1100px) { #wb-cats .wb-cat-card { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 800px) {
    #wb-cats { padding: 56px 0 48px; }
    #wb-cats .wb-cats-head { padding: 0 8px; }
    #wb-cats .wb-cats-head h2 { font-size: 30px; }
    #wb-cats .wb-cat-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 560px) {
    #wb-cats .wb-cats-slider { grid-template-columns: minmax(0, 1fr); }
    #wb-cats .wb-cats-btn { display: none; }                       /* (phones swipe) */
    #wb-cats .wb-cat-card { flex-basis: 74%; }
}

/* wider, like the branch pages (2026-10-12): header and cards line up with the content edges of the sections below; the arrows sit outside the
   content where there is room, otherwise over the first / last card */
#wb-cats .wb-cats-head { padding: 0; }
#wb-cats .wb-cats-slider { display: block; position: relative; }
#wb-cats .wb-cats-btn { position: absolute; top: 50%; z-index: 2; margin-top: -26px; }
#wb-cats .wb-cats-prev { left: -64px; }
#wb-cats .wb-cats-next { right: -64px; }
@media (max-width: 1299px) {
    #wb-cats .wb-cats-btn { background: rgba(80, 80, 80, .45); }
    #wb-cats .wb-cats-btn:hover:not(:disabled) { background: rgba(80, 80, 80, .65); }
    #wb-cats .wb-cats-prev { left: 10px; }
    #wb-cats .wb-cats-next { right: 10px; }
}
@media (max-width: 560px) { #wb-cats .wb-cats-btn { display: none; } }

/* Home: "Customised solutions" = red half with the copy + image half (2026-10-12) */
.hc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; margin: 64px 0; padding: 0 !important; height: auto !important; background: #c43030; color: #fff; }
.hc-split-copy { display: flex; align-items: center; padding: 128px max(32px, calc((100vw - 1400px) / 2 + 15px)) 128px 64px; }      /* picture on the left, red copy on the right (swapped 2026-10-13); on phones the picture comes first */
.hc-split-in { max-width: 560px; }
.hc-split h2 { margin: 0 0 28px; padding: 0; font-family: 'Geomanist', sans-serif; font-size: 40px; line-height: 1.15; font-weight: normal; color: #fff; text-align: left; text-transform: none; }
.hc-split p { margin: 0 0 28px; padding: 0; font-family: 'Geomanist_r', sans-serif; font-size: 20px; line-height: 1.6; color: #fff; text-align: left; }
.hc-split-img { order: -1; min-height: 680px; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #e9e9e9; }
@media (max-width: 900px) { .hc-split { grid-template-columns: minmax(0, 1fr); } .hc-split-copy { padding: 72px 20px 64px; } .hc-split-img { min-height: 0; aspect-ratio: 4 / 3; } .hc-split h2 { font-size: 30px; } }

/* "Our people, our core": the picture sits against the right edge of the page content (it was floating in the middle of its column) */
@media (min-width: 768px) { #card2929 .our_people_img { display: block; margin-left: auto; margin-right: -35px; } }      /* -35px = the slider's and the column's side padding, so the picture ends on the same right edge as the sections above and below */

/* "Our people, our core" as a banner (desktop and large tablets): no space above or below the picture, the section is exactly as tall as the picture and the text is centred beside it */
@media (min-width: 901px) {
    section#card2929 { padding-top: 0 !important; padding-bottom: 0 !important; }
    section#card2929 .cards_container2929 { height: auto; }
    section#card2929 .cards_container2929 .item2929.active { display: flex; align-items: center; height: auto; padding: 0; }
    section#card2929 .item2929 > .col-sm-3, section#card2929 .item2929 > .col-sm-9 { float: none; }
    section#card2929 .card_contain2929 { height: auto; margin-top: 0; }
    section#card2929 .our_people_img { margin-right: -15px; }
    section#card2929 .action_btns { bottom: 24px; }
}

/* "Our people, our core" teaser: the link button needs room above it, and below it on phones where the picture is stacked underneath */
#card2929 .wb-btn { margin-top: 18px; }
@media (max-width: 767px) { #card2929 .card_contain2929 { height: auto; margin-bottom: 28px; } }

/* "Our people, our core" on wide screens (the page content stops at 1400px): the picture grows to the right-hand edge of the window so no white strip is left beside it.
   width = its normal 828px + the space between the content edge and the window edge; the height follows the picture's shape but stops at 720px (extra is trimmed from the top, the people at the bottom stay) */
@media (min-width: 1416px) {
    section#card2929 { overflow-x: clip; }
    section#card2929 .our_people_img { width: calc(848px + (100vw - 1400px) / 2 + 15px); max-width: none; height: auto; aspect-ratio: 828 / 600; max-height: 720px; object-fit: cover; object-position: center 75%; margin-right: calc(-35px - (100vw - 1400px) / 2); }
}
