/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/


.ds-hero-slider-row {
  will-change: opacity !important;
}


@media only screen and (max-width: 999px) {
    .nectar-mobile-only.mobile-header {
        margin-right: 20px;
    }
.ds-home-mob-paddingbottom{
        margin-bottom: 10px !important;
    }


 /* povećaj cijeli hamburger (Salient off-canvas toggle) */
  #top nav ul .slide-out-widget-area-toggle a > span,
  #header-outer .slide-out-widget-area-toggle a > span {
    transform: scale(1.4) !important;  /* probaj 1.3 – 2.0 */
  }
    .slide_out_area_close__wrap .close-wrap{
    transform: scale(1.4) !important;   /* probaj 1.3–2.0 */
    transform-origin: center !important;
    display: inline-block !important;
  }
}



@media only screen and (max-width: 999px) {
    .nectar-post-grid-filters {
        max-width: 600px;
        margin: 0 auto;
        padding: 20px 0;
    }
}


/* =============================================
   RELATED POSTS - Uniformne slike
   ============================================= */

/* Kontejner slike - fiksna visina */
.related-posts .post-featured-img {
    display: block;
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a;
}

/* Slika - prikaži cijelu, centriraj */
.related-posts .post-featured-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center center;
    display: block;
}

/* Responsive */
@media only screen and (max-width: 999px) {
    .related-posts .post-featured-img {
        height: 250px;
    }
}

@media only screen and (max-width: 690px) {
    .related-posts .post-featured-img {
        height: 280px;
    }
}


/* =============================================
   CONTACT FORM 7 - Custom Styles
   ============================================= */

/* Submit Button */
.wpcf7 input[type="submit"] {
    background-color: #f5c518 !important;
    color: #000 !important;
    border: none !important;
    padding: 15px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #e0b115 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.3);
}

/* Placeholder boja - uniformna za sve inpute */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

/* Focus state - 1px bijeli border */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 textarea:focus {
    border-width: 1px !important;
    outline: none !important;
}

/* Custom Checkbox */
.wpcf7-checkbox {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.wpcf7-checkbox .wpcf7-list-item {
    margin-left: 0 !important;
}

.wpcf7-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border: 1px solid #555;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin-right: 12px;
    margin-left: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wpcf7-checkbox input[type="checkbox"]:hover {
    border-color: #f5c518;
}

.wpcf7-checkbox input[type="checkbox"]:checked {
    background-color: #f5c518;
    border-color: #f5c518;
}

.wpcf7-checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #000;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.wpcf7-checkbox label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
}

.wpcf7-list-item-label {
    flex: 1;
    color: #999 !important;
    font-size: 14px;
}

/* Focus state */
.wpcf7-checkbox input[type="checkbox"]:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Prevent page scroll on checkbox click */
.wpcf7-checkbox,
.wpcf7-checkbox input[type="checkbox"],
.wpcf7-checkbox label,
.wpcf7-checkbox .wpcf7-list-item {
    scroll-margin-top: 200px;
}

.wpcf7-checkbox input[type="checkbox"]:focus {
    scroll-behavior: auto;
}

/* Disable smooth scroll for form elements */
.wpcf7 * {
    scroll-behavior: auto !important;
}

/* Hide individual validation messages */
.wpcf7-not-valid-tip {
    display: none !important;
}

/* Style invalid fields with red border */
.wpcf7-not-valid {
    border: 1px solid #ff0000 !important;
}

/* Remove red border from checkbox wrapper, only on checkbox itself */
.wpcf7-acceptance.wpcf7-not-valid,
.wpcf7-checkbox.wpcf7-not-valid,
span.wpcf7-form-control-wrap.wpcf7-not-valid {
    border: none !important;
}

/* Red border only on the checkbox input */
.wpcf7-acceptance.wpcf7-not-valid input[type="checkbox"],
.wpcf7-checkbox.wpcf7-not-valid input[type="checkbox"] {
    border: 1px solid #ff0000 !important;
}

/* General error/success message at bottom */
.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 15px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    text-align: center;
}

/* Error state - full red with black text */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.light .wpcf7 div.wpcf7-form.invalid .wpcf7-response-output,
.light .wpcf7 div.wpcf7-form.unaccepted .wpcf7-response-output,
.light .wpcf7 div.wpcf7-form.failed .wpcf7-response-output,
body .wpcf7-form.invalid .wpcf7-response-output,
body .wpcf7-form.unaccepted .wpcf7-response-output,
body .wpcf7-form.failed .wpcf7-response-output,
html body .wpcf7 .wpcf7-response-output.wpcf7-validation-errors,
html body .wpcf7 .wpcf7-response-output {
    background-color: #ff0000 !important;
    color: #000 !important;
    font-weight: normal !important;
}

/* Success state - full green with black text */
.wpcf7-form.sent .wpcf7-response-output,
.light .wpcf7 div.wpcf7-form.sent .wpcf7-response-output,
body .wpcf7-form.sent .wpcf7-response-output,
html body .wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #27ae60 !important;
    color: #000 !important;
}

/* Submit button disabled until GDPR checkbox is checked */
.wpcf7-form:has(.wpcf7-acceptance input[type="checkbox"]:not(:checked)) input[type="submit"] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Re-enable button when checkbox is checked */
.wpcf7-form:has(.wpcf7-acceptance input[type="checkbox"]:checked) input[type="submit"] {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto;
}


/* =============================================
   VTA CUSTOM MAP MARKER - Animated Pulsating Dot
   ============================================= */

.vta-marker-overlay {
    z-index: 100;
}

.vta-marker-overlay .animated-dot {
    width: 30px;
    height: 30px;
    position: relative;
}

.vta-marker-overlay .animated-dot .middle-dot {
    width: 16px;
    height: 16px;
    border-radius: 30px;
    position: absolute;
    left: 7px;
    top: 7px;
    background-color: #f5c518;
    transform-origin: 50% 50%;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    box-shadow: 0 0 10px rgba(245, 197, 24, 0.5);
}

.vta-marker-overlay .animated-dot .middle-dot:after {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    content: '';
    background-color: #fff;
    border-radius: 30px;
    z-index: 100;
    opacity: 0;
    animation: vtaAnimationSignal2 cubic-bezier(0, 0.55, 0.55, 1) 2s;
    transform-origin: 50% 50%;
    animation-fill-mode: forwards;
    animation-delay: 0.78s;
    animation-iteration-count: infinite;
}

.vta-marker-overlay .animated-dot .signal {
    width: 180px;
    height: 180px;
    border-radius: 200px;
    position: absolute;
    left: -75px;
    top: -75px;
    opacity: 0;
    pointer-events: none;
    background-color: rgba(245, 197, 24, 0.3);
    animation: vtaAnimationSignal cubic-bezier(0, 0.55, 0.55, 1) 2s;
    transform-origin: 50% 50%;
    animation-fill-mode: forwards;
    animation-delay: 0.78s;
    animation-iteration-count: infinite;
}

.vta-marker-overlay .animated-dot .signal2 {
    width: 180px;
    height: 180px;
    border-radius: 200px;
    position: absolute;
    left: -75px;
    top: -75px;
    opacity: 0;
    pointer-events: none;
    background-color: rgba(245, 197, 24, 0.3);
    animation: vtaAnimationSignal cubic-bezier(0, 0.55, 0.55, 1) 2s;
    transform-origin: 50% 50%;
    animation-fill-mode: forwards;
    animation-delay: 1s;
    animation-iteration-count: infinite;
}

@keyframes vtaAnimationSignal {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    1% {
        opacity: 0.25;
    }
    20% {
        opacity: 0.25;
    }
    60% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes vtaAnimationSignal2 {
    0% {
        opacity: 0;
    }
    1% {
        opacity: 0.2;
    }
    20% {
        opacity: 0.17;
    }
    60% {
        opacity: 0;
    }
}


/* =============================================
   DS ANIMATION UNDERLINE - Custom klasa za WPBakery
   ============================================= */

.ds-animation-underline a {
    color: #fff;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

/* Linija vidljiva po defaultu */
.ds-animation-underline a::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 0;
    border-bottom: 1px solid #fff;
    background-color: transparent !important;
    transition: transform 0.4s cubic-bezier(0.23, 0.46, 0.4, 1);
    transform-origin: left;
    z-index: 1;
    pointer-events: none;
}

/* Hover - linija nestaje na desno */
.ds-animation-underline a:hover::after {
    transform: scaleX(0);
    transform-origin: right;
}



.featured-media-under-header__featured-media .post-featured-img img {
   object-position: top;
}

.post-area.featured_img_left .meta-category a{
   color: #fff !important;
}

/* Post Grid - slika puna širina */
.post-area .post-content .post-featured-img {
    display: block;
    width: 100%;
}

.post-area .post-content .post-featured-img img {
    width: 100% !important;
    height: auto;
    object-fit: cover;
}


.featured-media-under-header__featured-media .post-featured-img img{
    object-fit: contain;
}


/* Pagination - bijeli tekst s opacity animacijom */
body #pagination .page-numbers,
body #pagination ul.page-numbers li a,
body #pagination ul.page-numbers li span {
    color: #fff !important;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

body #pagination a.page-numbers:hover,
body #pagination .page-numbers.next:hover,
body #pagination .page-numbers.prev:hover {
    color: #fff !important;
    opacity: 1;
    background: transparent !important;
}


body #ajax-content-wrap #error-404 h1 {
    font-size: 120px;
    line-height: 120px;
}

body #ajax-content-wrap #error-404 h2 {
    font-size: 30px;
}


#error-404 {
    padding: 12vh 0px 5vh 0px;
}


.container-wrap {
min-height: 100px !important;
}


body.error404 .error-404-bg-img, body.error404 .error-404-bg-img-overlay {
background-position: top;
    }


.cmplz-documents.cmplz-links ul li {
    list-style: none;
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header{
    background: #fff;
}


.cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-category-title{
color: #000 !important;
}





footer .nectar-cta .link_wrap,
footer .nectar-cta a {
    white-space: nowrap !important;
}


.nectar-post-grid .nectar-post-grid-item .meta-excerpt {
    font-size: 16px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
}

@media (min-width: 1000px) {
    .nectar-post-grid .nectar-post-grid-item .meta-excerpt {
        font-size: 22px;
    }
    .cmplz-cookiebanner.cmplz-show {
    border: 1px solid #3B3B3B;
}
}


.nectar-post-grid .nectar-post-grid-item .post-heading span {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
}


#ajax-content-wrap .layout-stacked[data-text-layout="all_middle"] .item-main .post-heading {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
    order: 2;
    margin-bottom: 40px;
}

.nectar-post-grid.layout-stacked .nectar-post-grid-item__excerpt-wrap {
    order: 3;
    margin-bottom: 10px !important;
}


@media only screen and (max-width: 690px) {
    html #ajax-content-wrap .container-wrap .font_size_phone_14px.nectar-cta *, html .container-wrap .font_size_phone_14px.nectar-cta *, html #header-outer .font_size_phone_14px.nectar-cta * {
        line-height: 1.5;
    }
}


#slide-out-widget-area .off-canvas-social-links li:first-child::before {
    content: "Pratite nas";
    margin-right: 10px;
    color: #fff;
    font-size: 24px;
}

#slide-out-widget-area .off-canvas-social-links li {
    display: flex;
    align-items: center;
}

#slide-out-widget-area .off-canvas-social-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    background: #fff;
    border-radius: 50%;
    color: #000 !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    top: 6px;
    left: 4px !important;
}

#slide-out-widget-area .off-canvas-social-links li a i {
    color: #000 !important;
    font-size: 18px !important;
    line-height: 30px !important;
    width: 30px !important;
    height: 30px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#slide-out-widget-area .bottom-meta-wrap .bottom-text {
    position: absolute !important;
    width: 400px !important;
    z-index: 9999;
    top: 150px;
}



@media (min-width: 1000px) {
    .ds-hideondesktop {
        display: none !important;
    }
}


@media (max-width: 999px) {
    .ds-vtafooter-bordertopmob {
        position: relative !important;
    }

    .ds-vtafooter-bordertopmob::before {
        content: "" !important;
        position: absolute !important;
        top: 0;
        left: 5%;
        width: 90%;
        height: 1px;
        background: rgba(255, 255, 255, 0.2) !important;
        z-index: 10;
        display: block !important;
    }
}

.nectar_single_testimonial .inner[data-custom-color=true] * {
    font-style: italic;
}


.nectar_single_testimonial .image-icon{
    width: 58px;
    height: 58px;
}


/* Fancybox lightbox - manji padding na mobitelu */
@media only screen and (max-width: 999px) {
    .fancybox-slide {
        padding: 12px 5% !important;
    }
        .cmplz-cookiebanner.cmplz-show {
    border-top: 1px solid #3B3B3B;
}
}
