/* BAMBOO homepage extras: showcases, testimonials, gallery, social */

/* ---------- Showcase header ---------- */
.showcase__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 56px); }
.showcase__head h2 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.showcase .eyebrow { margin-bottom: 1em; }

/* ---------- Swipeable row ---------- */
.rail__track {
  display: flex; gap: 24px; padding-bottom: 6px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: 6px;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; }
.rail__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.rail__nav button {
  display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--c-line); border-radius: 50%;
  transition: background 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
}
.rail__nav button:hover:not(:disabled), .rail__nav button:focus-visible { background: var(--c-accent); border-color: var(--c-accent); color: #0a0a0a; }
.rail__nav button:disabled { opacity: 0.3; cursor: default; }

/* ---------- Testimonials ---------- */
.testimonials { text-align: center; }
.testimonials__head { margin-bottom: clamp(28px, 4vw, 56px); }
.testimonials__head h2 { margin-inline: auto; }
.tq-wrap { max-width: 980px; margin-inline: auto; }
.tq { margin: 0 0 40px; }
.tq blockquote { margin: 0; }
.tq blockquote p {
  margin: 0 0 28px; font-family: var(--font-heading); font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.22; color: var(--c-cream);
}
.tq blockquote p::before { content: '\201C'; display: block; height: 0.55em; font-size: 2.4em; line-height: 1; color: var(--c-accent); }
.tq figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; color: var(--c-beige); }
.tq__stars { color: var(--c-accent); letter-spacing: 0.1em; }
.tq__place { color: var(--c-muted); }
.tq__place::before { content: '\00B7'; margin-right: 14px; }
.testimonials.is-ready .tq { display: none; margin-bottom: 0; }
.testimonials.is-ready .tq.is-active { display: block; animation: tqIn 0.9s var(--ease-out) both; }
@keyframes tqIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tq__dots { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.tq__dots button { position: relative; width: 12px; height: 12px; border: 1px solid var(--c-accent); border-radius: 50%; transition: background 0.3s; }
.tq__dots button::after { content: ''; position: absolute; inset: -10px; }
.tq__dots button[aria-current='true'] { background: var(--c-accent); }

/* ---------- Gallery ---------- */
.gallery__head { margin-bottom: clamp(28px, 4vw, 56px); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 18vw, 260px); grid-auto-flow: dense; gap: 12px; }
.gal { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--c-line); padding: 0; }
.gal:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gal:nth-child(4) { grid-row: span 2; }
.gal:nth-child(5) { grid-column: span 2; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
button.gal { cursor: zoom-in; }
button.gal:hover img, button.gal:focus-visible img { transform: scale(1.06); }
.gal__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 16px; text-align: left; font-size: 0.85rem; color: var(--c-cream);
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.85), transparent); opacity: 0; transition: opacity 0.4s;
}
button.gal:hover .gal__caption, button.gal:focus-visible .gal__caption { opacity: 1; }
.gal__mark { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c-accent); opacity: 0.18; }
.gal__mark .logo-mark { width: 26%; max-width: 90px; height: auto; }
.gal__mark .logo-word { display: none; }

.gal-lightbox { width: 100%; max-width: 100vw; height: 100%; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; color: var(--c-cream); }
.gal-lightbox::backdrop { background: rgba(5, 5, 5, 0.95); }
.gal-lightbox[open] { display: grid; place-items: center; }
.gal-lightbox__img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.gal-lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; font-size: 2rem; line-height: 1;
  border: 1px solid var(--c-line); border-radius: 50%; background: rgba(10, 10, 10, 0.6); transition: background 0.3s, color 0.3s;
}
.gal-lightbox__btn:hover, .gal-lightbox__btn:focus-visible { background: var(--c-accent); color: #0a0a0a; }
.gal-lightbox__close { top: 20px; right: 20px; }
.gal-lightbox__prev, .gal-lightbox__next { top: 50%; transform: translateY(-50%); }
.gal-lightbox__prev { left: 20px; }
.gal-lightbox__next { right: 20px; }

/* ---------- Social ---------- */
.social__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 56px); }
.social__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.social-tile {
  display: grid; gap: 40px; align-content: space-between; min-height: 190px; padding: 28px;
  border: 1px solid var(--c-line); background: var(--c-bg); transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.social-tile__name { font-family: var(--font-heading); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; }
.social-tile__go { display: inline-flex; align-items: center; gap: 12px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-accent); transition: color 0.4s; }
.social-tile__go svg { transition: transform 0.5s var(--ease-out); }
.social-tile:hover, .social-tile:focus-visible { background: var(--c-accent); border-color: var(--c-accent); color: #0a0a0a; }
.social-tile:hover .social-tile__go, .social-tile:focus-visible .social-tile__go { color: #0a0a0a; }
.social-tile:hover .social-tile__go svg { transform: translateX(8px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 34vw, 240px); }
  .gal:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gal:nth-child(4) { grid-row: span 1; }
  .gal:nth-child(5) { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials.is-ready .tq.is-active { animation: none; }
}