/* Base rules that used to come from Flatsome. Loaded before the theme styles. */
*,
*::before,
*::after { box-sizing: border-box; }

img { max-width: 100%; }
iframe,
video { max-width: 100%; }
figure { margin: 0; }

h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, pre { margin-top: 0; }

:root {
  --fs-color-primary: #ff7a00;
  --fs-experimental-link-color: #0c0c0d;
  --fs-experimental-link-color-hover: #ff7a00;
}

/* The page scrollbar is hidden  */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* Core global styles add an underline to links with specificity (0,1,0); keep our reset above it */
:root a:where(:not(.wp-element-button)) { text-decoration: none; }

body {
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  font-size: 100%;
  font-weight: 400;
  font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-style: normal;
}

button,
input,
select,
textarea { font-family: inherit; font-size: 100%; }

button,
.button { text-transform: none; }

.breadcrumbs { text-transform: none; }

/* links (Flatsome: link colour #0c0c0d, orange on hover, no underline) */
a { color: var(--text-main); text-decoration: none; }
a:hover { color: var(--fs-experimental-link-color-hover, #ff7a00); }
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 88px; /* above the chat widget */
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text-main);
  background: var(--background-white-to-black2);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}
.back-to-top[hidden] { display: none; }
.back-to-top:focus-visible { outline: 2px solid var(--text-tetriary); outline-offset: 2px; }

/* breadcrumb separator (Breadcrumb NavXT <i>): the font icon is gone, draw a chevron.
   A mask lets the colour follow the theme. */
.breadcrumbs i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  vertical-align: -1px;
  background-color: var(--text-tetriary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M4.5 2.25 8.25 6 4.5 9.75' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M4.5 2.25 8.25 6 4.5 9.75' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.breadcrumbs i::before { content: none; }


/* Visually hidden, still readable by screen readers (the WordPress standard block) */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  word-wrap: normal !important;
}

/* The skip link appears only while it has keyboard focus */
.screen-reader-text:focus,
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 20px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--button-primary-text-default, #fff);
  background: var(--button-primary-fill-default, #000);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
