/* === Byakuren-do — jewelry site styles ===
 * Loaded only on Byakuren-do pages (home/collection/story/stone-guide/contact/faq/journal/shipping/legal)
 * via tf_premium_is_byakuren_page() in the plugin PHP.
 */

/* ---------- 1. Hide active theme chrome (auto site title / nav / footer / template parts) ---------- */
.wp-site-blocks > header,
.wp-site-blocks > .wp-block-template-part:first-child,
header.wp-block-template-part,
header.site-header,
#masthead,
#site-header,
main > header,
main > .wp-block-template-part {
  display: none !important;
}
.wp-site-blocks > hr,
main > hr:first-child,
a.skip-link,
.skip-link {
  display: none !important;
}
.wp-site-blocks > main > .wp-block-group:not(.entry-content):not(.byk-header):not(.byk-footer),
.wp-site-blocks > main > .wp-block-spacer,
.wp-site-blocks > main > hr,
.wp-site-blocks > main > .wp-block-separator {
  display: none !important;
}
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.wp-site-blocks {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.wp-site-blocks > main > .entry-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}
.wp-block-page-list,
nav.wp-block-navigation:not(.byk-nav-links nav) {
  display: none !important;
}
.entry-title,
.wp-block-post-title,
h1.entry-header__title,
.post-title,
header.entry-header,
h1.wp-block-site-title {
  display: none !important;
}
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child,
footer.wp-block-template-part:not(.byk-footer),
footer.site-footer,
#colophon:not(.byk-footer) {
  display: none !important;
}
.wp-site-blocks > main,
.entry-content,
.site-main,
#main,
article.page {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.entry-content > * {
  max-width: none !important;
}

/* ---------- 2. Body & global typography ---------- */
body {
  background: #FAF7F2 !important;
  color: #1A1816 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html { scroll-behavior: smooth; }

/* ---------- 3. Sticky header ---------- */
.byk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92) !important;
}

/* ---------- 4. Links ---------- */
.byk-nav-link a, .byk-footer a {
  text-decoration: none !important;
  color: inherit !important;
  transition: color 0.25s ease;
}
.byk-nav-link a:hover, .byk-footer a:hover {
  color: #9C7B3F !important;
}

/* ---------- 5. Image hover micro-interaction ---------- */
.byk-product-card .wp-block-image,
.byk-cat-card .wp-block-image {
  overflow: hidden;
}
.byk-product-card .wp-block-image img,
.byk-cat-card .wp-block-image img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.byk-product-card:hover .wp-block-image img,
.byk-cat-card:hover .wp-block-image img {
  transform: scale(1.04);
}

/* ---------- 6. Card hover lift ---------- */
.byk-product-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s ease;
}
.byk-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(11, 10, 8, 0.18);
}

/* ---------- 7. Buttons ---------- */
.wp-block-button .wp-block-button__link {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px rgba(11, 10, 8, 0.35);
}

/* ---------- 8. Cover-inner hero (the b_cover helper output) ---------- */
.byk-cover-inner {
  position: relative;
  border-radius: 4px;
}

/* ---------- 9. Stone grid circle images ---------- */
.byk-stone-img img,
figure.byk-stone-img img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- 10. Section spacing on small screens ---------- */
@media (max-width: 768px) {
  .byk-header {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .byk-nav-links {
    margin-top: 0.5rem !important;
  }
  .byk-nav-link a {
    font-size: 0.75rem !important;
  }
}

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
