@font-face {
  font-family: "Josefin Sans";
  src: url("pinterest/josefin-sans-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
/*
 * Shared navigation and footer for the Rebel Systems homepage and sales pages.
 */
:root { --navigation-min-height: 7.0625rem; }
.sales-header, .home-footer { --gutter: clamp(1.2rem, 4.2vw, 4rem); }
.sales-header {
  position: relative;
  z-index: 4;
  border-block-end: 1px solid #000;
  background: var(--header, var(--showit-header));
}
.sales-header .brand-header {
  position: relative;
  display: grid;
  align-items: center;
  min-height: var(--navigation-min-height);
  width: min(calc(100% - 2 * var(--gutter)), 85rem);
  margin-inline: auto;
}
.sales-header .brand-logo {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  justify-self: center;
  color: #000;
  font: clamp(2.45rem, 3.78vw, 3.375rem)/1 "Hit and Run", var(--body);
  text-decoration: none;
  text-transform: uppercase;
  padding-block: .125em;
}
.sales-header #main-nav {
  position: absolute;
  inset: 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  gap: .25rem clamp(.55rem, 2vw, 1.8rem);
  width: auto;
  padding: 0;
  pointer-events: none;
}
.sales-header .main-nav-group {
  display: flex;
  gap: clamp(.65rem, 5.2vw - 2.6rem, 3rem);
  align-items: center;
  pointer-events: auto;
}
.sales-header .brand-navigation a,
.sales-header .services-nav summary {
  color: #000;
  font: 600 .875rem/1.35 "Josefin Sans", var(--body);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.sales-header .brand-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}
.sales-header .main-nav-group > a { white-space: nowrap; }
.sales-header #main-nav a:hover { text-decoration: underline; }
.sales-header .services-nav { position: relative; }
.sales-header .services-nav summary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}
.sales-header .services-nav summary::-webkit-details-marker { display: none; }
.sales-header .services-nav summary::after {
  content: "";
  width: .38rem;
  height: .38rem;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  rotate: 45deg;
  translate: 0 -.1rem;
}
.sales-header .services-nav[open] summary::after { rotate: 225deg; translate: 0 .12rem; }
.sales-header .services-nav-links {
  position: absolute;
  z-index: 4;
  top: calc(100% + .15rem);
  inset-inline-start: 0;
  width: max-content;
  max-width: min(17rem, calc(100vw - 8rem));
  margin: 0;
  padding: .4rem;
  border: 1px solid var(--peach);
  border-radius: .9rem;
  background: var(--paper);
  box-shadow: 0 .55rem 1.3rem rgb(23 22 21 / .13);
  list-style: none;
}
.sales-header .services-nav-links a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem .7rem;
  border-radius: .5rem;
  font: 500 .875rem/1.45 var(--body);
  letter-spacing: normal;
  text-decoration: none;
  text-transform: none;
}
.sales-header .services-nav-links a:is(:hover, :focus-visible) { background: var(--apricot); }
.sales-header .menu-toggle {
  display: none;
  place-items: center;
  inline-size: 2.75rem;
  min-block-size: 2.75rem;
  margin: 0;
  padding: .4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sales-header .menu-toggle span {
  inline-size: 1.55rem;
  block-size: .14rem;
  background: var(--ink);
  box-shadow: 0 -.36rem var(--ink), 0 .36rem var(--ink);
}

.home-footer {
  border-block-start: 1px solid var(--peach);
  background: var(--apricot);
  font: 1rem/1.75 var(--body);
}
.home-footer .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-block-size: 3rem;
  max-inline-size: 100%;
  padding: .55rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 5rem;
  background: var(--coral);
  color: var(--ink);
  font: 600 .875rem/1.35 var(--body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.home-footer .button span { flex: none; }
.home-footer .button:hover { background: var(--peach); }
.home-footer-follow {
  grid-area: follow;
  justify-self: end;
  display: grid;
  justify-items: center;
  gap: .15rem;
  font: 600 .875rem/1.45 "Josefin Sans", var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-footer-follow .button {
  margin-block-end: .65rem;
  padding-inline: .85rem;
  letter-spacing: normal;
  text-transform: none;
}
.home-footer-icons { display: flex; align-items: center; }
.home-footer-icons a { display: grid; place-items: center; inline-size: 2.75rem; min-block-size: 2.75rem; }
.home-footer-icons svg { inline-size: 1.25rem; block-size: 1.25rem; fill: currentColor; }
.home-footer-main {
  display: grid;
  grid-template-areas: "wordmark services follow";
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4.4vw, 4rem);
  inline-size: min(100% - 2 * var(--gutter), 74rem);
  padding-block: clamp(2.25rem, 4.5vw, 3.85rem);
  margin-inline: auto;
}
.home-footer-wordmark {
  grid-area: wordmark;
  display: grid;
  justify-self: start;
  color: #000;
  font: clamp(2.2rem, 3.3vw, 3.4rem)/1.13 "Hit and Run", var(--body);
  text-align: start;
  text-decoration: none;
  text-transform: uppercase;
}
.home-footer-services {
  grid-area: services;
  justify-self: center;
  inline-size: min(100%, 27rem);
}
.home-footer-services ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-footer-services li { display: grid; }
.home-footer-services .button {
  padding-inline: .65rem;
  background: var(--paper);
}
.home-footer-services .button:is(:hover, :focus-visible) { background: var(--coral); }
.home-footer-photos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-footer-photos:focus-visible { outline-offset: -.22rem; }
.home-footer-photos img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 1; object-fit: cover; }
.home-footer-credit {
  display: grid;
  grid-template-areas: "copyright links credit";
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .3rem 1.25rem;
  padding: .4rem clamp(1.1rem, 2vw, 1.6rem);
  background: var(--paper);
  font-size: .8125rem;
}
.home-footer-credit p { grid-area: copyright; }
.home-footer-credit > a { grid-area: credit; justify-self: end; }
.home-footer-credit .home-footer-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(.7rem, 1.5vw, 1.3rem);
}
.home-footer-credit .home-footer-links a { font: inherit; }
.home-footer-credit a { text-decoration: none; }
.home-footer-credit a:hover { text-decoration: underline; }

@media (max-width: 62rem) {
  :root { --navigation-min-height: 4.4375rem; }
  .sales-header .brand-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(var(--navigation-min-height), auto);
    column-gap: .75rem;
    min-height: var(--navigation-min-height);
  }
  .sales-header .brand-logo { justify-self: start; font-size: clamp(1.35rem, 4.7vw, 1.5625rem); }
  .sales-header .menu-toggle:not([hidden]) { display: grid; }
  .sales-header #main-nav {
    position: static;
    grid-column: 1 / -1;
    justify-content: flex-start;
    row-gap: .45rem;
    padding-bottom: .6rem;
    pointer-events: auto;
  }
  .sales-header .main-nav-group { flex-wrap: wrap; gap: .3rem 1.05rem; }
  .sales-header .menu-toggle:not([hidden])[aria-expanded="false"] + #main-nav { display: none; }
}

@media (max-width: 47rem) {
  .home-footer-main {
    grid-template-areas: "wordmark" "services" "follow";
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 6vw, 2.25rem);
    max-inline-size: 30rem;
  }
  .home-footer-wordmark { font-size: clamp(2.65rem, 11vw, 3.4rem); }
  .home-footer-follow { justify-self: center; }
  .home-footer-photos {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - .3rem) / 2);
    gap: .3rem;
    overflow-x: auto;
    scroll-snap-type: inline proximity;
  }
  .home-footer-photos img { scroll-snap-align: start; }
  .home-footer-credit {
    grid-template-areas: "links" "copyright" "credit";
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
    padding-block-end: 1.15rem;
    text-align: center;
  }
  .home-footer-credit > a { justify-self: center; }
}

@media (forced-colors: active) {
  .sales-header .menu-toggle span { background: ButtonText; box-shadow: none; border-block: 1px solid ButtonText; }
}
