/*
Theme Name: SS & A 2025 updates
Author: Suono
Author URI: https://suono.uk/
Description:
Version: 1.0.0
*/

/* NEW COLOURS */
:root{
    --body-titles:black;
    --body-text:black;
    --menu-bg: black;
    --menu-text: white;
    --spot-colour:rgb(0,0,0);
    --spot-colour-text:rgb(0,0,0);
    --spot-colour-overlay:rgb(100,100,100);
    --glass:255,255,255;
    --glass-text:black;
    --glass-text-hover:var(--spot-colour-text);
    --transition:
        color .3s ease-out,
        opacity .3s ease-out,
        transform .3s ease-out,
        background-color .3s ease-out,
        -webkit-transform .3s ease-out,
        left .3s ease-out,
        right .3s ease-out;
}

/* APP.MIN.CSS OVERRIDES */
html, .uk-h1,.uk-h2,.uk-h3,.uk-h4,.uk-h5,.uk-h6,h1,h2,h3,h4,h5,h6{
    /* this is currently loading direct from Google (see enqueue) rather than a local copy */
    font-family: Poppins, Nunito Sans;
}
.bordered-block .block-title {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.uk-background-primary{
    background-color: var(--menu-bg);
    color: var(--menu-text);
}
.uk-button{
    font-weight: 600;
}
.uk-button:hover {
    background-color: var(--spot-colour);
    color: var(--menu-text);
}
.uk-container {
    padding-left: min(15px,2%);
    padding-right: min(15px,2%);
}
.uk-container>p{padding:0 30px;}
.uk-margin-large-top{margin-top: 30px !important;}
.uk-margin-large-bottom {margin-bottom: 30px !important;}
.projects{margin-bottom: 50px;}
.uk-padding-large {padding: 0px;}
.wp-theme-ss-and-a{min-height: 100vh;}
.uk-grid {margin-left: unset;}
.uk-container {max-width: calc(100% - 60px);}
.contact-content{
    justify-content: center;
    gap:30px;
}
body.page-contact .right {width:unset}
.uk-offcanvas-overlay::before {
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

}
.pad-right>*{
    padding-right: 30px;
}

@media (min-width: 959px) {
    .uk-container.service-block .text_left{
        flex:0.5;
        width: calc(50vw - 80px) !important;
        padding-right:60px;
        margin-left:30px;
    }
    .uk-container.service-block .text_right{
        flex:1;
        width: calc(50vw - 80px) !important;
    }
    .uk-container.service-block .service-block-img{
        /* width: 50% !important; */
        flex:1;
    }
    .uk-grid .text_right {
        width: 100%;
    }
    .uk-grid .text_left {
        padding-left:20px;
    }
}
@media (min-width:768px){
    .bordered-block .block-title {
    max-width: unset;
    }
}
.image-block .hover{
    padding: 30px;
}

/* TEAM FORMATTING */
.team.uk-container{
    margin:30px 0;
    padding:40px 20px;
    width: calc(100% - 40px);
    max-width: unset;
    background-color: var(--menu-bg);
    color: var(--menu-text);
}
.team.uk-container>div{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    gap:40px;
}

@media (min-width: 640px) {
.team.uk-container .single-team-member{max-width: 300px;}
}

.team.uk-container .single-team-member h4{
    color: var(--menu-text);
    font-weight: 400;
}
.team.uk-container .single-team-member h5{
    color: var(--menu-text);
    font-size: 15px;
}



/* MAKE INLINE MENUS LOOK LIKE HEADER */
.projects__filters{
    --text-hover: var(--body-titles);
}
.projects__filters ul{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding:0 min(20px,3%);
    max-width: 100%;
    gap:10px;
}
.projects__filters li{
    padding:0 !important;
}
.projects__filters a{
    position: relative;
    color:var(--body-titles) !important;
    opacity: 0.5;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px !important;
    font-weight: 400;
    letter-spacing: 3px;
    padding: 3px 0px;
}
@media (max-width: 640px) {
    .projects__filters{margin: 0 -30px;}
    .projects__filters a{font-size: 12px !important;}
}
.projects__filters a:hover,
.projects__filters a.active{
    opacity: 1;
}
.projects__filters a:before{
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    background: var(--text-hover);
    height: 2px;
    transition: var(--transition);
}
.projects__filters a.active:before,
.projects__filters a:hover:before {
    left: 0px;
    right: 0px;
}
.projects__filters a:not(.active):hover {
    color: var(--spot-colour) !important;
}
.projects__filters a:not(.active):hover:before {
    background-color: var(--spot-colour);
}



/* SIDE MENU */
.uk-offcanvas-close{
    display: none;
}
.uk-offcanvas{
    z-index: 150;
}
.uk-offcanvas-bar{
    background-color: var(--menu-bg);
    color: var(--menu-text);
    transform: translateY(-100%) translateX(0%);
    width: 100%;
    padding-top:100px;
    height: fit-content;
}
.uk-icon svg{
    width: 30px;
    transform: scaleY(75%);
    transition: var(--transition);
}
.uk-offcanvas-page .uk-offcanvas-overlay{
    width: 100% !important;
    height: 100vh !important;
    overflow-y: hidden !important;
}
.uk-offcanvas-page .sticky-head nav>a{
    color: var(--glass-text);
}
.uk-offcanvas-page:has(.uk-offcanvas.uk-offcanvas-overlay.uk-open) .sticky-head nav>a svg{
    transform: scaleY(120%);
}



/* GLASS ELEMENT */
@property --Glass1 {
  syntax: '<color>';
  initial-value: white;
  inherits: false;
}
@property --Glass2 {
  syntax: '<color>';
  initial-value: white;
  inherits: false;
}

.glass{
    --Glass1:rgba(var(--glass), 0.2);
    --Glass2:rgba(var(--glass), 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.uk-offcanvas-page:has(.uk-offcanvas.uk-offcanvas-overlay.uk-open) .glass,
.glass:hover{
    --Glass1: rgba(var(--glass), 0.4);
    --Glass2: rgba(var(--glass), 0.6);
    box-shadow: 0 0px 40px rgba(0, 0, 0, 0.6);
}
@media (hover:none) {
    .uk-offcanvas-page:has(.uk-offcanvas.uk-offcanvas-overlay.uk-open) .glass,
    .glass{
        --Glass1:rgba(var(--glass), 0.8);
        --Glass2:rgba(var(--glass), 0.6);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }
}
.glass{
    transition:
        --Glass1 0.6s, --Glass2 0.6s,
        box-shadow 0.6s
        ;
    background: linear-gradient(var(--Glass1), var(--Glass2));
    border-radius: 16px;
    backdrop-filter: blur(5.8px);
    -webkit-backdrop-filter: blur(5.8px);
    border: 1px solid rgba(var(--glass), 0.45);
    --text-colour: var(--glass-text);
    --text-hover: var(--glass-text-hover);
}
.glass li a{
    font-weight:500 !important;
    color:var(--text-colour);
    /* filter: blur(0.3px); */
    /* -webkit-filter: blur(0.3px); */
    opacity: 0.4;
    transition: var(--transition);
}

.sticky-head .is_a_project a[href="/projects"],
.sticky-head .menu .current_page_item a,
.sticky-head .menu .current-menu-item a,
.glass li a:hover{
    /* filter: blur(0); */
    /* -webkit-filter: blur(0); */
    opacity: 1;
}
.uk-icon{fill: unset;}


/* COLOUR CHANGES */
.greyscale{
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

@media (max-width: 960px) and (hover:hover) {
    /* .image-block .hover { */
        /* opacity: 0.3; */
    /* } */
}

@media (hover:hover) {
    .image-block .hover {
        background-color: rgba(0,0,0, 0.8) !important;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        color:var(--menu-text);
        opacity: 0.3;
    }
}

.image-block p{
    color:unset;
}

.blockcolour .left.uk-background-cover{
    background-color: var(--menu-bg);
    background-image:none !important;   
    opacity: 1;
}

.bordered-block h1,
.bordered-block h2,
.bordered-block h3{
    color:var(--spot-colour);
}
.bordered-block .top-border:before,
.bordered-block .top-border:after,
.bordered-block .bot-border:before,
.bordered-block .bot-border:after{
    border-color: var(--spot-colour);
    border-width: 3px !important;
    height: 20px;
    width: 20px;
}


@media (max-width: 959px) {
    .blockcolour .service-block{
        background-color: var(--menu-bg);
    }
    .blockcolour .uk-background-cover{
        margin: 20px auto !important;
    }
}
.blockcolour .uk-first-column,
.blockcolour .text_left,
.blockcolour h3{
    color: var(--menu-text);
}


/* STICKY HEADER */
.sticky-head{
    position: fixed;
    z-index: 200;
    float: left;
    top:0px;
    width: 100%;
}
.sticky-head>div{
    margin:0;
    max-width: unset;
}

/* .sticky-head .uk-container{max-width: 800px;} */
.sticky-head:has(.glass){
    --margin-y:10px;
    --margin-x:15px;
    margin:var(--margin-y) var(--margin-x);
    width: calc(100% - 2 * var(--margin-x));
}
@media (max-width:768px){
    .sticky-head:has(.glass){
        --margin-y:7px;
        --margin-x:7px;
    }
}
.sticky-head .menu {
    margin: 0 -10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: row;
}
.sticky-head .menu li {
    display: inline-block;
}
.sticky-head .menu a {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    padding: 3px 10px;
    position: relative;
}

.sticky-head .menu a:before {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    /* background: #3e8391; */
    background: var(--text-hover);
    height: 2px;
    transition: var(--transition);
}

.sticky-head .menu .current_page_item a:before,
.sticky-head .menu .current-menu-item a:before{
    background: var(--text-colour) !important;  
}

.sticky-head .is_a_project a[href="/projects"]:before,
.sticky-head .menu .current_page_item a:before,
.sticky-head .menu .current-menu-item a:before,
.sticky-head .menu a:hover:before {
    left:10px;
    right: 13px;
}

.sticky-head .menu :not(.current_page_item):not(.current-menu-item) a:hover {
    color: var(--text-hover);
}
.sticky-head .menu a:hover {
    text-decoration: none;
}

.sticky-head nav>a:hover{
    color: unset;
} 


/* STICKY HEADER PAGE HEADING */
.sticky-head nav{
    display: flex;
    flex-direction: row;
    gap:20px;
    justify-content: flex-end;
    width: 100%;
}
.sticky-head .page-title{
    text-transform: uppercase;
    /* line-height: normal; */
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    margin:0;
    text-wrap: nowrap;
    align-content: center;
    color:var(--glass-text);
    position: relative;
}
.sticky-head .page-title a{
    color:var(--glass-text);
}
.sticky-head .page-title a:hover{
    color: unset;
    text-decoration: none;
}
.sticky-head .page-title span:before{
    content: "";
    background: var(--glass-text);
    height: 2px;
    position: absolute;
    left: 0px;
    right: 2px;
    bottom: 2px;
}
@media (min-width: 959px) {
    .sticky-head .page-title {
        display: none !important;
    }
}

/* LOGO SETTINGS */
.ssa_logo{
    width:auto;
    height: auto;
    max-height: 50px;
}

/* TOP IMAGE TWEAKS */
/* image heights */
body.home header.site-header{height: 450px;}
header.site-header .page-heading {height:300px}
header.site-header {background-color: unset;}

/* remove slider buttons */
.home-image-slider button{display: none !important;}

/* black border below image */
.black-gap{border-bottom: solid var(--menu-bg) 30px;}

@media (max-width:960px){
    body.home header.site-header {height: 300px;}
    .black-gap{border-bottom-width: 20px;}
}

/* SERVICES OPTIONS ON HOME PAGE */
.service_grid{
    width: 100%;
    display: grid;
    grid-template-rows: auto;
    gap:10px;
}
.service_grid>div{
    flex:1;
    padding:0;
}
.service_grid>div>a{
    height: 100%;
}
@media (hover: hover) {
.service_grid .image-block .hover {opacity: 0.5;}
.service_grid .image-block .hover:hover {opacity: 1;}
}
@media (hover: none) {
.service_grid .image-block .hover {opacity: unset;}
}

@media (max-width: 564px) {
    .service_grid{grid-template-columns: 1fr ;}
    .service_grid>div{height: 200px;}
}
@media (min-width: 565px) and (max-width: 979px) {
    .service_grid{grid-template-columns: 1fr 1fr;}
    .service_grid>div{height: 200px;}
}
@media (min-width: 980px) {
    .service_grid{grid-template-columns: 1fr 1fr 1fr 1fr;}
    .service_grid>div{height: 200px;}
}

/* HASH LINKS TO SERVICES ON SERVICE PAGE */
.hash_target{
    scroll-margin-top: 120px;
}