/*
Theme Name: BlankSlate Child
*/

:root {
    --primaryColor :#FE7E00;
}

html {
    overflow-x: hidden;
}

body {
	background: black;
    width: 100vw;
    overflow-x: hidden;

    &::before {
        content: "";
        position: fixed;
        left: 0;
        bottom: 0;
        transform: translateX(-40%);
        width: 100vw;
        height: 100vh;
        border-radius: 50%;
        background: radial-gradient(
            circle at center,
            rgba(254, 126, 0, 0.25) 0%,
            rgba(254, 126, 0, 0.1) 40%,
            rgba(254, 126, 0, 0) 80%
        );
        filter: blur(40px);
        pointer-events: none;
        animation: bulbPulse 4s infinite ease-in-out;
        z-index: -1;
    }
}

@keyframes bulbPulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}


@font-face {
    font-family: 'Croogla4F';
    src: url('/wp-content/themes/blankslate-child/includes/fonts/Croogla4F.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

h1, h2, h3, h4, h5, h6, .title, .menu-item {
    font-family: 'Croogla4F', sans-serif;
    word-break: break-word;
    line-height: unset!important;
}

p {
    margin-bottom: .75rem!important;
    word-break: break-all;
    a {
        color: var(--primaryColor)
    }
}

.title {
    font-weight: bold;
}

a:hover {
    &:not(.menu-item a) {
        opacity: .9;
    }
}

.orange-text {
    color: var(--primaryColor);
}

li {
    &:hover {
        a {
            color: var(--primaryColor);
        }
    }
}

button.button {
    border: none;
    display: block;
    position: relative;
    padding: 10px 30px;
    font-size: 16px;
    background: black;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    color: white;
    z-index: 1;
    font-family: inherit;
    font-weight: 500;

    span {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        z-index: -1;
        border: 3px solid white;

        &::before {
            content: "";
            display: block;
            position: absolute;
            width: 18%;
            height: 500%;
            background: black;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(-60deg);
            transition: all 0.3s;
        }
    }

    &:hover {
        color: black;
        span {
            &::before {
                transform: translate(-50%, -50%) rotate(-90deg);
                width: 100%;
                height: 100vh;
                background: white;
            }
        }
    }

    &:active {
        span {
            &::before {
                background: white;
            }
        }
    }
}

.basic-box-shadow {
    box-shadow: 0 0 8px 3px #0c0c0c;
}

a:has(button) {
    width: fit-content;
    display: block;
}

.container {
    max-width: 95vw!important;
    margin: 0 auto;

    &.small-container {
        max-width: 960px!important;
        padding: 0 30px;
    }
}

header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.3s ease;

    #header-menu {
        z-index: 9999999999;
    }

    .menu-opener{
        .menu-dot {
            transition: background 0.5s ease;
        }
       
        &:hover {
            .menu-dot {
                background: var(--primaryColor);
            }
        }
    }

    .header-logo {
        width: 300px;
    }

    .menu {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0.5s ease;
      }
    
      .menu.visible {
        opacity: 1;
        visibility: visible;
      }

      .menu-item {
        color: white;
        text-transform: uppercase;
        transition: background 1s ease;
        background-size: 200%;
        background-position: left;

        a {
            color: inherit;
            text-decoration: none;
            width: 100%;
            display: block;

            &:hover {
                background: linear-gradient(to right, #853E00, #FFA500);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-position: right;
              }
          }

          .sub-items-menu {
            padding-left: 2rem;
            opacity: 0;
            pointer-events: none;
            height: 0.01em;
            overflow: hidden;
            transition: opacity .5s ease, height .3s ease;
        
            li {
              font-size: 20px;
              padding-left: 4rem;
              margin-bottom: 1rem;
              position: relative;
        
              &:before {
                content: '';
                position: absolute;
                top: 50%;
                left: 0;
                height: 4px;
                width: calc(4rem - 15px);
                display: block;
                transform: translateY(-50%);
                background: white;
              }

              &:after {
                content: '';
                position: absolute;
                top: 25%;
                left: 0;
                height: 20px;
                width: 5px;
                background: white;
                transform: translateY(-50%);
                }

              &:hover {
                &:before {
                    background: linear-gradient(to right, #853E00, #FFA500);
                }
                &:after {
                    background: linear-gradient(#853E00, #FFA500);
                }
              }
            }
          }
        
          &:hover {
            .sub-items-menu {
              opacity: 1;
              pointer-events: all;
              height: auto;
              transition: opacity 1s ease, height 1s ease; 
            }
          }
        
          &:not(:hover) .sub-items-menu {
            transition: none !important;
          }       
        
      }

      .close-menu {
        span { 
            transition: background 0.5s ease;
        }
        &:hover {
            border-color: linear-gradient(to right, #853E00, #FFA500);
            span {
                background: var(--primaryColor);
            }
        }
    }
}

.text-gradient-orange {
    background: linear-gradient(to right, #853E00, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-position: right;
}

footer {
    padding-top: 6rem;
    background: black;
}

section {
    padding: 6rem 0;

    &.large-banner {
        display: flex;
        flex-direction: column;
        justify-content: end;
        overflow: hidden;
        
        /* .second-half:before {
            content: '';
            position: absolute;
            bottom: 0;
            background-image: url(http://thedigitalink.co/wp-content/uploads/2025/05/ezgif-2dbe6f2cc66ec0.gif);
            width: 70vw;
            z-index: -1;
            height: 100vh;
            background-repeat: no-repeat;
            background-size: cover;
            background-position: right;
        } */

        video {
            position: absolute;
            bottom: 0;
            z-index: -1;
            height: 100vh;
            object-fit: cover;
        }

        .split-word {
            position: relative;
            z-index: 9;
        }
    }
    &.content-slider {
        swiper-wrapper, .inner-container {
            min-height: 600px;
        }
    }
}

@media only screen and (max-width: 1280px) {
    .section { 
        &.content-slider {
            .swiper-wrapper {
                .left-side {
                    width: 50%;
                }
            }
        }
    }
}

@media only screen and (min-width: 1280px) {
    .section { 
        &.content-slider {
            .swiper-slide {
                transition: 1.3s ease-in;
                .left-side {
                    &.content-side {
                        opacity: 0;
                        transition: opacity .6s ease-in 1.2s !important;
                    }
                }
                .image-side {
                    position: absolute;
                    width: 100%;
                    top: -2rem;
                    right: 0;
                    bottom: -2rem;
                }   
                &.swiper-slide-active {
                    width: 50% !important;
                    z-index: 20;
                    .left-side {
                        &.content-side {
                            opacity: 100;
                            z-index: 9;
                        }
                    }
                    .image-side {
                    width: 75%;
                    }   
                }

                &.swiper-slide-next {
                    transform: scale(1.1);
                    z-index: 10;
                    width: 25%!important;
                    &+ .swiper-slide {
                        transform: scale(1.2);
                        z-index: 0;
                        width: 25%
                    }
                }

            } 
            
            .contentSliderMain {
                .swiper-wrapper {
                    padding: 6rem 0;
                }
            }
            .swiper-button-next:after, .swiper-button-prev:after {
                font-size: 22px;
                position: absolute;
                top: 50%;
                transform: translate(-50%, -50%);
                left: 50%;
            }
    } 
    }
}

@media only screen and (max-width: 768px) {
     .section { 
        &.content-slider {
            .swiper-slide {
                .inner-container {
                    flex-direction: column;
                    .left-side,
                    .right-side  {
                        width: 100%;
                    }

                    .right-side {
                        height: 400px;
                    }

                }
            }
        }
    }
}   

.service-block {
    overflow: hidden;
    &:not(:hover) {
        transition-delay: 0.5s;
    }
    &:hover {
        .icon {
            i {
                visibility: visible;
            }
        }
        .larger-content {
            height: fit-content;
            visibility: visible;
            opacity: 100;
            transition-duration: 0s;
        }
        button {
            visibility: visible;
            opacity: 100;
        }
    }
}

.blog-output  {
    .swiper-slide {
        flex-shrink: 0;
        width: calc((100% - 60px) / 4);
        transition: 0.3s ease;

        &.double-width {
            width: calc(((100% - 60px) / 4) * 2 + 20px)!important;
            transition: 1s;
            
            .post-content {
                opacity: 100;
                height: fit-content;
                background: black;
            }

            .post-title {
                font-size: 1.5rem;
            }
        }
        .content-container {
            transition: 1s;
            position: absolute;
            top: 0;
            right: 0;
            width: 70%;
            border-bottom-left-radius: 20px;

            .post-content {
                transition: 1s;
                transition-delay: .8s;
                padding: 0 1.5rem 1.5rem 1.5rem;
            }
    
            .post-title {
                background: black;
                padding: 1.5rem;
                font-size: 1.5rem;
            }
        }

        &:not(.double-width){
            .blog-post {
                .image-container {
                    position: relative;
                }
               
                .post-content {
                    opacity: 0;
                    height: .001em;
                }
            }
        }
        
        img {
            object-fit: cover;
            width: 100%;
            height: 400px;
        }
    }
    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 22px;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        left: 50%;
    }
}

@media only screen and (max-width: 768px) {
    .blog-output  {
        .swiper-slide {
            .content-container {
                width: 100%;
            }
        }
    }
}

.blogs-main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;

    .blog-post {
        width: 100%;
        border-radius: 16px;
        display: flex;
        flex-direction: column;

        .content-container  {
            display: flex;
            flex-direction: column;
            height: -webkit-fill-available;
            .post-content {
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                align-items: flex-end;
            }
        }

        .image-container {
            img {
                height: 400px;
                width: 100%;
                object-fit: cover;
            }
        }
    }
}

@media only screen and (min-width: 1024px) {
    .blogs-main {
        .blog-post {
            width: calc(33% - 40px);
            &:first-of-type {
                flex-direction: row;
                width: calc(60% - 40px);
            }
            &:nth-child(2) {
                width: calc(40% - 40px);
            }
            &:first-of-type {
            flex-direction: row;
            .image-container {
                width: 60%;
                img {
                    height: -webkit-fill-available;
                    position: absolute;
                }
            }

            .content-container  {
                width: 40%;
            }
            .post-title {
                font-size: 2rem;
            }
        }
        }
    }
}

.blogcontent {
    .blog-info {
        text-align: center;
    }
    p {
        margin-bottom: .75rem;
    }
}

.categories-links {
    .line {
        &:last-of-type {
            display: none;
        }
    }
}

.team-section {
    .swiper-slide {
        background: var(--primaryColor);
        p, h2{
            color: white;
        }

        button.button {
            background: transparent;
            & span {
                &::before {
                    background: var(--primaryColor);
                }
            }
            &:hover {
                & span {
                    &::before {
                        background: white !important;
                    }
                }
            }
        }
    }
}

.contact-split {
    .locations{
        &:nth-child(even) {
            .map-container  {
                order: 2;
            }
        }
        &:last-of-type {
            padding-bottom: 0px;
        }
    }
}

.social-footer {
    i {
        font-size: 2rem;
        line-height: 1;
    } 
    a {
        &:hover {
            color: var(--primaryColor);
        }

    }
}

.pagination {
    width: 100%;
    text-align: center;
    padding: 3rem 0;
   .page-numbers {
        color: white;
        font-size: 1.25rem;
        font-weight: bold;
        border: 2px solid white;
        padding: .5rem 1rem;
        &:hover, &:focus {
            color: var(--primaryColor);
            border-color: var(--primaryColor);
        }
    }
}

.blogs-top {
    .blog-categories {
        text-align: center;
    }
}

#floating-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px; 
  height: auto;
  pointer-events: none;
  z-index: -1;
  opacity: 0.05; 
  transition: transform 0.1s linear;
}

.footer-legal-and-partners {
    img, picture {
        height: 50px;
    }
}

span.open-quote, span.close-quote {
    background-image: url(/wp-content/uploads/2025/10/quotation.png);
    width: 50px;
    height: 50px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
}

span.open-quote {
    position: absolute;
    top: 2rem;
    left: 2rem;
    transform: scale(2) rotate(180deg);
}

span.close-quote {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
}

.usp-wrapper {
   .usp-item-icon-number {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1rem;
        background: var(--primaryColor);
        border-radius: 16px;
        position: absolute;
        top: -1.5rem;
        left: -1.5rem;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 1.5rem;
        overflow: hidden;
    }
}

.content-center-simple {
    &.image-disabled {
        .container {
            padding: 0 6rem;
        }
    }
}