/* header */
header {
    background-color: #FFF;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: solid 5px var(--clr-primary);
    padding: 1rem 0 .5rem;
    z-index: 99;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: max(2vw, 1rem);
}

nav a {
    color: var(--clr-secondary);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
}

nav a:hover,
nav a:focus {
    color: var(--clr-accent);
    text-decoration: underline;
}

@media (min-width:768px) {
    .navbar-toggler {
        display: none;
    }
}
@media (max-width:767px) {
    .collapse {
        display: none;
        transition: all 0.3s ease;
    }
    .collapse.show {
        display: block;
    }

    #primary-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 12px);
        background-color: var(--clr-light);
    }
    #primary-menu .nav {
        flex-direction: column;
        align-items: center;
        padding: 30px;
    }
}



/* site */
main {
    max-width: 100dvw;
    overflow: clip;
}
#hero {
    position: relative;
    padding: 2.5rem 0 27rem;
    justify-items: center;
    overflow: clip;
}
#hero .contact {
    font-size: var(--fs-300);
    color: #FFF;
    justify-self: start;
    margin-bottom: .5rem;
    display: inline-block;
}
#hero .contact a {
    color: inherit;
    text-decoration: none;
}
#hero .contact,
#hero > img {
    position: relative;
    z-index: 2;
}
#hero .bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    grid-column: unset;
    opacity: 0;
    transition: opacity 3s ease;
    transition-delay: .1s;
}
#hero .bg.show {
    opacity: 1;
}
#hero .bg > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


#service-items .item .card {
    font-size: 1.25rem;
    line-height: 1.2;
}
#service-items .item .card li {
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    #service-items .item {
        display: flex;
        margin-bottom: 90px;
    }
    #service-items .item:nth-child(1) {
        flex-direction: row-reverse;
        justify-content: flex-end;
        align-items: flex-end;
    }
    #service-items .item:nth-child(1) .image {
        margin-bottom: -40px;
        transform: translateX(-140px);
    }
    #service-items .item:nth-child(2) {
        justify-content: flex-end;
        margin-bottom: 100px;
    }
    #service-items .item:nth-child(2) .image {
        transform: translateX(140px);
    }
    #service-items .item:nth-child(2) .card {
        transform: translateY(80px);
    }
    #service-items .item:nth-child(3) {
        justify-content: flex-start;
        margin-bottom: 130px;
    }
    #service-items .item:nth-child(3) .card {
        transform: translate(-140px, 80px);
    }
    #service-items .item:nth-child(4) {
        flex-direction: row-reverse;
        justify-content: flex-start;
    }
    #service-items .item:nth-child(4) .card {
        transform: translate(140px, 80px);
    }
    #service-items .item .card {
        position: relative;
        z-index: 2;
        flex: 1 0 452px;
        max-width: 452px;
    }
    #service-items .item .image {
        line-height: 0;
    }
}
@media (max-width: 767px) {
    #service-items .item {
        margin-bottom: 30px;
    }
}


#additional-services {
    margin-bottom: 60px;
}
#additional-items {
    display: flex;
    gap: 26px;
    margin-bottom: 26px;
}
#additional-items .item .title {
    background-color: var(--clr-secondary);
    padding: 15px 15px 30px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    cursor: pointer;
    border: 0;
    color: #FFF;
    width: 100%;
}
#additional-items .item .title > * {
    margin-bottom: 0;
    line-height: 1.1;
}
#additional-items .item .card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
#additional-items .item .card.open {
    max-height: 500px;
}
#additional-items .item .card ul {
    margin: 0;
    padding: 30px 20px 20px 35px;
}
#additional-items .item .card li {
    line-height: 1.2;
    margin-bottom: 1rem;
}
#additional-items + img {
    margin: 0 auto -80px auto;
    -webkit-box-shadow: .5rem .5rem .75rem .25rem rgba(0,0,0,.36);
    box-shadow: .5rem .5rem .75rem .25rem rgba(0,0,0,.36);
}
@media (min-width: 768px) {
    #additional-items .item {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
}
@media (max-width: 767px) {
    #additional-items {
        flex-direction: column;
    }
}


#contact > img {
    margin: 40px auto;
}


#intro .inner::after,
#about .inner::after,
#additional-items .item .title::after {
    content: "";
    display: inline-block;
    position: static;
    pointer-events: none;
    width: 0;
    height: 0;
    border-style: solid;
    /* pointing up */
    /* border-width: 0 10px 15px 10px; */
    /* border-color: transparent transparent var(--clr-primary) transparent; */

    /* pointing down */
    border-width: 15px 10px 0 10px;
    border-color: var(--clr-primary) transparent transparent transparent;

    /* pointing left */
    /* border-width: 10px 15px 10px 0; */
    /* border-color: transparent var(--clr-primary) transparent transparent; */

    /* pointing right */
    /* border-width: 10px 0 10px 15px; */
    /* border-color: transparent transparent transparent var(--clr-primary); */
}

#additional-items .item .title::after {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}




body.no-scroll {
    overflow: hidden;
    height: 100dvh;
    width: 100dvw;
}
#age-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#age-box {
    padding: 30px;
    text-align: center;
    max-width: 550px;
    width: 90%;
    color: #FFF;
}

#age-box button {
    margin: 10px;
    padding: 10px 30px;
    cursor: pointer;
    border: solid 2px var(--clr-primary);
    font-size: 18px;
    color: #FFF;
    background-color: rgba(0,0,0,0);
    text-transform: uppercase;
    font-weight: 700;
}