/* =========================================================
   BALBOA ELECTRIC — GLOBAL RESET & BASICS
========================================================= */

html,
body {
    overflow-x: hidden !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   BALBOA ELECTRIC — KADENCE HEADER NORMALIZATION
   ---------------------------------------------------------
   ONE HEADER / ONE HEIGHT / ALL PAGES
========================================================= */

/* Remove page-content positioning from affecting header flow */
#masthead,
.site-header {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
}

/* Kadence header wrapper */
.site-header .site-header-row-container-inner,
.site-header .main-header-row-container-inner {
    min-height: 0 !important;
}

/* Main header row */
.site-header .main-header-row {
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Prevent individual header items from adding vertical space */
.site-header .header-navigation,
.site-header .header-item,
.site-header .site-header-item,
.site-header .header-logo,
.site-header .site-branding,
.site-header .custom-logo-link {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Logo itself */
.site-header .custom-logo,
.site-header .custom-logo-link img {
    display: block !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* =========================================================
   HEADER — FORCE CONTENT TO LIVE IN ONE CONSISTENT ROW
========================================================= */

@media (min-width: 1025px) {

    #masthead .site-header-row-container-inner {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    #masthead .main-header-row-container-inner {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    #masthead .main-header-row {
        min-height: 0 !important;
    }

}


/* =========================================================
   CRITICAL:
   DO NOT ALLOW PAGE CONTENT TO PULL ABOVE THE HEADER
========================================================= */

#page {
    margin-top: 0 !important;
}

#primary,
#main,
main,
.site-main,
.content-area {
    margin-top: 0 !important;
}


/* =========================================================
   PREMIER VENTURES / BALBOA — HEADER REQUEST BUTTON
   UPDATED SIZE: 306px × 61px
========================================================= */

.pv-request-button {

    position: relative !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 306px !important;
    height: 61px !important;
    min-height: 61px !important;

    padding: 0 34px !important;
    margin: 0 !important;

    overflow: hidden !important;

    background:
        linear-gradient(
            110deg,
            #285E99 0%,
            #3171B8 38%,
            #3B7FC5 50%,
            #3171B8 62%,
            #285E99 100%
        ) !important;

    border: 1px solid rgba(255,255,255,.20) !important;
    border-radius: 4px !important;

    color: #ffffff !important;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    letter-spacing: 1.55px !important;
    line-height: 1 !important;

    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    transform: translateY(0);

    box-shadow:
        0 1px 0 rgba(255,255,255,.14) inset,
        0 5px 16px rgba(28,67,108,.20);

    transition:
        transform .7s cubic-bezier(.16,1,.3,1),
        background .7s ease,
        color .7s ease,
        border-color .7s ease,
        box-shadow .7s cubic-bezier(.16,1,.3,1),
        letter-spacing .7s cubic-bezier(.16,1,.3,1);
}


.pv-request-button::before {

    content: "";

    position: absolute;

    top: -100%;
    left: -45%;

    width: 32%;
    height: 300%;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255,255,255,.025) 20%,
            rgba(255,255,255,.18) 48%,
            rgba(255,255,255,.025) 76%,
            transparent 100%
        );

    transform: rotate(18deg);

    opacity: 0;

    pointer-events: none;

    z-index: 1;

    animation:
        pvHeaderBlueLight 7s cubic-bezier(.45,0,.55,1) infinite;
}


.pv-request-button::after {

    content: "";

    position: absolute;

    inset: 4px;

    border: 1px solid rgba(255,255,255,.18);

    border-radius: 2px;

    pointer-events: none;

    z-index: 2;

    transition:
        inset .7s cubic-bezier(.16,1,.3,1),
        border-color .7s ease;
}


.pv-request-button:hover,
.pv-request-button:focus {

    background:
        linear-gradient(
            115deg,
            #234F7F 0%,
            #2B629F 48%,
            #234F7F 100%
        ) !important;

    color: #ffffff !important;

    border-color: rgba(255,255,255,.55) !important;

    transform: translateY(-3px);

    letter-spacing: 1.8px !important;

    box-shadow:
        0 18px 38px rgba(25,61,99,.24),
        0 3px 8px rgba(25,61,99,.12),
        0 1px 0 rgba(255,255,255,.12) inset;
}


.pv-request-button:hover::after,
.pv-request-button:focus::after {

    inset: 3px;

    border-color: rgba(255,255,255,.38);
}


.pv-request-button:hover::before,
.pv-request-button:focus::before {

    animation:
        pvHeaderBlueGlint 1.5s cubic-bezier(.45,0,.55,1) forwards;
}


@keyframes pvHeaderBlueLight {

    0% {
        left: -45%;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    22% {
        left: 125%;
        opacity: 0;
    }

    100% {
        left: 125%;
        opacity: 0;
    }
}


@keyframes pvHeaderBlueGlint {

    0% {
        left: -50%;
        opacity: 0;
    }

    15% {
        opacity: .8;
    }

    65% {
        opacity: .18;
    }

    100% {
        left: 135%;
        opacity: 0;
    }
}


.pv-request-button:active {

    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(0,0,0,.12);
}


/* =========================================================
   SERVICES HERO
========================================================= */

body.page-id-78 .be-services-hero,
body.page-id-78 .be-services-hero * {
    box-sizing: border-box !important;
}

body.page-id-78 .be-services-hero {

    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding: 0 !important;

    overflow: hidden !important;
}


/* =========================================================
   REVIEWS
========================================================= */

body.page-id-78 .be-reviews,
body.page-id-78 .be-reviews * {
    box-sizing: border-box !important;
}

body.page-id-78 .be-reviews {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.page-id-78 .be-reviews p,
body.page-id-78 .be-reviews h1,
body.page-id-78 .be-reviews h2,
body.page-id-78 .be-reviews h3,
body.page-id-78 .be-reviews h4,
body.page-id-78 .be-reviews h5,
body.page-id-78 .be-reviews h6,
body.page-id-78 .be-reviews blockquote {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

body.page-id-78 .be-reviews .be-reviews-title::before,
body.page-id-78 .be-reviews .be-reviews-title::after {
    content: none !important;
    display: none !important;
}

body.page-id-78 .be-reviews .be-reviews-header {
    margin-top: 0 !important;
    margin-bottom: 9px !important;
    padding: 0 !important;
}

body.page-id-78 .be-reviews .be-reviews-title {

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    gap: 0 !important;
    row-gap: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 1 !important;
}

body.page-id-78 .be-reviews .be-reviews-eyebrow {

    display: block !important;

    height: 9px !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 9px !important;
}

body.page-id-78 .be-reviews .be-reviews-title-main {

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 1 !important;
}

body.page-id-78 .be-reviews .be-reviews-intro {

    margin: 5px 0 0 0 !important;
    padding: 0 !important;
}


/* =========================================================
   ABOUT HERO
========================================================= */

#balboa-about-hero {

    --wp--style--block-gap: 0px !important;
    --wp--preset--spacing--block-gap: 0px !important;

    position: relative;

    display: block;

    width: 100vw !important;
    max-width: 100vw !important;

    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    padding: 0 !important;

    border: 0 !important;

    overflow: hidden !important;

    background: #f5f5f3;
}


#balboa-about-hero,
#balboa-about-hero::before,
#balboa-about-hero::after,
#balboa-about-hero *,
#balboa-about-hero *::before,
#balboa-about-hero *::after {
    box-sizing: border-box;
}


/* =========================================================
   ABOUT HERO — IMAGE
========================================================= */

#balboa-about-hero::after {

    content: "";

    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: 61%;

    background-image:
        url('/wp-content/uploads/balboa-optimized/installing-smart-home-display-1376.webp');

    background-position: center center;

    background-size: cover;

    background-repeat: no-repeat;

    z-index: 0;
}


/* =========================================================
   ABOUT HERO — BLEND
========================================================= */

#balboa-about-hero::before {

    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            #f5f5f3 0%,
            #f5f5f3 30%,
            rgba(245,245,243,.99) 38%,
            rgba(245,245,243,.90) 45%,
            rgba(245,245,243,.66) 52%,
            rgba(245,245,243,.34) 59%,
            rgba(245,245,243,.10) 66%,
            rgba(245,245,243,0) 74%
        );
}


/* =========================================================
   ABOUT HERO — INNER
========================================================= */

#balboa-about-hero .balboa-about-hero-inner {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: flex-start;

    width: 100%;

    height: 360px;
    min-height: 360px;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   ABOUT HERO — CONTENT
========================================================= */

#balboa-about-hero .balboa-about-hero-content {

    position: relative;

    z-index: 3;

    width: 60%;

    max-width: 760px;

    height: 100%;

    margin: 0 !important;

    padding:
        32px
        35px
        28px
        4vw;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;
}


/* =========================================================
   ABOUT HERO — TEXT
========================================================= */

#balboa-about-hero .balboa-about-hero-eyebrow {

    display: flex;
    align-items: center;
    gap: 11px;

    width: 100%;

    margin: 0 0 14px !important;
    padding: 0 !important;

    font-family: Inter, Arial, Helvetica, sans-serif;

    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .17em;

    text-transform: uppercase;

    color: #555;
}


#balboa-about-hero .balboa-about-hero-eyebrow::before {

    content: "";

    display: block;

    width: 28px;
    height: 2px;

    flex: 0 0 28px;

    background: #3171B8;
}


#balboa-about-hero h1 {

    display: block;

    width: 100%;
    max-width: 720px;

    margin: 0 !important;
    padding: 0 !important;

    color: #20252a;

    font-family: Inter, Arial, Helvetica, sans-serif;

    font-size: 46px;
    font-weight: 600;
    line-height: .96;
    letter-spacing: -.035em;
}


#balboa-about-hero .balboa-about-blue {
    color: #3171B8 !important;
}


#balboa-about-hero .balboa-about-hero-text {

    display: block;

    width: 100%;
    max-width: 650px;

    margin: 14px 0 0 !important;
    padding: 0 !important;

    font-family: Inter, Arial, Helvetica, sans-serif;

    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.46;

    color: #3f3f3f;
}


#balboa-about-hero .balboa-about-hero-support {

    display: block;

    width: 100%;
    max-width: 650px;

    margin: 14px 0 0 !important;

    padding: 9px 0 0 !important;

    border-top: 1px solid rgba(0,0,0,.18);

    font-family: Inter, Arial, Helvetica, sans-serif;

    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .15px;

    color: #333;
}


#balboa-about-hero .balboa-about-actions {

    display: flex;
    align-items: center;

    margin: 13px 0 0 !important;
    padding: 0 !important;
}


/* =========================================================
   ABOUT BUTTON
========================================================= */

#balboa-about-hero .balboa-about-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 225px;
    height: 40px;

    position: relative;
    overflow: hidden;

    box-sizing: border-box;

    border-radius: 4px;

    font-family: Inter, Arial, Helvetica, sans-serif;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.45px;
    line-height: 1;

    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;

    transform: translateY(0);

    transition:
        transform .7s cubic-bezier(.16,1,.3,1),
        background .7s ease,
        color .7s ease,
        border-color .7s ease,
        box-shadow .7s cubic-bezier(.16,1,.3,1),
        letter-spacing .7s cubic-bezier(.16,1,.3,1);
}


#balboa-about-hero .balboa-about-arrow {

    position: relative;

    z-index: 3;

    font-size: 15px;
    font-weight: 400;
    line-height: 1;

    transform: translateX(0);

    transition:
        transform .7s cubic-bezier(.16,1,.3,1);
}


#balboa-about-hero .balboa-about-button:hover
.balboa-about-arrow {
    transform: translateX(4px);
}


#balboa-about-hero .balboa-about-button-primary {

    background:
        linear-gradient(
            110deg,
            #285E99 0%,
            #3171B8 38%,
            #3B7FC5 50%,
            #3171B8 62%,
            #285E99 100%
        );

    color: #ffffff;

    border: 1px solid rgba(255,255,255,.20);

    box-shadow:
        0 1px 0 rgba(255,255,255,.14) inset,
        0 5px 16px rgba(28,67,108,.20);
}


#balboa-about-hero .balboa-about-button-primary::before {

    content: "";

    position: absolute;

    top: -100%;
    left: -45%;

    width: 32%;
    height: 300%;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255,255,255,.025) 20%,
            rgba(255,255,255,.18) 48%,
            rgba(255,255,255,.025) 76%,
            transparent 100%
        );

    transform: rotate(18deg);

    opacity: 0;

    pointer-events: none;

    z-index: 1;

    animation:
        balboaAboutBlueLight 7s cubic-bezier(.45,0,.55,1) infinite;
}


#balboa-about-hero .balboa-about-button-primary::after {

    content: "";

    position: absolute;

    inset: 4px;

    border: 1px solid rgba(255,255,255,.18);

    border-radius: 2px;

    pointer-events: none;

    z-index: 2;

    transition:
        inset .7s cubic-bezier(.16,1,.3,1),
        border-color .7s ease;
}


#balboa-about-hero .balboa-about-button-primary:hover {

    background:
        linear-gradient(
            115deg,
            #234F7F 0%,
            #2B629F 48%,
            #234F7F 100%
        );

    color: #ffffff;

    border-color: rgba(255,255,255,.55);

    transform: translateY(-3px);

    letter-spacing: 1.7px;

    box-shadow:
        0 18px 38px rgba(25,61,99,.24),
        0 3px 8px rgba(25,61,99,.12),
        0 1px 0 rgba(255,255,255,.12) inset;
}


#balboa-about-hero .balboa-about-button-primary:hover::after {

    inset: 3px;

    border-color: rgba(255,255,255,.38);
}


#balboa-about-hero .balboa-about-button-primary:hover::before {

    animation:
        balboaAboutBlueGlint 1.5s cubic-bezier(.45,0,.55,1) forwards;
}


@keyframes balboaAboutBlueLight {

    0% {
        left: -45%;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    22% {
        left: 125%;
        opacity: 0;
    }

    100% {
        left: 125%;
        opacity: 0;
    }
}


@keyframes balboaAboutBlueGlint {

    0% {
        left: -50%;
        opacity: 0;
    }

    15% {
        opacity: .8;
    }

    65% {
        opacity: .18;
    }

    100% {
        left: 135%;
        opacity: 0;
    }
}


#balboa-about-hero .balboa-about-button:active {

    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(0,0,0,.12);
}


/* =========================================================
   ABOUT — LARGE DESKTOP
========================================================= */

@media (min-width: 1500px) {

    #balboa-about-hero::after {
        width: 59%;
    }

    #balboa-about-hero::before {

        background:
            linear-gradient(
                90deg,
                #f5f5f3 0%,
                #f5f5f3 31%,
                rgba(245,245,243,.99) 39%,
                rgba(245,245,243,.90) 46%,
                rgba(245,245,243,.66) 53%,
                rgba(245,245,243,.34) 60%,
                rgba(245,245,243,.10) 67%,
                rgba(245,245,243,0) 75%
            );
    }

    #balboa-about-hero .balboa-about-hero-content {

        width: 61%;
        max-width: 800px;

        padding-left: 4.5vw;
    }
}


/* =========================================================
   ABOUT — TABLET
========================================================= */

@media (max-width: 950px) {

    #balboa-about-hero {

        height: 340px !important;
        min-height: 340px !important;
        max-height: 340px !important;
    }

    #balboa-about-hero .balboa-about-hero-inner {

        height: 340px;
        min-height: 340px;
    }

    #balboa-about-hero::after {

        width: 58%;
        background-position: 58% center;
    }

    #balboa-about-hero::before {

        background:
            linear-gradient(
                90deg,
                #f5f5f3 0%,
                #f5f5f3 30%,
                rgba(245,245,243,.98) 39%,
                rgba(245,245,243,.84) 47%,
                rgba(245,245,243,.52) 56%,
                rgba(245,245,243,.18) 66%,
                rgba(245,245,243,0) 76%
            );
    }

    #balboa-about-hero .balboa-about-hero-content {

        width: 62%;
        max-width: 680px;

        padding:
            28px
            24px
            20px
            26px;
    }

    #balboa-about-hero h1 {
        font-size: 40px;
    }

    #balboa-about-hero .balboa-about-hero-text {

        font-size: 11.5px;
        max-width: 600px;
    }
}


/* =========================================================
   ABOUT — MOBILE
========================================================= */

@media (max-width: 700px) {

    #balboa-about-hero {

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    #balboa-about-hero::after {

        top: 0;
        right: 0;
        bottom: auto;

        width: 100%;
        height: 265px;

        background-position: 68% center;
    }

    #balboa-about-hero::before {

        background:
            linear-gradient(
                180deg,
                rgba(245,245,243,0) 0%,
                rgba(245,245,243,.04) 27%,
                rgba(245,245,243,.35) 45%,
                rgba(245,245,243,.80) 58%,
                #f5f5f3 70%,
                #f5f5f3 100%
            );
    }

    #balboa-about-hero .balboa-about-hero-inner {

        display: block;

        height: auto;
        min-height: 0;

        padding-top: 195px !important;
    }

    #balboa-about-hero .balboa-about-hero-content {

        width: 100%;
        max-width: none;
        height: auto;

        padding:
            23px
            20px
            31px;

        background: #f5f5f3;
    }

    #balboa-about-hero .balboa-about-hero-eyebrow {

        margin-bottom: 13px !important;

        font-size: 9px;
        letter-spacing: .14em;
    }

    #balboa-about-hero h1 {

        font-size: 34px;
        line-height: 1.02;
        letter-spacing: -.035em;
    }

    #balboa-about-hero .balboa-about-hero-text {

        margin-top: 13px !important;

        font-size: 13px;
        line-height: 1.52;
    }

    #balboa-about-hero .balboa-about-hero-support {

        margin-top: 14px !important;
        padding-top: 10px !important;

        font-size: 10px;
    }

    #balboa-about-hero .balboa-about-actions {
        margin-top: 16px !important;
    }

    #balboa-about-hero .balboa-about-button {

        width: 225px;
        height: 44px;
    }

    .pv-request-button {

        width: 306px !important;
        height: 61px !important;
        min-height: 61px !important;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    #balboa-about-hero::after {
        height: 255px;
    }

    #balboa-about-hero .balboa-about-hero-inner {
        padding-top: 190px !important;
    }

    #balboa-about-hero .balboa-about-hero-content {

        padding:
            28px
            19px
            31px;
    }

    #balboa-about-hero h1 {
        font-size: 32px;
    }

    #balboa-about-hero .balboa-about-hero-text {
        font-size: 12.5px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pv-request-button,
    .pv-request-button::before,
    .pv-request-button::after,

    #balboa-about-hero .balboa-about-button,
    #balboa-about-hero .balboa-about-button::before,
    #balboa-about-hero .balboa-about-button::after,
    #balboa-about-hero .balboa-about-arrow {

        animation: none !important;
        transition: none !important;
    }
}
/* Balboa Electric: compact phone and tablet header logo. */
@media (max-width: 1024px) {
 .mobile-site-branding a.brand img.custom-logo { width: 48px !important; max-width: 48px !important; height: 60px !important; object-fit: contain; }
 .mobile-site-branding { padding-top: 8px; padding-bottom: 8px; }
}

/* Balboa mobile spacing and accessible navigation control. */
@media (max-width:700px) {
 #balboa-about-hero .balboa-about-hero-inner { padding-top: 0 !important; }
 #mobile-toggle { min-width:48px; min-height:48px; padding:10px !important; }
 #mobile-toggle .kadence-svg-iconset { font-size:28px !important; }
 #mobile-toggle svg { width:28px !important; height:28px !important; }
}

/* Consistent compact mobile logo on every page. */
@media(max-width:1024px){
 #masthead .mobile-site-branding a.brand img.custom-logo { width:32px !important; max-width:32px !important; height:40px !important; max-height:40px !important; object-fit:contain; }
 #masthead .mobile-site-branding {padding-top:8px !important;padding-bottom:8px !important;}
}

/* BE-only mark on mobile; crop only the source asset's transparent padding. */
@media(max-width:1024px){
 #masthead .mobile-site-branding a.brand {position:relative;display:block;width:60px;height:42px;overflow:hidden;}
 #masthead .mobile-site-branding a.brand img.custom-logo {position:absolute;left:-10px;top:-20px;width:80px !important;max-width:80px !important;height:80px !important;max-height:80px !important;object-fit:contain;}
}
