/* ── Be Green Monkey — Main CSS ──────────────────────────────────────────── */

/* Scroll reveal animations */
.will-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.will-animate.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.bgm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bgm-header.is-scrolled {
  border-bottom-color: var(--wp--preset--color--border);
  box-shadow: 0 2px 16px rgba(44,95,45,0.07);
}
.bgm-header__brand a {
  text-decoration: none;
}

/* Cart button */
.bgm-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--wp--preset--color--clay);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: var(--wp--custom--radius--pill);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.bgm-cart-btn:hover {
  background: #b05f3c;
  transform: translateY(-1px);
}
.bgm-cart-count {
  background: #fff;
  color: var(--wp--preset--color--clay);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.bgm-hero__panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}
.bgm-hero__panel::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 70% 30%, rgba(224,169,62,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.bgm-hero__monkey img {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}
.bgm-hero__badge {
  display: inline-flex !important;
  width: fit-content !important;
  margin: 0 auto;
}

/* ── Post / Product cards ─────────────────────────────────────────────────── */
.bgm-post-card,
.bgm-feature-card,
.bgm-product-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bgm-post-card:hover,
.bgm-feature-card:hover,
.bgm-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(44,95,45,0.10);
}
.bgm-compact-card {
  gap: 1rem;
}
.bgm-compact-card:last-child {
  border-bottom: none !important;
}

/* ── Category cards ──────────────────────────────────────────────────────── */
.bgm-cat-card {
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bgm-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(44,95,45,0.09);
}

/* ── Newsletter ──────────────────────────────────────────────────────────── */
.bgm-newsletter {
  position: relative;
  overflow: hidden;
}
.bgm-newsletter::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(224,169,62,0.15);
  pointer-events: none;
}
.bgm-newsletter__form .bgm-newsletter__row {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--wp--custom--radius--pill);
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
}
.bgm-newsletter__form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.875rem 1.25rem;
  font-size: var(--wp--preset--font-size--small);
  outline: none;
}
.bgm-newsletter__form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.55);
}
.bgm-newsletter__form button[type="submit"] {
  background: var(--wp--preset--color--gold);
  color: #fff;
  border: none;
  padding: 0.875rem 1.5rem;
  font-weight: 700;
  font-size: var(--wp--preset--font-size--small);
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
  white-space: nowrap;
}
.bgm-newsletter__form button[type="submit"]:hover {
  background: #c8922a;
}
.bgm-newsletter__disclaimer {
  text-align: center;
  font-size: var(--wp--preset--font-size--x-small);
  color: rgba(255,255,255,0.5);
  margin-top: 0.75rem;
}

/* ── Filter chips ────────────────────────────────────────────────────────── */
.bgm-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.bgm-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border-radius: var(--wp--custom--radius--pill);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border-2);
  color: var(--wp--preset--color--ink);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  text-decoration: none;
}
.bgm-chip:hover,
.bgm-chip.is-active {
  background: var(--wp--preset--color--primary);
  color: #fff;
  border-color: var(--wp--preset--color--primary);
}

/* ── Article styles ──────────────────────────────────────────────────────── */
.entry-content > p:first-of-type::first-letter {
  font-family: var(--wp--preset--font-family--display);
  font-size: 4em;
  line-height: 0.8;
  float: left;
  margin: 0.05em 0.1em 0 0;
  color: var(--wp--preset--color--primary);
}

/* Pull quote */
.wp-block-pullquote {
  border-left: 4px solid var(--wp--preset--color--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
}
.wp-block-pullquote blockquote {
  margin: 0;
}
.wp-block-pullquote cite {
  font-size: var(--wp--preset--font-size--x-small);
  color: var(--wp--preset--color--muted);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Focus styles (WCAG AA) ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Query pagination ────────────────────────────────────────────────────── */
.wp-block-query-pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}
.wp-block-query-pagination a,
.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--wp--preset--color--border-2);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
  text-decoration: none;
  color: var(--wp--preset--color--ink);
  transition: background 0.18s, color 0.18s;
}
.wp-block-query-pagination-numbers .current,
.wp-block-query-pagination a:hover,
.wp-block-query-pagination-numbers a:hover {
  background: var(--wp--preset--color--primary);
  color: #fff;
  border-color: var(--wp--preset--color--primary);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bgm-hero .wp-block-columns {
    flex-direction: column;
  }
  .bgm-hero__panel {
    min-height: 280px;
    margin-top: 2rem;
  }
  .wp-block-query-post-template.wp-block-post-template {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  .wp-block-query-post-template.wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
  .bgm-newsletter__form .bgm-newsletter__row {
    flex-direction: column;
    border-radius: var(--wp--custom--radius--card);
  }
  .bgm-newsletter__form button[type="submit"] {
    border-radius: 0 0 var(--wp--custom--radius--card) var(--wp--custom--radius--card);
  }
}
