/* 
Theme Name: Krematorium
Author: pixel.sk
Author URI: https://pixel.sk
Template: hello-elementor
*/


html {
    scroll-behavior: smooth;
}

/* Global Button Refinements */
.elementor-button {
    -webkit-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    -o-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.elementor-button:hover {
    -webkit-transform: scale(1.03);
    -ms-transform: scale(1.03);
    transform: scale(1.03);
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Header Navigation Improvements */
header .elementor-nav-menu--main .elementor-nav-menu > li > a {
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
}

.home_banner {
    cursor: pointer;
}

header .elementor-nav-menu--main .elementor-nav-menu > li > a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    -webkit-transform: scaleX(0);
    -ms-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    -webkit-transform-origin: right;
    -ms-transform-origin: right;
    transform-origin: right;
}

header .elementor-nav-menu--main .elementor-nav-menu > li > a:hover:after {
    -webkit-transform: scaleX(1);
    -ms-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left;
    -ms-transform-origin: left;
    transform-origin: left;
}

/* Service Cards Refinements */
.home_banner {
    -webkit-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    -o-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #ffffff;
}

.home_banner:hover {
    -webkit-transform: translateY(-4px) scale(1.01);
    -ms-transform: translateY(-4px) scale(1.01);
    transform: translateY(-4px) scale(1.01);
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Emergency Contact Section Enhancement */
.nonstop_contact {
    -webkit-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    -o-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.softshadow {
    box-shadow: 0 10px 30px -20px #00000026;
}

.nonstop_contact:hover {
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Call to Action Sections */
.elementor-cta {
    -webkit-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    -o-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.elementor-cta:hover {
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.elementor-cta__button {
    -webkit-transition: all 0.3s ease !important;
    -o-transition: all 0.3s ease !important;
    transition: all 0.3s ease !important;
}

.elementor-cta__button:hover {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Phone Icon Subtle Animation */
.phone_icon .elementor-icon-list-icon {
    -webkit-animation: gentle-pulse 3s infinite;
    animation: gentle-pulse 3s infinite;
}

.nonstop_contact {
    background: #d6b66be8 !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}

.home_h1 {
    text-shadow: 0 0 20px #000000;
}

@-webkit-keyframes gentle-pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes gentle-pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

/* General Content Improvements */
.elementor-widget-text-editor {
    line-height: 1.7;
}

.elementor-heading-title {
    letter-spacing: -0.02em;
}

/* Smooth Page Load */
.elementor-section {
    -webkit-transition: opacity 0.4s ease;
    -o-transition: opacity 0.4s ease;
    transition: opacity 0.4s ease;
}

.home_banner {
    position: relative;

}

.home_banner:after {
    content: 'ZOBRAZIŤ VIAC';
    display: block;
    font-size: 14px;
    color: #D6B66B;
    font-weight: 600;
    margin-top: auto;
    margin-bottom: 0;
    position: absolute;
    bottom: 20px;
    left: calc(50% - 52px);
}

.subline h4 {
    position: relative;
}

.subline h4:after {
    content: '';
    width: 60%;
    height: 2px;
    display: block;
    background: #9F1414;
}

.phone_icon .elementor-icon-list-icon svg {
    margin: 0 !important;
    padding: 5px;
}

.phone_icon .elementor-icon-list-icon {
    background: #d6b66b;
    height: 45px;
    width: 45px;
    border-radius: 100%;
    align-items: center;
    justify-content: center;
}

.subpage a {
    color: black !important;
    text-decoration: underline !important;
}

.elementor-nav-menu--dropdown {
    box-shadow: 0px 5px 30px -20px #0000004f;
}

.menu-item-has-children > a .sub-arrow svg {
    display: none !important;
}

.menu-item-has-children > a .sub-arrow:after {
    content: url('https://krematorium.pixel.sk/wp-content/uploads/2025/02/down_arrow.svg');
}

.custom_cta {

}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .home_banner:hover {
        -webkit-transform: translateY(-2px) scale(1.01);
        -ms-transform: translateY(-2px) scale(1.01);
        transform: translateY(-2px) scale(1.01);
    }

    .elementor-button:hover {
        -webkit-transform: scale(1.02);
        -ms-transform: scale(1.02);
        transform: scale(1.02);
    }
}

/* Timeline Component CSS */
.timeline-section {
    padding: 60px 0;
    max-width: 1140px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
}

.timeline-title {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-weight: 600;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 15px;
}

.timeline-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #9F1414;
}

.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #D6B66B;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #D6B66B;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #D6B66B;
    z-index: 1;
}

.timeline-date {
    position: absolute;
    top: -10px;
    left: 47%;
    transform: translateX(-100%);
    background: #d6b66b;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-content {
    width: 45%;
    padding: 25px;
    background: white;
    border-radius: 6px;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-date {
    left: 53%;
    transform: translateX(0);
}

.timeline-content p {
    margin: 0;
    line-height: 1.7;
}

.timeline-content em {
    color: #542121;
    font-style: normal;
    font-weight: 500;
}


.timeline-conclusion {
    margin-top: 60px;
    padding: 30px;
    background: #f8f5f0;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 10px 30px -20px #00000026;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


.timeline-conclusion p {
    margin: 0 0 15px;
    line-height: 1.7;
}

.timeline-conclusion p:last-child {
    margin-bottom: 0;
}

.blurme {
    backdrop-filter: blur(40px);
}

.blacklink a,
.blacklink a:hover {
    color: black !important;
    text-decoration: underline !important;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .timeline:before {
        left: 30px;
    }

    .timeline-dot {
        left: 19px;
        transform: none;
    }

    .timeline-date {
        left: 56px;
        top: -24px;
        transform: none;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 80px;
        margin-right: 0;
    }

    .timeline-item:nth-child(even) .timeline-date {
        left: 56px;
        transform: none;
    }

    .elementor-nav-menu .sub-menu {
        margin-top: 0 !important;
        border-top: 0 !important;
        border: 1px solid #d6b66b5c !important;
        background: #d6b66b1a !important;
        margin-bottom: 20px;
        padding: 20px;
    }

    .elementor-nav-menu .sub-menu li:not(:last-child) {
        border-bottom: 1px solid #d6b66b33 !important;
    }

    .home_banner:after {

        position: relative;
        top: 15px;
        bottom: auto;
    }
}


@media (max-width: 767px) {

    .home_banner:after {
        display: none !important;
    }
}


.elementor-element.elementor-sticky.elementor-sticky--active.elementor-sticky--effects .logo {
    position: absolute;
    background: black;
    padding: 15px;
    border-radius: 100%;
}

@media (max-width: 767px) {

    .elementor-element.elementor-sticky.elementor-sticky--active.elementor-sticky--effects .logo {

        padding: 8px;
    }
}