/* Home page slider (include/home_slider.php, script/home_hero.js).
   House style GO! CLB; GO!-path tiles from the brand guide p. 13 (inline SVG, see mockups/home-hero/pad/).
   All rules are scoped under .clb-hero (the theme and Bootstrap style h2/p/a/button globally). */

/* Full-width band behind the slider in the same magenta (like the full-width sections of the theme). */
.clb-hero-band { background: var(--clb-primary, #C4004B); }

.clb-hero {
  position: relative; overflow: hidden; background: var(--clb-primary, #C4004B); color: #fff;
  text-align: left;
}
/* The theme sets font-family and line-height on every element (base.css: "*"), so set them here explicitly. */
.clb-hero, .clb-hero * { font-family: 'Lato', 'Open Sans', Arial, sans-serif; }
.clb-hero * { box-sizing: border-box; line-height: inherit; }
.clb-hero, .clb-hero-text { line-height: 1.5; }

/* All slides in one grid cell: the tallest slide sets the height from the first paint (no layout shift). */
.clb-hero-stack { display: grid; }
.clb-hero-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) 460px; align-items: center; gap: 24px;
  min-height: 300px; padding: 30px 56px;
  visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s .3s;
}
.clb-hero-slide.is-active { visibility: visible; opacity: 1; transition: opacity .8s ease .35s; }

.clb-hero-text { padding-bottom: 46px; min-width: 0; }
.clb-hero .clb-hero-kicker {
  margin: 0 0 6px; padding: 0; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; line-height: 1.4;
}
.clb-hero .clb-hero-title {
  margin: 0 0 10px; padding: 0; color: #fff; font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900; line-height: 1.15; letter-spacing: 0; text-transform: none; border: 0;
}
.clb-hero .clb-hero-lead { margin: 0 0 18px; padding: 0; color: #fff; font-size: 17px; line-height: 1.45; }
.clb-hero .clb-hero-motto {
  margin: 0 0 18px; padding: 0; color: #fff; font-size: 15px; font-weight: 900; letter-spacing: .08em; line-height: 1.4;
}
.clb-hero .clb-hero-action { margin: 0; padding: 0; }
.clb-hero .clb-hero-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 4px;
  background: #fff; color: var(--clb-primary-active, #920038); font-size: 16px; font-weight: 700; line-height: 1.3;
  text-decoration: none; border: 2px solid #fff;
}
.clb-hero .clb-hero-button:hover { background: #F5F5F3; border-color: #F5F5F3; color: var(--clb-primary-active, #920038); text-decoration: none; }
.clb-hero .clb-hero-button svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* Photo in the LEAF shape of the GO!-path: sharp top-left and bottom-right, quarter circles of half the side. */
.clb-hero-photo { position: relative; width: 260px; height: 260px; justify-self: end; margin: -10px 50px -10px 0; }
.clb-hero-photo picture { display: block; width: 100%; height: 100%; position: relative; z-index: 1; }
.clb-hero .clb-hero-photo img {
  display: block; width: 100%; height: 100%; max-width: none; object-fit: cover;
  border-radius: 0 50% 0 50%; border: 8px solid #fff;
}
/* Tiles: top right the STAR on white; bottom left the white DIAMOND, below it the ochre CLB tile, then the white WHEEL. */
.clb-hero-photo::before, .clb-hero-photo::after { content: ""; position: absolute; pointer-events: none; }
.clb-hero-photo::before {
  top: 0; right: -50px; width: 100px; height: 100px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 70'%3E%3Cpath fill='%23532464' fill-rule='nonzero' d='M70.42 35.21C51.12 35.21 35.47 19.56 35.47 0.26C35.47 19.56 19.83 35.21 0.53 35.21C19.83 35.21 35.47 50.85 35.47 70.15C35.47 50.85 51.12 35.21 70.42 35.21'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.clb-hero-photo::after {
  bottom: 0; left: -150px; width: 200px; height: 200px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 70'%3E%3Cpath fill='%23FFFFFF' d='M35 0L70 35L35 70L0 35Z'/%3E%3C/svg%3E") left top / 100px 100px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 70'%3E%3Cpath fill='%23E6A441' fill-rule='nonzero' d='M0.09 70.36L70.44 70.36L70.44 0.01L0.09 0.01L0.09 70.36Z'/%3E%3Cpath fill='%23FFFFFF' fill-rule='nonzero' d='M62.13 41.88L62.11 41.87C61.87 41.56 59.15 38.82 55.52 35.19C47.70 43.01 35.71 54.90 35.34 55.27C36.21 58.51 38.10 61.33 40.67 63.34C43.66 65.70 47.55 66.97 51.75 66.52C58.80 65.78 64.51 60.10 65.29 53.06C65.76 48.83 64.49 44.90 62.12 41.88L62.13 41.88Z'/%3E%3Cpath fill='%23FFFFFF' fill-rule='nonzero' d='M35.34 15.10C35.34 15.09 35.32 15.07 35.32 15.07L35.27 15.12L35.22 15.07C35.22 15.07 35.20 15.09 35.19 15.10C35.22 15.19 35.25 15.27 35.27 15.35C35.29 15.27 35.32 15.19 35.34 15.10'/%3E%3Cpath fill='%23FFFFFF' fill-rule='nonzero' d='M15.02 35.19C11.39 38.82 8.66 41.57 8.42 41.87L8.41 41.88L8.41 41.88C6.04 44.90 4.78 48.83 5.24 53.06C6.02 60.10 11.74 65.78 18.78 66.52C22.98 66.97 26.87 65.70 29.87 63.34C32.43 61.33 34.32 58.51 35.19 55.27C34.82 54.90 22.83 43.01 15.02 35.19'/%3E%3Cpath fill='%23FFFFFF' fill-rule='nonzero' d='M35.19 55.27C35.20 55.28 35.22 55.30 35.22 55.30L35.27 55.25L35.32 55.30C35.32 55.30 35.34 55.28 35.34 55.27C35.32 55.19 35.29 55.10 35.27 55.02C35.25 55.10 35.22 55.19 35.19 55.27'/%3E%3Cpath fill='%23FFFFFF' fill-rule='nonzero' d='M55.52 35.19C59.15 31.55 61.87 28.81 62.11 28.50L62.13 28.49L62.12 28.49C64.49 25.47 65.76 21.54 65.29 17.31C64.51 10.27 58.80 4.59 51.75 3.85C47.55 3.40 43.66 4.67 40.67 7.03C38.10 9.04 36.21 11.86 35.34 15.10C35.71 15.47 47.70 27.36 55.52 35.19'/%3E%3Cpath fill='%23FFFFFF' fill-rule='nonzero' d='M35.19 15.10C34.32 11.86 32.43 9.04 29.87 7.03C26.87 4.67 22.98 3.40 18.78 3.85C11.74 4.59 6.02 10.27 5.24 17.31C4.78 21.54 6.04 25.47 8.41 28.49L8.41 28.49L8.43 28.51C8.66 28.81 11.39 31.56 15.02 35.19C22.83 27.36 34.82 15.47 35.19 15.10'/%3E%3C/svg%3E") left bottom / 100px 100px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 70'%3E%3Cpath fill='%23FFFFFF' fill-rule='nonzero' d='M25.30 11.75L34.93 34.98L44.55 11.74C41.73 10.58 38.65 9.91 35.42 9.84C31.83 9.77 28.41 10.46 25.30 11.75L20.49 0.14C11.58 3.84 4.07 10.93 0.08 20.55L11.69 25.36C14.25 19.20 19.17 14.29 25.30 11.75'/%3E%3Cpath fill='%23FFFFFF' fill-rule='nonzero' d='M20.50 69.82L25.31 58.21C19.15 55.66 14.24 50.74 11.70 44.60L0.09 49.42C3.79 58.33 10.88 65.84 20.50 69.82'/%3E%3Cpath fill='%23FFFFFF' fill-rule='nonzero' d='M58.16 44.60C59.33 41.78 60.00 38.70 60.06 35.47C60.13 31.89 59.45 28.46 58.16 25.35L34.93 34.98L34.93 34.98L25.31 58.21C28.12 59.38 31.20 60.05 34.44 60.11C38.02 60.18 41.44 59.50 44.55 58.21L34.93 34.98L58.16 44.60C55.61 50.76 50.69 55.66 44.55 58.21L49.36 69.82C58.28 66.12 65.79 59.02 69.77 49.41L58.16 44.60Z'/%3E%3Cpath fill='%23FFFFFF' fill-rule='nonzero' d='M58.16 25.35L69.77 20.54C66.07 11.63 58.97 4.12 49.35 0.14L44.55 11.74C50.70 14.29 55.61 19.22 58.16 25.35'/%3E%3Cpath fill='%23FFFFFF' fill-rule='nonzero' d='M9.79 34.49C9.72 38.07 10.41 41.49 11.70 44.60L34.93 34.98L11.69 25.36C10.53 28.17 9.86 31.25 9.79 34.49'/%3E%3C/svg%3E") right bottom / 100px 100px no-repeat;
}

/* Colour wipe on slide change: purple, ochre and teal bands (decoration only; magenta would vanish on magenta). */
.clb-hero-wipe {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 4; pointer-events: none;
  display: grid; grid-template-columns: 1fr 1fr 1fr; transform: translateX(-101%);
}
.clb-hero-wipe span:nth-child(1) { background: var(--clb-purple, #532464); }
.clb-hero-wipe span:nth-child(2) { background: var(--clb-ochre, #E6A441); }
.clb-hero-wipe span:nth-child(3) { background: var(--clb-teal, #67C0BA); }
.clb-hero.is-changing .clb-hero-wipe { animation: clb-hero-wipe 1s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes clb-hero-wipe { from { transform: translateX(-101%); } to { transform: translateX(101%); } }

/* Controls (only with JS). */
.clb-hero-controls { position: absolute; left: 56px; bottom: 26px; z-index: 3; display: flex; align-items: center; gap: 8px; color: #fff; }
.clb-hero:not(.is-enhanced) .clb-hero-controls { display: none; }
.clb-hero .clb-hero-ctrl, .clb-hero .clb-hero-dot {
  display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; cursor: pointer;
  border: 2px solid #fff; border-radius: 50%; background: transparent; color: #fff; box-shadow: none;
  font-size: 13px; font-weight: 700; line-height: 1;
}
.clb-hero .clb-hero-ctrl { width: 40px; height: 40px; }
.clb-hero .clb-hero-dot { width: 30px; height: 30px; }
.clb-hero .clb-hero-ctrl:hover, .clb-hero .clb-hero-dot:hover { background: rgba(255, 255, 255, .18); }
.clb-hero .clb-hero-dot.is-active { background: #fff; color: var(--clb-primary-active, #920038); }
.clb-hero-ctrl svg { width: 16px; height: 16px; fill: currentColor; }
.clb-hero-ctrl .clb-hero-i-play { display: none; }
.clb-hero-ctrl.is-paused .clb-hero-i-play { display: block; }
.clb-hero-ctrl.is-paused .clb-hero-i-pause { display: none; }
.clb-hero-dots { display: flex; gap: 6px; margin: 0 4px; }
.clb-hero-status { font-size: 13px; font-weight: 700; white-space: nowrap; }
.clb-hero-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Visible focus: the theme removes all outlines (base.css "*:focus"). Baseline for browsers without :focus-visible. */
.clb-hero a:focus, .clb-hero button:focus { outline: 3px solid #fff; outline-offset: 3px; }
@supports selector(:focus-visible) {
  .clb-hero a:focus:not(:focus-visible), .clb-hero button:focus:not(:focus-visible) { outline: none; }
}

/* The slider sits in the theme column .template-main (1050 / 930 / 750 / 460 / 300 px, responsive.css).
   Photo and tiles only in the 1050px column (screens >= 1070px, theme breakpoint); narrower: text only. */
@media (max-width: 1069px) {
  .clb-hero-slide { grid-template-columns: minmax(0, 1fr); padding: 24px 16px 80px; min-height: 0; }
  .clb-hero-photo { display: none; }
  .clb-hero-text { padding-bottom: 0; }
  .clb-hero-controls { left: 16px; bottom: 18px; }
}
/* Theme column 300px (screens < 500px): the visible counter does not fit next to the buttons (still announced). */
@media (max-width: 499px) {
  .clb-hero-status-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Reduced motion: instant changes, no wipe (scoped to the slider only). */
@media (prefers-reduced-motion: reduce) {
  .clb-hero, .clb-hero *, .clb-hero *::before, .clb-hero *::after { transition: none !important; animation: none !important; }
}
