/* Cozy Bloom — Homepage Styles (Promise, Testimonials, Programs, Events, Gallery) */

/* ═══════════════════════════════════════════════════════════
   Homepage — Our Promise: Scroll-Rise Composition  (v2)
   ═══════════════════════════════════════════════════════════ */

/*
 * Layout logic:
 * - Section has overflow:hidden and a fixed min-height (~720px)
 * - .cozy-promise-media is position:absolute, anchored bottom-left,
 *   spanning the left ~52% of the section width
 * - JS applies translateY to .cozy-promise-media:
 *     start → translateY(+200px)  (entirely hidden below section)
 *     end   → translateY(-20px)   (children fully visible, slightly lifted)
 * - .cozy-promise-container / .cozy-promise-content sit on the right half
 *   via margin-left: 50%
 */

/* ── Section shell ── */
.cozy-promise-section {
  position: relative;
  overflow: hidden;            /* clips child image until it rises */
  min-height: 720px;
  background: var(--cb-sage-deep);
  display: flex;
  align-items: center;
}

/* ── Decorative bg elements ── */
.cozy-promise-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* organic blob — subtle warmth behind child */
.cozy-promise-blob {
  position: absolute;
  display: block;
  width: 560px;
  height: 560px;
  border-radius: 62% 38% 50% 50% / 45% 55% 45% 55%;
  background: rgba(255,255,255,.045);
  bottom: -160px;
  left: -80px;
}

/* tiny accent dots */
.cozy-promise-dot {
  position: absolute;
  display: block;
  border-radius: 50%;
}
.cozy-promise-dot--a {
  width: 10px;
  height: 10px;
  background: rgba(214,154,145,.55);
  top: 20%;
  right: 16%;
}
.cozy-promise-dot--b {
  width: 6px;
  height: 6px;
  background: rgba(214,154,145,.38);
  bottom: 28%;
  right: 10%;
}

/* ── Child illustration — absolute, scroll-controlled ── */
.cozy-promise-media {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52%;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* translateY controlled by JS — start far below, rise into view */
  will-change: transform;
  transform: translateY(200px); /* initial offset — overridden immediately by JS */
}

.cozy-promise-image {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  /* transparent PNG — no border-radius, no box-shadow needed */
  filter: drop-shadow(0 30px 50px rgba(39,48,37,.35));
}

/* ── Content: pushed into right half via margin ── */
.cozy-promise-container {
  position: relative;
  z-index: 4;
  width: 100%;
}

.cozy-promise-content {
  margin-left: 50%;          /* sits on the right half */
  padding: 5rem 0 5rem 3rem;
  max-width: 560px;
}

.cozy-promise-eyebrow {
  color: var(--cb-pink) !important;
}

.cozy-promise-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 2.8vw, 2.9rem);
  color: #fff;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: .8rem 0 1.4rem;
}

.cozy-promise-desc {
  color: rgba(255,255,255,.76);
  font-family: Poppins, system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.78;
  margin: 0;
}

.cozy-promise-cta {
  margin-top: 2.2rem !important;
  display: inline-flex !important;
}

/* ── Tablet (≤ 991px) ── */
@media (max-width: 991.98px) {
  .cozy-promise-section {
    min-height: 580px;
  }
  .cozy-promise-media {
    width: 48%;
  }
  .cozy-promise-image {
    max-width: 460px;
  }
  .cozy-promise-content {
    margin-left: 46%;
    padding: 4rem 0 4rem 2rem;
    max-width: 480px;
  }
  .cozy-promise-heading {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  }
}

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767.98px) {
  .cozy-promise-section {
    min-height: unset;
    display: block;
    padding: 3.5rem 0 0;
  }
  /* disable scroll JS transform on mobile */
  .cozy-promise-media {
    position: relative;
    width: 100%;
    bottom: auto;
    left: auto;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    transform: none !important;
    will-change: auto;
  }
  .cozy-promise-image {
    max-width: 320px;
    filter: drop-shadow(0 16px 28px rgba(39,48,37,.28));
  }
  .cozy-promise-content {
    margin-left: 0;
    padding: 0 1rem 0;
    max-width: none;
    text-align: center;
  }
  .cozy-promise-desc {
    max-width: 460px;
    margin-inline: auto;
  }
}

@media (max-width: 479.98px) {
  .cozy-promise-heading {
    font-size: 1.8rem;
  }
  .cozy-promise-image {
    max-width: 260px;
  }
}

/* ═══════════════════════════════════════════════════════════
   Homepage — What Parents Say: Testimonials Carousel
   ═══════════════════════════════════════════════════════════ */

/* ── Section & header ── */
.cb-testimonials {
  background: var(--cb-cream);
}

.cb-testi-head {
  text-align: center;
  margin-bottom: 3.2rem;
}

.cb-testi-head .section-title {
  margin-top: .5rem;
  margin-bottom: 1.2rem;
}

.cb-testi-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}

.cb-testi-divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--cb-pink);
  opacity: .45;
}

.cb-testi-divider-dot {
  color: var(--cb-pink);
  font-size: .85rem;
  line-height: 1;
}

/* ── Slider shell ── */
.cb-testi-slider {
  position: relative;
  /* horizontal padding reserves space for absolute arrow buttons */
  padding: 0 3.2rem;
}

/* ── Arrow buttons ── */
.cb-testi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 1.5rem)); /* roughly align to card midpoint */
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--cb-border);
  background: #fff;
  color: var(--cb-sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 18px rgba(70,82,60,.09);
  padding: 0;
}

.cb-testi-arrow:hover {
  background: var(--cb-sage-soft);
  border-color: var(--cb-sage);
  box-shadow: 0 6px 22px rgba(70,82,60,.14);
}

.cb-testi-arrow:disabled {
  opacity: .3;
  pointer-events: none;
}

.cb-testi-arrow--prev { left: 0; }
.cb-testi-arrow--next { right: 0; }

/* ── Viewport & track ── */
.cb-testi-viewport {
  overflow: hidden;
  /* small negative margin trick to allow card gap without overflow */
}

.cb-testi-track {
  display: flex;
  /* transition applied by JS after first init to prevent flash */
}

/* ── Individual card ── */
.cb-testi-card {
  flex: 0 0 50%;   /* 2 per page on desktop */
  min-width: 0;
  padding: 0 .65rem;
  box-sizing: border-box;
}

.cb-testi-card-inner {
  background: #fff;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 2.2rem 2rem 1.8rem;
  height: 100%;
  box-shadow: var(--cb-shadow);
  display: flex;
  flex-direction: column;
}

/* Stars */
.cb-testi-stars {
  color: var(--cb-pink);
  font-size: .9rem;
  letter-spacing: .1em;
  margin-bottom: .9rem;
}

/* Opening quote mark */
.cb-testi-quote-mark {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4.5rem;
  line-height: .55;
  color: var(--cb-pink);
  opacity: .55;
  margin-bottom: .85rem;
  display: block;
}

/* Quote text */
.cb-testi-quote {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(.96rem, 1.3vw, 1.1rem);
  color: var(--cb-ink);
  line-height: 1.72;
  flex: 1;
  margin: 0 0 1.6rem;
  padding: 0;
  border: none;
}

/* Author row */
.cb-testi-author {
  display: flex;
  align-items: center;
  gap: .9rem;
  border-top: 1px solid var(--cb-border);
  padding-top: 1.2rem;
  margin-top: auto;
}

/* Avatar circle */
.cb-testi-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  background: var(--cb-sage-soft);
  color: var(--cb-sage-deep);
  border: 2px solid rgba(106,119,86,.18);
}

.cb-testi-avatar--rose {
  background: var(--cb-pink-soft);
  color: var(--cb-pink-deep);
  border-color: rgba(214,154,145,.28);
}

.cb-testi-avatar--beige {
  background: var(--cb-beige);
  color: var(--cb-sage-deep);
  border-color: rgba(70,82,60,.14);
}

.cb-testi-avatar--lav {
  background: #ece8f3;
  color: var(--cb-lav);
  border-color: rgba(168,155,179,.25);
}

/* Author text */
.cb-testi-name {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: .98rem;
  font-weight: 700;
  color: var(--cb-sage-deep);
}

.cb-testi-detail {
  display: block;
  font-size: .8rem;
  color: var(--cb-muted);
  margin-top: .18rem;
}

/* ── Pagination dots ── */
.cb-testi-dots {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 2.2rem;
}

.cb-testi-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  border: none;
  background: rgba(70,82,60,.2);
  cursor: pointer;
  padding: 0;
  transition: width .22s ease, background .22s ease;
  display: block;
}

.cb-testi-dot.is-active {
  background: var(--cb-pink);
  width: 28px;
}

/* ── Tablet (≤ 991px) ── */
@media (max-width: 991.98px) {
  .cb-testi-slider {
    padding: 0 2.4rem;
  }
  .cb-testi-quote {
    font-size: .96rem;
  }
}

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767.98px) {
  .cb-testi-slider {
    padding: 0; /* no room for arrows */
  }
  .cb-testi-arrow {
    display: none; /* dots-only on mobile */
  }
  .cb-testi-card {
    flex: 0 0 100%; /* 1 per page on mobile */
    padding: 0;
  }
}

/* ── Small mobile (≤ 479px) ── */
@media (max-width: 479.98px) {
  .cb-testi-card-inner {
    padding: 1.6rem 1.3rem 1.4rem;
  }
  .cb-testi-quote {
    font-size: .94rem;
  }
  .cb-testi-avatar {
    width: 44px;
    height: 44px;
    font-size: .88rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   Homepage — Programs Plan Cards Section
   ═══════════════════════════════════════════════════════════ */

/* ── Section shell ── */
.cb-programs-section {
  background: #fff;
  position: relative;
  overflow: hidden;
}

/* subtle bg circle top-right */
.cb-programs-section::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(106,119,86,.055);
  top: -200px;
  right: -160px;
  pointer-events: none;
}

/* ── Section header ── */
.cb-programs-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 0;
}

.cb-programs-head .section-title {
  margin-top: .5rem;
  margin-bottom: 1rem;
}

.cb-programs-subhead {
  margin-top: .6rem;
  margin-bottom: 0;
}

/* decorative divider */
.cb-programs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: .5rem;
}

.cb-programs-divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--cb-pink);
  opacity: .45;
}

.cb-programs-divider-dot {
  color: var(--cb-pink);
  font-size: .85rem;
  line-height: 1;
}

/* ── Illustration block ── */
.cb-programs-illus-wrap {
  text-align: center;
  margin: 1.6rem 0 -1.8rem;  /* negative bottom pulls cards up under the image */
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.cb-programs-illus {
  display: inline-block;
  max-width: 560px;
  width: 90%;
  height: auto;
  /* tint the original salmon-pink circle to Cozy Bloom dusty rose using hue-rotate */
  filter: hue-rotate(-10deg) saturate(.85) brightness(1.04);
}

/* ── Cards grid ── */
.cb-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ── Individual card ── */
.cb-prog-card {
  background: #fff;
  border: 1px solid var(--cb-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--cb-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}

.cb-prog-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 64px rgba(70,82,60,.14);
}

/* ── Coloured top band ── */
.cb-prog-card-top {
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* subtle inner circle decoration */
.cb-prog-card-top::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  opacity: .25;
}

/* Sage — toddler */
.cb-prog-card--sage .cb-prog-card-top {
  background: linear-gradient(135deg, var(--cb-sage-soft) 0%, #cfe0c7 100%);
}
.cb-prog-card--sage .cb-prog-card-top::after {
  background: var(--cb-sage);
}

/* Rose — preschool */
.cb-prog-card--rose .cb-prog-card-top {
  background: linear-gradient(135deg, var(--cb-pink-soft) 0%, #f0d2cc 100%);
}
.cb-prog-card--rose .cb-prog-card-top::after {
  background: var(--cb-pink-deep);
}

/* Beige — summer camp */
.cb-prog-card--beige .cb-prog-card-top {
  background: linear-gradient(135deg, var(--cb-cream) 0%, var(--cb-beige) 100%);
}
.cb-prog-card--beige .cb-prog-card-top::after {
  background: var(--cb-sage);
}

/* large ghost number */
.cb-prog-number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cb-ink);
  opacity: .12;
  position: relative;
  z-index: 1;
  user-select: none;
}

/* program icon */
.cb-prog-icon {
  font-size: 2.4rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.cb-prog-card--sage  .cb-prog-icon { color: var(--cb-sage-deep); }
.cb-prog-card--rose  .cb-prog-icon { color: var(--cb-pink-deep); }
.cb-prog-card--beige .cb-prog-icon { color: var(--cb-sage); }

/* ── Card body ── */
.cb-prog-card-body {
  padding: 1.8rem 1.7rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* age range */
.cb-prog-age {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--cb-muted);
  margin-bottom: .55rem;
}

/* program name */
.cb-prog-title {
  font-size: 1.65rem;
  color: var(--cb-sage-deep);
  margin-bottom: .75rem;
  line-height: 1.2;
}

/* short description */
.cb-prog-desc {
  color: var(--cb-muted);
  font-size: .9rem;
  line-height: 1.72;
  margin-bottom: 0;
}

/* feature list */
.cb-prog-features {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.6rem;
  flex: 1;
  border-top: 1px solid var(--cb-border);
  padding-top: .9rem;
}

.cb-prog-features li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .86rem;
  color: var(--cb-ink);
  padding: .32rem 0;
  line-height: 1.5;
}

.cb-prog-features li::before {
  content: "✦";
  flex-shrink: 0;
  font-size: .6rem;
  margin-top: .28em;
}

.cb-prog-card--sage  .cb-prog-features li::before { color: var(--cb-sage); }
.cb-prog-card--rose  .cb-prog-features li::before { color: var(--cb-pink-deep); }
.cb-prog-card--beige .cb-prog-features li::before { color: var(--cb-sage); }

/* CTA button */
.cb-prog-btn {
  margin-top: auto;
  align-self: flex-start;
}

.cb-prog-card--sage .cb-prog-btn {
  background: var(--cb-sage);
  color: #fff;
  border-color: transparent;
}
.cb-prog-card--sage .cb-prog-btn:hover {
  background: var(--cb-sage-deep);
  color: #fff;
  transform: translateY(-1px);
}

.cb-prog-card--rose .cb-prog-btn {
  background: var(--cb-pink);
  color: #fff;
  border-color: transparent;
}
.cb-prog-card--rose .cb-prog-btn:hover {
  background: var(--cb-pink-deep);
  color: #fff;
  transform: translateY(-1px);
}

.cb-prog-card--beige .cb-prog-btn {
  background: transparent;
  color: var(--cb-sage-deep);
  border-color: rgba(70,82,60,.28);
}
.cb-prog-card--beige .cb-prog-btn:hover {
  background: var(--cb-sage-soft);
  border-color: var(--cb-sage);
  transform: translateY(-1px);
}

/* ── Tablet (≤ 991px): 2 columns, 3rd card centred ── */
@media (max-width: 991.98px) {
  .cb-programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cb-prog-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    width: 100%;
    margin-inline: auto;
  }
  .cb-programs-illus {
    max-width: 420px;
  }
  .cb-programs-illus-wrap {
    margin-bottom: -1.2rem;
  }
}

/* ── Mobile (≤ 767px): 1 column ── */
@media (max-width: 767.98px) {
  .cb-programs-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .cb-prog-card:last-child {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }
  .cb-programs-illus {
    max-width: 300px;
  }
  .cb-programs-illus-wrap {
    margin: 1.2rem 0 -1rem;
  }
}

/* ── Small mobile (≤ 479px) ── */
@media (max-width: 479.98px) {
  .cb-prog-card-body {
    padding: 1.4rem 1.2rem 1.6rem;
  }
  .cb-prog-title {
    font-size: 1.45rem;
  }
  .cb-programs-illus {
    max-width: 240px;
  }
  .cb-prog-card-top {
    height: 110px;
  }
  .cb-prog-number {
    font-size: 3.2rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   Homepage — Upcoming Events Section
   ═══════════════════════════════════════════════════════════ */

/* ── Section shell ── */
.cb-events-section {
  background: var(--cb-sage-soft);
  position: relative;
  overflow: hidden;
}

/* ── Decorative bg blobs ── */
.cb-events-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cb-events-blob {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.cb-events-blob--1 {
  width: 420px;
  height: 420px;
  background: rgba(214,154,145,.12);
  top: -150px;
  right: -110px;
}

.cb-events-blob--2 {
  width: 320px;
  height: 320px;
  background: rgba(255,255,255,.5);
  bottom: -110px;
  left: -90px;
}

/* ── Floating circular kid photos ── */
.cb-events-floater {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 28px rgba(70,82,60,.14);
}

.cb-events-floater--tr {
  width: 92px;
  height: 92px;
  top: 7%;
  right: 2.5%;
}

.cb-events-floater--bl {
  width: 78px;
  height: 78px;
  bottom: 9%;
  left: 1.8%;
}

/* ── Section header ── */
.cb-events-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}

.cb-events-head .section-title {
  margin-top: .5rem;
  margin-bottom: 0;
}

.cb-events-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: .9rem 0 .5rem;
}

.cb-events-divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--cb-pink);
  opacity: .45;
}

.cb-events-divider-dot {
  color: var(--cb-pink);
  font-size: .85rem;
  line-height: 1;
}

.cb-events-subhead {
  margin-top: .55rem;
  margin-bottom: 0;
}

/* ── 2-column grid ── */
.cb-events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  position: relative;
  z-index: 1;
}

/* ── Card shell ── */
.cb-event-card {
  display: flex;         /* so inner stretches to full height */
}

.cb-event-card-inner {
  background: #fff;
  border: 1px solid var(--cb-border);
  border-left-width: 5px;    /* thick left accent */
  border-radius: 20px;
  padding: 2rem 1.9rem 1.8rem;
  width: 100%;
  box-shadow: var(--cb-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}

.cb-event-card:hover .cb-event-card-inner {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(70,82,60,.14);
}

/* left-border accent colours */
.cb-event-card--sage  .cb-event-card-inner { border-left-color: var(--cb-sage); }
.cb-event-card--rose  .cb-event-card-inner { border-left-color: var(--cb-pink); }
.cb-event-card--beige .cb-event-card-inner { border-left-color: #c4ae8e; }
.cb-event-card--lav   .cb-event-card-inner { border-left-color: var(--cb-lav); }

/* ── Card header: date badge + type tag ── */
.cb-event-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* Date badge */
.cb-event-date-badge {
  flex-shrink: 0;
  width: 62px;
  height: 66px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .3rem .4rem;
}

.cb-event-card--sage  .cb-event-date-badge { background: var(--cb-sage-soft); }
.cb-event-card--rose  .cb-event-date-badge { background: var(--cb-pink-soft); }
.cb-event-card--beige .cb-event-date-badge { background: var(--cb-beige); }
.cb-event-card--lav   .cb-event-date-badge { background: #ede9f3; }

.cb-event-day {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.cb-event-card--sage  .cb-event-day { color: var(--cb-sage-deep); }
.cb-event-card--rose  .cb-event-day { color: var(--cb-pink-deep); }
.cb-event-card--beige .cb-event-day { color: var(--cb-sage); }
.cb-event-card--lav   .cb-event-day { color: var(--cb-lav); }

.cb-event-month {
  display: block;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cb-muted);
  margin-top: .2rem;
}

/* Event type tag */
.cb-event-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-top: .3rem;
}

.cb-event-card--sage  .cb-event-tag { background: var(--cb-sage-soft);  color: var(--cb-sage-deep); }
.cb-event-card--rose  .cb-event-tag { background: var(--cb-pink-soft);  color: var(--cb-pink-deep); }
.cb-event-card--beige .cb-event-tag { background: var(--cb-beige);      color: var(--cb-sage-deep); }
.cb-event-card--lav   .cb-event-tag { background: #ede9f3;              color: var(--cb-lav); }

/* ── Event title ── */
.cb-event-title {
  font-size: 1.35rem;
  color: var(--cb-sage-deep);
  line-height: 1.25;
  margin-bottom: .7rem;
}

/* ── Event description ── */
.cb-event-desc {
  color: var(--cb-muted);
  font-size: .9rem;
  line-height: 1.72;
  flex: 1;
  margin-bottom: 0;
}

/* ── Card footer: time + CTA ── */
.cb-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--cb-border);
}

.cb-event-time {
  display: flex;
  align-items: center;
  gap: .42rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--cb-muted);
}

.cb-event-time-icon {
  color: var(--cb-pink);
  font-size: 1rem;
  line-height: 1;
}

.cb-event-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .86rem;
  font-weight: 700;
  color: var(--cb-sage-deep);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, gap .18s ease;
}

.cb-event-link:hover {
  color: var(--cb-pink-deep);
  gap: .55rem;
}

/* ── Tablet (≤ 991px) ── */
@media (max-width: 991.98px) {
  .cb-events-grid {
    gap: 1.2rem;
  }
  .cb-events-floater--tr { width: 72px; height: 72px; }
  .cb-events-floater--bl { width: 60px; height: 60px; }
}

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767.98px) {
  .cb-events-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  /* hide floating photos on small screens to prevent overflow */
  .cb-events-floater {
    display: none;
  }
  .cb-event-title {
    font-size: 1.2rem;
  }
}

/* ── Small mobile (≤ 479px) ── */
@media (max-width: 479.98px) {
  .cb-event-card-inner {
    padding: 1.4rem 1.2rem 1.4rem;
  }
  .cb-event-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
  }
}

/* ════════════════════════════════════════════════════════════
   Our Gallery — .cb-gallery-section
   ════════════════════════════════════════════════════════════ */

.cb-gallery-section {
  background: #fff;
}

/* ── Section header ── */
.cb-gallery-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.cb-gallery-subhead {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-top: .5rem;
}

.cb-gallery-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin: .9rem auto 1rem;
  max-width: 220px;
}

.cb-gallery-divider-line {
  flex: 1;
  height: 1px;
  background: var(--cb-border, #e4ddd4);
}

.cb-gallery-divider-dot {
  color: var(--cb-pink-deep, #c97a6f);
  font-size: .75rem;
  flex-shrink: 0;
}

/* ── Filter buttons ── */
.cb-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin-bottom: 2.5rem;
}

.cb-gallery-filter {
  padding: .52rem 1.3rem;
  border-radius: 50px;
  border: 1.5px solid var(--cb-border, #e4ddd4);
  background: transparent;
  color: var(--cb-muted, #6b7c73);
  font-family: Poppins, system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  letter-spacing: .02em;
}

.cb-gallery-filter:hover {
  border-color: var(--cb-sage, #5a7a5f);
  color: var(--cb-sage-deep, #2d4a32);
  transform: translateY(-1px);
}

.cb-gallery-filter.is-active {
  background: var(--cb-sage-deep, #2d4a32);
  border-color: var(--cb-sage-deep, #2d4a32);
  color: #fff;
}

/* ── Grid ── */
.cb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: .85rem;
}

/* Wide items span 2 columns */
.cb-gallery-item--wide {
  grid-column: span 2;
}

/* Hidden state (set by JS filter) */
.cb-gallery-item--hidden {
  display: none;
}

/* ── Individual item ── */
.cb-gallery-item {
  border-radius: 14px;
  overflow: hidden;
}

.cb-gallery-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  outline: none;
}

.cb-gallery-thumb:focus-visible {
  box-shadow: 0 0 0 3px rgba(90, 122, 95, .45);
}

.cb-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.25, .46, .45, .94);
  will-change: transform;
}

/* ── Hover: image scale ── */
.cb-gallery-thumb:hover img,
.cb-gallery-thumb:focus-visible img {
  transform: scale(1.06);
}

/* ── Overlay ── */
.cb-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 43, 34, .72) 0%,
    rgba(30, 43, 34, .18) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.2rem 1.1rem;
  opacity: 0;
  transition: opacity .35s ease;
  border-radius: 14px;
}

.cb-gallery-thumb:hover .cb-gallery-overlay,
.cb-gallery-thumb:focus-visible .cb-gallery-overlay {
  opacity: 1;
}

.cb-gallery-overlay-inner {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  width: 100%;
}

.cb-gallery-cat-tag {
  display: inline-block;
  background: var(--cb-pink-deep, #c97a6f);
  color: #fff;
  font-family: Poppins, system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .22rem .65rem;
  border-radius: 50px;
  align-self: flex-start;
  margin-bottom: .15rem;
}

.cb-gallery-label {
  color: #fff;
  font-family: Poppins, system-ui, sans-serif;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.3;
}

.cb-gallery-view-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  margin-top: .4rem;
  transition: background .2s;
}

.cb-gallery-thumb:hover .cb-gallery-view-icon {
  background: rgba(255, 255, 255, .3);
}

/* ── Lightbox ── */
.cb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cb-lightbox[hidden] {
  display: none;
}

.cb-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 16, .88);
  cursor: pointer;
}

.cb-lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .2s;
}

.cb-lightbox-close:hover {
  background: rgba(255, 255, 255, .24);
}

.cb-lightbox-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
}

.cb-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  display: block;
}

.cb-lightbox-caption {
  color: rgba(255, 255, 255, .72);
  font-family: Poppins, system-ui, sans-serif;
  font-size: .88rem;
  text-align: center;
  margin: 0;
  letter-spacing: .03em;
}

/* ── Responsive: tablet (≤ 991px) ── */
@media (max-width: 991.98px) {
  .cb-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }
}

/* ── Responsive: mobile (≤ 767px) ── */
@media (max-width: 767.98px) {
  .cb-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: .6rem;
  }
  .cb-gallery-item--wide {
    grid-column: span 1;
  }
  .cb-gallery-filters {
    gap: .4rem;
    margin-bottom: 2rem;
  }
  .cb-gallery-filter {
    font-size: .78rem;
    padding: .44rem 1rem;
  }
}

/* ── Responsive: small mobile (≤ 479px) ── */
@media (max-width: 479.98px) {
  .cb-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
}
