/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/
/* Age gate: "Remember me on this device" is hidden per owner request (markup and age-gate.js logic kept; unchecked = session only). */
.sg-age-gate__remember[data-sg-age-remember-wrap] { display: none; }
/* Age gate "No": solid white, not the translucent secondary fill (owner request). */
.sg-age-gate .sg-age-gate__actions .sg-btn--secondary:not(:hover) { background-color: var(--sg-color-white); }

/* Design export base (tokens/base.css): balanced headings, no orphaned last words in paragraphs. */
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Single Job (template "Single Job"): back link and the role description (post content). */
.sg-job__back { display: inline-flex; align-items: center; gap: 0.375rem; margin-bottom: var(--sg-space-xs); font: 600 var(--sg-text-sm)/1.4286 var(--sg-font-body); color: var(--sg-color-brand-600); text-decoration: none; }
.sg-job__back::before { content: ""; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: url(/wp-content/uploads/chevron-left.svg) center / contain no-repeat; mask: url(/wp-content/uploads/chevron-left.svg) center / contain no-repeat; }
.sg-job__back:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.sg-job__body { max-width: 45rem; font: 400 var(--sg-text-base)/1.6 var(--sg-font-body); color: var(--sg-color-ink); }
.sg-job__body > * { margin: 0; }
.sg-job__body h2 { margin-top: var(--sg-space-xl); margin-bottom: var(--sg-space-xs); font: 400 var(--sg-text-xl)/1.2 var(--sg-font-display); color: var(--sg-color-brand-900); }
.sg-job__body h2:first-child { margin-top: 0; }
.sg-job__body p + p { margin-top: var(--sg-space-xs); }
.sg-job__body ul { display: grid; gap: var(--sg-space-2xs); padding: 0; list-style: none; }
.sg-job__body li { position: relative; padding-left: 1.75rem; }
.sg-job__body li::before { content: ""; position: absolute; top: 0.2rem; left: 0; width: 1.125rem; height: 1.125rem; background: var(--sg-color-brand-600); -webkit-mask: url(/wp-content/uploads/check.svg) center / contain no-repeat; mask: url(/wp-content/uploads/check.svg) center / contain no-repeat; }

/* Google reviews (home #reviews, the Google section): native Bricks nestable slider (.sg-gr-slider, Splide) looping the Places API
   reviews. Arrows sit on the left and right edges, styled like the site's round carousel buttons (.sg-carousel__btn). */
#reviews .sg-gr-slider { min-width: 0; padding-bottom: var(--sg-space-l); }
@media (min-width: 992px) { #reviews .sg-reviews__row > .sg-gr-slider { grid-column: span 3; } }
#reviews .sg-gr-slider .splide__list { align-items: stretch; }
#reviews .sg-gr-slider .splide__slide { display: flex; height: auto; }
#reviews .sg-gr-slider .splide__slide > .sg-review-card { flex: 1; }
#reviews .sg-gr-slider > .splide__arrows > .splide__arrow {
	width: var(--sg-tap-target); height: var(--sg-tap-target); padding: 0;
	border: 1px solid var(--sg-color-border); border-radius: var(--sg-radius-pill);
	background-color: var(--sg-color-white); color: var(--sg-color-ink); box-shadow: var(--sg-shadow-card); opacity: 1;
}
#reviews .sg-gr-slider > .splide__arrows > .splide__arrow:disabled { opacity: 0.4; }
#reviews .sg-gr-slider > .splide__arrows > .splide__arrow:focus-visible { outline: 0.125rem solid var(--sg-color-brand-700); outline-offset: 0.125rem; }
#reviews .sg-gr-slider > .splide__arrows > .splide__arrow svg { width: 1.25rem; height: 1.25rem; }
#reviews .sg-gr-slider > .splide__arrows > .splide__arrow--prev { left: calc(var(--sg-tap-target) / -2); }
#reviews .sg-gr-slider > .splide__arrows > .splide__arrow--next { right: calc(var(--sg-tap-target) / -2); }
/* Mobile: swipe and dots only (Live from Google). */
@media (max-width: 767px) { #reviews .sg-gr-slider > .splide__arrows { display: none; } }
#reviews .sg-gr-slider > .splide__pagination { bottom: 0; }
#reviews .sg-gr-slider > .splide__pagination .splide__pagination__page { background-color: color-mix(in srgb, var(--sg-color-brand-300) 35%, transparent); }
#reviews .sg-gr-slider > .splide__pagination .splide__pagination__page.is-active { background-color: var(--sg-color-brand-500); }
#reviews .sg-review-card__body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }

/* Live Google maps (Bricks Map element) placed in the frames that held the static map images: the image rules of
   .sg-about__map / .sg-store-info__map (img stretched and cropped, link covering the frame) must not hit the map's
   own tiles and links. */
.sg-about__map > .brxe-map { width: 100%; height: 100%; }
.sg-about__map .brxe-map img,
.sg-store-info .sg-store-info__map.brxe-map img { display: inline; width: auto; height: auto; max-width: none; max-height: none; object-fit: fill; }
.sg-about__map .brxe-map a { position: static; inset: auto; display: inline; width: auto; height: auto; }
/* Map info box (Bricks .infoBox on marker click): compact, site fonts, so it fits the short map frames. */
.brxe-map .infoBox { padding: var(--sg-space-xs) var(--sg-space-s); border-radius: var(--sg-radius-sm); background: var(--sg-color-white); box-shadow: var(--sg-shadow-card); font-family: var(--sg-font-body); }
.brxe-map .infoBox .title { margin: 0 1.25rem 0.25rem 0; font: 600 1rem/1.3 var(--sg-font-body); letter-spacing: 0; color: var(--sg-color-brand-900); }
.brxe-map .infoBox .subtitle,
.brxe-map .infoBox .content { margin: 0; padding: 0; list-style: none; font-size: var(--sg-text-sm); line-height: 1.4; color: var(--sg-color-ink-muted); }
.brxe-map .infoBox .close-infobox { top: 0.25rem; right: 0.5rem; font-size: 1.25rem; line-height: 1; cursor: pointer; }
/* Bricks map pin: a 26x38 SVG drawn in a 40x40 box; cover (from the map-frame image rules) crops its top and bottom. */
.sg-about__map .brxe-map .brx-google-marker img,
.sg-store-info .brxe-map .brx-google-marker img { object-fit: contain; }

/* Header aligned with the page content: .sg-header__inner already has the container width, so its extra side padding
   pushed the logo and the Shop Now button one gutter inside the content edge. */
@media (min-width: 992px) {
	.sg-header .sg-header__inner { padding-inline: 0; }
}
/* Below 992px the bar is full width: one gutter on the right (Shop Now), and on the left one gutter minus the burger
   button's 0.875rem inner padding, so the menu icon sits on the content edge. */
@media (max-width: 991px) {
	html body .sg-header .sg-header__inner { padding-inline: calc(var(--sg-gutter) - 0.875rem) var(--sg-gutter); }
}

/* Home hero, phones: leave Figma's photo band (bag in view) between the buttons and the brand strip.
   The Bricks class has this 20rem rule, but a higher-specificity desktop rule (6rem) overrides it. */
@media (max-width: 767px) { .sg-hero.sg-hero.sg-hero.sg-hero .sg-hero__row.brxe-div { padding-bottom: 20rem; } }

/* Home hero, desktop: taller than the Figma frame (owner request, 2026-11-11). */
@media (min-width: 992px) { .sg-hero.sg-hero.sg-hero.sg-hero .sg-hero__row.brxe-div { min-height: 40rem; } }
