/*
Theme Name: Salient Child Theme - by Series5
Description: This is a custom child theme for Salient created by Series5
Author: SeriesFive
Author URI:  https://seriesfive.ca/
Template: salient
Version: 1.6
*/

/* ============================================ */
/* PRIMARY BUTTON — Arrow Circle */
/* ============================================ */

/* Add the circle + arrow to all primary buttons */
.nectar-cta.primary .link_wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nectar-cta.primary .link_wrap::after {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-left: 20px;
    font-size: 18px;
    font-style: normal;
    transition: all 0.3s ease;
    position: absolute;
    right: 5px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12.001' viewBox='0 0 12 12.001'%3E%3Cg transform='translate(1 1)'%3E%3Cpath d='M2708.87,68.707a1,1,0,0,1,0-1.414L2717.162,59h-5.586a1,1,0,0,1,0-2h9v.972c0,.019,0,.038,0,.057V66a1,1,0,1,1-2,0V60.414l-8.293,8.293a1,1,0,0,1-1.414,0Z' transform='translate(-2709.576 -58)' fill='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E");
}

.nectar-cta.primary .link_wrap:hover::after {
    transform: rotate(45deg);
}

/* ============================================ */
/* CIRCLE COLORS PER BUTTON VARIANT */
/* ============================================ */

/* Primary Light — #008B53 bg, hover: medium green bg */
.nectar-cta.primary.light .link_wrap {
    background-color: #008B53 !important;
}

.nectar-cta.primary.light .link_wrap:hover {
    background-color: #123629 !important;
}

.nectar-cta.primary.light .link_wrap::after {
    background-color: #123629;
}

.nectar-cta.primary.light .link_wrap:hover::after {
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12.001' viewBox='0 0 12 12.001'%3E%3Cg transform='translate(1 1)'%3E%3Cpath d='M2708.87,68.707a1,1,0,0,1,0-1.414L2717.162,59h-5.586a1,1,0,0,1,0-2h9v.972c0,.019,0,.038,0,.057V66a1,1,0,1,1-2,0V60.414l-8.293,8.293a1,1,0,0,1-1.414,0Z' transform='translate(-2709.576 -58)' fill='%23123629'/%3E%3C/g%3E%3C/svg%3E");
}

/* Primary Dark — #123629 bg, hover: light green bg */
.nectar-cta.primary.dark .link_wrap {
    background-color: #123629;
}

.nectar-cta.primary.dark .link_wrap:hover {
    background-color: #008B53;
}

.nectar-cta.primary.dark .link_wrap::after {
    background-color: #008B53;
}

.nectar-cta.primary.dark .link_wrap:hover::after {
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12.001' viewBox='0 0 12 12.001'%3E%3Cg transform='translate(1 1)'%3E%3Cpath d='M2708.87,68.707a1,1,0,0,1,0-1.414L2717.162,59h-5.586a1,1,0,0,1,0-2h9v.972c0,.019,0,.038,0,.057V66a1,1,0,1,1-2,0V60.414l-8.293,8.293a1,1,0,0,1-1.414,0Z' transform='translate(-2709.576 -58)' fill='%23008B53'/%3E%3C/g%3E%3C/svg%3E");
}

/* Primary Light-Grey — #F5F5F5 bg, hover: light green bg */
.nectar-cta.primary.light-grey .link_wrap {
    background-color: #F5F5F5 !important;
    color: #123629 !important;
}

.nectar-cta.primary.light-grey .link_wrap:hover {
    background-color: #008B53 !important;
    color: #FFFFFF !important;
}

.nectar-cta.primary.light-grey .link_wrap::after {
    background-color: #123629;
}

.nectar-cta.primary.light-grey .link_wrap:hover::after {
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12.001' viewBox='0 0 12 12.001'%3E%3Cg transform='translate(1 1)'%3E%3Cpath d='M2708.87,68.707a1,1,0,0,1,0-1.414L2717.162,59h-5.586a1,1,0,0,1,0-2h9v.972c0,.019,0,.038,0,.057V66a1,1,0,1,1-2,0V60.414l-8.293,8.293a1,1,0,0,1-1.414,0Z' transform='translate(-2709.576 -58)' fill='%2300663D'/%3E%3C/g%3E%3C/svg%3E");
}

/* Primary Outline Dark — transparent bg, hover: medium green bg */
.nectar-cta.primary.outline.dark .link_wrap {
    background-color: transparent;
    border: 2px solid #123629 !important;
    color: #123629 !important;
}

.nectar-cta.primary.outline.dark .link_wrap:hover {
    background-color: #123629 !important;
    color: #FFFFFF !important;
}

.nectar-cta.primary.outline.dark .link_wrap::after {
    background-color: #123629;
}

.nectar-cta.primary.outline.dark .link_wrap:hover::after {
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12.001' viewBox='0 0 12 12.001'%3E%3Cg transform='translate(1 1)'%3E%3Cpath d='M2708.87,68.707a1,1,0,0,1,0-1.414L2717.162,59h-5.586a1,1,0,0,1,0-2h9v.972c0,.019,0,.038,0,.057V66a1,1,0,1,1-2,0V60.414l-8.293,8.293a1,1,0,0,1-1.414,0Z' transform='translate(-2709.576 -58)' fill='%23123629'/%3E%3C/g%3E%3C/svg%3E");
}

/* Primary Outline Light (not in use yet but ready) */
.nectar-cta.primary.outline.light .link_wrap::after {
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12.001' viewBox='0 0 12 12.001'%3E%3Cg transform='translate(1 1)'%3E%3Cpath d='M2708.87,68.707a1,1,0,0,1,0-1.414L2717.162,59h-5.586a1,1,0,0,1,0-2h9v.972c0,.019,0,.038,0,.057V66a1,1,0,1,1-2,0V60.414l-8.293,8.293a1,1,0,0,1-1.414,0Z' transform='translate(-2709.576 -58)' fill='%23123629'/%3E%3C/g%3E%3C/svg%3E");
}

.nectar-cta.primary.outline.light .link_wrap:hover::after {
    background-color: #123629;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12.001' viewBox='0 0 12 12.001'%3E%3Cg transform='translate(1 1)'%3E%3Cpath d='M2708.87,68.707a1,1,0,0,1,0-1.414L2717.162,59h-5.586a1,1,0,0,1,0-2h9v.972c0,.019,0,.038,0,.057V66a1,1,0,1,1-2,0V60.414l-8.293,8.293a1,1,0,0,1-1.414,0Z' transform='translate(-2709.576 -58)' fill='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E");
}

/* Secondary Default — no background, circle with 20% opacity */
.nectar-cta.secondary.default .link_wrap {
    background-color: transparent !important;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nectar-cta.secondary.default a.link_text {
    padding: 15px 80px 15px 25px;
    display: inline-block;
}

.nectar-cta.secondary.default .link_wrap::after {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-left: 20px;
    transition: all 0.3s ease;
    position: absolute;
    right: 5px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    background-color: rgba(22, 27, 24, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M7.293.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414-1.414L9.586 6H1a1 1 0 0 1 0-2h8.586L7.293 1.707a1 1 0 0 1 0-1.414Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    z-index: -1;
}

.nectar-cta.secondary.default .link_wrap:hover::after {
    background-color: rgba(22, 27, 24, 0.5);
}

/* Hero card — prevent button text wrapping */
.nectar-cta.primary .link_wrap .text {
    white-space: nowrap;
}

/* Circle Images — increase overlap */
.nectar-circle-images--position_overlapping.size_50px .nectar-circle-images__image:not(:last-child) {
    margin-right: calc((50px / 5) * -2);
}

/* Circle Images — border width */
.nectar-circle-images.size_50px .nectar-circle-images__image {
    border-width: min(9px, max(3px, calc(50px / 30)));
}

/* ============================================ */
/* MENU BUTTON — Arrow */
/* ============================================ */

.menu-btn-arrow > a {
    background-color: #008B53 !important;
    color: #FFFFFF !important;
    padding: 12px 25px 12px 25px !important;
    border-radius: 100px !important;
    transition: background-color 0.3s ease;
    display: inline-flex !important;
    align-items: center;
}

.menu-btn-arrow > a:hover {
    background-color: #123629 !important;
}

.menu-btn-arrow > a .menu-title-text {
    display: inline-flex;
    align-items: center;
    color: #FFFFFF !important;
}

.menu-btn-arrow > a .menu-title-text::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    min-width: 14px;
    margin-left: 15px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M7.293.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414-1.414L9.586 6H1a1 1 0 0 1 0-2h8.586L7.293 1.707a1 1 0 0 1 0-1.414Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    transition: transform 0.3s ease;
}

.menu-btn-arrow > a:hover .menu-title-text::after {
    transform: translateX(4px);
}

/* Header — Transparent menu items full opacity */
#header-outer.transparent #top nav > ul > li > a,
#header-outer.transparent #top nav > .sf-menu > li {
    opacity: 1 !important;
}

/* Header — Transparent mobile header links */
#header-outer.transparent .nectar-mobile-only.mobile-header li a {
    background-color: transparent !important;
}

/* Mobile Off Canvas Menu */
#slide-out-widget-area.fullscreen-inline-images .inner-wrap > .inner {
    text-align: left;
}

#slide-out-widget-area.fullscreen-split .inner-wrap > .inner > .container {
    left: 0 !important;
}

#slide-out-widget-area .ocm-dropdown-arrow {
    left: 90px;
}

#slide-out-widget-area[data-dropdown-func=separate-dropdown-parent-link] .off-canvas-menu-container li.open-submenu ul {
    padding-top: 20px;
}

/* Mobile Off Canvas Menu — Background Image + Overlay */
#slide-out-widget-area-bg {
    background: url(https://sunshine.series5.ca/wp-content/uploads/2026/03/sunshine-grounds-care-image-121-min.jpg) center center / cover no-repeat;
}

#slide-out-widget-area-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #008b53de;
    z-index: 1;
}

/* Footer — Copyright link color */
#copyright a {
    color: inherit !important;
}

#copyright a:hover {
    color: #FFFFFF !important;
}

/* Form — File Upload Styling */
.wpcf7 input[type="file"] {
    display: none;
}

.wpcf7 .wpcf7-file-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.wpcf7 input[type="file"] + .wpcf7-file-label,
.wpcf7 .file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #EEF3F5;
    color: #123629;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wpcf7 input[type="file"] + .wpcf7-file-label:hover,
.wpcf7 .file-upload-label:hover {
    background-color: #00663D;
    color: #FFFFFF;
}

.wpcf7 .file-upload-name {
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sidebar — Contact table row background */
body .main-content table tr,
body .main-content table tr:nth-child(2n+1) {
    background-color: transparent !important;
}

/* Footer — Copyright text size */
#copyright .wpb_text_column,
#copyright .wpb_text_column p {
    font-size: 16px;
    line-height: 1.5;
}

@media only screen and (max-width: 999px) {
    #copyright .wpb_text_column,
    #copyright .wpb_text_column p {
        font-size: 14px;
    }
}

/* ============================================ */
/* FANCY BOX — Stronger Image Overlay */
/* ============================================ */

.nectar-fancy-box .box-bg:after {
    background-color: rgba(0, 0, 0, 0.65) !important;
}

.nectar-fancy-box:after {
    display: none !important;
}

.nectar-fancy-box {
    padding: 50px !important;
}

@media (max-width: 999px) {
    .nectar-fancy-box {
        padding: 30px !important;
    }
}

/* Fancy Box — Learn More Circle Arrow */
.nectar-fancy-box .link-text {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: bold !important;
    font-size: 16px !important;
    line-height: 26px !important;
}

.nectar-fancy-box .link-text .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M7.293.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414-1.414L9.586 6H1a1 1 0 0 1 0-2h8.586L7.293 1.707a1 1 0 0 1 0-1.414Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    margin-left: 15px;
    vertical-align: middle;
    transition: all 0.3s ease;
    border: none !important;
    top: 0;
}

.nectar-fancy-box .link-text .arrow::before,
.nectar-fancy-box .link-text .arrow::after {
    display: none !important;
}

.nectar-fancy-box:hover .link-text .arrow {
    background-color: rgba(255, 255, 255, 0.4);
}

/* ============================================ */
/* RESPONSIVE — Desktop/Mobile Row Visibility */
/* ============================================ */

@media only screen and (min-width: 1000px) {
    .mobile {
        display: none;
    }
}

@media only screen and (max-width: 999px) {
    .desktop {
        display: none;
    }
}

/* ============================================ */
/* RESPONSIVE — Mobile Button Padding */
/* ============================================ */

@media only screen and (max-width: 999px) {
    .nectar-cta.primary .link_wrap {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        padding-left: 20px !important;
        padding-right: 60px !important;
    }

    .nectar-cta.primary .link_wrap::after {
        width: 36px;
        height: 36px;
        background-size: 12px 12px;
    }

    .menu-btn-arrow > a {
        padding: 10px 20px 10px 20px !important;
    }

    .menu-btn-arrow > a .menu-title-text::after {
        margin-left: 10px;
    }
}