* {
    box-sizing: border-box;
}

body {
    font-family: Jost, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-feature-settings: "liga";
    font-size: 18px;
    line-height: 50px;
    letter-spacing: 1px;
}

h3 {
    font-size: 44px;
    font-weight: 600;
}

.flex {
    display: flex;
}

.container {
    max-width: 1320px;
}

header {
    justify-content: space-between;
    align-items: center;
    background-color: black;
    width: 100%;
    font-weight: 300;
    padding-right: 80px;
    padding-left: 80px;
    box-sizing: border-box;
    height: 123px;
}

.selected {
    font-weight: 700;
}

.logo a {
    display: flex;
}

.logo img {
    width: 110px;
}

.hamburger {
    display: none;
}

/* Animate the hamburger icon to turn into an "X" */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

header > nav {
    margin-right: 50px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li:hover {
    color: #574320;
}

nav ul li a {
    position: relative;
    text-decoration: none;
    color: white;
    padding: 15px 12px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #574320;
}

.nav-wrapper {
    gap: 30px;
}

.language-switch {
    align-items: center;
    height: 100%;
    gap: 0.1rem;
    font-size: 15px;
}

.language-switch:hover {
    cursor: pointer;
}

.lang-options {
    line-height: 1;
    position: relative;
}

.lang-options li a:hover {
    color: white;
}

.not-selected-language {
    display: none;
    position: absolute;
    top: 25px;
}

.open-language-menu {
    display: block;
}

#to-top {
    padding: 8.5px 11.5px;
    border: none;
    position: fixed;
    right: 30px;
    bottom: 63px;
    cursor: pointer;
    background-color: #bb9047;
    z-index: 100;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

#to-top.visible {
  opacity: 0.4;
  pointer-events: auto;
}

#to-top:hover {
    opacity: 1;
}

#banner {
    position: relative;
    min-height: calc(100vh - 123px);
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

video {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 101%;
    height: 101%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.background-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.background-shadow-header {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(147,0,135,0.19);
    z-index: 1;
}

.background-shadow {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #00000060;
    z-index: 1;
}

.banner-content {
    z-index: 1;
}

.banner-content h1 {
    font-size: 64px;
    letter-spacing: 0;
    line-height: 96px;
    font-weight: 600;
    margin: 0;
}

.banner-content h1 span {
    text-align: left;
    display: block;
    font-size: 24px;
    line-height: 36px;
    font-weight: 600;
}

.mission-section {
    margin: 108px auto;
    justify-content: space-between;
}

.mission-image {
    width: 45%;
    flex: 0 0 auto;
    height: auto;
    min-height: 650px;
    object-fit: cover;
    box-sizing: border-box;
}

.mission-text {
    width: 50%;
    flex: 0 0 auto;
    box-sizing: border-box;
    line-height: 30.8px;
    font-size: 22px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 1px;
}

.mission-text h2 {
    margin-top: 80px;
    line-height: 44.8px;
    font-size: 32px;
    font-weight: 700;
}

.mission-text .strong {
    font-weight: 600;
}

#services {
    position: relative;
    min-height: 505px;
    text-align: center;
    color: white;
    align-items: center ;
    justify-content: center;
}

#services-image {
    background-image: url('/assets/festival.jpg');
}

#services h3 {
    margin-bottom: 48px;
    margin-top: 0;
}

.services-flex-container {
    gap: 30px;
    justify-content: center;

}

.services-grid-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.services-content {
    width: 100%;
    z-index: 1;
}

.services-wrapper {
    box-sizing: border-box;
    border: 1px solid #dee2e6;
    padding: 24px;
}

.services-wrapper a {
    border: 1px solid #dee2e6;
    padding: 17px 53px; 
    font-size: 17px;
    text-decoration: none;
    color: white;
}

.services-wrapper a:visited {
    color: white;
}

.services-wrapper a:hover {
    background-color: #bb9047;
    cursor: pointer;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

#why {
    max-width: 1232px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

#why h3 {
    line-height: 63px;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 700;
}

#why h6 {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 1px;
    font-weight: 700;
    margin: 0;
    margin-bottom: 10px;
}

#why p {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.05em;
    font-weight: 300;
    margin: 0;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(120px, auto);
    column-gap: 4rem;
    row-gap: 3rem;
    position: relative;
    height: 900px;
}

.column {
    flex-direction: column;
    gap: 5rem;
}

.column.left .item {
    align-items: end;
    text-align: end;
}

.column.right .item {
    align-items: start;
}


.divider {
    width: 4px;
    background-color: #6C757D;
    height: 100%;
}

.item.left {
    text-align: right;
    padding-right: 3rem;
}

.item.right {
    text-align: left;
    padding-left: 3rem;
}


/* zig-zag vertical offsets */
.item:nth-of-type(1) { 
    grid-row: 1;
    transform: translateY(1rem);
}

.item:nth-of-type(2) { 
    grid-row: 2; 
    grid-column: 2;
    transform: translateY(-3rem);
}

.item:nth-of-type(3) { 
    grid-row: 3;
    transform: translateY(-3rem);
}

.item:nth-of-type(4) { 
    grid-row: 4; 
    grid-column: 2;
    transform: translateY(-7rem);
}

.item:nth-of-type(5) { 
    grid-row: 5;
    transform: translateY(-7rem);
}

.item:nth-of-type(6) { 
    grid-row: 6;
    grid-column: 2;
    transform: translateY(-9rem);
}

.why-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #6C757D;
  transform: translateX(-50%);
}

#testimonials {
    position: relative;
    height: 505px;
    clip-path: inset(0 0 0 0);
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    line-height: 36px;
    font-weight: 300;
    font-style: italic;
}

#testimonials-image {
    background-image: url('/assets/qpop2023.png');
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0; 
}

.testimonials-content {
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 2;
    width: 100%;
}

.btn-wrapper {
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    opacity: 0.7;
    color: #150B13;
}

#previousBtn {
    padding-left: 10px;
}

#nextBtn {
    padding-left: 5px;
}

.btn-wrapper:hover {
    opacity: 0.9;
    cursor: pointer;
}

.testimonial {
    flex-direction: column;
    width: 100%;
}

.hidden {
    display: none;
    opacity: 0;
}

.show {
    display: flex;
    animation: slideInFade 0.3s linear forwards;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateX(150px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.exit-left {
    animation: slideOutFade 0.3s linear forwards;
}

@keyframes slideOutFade {
    to {
        opacity: 0;
        transform: translateX(-150px);
    }
}

.prev {
    margin-right: 80px;
}

.next {
    margin-left: 80px;
}

.contact-wrapper {
    height: 480px;
    margin: 50px auto;
    color: white;
    background-color: #222222;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    padding: 72px 24px 96px;
}

.contact-wrapper h2 {
    font-size: 52px;
    line-height: 64px;
    letter-spacing: -1.28px;
    font-weight: 600;
}

.contact-wrapper p {
    font-size: 22px;
    line-height: 29px;
    letter-spacing: -0.22px;
    font-weight: 300;
    text-align: center;
}

.contact-buttons-wrapper {
    font-size: 17px;
    line-height: 26px;
    letter-spacing: 1px;
    font-weight: 400;
    align-items: center;
    column-gap: 18px;
}

.contact-buttons-wrapper a {
    text-decoration: none;
}

.contact-buttons-wrapper a {
    padding: 17px 53px;
    background-color: #BB9047;
}

.contact-buttons-wrapper a:hover {
    background-color: #574320;
    cursor: pointer;
}

footer {
    background-color: black;
    padding-right: 80px;
    padding-left: 80px;
    height: 170px;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1px;
}

footer a {
    padding-right: 10px;
}

footer a:hover {
    color: #574320;
}

footer > nav {
    margin-right: 50px;
}

.footer-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    justify-items: center;
    align-items: center;
}

.footer-wrapper .logo img {
    width: 100px;
}

.instagram-wrapper {
    width: 100%;
    justify-content: end;
}

@media (max-width: 1500px) {
    .banner-content {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 1350px) {
    .mission-section {
        padding-left: 30px;
        padding-right: 30px;
    }
  
    .services-content {
        width: 70%;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .services-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prev {
        margin-right: 40px;
        margin-left: 40px;
    }
    
    .next {
        margin-left: 40px;
        margin-right: 40px;
    }

    .contact-wrapper {
        width: 90%;
    }
}

@media (max-width: 1232px) {
    #why {
        max-width: 90%;
    }
}

@media (max-width: 1024px) {
    header nav ul.flex {
        display: none;
    }

    header nav ul.show-menu {
        display: block;
        background-color: black;
        text-align: center;
        z-index: 100;
        position: fixed;
        left: 0;
        top: 123px;
        width: 100%;
        height: 100%;
        animation: slideIn 0.3s linear forwards;
    }

    header nav ul.show-language-menu {
        top: 410px;
    }

    .inline {
        display: inline-block;
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    header nav ul li {
        margin-bottom: 10px;
    }

    header nav ul li a::after {
        height: 0px;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger:hover span {
        background-color: #574320;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px;
        background-color: white;
        transition: 0.3s ease;
    }
}

@media (max-width: 900px) {
    .banner-content h1 span {
        text-align: center;
    }

    .mission-section {
        margin-top: 0px;
    }
    
    .mission-section img {
        display: none;
    }

    .mission-text {
        width: 100%
    }

    .services-grid-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
        height: 1000px;
        height: auto;
    }

    .item:nth-of-type(1) { 
        transform: none;
    }

    .item:nth-of-type(2) { 
        grid-column: 1;
        transform: none;
    }

    .item:nth-of-type(3) { 
        transform: none;
    }

    .item:nth-of-type(4) { 
        grid-column: 1;
        transform: none;
    }

    .item:nth-of-type(5) { 
        transform: none;
    }

    .item:nth-of-type(6) { 
        grid-column: 1;
        transform: none;
    }

    .column.left .item {
        align-items: center;
        text-align: center;
    }

    .column.right .item {
        align-items: center;
    }

    .item.left {
        text-align: center;
        padding-right: 0;
    }

    .item.right {
        text-align: center;
        padding-left: 0;
    }

    .why-grid::before {
        display: none;
    }

    #testimonials {
        height: 600px;
    }

    footer {
        height: 200px;
    }

    .footer-stack {
        flex-direction: column;
        align-items: center;
    }

    .footer-stack li {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

@media (max-width: 600px) {
    h3 {
        font-size: 30px;
    }

    header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .touring {
        margin-top: 30px;
    }

    .services-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    .contact-wrapper {
        height: auto;
    }

    .contact-buttons-wrapper {
        flex-direction: column;
        row-gap: 18px;
    }

    .testimonials-content {
        width: 90%;
    }

    .btn-wrapper {
        display: none;
        pointer-events: none;
    }

    footer {
        height: 400px;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
    }

    .instagram-wrapper {
        justify-content: center;
    }
}