/**
Theme Name: BBP 2025
Author: Kiely Design
Author URI: https://kielydesign.com
Description: twentytwentyfive child theme
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bbp-2025
Template: twentytwentyfive
*/


/* Header Navigation 
------------------------------------------------------------------------------------- */

/* Sticky Header 
header.wp-block-template-part {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0);
    z-index: 9999 !important;
}
*/

/* Hide on scroll */
/* Default header position */
header.wp-block-template-part {
    top: 0;
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0);
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: transform 0.4s ease-in-out;
}

/* Slide-up state */
header.wp-block-template-part.is-hidden {
    transform: translateY(-100%);
}


/* Header Navigation - Sub-Menu Styles
------------------------------------------------------------------------------------- */

/* Remove Border Sub-Menu */
header.wp-block-template-part .wp-block-navigation-submenu {
    border: none !important;
    
}

/* Add some space on the dropdown menu */
.wp-block-navigation__submenu-container {
    padding-top: 7px !important;
    padding-bottom: 4px !important;
    transition: margin-top 0.2s ease !important;
    order: none !important;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.08);
}



/* Header Navigation - Current Menu Item Styles and hover
------------------------------------------------------------------------------------- */

/* Wordpress currently does not support this */
.wp-block-navigation__responsive-container .current-menu-item>a,
.wp-block-navigation__responsive-container .current-menu-ancestor>a,
.wp-block-navigation__responsive-container .current_page_item>a,
.wp-block-navigation__responsive-container .current_page_ancestor>a {
    color: #F26657 !important;
}

/* Add orange hover to navigation */
.wp-block-navigation a {
    transition: color 0.2s ease;
}
.wp-block-navigation a:hover {
    color: #F26657 !important;
    text-decoration: none;
}


/* Mobile Menu - Breakpoint and styles
------------------------------------------------------------------------------------- */

/* Change Mobile Menu Breakpoint */
@media screen and (max-width: 1120px) {

    /* hamburger button */
    .wp-block-navigation__responsive-container-open {
        display: block !important;
    }

    /* full menu */
    .wp-block-navigation__responsive-container:not(.is-menu-open.has-modal-open) {
        display: none !important;
    }

    /* Ensure the mobile menu overlay fills the screen */
    .wp-block-navigation__responsive-container {
        /* height: 100vh !important; */
        padding-top: 25px !important;
        padding-bottom: 25px !important;
        border: none !important;
    }
}

/* Change Mobile Menu Text Styles When Open */
.wp-block-navigation__responsive-container.has-modal-open .bbp-main-navigation a {
    font-size: 25px;
    line-height: 1;
    text-align: center;
}

.wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__submenu-container a {
    font-size: 15px;
    text-align: center;
    line-height: 1.3;
    padding-top: 9px;
}

.wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__submenu-container{
    box-shadow: none;
}


/* Navigation - Smooth scroll to top
------------------------------------------------------------------------------------- */

html,
body {
    scroll-behavior: smooth;
}

#smoothup {
    display: none;
    position: fixed;
    z-index: 9999;
    bottom: 40px;
    /* right: 40px; */
    /* optional if you want it in the bottom-right corner */
    background-color: #0D70B5;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    line-height: 40px; /* vertical centering */
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.20); /* Subtle shadow */
}

/* Shift the arrow up */
#smoothup {
    line-height: 40px;
}

#smoothup span {
    position: relative;
    top: -2px;
}

#smoothup:hover,
#smoothup:active {
    background-color: #F26657;
    transform: scale(1.05); /* Subtle scale on hover/active */
}

/* Footer adjustments
------------------------------------------------------------------------------------- */

@media screen and (max-width: 781px) {
.kd-footer-Column-01 {
    border: 0px !important;
}

}

.kd-footer a:hover {
    color: #F26657 !important;
}

/* Accesability - Turn off the focus border
------------------------------------------------------------------------------------- */

input:focus,
textarea:focus {
    outline: none;
    /* Removes the default outline */
    border: none;
    /* Removes the border as well, if desired */
}

button:focus {
    outline: none;
    /* Removes the default outline */
}

a:focus {
    outline: none;
    /* Removes the default outline */
}

/* Remove focus outlines for submenu items in all browsers */
header.wp-block-template-part .wp-block-navigation-submenu:focus,
header.wp-block-template-part .wp-block-navigation-submenu:focus-within,
header.wp-block-template-part .wp-block-navigation-submenu a:focus,
header.wp-block-template-part .wp-block-navigation-submenu a:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

/* Safari-specific reset (works for macOS and iOS Safari) */
@supports (-webkit-touch-callout: none) {

    header.wp-block-template-part .wp-block-navigation-submenu:focus,
    header.wp-block-template-part .wp-block-navigation-submenu:focus-within,
    header.wp-block-template-part .wp-block-navigation-submenu a:focus,
    header.wp-block-template-part .wp-block-navigation-submenu a:focus-within {
        outline: none !important;
        box-shadow: none !important;
    }
}


/* Google Rexaptach and Forms - hide badge
------------------------------------------------------------------------------------- */
.grecaptcha-badge {
    visibility: hidden !important;
}


/* Footer Adjustments
------------------------------------------------------------------------------------- */
footer {
    margin-block-start: 0 !important;
}

/* Home Page Adjustment
------------------------------------------------------------------------------------- */

/* Adjust home header h1 - small type */
.kd-home-header h1 strong em {
    font-style: normal;
    font-size: 28px;
    position: relative;
    display: inline-block;
    bottom: 28px;
    margin-right: -15px;
}

/* Set home header to a non-responsive size */
.kd-home-header .kd-home-header-h1 {
    font-size: 70px!important;
}

/* Restrict tag width */
.kd-home-header .kd-home-header-tag {
    width: 400px!important;
}

/* Make changes to mobile sizes */
@media screen and (max-width: 800px) {

    .kd-home-header .kd-home-header-h1 {
            width: 300px !important;
            font-size: 40px !important;
        }

    .kd-home-header h1 strong em {
        font-style: normal;
        font-size: 18px;
        position: relative;
        display: inline-block;
        bottom: 15px;
        margin-right: -10px;
    }

    .kd-home-header .kd-home-header-tag {
        width: 250px !important;
    }
}


/* Page Template Adjustments
------------------------------------------------------------------------------------- */


/* Case Study Block Adjustments
------------------------------------------------------------------------------------- */

.kd-case-studies .uagb-post__inner-wrap {
    transition: transform 0.3s ease;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    padding-top: 10px;
    overflow: visible;
}

.kd-case-studies .uagb-post__inner-wrap:hover .uagb-post__cta a {
    background-color: #F26657;
}

.kd-case-studies .uagb-post__cta a {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.kd-case-studies .uagb-post__inner-wrap:hover {
    transform: scale(1.01);
}

.kd-case-studies .uagb-post__image {
    transition: transform 0.3s ease;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    overflow: hidden !important;
}

/* Orange hover for the h3 */
.kd-case-studies .uagb-post__inner-wrap:hover h3 {
    color: #F26657;
}

.kd-case-studies .uagb-post__inner-wrap:hover .uagb-post__cta a {
    background-color: #F26657 !important;
}


/* Case Study Archive - fix mobile spacing */

@media screen and (max-width: 976px) {
    .kd-case-studies-archive .uagb-post__inner-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
    }
    
    .kd-case-studies-archive .uagb-post__inner-wrap h3,
    .kd-case-studies-archive .uagb-post__cta {
        padding-left: 20px;
        padding-bottom: 20px;
    }
}


/* Additional Block Style Adjustments
------------------------------------------------------------------------------------- */

/* For block buttons */
.wp-block-button__link:hover {
    background-color: #F26657;
    color: white;
    /* Optional: make text white on hover */
    border-color: #F26657;
}

/* For HTML buttons */
button:hover,
input[type="submit"]:hover {
    background-color: #F26657;
    color: white;
    border-color: #F26657;
}

/* Block Quote Default - orange quotes*/
.wp-block-quote.is-style-default {
    position: relative;
   
}

.wp-block-quote.is-style-default::before {
    content: url('images/quote-small.svg');
    position: absolute;
    left: -43px;
    top: -3px;
    width: 32px !important;
}


.wp-block-quote.is-style-default p::after {
    content: "";
    display: inline-block;
    background-image: url('images/quote-small-close.svg');
    background-repeat: no-repeat;
    background-size: contain;
    width: 32px;
    height: 32px;
    margin-left: 6px;
    vertical-align: -15px;
}


/* Block Quote Plain - large background blue quote */

.wp-block-quote.is-style-plain {
    position: relative;
    margin-top: 2px;
    z-index: 0;
}

.wp-block-quote.is-style-plain::before {
    content: url('images/quote-large.svg');
    position: absolute;
    left: -40px;
    top: -30px;
    width: 130px;
    height: auto;
    z-index: -1;
    /* push further behind just in case */
}

.wp-block-quote.is-style-plain p {
    position: relative;
    z-index: 1;
}


/* Change bullets on lists to orange */

.entry-content ul li::marker {
    color: #F26657;
}


/* Spectra Info Box */

.kd-info-box .uagb-ifb-content {
    background: linear-gradient(45deg, #0D70B5, #72C5F6);
    border-radius: 10px;
    margin-top: 40px;
}

.kd-info-box .uagb-ifb-content p,
.kd-info-box .uagb-ifb-content h3 {
    color: white !important;
    line-height: 1.5;
    margin-left: 15px;
    margin-right: 15px;
}

.kd-info-box .uagb-ifb-content .uagb-ifb-icon-wrap {
    margin-top: -60px !important;
}

.kd-info-box .uagb-ifb-content .uagb-ifb-icon-wrap .uagb-infobox-shape-circle {
    background-color: white;
}

/* Small mobile content adjustments
------------------------------------------------------------------------------------- */

@media screen and (max-width: 420px) {
    h2 { font-size: 30px !important; }
    h3 { font-size: 20px !important; }
}

/* Animate - tied to java-script document
------------------------------------------------------------------------------------- */
/* Base animation state (hidden and offset) */
.animate-slide-up,
.animate-slide-left,
.animate-slide-right {
    opacity: 0;
    transition:
    opacity 0.6s ease-out 0.08s,
    transform 0.6s ease-out 0.08s;
    will-change: opacity, transform;
}

/* Slide Up */
.animate-slide-up {
    transform: translateY(80px);
}

/* Slide Left */
.animate-slide-left {
    transform: translateX(80px);
}

/* Slide Right */
.animate-slide-right {
    transform: translateX(-80px);
}

/* When in view, animate to visible and reset position */
.in-view.animate-slide-up,
.in-view.animate-slide-left,
.in-view.animate-slide-right {
    opacity: 1;
    transform: translate(0, 0);
}


/* Page load effect
------------------------------------------------------------------------------------- */

/* Initial hidden state */
body {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

/* Fade in when loaded */
body.page-loaded {
    opacity: 1;
}