/* Styles for pieces site.js adds (not covered by the main stylesheets). */
[hidden] { display: none !important; }

/* Reviews grid: the original used JS to switch layouts; do it with CSS. */
@media (max-width: 1023px) {
  [data-rc-reviews] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #testimonials [aria-label="Previous page"],
  #testimonials [aria-label="Next page"] { position: static; transform: none; margin: 16px 8px 0; }
  #testimonials .relative.w-full { text-align: center; }
}
@media (max-width: 767px) {
  [data-rc-reviews] { grid-template-columns: minmax(0, 1fr); }
}
[data-rc-reviews] > div { text-align: left; }

/* Lightbox */
.rc-lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.92); padding: 48px 16px;
}
.rc-lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.rc-lightbox img { max-width: 100%; max-height: calc(100vh - 180px); object-fit: contain; border-radius: 6px; }
.rc-lightbox figcaption { color: #fff; font-size: 15px; line-height: 1.5; margin-top: 12px; max-width: 680px; text-align: center; white-space: pre-line; }
.rc-lightbox figcaption a { color: #fff; text-decoration: underline; }
.rc-lightbox button { position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 28px; line-height: 44px; cursor: pointer; }
.rc-lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.rc-lb-close { top: 16px; right: 16px; }
.rc-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.rc-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Coffee Roasting page: "Shop our beans" button between the "Our Story"
   section and the black section. Bottom padding equals the section's own
   bottom padding (py-16 / md:py-24), so the button sits centred in the gap. */
.rc-roast-cta { text-align: center; padding: 0 16px 64px; }
@media (min-width: 768px) { .rc-roast-cta { padding-bottom: 96px; } }

/* Header (640px and up): logo left, page links centred on the page, "Order Now" in the right corner. */
@media (min-width: 640px) {
  .rc-header-row { display: grid; grid-template-columns: 1fr auto 1fr; }
  .rc-header-row > a:first-child { justify-self: start; }
  .rc-header-nav { justify-self: center; }
  .rc-header-cta { justify-self: end; }
}

/* Header dropdowns (desktop, 640px and up). Hover or keyboard focus opens a
   group; the chevron button also toggles it for touch screens (site.js).
   The ::before strip bridges the gap so the menu stays open while the
   pointer moves down to it. */
.rc-dd { position: relative; display: flex; align-items: center; gap: 2px; }
.rc-dd-toggle { display: inline-flex; padding: 4px; background: none; border: 0; color: rgba(255, 255, 255, 0.85); cursor: pointer; }
.rc-dd-toggle svg { width: 14px; height: 14px; transition: transform 0.15s; }
.rc-dd-menu {
  display: none; position: absolute; top: calc(100% + 14px); left: -16px; z-index: 60;
  min-width: 190px; padding: 8px 0; border-radius: 8px;
  background-color: #1a1a1a; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.rc-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.rc-dd-menu a {
  display: block; padding: 10px 16px; white-space: nowrap; font-size: 14px; font-weight: 500;
  color: rgba(255, 255, 255, 0.85); font-family: var(--font-syne), ui-sans-serif, system-ui, sans-serif;
}
.rc-dd-menu a:hover, .rc-dd-menu a:focus-visible { color: #ff6b9d; background-color: rgba(255, 255, 255, 0.05); }
.rc-dd:hover .rc-dd-menu, .rc-dd:focus-within .rc-dd-menu, .rc-dd.is-open .rc-dd-menu { display: block; }
.rc-dd:hover .rc-dd-toggle svg, .rc-dd.is-open .rc-dd-toggle svg { transform: rotate(180deg); }

/* Mobile menu: a group's pages are listed indented under it. */
.rc-mnav-sub { margin: -4px 0 4px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.rc-mnav-sub a {
  display: block; padding: 8px 0; font-size: 14px;
  color: rgba(255, 255, 255, 0.6); font-family: var(--font-syne), ui-sans-serif, system-ui, sans-serif;
}
