/* ==========================================================================
   brand.css — RMZ PRO PAINTING
   Every color here comes from the --cleanon-* variables printed in
   parts/head.php from $BrandColors (text.php). Change a color in text.php
   and the whole site follows: theme gradients, decorative shapes and the
   floating paint animations.
   Loaded after style.css / responsive.css / real-photos-fix.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme gradients that were hard-coded in style.css (dark green / orange)
   -------------------------------------------------------------------------- */
.contact-one__bg::before {
    background: linear-gradient(90deg,
            rgba(var(--cleanon-black-rgb), 0) 0%,
            rgba(var(--cleanon-black-rgb), 0) 13%,
            rgba(var(--cleanon-black-rgb), .25) 22%,
            rgba(var(--cleanon-black-rgb), .87) 45%,
            rgba(var(--cleanon-black-rgb), 1) 74%,
            rgba(var(--cleanon-black-rgb), 1) 100%);
}

.page-header__bg::before {
    background: linear-gradient(90deg,
            rgba(var(--cleanon-black-rgb), .95) 0%,
            rgba(var(--cleanon-black-rgb), .80) 60%,
            rgba(var(--cleanon-black-rgb), 0) 80%);
}

@media only screen and (max-width: 991px) {
    .page-header__bg::before {
        background: linear-gradient(90deg,
                rgba(var(--cleanon-black-rgb), .95) 0%,
                rgba(var(--cleanon-black-rgb), .80) 100%);
    }
}

.services-three__tab-left {
    background: linear-gradient(270deg, var(--cleanon-extra) 0%, var(--cleanon-black) 100%);
}

.services-three__tab-doller-box {
    background: linear-gradient(90deg, rgba(var(--cleanon-white-rgb), .69) 0%, var(--cleanon-extra) 100%);
}

.testimonial-one__img-shape-1 {
    background: linear-gradient(0deg, rgba(var(--cleanon-primary-rgb), 0) 0%, var(--cleanon-extra) 100%);
}

/* Buttons: darker celeste on hover instead of the theme's dark green */
.thm-btn:hover {
    color: var(--cleanon-white);
}

/* --------------------------------------------------------------------------
   2. Decorative background shapes (inline background-image PNGs).
      The PNG is used as a mask so only its shape/fade is kept and the
      color comes from the variables.
   -------------------------------------------------------------------------- */
.about-one__right-bg-shape,
.about-two__left-bg-shape,
.about-two__progress-inner-bg-shape,
.contact-one__form-box-bg-shape,
.office-location__contact-content-bg-shape,
.office-location__right-bg-shape,
.project-one__content-bg-shape,
.services-three__tab-left-bg-shape,
.who-we-serve__form-inner-bg-shape,
.who-we-serve__right-bg-shape,
.about-one__experience-box-shape,
.footer-widget__contact-info-bg-shape {
    background-image: none !important;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-position: center;
    mask-position: center;
}

/* were orange -> brand celeste */
.about-one__right-bg-shape,
.about-two__left-bg-shape,
.about-two__progress-inner-bg-shape,
.contact-one__form-box-bg-shape,
.office-location__contact-content-bg-shape,
.office-location__right-bg-shape,
.project-one__content-bg-shape,
.services-three__tab-left-bg-shape,
.who-we-serve__form-inner-bg-shape,
.who-we-serve__right-bg-shape {
    background-color: var(--cleanon-base);
}

/* were green -> brand gray */
.about-one__experience-box-shape,
.footer-widget__contact-info-bg-shape {
    background-color: var(--cleanon-extra);
}

.about-one__right-bg-shape { -webkit-mask-image: url(../images/shapes/about-one-right-bg-shape.png); mask-image: url(../images/shapes/about-one-right-bg-shape.png); }
.about-two__left-bg-shape { -webkit-mask-image: url(../images/shapes/about-two-left-bg-shape.png); mask-image: url(../images/shapes/about-two-left-bg-shape.png); }
.about-two__progress-inner-bg-shape { -webkit-mask-image: url(../images/shapes/about-two-progress-inner-bg-shape.png); mask-image: url(../images/shapes/about-two-progress-inner-bg-shape.png); }
.contact-one__form-box-bg-shape { -webkit-mask-image: url(../images/shapes/contact-one-form-box-bg-shape.png); mask-image: url(../images/shapes/contact-one-form-box-bg-shape.png); }
.office-location__contact-content-bg-shape { -webkit-mask-image: url(../images/shapes/office-location-contact-content-bg-shape.png); mask-image: url(../images/shapes/office-location-contact-content-bg-shape.png); }
.office-location__right-bg-shape { -webkit-mask-image: url(../images/shapes/office-location-right-bg-shape.png); mask-image: url(../images/shapes/office-location-right-bg-shape.png); }
.project-one__content-bg-shape { -webkit-mask-image: url(../images/shapes/project-one-content-bg-shape.png); mask-image: url(../images/shapes/project-one-content-bg-shape.png); }
.services-three__tab-left-bg-shape { -webkit-mask-image: url(../images/shapes/services-three-tab-left-bg-shape.png); mask-image: url(../images/shapes/services-three-tab-left-bg-shape.png); }
.who-we-serve__form-inner-bg-shape { -webkit-mask-image: url(../images/shapes/who-we-serve-form-inner-bg-shape.png); mask-image: url(../images/shapes/who-we-serve-form-inner-bg-shape.png); }
.who-we-serve__right-bg-shape { -webkit-mask-image: url(../images/shapes/who-we-serve-right-bg-shape.png); mask-image: url(../images/shapes/who-we-serve-right-bg-shape.png); }
.about-one__experience-box-shape { -webkit-mask-image: url(../images/shapes/about-one-experience-box-shape.png); mask-image: url(../images/shapes/about-one-experience-box-shape.png); }
.footer-widget__contact-info-bg-shape { -webkit-mask-image: url(../images/shapes/footer-widget-contact-bg-shape.png); mask-image: url(../images/shapes/footer-widget-contact-bg-shape.png); }

/* --------------------------------------------------------------------------
   3. Decorative <img> shapes. The mask is applied to the <img> itself (its
      box keeps the natural size), the picture is pushed out of view with
      object-position and the background color shows through the mask.
   -------------------------------------------------------------------------- */
.main-slider__img-shape img,
.office-location__shape-1 img,
.why-choose-one__right-shape-1 img,
.services-three__shape-1 img,
.counter-one__shape-1 img,
.why-choose-one__img-shape-1 img,
.why-choose-one__img-shape-2 img,
.why-choose-one__img-shape-3 img,
.why-choose-one__img-shape-4 img,
.sliding-text__list .icon img,
.office-location__contact-shape img {
    object-position: -99999px 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    background-color: var(--cleanon-base);
}

.why-choose-one__img-shape-3 img,
.counter-one__shape-1 img {
    background-color: var(--cleanon-extra);
}

.counter-one__shape-1 img { opacity: .35; }

.main-slider__img-shape img { -webkit-mask-image: url(../images/shapes/main-slider-img-shape-1.png); mask-image: url(../images/shapes/main-slider-img-shape-1.png); }
.office-location__shape-1 img { -webkit-mask-image: url(../images/shapes/office-location-shape-1.png); mask-image: url(../images/shapes/office-location-shape-1.png); }
.why-choose-one__right-shape-1 img { -webkit-mask-image: url(../images/shapes/why-choose-one-right-shape-1.png); mask-image: url(../images/shapes/why-choose-one-right-shape-1.png); }
.services-three__shape-1 img { -webkit-mask-image: url(../images/shapes/services-three-shape-1.png); mask-image: url(../images/shapes/services-three-shape-1.png); }
.counter-one__shape-1 img { -webkit-mask-image: url(../images/shapes/counter-one-shape-1.png); mask-image: url(../images/shapes/counter-one-shape-1.png); }
.why-choose-one__img-shape-1 img { -webkit-mask-image: url(../images/shapes/why-choose-one-img-shape-1.png); mask-image: url(../images/shapes/why-choose-one-img-shape-1.png); }
/* the theme's sparkle stars become paint drops / splats */
.why-choose-one__img-shape-2 img,
.why-choose-one__img-shape-4 img { -webkit-mask-image: url(../images/shapes/paint/splat.png); mask-image: url(../images/shapes/paint/splat.png); }
.why-choose-one__img-shape-3 img { -webkit-mask-image: url(../images/shapes/paint/drop.png); mask-image: url(../images/shapes/paint/drop.png); }
.sliding-text__list .icon img { -webkit-mask-image: url(../images/shapes/paint/brush.png); mask-image: url(../images/shapes/paint/brush.png); }
.office-location__contact-shape img { -webkit-mask-image: url(../images/shapes/office-location-contact-shape.png); mask-image: url(../images/shapes/office-location-contact-shape.png); }

/* --------------------------------------------------------------------------
   4. Floating painting animation (replaces the theme's soap bubbles)
      .bubbleContainer > .bubble-N : drops, brushes, rollers, palettes and
      splats rising and spinning, colored with the brand variables.
   -------------------------------------------------------------------------- */
div[class^="bubble-"] {
    background: var(--cleanon-base) !important;
    border-radius: 0 !important;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    opacity: .55;
}

.bubble-1, .bubble-6 { -webkit-mask-image: url(../images/shapes/paint/drop.png); mask-image: url(../images/shapes/paint/drop.png); }
.bubble-2, .bubble-7 { -webkit-mask-image: url(../images/shapes/paint/brush.png); mask-image: url(../images/shapes/paint/brush.png); }
.bubble-3, .bubble-8 { -webkit-mask-image: url(../images/shapes/paint/roller.png); mask-image: url(../images/shapes/paint/roller.png); }
.bubble-4 { -webkit-mask-image: url(../images/shapes/paint/splat.png); mask-image: url(../images/shapes/paint/splat.png); }
.bubble-5 { -webkit-mask-image: url(../images/shapes/paint/palette.png); mask-image: url(../images/shapes/paint/palette.png); }

/* alternate celeste / gray / white so they read on light and dark sections */
.bubble-2, .bubble-5, .bubble-8 { background: var(--cleanon-extra) !important; }
.bubble-4 { background: var(--cleanon-white) !important; opacity: .35; }

.bubble-1 { animation: paint-float 10s infinite ease-in -1.58s !important; }
.bubble-2 { animation: paint-float 15s infinite ease-in -2.37s !important; }
.bubble-3 { animation: paint-float 7s infinite ease-in -2.12s !important; }
.bubble-4 { animation: paint-float 11s infinite ease-in -4.20s !important; }
.bubble-5 { animation: paint-float 13s infinite ease-in -6.31s !important; }
.bubble-6 { animation: paint-float 9s infinite ease-in -0.51s !important; }

@keyframes paint-float {
    0% {
        transform: translate3d(-50%, 0, 0) rotate(0deg);
        height: 1px;
        width: 1px;
        opacity: 0;
    }
    15% {
        opacity: .55;
    }
    85% {
        opacity: .45;
    }
    100% {
        transform: translate3d(-50%, -700px, 0) rotate(200deg);
        height: 60px;
        width: 60px;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    div[class^="bubble-"] { animation: none !important; display: none; }
}

/* --------------------------------------------------------------------------
   5. Logo
   -------------------------------------------------------------------------- */
.main-menu__logo img.site-logo {
    display: block;
    width: auto;
max-width: 234px;
    max-height: 155px;
    background: black;
    padding: 22px;
    border-radius: 23px;
}

/* header over the hero = white-text logo; sticky header (white background) = gray-text logo */
.main-menu__logo img.site-logo--dark,
.stricky-header .main-menu__logo img.site-logo--light {
    display: none;
}

.stricky-header .main-menu__logo img.site-logo--dark {
    display: block;
    max-height: 139px;
}

.footer-widget__about-logo img.site-logo {
    display: inline-block;
    width: auto;
    max-width: 200px;
    max-height: 130px;
    margin-bottom: 15px;
}

.logo-box img.site-logo,
.sidebar-info-contents .logo img.site-logo {
    width: auto;
    max-width: 150px;
    max-height: 90px;
}

@media (max-width: 575px) {
    .main-menu__logo img.site-logo {         max-width: 141px;
        max-height: 113px; }
}
