/* Homepage-only craft styling for Lava Beads Australia. Scoped to body.home. */
@font-face {
  font-family: "Caveat Craft";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/wp-content/mu-plugins/lavabeads-home-craft/fonts/caveat-latin-700-normal.woff2") format("woff2");
}

body.home {
  --lb-black: #1c1612;
  --lb-ink: #2b2118;
  --lb-sand: #f3ead9;
  --lb-sand-deep: #e8d5b5;
  --lb-paper: #faf4ea;
  --lb-terracotta: #c0563a;
  --lb-terracotta-deep: #9a3f28;
  --lb-sage: #6f815f;
  --lb-sage-deep: #556447;
  --lb-cream: #fffaf3;
  background-color: var(--lb-sand);
  background-image: url("/wp-content/mu-plugins/lavabeads-home-craft/assets/paper.webp");
  background-repeat: repeat;
  color: var(--lb-ink);
}

body.home .site,
body.home #page,
body.home .site-content,
body.home .content-area,
body.home .site-main,
body.home .col-full {
  background-color: transparent;
}

/* Header: warm bar, handwritten wordmark. */
body.home .col-full-nav,
body.home .header-4-container,
body.home .menu-primary,
body.home header.site-header,
body.home .main-header,
body.home #masthead {
  background-color: var(--lb-paper) !important;
  background-image: url("/wp-content/mu-plugins/lavabeads-home-craft/assets/paper.webp");
}

body.home .site-branding .site-title,
body.home .site-branding .site-title a,
body.home .logo-text,
body.home .site-header .site-title a {
  font-family: "Caveat Craft", "Segoe UI", Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--lb-ink);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

body.home .main-navigation a,
body.home .primary-navigation a,
body.home #menu-primary a {
  color: var(--lb-ink);
}

body.home .main-navigation a:hover,
body.home .primary-navigation a:hover {
  color: var(--lb-terracotta-deep);
}

/* Handwritten display headings only; body text stays the theme/system stack. */
body.home h1,
body.home h2,
body.home h3,
body.home h4,
body.home .entry-title,
body.home .woocommerce-loop-product__title,
body.home .wp-block-heading,
body.home .lb-aiss-home h2,
body.home .lb-aiss-q {
  font-family: "Caveat Craft", "Segoe UI", Georgia, serif;
  font-weight: 700;
  color: var(--lb-ink);
  letter-spacing: 0.01em;
  line-height: 1.15;
}

body.home h2,
body.home .wp-block-heading {
  font-size: clamp(1.85rem, 2.6vw, 2.4rem);
}

body.home,
body.home p,
body.home li,
body.home td,
body.home th,
body.home input,
body.home button,
body.home a.button,
body.home .button {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Hide the unhelpful visible "Home" page title if the theme shows it; the H1 remains in the HTML. */
body.home header.entry-header {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* AISS block becomes a warm hero card, answer text stays first in the DOM. */
body.home .lb-aiss-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.2rem 1.35rem;
  background: var(--lb-cream);
  background-image: url("/wp-content/mu-plugins/lavabeads-home-craft/assets/paper.webp");
  border: 1px solid #e2d3bc;
  border-radius: 18px;
  box-shadow: 0 1px 0 #fff8ee inset, 0 8px 24px rgba(44, 33, 24, 0.06);
}

body.home .lb-craft-hero-photo {
  margin: 0.25rem 0 0.5rem;
  position: relative;
}

body.home .lb-craft-hero-photo a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(44, 33, 24, 0.12);
}

body.home .lb-craft-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 462;
  object-fit: cover;
  border-radius: 16px;
  background: var(--lb-sand-deep);
}

body.home .lb-craft-badge {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  display: inline-block;
  padding: 0.28rem 0.7rem 0.34rem;
  background: var(--lb-cream);
  color: var(--lb-ink);
  border: 1.5px dashed var(--lb-terracotta);
  border-radius: 4px 12px 4px 12px;
  font-family: "Caveat Craft", "Segoe UI", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  box-shadow: 1px 2px 0 rgba(44, 33, 24, 0.08);
  pointer-events: none;
}

body.home .lb-aiss-answer {
  margin: 0;
  line-height: 1.55;
  font-size: 1.05rem;
}

body.home .lb-aiss-fresh {
  margin: 0;
  color: #5c5146;
}

body.home .lb-aiss-cta {
  color: var(--lb-terracotta-deep);
  font-weight: 600;
}

body.home .lb-aiss-home table,
body.home .lb-aiss-facts {
  width: 100%;
  border-collapse: collapse;
  background: var(--lb-cream);
  border-radius: 10px;
  overflow: hidden;
}

body.home .lb-aiss-home thead th,
body.home .lb-aiss-facts thead th {
  background: var(--lb-ink) !important;
  color: var(--lb-sand) !important;
  border-color: var(--lb-ink);
}

body.home .lb-aiss-home th,
body.home .lb-aiss-home td,
body.home .lb-aiss-facts th,
body.home .lb-aiss-facts td {
  border-color: #e2d3bc;
}

@media (min-width: 782px) {
  body.home .lb-aiss-home {
    grid-template-columns: 1fr minmax(240px, 38%);
    align-items: start;
    padding: 1.35rem 1.4rem 1.5rem;
  }
  body.home .lb-aiss-answer { grid-column: 1; grid-row: 1; }
  body.home .lb-aiss-fresh { grid-column: 1; grid-row: 2; }
  body.home .lb-craft-hero-photo {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin: 0;
  }
  body.home .lb-aiss-home h2,
  body.home .lb-aiss-home table,
  body.home .lb-aiss-home p.lb-aiss-fresh + h2,
  body.home .lb-craft-divider {
    grid-column: 1 / -1;
  }
}

/* Hand-drawn divider. */
body.home .lb-craft-divider {
  display: block;
  width: 100%;
  height: 22px;
  margin: 0.4rem 0 1rem;
  border: 0;
  color: var(--lb-terracotta);
}

/* Existing dark CTA band becomes a warm terracotta/sand panel. */
body.home .entry-content > .wp-block-group.has-background {
  background-color: #7a3b28 !important;
  background-image: url("/wp-content/mu-plugins/lavabeads-home-craft/assets/paper.webp");
  background-blend-mode: multiply;
  border-radius: 18px;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

body.home .entry-content > .wp-block-group.has-background h2,
body.home .entry-content > .wp-block-group.has-background p {
  color: #fff8f2 !important;
}

body.home .wp-block-button__link.has-vivid-green-cyan-background-color,
body.home .wp-block-button__link.has-background.has-vivid-green-cyan-background-color {
  background-color: var(--lb-sage) !important;
  color: #fff !important;
  border-radius: 999px;
}

body.home .wp-block-button__link.has-white-background-color {
  background-color: var(--lb-cream) !important;
  color: var(--lb-ink) !important;
  border-radius: 999px;
  border: 1px solid var(--lb-sand-deep);
}

/* Category links as craft tags. */
body.home .entry-content .wp-block-columns .wp-block-paragraph a,
body.home .entry-content .wp-block-column .has-text-align-center a {
  display: inline-block;
  padding: 0.35rem 0.85rem 0.4rem;
  background: var(--lb-cream);
  border: 1.5px dashed var(--lb-sage);
  border-radius: 4px 14px 4px 14px;
  color: var(--lb-ink);
  text-decoration: none;
  font-family: "Caveat Craft", "Segoe UI", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  box-shadow: 1px 2px 0 rgba(44, 33, 24, 0.06);
}

body.home .entry-content .wp-block-columns .wp-block-paragraph a:hover,
body.home .entry-content .wp-block-column .has-text-align-center a:hover {
  border-color: var(--lb-terracotta);
  color: var(--lb-terracotta-deep);
}

/* Product cards: soft rounded craft-tag look. */
body.home ul.products li.product {
  background: var(--lb-cream);
  background-image: url("/wp-content/mu-plugins/lavabeads-home-craft/assets/paper.webp");
  border: 1px solid #e2d3bc;
  border-radius: 16px;
  padding: 0.65rem 0.65rem 0.9rem;
  box-shadow: 0 6px 16px rgba(44, 33, 24, 0.06);
}

body.home ul.products li.product img,
body.home ul.products li.product .woocommerce-image__wrapper,
body.home ul.products li.product .shoptimizer-plp-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
}

body.home ul.products li.product .woocommerce-image__wrapper img {
  border-radius: 12px;
}

body.home .sale-item.product-label,
body.home span.onsale,
body.home .product-label.type-bubble {
  background: var(--lb-terracotta) !important;
  color: #fff !important;
  border-radius: 3px 11px 3px 11px !important;
  font-family: "Caveat Craft", "Segoe UI", Georgia, serif !important;
  font-weight: 700;
  font-size: 1rem !important;
  line-height: 1;
  padding: 0.28rem 0.5rem 0.32rem !important;
  box-shadow: 1px 1px 0 rgba(44, 33, 24, 0.15);
}

body.home ul.products li.product .button,
body.home ul.products li.product a.button,
body.home ul.products li.product .add_to_cart_button,
body.home ul.products li.product .product_type_simple {
  background-color: var(--lb-sage) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 600;
}

body.home ul.products li.product .button:hover,
body.home ul.products li.product a.button:hover {
  background-color: var(--lb-sage-deep) !important;
}

/* Why shop / about cards if they use columns or groups later. */
body.home .entry-content h2.has-text-align-center {
  margin-top: 1.2rem;
}

/* Footer stays readable on sand. */
body.home .site-footer {
  background-color: #efe4d2;
  background-image: url("/wp-content/mu-plugins/lavabeads-home-craft/assets/paper.webp");
}

/* Do not restyle the shop chat control. */
body.home [class*="tenner-chat"],
body.home [id*="tenner-chat"],
body.home .lb-chat-launcher {
  /* left alone */
}
