/* Gauer schreibt: site customizations (loaded automatically after template.css) */

/* Fonts: self-hosted Barlow Semi Condensed (SIL OFL), latin subset */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-500.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2");
}

:root {
  --gs-font-condensed: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --gs-ink: #1a1a1a;
  --gs-accent: #2c6491;
  --gs-header-bg: #fff;
  --gs-header-line: #5d7c8c;
}

/* ==========================================================================
   Header: [Menu toggle] [Logo] [Phone]
   ========================================================================== */

.gs-header {
  z-index: 1030;
  background: var(--gs-header-bg);
  border-top: 2px solid var(--gs-header-line);
  color: var(--gs-ink);
  font-family: var(--gs-font-condensed);
}

.gs-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  min-height: 130px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

.gs-header__nav {
  justify-self: start;
}

.gs-header__brand {
  justify-self: center;
}

.gs-header__brand img {
  display: block;
  width: 270px;
  max-width: 100%;
  height: auto;
}

/* Menu toggle: burger when closed, X when open */
.gs-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: .25rem 0;
  border: 0;
  background: none;
  color: var(--gs-ink);
  font-family: inherit;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.gs-menu-toggle:focus-visible {
  outline: 2px solid var(--gs-accent);
  outline-offset: 4px;
}

.gs-menu-toggle__icon {
  position: relative;
  width: 28px;
  height: 22px;
  background: linear-gradient(var(--gs-accent), var(--gs-accent)) center / 100% 3px no-repeat;
  transition: background-size .2s ease;
}

.gs-menu-toggle__icon::before,
.gs-menu-toggle__icon::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gs-accent);
  border-radius: 2px;
  content: "";
  transition: transform .2s ease, top .2s ease, bottom .2s ease;
}

.gs-menu-toggle__icon::before {
  top: 0;
}

.gs-menu-toggle__icon::after {
  bottom: 0;
}

.gs-menu-toggle[aria-expanded="true"] .gs-menu-toggle__icon {
  background-size: 0 3px;
}

.gs-menu-toggle[aria-expanded="true"] .gs-menu-toggle__icon::before {
  top: calc(50% - 1.5px);
  transform: rotate(45deg);
}

.gs-menu-toggle[aria-expanded="true"] .gs-menu-toggle__icon::after {
  bottom: calc(50% - 1.5px);
  transform: rotate(-45deg);
}

/* Dropdown panel: hangs from the bottom edge of the header, aligned with the toggle */
.gs-menu-panel {
  position: absolute;
  top: 100%;
  left: 1rem;
  width: 265px;
  max-width: calc(100vw - 2rem);
  padding: .9rem 1.6rem 1.1rem;
  background: var(--gs-header-bg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.gs-menu-panel[hidden] {
  display: none;
}

.gs-menu-panel .mod-menu {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gs-menu-panel .mod-menu li {
  display: block;
  margin: 0;
}

.gs-menu-panel .mod-menu > li + li,
.gs-menu-panel .mod-menu .mod-menu__sub li {
  border-top: 1px solid var(--gs-ink);
}

.gs-menu-panel .mod-menu a,
.gs-menu-panel .mod-menu .nav-header,
.gs-menu-panel .mod-menu .separator {
  display: block;
  padding: .65rem 0 .55rem;
  color: var(--gs-ink);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
}

/* template.css underlines [aria-current] links */
.gs-menu-panel .mod-menu a[aria-current] {
  text-decoration: none;
}

.gs-menu-panel .mod-menu a:hover,
.gs-menu-panel .mod-menu a:focus-visible,
.gs-menu-panel .mod-menu .current > a {
  color: var(--gs-accent);
}

.gs-menu-panel .mod-menu .mod-menu__sub {
  margin: 0;
  padding: 0 0 0 1rem;
  list-style: none;
  border-top: 1px solid var(--gs-ink);
}

.gs-menu-panel__search {
  margin-top: .75rem;
}

/* Phone */
.gs-header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  font-size: 1.375rem;
  line-height: 1.15;
  text-align: right;
}

.gs-header__contact-label {
  font-weight: 500;
}

.gs-header__phone {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--gs-ink);
  font-weight: 700;
  text-decoration: none;
}

.gs-header__phone:hover,
.gs-header__phone:focus-visible {
  color: var(--gs-accent);
}

.gs-header__phone .fa-phone-volume {
  color: var(--gs-accent);
  font-size: .9em;
  transform: scaleX(-1);
}

/* SP Page Builder pages: hero sits flush under the header (template.css gives <main> a top margin) */
.com_sppagebuilder.view-page .container-component > main {
  margin-top: 0;
}

/* SP Page Builder full-width sections: sppagebuilder.js stretches them to the viewport with inline
   max-width/margins, but their row keeps Bootstrap's -15px gutter margins with no padded container
   around it, so the page overflows horizontally by 15px. Drop the gutter only for those sections. */
.sp-page-builder .sppb-section[style*="max-width"] > .sppb-container-inner > .sppb-row,
.sp-page-builder .sppb-section[style*="max-width"] > .sppb-row-container > .sppb-row {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 991.98px) {
  .gs-header__inner {
    min-height: 100px;
  }

  .gs-header__brand img {
    width: 210px;
  }

  .gs-menu-toggle,
  .gs-header__contact {
    font-size: 1.15rem;
  }
}

@media (max-width: 767.98px) {
  .gs-header__inner {
    min-height: 80px;
    padding-block: .75rem;
  }

  .gs-header__brand img {
    width: 160px;
  }

  .gs-menu-toggle__label,
  .gs-header__contact-label,
  .gs-header__phone-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .gs-header__phone .fa-phone-volume {
    font-size: 1.5rem;
  }
}
