/*
Theme Name: BITS Perth
Theme URI: https://www.bitsperth.com.au
Author: BITS Perth
Author URI: https://www.bitsperth.com.au
Description: Lightweight custom block theme for BITS Perth. Built on the brand's own design tokens - navy, blue and cyan, Poppins headings, Inter body. No framework, no bloat.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.21.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bits-perth
Tags: block-theme, business, custom-colors, custom-logo, full-site-editing
*/

/* ==========================================================================
   Palette and type live in theme.json so they stay editable in the Site
   Editor. This file carries structure, rhythm and component styling that
   theme.json cannot express.
   ========================================================================== */

:root {
  --b-navy:   var(--wp--preset--color--navy, #0a1628);
  --b-blue:   var(--wp--preset--color--blue, #1565c0);
  --b-cyan:   var(--wp--preset--color--cyan, #00acc1);
  --b-light:  var(--wp--preset--color--light, #f4f7fb);
  --b-gray:   var(--wp--preset--color--gray, #6b7280);
  --b-dark:   var(--wp--preset--color--dark, #111827);
  --b-border: var(--wp--preset--color--border, #e5e7eb);
  --b-radius: 14px;
  --b-shadow-sm: 0 1px 3px rgba(10,22,40,.06), 0 1px 2px rgba(10,22,40,.04);
  --b-shadow-md: 0 4px 16px rgba(10,22,40,.08);
  --b-shadow-lg: 0 12px 32px rgba(10,22,40,.12);
  --b-ease: cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(10, 22, 40, .92) !important;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-bar .site-header { top: 32px; }

.wp-block-navigation {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 500;
  font-size: .88rem;
}
.wp-block-navigation a:where(:not(.wp-element-button)) {
  position: relative;
  padding-block: 4px;
  transition: color .2s var(--b-ease);
}
.wp-block-navigation a:where(:not(.wp-element-button))::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--b-cyan);
  transform: scaleX(0);
  transition: transform .25s var(--b-ease);
}
.wp-block-navigation a:where(:not(.wp-element-button)):hover::after { transform: scaleX(1); }
.wp-block-navigation a:where(:not(.wp-element-button)):hover { text-decoration: none; }

/* ── Page hero ────────────────────────────────────────────────────────── */
.wp-block-group.has-hero-gradient-background {
  position: relative;
  overflow: hidden;
}
/* subtle depth, no image required */
.wp-block-group.has-hero-gradient-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 85% 15%, rgba(0,172,193,.30), transparent 60%),
    radial-gradient(45% 90% at 10% 90%, rgba(66,165,245,.22), transparent 60%);
  pointer-events: none;
}
.wp-block-group.has-hero-gradient-background > * { position: relative; z-index: 1; }

.wp-block-group.has-hero-gradient-background .wp-block-post-title {
  letter-spacing: -.025em;
  text-wrap: balance;
  max-width: 18ch;
}

/* ── Header actions ───────────────────────────────────────────────────── */
.bits-brand .wp-block-site-title a { text-decoration: none; }

.bits-header-phone a {
  color: rgba(255,255,255,.88) !important;
  text-decoration: none;
  white-space: nowrap;
}
.bits-header-phone a:hover { color: #fff !important; }

.bits-header-cta .wp-block-button__link {
  background: var(--b-cyan) !important;
  color: var(--b-navy) !important;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,172,193,.32);
}
.bits-header-cta .wp-block-button__link:hover {
  background: #fff !important;
  color: var(--b-navy) !important;
}

/* Submenus: readable panel rather than a bare list */
.wp-block-navigation .wp-block-navigation__submenu-container {
  background: #fff !important;
  border: 1px solid var(--b-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--b-shadow-lg);
  padding: .4rem !important;
  min-width: 240px;
}
.wp-block-navigation .wp-block-navigation__submenu-container a {
  color: var(--b-dark) !important;
  border-radius: 8px;
  padding: .55rem .75rem !important;
  font-size: .86rem;
}
.wp-block-navigation .wp-block-navigation__submenu-container a:hover {
  background: var(--b-light);
  color: var(--b-blue) !important;
}
/* the cyan underline is for top-level items only */
.wp-block-navigation__submenu-container a::after { content: none !important; }

@media (max-width: 1080px) {
  .bits-header-phone { display: none; }
}
@media (max-width: 781px) {
  .bits-header-actions { display: none; }
}

/* ── Blog cards (Query Loop) ──────────────────────────────────────────── */
.bits-blog-loop .wp-block-post-template {
  gap: 1.25rem !important;
  margin: 1.5rem 0 0 !important;
  padding: 0;
}
.bits-post-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--b-shadow-sm);
  transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease), border-color .25s var(--b-ease);
}
.bits-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-shadow-lg);
  border-color: #c7d6ea !important;
}
.bits-post-card .wp-block-post-date {
  color: var(--b-cyan);
  font-weight: 600;
}
.bits-post-card .wp-block-post-title {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.bits-post-card .wp-block-post-title::before { content: none !important; }
.bits-post-card .wp-block-post-title a {
  color: var(--b-navy);
  text-decoration: none;
}
.bits-post-card:hover .wp-block-post-title a { color: var(--b-blue); }
.bits-post-card .wp-block-post-excerpt {
  margin-top: auto;
  color: var(--b-gray);
}
.bits-post-card .wp-block-post-excerpt__excerpt { margin-bottom: .5rem; }
.bits-post-card .wp-block-post-excerpt__more-link {
  color: var(--b-blue);
  font-weight: 600;
  font-size: .86rem;
  text-decoration: none;
}
.bits-post-card .wp-block-post-excerpt__more-link:hover { text-decoration: underline; }

/* the "View all" outline button sits on white here, not the dark hero */
.bits-blog-loop + .wp-block-buttons .is-style-outline .wp-block-button__link,
.wp-block-group > .wp-block-buttons .is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--b-blue);
  color: var(--b-blue);
  box-shadow: none;
}
.wp-block-group > .wp-block-buttons .is-style-outline .wp-block-button__link:hover {
  background: var(--b-blue);
  color: #fff;
}

/* ── Benefit cards ────────────────────────────────────────────────────── */
.bits-benefit-card {
  position: relative;
  padding-top: 3.5rem !important;
  box-shadow: var(--b-shadow-sm);
  transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease), border-color .25s var(--b-ease);
}
/* small gradient tick badge instead of an icon font */
.bits-benefit-card::before {
  content: "";
  position: absolute;
  top: 1.3rem; left: 1.3rem;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--b-blue), var(--b-cyan));
}
.bits-benefit-card::after {
  content: "";
  position: absolute;
  top: 1.72rem; left: 1.72rem;
  width: 10px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.bits-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-shadow-lg);
  border-color: #c7d6ea !important;
}
.bits-benefit-card h3 {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  color: var(--b-navy);
}
.bits-benefit-card h3::before { content: none !important; }

/* ── Process steps ────────────────────────────────────────────────────── */
.bits-process h2 {
  border-top: 0 !important;
  padding-top: 0 !important;
}
.bits-process h2::before { content: none !important; }

.bits-step-card {
  position: relative;
  box-shadow: var(--b-shadow-sm);
  border: 1px solid var(--b-border);
  transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease);
}
.bits-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-shadow-md);
}
.bits-step-card h3 {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  color: var(--b-navy);
}
.bits-step-card h3::before { content: none !important; }

/* numerals as a gradient, falling back to solid blue */
.bits-step-num {
  background: linear-gradient(135deg, var(--b-blue), var(--b-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--b-blue);
  letter-spacing: -.02em;
}
@supports (-webkit-text-fill-color: transparent) {
  .bits-step-num { -webkit-text-fill-color: transparent; }
}

/* connector line between steps on wide screens */
@media (min-width: 782px) {
  .bits-process .wp-block-columns { position: relative; }
  .bits-step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.35rem; right: -1.15rem;
    width: 1.15rem; height: 2px;
    background: linear-gradient(90deg, var(--b-cyan), transparent);
  }
}

@media (max-width: 781px) {
  .bits-benefit-card, .bits-step-card { flex-basis: 100% !important; }
}

/* ── Partner band ─────────────────────────────────────────────────────── */
.bits-partners h2 {
  border-top: 0 !important;
  padding-top: 0 !important;
}
.bits-partners h2::before { content: none !important; }
.bits-partner-card {
  box-shadow: var(--b-shadow-sm);
  transition: transform .2s var(--b-ease), box-shadow .2s var(--b-ease);
}
.bits-partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--b-shadow-md);
}
.bits-partner-card { position: relative; overflow: hidden; }
.bits-partner-card .bits-partner-name { color: var(--b-navy); }
.bits-partner-card p:last-child { color: var(--b-gray); }

/* ── Partner brand identities ──────────────────────────────────────────
   Each card gets a brand-coloured accent bar plus the vendor's own
   wordmark colour. Text colours are nudged where the true brand colour
   would fail WCAG AA contrast on white; the accent bar always carries the
   exact brand value.
   --------------------------------------------------------------------- */
.bits-partner-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

/* Microsoft - wordmark is grey; the four squares supply the colour */
.bits-partner--microsoft::before {
  background: linear-gradient(90deg,
    #F25022 0 25%, #7FBA00 25% 50%, #00A4EF 50% 75%, #FFB900 75% 100%);
}
.bits-partner--microsoft .bits-partner-name { color: #5E5E5E; }

/* Acronis - primary brand colour is navy, not red */
.bits-partner--acronis::before { background: #00204d; }
.bits-partner--acronis .bits-partner-name { color: #00204d; }

/* Lenovo - Rainbow Red #E60012; text slightly deepened for contrast */
.bits-partner--lenovo::before { background: #E60012; }
.bits-partner--lenovo .bits-partner-name { color: #C4000F; }

/* Norton - yellow mark with a dark wordmark */
.bits-partner--norton::before { background: #FFC20E; }
.bits-partner--norton .bits-partner-name { color: #1A1A1A; }

/* keep the accent visible on hover */
.bits-partner-card:hover::before { height: 5px; }

@media (max-width: 781px) {
  .bits-blog-loop .wp-block-post-template { grid-template-columns: 1fr !important; }
  .bits-partners .wp-block-columns { flex-wrap: wrap !important; }
  .bits-partners .wp-block-column { flex-basis: calc(50% - .5rem) !important; }
}

/* ── Area cards ───────────────────────────────────────────────────────── */
.bits-area-card {
  box-shadow: var(--b-shadow-sm);
  transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease), border-color .25s var(--b-ease);
}
.bits-area-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--b-shadow-md);
  border-color: #c7d6ea !important;
}
.bits-area-card h3 {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  color: var(--b-navy);
}
.bits-area-card h3::before { content: none !important; }
.bits-area-card a { text-decoration: none; }
.bits-area-card a:hover { text-decoration: underline; }

/* ── Homepage hero ────────────────────────────────────────────────────── */
.bits-hero { position: relative; overflow: hidden; }

/* eyebrow renders as a pill badge */
.bits-hero .bits-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px;
  padding: .38rem 1rem;
  letter-spacing: .02em;
  backdrop-filter: blur(6px);
}

.bits-hero .bits-hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

/* outline button sits on the dark hero */
.bits-hero .is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: none;
}
.bits-hero .is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: #fff;
}

.bits-hero .bits-trust { line-height: 1.9; }

/* The hero supplies the H1, so suppress the content-rhythm rules that
   would otherwise add section rules inside it. */
.bits-hero h1, .bits-hero h2 {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.bits-hero h2::before { content: none !important; }

/* ── Service cards ────────────────────────────────────────────────────── */
.bits-service-card {
  overflow: hidden;
  box-shadow: var(--b-shadow-sm);
  transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease), border-color .25s var(--b-ease);
}
.bits-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-shadow-lg);
  border-color: #c7d6ea !important;
}
.bits-service-card figure { margin: 0; }
.bits-service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
/* cards carry their own headings - keep the section rules off them */
.bits-service-card h3 {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  color: var(--b-navy);
}
.bits-service-card a { text-decoration: none; }
.bits-service-card a:hover { text-decoration: underline; }

@media (max-width: 781px) {
  .bits-hero .wp-block-columns { gap: 1.5rem; }
  .bits-hero .wp-block-buttons { width: 100%; }
  .bits-hero .wp-block-button { width: 100%; }
  .bits-hero .wp-block-button__link { display: block; text-align: center; }
  /* stats stay 2-up rather than collapsing to a long column */
  .bits-hero .wp-block-columns:last-of-type { flex-wrap: wrap !important; }
  .bits-hero .wp-block-columns:last-of-type > .wp-block-column {
    flex-basis: calc(50% - .5rem) !important;
  }
}

/* ── Content rhythm ───────────────────────────────────────────────────── */
/* NOTE: this used to be `.entry-content > * { max-width: 100% }`, which beat
   WordPress's own constrained-layout rules on specificity and capped EVERY
   top-level block — including .alignfull — at the content box. That is what
   made the homepage look boxed-in. Aligned blocks must be exempt so full-bleed
   bands can escape the root padding and alignwide can reach wideSize. */
.entry-content > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) {
  max-width: 100%;
}
.entry-content p,
.entry-content ul,
.entry-content ol { max-width: 68ch; }
/* Section intros are handled by the band rules further down, not by the
   generic 68ch prose cap. (An earlier `max-width: none` here was wrong: it
   stripped the cap AND the auto margins, stranding the blog section's intro
   line at full width against the left edge.) */

/* Lead paragraph: first para after the hero reads larger */
.entry-content > p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #4b5563;
}

/* H2 becomes a real section marker */
.entry-content h2 {
  position: relative;
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--b-border);
  text-wrap: balance;
}
.entry-content h2::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 54px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--b-blue), var(--b-cyan));
}
.entry-content h2:first-of-type { margin-top: 1.5rem; }

.entry-content h3 { text-wrap: balance; }

/* ── Feature cards ─────────────────────────────────────────────────────
   The imported content is a flat run of H4 + paragraph pairs (these were
   card grids on the old site). Style the pair as a single card so grouped
   items still read as a set without needing wrapper markup.
   --------------------------------------------------------------------- */
.entry-content h4 {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem .55rem 3.1rem;
  position: relative;
  background: #fff;
  border: 1px solid var(--b-border);
  border-bottom: 0;
  border-radius: var(--b-radius) var(--b-radius) 0 0;
  font-size: 1.04rem;
  color: var(--b-navy);
  transition: border-color .2s var(--b-ease);
}
.entry-content h4::before {
  content: "";
  position: absolute;
  left: 1.25rem; top: 1.35rem;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--b-blue), var(--b-cyan));
}
.entry-content h4 + p {
  margin: 0 0 .85rem;
  padding: 0 1.25rem 1.15rem 3.1rem;
  max-width: none;
  background: #fff;
  border: 1px solid var(--b-border);
  border-top: 0;
  border-radius: 0 0 var(--b-radius) var(--b-radius);
  font-size: .95rem;
  box-shadow: var(--b-shadow-sm);
  transition: box-shadow .25s var(--b-ease), transform .25s var(--b-ease);
}
.entry-content h4:hover,
.entry-content h4:hover + p { border-color: #c7d6ea; }
.entry-content h4:hover + p { box-shadow: var(--b-shadow-md); }

/* ── Lists ────────────────────────────────────────────────────────────
   Scoped with :not() so the custom bullets never leak into block-generated
   lists - the Query Loop post template and the navigation both render as
   <ul>, and were picking up stray cyan dots.
   -------------------------------------------------------------------- */
.entry-content ul:not(.wp-block-post-template):not(.wp-block-navigation__container):not(.wp-block-page-list) {
  padding-left: 1.25rem;
  list-style: none;
}
.entry-content ul:not(.wp-block-post-template):not(.wp-block-navigation__container):not(.wp-block-page-list) > li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: .55rem;
}
.entry-content ul:not(.wp-block-post-template):not(.wp-block-navigation__container):not(.wp-block-page-list) > li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--b-cyan);
}
/* belt and braces for any block list nested in content */
.entry-content .wp-block-post-template,
.entry-content .wp-block-post-template > li {
  list-style: none !important;
  padding-left: 0 !important;
}
.entry-content .wp-block-post-template > li::before { content: none !important; }
.entry-content ol { padding-left: 1.35rem; }
.entry-content ol li { margin-bottom: .55rem; }
.entry-content ol li::marker { color: var(--b-blue); font-weight: 700; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.wp-element-button,
.wp-block-button__link {
  transition: background .25s var(--b-ease), transform .25s var(--b-ease), box-shadow .25s var(--b-ease);
  box-shadow: 0 2px 8px rgba(21,101,192,.22);
}
.wp-element-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(21,101,192,.32);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { font-size: .88rem; }
.site-footer a:where(:not(.wp-element-button)) { color: rgba(255,255,255,.75); }
.site-footer a:where(:not(.wp-element-button)):hover { color: #fff; text-decoration: none; }
.site-footer h4 { letter-spacing: .06em; text-transform: uppercase; opacity: .85; }

/* ==========================================================================
   WooCommerce
   ========================================================================== */

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 1.75rem; font-size: .88rem; }

/* Product grid.
   This theme is a block theme, so WooCommerce renders the Product Collection
   block (ul.wc-block-product-template > li.wc-block-product), NOT the classic
   ul.products markup. Both are targeted so cart/checkout and any shortcode
   grids stay consistent. */
ul.wc-block-product-template,
.woocommerce ul.products,
.wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: 1.25rem !important;
  margin: 0 0 2.5rem !important;
  padding: 0 !important;
  list-style: none !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; }

li.wc-block-product,
.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  display: flex !important;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: .85rem .85rem 1rem !important;
  box-shadow: var(--b-shadow-sm);
  transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease), border-color .25s var(--b-ease);
}
li.wc-block-product:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-shadow-lg);
  border-color: #c7d6ea;
}

/* Image: contained, never stretched or oddly cropped */
li.wc-block-product img,
.woocommerce ul.products li.product a img {
  width: 100%;
  height: 185px !important;
  object-fit: contain !important;
  background: #fff;
  border-radius: 10px;
  margin-bottom: .7rem !important;
  padding: .4rem;
  transition: transform .3s var(--b-ease);
}
li.wc-block-product:hover img,
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }

/* Titles are supplier spec-dumps - clamp so cards stay even height */
li.wc-block-product .wp-block-post-title,
li.wc-block-product .wc-block-components-product-name,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--wp--preset--font-family--body) !important;
  font-size: .86rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  color: var(--b-dark) !important;
  text-align: left !important;
  padding: 0 !important;
  margin: 0 0 .55rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.75em;
}
li.wc-block-product .wp-block-post-title a,
li.wc-block-product .wc-block-components-product-name {
  color: inherit !important;
  text-decoration: none !important;
}
li.wc-block-product:hover .wp-block-post-title a { color: var(--b-blue) !important; }

/* Price */
li.wc-block-product .wp-block-woocommerce-product-price,
li.wc-block-product .wc-block-components-product-price,
.woocommerce ul.products li.product .price {
  margin-top: auto !important;
  text-align: left !important;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--b-navy) !important;
}
.woocommerce-Price-currencySymbol { font-size: .82em; }
.wc-price-suffix,
li.wc-block-product .wc-block-components-product-price small,
.woocommerce ul.products li.product .price small {
  display: block;
  font-size: .67rem;
  font-weight: 400;
  color: var(--b-gray);
  font-family: var(--wp--preset--font-family--body);
  margin-top: 1px;
}

/* Add to cart */
li.wc-block-product .wp-block-button__link,
li.wc-block-product .wc-block-components-product-button__button,
li.wc-block-product .add_to_cart_button,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  margin-top: .7rem !important;
  width: 100% !important;
  text-align: center;
  background: var(--b-blue) !important;
  color: #fff !important;
  border-radius: 100px !important;
  padding: .6rem 1rem !important;
  font-family: var(--wp--preset--font-family--heading);
  font-size: .84rem !important;
  font-weight: 600 !important;
  border: 0 !important;
}
li.wc-block-product .wp-block-button__link:hover,
li.wc-block-product .wc-block-components-product-button__button:hover,
.woocommerce ul.products li.product .button:hover { background: var(--b-navy) !important; }

/* The block template centres everything by default - left-align inside cards */
li.wc-block-product > * { text-align: left; }
li.wc-block-product .wc-block-components-product-button { width: 100%; }

.woocommerce span.onsale {
  background: var(--b-cyan);
  border-radius: 100px;
  padding: .25rem .8rem;
  font-size: .75rem;
  font-weight: 700;
  min-height: 0;
  min-width: 0;
  line-height: 1.6;
  top: 1rem; left: 1rem;
}

/* Single product */
.woocommerce div.product .product_title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  text-wrap: balance;
}
.woocommerce div.product .woocommerce-product-gallery img { border-radius: var(--b-radius); background:#fff; }
.woocommerce div.product p.price {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--b-navy);
}
.woocommerce div.product form.cart .button {
  background: var(--b-blue);
  border-radius: 100px;
  padding: .85rem 2rem;
  font-weight: 600;
}
.woocommerce div.product form.cart .button:hover { background: var(--b-navy); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--b-blue); }
.woocommerce-product-details__short-description { color: var(--b-gray); }

/* Notices / cart / checkout */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--b-blue);
  border-radius: 10px;
  background: var(--b-light);
}
.woocommerce table.shop_table { border-radius: var(--b-radius); border-color: var(--b-border); }
.woocommerce .cart-collaterals .cart_totals table { font-size: .95rem; }

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
  font-size: .82rem;
  color: var(--b-gray);
  margin-bottom: 1rem;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--b-blue); }

/* ── Accessibility ────────────────────────────────────────────────────── */
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--b-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 999;
  padding: .6rem 1rem;
  background: var(--b-navy); color: #fff; border-radius: 8px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 781px) {
  .entry-content h4 { padding-left: 2.85rem; }
  .entry-content h4 + p { padding-left: 2.85rem; }
  .woocommerce ul.products,
  .wc-block-grid__products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
  .woocommerce ul.products li.product a img { height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .woocommerce ul.products li.product:hover { transform: none; }
}

/* ── Print ────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .wp-block-navigation { display: none !important; }
  .entry-content h4, .entry-content h4 + p { border: 0; box-shadow: none; padding-left: 0; }
}

/* ── Newly wrapped homepage sections ──────────────────────────────────────
   "What Our Customers Say", "Areas We Serve" and the closing CTA were loose
   top-level blocks left behind by the import: no section wrapper, so they
   inherited the generic .entry-content h2 treatment (left-aligned, top rule,
   left gradient tick) while every other section was centred inside a band.
   That mismatch is what read as "alignments are off". They are now real
   full-bleed sections and are styled to match the rest.
   ────────────────────────────────────────────────────────────────────────── */
/* Applied to EVERY full-bleed band rather than section-by-section. Doing this
   per-class is how the blog section ended up as the odd one out: it kept the
   generic .entry-content h2 treatment (top rule + left gradient tick) and a
   left-aligned intro while its neighbours were centred. The hero is excluded
   because it is a two-column, left-aligned layout. */
.entry-content > .alignfull:not(.bits-hero) > h2 {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  text-align: center;
  max-width: 26ch;
  margin-inline: auto;
  text-wrap: balance;
}
.entry-content > .alignfull:not(.bits-hero) > h2::before { content: none !important; }

/* Section intro: the single line that sits under each section heading. */
.entry-content > .alignfull:not(.bits-hero) > p {
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: 0;
  text-align: center;
  color: var(--b-gray);
  font-size: 1.05rem;
}

/* the area cards grid needs air under the intro, and must stay left-aligned
   inside the centred band */
.bits-areas .wp-block-columns { margin-top: 2.5rem; text-align: left; }

/* closing CTA sits on the navy gradient, so invert the text colours */
.bits-cta-band { position: relative; overflow: hidden; }
.bits-cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 110% at 88% 10%, rgba(0,172,193,.28), transparent 60%),
    radial-gradient(45% 95% at 8% 92%, rgba(66,165,245,.20), transparent 60%);
  pointer-events: none;
}
.bits-cta-band > * { position: relative; z-index: 1; }
.bits-cta-band h2 { color: #fff !important; }
.bits-cta-band > p { color: rgba(255,255,255,.82) !important; }
.bits-cta-band .wp-block-buttons { justify-content: center; margin-top: 2rem; }
/* Specificity note: the generic outline rule is
   `.wp-block-group > .wp-block-buttons .is-style-outline .wp-block-button__link`
   (4 classes) and it paints blue-on-white. On the navy band that is nearly
   invisible, so this selector has to outweigh it, not just follow it. */
.entry-content .bits-cta-band .wp-block-buttons .is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  box-shadow: none;
}
.entry-content .bits-cta-band .wp-block-buttons .is-style-outline .wp-block-button__link:hover {
  background: #fff;
  border-color: #fff;
  color: var(--b-navy);
}

.entry-content .alignfull h3 { text-wrap: balance; }

@media (max-width: 781px) {
  .bits-reviews,
  .bits-areas,
  .bits-cta-band {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVICE PAGES (Repair, and reusable by MSP / Web Design)
   The imported service pages were a flat run of H2/H4/P with no section
   wrappers at all. These rules style the banded structure they now use.
   Grids are used instead of core/columns so the card count can vary per
   section (9 services, 4 steps, 3 reviews) without hand-built column maths,
   and so they reflow sensibly on their own.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Section eyebrow on light bands ───────────────────────────────────────
   .bits-eyebrow already exists but is styled for the dark hero only
   (translucent white pill). On white/light bands that is invisible. */
.entry-content > .alignfull:not(.bits-hero) .bits-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--wp--preset--font-family--heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--b-blue);
  margin: 0 0 .6rem;
  background: none;
  border: 0;
  padding: 0;
  backdrop-filter: none;
}
.bits-cta-band .bits-eyebrow { color: var(--b-cyan) !important; }

/* ── Shared responsive card grid ──────────────────────────────────────────
   auto-fit + minmax means each grid finds its own column count; no media
   queries and no orphan card stranded on its own row. */
.bits-service-grid,
.bits-step-grid,
.bits-testimonial-grid,
.bits-area-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}
.bits-service-grid   { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.bits-step-grid      { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.bits-testimonial-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.bits-area-grid      { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* card chrome shared by the grid children */
.bits-service-grid > .bits-service-card,
.bits-step-grid > .bits-step-card,
.bits-testimonial-grid > .bits-testimonial,
.bits-area-grid > .bits-area-card {
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: 1.6rem;
  margin: 0;
}
.bits-service-grid > .bits-service-card > h3,
.bits-step-grid > .bits-step-card > h3,
.bits-area-grid > .bits-area-card > h3 {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  margin-bottom: .5rem;
  font-size: 1.06rem;
  color: var(--b-navy);
}
.bits-service-grid > .bits-service-card > h3::before,
.bits-step-grid > .bits-step-card > h3::before,
.bits-area-grid > .bits-area-card > h3::before { content: none !important; }

.bits-service-grid p,
.bits-step-grid p,
.bits-area-grid p {
  margin: 0;
  color: var(--b-gray);
  font-size: .93rem;
  line-height: 1.65;
  max-width: none;
  text-align: left;
}

/* service cards get a gradient rule across the top edge */
.bits-service-grid > .bits-service-card {
  position: relative;
  overflow: hidden;
  padding-top: 1.9rem;
}
.bits-service-grid > .bits-service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--b-blue), var(--b-cyan));
  opacity: 0;
  transition: opacity .25s var(--b-ease);
}
.bits-service-grid > .bits-service-card:hover::before { opacity: 1; }

/* numbered process steps */
.bits-step-grid > .bits-step-card { padding-top: 1.4rem; }
.bits-step-grid .bits-step-num {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 2rem !important;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 .6rem !important;
  background: linear-gradient(135deg, var(--b-blue), var(--b-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not (background-clip: text) {
  .bits-step-grid .bits-step-num { color: var(--b-blue); }
}

/* ── Testimonials ─────────────────────────────────────────────────────── */
.bits-testimonial-grid > .bits-testimonial {
  display: flex;
  flex-direction: column;
  box-shadow: var(--b-shadow-sm);
}
.bits-stars {
  color: #f5a623;
  letter-spacing: .12em;
  margin: 0 0 .7rem !important;
  font-size: 1rem !important;
}
.bits-testimonial-text {
  margin: 0 0 1.2rem !important;
  color: var(--b-dark) !important;
  font-size: .96rem !important;
  line-height: 1.7;
  max-width: none !important;
  text-align: left !important;
}
.bits-testimonial-author {
  margin-top: auto !important;
  gap: .75rem !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}
.bits-avatar {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--b-navy), var(--b-blue));
  color: #fff !important;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: .82rem !important;
  margin: 0 !important;
}
.bits-author-info { gap: 0 !important; }
.bits-author-name {
  margin: 0 !important;
  font-weight: 700;
  color: var(--b-navy) !important;
  font-size: .9rem !important;
}
.bits-author-role {
  margin: 0 !important;
  color: var(--b-gray) !important;
  font-size: .82rem !important;
}

/* ── FAQ accordion ────────────────────────────────────────────────────────
   Native <details>/<summary>, so it works with no JavaScript and is
   keyboard-accessible and findable by in-page search for free. */
.bits-faq {
  display: block;
  max-width: 820px;
  margin: 2.5rem auto 0;
  text-align: left;
}
.bits-faq-item {
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: box-shadow .2s var(--b-ease), border-color .2s var(--b-ease);
}
.bits-faq-item[open] {
  box-shadow: var(--b-shadow-md);
  border-color: #c7d6ea;
}
.bits-faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  position: relative;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--b-navy);
}
.bits-faq-item > summary::-webkit-details-marker { display: none; }
.bits-faq-item > summary::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--b-blue);
  border-bottom: 2px solid var(--b-blue);
  transform: rotate(45deg);
  transition: transform .25s var(--b-ease);
}
.bits-faq-item[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.bits-faq-item > summary:hover { background: var(--b-light); }
.bits-faq-item > p {
  margin: 0 !important;
  padding: 0 1.4rem 1.3rem;
  color: var(--b-gray);
  font-size: .95rem;
  line-height: 1.7;
  max-width: none;
}

/* ── Trust chips under the page intro ─────────────────────────────────── */
.bits-trust-chips {
  list-style: none !important;
  padding: 0 !important;
  margin: 1.6rem auto 0 !important;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.bits-trust-chips li {
  background: var(--b-light);
  border: 1px solid var(--b-border);
  border-radius: 100px;
  padding: .42rem 1rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--b-navy);
}
.bits-trust-chips li::before {
  content: "\2713";
  color: var(--b-cyan);
  font-weight: 800;
  margin-right: .4rem;
}
.bits-intro-btns { justify-content: center; margin-top: 1.8rem; }

/* the quote anchor must clear the sticky header when linked to */
#quote { scroll-margin-top: 100px; }

.bits-repair-quote .bits-form { margin-top: 2rem; text-align: left; }

@media (max-width: 781px) {
  .entry-content > .alignfull {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  .bits-service-grid,
  .bits-step-grid,
  .bits-testimonial-grid,
  .bits-area-grid { grid-template-columns: 1fr; margin-top: 2rem; }
}

/* ── Quote form inside a section band ─────────────────────────────────────
   The bits-forms plugin renders its own <h3 class="bits-form-title">. When the
   form sits in a band that already carries an H2 saying the same thing, that
   reads as a duplicated heading (and gives the page two headings for one
   section). Hide the inner title only in that case, so the form keeps its
   heading anywhere it is used standalone. */
.alignfull:has(> h2) .bits-form .bits-form-title { display: none; }

/* A form stretched to the full 1200px band has uncomfortably wide inputs.
   (Raw shortcode output is not wrapped in a block element, so it escapes the
   constrained layout's content-width cap and needs its own.) */
.entry-content .bits-form {
  max-width: 720px;
  margin-inline: auto;
}

/* ══════════════════════════════════════════════════════════════════════════
   MSP + WEB DESIGN section components
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Tick list ────────────────────────────────────────────────────────────
   Used for narrative-section benefits and pricing features. In a narrative
   band it reads as a centred two-column set; inside a card it is a plain
   single column. */
.bits-tick-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 1.8rem auto 0 !important;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: .55rem 1.75rem;
  text-align: left;
}
.bits-tick-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--b-gray);
  font-size: .95rem;
  line-height: 1.6;
}
.bits-tick-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--b-cyan);
  font-weight: 800;
}

/* ── Narrative band ───────────────────────────────────────────────────── */
.bits-narrative > p { max-width: 68ch; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.bits-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: start;
}
.bits-pricing-card {
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: 2rem 1.75rem;
  margin: 0;
  text-align: center;
  box-shadow: var(--b-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease);
}
.bits-pricing-card:hover { transform: translateY(-4px); box-shadow: var(--b-shadow-md); }

/* the featured plan is lifted rather than recoloured, so the page keeps one
   dominant accent instead of competing with the CTA band */
.bits-pricing-card.is-featured {
  border: 2px solid var(--b-blue);
  box-shadow: var(--b-shadow-lg);
  position: relative;
}
.bits-pricing-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--b-blue), var(--b-cyan));
  color: #fff !important;
  font-family: var(--wp--preset--font-family--heading);
  font-size: .7rem !important;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 100px;
  margin: 0 auto .9rem !important;
}
.bits-pricing-card > h3 {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin: 0 0 .3rem !important;
  font-size: 1.15rem;
  color: var(--b-navy);
}
.bits-pricing-card > h3::before { content: none !important; }
.bits-pricing-price {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 2.6rem !important;
  font-weight: 800;
  line-height: 1;
  color: var(--b-navy) !important;
  margin: .2rem 0 1rem !important;
}
.bits-pricing-price sup {
  font-size: .42em;
  font-weight: 700;
  vertical-align: super;
  margin-right: .1em;
  color: var(--b-blue);
}
.bits-pricing-price small {
  font-size: .3em;
  font-weight: 600;
  color: var(--b-gray);
  letter-spacing: .02em;
}
.bits-pricing-card > p:not(.bits-pricing-price):not(.bits-pricing-badge) {
  color: var(--b-gray);
  font-size: .92rem;
  margin: 0 0 1.2rem !important;
  max-width: none;
}
.bits-pricing-card .bits-tick-list {
  grid-template-columns: 1fr;
  max-width: none;
  margin: 0 0 1.6rem !important;
  gap: .45rem;
}
.bits-pricing-card .bits-tick-list li { font-size: .88rem; }
.bits-pricing-btn { margin-top: auto; justify-content: center; }
.bits-pricing-btn .wp-block-button__link { width: 100%; }

/* ── Portfolio ────────────────────────────────────────────────────────── */
.bits-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}
.bits-portfolio-card {
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: 1.6rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--b-shadow-sm);
  transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease), border-color .25s var(--b-ease);
}
.bits-portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-shadow-lg);
  border-color: #c7d6ea;
}
.bits-portfolio-card > h3 {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin: 0 0 .5rem !important;
  font-size: 1.1rem;
  color: var(--b-navy);
}
.bits-portfolio-card > h3::before { content: none !important; }
.bits-portfolio-card > p {
  color: var(--b-gray);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0 0 1rem !important;
  max-width: none;
}
.bits-portfolio-card > p:last-child { margin: auto 0 0 !important; }
.bits-portfolio-card a { color: var(--b-blue); font-weight: 600; text-decoration: none; }
.bits-portfolio-card a:hover { text-decoration: underline; }

/* tags are a flat row of chips, not a tick list */
.bits-pf-tags {
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0 !important;
  margin: 0 0 1.1rem !important;
  max-width: none;
  grid-template-columns: none !important;
}
.bits-pf-tags li {
  padding: .25rem .7rem !important;
  background: var(--b-light);
  border: 1px solid var(--b-border);
  border-radius: 100px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--b-navy);
}
.bits-pf-tags li::before { content: none !important; }

#portfolio { scroll-margin-top: 100px; }

@media (max-width: 781px) {
  .bits-tick-list { grid-template-columns: 1fr; }
  .bits-pricing-grid,
  .bits-portfolio-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SUBURB LANDING PAGES (Butler, Joondalup, Wanneroo, Mindarie)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Stat boxes ───────────────────────────────────────────────────────────
   "60+ 5-Star Google Reviews", "5+ Years in Northern Perth" and so on. These
   were flattened to plain paragraphs by the import. */
.bits-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 2.75rem;
}
.bits-stat-grid > .bits-stat {
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: 1.5rem 1rem;
  margin: 0;
  text-align: center;
  box-shadow: var(--b-shadow-sm);
}
.bits-stat-value {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 2.1rem !important;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 .35rem !important;
  background: linear-gradient(135deg, var(--b-blue), var(--b-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: none;
}
@supports not (background-clip: text) {
  .bits-stat-value { color: var(--b-blue); }
}
.bits-stat-label {
  margin: 0 !important;
  font-size: .82rem !important;
  font-weight: 600;
  color: var(--b-gray) !important;
  letter-spacing: .01em;
  line-height: 1.4;
  max-width: none;
}

/* ── Suburb / coverage pills ──────────────────────────────────────────── */
.bits-suburb-pills,
.bits-area-pills {
  list-style: none !important;
  padding: 0 !important;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}
.bits-suburb-pills { margin: 1.6rem auto 0 !important; }
.bits-area-pills   { margin: 2.25rem auto 0 !important; }

.bits-suburb-pills li,
.bits-area-pills li {
  background: var(--b-light);
  border: 1px solid var(--b-border);
  border-radius: 100px;
  padding: .42rem 1.05rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--b-navy);
}
.bits-suburb-pills li::before,
.bits-area-pills li::before { content: none !important; }

/* the first pills are the page's own suburbs, so give them the accent */
.bits-area-pills li:nth-child(-n+5),
.bits-suburb-pills li {
  background: rgba(21, 101, 192, .08);
  border-color: rgba(21, 101, 192, .22);
  color: var(--b-blue);
}

@media (max-width: 781px) {
  .bits-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .bits-stat-value { font-size: 1.75rem !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   BLOG ARCHIVE + ABOUT
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Archive header ───────────────────────────────────────────────────────
   The archive previously rendered <!-- wp:query-title {"type":"archive"} -->,
   which outputs nothing at all on the posts-page (it is meant for category and
   tag archives). The blog listing therefore had no H1 and no introduction -
   it opened straight onto a stack of post titles. */
.bits-archive-title {
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0 auto;
  max-width: 20ch;
}
.bits-archive-sub {
  color: rgba(255,255,255,.82) !important;
  max-width: 60ch;
  margin: .9rem auto 0 !important;
  font-size: 1.05rem;
}

/* ── Archive card grid ────────────────────────────────────────────────── */
.bits-archive-grid {
  gap: 1.25rem !important;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}
.bits-archive-band .bits-post-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.bits-archive-band .bits-post-card .wp-block-post-excerpt {
  margin-top: auto;
}

/* pagination: plain numerals, current page marked */
.bits-archive-pagination {
  margin-top: 2.75rem !important;
  gap: .4rem !important;
  align-items: center;
}
.bits-archive-pagination a,
.bits-archive-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .6rem;
  border: 1px solid var(--b-border);
  border-radius: 9px;
  background: #fff;
  color: var(--b-navy);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s var(--b-ease), color .2s var(--b-ease), border-color .2s var(--b-ease);
}
.bits-archive-pagination a:hover {
  background: var(--b-light);
  border-color: #c7d6ea;
  color: var(--b-blue);
}
.bits-archive-pagination .page-numbers.current {
  background: var(--b-blue);
  border-color: var(--b-blue);
  color: #fff;
}
.bits-archive-pagination .wp-block-query-pagination-previous,
.bits-archive-pagination .wp-block-query-pagination-next { font-weight: 600; }

/* ── About: value cards ───────────────────────────────────────────────── */
.bits-value-grid,
.bits-coverage-grid,
.bits-partner-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}
.bits-value-grid    { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.bits-coverage-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.bits-partner-grid  { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.bits-value-grid > .bits-value-card,
.bits-coverage-grid > .bits-coverage-card {
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: 1.6rem;
  margin: 0;
  box-shadow: var(--b-shadow-sm);
  transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease), border-color .25s var(--b-ease);
}
.bits-value-grid > .bits-value-card:hover,
.bits-coverage-grid > .bits-coverage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-shadow-lg);
  border-color: #c7d6ea;
}
.bits-value-grid h3,
.bits-coverage-grid h3 {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin: 0 0 .5rem !important;
  font-size: 1.04rem;
  color: var(--b-navy);
}
.bits-value-grid h3::before,
.bits-coverage-grid h3::before { content: none !important; }
.bits-value-grid p,
.bits-coverage-grid p {
  margin: 0 !important;
  color: var(--b-gray);
  font-size: .93rem;
  line-height: 1.65;
  max-width: none;
  text-align: left;
}

/* value cards get the same gradient top rule as the service cards */
.bits-value-grid > .bits-value-card {
  position: relative;
  overflow: hidden;
  padding-top: 1.9rem;
}
.bits-value-grid > .bits-value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--b-blue), var(--b-cyan));
  opacity: 0;
  transition: opacity .25s var(--b-ease);
}
.bits-value-grid > .bits-value-card:hover::before { opacity: 1; }

/* ── About: partner cards in a grid (homepage uses columns) ───────────── */
.bits-partner-grid > .bits-partner-card {
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: 1.5rem 1.25rem;
  margin: 0;
  text-align: center;
}
.bits-partner-grid > .bits-partner-card p:not(.bits-partner-name) {
  margin: .25rem 0 0 !important;
  color: var(--b-gray);
  font-size: .84rem;
  max-width: none;
  text-align: center;
}

/* stats band sits on white here, so the cards need a visible edge */
.bits-stats-band .bits-stat-grid > .bits-stat { background: var(--b-light); }

@media (max-width: 781px) {
  .bits-value-grid,
  .bits-coverage-grid { grid-template-columns: 1fr; }
  .bits-partner-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════
   SHOP (WooCommerce product archive)
   The shop used WooCommerce's stock archive-product template: no hero, no
   filters, and a bare product grid. The theme now ships its own template with
   a hero band and a filters sidebar; these rules dress it.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────────────────
   textAlign on the heading block does not survive programmatic serialisation,
   so the alignment is set here rather than relying on has-text-align-center. */
.bits-shop-hero .bits-shop-title,
.bits-shop-hero .bits-shop-sub {
  text-align: center !important;
  margin-inline: auto;
}
.bits-shop-hero .bits-shop-title {
  letter-spacing: -.02em;
  text-wrap: balance;
  max-width: 22ch;
  margin-bottom: .8rem;
}
.bits-shop-hero .bits-shop-sub {
  color: rgba(255,255,255,.84) !important;
  max-width: 64ch;
  font-size: 1.05rem;
}
.bits-shop-hero .bits-trust-chips li {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  color: #fff;
  backdrop-filter: blur(6px);
}
.bits-shop-hero .bits-trust-chips li::before { color: var(--b-cyan); }

/* ── Layout ───────────────────────────────────────────────────────────── */
.bits-shop-band .wc-block-breadcrumbs { margin-bottom: 1.5rem; font-size: .84rem; }
.bits-shop-layout { align-items: flex-start; }

/* ── Filters sidebar ──────────────────────────────────────────────────── */
.bits-shop-sidebar {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--b-shadow-sm);
}
.admin-bar .bits-shop-sidebar { top: 128px; }

.bits-filter-block + .bits-filter-block {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--b-border);
}
.bits-filter-heading {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin: 0 0 .7rem !important;
  font-family: var(--wp--preset--font-family--heading);
  font-size: .82rem !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--b-navy);
}
.bits-filter-heading::before { content: none !important; }

/* the category list runs to 100+ terms; cap it and let it scroll */
.bits-shop-sidebar .wc-block-product-filter-checkbox-list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: .3rem;
}
.bits-shop-sidebar .wc-block-product-filter-checkbox-list::-webkit-scrollbar { width: 6px; }
.bits-shop-sidebar .wc-block-product-filter-checkbox-list::-webkit-scrollbar-thumb {
  background: #d7dfea;
  border-radius: 6px;
}
.bits-shop-sidebar label,
.bits-shop-sidebar .wc-block-product-filter-checkbox-list__label {
  font-size: .86rem;
  line-height: 1.45;
  color: var(--b-dark);
}

/* ── Toolbar (result count + sorting) ─────────────────────────────────── */
.bits-shop-toolbar {
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--b-border);
}
.bits-shop-toolbar .wc-block-product-results-count {
  margin: 0;
  color: var(--b-gray);
  font-size: .88rem;
}
.bits-shop-toolbar select {
  border: 1px solid var(--b-border);
  border-radius: 9px;
  padding: .45rem 2rem .45rem .7rem;
  font-size: .86rem;
  color: var(--b-navy);
  background-color: #fff;
}

/* ── Product cards ────────────────────────────────────────────────────── */
.bits-shop-main .wc-block-product-template { gap: 1.1rem !important; }
.bits-shop-main li.wc-block-product {
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease), border-color .25s var(--b-ease);
}
.bits-shop-main li.wc-block-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-shadow-md);
  border-color: #c7d6ea;
}
.bits-shop-main .wc-block-components-product-image {
  margin-bottom: .9rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--b-light);
}
.bits-shop-main .wc-block-components-product-image img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  width: 100%;
  mix-blend-mode: multiply;
}
.bits-shop-main .wp-block-post-title {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin: 0 0 .6rem !important;
  font-size: .86rem !important;
  line-height: 1.45;
  font-weight: 600;
  /* distributor titles run very long; cap to keep the grid even */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bits-shop-main .wp-block-post-title::before { content: none !important; }
.bits-shop-main .wp-block-post-title a { color: var(--b-navy); text-decoration: none; }
.bits-shop-main li.wc-block-product:hover .wp-block-post-title a { color: var(--b-blue); }

.bits-shop-main .wc-block-components-product-price {
  margin-top: auto;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  color: var(--b-navy);
  font-size: 1.08rem;
}
.bits-shop-main .wp-block-button__link,
.bits-shop-main .wc-block-components-product-button a {
  width: 100%;
  text-align: center;
  font-size: .86rem;
  margin-top: .75rem;
}

/* ── Pagination ───────────────────────────────────────────────────────── */
.bits-shop-main .wp-block-query-pagination { margin-top: 2.5rem; justify-content: center; gap: .4rem; }
.bits-shop-main .wp-block-query-pagination .page-numbers,
.bits-shop-main .wp-block-query-pagination a {
  display: inline-grid;
  place-items: center;
  min-width: 38px; height: 38px;
  padding: 0 .6rem;
  border: 1px solid var(--b-border);
  border-radius: 9px;
  background: #fff;
  color: var(--b-navy);
  font-size: .88rem; font-weight: 600;
  text-decoration: none;
}
.bits-shop-main .wp-block-query-pagination .page-numbers.current {
  background: var(--b-blue); border-color: var(--b-blue); color: #fff;
}

@media (max-width: 900px) {
  /* stack: filters become a normal block above the grid, not a sticky rail */
  .bits-shop-layout { flex-wrap: wrap !important; }
  .bits-shop-layout > .wp-block-column { flex-basis: 100% !important; }
  .bits-shop-sidebar { position: static; margin-bottom: 1.5rem; }
  .bits-shop-sidebar .wc-block-product-filter-checkbox-list { max-height: 200px; }
}

/* ── Product specification table ──────────────────────────────────────────
   Distributor specs arrive as tab-separated label/value pairs. The original
   import collapsed all whitespace, so they rendered as one run-on paragraph;
   they are now a real table and need to read like a spec sheet. */
.bits-spec-table {
  margin: 1.25rem 0 1.75rem;
  overflow-x: auto;
}
.bits-spec-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  overflow: hidden;
  font-size: .9rem;
}
.bits-spec-table tbody tr:nth-child(odd) { background: var(--b-light); }
.bits-spec-table th,
.bits-spec-table td {
  padding: .7rem .9rem;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--b-border);
  line-height: 1.55;
}
.bits-spec-table tbody tr:last-child th,
.bits-spec-table tbody tr:last-child td { border-bottom: 0; }
.bits-spec-table th {
  width: 34%;
  min-width: 150px;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  color: var(--b-navy);
  white-space: normal;
}
.bits-spec-table td { color: var(--b-gray); }

/* supplementary marketing image that ships inside the description */
.bits-spec-image {
  margin: 1.5rem 0;
  text-align: center;
}
.bits-spec-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--b-radius);
  border: 1px solid var(--b-border);
}

@media (max-width: 600px) {
  .bits-spec-table table { font-size: .84rem; }
  .bits-spec-table th { width: 42%; min-width: 0; }
  .bits-spec-table th, .bits-spec-table td { padding: .55rem .6rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTACT / GET A QUOTE
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Contact method cards ─────────────────────────────────────────────── */
.bits-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: left;
}
.bits-contact-grid > .bits-contact-card {
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: 1.4rem;
  margin: 0;
  box-shadow: var(--b-shadow-sm);
  transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease), border-color .25s var(--b-ease);
}
.bits-contact-grid > .bits-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--b-shadow-md);
  border-color: #c7d6ea;
}
.bits-contact-grid h3 {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin: 0 0 .4rem !important;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--b-blue);
}
.bits-contact-grid h3::before { content: none !important; }
.bits-contact-grid p {
  margin: 0 !important;
  max-width: none;
  text-align: left;
  color: var(--b-navy);
  font-size: .95rem;
  line-height: 1.55;
  font-weight: 600;
}
.bits-contact-grid p + p { margin-top: .2rem !important; font-weight: 400; color: var(--b-gray); }
.bits-contact-grid a { color: var(--b-navy); text-decoration: none; }
.bits-contact-grid a:hover { color: var(--b-blue); text-decoration: underline; }

/* ── Quote forms, restored as an accordion ────────────────────────────────
   The original page had these three behind tabs. The import dropped the tab
   UI and left all three forms stacked, so a visitor arriving from a "Get a
   Quote" button met three long forms in a row. One open panel at a time. */
.bits-form-accordion {
  display: block;
  max-width: 820px;
  margin: 2.5rem auto 0;
  text-align: left;
}
.bits-form-panel {
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  margin-bottom: .85rem;
  overflow: hidden;
  transition: box-shadow .2s var(--b-ease), border-color .2s var(--b-ease);
}
.bits-form-panel[open] {
  box-shadow: var(--b-shadow-md);
  border-color: #c7d6ea;
}
.bits-form-panel > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.4rem;
  position: relative;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--b-navy);
}
.bits-form-panel > summary::-webkit-details-marker { display: none; }
.bits-form-panel > summary::after {
  content: "";
  position: absolute;
  right: 1.4rem; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--b-blue);
  border-bottom: 2px solid var(--b-blue);
  transform: rotate(45deg);
  transition: transform .25s var(--b-ease);
}
.bits-form-panel[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.bits-form-panel > summary:hover { background: var(--b-light); }
.bits-form-panel > p {
  margin: 0 !important;
  padding: 0 1.4rem .4rem;
  color: var(--b-gray);
  font-size: .92rem;
  max-width: none;
}
.bits-form-panel .bits-form {
  margin: 0 !important;
  padding: 1rem 1.4rem 1.5rem;
  max-width: none;
  background: none;
  border: 0;
}
/* the panel summary already names the form */
.bits-form-panel .bits-form-title { display: none; }

@media (max-width: 781px) {
  .bits-contact-grid { grid-template-columns: 1fr 1fr; }
  .bits-form-panel > summary { font-size: .95rem; padding-right: 2.6rem; }
}
@media (max-width: 480px) {
  .bits-contact-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   BRAND MARK
   The header and footer both carry the icon logo beside the wordmark. The
   artwork is a rounded square with its own transparent corners, so it needs
   no extra masking - just consistent sizing and a little breathing room.
   ══════════════════════════════════════════════════════════════════════════ */
.bits-brand,
.bits-footer-brand { gap: .6rem !important; }

.bits-brand .wp-block-site-logo,
.bits-footer-brand .wp-block-site-logo { margin: 0; line-height: 0; }

.bits-brand .wp-block-site-logo img,
.bits-footer-brand .wp-block-site-logo img {
  display: block;
  border-radius: 9px;
  /* the mark sits on navy in both places; a faint ring keeps its edge visible */
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 2px 8px rgba(0,0,0,.28);
}

.bits-brand .wp-block-site-title,
.bits-footer-brand .wp-block-site-title {
  margin: 0 !important;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  letter-spacing: -.01em;
}
.bits-brand .wp-block-site-title { font-size: 1.12rem; }
.bits-footer-brand .wp-block-site-title { font-size: 1.15rem; }

/* the tagline is for search results and the browser tab, not the header */
.site-header .wp-block-site-tagline { display: none; }

@media (max-width: 420px) {
  .bits-brand .wp-block-site-logo img { width: 34px !important; height: 34px !important; }
  .bits-brand .wp-block-site-title { font-size: 1rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SHOP FRONT
   Layout follows the conventions of Australian computer retail — category
   grid, new-arrivals row, brand strip — but every value below comes from the
   BITS Perth palette and type scale already defined in theme.json. Copy is
   limited to facts published elsewhere on the site; no offers are invented.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Shop by category ─────────────────────────────────────────────────── */
.bits-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.bits-cat-grid > .bits-cat-tile {
  position: relative;
  margin: 0;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  text-align: center;
  overflow: hidden;
  transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease), border-color .25s var(--b-ease);
}
.bits-cat-grid > .bits-cat-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--b-blue), var(--b-cyan));
  opacity: 0;
  transition: opacity .25s var(--b-ease);
}
.bits-cat-grid > .bits-cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-shadow-md);
  border-color: #c7d6ea;
}
.bits-cat-grid > .bits-cat-tile:hover::before { opacity: 1; }

.bits-cat-name {
  margin: 0 !important;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: .98rem;
  max-width: none;
  text-align: center;
}
.bits-cat-name a { color: var(--b-navy); text-decoration: none; }
/* make the whole tile clickable without nesting interactive elements */
.bits-cat-name a::after { content: ""; position: absolute; inset: 0; }
.bits-cat-tile:hover .bits-cat-name a { color: var(--b-blue); }
.bits-cat-count {
  margin: .3rem 0 0 !important;
  font-size: .82rem;
  color: var(--b-gray);
  max-width: none;
  text-align: center;
}

/* ── New arrivals ─────────────────────────────────────────────────────── */
.bits-new-arrivals .wc-block-product-template {
  gap: 1.1rem !important;
  margin: 2.5rem 0 0 !important;
  padding: 0;
  list-style: none;
}
.bits-new-arrivals li.wc-block-product { margin: 0; padding: 0; }

.bits-shop-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: 1rem;
  transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease), border-color .25s var(--b-ease);
}
.bits-shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-shadow-md);
  border-color: #c7d6ea;
}
.bits-shop-card .wc-block-components-product-image {
  margin-bottom: .85rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--b-light);
}
.bits-shop-card .wc-block-components-product-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}
.bits-shop-card .wp-block-post-title {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin: 0 0 .55rem !important;
  font-size: .86rem !important;
  line-height: 1.45;
  font-weight: 600;
  /* distributor titles run long; keep every card the same height */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bits-shop-card .wp-block-post-title::before { content: none !important; }
.bits-shop-card .wp-block-post-title a { color: var(--b-navy); text-decoration: none; }
.bits-shop-card:hover .wp-block-post-title a { color: var(--b-blue); }
.bits-shop-card .wc-block-components-product-price {
  margin-top: auto;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  color: var(--b-navy);
  font-size: 1.05rem;
}
.bits-shop-card .wp-block-button__link,
.bits-shop-card .wc-block-components-product-button a {
  width: 100%;
  text-align: center;
  font-size: .84rem;
  margin-top: .7rem;
}

/* ── Shop by brand ────────────────────────────────────────────────────── */
.bits-brand-chips {
  list-style: none !important;
  padding: 0 !important;
  margin: 2.5rem auto 0 !important;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.bits-brand-chips li { margin: 0; }
.bits-brand-chips li::before { content: none !important; }
.bits-brand-chips a {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  padding: .55rem 1.1rem;
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: 100px;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  font-size: .9rem;
  color: var(--b-navy);
  text-decoration: none;
  transition: background .2s var(--b-ease), border-color .2s var(--b-ease), color .2s var(--b-ease);
}
.bits-brand-chips a:hover {
  background: var(--b-blue);
  border-color: var(--b-blue);
  color: #fff;
}
.bits-brand-chips a span {
  font-size: .76rem;
  font-weight: 500;
  color: var(--b-gray);
}
.bits-brand-chips a:hover span { color: rgba(255,255,255,.8); }

/* the has-photo tag is an internal gate, not customer-facing */
.tagged_as a[href*="has-photo"],
.wc-block-components-product-tags a[href*="has-photo"] { display: none; }

@media (max-width: 781px) {
  .bits-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .bits-new-arrivals .wc-block-product-template { gap: .75rem !important; }
  .bits-brand-chips { gap: .45rem; }
  .bits-brand-chips a { font-size: .84rem; padding: .45rem .9rem; }
}

/* ── Shop-front section headings ──────────────────────────────────────────
   These bands live in the archive-product TEMPLATE, not inside
   .entry-content, so the centring rules written for page content never
   reached them. (textAlign on a heading also does not survive programmatic
   serialisation, so the alignment has to be set here regardless.) */
.bits-cat-band > h2,
.bits-arrivals-band > h2,
.bits-brand-band > h2 {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin: 0 auto !important;
  text-align: center;
  max-width: 26ch;
  text-wrap: balance;
}
.bits-cat-band > h2::before,
.bits-arrivals-band > h2::before,
.bits-brand-band > h2::before { content: none !important; }

.bits-cat-band > .bits-eyebrow,
.bits-arrivals-band > .bits-eyebrow,
.bits-brand-band > .bits-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--wp--preset--font-family--heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--b-blue);
  margin: 0 0 .6rem !important;
  background: none;
  border: 0;
  padding: 0;
}

/* the single intro line under each heading */
.bits-cat-band > p:not(.bits-eyebrow),
.bits-arrivals-band > p:not(.bits-eyebrow),
.bits-brand-band > p:not(.bits-eyebrow) {
  text-align: center;
  max-width: 62ch;
  margin: .75rem auto 0 !important;
  color: var(--b-gray);
  font-size: 1.02rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE NAVIGATION FIX
   The overlay opened but rendered as a thin strip with the links off-view.
   Cause: .site-header carries backdrop-filter, and any filter/backdrop-filter
   establishes a CONTAINING BLOCK for fixed-position descendants. The nav
   overlay uses position:fixed, so it was sizing itself against the header
   (about 60px tall) instead of the viewport.
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. Drop the blur on small screens. It is decorative, and it is what breaks
      the overlay. Kept on desktop where no overlay is used. */
@media (max-width: 781px) {
  .site-header { backdrop-filter: none !important; }
}

/* 2. Belt and braces: pin the overlay to the viewport explicitly, so a future
      filter or transform on an ancestor cannot break it again. */
.wp-block-navigation__responsive-container.is-menu-open {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  z-index: 100000 !important;
  padding: 1.5rem !important;
  overflow-y: auto;
}
.admin-bar .wp-block-navigation__responsive-container.is-menu-open { top: 46px !important; }

/* 3. Tap targets. The hamburger rendered at 24x24; 44x44 is the accepted
      minimum for a reliable thumb press. */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
  width: 26px;
  height: 26px;
}
.wp-block-navigation__responsive-container-open { color: #fff !important; }
.wp-block-navigation__responsive-container-open:hover {
  background: rgba(255,255,255,.12);
}
.wp-block-navigation__responsive-container-close {
  color: #fff !important;
  top: 1.25rem !important;
  right: 1.25rem !important;
}

/* 4. Readable menu inside the overlay */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 3.5rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > li > a,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: 1.05rem;
  padding-block: .6rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-left: .9rem !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a {
  color: rgba(255,255,255,.82) !important;
  font-size: .95rem;
}
/* the cyan underline is a desktop affordance; pointless in the overlay */
.wp-block-navigation__responsive-container.is-menu-open a::after { content: none !important; }

/* 5. Mobile header breathing room — logo, CTA and burger were jammed together */
@media (max-width: 600px) {
  .bits-header-cta .wp-block-button__link {
    padding: .5rem .85rem;
    font-size: .8rem;
  }
  .bits-brand .wp-block-site-title { font-size: .98rem; }
  .bits-nav-group { gap: .35rem !important; }
}
