@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

@font-face {
  font-family: "Symbols";
  src: url("images/Symbols.woff2") format("woff2");
  unicode-range: U+25B6, U+1F582, U+1F86A, U+1F86B;
}

html {
  height: 100%;
}
body {
  background-color: rgb(var(--cs-primary-bg-rgb));
  color: rgb(var(--cs-primary-rgb));
  font-family: "Lato", "Symbols", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.5;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

:root {
  --cs-max-width: 1500px;
  --cs-narrow-width: 1000px;
  /* --cs-primary-rgb: 12, 48, 97; */
  --cs-primary-rgb: 24, 49, 78;
  --cs-primary-bg-rgb: 255, 255, 255;
  --cs-alt-bg-rgb: 239, 90, 36;
  --cs-bg-triangles: linear-gradient(rgba(var(--cs-primary-rgb), 0.2), rgba(var(--cs-primary-rgb), 0.2)), url('images/bg-1074679980.jpg');
  --cs-bg-lattice: url('images/bg-1222192913.jpg');
  --cs-bg-top: var(--cs-bg-current) no-repeat center top / auto 1000px;
  --cs-bg-bottom: var(--cs-bg-current) no-repeat center calc(100% + 80px) / 200%;
  --cs-bg-footer: var(--cs-bg-current) no-repeat center bottom / 200%;
}

[id] {
  scroll-margin-top: 130px;
}

a {
  color: inherit !important;
  text-decoration: inherit;
  cursor: pointer;
}

a.button {
  display: inline-block;
  text-decoration: none;
  z-index: 10;
  background-color: rgb(var(--cs-alt-bg-rgb));
  color: rgb(var(--cs-primary-bg-rgb)) !important;
  text-align: center;
  line-height: 1.5;
  border-radius: 100em;
  border: 0px;
  padding: .5em 2em;
  font-family: inherit;
  font-size: 1.125em;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color .1s;
  box-shadow: 0 12px 16px -4px #00000014,0 4px 6px -2px #00000008;
}

nav {
  position: fixed;
  top: 0;
  left: 50%;
  max-width: var(--cs-max-width);
  transform: translateX(-50%);
  z-index: 100;
  overflow-y: visible;
  width: 100%;
  height: 130px;
  font-weight: 500;
  font-size: 1.2em;
  text-decoration: none;
  background: var(--cs-bg-top);
  color: rgb(var(--cs-primary-bg-rgb));
}

nav .button {
  padding: .5em 2em;
  font-size: 1em;
  line-height: 1.2;
}

nav > ul {
  display: grid;
  grid-row-gap: 0.5em;
  max-width: var(--cs-max-width);
  place-items: start center;
  align-content: space-between;
  justify-content: space-between;
  align-items: center;
  margin: -0.3em auto 0 auto;
  padding: 0.5em 2em;
}

nav > ul > li {
  display: block;
  grid-row: 1;
  position: relative;
  cursor: pointer;
}

nav > ul > li > ul {
  display: none;
  position: absolute;
  z-index: 200;
  top: 100%;
  left: 0;
  background-color: #042024;
  padding: 1em;
  line-height: 2em;
  opacity: 0.96;
}

nav > ul > li:hover > ul {
  display: block;
}

nav > ul > li > ul > li {
  display: block;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--cs-max-width);
  margin: 0 auto;
}

main > div > div {
  max-width: var(--cs-max-width);
  margin: 0 auto;
  padding: 2em 4em;
}

em {
  font-weight: bolder;
  color: #CF8500;
  font-style: normal;
}

footer {
  width: 100%;
  max-width: var(--cs-max-width);
  margin: 0 auto;

  background: var(--cs-bg-footer);
  color: rgb(var(--cs-primary-bg-rgb));
  padding: 1em 0;
}
footer > div {
  max-width: var(--cs-max-width);
  margin: 0 auto;
  place-items: center;
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
}

form {
  padding: 1em;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1em;
  align-items: center;
  font-size: 1.5em;
}

form > label {
  text-align: left;
}

form > input[type="text"],
form > input[type="tel"],
form > input[type="email"] {
  width: 40ch;
  padding: 0.5em;
  background-color: rgb(var(--cs-primary-bg-rgb));
  font-size: inherit;
  font-family: inherit;
}

form > input[type="text"]:focus,
form > input[type="tel"]:focus,
form > input[type="email"]:focus {
  border: 2px solid rgb(var(--cs-alt-bg-rgb));
  outline: none;
}

/*
form > input[type="text"]:invalid,
form > input[type="tel"]:invalid,
form > input[type="email"]:invalid {
  box-shadow: 5px 5px 5px rgba(var(--cs-alt-bg-rgb), 0.8);
}
*/

form > input[type="submit"] {
  grid-column: 2;
  align-self: center;
  margin-top: 1em;
  padding: 0.3em 2.2em;
  background-color: rgb(var(--cs-alt-bg-rgb));
  color: rgb(var(--cs-primary-bg-rgb)) !important;
  border-radius: 5em;
  border: 0px;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  width: fit-content;
  justify-self: center;
  text-transform: uppercase
}

.negative {
  filter: invert(100%);
}

.logo {
  display: inline-block;
  width: 6.60em;
}

.logo.hide-txt {
    padding-left: max(1.5em, 64px);
}

.logo.hide-txt > span {
    display: none;
}

.logo > svg {
    --color: rgb(var(--cs-alt-bg-rgb));
    display: inline-block;
    margin-left: -1em;
    vertical-align: -1.5em;
    height: 3em;
}

.logo.small > svg {
    margin-left: -0.75em;
    vertical-align: -0.9em;
    height: 2em;
}

.logo > span:nth-of-type(2) {
    font-size: 0.5em; display: inline-block;
    margin-left:-0.9em;
    vertical-align: 2.4em;
    
}

.logo.small > span:nth-of-type(2) {
    margin-left:-0.9em;
    vertical-align: 1.7em;
}

.logo.tm > span:nth-of-type(2) {
    margin-left:-0.9em;
    vertical-align: 2.0em;
}

.logo.tm.small > span:nth-of-type(2) {
    margin-left:-0.5em;
    vertical-align: 1.3em;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  overflow: auto;
  background-color: rgba(255,255,255,0.7); /* overlay */
}

.modal > div {
  position: relative;
  padding: 0;
  border-radius: 10px;
  box-shadow: 10px 10px 8px rgba(0, 0, 0, 0.8);
  background-color: rgb(var(--cs-primary-rgb));
  color: rgb(var(--cs-primary-bg-rgb));
}

/* Close button */
.modal > div > span {
  position: absolute;
  top: -45px;
  right: -45px;
  background-color: rgb(var(--cs-primary-rgb));
  color: rgb(var(--cs-primary-bg-rgb));
  box-shadow: 10px 10px 8px rgba(0, 0, 0, 0.8);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal > div > span::after {
  content: ' × ';
}

.shaka-video {
  margin: 0 auto;
}

.bg-top {
    --cs-bg: var(--cs-bg-top);
}

.bg-bottom {
    --cs-bg: var(--cs-bg-bottom);
}

.wave-bottom {
  background: url('images/wave-top.svg') no-repeat bottom / 100% 100px, var(--cs-bg);
  color: rgb(var(--cs-primary-bg-rgb));
}

.wave-top {
  background: url('images/wave-bottom.svg') no-repeat top / 100% 100px, var(--cs-bg);
  color: rgb(var(--cs-primary-bg-rgb));
}

.flex {
  flex-grow: 1;
}

.head-shot {
  border-radius:50%;
  width:200px
}

#headline {
  padding-top: 130px;
  padding-bottom: 140px;

  /* height: 540px;
  display: flex;
  flex-direction: column;
  text-transform: uppercase;*/
}

#headline > section {
  font-weight: 400;
  font-size: 3em;
  box-sizing: border-box;
  align-items: center;
  text-align: left;
}

#headline > section > .button {
  font-size: 0.3em;
}

.headline {
  max-width: var(--cs-narrow-width);
  padding-bottom: 0;
}

.headline > section {
  font-weight: 400;
  font-size: 1.2em;
}

.carousel {
  display: grid;
}

.carousel > section {
  grid-area: 1 / 1;
  opacity: 0;
  animation: fade-cycle 15s infinite;
}

.carousel > section:nth-child(1) { animation-delay: 0s; }
.carousel > section:nth-child(2) { animation-delay: 5s; }
.carousel > section:nth-child(3) { animation-delay: 10s; }

@keyframes fade-cycle {
  0% { opacity: 0; }
  5% { opacity: 1; }
  28% { opacity: 1; }
  33% { opacity: 0; }
  100% { opacity: 0; }
}

.concertina {
  max-width: var(--cs-narrow-width);
}

.concertina > section {
  border-bottom: 2px solid;
  font-size: 1.2em;
}

.concertina > section > h1 {
  position: relative;
  font-weight: 400;
  cursor: pointer;
}

.concertina > section > h1::after {
  content: '🡪';
  font-weight: 400;
  font-size: 1.5em;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(var(--cs-alt-bg-rgb));
}

.concertina > section.active > h1::after {
  content: '🡫';
}

.concertina > section > div {
  display: none;
  padding-bottom: 1em;
}

.concertina > section.active > div {
  display: block;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  overflow: hidden;
}

.tiles > section {
  border-radius: 2em;
  padding: 2em;
  position: relative;
  overflow: visible;
  font-size: 1.2em;
}

.tiles.dark > section {
  background-color: rgb(var(--cs-primary-rgb));
  color: rgb(var(--cs-primary-bg-rgb));
}

.tiles.dark > section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-image: url('images/logo.svg');
    opacity: 0.2;
    
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; 
    transform-origin: center center;
    pointer-events: none;
}

.tiles.dark > section:nth-child(1)::before {
    transform: scale(1.5) rotate(45deg);
}
.tiles.dark > section:nth-child(2)::before {
    transform: scale(1.5) rotate(90deg);
}
.tiles.dark > section:nth-child(3)::before {
    transform: scale(1.5) rotate(135deg);
}
.tiles.dark > section:nth-child(4)::before {
    transform: scale(1.5) rotate(180deg);
}
.tiles.dark > section:nth-child(5)::before {
    transform: scale(1.5) rotate(225deg);
}
.tiles.dark > section:nth-child(6)::before {
    transform: scale(1.5) rotate(270deg);
}
.tiles.dark > section:nth-child(7)::before {
    transform: scale(1.5) rotate(315deg);
}
.tiles.dark > section:nth-child(8)::before {
    transform: scale(1.5) rotate(0deg);
}

.tiles > section > h1 {
  font-weight: 400;
  font-size: 1.8em;
  text-align: center;
  text-transform: uppercase;
}

.tiles > section > .button {
    padding: .75em 1em;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
}

.faq {
  justify-content: center;
  padding: 6em;
}

.faq > ul {
  column-count: 2;
}

.faq > ul > li {
  cursor: pointer;
  padding: 0.5em 2em;
  margin: 0 2em 1em 0;
  break-inside: avoid;
  background-color: rgb(var(--cs-primary-rgb));
  color: rgb(var(--cs-primary-bg-rgb));
  border-radius: 2em;
}

.faq > ul > li > h1 {
  font-weight: 300;
  font-size: 1.2em;
  position: relative;
  display: block;
  padding-right: 1.5em;
}

.faq > ul > li > h1::after {
  content: '🡪';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 1.2em;
  color: rgb(var(--cs-alt-bg-rgb));
}

.faq > ul > li.active > h1::after {
  content: '🡫';
}

.faq > ul > li > div {
  display: none;
  margin: 0 0 1em 0;
}

.faq > ul > li.active > div {
  display: block;
}

#contact {
  padding: 6em 0 1em 0;
  place-items: center;
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
}

#form > div {
  padding: 2em;
}

#form > div > h2 {
  text-align: center;
  padding-left: 120px;
}

#form > div:nth-child(2) > h2 {
  text-align: center;
  padding-left: 4em;
  padding-right: 4em;
}

#mediaPlayer > div {
  width: 80%;
  height: 80%;
  max-width: calc(80vh * 16 / 9);
  max-height: calc(80vw * 9 / 16);
  aspect-ratio: 16/9;
}

#mediaPlayer > div > output {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: tomato;
}

#mediaPlayer > div > div {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.video-thumbnail.video-thumbnail.video-thumbnail.video-thumbnail {
  align-self: center;
  position: relative;
  padding: 0;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: hidden;
  container-type: inline-size;
}

.video-thumbnail > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumbnail > button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(var(--cs-alt-bg-rgb), 0.6);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  width: 25%;
  aspect-ratio: 1 / 1;
  font-size: 10cqw;
  padding: 0 0 0 2%;
  display: flex;
  align-items: center;
  justify-content: center;
transition: transform 0.2s ease, background 0.2s;
}

/* Optional: Hover Effect */
.video-thumbnail:hover > button {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(var(--cs-alt-bg-rgb), 0.8) /* YouTube red style hover */
}

@media (max-width: 1000px) {
  [id] {
    scroll-margin-top: 160px;
  }

  nav {
    overflow-y: hidden;
    font-size: 1.5em;
    height: 160px;
  }

  nav::after {
    content: '☰';
    position: absolute;
    top: 0.4em;
    right: 0.75em;
    font-size: 2em;
  }

  nav > ul {
    place-items: normal;
    background: var(--cs-bg-top);
    padding-bottom: 1em;
  }

  nav > ul > li {
    grid-row: auto;
    font-size: 1em;
  }

  nav > ul > li:hover > ul {
    display: block;
    position: static;
    border-width: 0;
  }

  #headline {
    padding-top: 160px;
  }

  footer > div{
    font-size: 0.8em;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  .faq > ul {
    column-count: 1;
  }

}

@media (min-width: 1001px) and (max-width: 1500px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
}