/*@import url("./PostlerFerguson-Light.otf");*/

@font-face {
    font-family: "Postler Ferguson Light";
    src: url("./PostlerFerguson-Light.otf") format("opentype");
}

* {
  box-sizing: border-box;
}

html {
  font-size: 1.125em;
  color: black;
}

body {
  --section-spacing: 3rem;
  --padding:1rem;
  font-family: "Postler Ferguson Light", Roboto, sans-serif;
  overflow-x: hidden;
}

body,
.section,
.section--child,
nav {
  background-color: whitesmoke;
}

.loader {
  position: fixed;
  z-index: 100;
  height: 100dvh;
  width: 100dvw;
  background-color: #282828;
  color: whitesmoke;
}

.loader.loaded {
  animation-name: fade;
  animation-duration: 1s;
  animation-timing-function: ease-in;
  animation-delay: 0;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.loader-logo {
  padding: var(--padding);
}

@keyframes fade {
  0% {
    opacity: 1;
  }
  99% {
    opacity: 0;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}
/** universal styles **/
a {
  text-decoration: none;
  color: black;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--section-spacing);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 25%);
  padding: var(--padding);
}

nav .logo {
  align-self: center;
  grid-column-start: 0;
}

nav .desktop-link {
  grid-column-start: 3;
  padding-left: calc(var(--padding) + 6px);
}

nav .social-icon {
  height: 1rem;
  width: 1rem;
}

nav .social-icons {
  grid-column-start: 4;
  display: flex;
  flex-direction: row;
  justify-content: end;
  gap: var(--padding);
}

.main {
  width: 100%;
}

.section {
  position: relative;
  width: 100dvw;
  background-color: whitesmoke;
  border-top: 2px solid white;
}

.section.cover {
  overflow: hidden;
  height: 100dvh;
}

.section--content {
  height: 100%;
  width: 100%;
}

.cover-title {
  font-size: clamp(2rem, 10vw, 9rem);
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.column h2 {
  text-decoration: underline;
  margin-bottom: 2rem;
}

.column p,
.column address {
  margin-bottom: 2rem;
  word-wrap: break-word;
}

.column {
  margin-bottom: 2rem;
  padding: var(--padding);
}

/*
*
* Section styles
*
*/
[data-section-title=contact] .columns .column:nth-child(1) {
  grid-column-start: 0;
}

[data-section-title=contact] .columns .column:nth-child(2) {
  grid-column-start: 3;
}

[data-section-title=contact] .columns .column:nth-child(3) {
  grid-column-start: 4;
}

/**mobile styles**/
@media (orientation: portrait), (hover: none) {
  .loader {
    height: 100dvh;
    width: 100dvw;
  }

  .desktop-link {
    display: none;
  }

  nav {
    background-color: whitesmoke;
    border-bottom: 2px solid white;
  }

  nav .social-icons {
    justify-content: end;
  }

  .social-icon {
    display: block;
  }

  .social-text {
    display: none;
  }

  .section {
    position: relative;
    z-index: 4;
    background-color: whitesmoke;
  }

  .section.cover {
    height: 100dvh;
  }

  .section--content.columns {
    display: flex;
    flex-direction: column;
  }

  .cover-title {
    max-width: 100%;
    position: absolute;
    bottom: 0;
    padding: var(--padding);
  }

  .column p,
.column address,
.column {
    margin-bottom: 0.5rem;
  }

  address + h2 {
    padding-top: 2rem;
  }

  .column:first-of-type > p {
    padding-top: var(--padding);
    padding-bottom: var(--padding);
  }
}
/**desktop styles (no js)**/
@media (hover: hover) {
  nav {
    background-color: transparent;
    border-bottom: none;
  }

  .section--title,
.child--title {
    position: relative;
    top: auto;
  }

  .section {
    position: relative;
  }

  .section:last-of-type {
    border-top: none;
  }

  .section--content.columns {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
  }

  .cover-title {
    position: absolute;
    bottom: 0;
    padding: var(--padding);
  }

  .social-icon {
    display: none;
  }

  .social-text {
    display: block;
  }
}
/** desktop styles (js) **/
@media (hover: hover) {
  .js-stacking .section {
    position: fixed;
  }

  .js-stacking .section:nth-of-type(1) {
    --section-offset: calc(1 * var(--section-spacing));
    height: calc(100vh - var(--section-offset));
    top: var(--section-offset);
    z-index: 4;
  }

  .js-stacking .section:nth-of-type(1) .section--child {
    height: calc(100vh - var(--section-offset));
  }

  .js-stacking .section:nth-of-type(2) {
    --section-offset: var(--section-spacing);
    top: var(--section-offset);
    z-index: 3;
  }
}
.pace {
  -webkit-pointer-events: none;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.pace-inactive {
  display: none;
}

.pace .pace-progress {
  background: #ffffff;
  position: fixed;
  z-index: 2000;
  bottom: 0;
  right: 100%;
  width: 100%;
  height: 10px;
}
