/* Bathurst & Co: details the block settings cannot express. Colours and type live in theme.json. */

.wp-site-blocks > * { margin-block-start: 0 !important; }

/* Header */
.bco-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .bco-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bco-header { top: 46px; } }
.bco-topbar > * { flex: 1 1 0; }
.bco-topbar .bco-logo { flex: 0 1 300px; margin: 0 !important; }
.bco-topbar .bco-logo img { display: block; width: 300px; max-width: 100%; height: auto; }
.bco-topbar__left p { margin: 0; white-space: nowrap; letter-spacing: .06em; }
.bco-topbar__left a { text-decoration: none; }
.bco-topbar .wc-block-mini-cart__button, .bco-topbar .wc-block-customer-account a { color: var(--wp--preset--color--parchment); }
.bco-navbar { border-bottom: 1px solid var(--wp--preset--color--stone); box-shadow: 0 1px 0 rgba(28,20,12,.03); }
.bco-mainnav .wp-block-navigation-item__content { padding: 1.15rem .95rem; text-decoration: none; }
.bco-mainnav .wp-block-navigation-item:hover > .wp-block-navigation-item__content { color: var(--wp--preset--color--gold); }
.bco-mainnav .wp-block-navigation__submenu-container { border: 0 !important; background: var(--wp--preset--color--parchment) !important; min-width: 250px !important; box-shadow: 0 14px 34px rgba(28,20,12,.14); padding: .4rem 0; }
.bco-mainnav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .65rem 1.2rem; text-transform: none; letter-spacing: .02em; font-size: .9rem; }
.bco-navsearch { margin: 0 0 0 .5rem; align-self: center; }
.bco-navsearch .wp-block-search__button { background: transparent; color: var(--wp--preset--color--ink); border: 0; padding: .5rem; }
.bco-navsearch .wp-block-search__input { border: 1px solid var(--wp--preset--color--stone); }
@media (max-width: 900px) {
	.bco-hide-mobile { display: none; }
	.bco-topbar .bco-logo, .bco-topbar .bco-logo img { width: 190px; }
	.bco-navbar { justify-content: space-between !important; }
}

/* Eyebrow labels (h4) */
h4.wp-block-heading { margin-bottom: .4rem; }

/* Light outline button for dark covers */
.wp-block-button.is-style-bco-light .wp-block-button__link { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.75); }
.wp-block-button.is-style-bco-light .wp-block-button__link:hover { background: var(--wp--preset--color--gold); border-color: var(--wp--preset--color--gold); }
.wp-block-button.is-style-bco-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); }

/* Hero */
.bco-hero { margin: 0 !important; }
.bco-hero .wp-block-cover__inner-container { max-width: 560px; }
.bco-hero .wp-block-cover__image-background { transition: transform 1.2s ease; }
.bco-hero__panel:hover .wp-block-cover__image-background { transform: scale(1.03); }
@media (max-width: 781px) { .bco-hero .wp-block-cover { min-height: 60vh !important; } }

/* Category tiles */
.bco-tiles { margin-bottom: 1.25rem; }
.bco-tile { overflow: hidden; }
.bco-tile h3 a { text-decoration: none; color: inherit; }
.bco-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.bco-tile .wp-block-cover__image-background { transition: transform .9s ease; }
.bco-tile:hover .wp-block-cover__image-background { transform: scale(1.05); }

/* Collection lists */
.bco-colllist { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; }
.bco-colllist li { padding: .7rem 0; border-top: 1px solid rgba(28,20,12,.12); font-size: .95rem; }
.bco-colllist li a { font-family: var(--wp--preset--font-family--serif); font-size: 1.3rem; text-decoration: none; }

/* Media/text bands */
.bco-band .wp-block-media-text__content { padding: var(--wp--preset--spacing--x-large) var(--wp--preset--spacing--large) !important; max-width: 680px; }
.bco-band { min-height: 560px; }

/* Title band */
.bco-titleband h1, .bco-titleband .wp-block-query-title { margin-top: .35rem; }
.bco-titleband .woocommerce-breadcrumb, .bco-titleband .wc-block-breadcrumbs { color: rgba(250,248,244,.75); letter-spacing: .06em; }

/* Product grids */
.bco-grid .wc-block-components-product-image, .bco-grid .wc-block-grid__product-image { background: var(--wp--preset--color--white); }
.bco-grid .wp-block-post-title { margin: .9rem 0 .25rem; line-height: 1.2; }
.bco-grid .wp-block-post-title a { text-decoration: none; }
.bco-grid li.wc-block-product, .bco-grid .wc-block-product { text-align: left; }
.bco-filters { border-right: 1px solid var(--wp--preset--color--stone); padding-right: 1.5rem; }
.bco-filters ul { list-style: none; padding-left: 0; }
.bco-filters ul ul { padding-left: .9rem; }
.bco-filters a { text-decoration: none; }
@media (max-width: 781px) { .bco-filters { border-right: 0; padding-right: 0; } }

/* Single product */
.bco-summary .bco-eyebrow { text-transform: uppercase; letter-spacing: .16em; color: var(--wp--preset--color--gold); }
.bco-summary .bco-eyebrow a { color: inherit; text-decoration: none; }
.bco-summary .wp-block-post-title { margin-top: .2rem; }
.bco-promise p { margin: 0; }
.woocommerce div.product form.cart .variations select { border: 1px solid var(--wp--preset--color--stone); padding: .55rem .6rem; background: #fff; min-width: 220px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { padding-bottom: .6rem; }
.woocommerce-tabs h2 { font-size: var(--wp--preset--font-size--large); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border-color: var(--wp--preset--color--stone); }

/* Term description below the grid */
.bco-termdesc:empty, .bco-termdesc:not(:has(.wp-block-term-description)) { display: none; }

/* Footer */
.bco-footer h4 { margin-top: 0; }
.bco-footlinks { list-style: none; padding: 0; margin: 0; }
.bco-footlinks li { margin: .35rem 0; }
.bco-footlinks a { text-decoration: none; }
.bco-footer .wp-block-columns { gap: var(--wp--preset--spacing--large); }

/* Enquiry form (shortcode) */
.bco-form { display: grid; gap: 1rem; max-width: 640px; }
.bco-form label { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .3rem; }
.bco-form input[type=text], .bco-form input[type=email], .bco-form input[type=tel], .bco-form select, .bco-form textarea { width: 100%; padding: .75rem .85rem; border: 1px solid #cfc6b6; background: #fff; font: inherit; }
.bco-form textarea { min-height: 160px; }
.bco-form .bco-hp { position: absolute; left: -9999px; }
.bco-form button { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--parchment); border: 1px solid var(--wp--preset--color--ink); padding: .95rem 1.9rem; font-family: var(--wp--preset--font-family--sans); font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; justify-self: start; }
.bco-form button:hover { background: var(--wp--preset--color--gold); border-color: var(--wp--preset--color--gold); }
.bco-notice { padding: 1rem 1.25rem; background: var(--wp--preset--color--stone); }

/* Long-form copy */
.entry-content h2, .wp-block-post-content h2 { margin-top: 2.6rem; }
.wp-block-post-content > p:first-of-type { font-size: 1.15rem; }

.bco-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(13,12,11,.15) 0%, rgba(13,12,11,.75) 100%) !important; opacity: 1 !important; }
.bco-hero h4 { opacity: .85; }
.bco-check { background: #f3e2a9; color: #1C140C; padding: 0 .2em; }
