/* ===== BR COTTFAB — Hero Slider with Shatter Transition ===== */

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #0a0a14;
}

/* ---- SLIDE ---- */
.hs-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hs-slide.active {
  z-index: 3;
  pointer-events: all;
}
.hs-slide.leaving {
  z-index: 4; /* sits on top while shattering out */
  pointer-events: none;
}

/* Background image */
.hs-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 7s ease-out;
  will-change: transform;
}
.hs-slide.active .hs-bg { transform: scale(1); }

/* Overlay */
.hs-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---- SHATTER GRID ---- */
.hs-shatter-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  /* rows/cols injected by JS */
  pointer-events: none;
  opacity: 0;
}
.hs-slide.leaving .hs-shatter-grid { opacity: 1; }

.hs-shard {
  background-image: inherit; /* set via JS */
  background-size: cover;    /* set via JS */
  background-position: var(--bx) var(--by);
  will-change: transform, opacity;
}

/* ---- CONTENT ---- */
.hs-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-bottom: 80px;
}
.hs-content .container {
  margin-left: 0;
  padding-left: 48px;
}
.hs-inner {
  max-width: 640px;
  padding: 0 0 0 8px;
}

/* Tag */
.hs-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(192,57,43,0.18);
  border: 1px solid rgba(192,57,43,0.4);
  color: #f5b942;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s 0.1s, transform 0.6s 0.1s;
}
.hs-slide.active .hs-tag { opacity: 1; transform: none; }

.hs-tag-dot {
  width: 7px; height: 7px;
  background: #C0392B;
  border-radius: 50%;
  animation: tagDotPulse 2s infinite;
  flex-shrink: 0;
}
@keyframes tagDotPulse { 0%,100%{opacity:1} 50%{opacity:0.25} }

/* Title */
.hs-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s 0.25s, transform 0.7s 0.25s;
}
.hs-slide.active .hs-title { opacity: 1; transform: none; }
.hs-title em {
  font-style: italic;
  color: #F5C842;
  text-shadow: 0 2px 18px rgba(245,200,66,0.35);
}

/* Sub */
.hs-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s 0.4s, transform 0.7s 0.4s;
}
.hs-slide.active .hs-sub { opacity: 1; transform: none; }

/* Buttons */
.hs-btns {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s 0.5s, transform 0.6s 0.5s;
}
.hs-slide.active .hs-btns { opacity: 1; transform: none; }

.hs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #C0392B;
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(192,57,43,0.45);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.hs-btn-primary:hover {
  background: #96281B;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(192,57,43,0.55);
}
.hs-btn-ghost {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 2px solid rgba(255,255,255,0.35);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.hs-btn-ghost:hover { color: #fff; border-bottom-color: #fff; }

/* Stats */
.hs-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s 0.62s, transform 0.6s 0.62s;
}
.hs-slide.active .hs-stats { opacity: 1; transform: none; }

.hs-stat { display: flex; flex-direction: column; gap: 2px; }
.hs-stat-n {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hs-stat-l {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hs-stat-div {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ---- CONTROLS ---- */
.hs-controls {
  position: absolute;
  bottom: 52px;
  right: 48px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hs-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}
.hs-arrow:hover {
  background: #C0392B;
  border-color: #C0392B;
  transform: scale(1.08);
}

.hs-dots { display: flex; gap: 8px; align-items: center; }
.hs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.hs-dot.active {
  background: #C0392B;
  width: 28px;
  border-radius: 4px;
}

/* ---- PROGRESS BAR ---- */
.hs-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}
.hs-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #C0392B, #F39C12);
  width: 0%;
  transition: none;
}

/* ---- COLOUR SWATCH STRIP ---- */
.hs-swatch-strip {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  display: flex;
  z-index: 10;
}
.hs-swatch-strip div { flex: 1; }

/* ---- SCROLL CUE ---- */
.hs-scroll-cue {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.hs-scroll-cue:hover { background: rgba(192,57,43,0.4); }
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ---- SLIDE NUMBER ---- */
.hs-slide-num {
  position: absolute;
  top: 50%;
  right: 52px;
  transform: translateY(-50%);
  z-index: 10;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.hs-slide-num::before {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}
.hs-slide-num span { color: #fff; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hs-title { font-size: 2.4rem; }
  .hs-sub { font-size: 14px; }
  .hs-controls { bottom: 40px; right: 24px; }
  .hs-slide-num { display: none; }
  .hs-btns { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hs-stats { gap: 12px; flex-wrap: wrap; }
  .hs-stat-n { font-size: 1.2rem; }
  .hs-content { padding-bottom: 100px; }
}
@media (max-width: 480px) {
  .hs-inner { padding: 0; }
}
