/* Golden Bloom Bake: component styles from the design system.
   Every value comes from tokens.css (--surface, --brand, --space-24 …). */

.gbb-root, .gbb-root * { box-sizing: border-box; }
.gbb-root {
  background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
.gbb-root img { max-width: 100%; display: block; }

/* shared focus ring: 2px solid brand, 3px offset */
.gbb-root :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.gbb-eyebrow {
  font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); margin: 0;
}
.gbb-meta {
  font-family: var(--font-sans); font-size: 12px; line-height: 18px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 0;
}

/* ---------- Button ---------- */
.gbb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  min-height: 48px; padding: 0 var(--space-24);
  font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: .04em;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}
.gbb-btn--primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.gbb-btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.gbb-btn--secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.gbb-btn--secondary:hover { background: var(--brand); color: var(--on-brand); }
.gbb-btn--text {
  min-height: auto; padding: 0; color: var(--brand); background: none;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.gbb-btn--text:hover { color: var(--ink); }
.gbb-btn--sm { min-height: 40px; padding: 0 var(--space-16); font-size: 14px; }
.gbb-btn[disabled], .gbb-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---------- Category colours ---------- */
.gbb-cat--croissant { --gbb-cat: var(--cat-croissant); }
.gbb-cat--danish    { --gbb-cat: var(--cat-danish); }
.gbb-cat--dessert   { --gbb-cat: var(--cat-dessert); }
.gbb-cat--petit     { --gbb-cat: var(--cat-petit); }
.gbb-cat--salt-bread { --gbb-cat: var(--cat-salt-bread); }

/* ---------- CategoryStrip (the catalog tab strip) ---------- */
.gbb-catstrip { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.gbb-catstrip__tab {
  flex: 1 1 0; min-width: 120px; display: block;
  padding: var(--space-8) var(--space-16); background: var(--gbb-cat);
  color: var(--on-category); text-decoration: none; text-align: center;
  font-family: var(--font-sans); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  border: 0; border-bottom: 3px solid transparent; cursor: pointer;
}
.gbb-catstrip__tab:hover { border-bottom-color: rgba(59, 42, 30, .35); }
.gbb-catstrip__tab[aria-current="true"], .gbb-catstrip__tab[aria-pressed="true"] { border-bottom-color: var(--on-category); }
.gbb-catstrip--all .gbb-catstrip__tab--all { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }

/* ---------- Chip (single category label) ---------- */
.gbb-chip {
  display: inline-block; padding: 2px var(--space-8); background: var(--gbb-cat); color: var(--on-category);
  font-family: var(--font-sans); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--radius-none);
}

/* ---------- Badge ---------- */
.gbb-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: var(--radius-round); border: 1px solid var(--brand); color: var(--brand); background: var(--surface-raised);
  font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.gbb-badge--solid { background: var(--brand); color: var(--on-brand); }
.gbb-badge--soon { border-color: var(--ink); color: var(--ink); background: var(--surface-raised); }

/* ---------- InitialTitle ---------- */
.gbb-title {
  font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 0;
  font-size: 36px; line-height: 42px; isolation: isolate;
}
.gbb-title--card { font-size: 26px; line-height: 32px; }
.gbb-title--hero { font-size: 52px; line-height: 58px; font-weight: 500; }
.gbb-title__initial { position: relative; display: inline-block; }
.gbb-title__initial::before {
  content: ""; position: absolute; z-index: -1;
  left: -0.1em; top: 22%; width: 0.7em; height: 64%;
  background: var(--gbb-cat, var(--cat-croissant));
}

/* ---------- ProductCard ---------- */
.gbb-product {
  display: flex; flex-direction: column; background: var(--surface-raised);
  border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden;
  transition: box-shadow .2s ease-out, transform .2s ease-out;
}
.gbb-product:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.gbb-product__media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-linen); }
.gbb-product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease-out; }
.gbb-product:hover .gbb-product__media img { transform: scale(1.03); }
.gbb-product__media .gbb-chip { position: absolute; top: 0; left: 0; }
.gbb-product__media .gbb-badge { position: absolute; top: var(--space-12); right: var(--space-12); }
.gbb-product__body { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-24); flex: 1; }
.gbb-product__order { display: flex; flex-direction: column; gap: var(--space-4); }
.gbb-product__order .gbb-meta:first-child { color: var(--rose-ink); }
.gbb-product__desc { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.gbb-product__foot {
  margin-top: auto; padding-top: var(--space-12); border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-16); font-size: 14px; line-height: 22px; color: var(--ink);
}
.gbb-product__foot span { white-space: nowrap; }
.gbb-product__foot b { font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
  .gbb-product, .gbb-product__media img { transition: none; }
  .gbb-product:hover { transform: none; }
  .gbb-product:hover .gbb-product__media img { transform: none; }
}

/* ---------- PromiseList ---------- */
.gbb-promise { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.gbb-promise li { padding: var(--space-24) var(--space-24); text-align: center; }
.gbb-promise li + li { border-left: 1px solid var(--hairline); }
.gbb-promise__big { display: block; font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 600; color: var(--ink); }
.gbb-promise__small { display: block; margin-top: var(--space-4); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
@media (max-width: 640px) {
  .gbb-promise { grid-template-columns: 1fr; }
  .gbb-promise li + li { border-left: 0; border-top: 1px solid var(--hairline); }
}

/* ---------- SiteHeader ---------- */
.gbb-header { background: var(--surface); border-bottom: 1px solid var(--hairline); }
.gbb-header__inner {
  max-width: var(--container-max); margin: 0 auto; height: var(--header-height);
  padding: 0 var(--space-32); display: flex; align-items: center; gap: var(--space-32);
}
.gbb-header__logo { display: inline-flex; align-items: center; gap: var(--space-12); text-decoration: none; flex-shrink: 0; }
.gbb-header__logo .gbb-mark { width: 40px; height: auto; }
.gbb-header__logo .gbb-wordmark { width: 196px; height: auto; }
.gbb-nav { display: flex; gap: var(--space-32); margin: 0 0 0 auto; padding: 0; list-style: none; }
.gbb-nav a {
  font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: .04em; color: var(--ink); text-decoration: none;
  padding: var(--space-8) 0; border-bottom: 1px solid transparent;
}
.gbb-nav a:hover { color: var(--brand); }
.gbb-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.gbb-header__menu { display: none; }
@media (max-width: 860px) {
  .gbb-header__inner { height: 64px; padding: 0 var(--space-16); gap: var(--space-12); }
  .gbb-header__logo .gbb-wordmark { width: 150px; }
  .gbb-header__logo .gbb-mark { width: 32px; }
  .gbb-nav, .gbb-header .gbb-btn--primary { display: none; }
  .gbb-header__menu { display: inline-flex; margin-left: auto; }
}

/* ---------- Hero ---------- */
.gbb-hero { background: var(--surface); }
.gbb-hero__inner {
  max-width: var(--container-max); margin: 0 auto; padding: var(--space-96) var(--space-32);
  display: grid; grid-template-columns: 5fr 6fr; gap: var(--space-64); align-items: center;
}
.gbb-hero__copy { display: flex; flex-direction: column; gap: var(--space-24); }
.gbb-hero__title { margin: 0; font-family: var(--font-display); font-size: 72px; line-height: 76px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.gbb-hero__title em { font-style: italic; color: var(--bronze); }
.gbb-hero__lead { margin: 0; font-size: 18px; line-height: 30px; color: var(--ink-muted); max-width: 30em; }
.gbb-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-24); margin-top: var(--space-8); }
.gbb-hero__photo { position: relative; margin: 0; }
.gbb-hero__img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-none); }
.gbb-tape { position: absolute; width: 132px; height: auto; pointer-events: none; }
.gbb-tape--tl { top: -20px; left: 28px; transform: rotate(-5deg); }
.gbb-tape--br { bottom: -18px; right: 28px; transform: rotate(4deg); }
@media (max-width: 860px) {
  .gbb-hero__inner { grid-template-columns: 1fr; padding: var(--space-64) var(--space-16); gap: var(--space-48); }
  .gbb-hero__title { font-size: 48px; line-height: 52px; }
  .gbb-tape { width: 96px; }
}

/* ---------- Section heading ---------- */
.gbb-section-head { display: flex; flex-direction: column; gap: var(--space-12); max-width: var(--measure); }
.gbb-section-head h2 { margin: 0; font-family: var(--font-display); font-size: 52px; line-height: 58px; font-weight: 500; color: var(--ink); }
.gbb-section-head p { margin: 0; font-size: 18px; line-height: 30px; color: var(--ink-muted); }
.gbb-section-head--center { margin: 0 auto; text-align: center; align-items: center; }
@media (max-width: 640px) { .gbb-section-head h2 { font-size: 38px; line-height: 44px; } }

/* ---------- InquiryForm ---------- */
.gbb-form {
  background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: var(--space-48);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-24) var(--space-24);
}
.gbb-form__full { grid-column: 1 / -1; }
.gbb-field { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
.gbb-field label, .gbb-field legend { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); padding: 0; }
.gbb-field .gbb-req { color: var(--rose-ink); }
.gbb-input, .gbb-select, .gbb-textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 24px; color: var(--ink);
  background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 11px var(--space-12);
}
.gbb-textarea { min-height: 128px; resize: vertical; }
.gbb-input::placeholder, .gbb-textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.gbb-input:focus-visible, .gbb-select:focus-visible, .gbb-textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.gbb-hint { font-size: 14px; line-height: 22px; color: var(--ink-muted); margin: 0; }
.gbb-checks { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-8); }
.gbb-checks__row { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.gbb-check { position: relative; display: inline-flex; }
.gbb-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gbb-check span {
  display: inline-flex; align-items: center; gap: var(--space-8); padding: var(--space-8) var(--space-12);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; color: var(--ink); cursor: pointer; background: var(--surface-raised);
}
.gbb-check span::before { content: ""; width: 10px; height: 10px; background: var(--gbb-cat, var(--brand)); flex-shrink: 0; }
.gbb-check input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gbb-check input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; }
.gbb-form__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-16); padding-top: var(--space-8); }
@media (max-width: 640px) { .gbb-form { grid-template-columns: 1fr; padding: var(--space-24); } }

/* ---------- HandmadeNote ---------- */
.gbb-note {
  display: flex; align-items: flex-start; gap: var(--space-12); margin: 0;
  font-size: 14px; line-height: 22px; color: var(--ink-muted);
  padding: var(--space-12) 0; border-top: 1px solid var(--hairline);
}
.gbb-note img { width: 22px; height: auto; flex-shrink: 0; margin-top: 1px; }

/* ---------- SiteFooter (render inside data-theme="espresso") ---------- */
.gbb-footer { background: var(--surface); color: var(--ink); }
.gbb-footer__inner {
  max-width: var(--container-max); margin: 0 auto; padding: var(--space-64) var(--space-32) var(--space-32);
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-48);
}
.gbb-footer__seal { position: relative; width: 96px; height: 118px; }
.gbb-footer__seal .gbb-stamp { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.gbb-footer__seal .gbb-mark { position: absolute; left: 22px; top: 32px; width: 52px; }
.gbb-footer h3 { margin: 0 0 var(--space-12); font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.gbb-footer p, .gbb-footer li { margin: 0; font-size: 14px; line-height: 24px; color: var(--ink); }
.gbb-footer ul { margin: 0; padding: 0; list-style: none; }
.gbb-footer a { color: var(--brand); text-decoration: none; }
.gbb-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.gbb-footer .gbb-footer__name { font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 600; color: var(--copper); margin: var(--space-16) 0 var(--space-4); }
.gbb-footer .gbb-footer__tag { color: var(--ink-muted); font-style: italic; }
.gbb-footer__legal {
  max-width: var(--container-max); margin: 0 auto; padding: var(--space-24) var(--space-32);
  border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-12);
  font-size: 12px; line-height: 18px; color: var(--ink-muted);
}
@media (max-width: 860px) {
  .gbb-footer__inner { grid-template-columns: 1fr 1fr; padding: var(--space-48) var(--space-16) var(--space-24); gap: var(--space-32); }
  .gbb-footer__legal { padding: var(--space-24) var(--space-16); }
}
@media (max-width: 520px) { .gbb-footer__inner { grid-template-columns: 1fr; } }
