/* White Service Block */
.service-block-white, .service-block-dark {
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.border-radius-custom {
    border-radius: 4px;
}

.service-block-dark {
    background-color: #28292B;
}

.service-block-dark .service-text-bold {
    color: var(--primary-color);
}

.service-text-bold {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.circle-img-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
}

.circle-img-container .img-base,
.circle-img-container .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    border-radius: 50%;
}

.circle-img-container .img-hover {
    opacity: 0;
    z-index: 2;
}

.circle-img-container .img-base {
    opacity: 1;
    z-index: 1;
}

.circle-img-container:hover .img-hover {
    opacity: 1;
}

.circle-img-container:hover .img-base {
    opacity: 0;
}

@media (max-width: 768px) {
    .service-text-bold {
        font-size: 24px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .circle-img-container {
        width: 220px;
        height: 220px;
    }
}

/* Services Grid */
.service-card-hover {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
}

.img-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio 1:1 */
}

.img-base, .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.img-hover {
    opacity: 0;
    z-index: 2;
}

.img-base {
    z-index: 1;
}

.service-card-hover:hover .img-hover {
    opacity: 1;
}

.service-card-hover:hover .img-base {
    opacity: 0;
}

/* Hero Slider inside Parallax */
.hero-slider-in-parallax {
    position: relative;
    z-index: 1;
}

.carousel-item {
    height: 500px;
    background-color: transparent;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Додано оверлей для кращої читабельності тексту */
}

/* Hero Slider Caption */
.carousel-caption {
    position: absolute;
    bottom: 15%;
    left: 8%;
    right: 8%;
    text-align: left;
    padding-bottom: 0;
    z-index: 2;
}

.slide-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 42px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 600px;
    line-height: 1.2;
}

.btn-order {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    border-radius: 4px;
    padding: 10px 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-order:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Hero Slider Indicators */
.carousel-indicators [data-bs-target] {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    border: 1px solid #fff !important;
    background-color: #fff !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 4px !important;
    box-sizing: content-box !important;
}

.carousel-indicators .active {
    background-color: transparent !important;
}

/* Hero Slider Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 228, 115, 0.2); /* --primary-color with opacity */
    border-radius: 50%;
    margin: 0 15px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 228, 115, 0.8);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 350px;
    }
    .slide-title {
        font-size: 24px;
    }
    .carousel-caption {
        bottom: 10%;
        left: 5%;
        right: 5%;
    }
}

/* Layout */
.container-custom {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
}

@media (min-width: 992px) {
    .container-xxl {
        max-width: 980px;
    }
}

html {
    /* scroll-behavior: smooth; */
}

#services, #contacts {
    scroll-margin-top: 20px;
}

:root {
    --primary-color: #FFE473; /* Жовтий */
    --secondary-color: #28292B; /* Темно-сірий */
    --text-color: #28292B;
    --light-text: #FFFFFF;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

/* Header */
.header {
    background-color: var(--secondary-color);
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.logo-img {
    width: 90px;
    height: auto;
}

.logo-text {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.location-item {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.location-item-mobile {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 500;
}

.btn-call {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 16px;
}

.btn-call:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.working-hours-text {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Nav Bar Yellow */
.nav-bar-yellow {
    background-color: var(--primary-color);
}

.nav-bar-yellow .nav-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.2s;
}

.nav-bar-yellow .nav-link:hover {
    opacity: 0.7;
}

/* Parallax Section */
.parallax-section {
    position: relative;
    min-height: 500px;
    background-color: rgb(40, 41, 43); /* --bg-overlay-color */
    overflow: hidden;
}

.parallax-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* --fill-layer-image-height */
    background-image: url('../img/background.jpg');
    background-attachment: fixed; /* --bg-position: fixed */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.19; /* --fill-layer-image-opacity */
    z-index: 0;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Оверлей тепер керується через opacity картинки та background-color секції */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Barlow', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.working-hours {
    color: var(--primary-color) !important;
}

/* Contact Info Block */
.contact-info-block {
    background-color: var(--primary-color);
}

.contact-row {
    padding-top: 40px;
    padding-bottom: 40px;
}

.contact-line {
    position: absolute;
    top: 50px; /* Aligns with dots */
    left: 10%;
    right: 10%;
    height: 1px;
    background-color: var(--secondary-color);
    z-index: 1;
    width: 80%;
}

@media (max-width: 767px) {
    .contact-line {
        display: none;
    }
    .contact-item {
        margin-bottom: 25px;
    }
    .contact-row {
        padding-top: 25px;
        padding-bottom: 10px;
    }
    .contact-icon-box {
        margin-bottom: 10px;
        height: 45px;
    }
    .contact-icon {
        height: 45px;
    }
    .contact-dot-wrapper {
        margin-bottom: 10px;
    }
    .contact-label {
        font-size: 18px;
        margin-bottom: 5px;
    }
    .contact-value {
        font-size: 15px;
    }
}

.contact-item {
    position: relative;
    z-index: 2;
}

.contact-dot-wrapper {
    margin-bottom: 15px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-dot {
    width: 20px;
    height: 20px;
}

.contact-icon-box {
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-icon {
    height: 60px;
    width: auto;
}

.contact-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-value {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 400;
}

.contact-value.no-link {
    text-decoration: none;
}

.contact-value:hover {
    color: var(--secondary-color);
    opacity: 0.7;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-top: 2px solid var(--primary-color);
}

.footer-locations p {
    color: var(--light-text);
}

.working-hours-small {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .parallax-section::before {
        background-attachment: scroll; /* Disable parallax on mobile for better performance */
    }
}

/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-yellow 2s infinite;
}

.floating-call-btn:hover {
    transform: scale(1.1);
    color: var(--secondary-color);
}

@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 228, 115, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 228, 115, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 228, 115, 0);
    }
}

@media (max-width: 768px) {
    .floating-call-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
