/*!
 * Custom Font Awesome subset for Dunbar Beddingfield
 * Only includes the specific icons used in the site
 * Optimized with fontTools to reduce file size from 155KB to 1.65KB
 */
:root, :host {
  --fa-style-family-classic: 'Font Awesome 6 Free';
  --fa-font-solid: normal 900 1em/1 'Font Awesome 6 Free'; 
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../libs/fontawesome/webfonts/subset/fa-solid-900-subset.woff2") format("woff2");
}

.fas,
.fa-solid {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
}

.fas::before,
.fa-solid::before {
  content: var(--fa);
}

/* Only the icons we need */
.fa-exclamation-triangle,
.fa-triangle-exclamation,
.fa-warning {
  --fa: "\f071";
}

.fa-hard-hat,
.fa-helmet-safety,
.fa-hat-hard {
  --fa: "\f807";
}

.fa-building {
  --fa: "\f1ad";
}

.fa-handshake {
  --fa: "\f2b5";
}

.fa-chevron-right {
  --fa: "\f054";
}

.fa-comment {
  --fa: "\f075";
}

.fa-shield-alt,
.fa-shield-halved {
  --fa: "\f3ed";
}

.fa-check-double {
  --fa: "\f560";
}

.fa-paper-plane {
  --fa: "\f1d8";
}

.fa-users {
  --fa: "\f0c0";
}

.fa-spinner {
  --fa: "\f110";
}

.fa-check {
  --fa: "\f00c";
}

.fa-times {
  --fa: "\f00d";
}

/* Animation classes */
.fa-spin {
  animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Reset default overlay scrolling so it doesn't create a second scrollbar */
#main-nav-overlay {
  height: 0 !important;
  overflow: hidden !important;
}

/* When the mobile nav is open, re-enable full-height scrolling */
body.nav-is-open #main-nav-overlay {
  height: 100% !important;
  overflow: auto !important;
}
