/* ===== Padiham Hero Slider (pure CSS, no JS) ===== */
.phs-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #f4f5f7;
}
.phs-radio { display: none; }

.phs-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.phs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease;
  z-index: 1;
}
.phs-slide-link { display: block; width: 100%; height: 100%; text-decoration: none; }
.phs-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: phs-kenburns 8s ease-out forwards;
}
@keyframes phs-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.phs-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21,23,27,.78) 0%, rgba(21,23,27,.45) 45%, rgba(21,23,27,.1) 100%);
}
.phs-content {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 540px;
  z-index: 3;
}
.phs-eyebrow {
  display: inline-block;
  font-family: Archivo,sans-serif; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: #f7a872; margin-bottom: 14px;
}
.phs-title {
  font-family: Archivo,sans-serif; font-size: 52px; font-weight: 900;
  color: #fff; line-height: 1.05; margin: 0 0 16px;
}
.phs-sub {
  font-family: 'Hanken Grotesk',sans-serif; font-size: 18px; font-weight: 500;
  color: #e3e5e9; line-height: 1.5; margin: 0 0 28px;
}
.phs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e2641f; color: #fff;
  font-family: Archivo,sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .4px;
  padding: 15px 32px; border-radius: 8px;
  transition: background .2s, transform .2s;
}
.phs-slide-link:hover .phs-btn { background: #b84e15; transform: translateX(4px); }

/* ===== Radio-controlled slide visibility ===== */
.phs-radio-1:checked ~ .phs-track #phs-1,
.phs-radio-2:checked ~ .phs-track #phs-2,
.phs-radio-3:checked ~ .phs-track #phs-3 {
  opacity: 1; visibility: visible; z-index: 2;
}
/* Re-trigger ken burns on activation */
.phs-radio-1:checked ~ .phs-track #phs-1 .phs-bg,
.phs-radio-2:checked ~ .phs-track #phs-2 .phs-bg,
.phs-radio-3:checked ~ .phs-track #phs-3 .phs-bg { animation: phs-kenburns 8s ease-out forwards; }

/* ===== AUTO-ROTATE (pure CSS animation) ===== */
/* Only runs when NO radio is manually checked... but radios are always checked.
   Instead we animate all slides on a timed cycle when the default is active. */
@keyframes phs-auto {
  0%, 28%   { opacity: 0; visibility: hidden; }
  33%, 61%  { opacity: 1; visibility: visible; }
  66%, 100% { opacity: 0; visibility: hidden; }
}
/* When no manual interaction, slides cycle via animation.
   We give each slide a staggered delay. The :checked override above wins on click. */
.phs-wrap:not(:hover) #phs-1 { animation: phs-auto 15s infinite; animation-delay: 0s; }
.phs-wrap:not(:hover) #phs-2 { animation: phs-auto 15s infinite; animation-delay: 5s; }
.phs-wrap:not(:hover) #phs-3 { animation: phs-auto 15s infinite; animation-delay: 10s; }
/* Manual selection stops auto and shows chosen slide */
.phs-radio-1:checked ~ .phs-track #phs-1,
.phs-radio-2:checked ~ .phs-track #phs-2,
.phs-radio-3:checked ~ .phs-track #phs-3 { animation: none; opacity:1; visibility:visible; }
.phs-radio-2:checked ~ .phs-track #phs-1,
.phs-radio-3:checked ~ .phs-track #phs-1,
.phs-radio-1:checked ~ .phs-track #phs-2,
.phs-radio-3:checked ~ .phs-track #phs-2,
.phs-radio-1:checked ~ .phs-track #phs-3,
.phs-radio-2:checked ~ .phs-track #phs-3 { animation: none; opacity:0; visibility:hidden; }

/* ===== Dots ===== */
.phs-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.phs-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
  transition: background .25s, width .25s, border-radius .25s;
}
.phs-dot:hover { background: rgba(255,255,255,.7); }
.phs-radio-1:checked ~ .phs-dots .phs-dot-1,
.phs-radio-2:checked ~ .phs-dots .phs-dot-2,
.phs-radio-3:checked ~ .phs-dots .phs-dot-3 {
  background: #e2641f; width: 30px; border-radius: 6px;
}

/* ===== Arrows ===== */
.phs-arrows { display: none; position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.phs-radio-1:checked ~ .phs-arrows-1,
.phs-radio-2:checked ~ .phs-arrows-2,
.phs-radio-3:checked ~ .phs-arrows-3 { display: block; }
.phs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; font-size: 26px; line-height: 44px; text-align: center;
  cursor: pointer; pointer-events: auto;
  transition: background .2s, transform .2s;
  font-family: Arial, sans-serif;
}
.phs-arrow:hover { background: #e2641f; border-color: #e2641f; }
.phs-prev { left: 24px; }
.phs-next { right: 24px; }
.phs-prev:hover { transform: translateY(-50%) scale(1.08); }
.phs-next:hover { transform: translateY(-50%) scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .phs-wrap { height: 440px; }
  .phs-title { font-size: 40px; }
}
@media (max-width: 768px) {
  .phs-wrap { height: 420px; }
  .phs-content { left: 6%; right: 6%; max-width: none; }
  .phs-title { font-size: 28px; }
  .phs-sub { font-size: 14px; margin-bottom: 22px; }
  .phs-eyebrow { font-size: 11px; letter-spacing: 2px; }
  .phs-btn { padding: 12px 24px; font-size: 13px; }
  .phs-overlay { background: linear-gradient(180deg, rgba(21,23,27,.4) 0%, rgba(21,23,27,.8) 100%); }
  .phs-arrow { width: 40px; height: 40px; font-size: 22px; line-height: 36px; }
  .phs-prev { left: 10px; } .phs-next { right: 10px; }
}