/*
Theme Name: Bubble Tea Buzz
Theme URI: https://bubbleteabuzz.com.au
Author: Bubble Tea Buzz
Description: Premium, mobile-first block theme for the Bubble Tea Buzz brand. Gold (#D4A017) and ink black (#111111), Poppins + Inter, with editable Drinks and Toppings content types.
 Version: 1.9.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: bubbleteabuzz
Tags: block-theme, full-site-editing, food-and-drink, one-column, custom-colors
*/

:root {
  --btb-gold: #d4a017;
  --btb-gold-light: #f0c14b;
  --btb-ink: #111111;
  --btb-cream: #fdf8ee;
}

body { -webkit-font-smoothing: antialiased; }

.btb-gold-text {
  background: linear-gradient(135deg, var(--btb-gold-light), var(--btb-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btb-card {
  border-radius: 1.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px -12px rgba(17, 17, 17, 0.18);
  transition: transform .4s ease, box-shadow .4s ease;
}
.btb-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(212, 160, 23, .4); }
.btb-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.btb-card__body { padding: 1.25rem; }
.btb-card__title { font-family: Poppins, system-ui, sans-serif; font-weight: 700; font-size: 1.05rem; margin: 0; }
.btb-card__desc { color: #5d5a53; font-size: .875rem; margin: .4rem 0 0; }
.btb-card__price { display: none !important; }

.btb-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.btb-badge {
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--btb-gold-light), var(--btb-gold));
  color: var(--btb-ink);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  margin-bottom: .6rem;
}

.btb-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.btb-filters a {
  border: 1px solid rgba(17,17,17,.12);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--btb-ink);
}
.btb-filters a.is-active { border-color: transparent; background: linear-gradient(135deg, var(--btb-gold-light), var(--btb-gold)); }

/* ---------- Header ---------- */
.btb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(212, 160, 23, .35);
  backdrop-filter: blur(10px);
}
.btb-header .wp-block-site-title a { color: var(--btb-cream); text-decoration: none; }
.btb-header .wp-block-navigation a { color: var(--btb-cream); text-decoration: none; opacity: .85; transition: opacity .25s ease, color .25s ease; }
.btb-header .wp-block-navigation a:hover,
.btb-header .wp-block-navigation .current-menu-item a { opacity: 1; color: var(--btb-gold-light); }
.btb-header .wp-block-site-logo img { border-radius: 999px; }
.admin-bar .btb-header { top: 32px; }

/* ---------- Hero / cover ---------- */
.wp-block-cover { border-radius: 0; }
.wp-block-cover .wp-block-heading { font-weight: 800; letter-spacing: -.02em; text-shadow: 0 6px 30px rgba(0,0,0,.55); }
.wp-block-cover p { max-width: 46ch; margin-inline: auto; opacity: .9; }
.wp-block-cover .wp-block-buttons { margin-top: 1.75rem; }

/* ---------- Rhythm ---------- */
.btb-front > .wp-block-heading,
.entry-content > .wp-block-heading { margin-top: 4.5rem; }
.btb-front > .wp-block-heading.has-text-align-center { margin-bottom: 2.25rem; }
main h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: -.02em; }
main h3 { letter-spacing: -.01em; }

/* ---------- Category cards ---------- */
.wp-block-columns .btb-card { margin-bottom: .75rem; }
.wp-block-columns .btb-card a { display: block; }
.wp-block-column > .wp-block-heading { text-align: center; font-size: 1.15rem; margin-top: .75rem; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: transform .25s ease, box-shadow .25s ease; }
.wp-element-button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(212,160,23,.75); }
.wp-block-button.is-style-outline .wp-block-button__link { border-color: currentColor; }

/* ---------- Footer ---------- */
.wp-block-template-part footer, footer.wp-block-group { margin-top: 5rem; }

@media (max-width: 781px) {
  .btb-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
  .wp-block-cover { min-height: 62vh !important; }
}

/* ---------- Desktop refinement ---------- */
main.wp-block-group > *,
.btb-front > * { --btb-sect-gap: clamp(3rem, 6vw, 6rem); }

.wp-block-cover.alignfull { min-height: 88vh !important; }
.wp-block-cover .wp-block-cover__inner-container { max-width: 1080px; margin-inline: auto; }

.btb-front > .wp-block-heading,
.entry-content > .wp-block-heading { margin-top: clamp(3.5rem, 7vw, 6.5rem); }

.wp-block-columns.alignwide { gap: 2rem; }
.wp-block-columns.alignwide .btb-card img { aspect-ratio: 4 / 5; }

@media (min-width: 1024px) {
  .btb-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
  .btb-card__body { padding: 1.5rem; }
  .btb-card__title { font-size: 1.15rem; }
  main h2 { font-size: clamp(2.25rem, 3.4vw, 3.25rem); }
  .btb-header .wp-block-navigation { gap: 2rem; }
  .btb-header .wp-block-navigation a { font-size: 1rem; }
  .wp-block-cover .wp-block-heading { font-size: clamp(3.25rem, 5.2vw, 5rem) !important; }
  .wp-block-cover p { font-size: 1.2rem; max-width: 54ch; }
}

@media (min-width: 782px) {
  /* keep the header on one row on tablets and up */
  .btb-header > .wp-block-group > .wp-block-group { flex-wrap: nowrap; }
}

/* footer polish */
footer.wp-block-group { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Live-site fixes ---------- */

/* Full-bleed hero even when the cover sits inside constrained post content */
.wp-block-cover.alignfull,
main .wp-block-cover.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.wp-block-cover .wp-block-cover__image-background {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.wp-block-cover.alignfull { min-height: 78vh !important; }
@media (min-width: 1024px) { .wp-block-cover.alignfull { min-height: 82vh !important; } }
@media (max-width: 781px) { .wp-block-cover.alignfull { min-height: 68vh !important; } }

/* Never let a missing thumbnail collapse a card */
.btb-card img { background: #f3efe6; min-height: 120px; }

/* Brand seal overlay on every card photo */
.btb-card { position: relative; }
.btb-card::after {
  content: "";
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background-image: var(--btb-seal);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(212, 160, 23, .55);
  box-shadow: 0 6px 18px -6px rgba(17, 17, 17, .5);
  pointer-events: none;
  z-index: 2;
}
@media (min-width: 1024px) { .btb-card::after { width: 4rem; height: 4rem; } }

/* Category cards on the homepage */
.wp-block-columns .btb-card::after { right: 1rem; }

/* =========================================================
   v1.3 — parity fixes with the design preview
   ========================================================= */

/* ---- Card photos: never let them stretch tall ---- */
.btb-card img,
.btb-card .wp-post-image,
.wp-block-columns .btb-card img {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  max-height: none;
  object-fit: cover !important;
  display: block;
}
.wp-block-columns .btb-card img { aspect-ratio: 4 / 5 !important; }

/* Card layout polish */
.btb-card { display: flex; flex-direction: column; height: 100%; }
.btb-card__body { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.btb-grid { align-items: stretch; }

/* ---- Sticky glass header (matches the preview) ---- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar header.wp-block-template-part { top: 32px; }
.btb-header {
  position: sticky !important;
  top: 0;
  z-index: 100;
  background-color: rgba(17, 17, 17, .82) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(212, 160, 23, .35);
}
.btb-header .wp-block-site-logo img {
  border-radius: 999px;
  border: 2px solid rgba(212, 160, 23, .65);
  box-shadow: 0 6px 20px -8px rgba(212, 160, 23, .8);
}

/* ---- Hero: full bleed, sane height, animated logo ---- */
.wp-block-cover.alignfull {
  min-height: 76vh !important;
  max-height: 820px;
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 781px) { .wp-block-cover.alignfull { min-height: 70vh !important; } }
.wp-block-cover.alignfull .wp-block-cover__inner-container { position: relative; z-index: 3; }

/* floating animated brand logo over the hero */
.wp-block-cover.alignfull::before,
.wp-block-cover.alignfull::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.wp-block-cover.alignfull::before {
  top: clamp(1.5rem, 6vh, 4rem);
  left: 50%;
  width: clamp(84px, 12vw, 132px);
  height: clamp(84px, 12vw, 132px);
  transform: translateX(-50%);
  background-image: var(--btb-seal);
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(212, 160, 23, .7);
  box-shadow: 0 18px 44px -14px rgba(212, 160, 23, .85);
  z-index: 4;
  animation: btb-float 5.5s ease-in-out infinite;
}
.wp-block-cover.alignfull::after {
  right: 8%;
  bottom: 12%;
  width: clamp(90px, 14vw, 190px);
  height: clamp(90px, 14vw, 190px);
  background: radial-gradient(circle, rgba(240,193,75,.45), rgba(240,193,75,0) 70%);
  filter: blur(4px);
  z-index: 1;
  animation: btb-float 8s ease-in-out infinite reverse;
}
@keyframes btb-float {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  50%      { transform: translateX(-50%) translateY(-16px) rotate(4deg); }
}
.wp-block-cover.alignfull::after { animation-name: btb-float-orb; }
@keyframes btb-float-orb {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-24px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .wp-block-cover.alignfull::before,
  .wp-block-cover.alignfull::after { animation: none; }
}

/* hero text sits under the logo badge */
.wp-block-cover.alignfull .wp-block-cover__inner-container { padding-top: clamp(4rem, 12vh, 7rem); }

/* ---- Menu page hero block ---- */
main > .wp-block-group.has-ink-background-color { box-shadow: 0 24px 60px -30px rgba(17,17,17,.6); }

/* ---- Cleaner rhythm ---- */
.btb-grid { margin-block: 1.5rem 3rem; }
main h2 { margin-top: clamp(3rem, 6vw, 5rem); }
.btb-card__price { display: none !important; }

/* =========================================================
   v1.5 — preview-match WordPress output
   These rules intentionally override the simpler block-theme defaults above.
   ========================================================= */

:root {
  --btb-radius: 1rem;
  --btb-radius-xl: 1.5rem;
  --btb-radius-2xl: 2rem;
  --btb-soft: #fff8ec;
  --btb-muted: #5d5a53;
  --btb-shadow-card: 0 8px 24px -12px rgba(17, 17, 17, .14);
  --btb-shadow-gold: 0 20px 50px -20px rgba(212, 160, 23, .62);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--btb-ink);
  font-family: Inter, system-ui, sans-serif !important;
}
body h1,
body h2,
body h3,
body h4,
.btb-font-display { font-family: Poppins, system-ui, sans-serif !important; }
body h1,
body h2,
body h3 { letter-spacing: 0; }

.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > main { margin-top: 0; }
.container, .btb-container {
  width: min(1280px, calc(100% - clamp(2rem, 6vw, 5rem)));
  margin-inline: auto;
}

/* Header: pill glass layout like the preview */
header.wp-block-template-part,
.btb-header-frame {
  position: fixed !important;
  inset: 0 0 auto 0;
  z-index: 999;
  padding: 1rem 0;
  background: transparent !important;
}
.admin-bar header.wp-block-template-part,
.admin-bar .btb-header-frame { top: 32px; }
.btb-header {
  width: min(1220px, calc(100% - clamp(1.5rem, 5vw, 4rem)));
  margin-inline: auto;
  border-radius: 999px;
  padding: .65rem .8rem !important;
  background: rgba(17, 17, 17, .74) !important;
  color: var(--btb-cream) !important;
  border: 1px solid rgba(212, 160, 23, .36) !important;
  box-shadow: 0 14px 40px -26px rgba(0,0,0,.85);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}
.btb-header > .wp-block-group { margin: 0 !important; }
.btb-header .wp-block-site-logo img,
.btb-header img.custom-logo {
  width: 48px !important;
  height: 48px !important;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, .7);
  box-shadow: 0 8px 20px -10px rgba(212, 160, 23, .95);
}
.btb-header .wp-block-site-title { margin: 0 !important; }
.btb-header .wp-block-site-title a {
  color: var(--btb-cream) !important;
  font-family: Poppins, system-ui, sans-serif !important;
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
}
.btb-header .wp-block-navigation__container { gap: .35rem !important; }
.btb-header .wp-block-navigation-item__content,
.btb-header .wp-block-navigation a {
  color: rgba(253, 248, 238, .82) !important;
  padding: .55rem .95rem !important;
  border-radius: 999px;
  font-family: Poppins, system-ui, sans-serif !important;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none !important;
}
.btb-header .current-menu-item > a,
.btb-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.btb-header .wp-block-navigation a:hover { color: var(--btb-cream) !important; }
.btb-header .current-menu-item > a::after,
.btb-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content::after {
  content: "";
  display: block;
  height: 2px;
  margin: .35rem .2rem 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--btb-gold-light), var(--btb-gold));
}
.btb-header-call a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--btb-gold-light), var(--btb-gold));
  color: var(--btb-ink) !important;
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

/* Preview-style hero and homepage sections */
.btb-hero-split {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(8rem, 13vw, 12rem) 0 clamp(5rem, 9vw, 8rem);
  background:
    radial-gradient(circle at 88% 25%, rgba(212,160,23,.28), transparent 28rem),
    radial-gradient(circle at 0 100%, rgba(212,160,23,.16), transparent 24rem),
    linear-gradient(135deg, #070604 0%, #111111 54%, #342704 100%);
  color: var(--btb-cream);
}
.btb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.btb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--btb-gold);
  font-family: Poppins, system-ui, sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.btb-eyebrow::before {
  content: "";
  width: .42rem;
  height: .42rem;
  border-radius: 999px;
  background: var(--btb-gold);
}
.btb-hero-title {
  margin: 1.15rem 0 0;
  max-width: 11ch;
  font-family: Poppins, system-ui, sans-serif !important;
  font-size: clamp(3.2rem, 7vw, 6.25rem);
  line-height: .96;
  font-weight: 800;
  color: var(--btb-cream);
}
.btb-gold-text { color: var(--btb-gold); background: none; -webkit-text-fill-color: currentColor; }
.btb-hero-copy { max-width: 42rem; margin-top: 1.45rem; color: rgba(253, 248, 238, .74); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.btb-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btb-button,
.btb-button-outline,
.wp-element-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.65rem;
  border-radius: 999px !important;
  font-family: Poppins, system-ui, sans-serif !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.btb-button,
.wp-element-button:not(.has-background) { background: linear-gradient(135deg, var(--btb-gold-light), var(--btb-gold)); color: var(--btb-ink) !important; }
.btb-button-outline { border: 1.5px solid rgba(253,248,238,.85); color: var(--btb-ink); background: var(--btb-cream); }
.btb-hero-media { position: relative; }
.btb-hero-photo {
  display: block;
  width: 100%;
  height: min(52vw, 620px);
  min-height: 440px;
  object-fit: cover;
  border-radius: var(--btb-radius-2xl);
  border: 1px solid rgba(212, 160, 23, .35);
  box-shadow: var(--btb-shadow-gold);
}
.btb-seal-large,
.btb-seal-small {
  position: absolute;
  border-radius: 999px;
  background-image: var(--btb-seal);
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(212,160,23,.7);
  box-shadow: 0 18px 44px -14px rgba(212,160,23,.88);
  animation: btb-float 5.5s ease-in-out infinite;
  pointer-events: none;
}
.btb-seal-large { width: clamp(86px, 10vw, 122px); height: clamp(86px, 10vw, 122px); top: -2.25rem; left: -2rem; }
.btb-seal-small { width: clamp(64px, 7vw, 92px); height: clamp(64px, 7vw, 92px); right: 1.2rem; bottom: 1.2rem; animation-delay: 1s; }
.btb-hero-orb { position: absolute; right: -2rem; top: 34%; width: 4.2rem; height: 4.2rem; border-radius: 999px; background: rgba(253,248,238,.9); animation: btb-float-orb 7s ease-in-out infinite; }

.btb-section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.btb-section-soft { background: var(--btb-soft); }
.btb-section-dark { background: #100b08; color: var(--btb-cream); }
.btb-section-head { text-align: center; max-width: 48rem; margin-inline: auto; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.btb-section-head h2,
.btb-section-title { margin: .55rem 0 0; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.02; font-weight: 800; }
.btb-section-head p { color: var(--btb-muted); }
.btb-section-dark .btb-section-head p,
.btb-section-dark p { color: rgba(253,248,238,.72); }

.btb-category-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.btb-category-card,
.btb-gallery-card { position: relative; overflow: hidden; border-radius: var(--btb-radius-xl); background: #fff; box-shadow: var(--btb-shadow-card); text-decoration: none; color: inherit; }
.btb-category-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform .7s ease; }
.btb-category-card:hover img { transform: scale(1.06); }
.btb-category-card::after,
.btb-gallery-card::after { top: auto; bottom: .9rem; right: .9rem; }
.btb-category-body { padding: 1.2rem; }
.btb-category-body h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.btb-category-body p { margin: .25rem 0 0; color: var(--btb-muted); font-size: .92rem; }

.btb-grid {
  width: min(1120px, calc(100% - clamp(2rem, 6vw, 5rem)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.55rem;
}
.btb-card {
  border-radius: var(--btb-radius-xl) !important;
  background: #fff;
  box-shadow: var(--btb-shadow-card);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.btb-card:hover { transform: translateY(-5px); box-shadow: var(--btb-shadow-gold); }
.btb-card > a { display: block; line-height: 0; }
.btb-card img,
.btb-card .wp-post-image,
.btb-card > a > img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  min-height: 0 !important;
}
.btb-card__body { padding: 1.15rem 1.2rem 1.25rem; gap: .3rem; }
.btb-card__title { font-size: 1rem; line-height: 1.18; }
.btb-card__title a { color: var(--btb-ink); text-decoration: none; }
.btb-card__desc { color: var(--btb-muted); line-height: 1.45; }
.btb-badge { align-self: flex-start; line-height: 1; }
.btb-card::after { width: 3.25rem; height: 3.25rem; top: .85rem; right: .85rem; }

.btb-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.btb-feature-card,
.btb-review-card {
  border: 1px solid rgba(212,160,23,.24);
  border-radius: var(--btb-radius-xl);
  background: rgba(255,255,255,.035);
  padding: 1.5rem;
}
.btb-feature-icon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 1rem; background: linear-gradient(135deg, var(--btb-gold-light), var(--btb-gold)); color: var(--btb-ink); font-weight: 800; }

.btb-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.btb-step { border: 1px solid rgba(17,17,17,.08); border-radius: var(--btb-radius-xl); padding: 1.35rem; background: #fff; }
.btb-step strong { display: block; color: var(--btb-gold); font-family: Poppins, system-ui, sans-serif; font-size: 2rem; line-height: 1; }

.btb-gallery-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; grid-auto-rows: 220px; gap: 1rem; }
.btb-gallery-card:first-child { grid-row: span 2; }
.btb-gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btb-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.btb-stars { color: var(--btb-gold); letter-spacing: .08em; }

.btb-page-hero {
  margin: 7rem auto 3rem;
  width: min(1120px, calc(100% - clamp(2rem, 6vw, 5rem)));
  border-radius: var(--btb-radius-2xl);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  background: radial-gradient(circle at 85% 20%, rgba(212,160,23,.25), transparent 24rem), linear-gradient(135deg, #111, #2a2318);
  color: var(--btb-cream);
  box-shadow: 0 24px 60px -30px rgba(17,17,17,.65);
  text-align: center;
}
.btb-page-hero h1 { margin: 0; font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 800; }
.btb-page-hero p { max-width: 46rem; margin: 1rem auto 0; color: rgba(253,248,238,.76); }
main.wp-block-group > .wp-block-post-title:first-child { display: none; }

/* Footer: richer preview-like footer */
.btb-footer {
  margin-top: 0 !important;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem !important;
  background: #100b08 !important;
  color: var(--btb-cream) !important;
}
.btb-footer a { color: inherit !important; text-decoration: none; }
.btb-footer-grid { display: grid; grid-template-columns: 1.35fr .75fr .9fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); }
.btb-footer .wp-block-site-logo img { width: 44px !important; height: 44px !important; border-radius: 999px; }
.btb-footer h3 { color: var(--btb-gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
.btb-footer ul { list-style: none; padding: 0; margin: .85rem 0 0; display: grid; gap: .45rem; }
.btb-newsletter { display: flex; margin-top: .85rem; border: 1px solid rgba(212,160,23,.35); border-radius: 999px; overflow: hidden; }
.btb-newsletter input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--btb-cream); padding: .75rem 1rem; }
.btb-newsletter button { border: 0; padding: 0 1rem; background: linear-gradient(135deg, var(--btb-gold-light), var(--btb-gold)); color: var(--btb-ink); font-weight: 800; }
.btb-footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(212,160,23,.18); color: rgba(253,248,238,.55); font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 1023px) {
  .btb-hero-grid { grid-template-columns: 1fr; }
  .btb-hero-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .btb-category-grid, .btb-grid, .btb-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btb-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btb-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 781px) {
  header.wp-block-template-part,
  .btb-header-frame { padding: .75rem 0; }
  .btb-header { border-radius: 1.5rem; }
  .btb-header .wp-block-site-title a { font-size: 1rem; }
  .btb-header-call { display: none; }
  .btb-header .wp-block-navigation__responsive-container-open { color: var(--btb-cream); }
  .btb-header .wp-block-navigation__responsive-container.is-menu-open {
    background: #111 !important;
    color: var(--btb-cream) !important;
    padding: 2rem;
  }
  .btb-hero-split { padding-top: 7.5rem; }
  .btb-hero-title { font-size: clamp(3rem, 14vw, 4.5rem); }
  .btb-category-grid, .btb-grid { grid-template-columns: 1fr; width: min(440px, calc(100% - 2rem)); }
  .btb-feature-grid, .btb-steps, .btb-review-grid, .btb-gallery-grid, .btb-footer-grid { grid-template-columns: 1fr; }
  .btb-gallery-card:first-child { grid-row: auto; }
  .btb-gallery-grid { grid-auto-rows: auto; }
  .btb-gallery-card img { aspect-ratio: 1 / 1; height: auto; }
}

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

/* =========================================================
   v1.6 — live-site corrections
   ========================================================= */

/* 1. Fixed header no longer overlaps page content (margin-collapse safe) */
.wp-site-blocks > main,
main.btb-main { padding-top: clamp(5.5rem, 9vw, 7.5rem) !important; margin-top: 0 !important; }
.btb-page-hero { margin-top: 0 !important; margin-bottom: clamp(2rem, 5vw, 3.5rem) !important; }
.btb-hero-split { padding-top: clamp(3rem, 6vw, 5rem); }
main.btb-main > .btb-hero-split:first-child,
main.btb-main > .entry-content > .btb-hero-split:first-child,
main.btb-main .wp-block-post-content > .btb-hero-split:first-child {
  margin-top: calc(-1 * clamp(5.5rem, 9vw, 7.5rem));
  padding-top: clamp(9rem, 14vw, 13rem);
}

/* 2. One consistent content width everywhere */
.btb-container,
.btb-grid,
.btb-page-hero,
.btb-menu-toolbar-inner { width: min(1220px, calc(100% - clamp(1.5rem, 6vw, 5rem))) !important; margin-inline: auto !important; }

/* 3. Full-bleed section backgrounds inside constrained post content */
.btb-hero-split,
.btb-section-soft,
.btb-section-dark,
.btb-menu-toolbar {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* 4. Menu search + category filter bar */
.btb-menu-toolbar {
  position: sticky;
  top: 5.25rem;
  z-index: 50;
  padding: .9rem 0;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-block: 1px solid rgba(17,17,17,.08);
}
.admin-bar .btb-menu-toolbar { top: 7.25rem; }
.btb-menu-toolbar-inner { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btb-search { position: relative; flex: 1 1 260px; min-width: 220px; }
.btb-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--btb-muted); font-size: 1.1rem; }
.btb-search input {
  width: 100%;
  border: 1px solid rgba(17,17,17,.14);
  border-radius: 999px;
  background: #fff;
  padding: .8rem 1rem .8rem 2.4rem;
  font: inherit;
  font-size: .95rem;
  outline: none;
}
.btb-search input:focus { border-color: var(--btb-gold); box-shadow: 0 0 0 3px rgba(212,160,23,.25); }
.btb-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.btb-chip {
  border: 1px solid rgba(17,17,17,.14);
  background: #fff;
  border-radius: 999px;
  padding: .6rem 1.05rem;
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 600;
  font-size: .88rem;
  color: var(--btb-ink);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.btb-chip:hover { border-color: var(--btb-gold); }
.btb-chip.is-active { border-color: transparent; background: linear-gradient(135deg, var(--btb-gold-light), var(--btb-gold)); }
.btb-menu-group[hidden], .btb-card[hidden] { display: none !important; }
.btb-no-results { text-align: center; padding: 4rem 1rem; color: var(--btb-muted); }
.btb-menu-group { scroll-margin-top: 9rem; }

/* 5. Contact / info cards — long emails must never overflow */
.btb-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.btb-info-card {
  border: 1px solid rgba(212,160,23,.28);
  border-radius: var(--btb-radius-xl);
  background: #fff;
  padding: 1.6rem;
  min-width: 0;
}
.btb-info-card h3 { margin: 1rem 0 .35rem; font-size: 1.15rem; }
.btb-info-card p { margin: 0; color: var(--btb-muted); line-height: 1.55; }
.btb-info-card a { color: #a87a0b; text-decoration: none; }
.btb-info-card a:hover { text-decoration: underline; }
.btb-break,
.btb-info-card p,
.btb-feature-card p { overflow-wrap: anywhere; word-break: break-word; hyphens: auto; }
.btb-feature-card, .btb-review-card, .btb-step { min-width: 0; }
.btb-contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; justify-content: center; }

/* 6. About page split + CTA */
.btb-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.btb-split-media { overflow: hidden; border-radius: var(--btb-radius-2xl); border: 1px solid rgba(212,160,23,.3); }
.btb-split-media img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.btb-split p { color: var(--btb-muted); margin-top: 1rem; line-height: 1.7; }
.btb-split .btb-section-title { text-align: left; margin-top: .6rem; }
.btb-feature-grid-light .btb-feature-card { background: #fff; color: var(--btb-ink); }
.btb-feature-grid-light .btb-feature-card p { color: var(--btb-muted); }
.btb-feature-card h3 { margin: 1rem 0 .35rem; font-size: 1.12rem; }
.btb-cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  border-radius: var(--btb-radius-2xl);
  padding: clamp(2.25rem, 5vw, 4rem);
  background: radial-gradient(circle at 90% 10%, rgba(212,160,23,.3), transparent 55%), #111;
  color: var(--btb-cream);
}
.btb-cta h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.btb-cta p { color: rgba(253,248,238,.72); margin-top: .75rem; }
.btb-cta-media img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--btb-radius-xl); border: 1px solid rgba(212,160,23,.35); }

/* 7. Legal pages */
.btb-legal-hero { text-align: center; }
.btb-legal-hero h1 { color: var(--btb-cream); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.btb-prose { padding-bottom: 4rem; }
.btb-prose p { color: var(--btb-muted); line-height: 1.75; }
.btb-prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 2.5rem; }

/* 8. Typography + background polish */
body { background: #fffdf9; }
.btb-section + .btb-section:not(.btb-section-soft):not(.btb-section-dark) { padding-top: 0; }
main h1, main h2 { text-wrap: balance; }
p { text-wrap: pretty; }

@media (max-width: 1023px) {
  .btb-split, .btb-cta { grid-template-columns: 1fr; }
  .btb-cta-media { order: -1; }
}
@media (max-width: 781px) {
  .btb-menu-toolbar { top: 4.5rem; }
  .btb-contact-grid { grid-template-columns: 1fr; }
  .btb-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; }
  .btb-chip { flex: 0 0 auto; }
}

/* =========================================================
   v1.7 — alignment + typography scale corrections
   ========================================================= */

/* A. Beat WordPress core's `.is-layout-constrained > * { margin-left:auto !important }`
      which was pushing every full-bleed section to the right. */
.btb-hero-split,
.btb-section-soft,
.btb-section-dark,
.btb-menu-toolbar,
.wp-block-post-content > .btb-hero-split,
.wp-block-post-content > .btb-section-soft,
.wp-block-post-content > .btb-section-dark,
.wp-block-post-content > .btb-menu-toolbar,
.entry-content > .btb-hero-split,
.entry-content > .btb-section-soft,
.entry-content > .btb-section-dark,
.entry-content > .btb-menu-toolbar {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box;
}

/* Non full-bleed sections stay centred at the shared content width */
.btb-section:not(.btb-section-soft):not(.btb-section-dark) {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

/* Guard against any horizontal drift */
html, body { max-width: 100%; overflow-x: hidden; }
.btb-container, .btb-grid, .btb-page-hero, .btb-menu-toolbar-inner { box-sizing: border-box; }

/* B. Font scale — WP fluid typography was inflating body copy to ~19.5px.
      Lock the base back to the preview's 16px rhythm. */
html { font-size: 100%; }
body,
.wp-site-blocks,
main,
main p,
.btb-prose p,
.btb-footer,
.btb-footer p,
.btb-footer a,
.btb-footer li {
  font-size: 1rem;
  line-height: 1.65;
}
main p.has-medium-font-size,
p.has-medium-font-size { font-size: 1rem !important; }
p.has-small-font-size, .btb-footer .has-small-font-size { font-size: .875rem !important; }

/* Headings back to the preview scale */
main h1, .btb-page-hero h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.06; }
main h2, .btb-section-head h2, .btb-section-title { font-size: clamp(1.75rem, 3vw, 2.6rem) !important; line-height: 1.1; }
main h3 { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.btb-hero-title { font-size: clamp(2.6rem, 5.6vw, 4.5rem) !important; }
.btb-hero-copy { font-size: 1.02rem !important; }
.btb-card__title { font-size: 1rem !important; }
.btb-card__desc { font-size: .85rem !important; }
.btb-cta h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem) !important; }

/* C. Footer matches the preview proportions */
.btb-footer h3 { font-size: .74rem; }
.btb-footer-bottom { font-size: .8rem; }
.btb-footer-grid { gap: clamp(2rem, 4vw, 3rem); }

/* =========================================================
   v1.8 — page headers, hero cleanup
   ========================================================= */

/* Full-bleed page header band for About / Contact / Menu / legal */
.btb-page-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem) !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-radius: 0 !important;
  box-shadow: none;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  background: radial-gradient(circle at 82% 18%, rgba(212,160,23,.28), transparent 26rem), linear-gradient(135deg, #111, #241e14);
  border-bottom: 1px solid rgba(212,160,23,.28);
}
main.btb-main > .btb-page-hero:first-child,
main.btb-main > .entry-content > .btb-page-hero:first-child,
main.btb-main .wp-block-post-content > .btb-page-hero:first-child {
  margin-top: calc(-1 * clamp(5.5rem, 9vw, 7.5rem)) !important;
  padding-top: clamp(9rem, 13vw, 12rem);
}
.btb-page-hero > * { max-width: 1220px; margin-inline: auto; }
.btb-page-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.03; }
.btb-page-hero .btb-eyebrow { justify-content: center; }

/* No duplicate WP post title above the custom page header */
.btb-legal-hero,
main.btb-main > .wp-block-post-title,
main.btb-main .wp-block-post-title { display: none !important; }

/* Legal pages: plain prose blocks stay readable and centred */
.btb-page-main .wp-block-post-content > h1,
.btb-page-main .wp-block-post-content > h2,
.btb-page-main .wp-block-post-content > h3,
.btb-page-main .wp-block-post-content > p,
.btb-page-main .wp-block-post-content > ul,
.btb-page-main .wp-block-post-content > ol,
.btb-page-main .entry-content > h1,
.btb-page-main .entry-content > h2,
.btb-page-main .entry-content > p,
.btb-page-main .entry-content > ul,
.btb-page-main .entry-content > ol {
  max-width: 860px;
  margin-inline: auto;
}
.btb-page-main .wp-block-post-content > h1:first-child,
.btb-page-main .entry-content > h1:first-child { margin-top: 1rem; }
.btb-page-main h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.06; margin-bottom: 1.25rem; }
.btb-page-main .wp-block-post-content > h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2rem auto .6rem; }
.btb-page-main .wp-block-post-content > p,
.btb-page-main .wp-block-post-content > li { color: var(--btb-muted); line-height: 1.75; }

/* Contact/about card polish */
.btb-info-card { min-width: 0; }
.btb-info-card p, .btb-info-card a { overflow-wrap: anywhere; word-break: break-word; }
.btb-contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* Trim excess whitespace between stacked light sections */
.btb-section:last-child { padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
html, body { overflow-x: hidden; }
