@font-face {
  font-family: "Norquay";
  src: url("fonts/Norquay.otf"), url("fonts/Norquay.ttf");
}
@font-face {
  font-family: "Pompier";
  src: url("fonts/Pompiere-Regular.ttf");
}

@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-Regular.ttf");
  font-weight: 400;
}

@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-Italic.ttf");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-Bold.ttf");
  font-weight: 700;
}

@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-BoldItalic.ttf");
  font-weight: 700;
  font-style: italic;
}

:root {
  --primary: #ffcc17;
  --dark: #001d43;
  --light: #f4f4f4;
  --pop: #ff4737;
  --blue: #5c95ff;
  --yellow: #fffa42;
  --green: #6bc066;

  --spacer-sm: 15px;
  --spacer: 20px;
  --spacer-lg: 50px;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lato";
  font-size: 18px;
  /* Following 3 rules to make footer stick to bottom*/
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.grid {
  /* for use on full-width bands */
  --wrap: 1200px; /* maximum webpage width */
  --columns_margin: max(var(--spacer), calc(calc(100vw - var(--wrap)) / 2));
  display: grid;
  grid-template-columns:
    var(--columns_margin)
    repeat(12, 1fr)
    var(--columns_margin);
  column-gap: var(--spacer);
}

a {
  text-decoration: none;
  color: inherit;
  line-height: 1;
  color: var(--pop);
}

menu a {
  color: var(--dark);
}

menu a,
p a {
  background: linear-gradient(0deg, var(--pop), var(--pop)) no-repeat right
    bottom / 0 var(--bg-h);
  transition: background-size 350ms;
  --bg-h: 2px;
  padding-bottom: 2px;
}
menu a:where(:hover, :focus-visible),
p a:where(:hover, :focus-visible) {
  background-size: 100% var(--bg-h);
  background-position-x: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}
h1 {
  font-size: 55px;
  font-family: "Pompier";
}
h2 {
  font-size: 45px;
  font-family: "Pompier";
}
h3 {
  font-size: 28px;
}
h4 {
  font-size: 22px;
}
h5 {
  font-size: 18px;
}
h6 {
  font-size: 14px;
}

section:first-of-type {
  margin-top: 0;
}
section {
  padding-top: var(--spacer-lg);
  padding-bottom: var(--spacer-lg);
}

section h2 {
  grid-column: 2 / span 8;
  margin-top: 0;
  margin-bottom: var(--spacer);
}
section h2:empty {
  margin-bottom: 0;
}

section h3,
section h4,
section h5,
section h6,
section p,
section img,
section .video,
section .CTA,
section iframe {
  margin-top: var(--spacer);
}

section h3:first-child,
section h4:first-child,
section h5:first-child,
section h6:first-child,
section p:first-child,
section img:first-child,
section .video:first-child,
section .CTA:first-child,
section iframe:first-child {
  margin-top: 0;
}

section h3:last-child,
section h4:last-child,
section h5:last-child,
section h6:last-child,
section p:last-child,
section img:last-child,
section .video:last-child,
section iframe:last-child {
  padding-bottom: 0;
}

section .CTA:last-child {
  margin-bottom: 0;
}

section iframe {
  width: 100%;
  border: 0;
}

/* ********** HEADER ********** */
header {
  --hamburger-width: 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: sticky;
  top: 0;
  padding: var(--spacer);
  z-index: 1;

  background-color: #fff;
}

header .branding {
  height: 100%;
  color: var(--dark);
  display: flex;
  align-items: center;
}

header .branding .copy {
  order: 1;
  white-space: nowrap;
}

header .branding .siteTitle {
  font-size: 45px;
  font-family: "Norquay";
  padding-top: 8px; /* THis value was eyeballed, will change with font size. Adjusts for descender space (Norquay does not actually have descenders) */
}

header .tagline {
  display: none;
}

#logo {
  height: 60px;
  float: left;
  order: 0;
  margin-right: var(--spacer);
}

nav {
  display: flex;
  padding-left: var(--spacer);
}

nav li {
  list-style: none;
  display: inline;
  padding-left: var(--spacer);
}

nav li:first-of-type {
  padding-left: 0;
}

nav menu {
  position: relative;
  padding-left: 0;
  margin: 0; /* For transition to mobile layout to look right*/
  line-height: 2; /* in case menu wraps on mobile */
}

nav menu .CTA {
  display: inline;
  margin-left: var(--spacer);
  padding: 15px;
  font-size: 17px;
}

#hamburger,
header .checkbox {
  display: none;

  position: absolute;
  right: var(--spacer);
  top: 37px; /*Magic number: header height (100px), minus 0.5 * height of hamburger*/
}

header .checkbox {
  z-index: 5;
  opacity: 0;
  margin: auto 0;
  height: var(--hamburger-width);
  width: 32px;
  cursor: pointer;
}

#hamburger {
  flex-direction: column;
  justify-content: space-between;

  height: 26px;
  width: var(--hamburger-width);
  z-index: 2;
  transition: transform 0.3s ease-in-out;
}

#hamburger .line {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 10px;
  background: #0e2431;
}

#hamburger .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.3s ease-in-out;
}

#hamburger .line2 {
  transition: transform 0.1s ease-in-out;
}

#hamburger .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.3s ease-in-out;
}

header input[type="checkbox"]:checked ~ #hamburger .line1 {
  transform: rotate(45deg);
}

header input[type="checkbox"]:checked ~ #hamburger .line2 {
  transform: scaleX(0);
}

header input[type="checkbox"]:checked ~ #hamburger .line3 {
  transform: rotate(-45deg);
}

/* FOOTER */

footer {
  --wrap: 1200px; /* maximum webpage width */
  --margin: max(var(--spacer), calc(calc(100vw - var(--wrap)) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;

  margin-top: auto;
  padding-top: 25px;
  padding-bottom: 25px;
  padding-left: var(--margin);
  padding-right: var(--margin);

  font-size: 16px;
  background-color: var(--dark);
  color: var(--primary);
}

footer a {
  color: var(--blue);
}

footer .info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

footer .left {
  display: flex;
  flex-direction: row;
  align-items: center;
}

footer .logo {
  height: 75px;
  margin-right: 30px;
}
#socials {
  list-style: none;
  padding-left: 0;
  padding-right: 10px;
  margin-top: 0;
  display: flex;
  flex-direction: row;
}

#socials li {
  padding-right: var(--spacer-sm);
  margin-top: var(--spacer-sm);
}

#socials img {
  height: var(--spacer);
  display: block; /* address inline-block spacing weirdness */
}

footer hr {
  color: var(--blue);
  opacity: 0.5;
  margin-top: var(--spacer-sm);
  margin-bottom: var(--spacer-sm);
}

footer .right {
  display: flex;
  align-items: center;
}

#credits {
  font-size: 14px;
  text-align: center;
  color: var(--blue);
}
#credits a {
  color: var(--primary);
}

/* ********** MDX COMPONENT: CTA ********** */
.CTA {
  display: block;
  width: fit-content;
  padding: var(--spacer-sm);
  border-radius: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: 350ms;
}
.CTA::after {
  content: " →";
}

.CTA.primary {
  background: var(--dark);

  color: var(--primary);
}
.CTA.primary:where(:hover, :focus-visible) {
  color: var(--dark);
  background: var(--pop);
}
.CTA.primary.inverted {
  background: var(--primary);
  color: var(--dark);
}
.CTA.primary.inverted:where(:hover, :focus-visible) {
  color: var(--dark);
  background: var(--pop);
}
.CTA.secondary {
  background: none;
  color: var(--dark);
  border: 1px solid var(--dark);
}
.CTA.secondary:hover {
  color: var(--pop);
  border-color: var(--pop);
}
.CTA.secondary.inverted {
  background: none;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.CTA.secondary.inverted:where(:hover, :focus-visible) {
  background: none;
  color: var(--pop);
  border: 1px solid var(--pop);
}

/* ********** MDX COMPONENT: VIDEO ********** */
.video {
  grid-column: 2 / span 8;
  width: 100%;
  padding-top: 56.25%;
  position: relative;
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/* ********** MDX COMPONENT: IMGPLUS ********** */
.imgPlus {
  --shadow: 10px;
  border-radius: 25px;
  width: calc(100% - var(--shadow));
  box-shadow: var(--shadow) var(--shadow) var(--primary);
}

/* ********** BANDS ********** */
/* HERO */
.hero {
  grid-column: 1 / span 14;
  background-position: center center;
}

.hero .content {
  grid-column: 2 / span 8;
  font-size: 24px;
}

/* CAROUSEL */
.carousel {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: -23px; /*unknown what is causing the extra 20px space*/
}

.carousel .slide {
  background-color: var(--primary);
  grid-column: 4 / span 8;
  grid-row: 1;
  border-radius: 20px;
  padding: var(--spacer-lg);
  margin: var(--spacer-lg);
  margin-bottom: 75px; /* room for dot controls */
}

.carousel .slidePhotos {
  grid-column: 1 / span 14;
  grid-row: 1;
  z-index: -1;
  white-space: nowrap;
  overflow: hidden;
  background-color: var(--dark);
}

.carousel .slidePhoto {
  width: 100%;
  height: 100%;
  display: inline-block;
  background-size: cover;
  transition: translate 0.5s ease-in-out;
}

.carousel button {
  grid-row: 1; /* to force it on same row as slide */
  position: relative;

  color: white;
  font-size: 50px;

  /* remove defaults */
  cursor: pointer;
  border: none;
  background: none;
}
.carousel .prev {
  grid-column: 3 / span 1;
  justify-self: right;
  left: 50px;
}
.carousel .next {
  grid-column: 12 / span 1;
  justify-self: left;
  right: 50px;
}
.carousel .controls {
  grid-column: 4 / span 8;
  position: relative;
  text-align: center;
  bottom: calc(50% + 50px);
}
.controls .dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: white;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.controls .dot.active {
  background-color: var(--primary);
}

/* FLEX CONTENT */
.flexContent img {
  max-width: 100%;
}
.flexContent .column.ofOne {
  grid-column: 2 / span 8 !important;
}

/* GOOGLE CALENDAR */
.calendar .container {
  grid-column: 2 / span 12;
  width: 100%;
  padding-top: 75%;
  position: relative;
}
.calendar iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ZIG ZAG */
.zigZag.hr {
  display: none;
}
div.zig,
div.zag {
  background-color: var(--primary);
  position: relative;
  --imgheight: 250px;

  display: grid;
  grid-template-columns: subgrid;

  min-height: calc(var(--imgheight) + calc(2 * var(--spacer-lg)));

  padding: var(--spacer-lg);
}

img.zig,
img.zag {
  height: var(--imgheight);
  width: var(--imgheight);
  object-fit: cover;
  border-radius: 10px;
  position: absolute;
  top: 44%; /* Why shouldn't this be 50%? */
  transform: translateY(-50%);
}

div.zig {
  grid-column: 1 / span 10;
  border-radius: 0 25px 25px 0;
  margin-bottom: var(--spacer-lg);
}
div.zig .content {
  grid-column: 2 / span 9;
  margin-right: calc(var(--imgheight) / 2);
}
img.zig {
  right: calc(var(--imgheight) / -2);
}

div.zag {
  grid-column: 5 / span 10;
  border-radius: 25px 0 0 25px;
}
div.zag .content {
  grid-column: 1 / span 9;
  margin-left: calc(var(--imgheight) / 2);
}
img.zag {
  left: calc(var(--imgheight) / -2);
}

/* ********** FIELD COMPONENTS ********** */

/* ********** CLICK-TO-EDIT ********** */
/* Tina Admin Only */
.__tina-quick-editing-enabled [data-tina-field] {
  outline: 1px dotted blue;
}
.__tina-quick-editing-enabled [data-tina-field]:hover {
  outline: 2px dotted pink;
  box-shadow: none;
}

/* ********** RESPONSIVITY ********** */

@media only screen and (max-width: 1080px) {
  header {
    display: block;
    padding-bottom: 0;
  }

  nav {
    width: calc(100% + calc(2 * var(--spacer)));
    margin-top: var(--spacer);
    margin-left: calc(-1 * var(--spacer));
    justify-content: center;
  }

  nav menu {
    height: 0;
    transition: margin 0.2s ease-in;
  }

  nav menu .CTA {
    display: none;
  }

  #hamburger {
    /* Make hamburger visible*/
    display: flex;
  }

  header .checkbox {
    display: block; /* Make checkbox "visible" (opacity 0) */
  }

  header input[type="checkbox"]:checked ~ nav menu {
    height: initial;
    margin: var(--spacer);
  }

  header input[type="checkbox"]:checked ~ nav menu li {
    transition: top, opacity 0.2s ease-in;
  }
  header input[type="checkbox"]:not(:checked) ~ nav menu li {
    top: -1em; /* Illusion that menu items expand w menu */
    opacity: 0; /* Fade in */
  }

  .carousel{
    overflow-x:hidden; /* fix weird spae to left*/
  }
  .carousel .slide {
    grid-column: 2 / span 12;
  }
  .carousel .prev {
    grid-column: 1 / span 1;
  }
  .carousel .next {
    grid-column: 14 / span 1;
    padding-right:-20px;
  }

  .flexContent .column.ofFour {
    grid-column: 2 / span 12 !important;
  }
}

@media only screen and (max-width: 900px) {
  .hero .content{
    grid-column:2 / span 12;
  }

  .carousel h1{
    font-size:45px;
  }
  .carousel .slide{
    padding:30px;
  }

  .flexContent .column.ofOne {
    grid-column: 2 / span 12 !important;
  }
  .flexContent .column.ofTwo {
    grid-column: 2 / span 12 !important;
  }
  .flexContent .column.ofThree {
    grid-column: 2 / span 12 !important;
  }

  .flexContent .column.ofOne,.flexContent .column.ofTwo, .flexContent .column.ofThree{
    margin-bottom:var(--spacer);
  }

  section.zigZag{
    background-color:var(--primary);
  }
  .hr.zigZag{
    display:block;
    margin-top:var(--spacer);
    margin-bottom:var(--spacer-lg);
    background-color: var(--dark);
    grid-column: 2 / span 12;
    height: 1px;
  }
  img.zig, img.zag{
    position:static;
    transform: translateY(0);
    grid-column: 1 / span 12;
    grid-row:1;
    margin:0;
    justify-self:center;
    margin-bottom:var(--spacer);
  }
  div.zig,div.zag{
    margin:0;
    grid-column:2 / span 12;
    padding:0;
    --imgheight:150px;
  }
  div.zig .content, div.zag .content{
    grid-column:1 / span 12;
    margin:0;
  }
}

@media only screen and (max-width: 500px) {
  header .branding .siteTitle{
    font-size:30px;
    padding-top:0px;
  }

  .carousel h1{
    font-size:40px;
  }
}

@media only screen and (max-width: 400px) {
  header .branding .siteTitle{
    font-size:25px;
    padding-top:0px;
  }

  

}