/* =====================================================================
   South Cheshire CAMRA -- Homepage frontend styles
   Enqueued by scb-homepage plugin. Scoped under #scb-homepage.
   Pure ASCII. Version tracked by SCBHP_VERSION.
   ===================================================================== */

#scb-homepage {
  font-family: Arial, sans-serif;
  color: #1c2333;
  background: #eef1f8;
  overflow-x: hidden;
}
#scb-homepage p,
#scb-homepage address,
#scb-homepage li {
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

/* HERO ---------------------------------------------------------------- */
#scb-homepage .scb-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #3d4f8a 0%, #5B6FB3 100%);
  margin-top: 0;
}
#scb-homepage .scb-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/2026/06/IMG-20260616-WA0010.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Hero slideshow (replaces the single bg div via [scb_hero_bg]) */
#scb-homepage .scb-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
#scb-homepage .scb-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s ease-in-out;
  will-change: opacity, transform;
}
#scb-homepage .scb-hero__slide--active { opacity: 1; }

/* Subtle Ken Burns zoom. The zoom runs while the slide is active; when it
   becomes inactive the transform reset is DELAYED past the crossfade so the
   outgoing image never visibly snaps back before it has faded out. */
#scb-homepage .scb-hero__slides--kb .scb-hero__slide {
  transition: opacity 1.4s ease-in-out, transform 0s linear 1.6s;
}
#scb-homepage .scb-hero__slides--kb .scb-hero__slide--active {
  transform: scale(1.08);
  transition: opacity 1.4s ease-in-out, transform 14s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  #scb-homepage .scb-hero__slide { transition: none; transform: none; }
  #scb-homepage .scb-hero__slides--kb .scb-hero__slide--active { transform: none; transition: opacity 0.4s ease; }
}
#scb-homepage .scb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,79,138,0.78) 0%, rgba(28,35,51,0.65) 100%);
  z-index: 1;
}
#scb-homepage .scb-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 80px;
  width: 100%;
}
#scb-homepage .scb-hero__eyebrow {
  display: inline-block;
  background: rgba(249,177,60,0.18);
  border: 1px solid rgba(249,177,60,0.45);
  color: #f9b13c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
#scb-homepage .scb-hero__heading {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  margin: 0 0 20px;
  max-width: 680px;
}
#scb-homepage .scb-hero__sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin: 0 0 38px;
}
#scb-homepage .scb-hero__cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
#scb-homepage .scb-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f9b13c;
  color: #1c2333;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.18s;
  box-shadow: 0 4px 16px rgba(249,177,60,0.35);
}
#scb-homepage .scb-btn-primary:hover {
  background: #e0871a;
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
#scb-homepage .scb-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
#scb-homepage .scb-btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.7);
  text-decoration: none;
  color: #fff;
}
#scb-homepage .scb-hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  animation: scb-bounce 2.2s ease-in-out infinite;
}
@keyframes scb-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* STATS --------------------------------------------------------------- */
#scb-homepage .scb-stats { background: #fff; border-bottom: 1px solid #d4daf0; }
#scb-homepage .scb-stats__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
#scb-homepage .scb-stat { padding: 28px 24px; text-align: center; border-right: 1px solid #eef1f8; }
#scb-homepage .scb-stat:last-child { border-right: none; }
#scb-homepage .scb-stat__number { display: block; font-size: 2.2rem; font-weight: 700; color: #5b6fb3; line-height: 1; margin-bottom: 4px; }
#scb-homepage .scb-stat__label { font-size: 0.8rem; color: #8b93a6; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }

/* SECTION COMMONS ----------------------------------------------------- */
#scb-homepage .scb-section { padding: 80px 0; }
#scb-homepage .scb-section--alt { background: #fff; }
#scb-homepage .scb-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
#scb-homepage .scb-section-track { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
#scb-homepage .scb-section-track::before,
#scb-homepage .scb-section-track::after { content: ''; flex: 1; height: 2px; background: rgba(139,147,166,0.55); border-radius: 2px; }
#scb-homepage .scb-section-track::before { max-width: 48px; }
#scb-homepage .scb-section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8b93a6; white-space: nowrap; }
#scb-homepage .scb-section-heading { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: #3d4f8a; margin: 0 0 8px; }
#scb-homepage .scb-section-sub { color: #41495a; font-size: 1rem; line-height: 1.6; margin: 0 0 44px; max-width: none; }

/* ABOUT + FEATURE CARD ------------------------------------------------ */
#scb-homepage .scb-about-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
#scb-homepage .scb-about-text { background: #fff; border: 1px solid #d4daf0; border-radius: 12px; padding: 32px; box-shadow: 0 2px 12px rgba(91,111,179,0.07); }
#scb-homepage .scb-about-text h2 { font-size: 1.3rem; font-weight: 700; color: #5b6fb3; margin: 0 0 14px; }
#scb-homepage .scb-about-text p { color: #41495a; font-size: 0.97rem; line-height: 1.7; margin: 0; }

#scb-homepage .scb-feature-card {
  background: linear-gradient(135deg, #5b6fb3 0%, #3d4f8a 100%);
  color: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 220px;
  max-width: 280px;
  box-shadow: 0 4px 20px rgba(61,79,138,0.3);
  gap: 10px;
}
#scb-homepage .scb-feature-card__img { width: 100%; border-radius: 8px; overflow: hidden; margin-bottom: 4px; }
#scb-homepage .scb-feature-card__img img { width: 100%; height: auto; display: block; }
#scb-homepage .scb-feature-card__eyebrow { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); font-weight: 700; }
#scb-homepage .scb-feature-card__heading { font-size: 1.15rem; font-weight: 700; color: #f9b13c; line-height: 1.25; margin: 0; }
#scb-homepage .scb-feature-card__body { font-size: 0.84rem; line-height: 1.55; color: rgba(255,255,255,0.85); margin: 0; text-align: justify; hyphens: none; -webkit-hyphens: none; }
#scb-homepage .scb-feature-card__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-size: 0.8rem; font-weight: 700; color: #f9b13c; text-decoration: none;
  border-bottom: 1px solid rgba(249,177,60,0.4); padding-bottom: 1px; transition: border-color 0.15s;
}
#scb-homepage .scb-feature-card__link:hover { border-color: #f9b13c; color: #fff; }

/* EVENTS -------------------------------------------------------------- */
#scb-homepage .scb-events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
#scb-homepage .scb-event-card { background: #fff; border: 1px solid #d4daf0; border-radius: 12px; overflow: hidden; transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s; }
#scb-homepage .scb-event-card:hover { box-shadow: 0 8px 32px rgba(91,111,179,0.18); transform: translateY(-3px); border-color: #5b6fb3; }
#scb-homepage .scb-event-card__top { height: 6px; }
#scb-homepage .scb-event-card__top--meeting { background: #60bb9b; }
#scb-homepage .scb-event-card__top--social { background: #f9b13c; }
#scb-homepage .scb-event-card__top--festival { background: #e8335e; }
#scb-homepage .scb-event-card__top--special { background: #00b3c4; }
#scb-homepage .scb-event-card__body { padding: 22px; }
#scb-homepage .scb-event-card__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
#scb-homepage .scb-event-card__date { background: #eef1f8; color: #5b6fb3; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; }
#scb-homepage .scb-event-card__time { font-size: 0.72rem; color: #8b93a6; font-weight: 600; }
#scb-homepage .scb-event-card__title { font-size: 1.05rem; font-weight: 700; color: #1c2333; margin: 0 0 8px; }
#scb-homepage .scb-event-card__desc { font-size: 0.88rem; color: #41495a; line-height: 1.6; margin: 0 0 18px; }
#scb-homepage .scb-event-card__link { display: inline-block; font-size: 0.82rem; font-weight: 700; color: #5b6fb3; text-decoration: none; letter-spacing: 0.04em; border-bottom: 2px solid #f9b13c; padding-bottom: 1px; transition: color 0.18s, border-color 0.18s; }
#scb-homepage .scb-event-card__link:hover { color: #3d4f8a; border-color: #5b6fb3; }
#scb-homepage .scb-events-more { text-align: center; margin-top: 38px; }

/* NEWS CAROUSEL ------------------------------------------------------- */
#scb-homepage .scb-news-carousel-wrap { position: relative; overflow: hidden; }
#scb-homepage .scb-news-carousel { display: flex; gap: 24px; transition: transform 0.42s cubic-bezier(0.25,0.46,0.45,0.94); will-change: transform; cursor: grab; user-select: none; }
#scb-homepage .scb-news-carousel:active { cursor: grabbing; }
#scb-homepage .scb-news-carousel-card { flex: 0 0 calc(25% - 18px); min-width: 0; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: transform 0.2s; }
#scb-homepage .scb-news-carousel-card:hover { transform: translateY(-3px); }
#scb-homepage .scb-news-card__img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #d4daf0; flex-shrink: 0; }
#scb-homepage .scb-news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; display: block; }
#scb-homepage .scb-news-carousel-card:hover .scb-news-card__img img { transform: scale(1.06); }
#scb-homepage .scb-news-card__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8b93a6; }
#scb-homepage .scb-news-card__title { font-size: 0.97rem; font-weight: 700; color: #1c2333; line-height: 1.4; margin: 0; }
#scb-homepage .scb-news-card__excerpt { font-size: 0.86rem; color: #41495a; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#scb-homepage .scb-news-card__more { font-size: 0.8rem; font-weight: 700; color: #5b6fb3; text-decoration: none; border-bottom: 2px solid #f9b13c; padding-bottom: 1px; align-self: flex-start; transition: color 0.18s; }
#scb-homepage .scb-news-carousel-card:hover .scb-news-card__more { color: #3d4f8a; }
#scb-homepage .scb-news-carousel-nav { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
#scb-homepage .scb-news-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: #d4daf0; border: none; cursor: pointer; transition: background 0.2s, transform 0.2s; padding: 0; }
#scb-homepage .scb-news-carousel-dot--active { background: #5b6fb3; transform: scale(1.25); }

/* News carousel prev/next arrows */
#scb-homepage .scb-news-carousel-wrap { position: relative; }
#scb-homepage .scb-news-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #d4daf0;
  background: #ffffff;
  color: #3d4f8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(61,79,138,0.18);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, opacity 0.18s;
}
#scb-homepage .scb-news-arrow:hover { background: #5b6fb3; color: #fff; box-shadow: 0 6px 18px rgba(61,79,138,0.3); }
#scb-homepage .scb-news-arrow--prev { left: -14px; }
#scb-homepage .scb-news-arrow--next { right: -14px; }
#scb-homepage .scb-news-arrow[disabled] { opacity: 0.35; cursor: default; box-shadow: none; }
#scb-homepage .scb-news-arrow[disabled]:hover { background: #fff; color: #3d4f8a; }

/* Scroll-down cue (hero + each section) */
#scb-homepage .scb-hero,
#scb-homepage .scb-section { position: relative; }
#scb-homepage .scb-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(91,111,179,0.35);
  background: rgba(255,255,255,0.65);
  color: #5b6fb3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  animation: scb-bounce-cue 2.2s ease-in-out infinite;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
#scb-homepage .scb-scroll-cue:hover { background: #5b6fb3; color: #fff; border-color: #5b6fb3; }
/* Hero already carries a "Scroll" hint; the JS makes it clickable instead of
   adding a second cue there. On dark sections the cue is lightened. */
#scb-homepage .scb-join-banner .scb-scroll-cue { display: none; }
@keyframes scb-bounce-cue {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(5px); }
}
#scb-homepage .scb-hero__scroll-hint { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  #scb-homepage .scb-scroll-cue,
  #scb-homepage .scb-hero__scroll-hint { animation: none; }
}
@media (max-width: 768px) {
  #scb-homepage .scb-scroll-cue { display: none; }
}

/* AWARDS -------------------------------------------------------------- */
#scb-homepage .scb-awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
#scb-homepage .scb-awards-img-wrap { position: relative; }
#scb-homepage .scb-awards-img-wrap img { width: 100%; border-radius: 16px; box-shadow: 0 12px 48px rgba(61,79,138,0.2); display: block; }
#scb-homepage .scb-awards-img-wrap::after { content: ''; position: absolute; inset: -10px -10px auto auto; width: 80px; height: 80px; background: #f9b13c; border-radius: 50%; opacity: 0.15; }
#scb-homepage .scb-awards-eyebrow { display: inline-block; background: #f9b13c; color: #1c2333; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; margin-bottom: 18px; }
#scb-homepage .scb-awards-heading { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: #3d4f8a; margin: 0 0 32px; line-height: 1.2; }
#scb-homepage .scb-award-item { border-left: 4px solid #f9b13c; padding: 10px 0 10px 20px; margin-bottom: 20px; }
#scb-homepage .scb-award-item--runner { border-left-color: #d4daf0; }
#scb-homepage .scb-award-item__title { font-size: 0.85rem; font-weight: 700; color: #41495a; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 4px; }
#scb-homepage .scb-award-item__pub { font-size: 1.05rem; font-weight: 700; color: #5b6fb3; margin: 0 0 4px; }
#scb-homepage .scb-award-item__desc { font-size: 0.86rem; color: #41495a; margin: 0; line-height: 1.55; }
#scb-homepage .scb-awards-cta { margin-top: 30px; }

/* JOIN BANNER --------------------------------------------------------- */
#scb-homepage .scb-join-banner { background: linear-gradient(135deg, #5b6fb3 0%, #3d4f8a 100%); padding: 72px 0; text-align: center; position: relative; overflow: hidden; }
#scb-homepage .scb-join-banner::before { content: ''; position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(249,177,60,0.1); }
#scb-homepage .scb-join-banner::after { content: ''; position: absolute; bottom: -80px; left: -40px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.05); }
#scb-homepage .scb-join-banner__inner { position: relative; z-index: 1; }
#scb-homepage .scb-join-banner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: #fff; margin: 0 0 14px; }
#scb-homepage .scb-join-banner p { color: rgba(255,255,255,0.8); font-size: 1rem; max-width: 520px; margin: 0 auto 32px; line-height: 1.65; text-align: center; }
#scb-homepage .scb-btn-join { display: inline-flex; align-items: center; gap: 8px; background: #f9b13c; color: #1c2333; font-weight: 700; font-size: 0.95rem; padding: 16px 36px; border-radius: 8px; text-decoration: none; transition: background 0.2s, transform 0.18s; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
#scb-homepage .scb-btn-join:hover { background: #e0871a; transform: translateY(-2px); text-decoration: none; color: #1c2333; }

/* RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 1024px) {
  #scb-homepage .scb-news-carousel-card { flex-basis: calc(50% - 12px); }
  #scb-homepage .scb-awards-grid { grid-template-columns: 1fr; gap: 40px; }
  #scb-homepage .scb-awards-img-wrap { order: 2; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 768px) {
  #scb-homepage .scb-container { padding: 0 20px; }
  #scb-homepage .scb-section { padding: 56px 0; }
  #scb-homepage .scb-hero__content { padding: 100px 20px 60px; }
  #scb-homepage .scb-stats__inner { grid-template-columns: repeat(2, 1fr); }
  #scb-homepage .scb-stat { border-right: none; border-bottom: 1px solid #eef1f8; }
  #scb-homepage .scb-stat:nth-child(odd) { border-right: 1px solid #eef1f8; }
  #scb-homepage .scb-events-grid { grid-template-columns: 1fr; }
  #scb-homepage .scb-about-grid { grid-template-columns: 1fr; }
  #scb-homepage .scb-feature-card { max-width: 100%; }
  #scb-homepage .scb-news-carousel-card { flex-basis: 100%; }
}
