/*
Theme Name: Our Theme
Theme URI: https://jays.me
Author: Jay King
Author URI: https://jays.me
Description: Custom Theme Development
*/

:root {
    --primary: #CAF291;
    --accent: #FFB3DB;  
    --border: #3F3F3F;
    --color: #bbb;

    --font: Site Roboto;
    --font-big: Site Heading Now;

    --header-background: transparent;
}

body {
    padding: 0;
    margin: 0;
    background-color: #111;
    color: var(--color);
    font-family: var(--font);
    font-size: 18px;

    &:has( #contact-bubble-popup.open, #masthead .wrap.open ) {
        overflow: hidden;
    }

    &:has( #blog, #blog-single, #service-banner  ) {
        background-color: #fff;

        #masthead {
            .inner.active {
                --header-background: #F6F6F6;             
            }

            .navigation a:not(.active) {
                filter: invert(1);
            }

            .branding img {
                filter: invert(1);
            } 

            .handler-mobile {
                filter: invert(1);
            } 
                           
            .wrap.open {
                .navigation a {
                    filter: invert(0);
                }

                .branding img {
                    filter: invert(0);
                }          

                .handler-mobile {
                    filter: invert(0);
                } 
            }
        }

        #footer {
            background-color: #111;
        }
    }

    &:has( #blog, #blog-single  ) {
        #footer {
            background-color: #fff;
        }
    }

    @media only screen and (max-width: 980px) {
        font-size: 16px;
    } 

    overflow-x: hidden !important;
}

a {
    text-decoration: none;
    color: var(--color);
}

img {
    max-width: 100%;
}

.container {
    max-width: 1170px;
    margin-inline: auto;
    padding-inline: 28px;
    box-sizing: border-box;
}

.container-medium {
    position: relative;
    max-width: 950px;
    margin-inline: auto;
    padding-inline: 28px;
    box-sizing: border-box;
}

.container-large {
    max-width: 1690px;
    margin-inline: auto;
    padding-inline: 28px;
    box-sizing: border-box;
}

.header {
    position: relative;
    display: grid;
    align-content: baseline;
    gap: 24px;
    margin-bottom: 64px;

    @media only screen and (max-width: 980px) {
        margin-bottom: 32px;
        overflow-x: clip;
    } 

    .description:empty {
        display: none;
    }    

    u {
        position: relative;
        text-decoration: none;

        &:after {
            content: "";
            bottom: 4px;
            background-image: url(assets/img/pink-underline.svg);
            background-position: 50%;
            background-repeat: no-repeat;
            background-size: 100% 100%;
            content: "";
            height: 25px;
            left: -10px;
            position: absolute;
            right: -10px;
            z-index: -1;
            z-index: 0;
        }
    }
    
}

.sub,
.subline {
    border: 2px solid var(--primary);
    border-radius: 4px;
    padding: 12px 12px;
    text-transform: uppercase;
    width: fit-content;
    font-family: var(--font-big);
    font-weight: 700;
    color: #fff;
    font-size: 24px;
    text-box: cap alphabetic;
    transform: rotate(-4deg);

    &.center {
        margin-inline: auto;
    }

    &.white {
        background-color: #fff;
        border: none;
        color: #111;
    }

    @media only screen and (max-width: 980px) {
        font-size: 20px;
        padding: 8px;       
    } 
}

.sub {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #111;
}

.title {
    position: relative;
    text-box: cap alphabetic;
    font-size: 160px;
    font-weight: 800;
    line-height: 0.9;
    color: #fff;
    text-transform: uppercase;
    font-family: var(--font-big);   

    &.primary {
        color: var(--primary);
    }

    &.accent {
        color: var(--accent);
    }

    &.wnormal {
        font-weight: normal;
    }

    u {
        color: var(--accent);
        text-decoration: none;
    }

    &.white {
        color: #fff;
    }

    &.dark {
        color: #111;
    }

    &.medium {
        font-size: 80px;
        line-height: 1;
    }

    &.small {
        font-size: 60px;
    }

    &.xsmall {
        font-size: 30px;
    }

    &.large {
        font-size: 104px;
    }

    &.xlarge {
        font-size: 120px;
    }

    &.center {
        text-align: center;
    }

    @media only screen and (max-width: 980px) {
        &.large, 
        &.xlarge,
        &.medium {
            font-size: 64px;
        }

        font-size: 64px;

        br {
            display: none;
        }
    } 

    svg {
        @media only screen and (max-width: 980px) {
            width: auto;
            height: 54px;
        }
    }


}

.description {
    font-size: 24px;
    line-height: 1.4;
    _white-space: break-spaces;

    &.center {
        text-align: center;
    }   

    &.normal {
        font-size: 20px;
    }   

    &.white {
        color: #fff;
    }

    &.darker {
        color: #555;
    }

    @media only screen and (max-width: 980px) {
        font-size: 18px !important;
    } 
}

.text {
    line-height: 1.5; 
}

.btn {
    position: relative;
    z-index: 2;
    background-color: var(--primary);
    font-size: 26px;
    border-radius: 250px;
    padding: 12px 40px;
    color: #111;
    font-weight: 800;
    font-family: var(--font-big);
    text-transform: uppercase;
    text-box: cap alphabetic;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;

    &:has(img) {
        padding-left: 16px;
    }

    img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid #fff;
        
        &:not(:last-child) {
            margin-right: -24px;
        }

        @media only screen and (max-width: 980px) {
            width: 30px;
            height: 30px;
        }     
    }

    span {
        --size: 6px;
        --color: #fff;
        width: 0px;
        height: 0px;
        display: block;
        border-top: var(--size) solid transparent;
        border-bottom: var(--size) solid transparent;
        border-left: calc(var(--size) + 3px) solid var(--color);
    }   
    
    &.large {
        width: 100%;
    }

    &.medium {
        font-size: 20px;
    }

    &.normal {
        font-size: 20px;
        padding: 8px 26px 8px 15px;

        img {
            width: 30px;
            height: 30px;
        }

        &:hover {
            &:after {
                inset: -6px;
            }
        }
    }

    &:after {
        content: "";
        border: 2px solid transparent;
        position: absolute;
        inset: 0;
        border-radius: 250px;
        transition: all 0.3s;       
    }

    &:hover {
        border-color: var(--primary);

        &:after {
            inset: -8px;
            border: 2px solid var(--primary);
        }
    }

    &.outline {
        background-color: transparent;
        border: 2px solid var(--primary);
        color: #fff;

        &:hover {
            border-color: #fff;

            &:after {
                inset: -8px;
                border: 2px solid #fff;
            }
        }
    }

    &.dark {
        border: 2px solid #eee;
        color: #111;

        &:hover {
            border-color: var(--primary);

            &:after {
                border: 2px solid var(--primary);
            }
        }
    }

    &.black {
        background-color: #111;
        border: 2px solid #111;
        color: #fff;

        &:hover {
            background-color: #fff;
            color: #111;

            &:after {
                border: 2px solid #111;
            }
        }
    }

    @media only screen and (max-width: 980px) {
        font-size: 22px;
    }
}


.inline-icon {
    svg {
        transition: all 0.3s;
    }

    &:hover svg {
        transform: rotate(20deg);
    }   
}

.icon-love {
    transform: rotate(12deg);
    display: inline-block;
    height: 95px;
    margin-left: -10px;
    margin-right: -10px;
    margin-top: -10px;
    width: 95px;
}

.icon-love svg path {
    animation: pulsingHeart 1s linear infinite;
    transform-box: fill-box;
    transform-origin: center;
}

#banner .green-smile {
    bottom: -80px;
    right: -80px;
    position: absolute;
    top: unset;
    width: 120px;
    height: 120px;
}

.green-smile {
    height: 100px;
    right: 10px;
    top: 90px;
    width: 100px;
}

@keyframes pulsingHeart {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.05)
    }

    to {
        transform: scale(1)
    }
}

























.cta-bubble {
    bottom: -95px;
    display: block;
    height: 182px;
    opacity: 1;
    position: fixed;
    right: -95px;
    transform: scale(0);
    transition: opacity .6s ease-out;
    width: 200px;
    z-index: 9999;
    cursor: pointer;

    @media(max-width: 980px) {
        display: none !important;
    }   
}

@media (min-width: 767px) {
    .cta-bubble {
        bottom:-111px;
        height: 222px;
        right: -155px;
        width: 270px
    }
}

@media (min-width: 1400px) {
    .cta-bubble {
        bottom:-125px;
        height: 251px;
        right: -162px;
        width: 305px
    }
}

@media (min-width: 1920px) {
    .cta-bubble {
        bottom:-140px;
        height: 280px;
        right: -170px;
        width: 340px
    }
}

.cta-bubble>button {
    align-items: flex-start;
    background-color: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    inset: 0;
    padding: 30px 42px;
    position: absolute;
    text-decoration: none;
    width: 100%;
    cursor: pointer;
}

@media (min-width: 767px) {
    .cta-bubble>button {
        padding:40px 45px
    }

    .cta-bubble>button:hover .bubble-icon {
        transform: rotate(10deg)
    }
}

@media (min-width: 1400px) {
    .cta-bubble>button {
        padding:42px 55px
    }
}

@media (min-width: 1920px) {
    .cta-bubble>button {
        padding:44px 63px
    }
}

.cta-bubble.is-visible {
    animation: bubble .5s ease-in-out forwards
}

.cta-bubble.is-visible .text-line1 span,.cta-bubble.is-visible .text-line2 span {
    opacity: 1;
    transform: translateY(0)
}

.cta-bubble.is-hidden {
    animation: reverse-bubble .5s ease-in-out forwards
}

.cta-bubble.is-hidden .text-line1 span,.cta-bubble.is-hidden .text-line2 span {
    opacity: 0;
    transform: translateY(100%)
}

.cta-bubble .bubble-icon {
    height: 40px;
    left: -5px;
    position: absolute;
    top: 26px;
    transform: translateZ(0);
    transform-origin: bottom right;
    width: 40px
}

@media (min-width: 767px) {
    .cta-bubble .bubble-icon {
        height:45px;
        left: -10px;
        top: 30px;
        width: 45px
    }
}

@media (min-width: 1400px) {
    .cta-bubble .bubble-icon {
        height:55px;
        left: -10px;
        width: 55px
    }
}

@media (min-width: 1920px) {
    .cta-bubble .bubble-icon {
        height:65px;
        left: -10px;
        top: auto;
        width: 65px
    }
}

.cta-bubble .bubble-text {
    color: #1a1a1a;
    font-family: var(--font-big);
    font-size: 2.2rem;
    font-weight: 400;
    height: 22px;
    line-height: 1;
    overflow: hidden;
    position: relative;
    text-transform: uppercase;

    font-size: 38px !important;
    font-weight: 700 !important;
}

@media (min-width: 767px) {
    .cta-bubble .bubble-text {
        font-size:3rem;
        height: 28px;
        line-height: 1
    }
}

@media (min-width: 1400px) {
    .cta-bubble .bubble-text {
        font-size:3.7rem;
        height: 35px
    }
}

@media (min-width: 1920px) {
    .cta-bubble .bubble-text {
        font-size:4.2rem;
        height: 40px;
        line-height: 1
    }
}

.cta-bubble .bubble-text span {
    display: block;
    opacity: 0;
    position: relative;
    transform: translateY(1001%);
    white-space: nowrap
}

.cta-bubble .bubble-text.text-line1 span {
    transition: transform .4s ease-in .3s,opacity .4s ease-out
}

.cta-bubble .bubble-text.text-line2 span {
    transition: transform .4s ease-in .5s,opacity .4s ease-out
}

@keyframes bubble {
    0% {
        transform: scale(0)
    }

    50% {
        transform: scale(1.2)
    }

    70% {
        transform: scale(.9)
    }

    90% {
        transform: scale(1.05)
    }

    to {
        transform: scale(1)
    }
}

@keyframes reverse-bubble {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.2)
    }

    to {
        transform: scale(0)
    }
}

.bubble-animation {
    background-color: var(--primary);
    border-radius: 50%;
    bottom: -10px;
    height: 10px;
    position: fixed;
    right: -10px;
    transform: translate(50%,50%);
    transition: width 1s cubic-bezier(.25,.8,.5,1) .75s,height 1s cubic-bezier(.25,.8,.5,1) .75s;
    width: 10px;
    z-index: 9998
}

.bubble-animation.is-active {
    bottom: 0;
    height: 300vmax;
    right: 0;
    width: 300vmax;
    z-index: 99999
}

.cta-bubble.is-hidden {
    animation: reverse-bubble .5s ease-in-out forwards;
}














#wordpress-page {
    padding-top: 300px;
    padding-bottom: 120px;

    h2,
    h3,
    b,
    strong {
        color: #fff;
    }
}

.buttons {
    display: flex;
    gap: 12px;

    @media only screen and (max-width: 980px) {
        display: grid;
    } 
}

[data-svg-position] {
    position: relative;
    height: fit-content;
    display: inline-block;

    svg {
        position: absolute;
        line-height: 0;        
    }

    &[data-svg-position="slide"] svg {
        bottom: 0;
        right: -100%;
    }

    &[data-svg-position="about"] svg {
        bottom: 0;
        left: 100%;
    }

    &[data-svg-position="services"] svg {
        bottom: 45%;
        left: 65%;
    }

    &[data-svg-position="portfolio"] svg {
        bottom: 0;
        left: 100%;
    }

    &[data-svg-position="top-right"] svg {
        bottom: 100%;
        right: 0;
    }



}











#blog-single {
    padding-top: 300px;
    padding-bottom: 120px;
    color: #666;

    @media only screen and (max-width: 980px) {
        padding-top: 120px;
        padding-bottom: 64px;
    } 

    .header {
        .title {
            @media only screen and (min-width: 980px) {
               font-size: 120px;
            } 
        }

        .description {
            border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
        }
    }

    .image img {
        border-radius: 32px;
    }

    h2,
    h3 {
        color: #111;
        font-size: 24px;
    }

    .article {
        line-height: 1.7;
    }

    .explore-more {
        display: grid;
        gap: 32px;
        border-top: 1px dashed rgba(0, 0, 0, 0.2);
        border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
        margin-block: 120px;
        padding-block: 120px;

        @media only screen and (max-width: 980px) {
            margin-block: 64px;
            padding-block: 64px;       
        } 

        .cats {
            display: flex;
            gap: 8px;

            @media only screen and (max-width: 980px) {
                display: grid;
                justify-content: start;          
            } 
        }

        .title {
            font-size: 26px;
        }
    }

    .read-next {
        display: grid;
        gap: 64px;

        .title {
            @media only screen and (min-width: 980px) {
                font-size: 80px; 
            } 
        }
    }
}