/**
* Theme Name: Harmony Care Child
* Description: This is a child theme of Harmony Care.
* Author: <a href="https://cmsmasters.net/">cmsmasters</a>
* Template: harmony-care
* Version: 1.0.0
* Tested up to: 6.6
* Requires PHP: 7.4
* License:
* License URI:
* Text Domain: harmony-care-child
* Copyright: cmsmasters 2025 / All Rights Reserved
*/

.main-nav {
    position: relative;
    z-index: 1000;
    display: none;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.top-bar-scroll {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    color: #333;
    padding-left: 0px;
    font-size: 14px;
    text-align: center;
    z-index: 9000;
}

.top-bar-container-first{
    display: none;    
}
.top-bar-container-second{
display: flex;
width: 100%;
}

.top-bar-first {
    display: none;
    align-items: center;
    margin-right: 16px;
}

.top-bar-second{
    display: none;
    align-items: center;
}

.blue-button {
    background: #288CCC;
    border-radius: 0px 0px 15px 15px;
    padding: 13px 55px 13px 55px;
    border-style: none;
    font-size: 16px;
    color: white;
    transition: 0.3s;
    width: 100%;
}

.blue-button:hover {
    background: #1C6594;
    color: white;
}

.site-header{
    position: absolute;
    display:flex;
    justify-content:center;
    padding:0 20px;
    z-index: 9999;
    width: 100%;
    background: #fff;
}

.site-header.is-stuck {
    top: 0!important;
    position: fixed;
    box-shadow:0px 4px 10px 0px rgba(0, 0, 0, 0.15);
}


/* ============================
   HEADER ITEM (NEW CLASS)
   ============================ */
.main-menu>.header-item {
    position: relative;
    margin-top: 0;
}

.main-menu>.header-item>a {
    display: inline-block;
    padding: 34px 20px;
    text-decoration: none;
    color: #3B2414;
    font-weight: 500;
    transition: color 0.25s ease;
}

/* Hover boja linka */
.main-menu>.header-item:hover>a {
    color: #298CCC;
}

/* ============================
   UNDERLINE ANIMACIJA
   ============================ */
.main-menu>.header-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #EC2228;
    /* crvena linija */
    transition: width 0.25s ease-in-out;
}

/* Aktivira liniju od leve ka desnoj */
.main-menu>.header-item:hover::after,
.main-menu>.header-item:focus-within::after {
    width: 100%;
}

/* ============================
   MEGA MENU DROPDOWN
   ============================ */
.header-item.has-mega {
    position: relative;
}

/* Mega menu template wrapper */
.header-item.has-mega .mega-menu {
    position: absolute;
    top: 100%;
    left: -280px;
    min-width: 350px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 3px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
    z-index: 999;
}

/* Hover / fokus otvara dropdown */
.header-item.has-mega:hover .mega-menu,
.header-item.has-mega:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================
   UNDERLINE OSTANE AKTIVAN
   DOK JE MEGA MENU OTVOREN
   ============================ */
.header-item.has-mega:hover::after,
.header-item.has-mega:focus-within::after {
    width: 100%;
}
.hamburger-btn-custom2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 52px!important;
    height: 52px!important;
    border-radius: 10px;
    background-color: #298CCC;
}

.hamburger-btn-custom2 i {
    font-size: 30px;
    color: white;
}

.hamburger-btn-custom2:before, .hamburger-btn-custom2:after{
background-color: #298CCC!important;
background-image: none!important;
width: 52px;
height: 52px;
}
.hamburger-btn-custom2:before:hover, .hamburger-btn-custom2:after:hover{
background-color: #1C6A9C!important;
}

.site-logo{
    width: 150px;
    height: 72px;
    margin-top: 10px;
}

/* Wrapper preko celog ekrana */
#mobile-menu-custom {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

/* Overlay sivo iza */
#mobile-menu-custom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Panel – ne diramo width! */
#mobile-menu-custom .mobile-menu-custom-panel {
    top: 0;
    right: 0;
    height: 100%;
    position: absolute;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

/* Kad je otvoreno */
#mobile-menu-custom.is-open {
    pointer-events: auto;
}

body.canvas-open {
    overflow: hidden;
    height: 100vh;
    width: 100%;
    position: fixed;
}
html.canvas-open {
    overflow: hidden;
}

#mobile-menu-custom.is-open #mobile-menu-custom-overlay {
    opacity: 1;
}

#mobile-menu-custom.is-open .mobile-menu-custom-panel {
    transform: translateX(0);
}


@media screen and (min-width: 600px) {
    .top-bar-scroll {
        padding-left: 20px;
    }
   .top-bar-first , .top-bar-container-first{
        display: flex;
    }
    .top-bar-container-second {
        width: auto;
    }
    .blue-button {
        border-radius: 0px 0px 0px 15px;
        width: auto;
    }
}

@media screen and (min-width: 768px) {
    .site-header  {
        padding: 0 40px;
    }
    .top-bar-scroll {
        padding-left: 40px;
    }

}

@media screen and (min-width: 800px) {
    .top-bar-second {
        display: flex;
    }
}

@media screen and (min-width: 1180px) {
    .hamburger-btn-custom2{
        display: none;
    }
    .main-nav{
        display: flex;
    }
}