*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--bh-font-body);
  font-size: var(--bh-fs-base);
  line-height: var(--bh-lh-base);
  color: var(--bh-color-text);
  background: var(--bh-color-surface);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bh-color-brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
  transition: color var(--bh-transition);
}

a:hover {
  color: var(--bh-color-brand-hover);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--bh-font-sans);
  color: var(--bh-color-title);
  line-height: var(--bh-lh-tight);
  font-weight: 700;
}

h1 { font-size: var(--bh-fs-3xl); }
h2 { font-size: var(--bh-fs-2xl); }
h3 { font-size: var(--bh-fs-xl); }
h4 { font-size: var(--bh-fs-lg); }

p { margin: 0 0 1em; }

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button,
input[type="submit"],
input[type="button"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: var(--bh-radius);
  background: var(--bh-color-brand) !important;
  background-color: var(--bh-color-brand) !important;
  color: #fff;
  font-family: var(--bh-font-sans);
  font-weight: 500;
  font-size: var(--bh-fs-sm);
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--bh-transition), background-color var(--bh-transition), transform var(--bh-transition), box-shadow var(--bh-transition);
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--bh-color-brand-hover) !important;
  background-color: var(--bh-color-brand-hover) !important;
  color: #fff;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
  background: var(--bh-color-brand) !important;
  background-color: var(--bh-color-brand) !important;
  color: #fff !important;
}

:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:hover {
  background: var(--bh-color-brand-hover) !important;
  background-color: var(--bh-color-brand-hover) !important;
  color: #fff !important;
}

button:focus-visible,
a:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bh-color-brand);
  outline-offset: 2px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
select,
textarea,
.woocommerce form .input-text,
.woocommerce form select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--bh-color-border-strong);
  border-radius: var(--bh-radius);
  background: var(--bh-color-surface);
  color: var(--bh-color-title);
  transition: border-color var(--bh-transition), box-shadow var(--bh-transition);
}

input:focus,
select:focus,
textarea:focus,
.woocommerce form .input-text:focus {
  border-color: var(--bh-color-brand);
  box-shadow: 0 0 0 3px rgba(195, 27, 35, 0.12);
  outline: 0;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  display: block;
  height: auto;
  left: var(--bh-gutter);
  top: var(--bh-gutter);
  width: auto;
  z-index: 100000;
  background: var(--bh-color-surface);
  color: var(--bh-color-brand);
  padding: 0.75rem 1rem;
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow);
}
