/*
Theme Name: Tinkering Bee Bakery
Theme URI: https://tinkeringbeebakery.com
Author: Tinkering Bee Bakery
Author URI: https://tinkeringbeebakery.com
Description: Block theme for Tinkering Bee Bakery, Colorado Springs. High-contrast black, goldenrod, yellow, gray and white palette with a serif voice. Includes a ready-built home page, header and footer, and reusable patterns for favorites, custom orders and ordering notes.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tinkering-bee-bakery
Tags: full-site-editing, block-patterns, one-column, custom-colors, custom-logo, custom-menu, editor-style, food-and-drink, blog
*/

/* ---------------------------------------------------------------
   Almost everything is handled by theme.json. This file only adds
   the few touches blocks cannot express on their own.
   --------------------------------------------------------------- */

/* Layout utilities used by the patterns, so block markup stays clean */
.tbb-section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.tbb-section--tight { padding-top: 2.25rem; padding-bottom: 2.25rem; }
.tbb-stack-sm > * + * { margin-top: 0.6rem; }
.tbb-max-56 { max-width: 56ch; }
.tbb-max-62 { max-width: 62ch; }
.tbb-pad-card { padding: 1.75rem; }
.tbb-muted { color: var(--wp--preset--color--gray); }
.tbb-goldenrod-text { color: var(--wp--preset--color--goldenrod); }

/* Square logo — never crop the bee seal into a circle */
.wp-block-site-logo img,
.tbb-logo img {
  border-radius: 4px !important;
  display: block;
}

/* Uppercase tracked label, used for eyebrows and small captions */
.tbb-label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Header */
.tbb-header {
  border-bottom: 1px solid var(--wp--preset--color--hairline);
}
.tbb-nav a {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.9375rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.tbb-nav a:hover {
  border-bottom-color: var(--wp--preset--color--goldenrod);
}
.tbb-nav .wp-block-navigation-item.current-menu-item a,
.tbb-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--wp--preset--color--goldenrod);
}

@media (max-width: 781px) {
  .tbb-header .wp-block-site-title { font-size: 1.1875rem; }
  .tbb-header .tbb-nav { justify-content: flex-start; }
  .tbb-section { padding-top: 3rem; padding-bottom: 3rem; }
  .tbb-pad-card { padding: 1.25rem; }
}

/* Hero — black panel with a goldenrod glow behind it */
.tbb-hero {
  position: relative;
  overflow: hidden;
}
.tbb-hero::after {
  content: "";
  position: absolute;
  width: 30rem;
  height: 30rem;
  right: -12rem;
  top: -10rem;
  border-radius: 50%;
  background: var(--wp--preset--color--goldenrod);
  opacity: 0.13;
  filter: blur(24px);
  pointer-events: none;
}
.tbb-hero > * {
  position: relative;
  z-index: 1;
}

/* Cards */
.tbb-card {
  border: 1px solid var(--wp--preset--color--hairline);
  border-radius: 14px;
  background: var(--wp--preset--color--white);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tbb-card:hover {
  transform: translateY(-2px);
  border-color: var(--wp--preset--color--goldenrod);
  box-shadow: 0 10px 24px rgba(18, 18, 18, 0.08);
}
.tbb-card--dark {
  background: var(--wp--preset--color--black);
  border-color: #2c2c2c;
}
.tbb-card--dark:hover {
  border-color: var(--wp--preset--color--goldenrod);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* Icon tile */
.tbb-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--wp--preset--color--yellow);
  color: var(--wp--preset--color--black);
}
.tbb-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.tbb-card--dark .tbb-icon {
  background: var(--wp--preset--color--goldenrod);
}

/* Goldenrod rule used above section headings */
.tbb-rule {
  width: 3.5rem;
  height: 3px;
  background: var(--wp--preset--color--goldenrod);
  border: 0;
  margin: 0;
}

/* Facts strip */
.tbb-facts {
  border-top: 1px solid var(--wp--preset--color--hairline);
  border-bottom: 1px solid var(--wp--preset--color--hairline);
}
.tbb-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
@media (max-width: 900px) { .tbb-facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tbb-facts-grid { grid-template-columns: 1fr; } }
.tbb-facts-grid > div { margin: 0; }
.tbb-facts dt {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--goldenrod);
  margin: 0 0 0.4rem;
}
.tbb-facts dd {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.4;
}
.tbb-facts dd small {
  display: block;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.8125rem;
  color: var(--wp--preset--color--gray);
  margin-top: 0.25rem;
}

/* Notes list with goldenrod markers */
.tbb-notes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tbb-notes li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
}
.tbb-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wp--preset--color--goldenrod);
}

/* Light cards keep dark type even inside a dark section */
.tbb-card:not(.tbb-card--dark),
.tbb-card:not(.tbb-card--dark) p,
.tbb-card:not(.tbb-card--dark) li,
.tbb-card:not(.tbb-card--dark) h2,
.tbb-card:not(.tbb-card--dark) h3 {
  color: var(--wp--preset--color--black);
}
.tbb-card:not(.tbb-card--dark) .tbb-muted,
.tbb-card:not(.tbb-card--dark) .tbb-muted p {
  color: var(--wp--preset--color--gray);
}
.tbb-card:not(.tbb-card--dark) a {
  color: var(--wp--preset--color--black);
  text-decoration: underline;
  text-decoration-color: var(--wp--preset--color--goldenrod);
  text-underline-offset: 3px;
}

/* Dark sections: keep type legible */
.tbb-dark,
.tbb-dark p,
.tbb-dark li {
  color: var(--wp--preset--color--white);
}
.tbb-dark .tbb-muted,
.tbb-dark .tbb-muted p {
  color: #c9c9c9;
}
.tbb-dark a {
  color: var(--wp--preset--color--yellow);
}
/* Buttons keep their own colors inside dark sections */
.tbb-dark .wp-element-button,
.tbb-dark .wp-block-button__link {
  color: var(--wp--preset--color--black);
}
.tbb-dark .is-style-outline .wp-element-button {
  color: var(--wp--preset--color--white);
}

/* Footer */
.tbb-footer a {
  color: var(--wp--preset--color--yellow);
}
.tbb-footer .tbb-muted {
  color: #b9b9b9;
}

/* Accessible focus ring everywhere */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--wp--preset--color--goldenrod);
  outline-offset: 2px;
}

/* Print */
@media print {
  .tbb-nav,
  .wp-block-buttons {
    display: none !important;
  }
  .tbb-dark,
  .tbb-card--dark {
    background: #fff !important;
    color: #000 !important;
  }
}

/* ---------------------------------------------------------------
   Additions for interior pages (Menu, Q&A, Weekly Bakes, Custom
   Orders, Dog Treats, Gifts, Terms & Policies, Holiday Presale).
   --------------------------------------------------------------- */

/* Footer sitemap list */
.tbb-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.tbb-footer-links li { margin: 0; }
.tbb-footer-links a { font-size: 0.9375rem; }

/* Category / section jump chips (Menu, Q&A) */
.tbb-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tbb-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--wp--preset--color--hairline);
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none !important;
  color: var(--wp--preset--color--black);
}
.tbb-chip:hover { border-color: var(--wp--preset--color--goldenrod); color: var(--wp--preset--color--black); }

/* Numbered step rows (How it works) */
.tbb-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .tbb-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tbb-steps { grid-template-columns: 1fr; } }
.tbb-step {
  border: 1px solid var(--wp--preset--color--hairline);
  border-radius: 14px;
  padding: 1.5rem;
}
.tbb-step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--wp--preset--color--goldenrod);
  color: var(--wp--preset--color--black);
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.tbb-step h4 {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
}
.tbb-step p {
  margin: 0;
  color: var(--wp--preset--color--gray);
  font-size: 0.9375rem;
}

/* Menu / pricing tables */
.tbb-table.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}
.tbb-table.wp-block-table th,
.tbb-table.wp-block-table td {
  border: 1px solid var(--wp--preset--color--hairline);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
}
.tbb-table.wp-block-table thead th {
  background: var(--wp--preset--color--black);
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tbb-table.wp-block-table tbody tr:nth-child(even) {
  background: var(--wp--preset--color--light-gray);
}
.tbb-table.wp-block-table td:last-child,
.tbb-table.wp-block-table th:last-child {
  color: var(--wp--preset--color--goldenrod);
  font-weight: 700;
  white-space: nowrap;
}

/* Menu category anchor offset so jump links clear the sticky-feel header */
.tbb-anchor { display: block; position: relative; top: -1.25rem; }

/* FAQ question / answer rhythm */
.tbb-faq-q {
  margin-bottom: 0.35rem !important;
}
.tbb-faq-a {
  margin-bottom: 2rem !important;
}
.tbb-faq-group + .tbb-faq-group {
  margin-top: 2.5rem;
}
