/*buttons - reusable UI components*/

/*menu-------------------------------------*/
.menu-list {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  column-gap: 2rem;
  padding: 0.95rem 0;
  overflow: visible;
}

.menu-item-first-generation {
  position: relative;
  min-width: 0;
}

.submenu {
    display: block;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    margin: 0;
    padding: 0;
    transition: max-height 300ms ease, visibility 0s ease 300ms;
    box-sizing: border-box;
    width: 8rem;
    max-width: 8rem;
    margin-right: -8rem;
}

.submenu.active {
  max-height: 15rem;
  visibility: visible;


  /* prevents submenu children from widening the flex item */
  contain: inline-size;

  white-space: normal;
  transition: max-height 300ms ease, visibility 0s ease 0s;
}

.submenu > li {
  white-space: normal;
}

.submenu a {
  display: block;
  width: 100%;

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.menu-item-first-generation .icon{
    width: 0.75rem;
    height: 0.75rem;
    transform: scaleY(-1);
    margin-left: 0.3rem;
}
.menu-item-first-generation.is-current > a{
    text-decoration: underline var(--wp--preset--color--light-grey);
    text-decoration-thickness: 0.2rem;
    text-underline-offset: 0.3rem;
}
.icon.active {
  transform: scaleY(1);
}

/*buttons---------------------------------------*/
.button {
    cursor: pointer;
    height: auto;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    border: solid 0.2rem var(--wp--preset--color--grey);
    border-radius: 0.5rem;
    background-color: var(--wp--preset--color--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}
.button:hover {
    border: solid 0.2rem var(--wp--preset--color--secondary);
    transition: border 0.4s ease;
}

/*faq-item-------------------------------------------*/
.faq-question {
  background: var(--wp--preset--color--secondary);
  margin-bottom: 0.5rem;
}
.faq-question:hover {
    border: solid 0.2rem var(--wp--preset--color--grey);
}
.faq-item.active .arrow-go {
  transform: scaleY(1);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  margin: 0 1.5rem;
  transition: max-height 0.4s ease, margin 0.4s ease;
}
.faq-item span {
    color: var(--wp--preset--color--black);
}
.faq-item p {
    margin-bottom: 0;
}
.faq-item.active .faq-answer {
  margin: 1rem 1.5rem 3rem 1.5rem;
  max-height: 500px;
}

/*windows-------------------------------------------*/
.window-frame {
    margin: 3rem 0;
    width: 100%;
    position: relative;
}
.window {
    border-radius: 0.5rem;
    border: solid 0.2rem var(--wp--preset--color--grey);
    z-index: 1;
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
}
.window:hover {
    border: solid 0.2rem var(--wp--preset--color--secondary);
}
/* When the WRAPPER is fullscreen, make the iframe truly fill the screen */
#siteWrap:fullscreen iframe,
#siteWrap:-webkit-full-screen iframe {
  width: 100vw;
  height: 100vh;
  margin: 0;
  border: 0;
}
.window-frame > button {
    position: absolute;
    bottom: 0;
    width: auto;
    padding: 0.75rem;
    z-index: 2;
    font-size: 1.1rem;
    display: inline-flex;
    border: solid 0.2rem var(--wp--preset--color--grey);
    background-color: var(--wp--preset--color--secondary);
}
.window-frame > .fullscreen {
    right: 0;
}
.carousel__btn--prev{ left: 0; }
.carousel__btn--next{ right: 0; }
.window-frame > button:hover {
    border: solid 0.2rem var(--wp--preset--color--grey);
}
/*carousel-------------------------------------------*/
.carousel__track{
  position: relative;
  width: auto;
  height: 100%;
  display: flex !important;
  transition: transform 500ms cubic-bezier(.22,.8,.2,1); /* gentle */
}
.carousel__slide{
  flex: 0 0 100%;
  aspect-ratio: inherit;
  background: #111;
}
.carousel__slide img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/*infograpic-------------------------------------------*/
.infographic {
    display: grid;
    align-items: center;
    grid-template-columns: fit-content(60%) 1fr;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}
.infographic-data {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  padding: 1rem;
  background-color: var(--wp--preset--color--grey);
  border-radius: 0.5rem;
  color: var(--wp--preset--color--white);
  line-height: 1;
  border: solid 0.2rem var(--wp--preset--color--light-grey);
}
.infographic-description {
  margin: 0;
  min-width: 0;
}
.icon-list {
    width: 100%;
    margin-bottom: 3rem;
    padding: 1.5rem;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    justify-content: center;
    column-gap: 3rem;
}

/*reviews------------------------------------------*/
.review .profile-info {
    display: grid;
    align-items: center;
    grid-template-columns: fit-content(60%) 1fr;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}
.review .profile-info img {
    width: 3.6rem;
    height: 3.6rem;
    flex-shrink: 0;
}
.review h3 {
    text-align: left;
    color: var(--wp--preset--color--black);
    overflow-wrap:anywhere;
    font-size: 1.2rem;
}
.review p {
    font-size: 0.9rem;
    margin: 0;
}

/*form------------------------------------------*/
form .input-field {
    width: 100%;
    background-color: var(--wp--preset--color--light-grey);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: solid 0.2rem var(--wp--preset--color--grey);
    font-family: var(--wp--preset--font-family--outfit);
    color: var(--wp--preset--color--grey);
    text-align: left;
    font-size: 1.1rem;
}
form .textarea {
    max-width: 100%;
    min-height: calc(var(--vh, 1vh) * 16);
    max-height: calc(var(--vh, 1vh) * 36);
}
form .checkbox {
    width: 80%;
    margin: 0 10%;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.checkbox input {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}
.checkbox input::before {
    display: none;
}
.checkbox-text {
    font-size: 0.9rem;
    color: var(--wp--preset--color--grey);
}
.cta .checkbox-text {
    color: var(--wp--preset--color--light-grey);
}
.cta.light .checkbox-text {
    color: var(--wp--preset--color--grey);
}
.contact-form .button {
    margin: 2rem auto 3rem auto;
    width: 80%;
}


/*mockups------------------------------------------*/
.mockup {
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(-10deg) rotate(5deg);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
}
.hook .mockup, .hook .picture {
    position: absolute;
    right: 10%;
    z-index: 0;
}
.hook .v-mockup, .hook .v.picture {
    width: 18vw;
    height: 36vw;
}
.hook .o-mockup, .hook .o-picture {
    width: 40vw;
    height: 22vw;
}
.hook .q-mockup, .hook .q-picture {
    width: 40vw;
    height: 40vw;
}
.hook-top .mockup, .hook-top .picture {
    position: relative;
    right: 0;
    margin-right: 5%;
}
.blog-section .v-mockup, .hook .v.picture {
    width: 18vw;
    height: 36vw;
}
.blog-section .o-mockup, .blog-section .o-picture {
    width: 72vw;
    height: 46vw;
}
.bigbox .o-mockup, .bigbox .o-picture {
    width: 44vw;
    height: 27vw;
}
.frame{
    position: absolute;
    object-fit: contain;
    width: 100%;
    height: 100%;
    padding: 0;
}
.mockup .screen{
    position: absolute;
}
.v-mockup .screen {
    width: 90%;
    height: 96%;
    margin: 5% 5% auto 5%;
}
.o-mockup .screen {
    width: 78%;
    height: 82%;
    margin: 3% 11% auto 11%;
}
.mockup video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2.2vw;
}






@media (max-aspect-ratio: 4/3) {

}




@media(max-aspect-ratio: 2/3) {

.menu {
    display: flex;
    flex-direction: column;
    align-items: end;
    width: 100%;
}    
.menu-toggle {
    cursor: pointer;
    width: 3rem;
    padding: 0.5rem;
}
.menu-toggle img {
    height: 2rem;
    width: 2rem;
    display: none;
}
.menu-list {
    width: calc(100% + 3rem);
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    visibility: hidden;
    transition: max-height 300ms ease, visibility 0s ease 300ms, margin 300ms ease;
    box-sizing: border-box;
}
.menu-list > li {
    width: 100%;
}
.menu-list a {
    font-size: large;
}
.icon-menu.show, .icon-close.show{
    display: block;
}
.menu-list.show {
    max-height: fit-content;
    visibility: visible;
    margin: 3rem 0 3rem 0;
    transition: max-height 300ms ease, visibility 0s ease 0s, margin 300ms ease;
}
.submenu {
    visibility: visible;
    max-height: fit-content;
    max-width: 100%;
    padding: 1rem;
    width: 100%;
}
.submenu > li {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    box-sizing: border-box;
}
.window {
    aspect-ratio: 2 / 3;
}
}