/************************************/
/**** 	    Header css		 ****/
/************************************/

.topbar{
	background: var(--topbar-bg-color, var(--accent-color));
	padding: 10px 0;
    transition: all 0.3s ease;
    color: var(--topbar-text-color, #ffffff);
}

/* Hide topbar on sticky */
.header-sticky.sticky + .topbar {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.topbar-contact-info ul{
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
	gap: 30px;
}

.topbar-contact-info ul li, .topbar-social-links ul li{
	font-size: 14px !important;
	font-weight: 500;
	color: var(--topbar-text-color, #ffffff);
    display: flex;
    align-items: center;
}

.topbar-contact-info ul li i{
	font-size: 16px;
	color: var(--topbar-text-color, #ffffff);
	margin-right: 10px;
}

.topbar-contact-info ul li a{
	color: inherit;
	transition: all 0.3s ease-in-out;
}

.topbar-contact-info ul li a:hover{
	color: var(--primary-color);
}

.topbar-social-links{
	text-align: right;
	display: flex;
	gap: 30px;
}

.topbar-social-links ul{
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar-social-links ul li{
	display: inline-block;
	margin-right: 20px;
}

.topbar-social-links ul li:last-child{
	margin-right: 0px;
}

.topbar-social-links ul li a{
	color: inherit;
}

.topbar-social-links ul li a:hover i{
	color: var(--primary-color);
}

.opening-hours{
	border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 30px !important;
}

/* Main Header Styles */
header.main-header{
	position: relative;
	z-index: 1030;
    width: 100%;
}

/* Sticky Header Styles */
.header-sticky{
    position: relative;
    background: var(--white-color);
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-sticky.sticky{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    animation: slideDown 0.4s ease;
    background: var(--sticky-header-bg, var(--white-color));
    box-shadow: 0 5px 20px rgba(0, 47, 71, 0.1);
}

.header-sticky.sticky-disabled.sticky{
    position: relative;
}

/* Add body class for no sticky header */
body.no-sticky-header .header-sticky.sticky {
    position: relative;
    animation: none;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Logo Styles */
.navbar-brand {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
}

.main-logo {
    display: block;
    max-width: 100%;
    height: auto;
    max-width: var(--main-logo-width, 250px);
    width: var(--main-logo-width, 250px);
}

.sticky-logo {
    display: none;
    max-width: var(--sticky-logo-width, 160px);
    width: var(--sticky-logo-width, 160px);
    height: auto;
}

.header-sticky.sticky .main-logo {
    display: none;
}

.header-sticky.sticky .sticky-logo {
    display: block;
}

/* Navbar Container */
.navbar {
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.header-sticky.sticky .navbar {
    padding: 15px 0;
}

/* Desktop Menu Styles */
.desktop-menu {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-menu-wrapper {
    flex: 1;
}

.desktop-menu .navbar-nav {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.desktop-menu .nav-item {
    position: relative;
}

.desktop-menu .nav-link {
    color: var(--text-color) !important;
    font-family: var(--heading-font);
    font-weight: var(--heading-font-weight);
    font-size: 16px;
    padding: 10px 10px !important;
    transition: all 0.3s ease;
    position: relative;
    text-transform: capitalize;
}

.desktop-menu .nav-link:hover,
.desktop-menu .nav-link:focus {
    color: var(--accent-color) !important;
}

/* Dropdown Styles for Desktop */
.desktop-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 10px 0;
    margin: 0;
    background: var(--secondary-color);
    border: none;
    border-radius: 12px;
    box-shadow: 1px 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.desktop-menu .dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-menu .dropdown-item {
    color: var(--text-color) !important;
    padding: 8px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: start;
}

.desktop-menu .dropdown-item:hover {
    background: var(--accent-color);
    color: var(--white-color) !important;
    padding-left: 25px;
}

/* Header Buttons */
.header-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.emergency-call a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.emergency-call a i {
    color: var(--white-color);
    font-size: 18px;
    background: var(--accent-color);
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    border-radius: 50%;
}

.emergency-call a:hover {
    color: var(--accent-color);
}

.btn-default {
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--white-color);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    white-space: nowrap;
}

.btn-default:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 8px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    cursor: pointer;
    margin-left: 15px;
}

.navbar-toggler .navbar-toggler-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: relative;
    background-image: none;
}

.navbar-toggler .toggler-bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.navbar-toggler:focus, .btn-close:focus{
    box-shadow: unset !important;
}

/* Offcanvas Styles */
.offcanvas {
    background: var(--white-color);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white-color);
}

.offcanvas-title {
    margin: 0;
}

.offcanvas-title img {
    max-width: var(--mobile-logo-width, 180px);
    height: auto;
}

.btn-close {
    background: none;
    opacity: 1;
    font-size: 24px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.btn-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.offcanvas-body {
    padding: 20px;
}

/* Mobile Menu Styles */
.mobile-menu .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
    width: 100%;
    text-transform: capitalize;
}

.mobile-menu .dropdown-toggle::after {
    float: right;
    margin-top: 8px;
    border: none;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f078";
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-menu .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.mobile-menu .dropdown-menu {
    background: var(--secondary-color);
    border: none;
    padding: 0;
    margin: 5px 0 5px 15px;
    border-radius: 8px;
}

.mobile-menu .dropdown-item {
    color: var(--text-color) !important;
    padding: 10px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu .dropdown-item:last-child {
    border-bottom: none;
}

.mobile-menu .dropdown-item:hover {
    background: var(--accent-color);
    color: var(--white-color) !important;
}

/* Mobile Header Buttons */
.header-btn-mobile {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.header-btn-mobile .emergency-call a {
    justify-content: center;
    padding: 15px;
    background: var(--secondary-color);
    border-radius: 10px;
    color: var(--text-color);
}
.header-btn-mobile .emergency-call a .fa-solid.fa-phone  {
    position: unset !important;
}

.header-btn-mobile .btn-default {
    justify-content: center;
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .desktop-menu .nav-link {
        padding: 15px 15px !important;
        font-size: 15px;
    }
    
    .header-btn {
        gap: 15px;
    }
    
    .emergency-call a {
        font-size: 14px;
    }
}

/* Default breakpoint - 1200px */
@media (max-width: 1200px) {
    .navbar-expand-xl .navbar-toggler {
        display: flex;
    }
    
    .desktop-menu {
        display: none !important;
    }
    
    .topbar-contact-info ul {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .topbar-social-links {
        gap: 15px;
    }
    
    .opening-hours {
        padding-right: 15px !important;
    }
    
    .navbar-brand {
        height: 50px;
    }
    
    .main-logo,
    .sticky-logo {
        max-width: calc(var(--main-logo-width, 250px) * 0.8) !important;
        width: calc(var(--main-logo-width, 250px) * 0.8) !important;
    }
    
    .offcanvas-title img {
        max-width: calc(var(--mobile-logo-width, 200px) * 0.9) !important;
        width: calc(var(--mobile-logo-width, 200px) * 0.9) !important;
    }
}

/* Breakpoint 992px */
body.custom-breakpoint-992 {
    @media (max-width: 992px) {
        .navbar-expand-xl .navbar-toggler {
            display: flex !important;
        }
        
        .desktop-menu {
            display: none !important;
        }
    }
}

/* Breakpoint 768px */
body.custom-breakpoint-768 {
    @media (max-width: 768px) {
        .navbar-expand-xl .navbar-toggler {
            display: flex !important;
        }
        
        .desktop-menu {
            display: none !important;
        }
    }
}

@media (max-width: 768px) {
    .topbar-contact-info{
        margin-bottom: 5px;
    }

    .topbar-contact-info ul {
        flex-direction: column;
        gap: 8px;
    }
    
    .topbar-social-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        display: none;
    }
    
    .opening-hours {
        border-right: none;
        padding-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px !important;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .header-sticky.sticky .navbar {
        padding: 10px 0;
    }
    .main-logo,
    .sticky-logo {
        max-width: calc(var(--main-logo-width, 250px) * 0.7) !important;
        width: calc(var(--main-logo-width, 250px) * 0.7) !important;
    }
    
    .offcanvas-title img {
        max-width: calc(var(--mobile-logo-width, 200px) * 0.8) !important;
        width: calc(var(--mobile-logo-width, 200px) * 0.8) !important;
    }
}

@media (min-width: 1200px) {
    .navbar-expand-xl .offcanvas {
        display: none;
    }
 
    .navbar-expand-xl .navbar-nav .dropdown-menu {
        display: block !important;
    }
}

/* Header Style Variations */
/* Style 1 - Default (already defined above) */
/* Style 2 - Dark/Minimal */
.header-style-2 .header-sticky {
    background: var(--primary-color, #1a1a1a);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.header-style-2 .navbar {
    padding: 15px 0;
}

.header-style-2 .header-sticky.sticky .navbar {
    padding: 12px 0;
    background: var(--primary-color, #1a1a1a);
}

/* White text for dark background */
.header-style-2 .desktop-menu .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-style-2 .desktop-menu .nav-link:hover {
    color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

/* Dropdown menu for dark header */
.header-style-2 .desktop-menu .dropdown-menu {
    background: var(--primary-color, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-style-2 .desktop-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
}

.header-style-2 .desktop-menu .dropdown-item:hover {
    background: var(--accent-color);
    color: var(--white-color) !important;
}

/* Emergency call - standout on dark background */
.header-style-2 .emergency-call a {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}


.header-style-2 .emergency-call a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Button styling for dark header */
.header-style-2 .btn-default {
    background: var(--accent-color);
    color: var(--white-color);
    border: 2px solid var(--accent-color);
    padding: 10px 25px;
    font-weight: 600;
}

.header-style-2 .btn-default:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Mobile toggle button for dark header */
.header-style-2 .navbar-toggler .toggler-bar {
    background: rgba(255, 255, 255, 0.9);
}

/* Offcanvas menu for dark header */
.header-style-2 .offcanvas {
    background: var(--primary-color, #1a1a1a);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.header-style-2 .offcanvas-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-style-2 .offcanvas-title {
    color: var(--white-color);
}

.header-style-2 .btn-close {
    color: rgba(255, 255, 255, 0.8);
}

.header-style-2 .btn-close:hover {
    color: var(--accent-color);
}

.header-style-2 .mobile-menu .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-style-2 .mobile-menu .dropdown-menu {
    background: rgba(0, 0, 0, 0.2);
}

.header-style-2 .mobile-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
}

.header-style-2 .mobile-menu .dropdown-item:hover {
    background: var(--accent-color);
    color: var(--white-color) !important;
}

/* Mobile header buttons for dark theme */
.header-style-2 .header-btn-mobile .emergency-call a {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.header-style-2 .header-btn-mobile .emergency-call a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hide topbar when sticky (same as other styles) */
.header-style-2 .header-sticky.sticky + .topbar {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    
    .header-style-2 .btn-default {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .header-style-2 .emergency-call a {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-style-2 .navbar {
        padding: 12px 0;
    }
    
    .header-style-2 .header-sticky.sticky .navbar {
        padding: 10px 0;
    }
}

/* Style 3 - Centered */
.header-style-3 .desktop-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
}

.header-style-3 .nav-menu-wrapper {
    order: 1;
    flex: 1;
    margin-top: 0;
}

.header-style-3 .header-logo-centered {
    order: 2;
    margin: 0 30px;
    flex-shrink: 0;
}

.header-style-3 .header-btn {
    order: 3;
    margin-left: auto;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-style-3 .desktop-menu .navbar-nav {
    justify-content: flex-start;
    width: 100%;
}

/* Mobile logo handling */
.header-style-3 .header-logo-mobile {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Mobile view */
@media (max-width: 1199.98px) {
    .header-style-3 .header-logo-mobile {
        display: flex;
    }
    
    .header-style-3 .header-logo-centered {
        display: none !important;
    }
    
    .header-style-3 .navbar > .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .header-style-3 .navbar-toggler {
        margin-left: 15px;
        order: 2;
    }
    
    .header-style-3 .header-logo-mobile {
        order: 1;
    }
}

/* Desktop view */
@media (min-width: 1200px) {
    .header-style-3 .header-logo-mobile {
        display: none !important;
    }
    
    .header-style-3 .header-logo-centered {
        display: flex !important;
        align-items: center;
    }
    
    /* Ensure proper spacing */
    .header-style-3 .nav-menu-wrapper {
        max-width: 40%;
    }
    
    .header-style-3 .header-btn {
        max-width: 40%;
    }
}

/* Adjust for responsive breakpoints */
@media (max-width: 1399px) and (min-width: 1200px) {
    .header-style-3 .header-logo-centered {
        margin: 0 20px;
    }
    
    .header-style-3 .desktop-menu .nav-link {
        padding: 10px 12px !important;
        font-size: 15px;
    }
}

/* Make sure emergency call and button are properly aligned */
.header-style-3 .header-btn {
    gap: 20px;
}

.header-style-3 .emergency-call a {
    white-space: nowrap;
}

/* Style 4 - Transparent */
.header-style-4 {
   position: absolute !important;
    width: 100% !important;
    background: transparent;
    z-index: 1030 !important;
    top: 0;
    left: 0;
}

/* Ensure the main content starts below the header */
body.has-transparent-header .pestannihilate-main-content {
    padding-top: 0; /* Remove any padding that might push content down */
}

/* When sticky is not active, make everything transparent */
.header-style-4 .header-sticky:not(.sticky) {
    background: transparent;
    box-shadow: none;
}

/* White text when header is transparent (not sticky) */
.header-style-4 .header-sticky:not(.sticky) .nav-link {
    color: var(--white-color) !important;
}
.header-style-4 .header-sticky:not(.sticky) .mobile-menu .nav-link{
       color: var(--accent-color) !important;
}
.header-style-4 .header-sticky:not(.sticky) .dropdown-menu .nav-link{
    color: var(--accent-color) !important;
}
/* .header-style-4 .header-sticky:not(.sticky) .navbar-brand .main-logo { */
    /* If you have a white logo for transparent header, you can target it here */
    /* Example: filter: brightness(0) invert(1); to make black logo white */
/* } */

/* White emergency call when header is transparent */
.header-style-4 .header-sticky:not(.sticky) .emergency-call a span {
    color: var(--white-color);
}

.header-style-4 .mobile-menu .header-sticky:not(.sticky) .nav-link{
    color: var(--accent-color) !important;
}
.header-style-4 .header-sticky:not(.sticky) .mobile-menu .emergency-call a span{
    color: var(--primary-color) !important;
}

.header-style-4 .header-sticky:not(.sticky) .emergency-call a i {
    color: rgba(255, 255, 255, 0.9);
}

/* White toggle button bars when header is transparent */
.header-style-4 .header-sticky:not(.sticky) .navbar-toggler .toggler-bar {
    background: white;
}

/* Transparent topbar when header is transparent */
.header-style-4 .topbar {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.header-style-4 .topbar a {
    color: rgba(255, 255, 255, 0.9);
}

.header-style-4 .topbar i {
    color: rgba(255, 255, 255, 0.9);
}

/* When sticky becomes active, revert to normal header styles */
.header-style-4 .header-sticky.sticky {
    background: var(--sticky-header-bg, var(--white-color));
    box-shadow: 0 5px 20px rgba(0, 47, 71, 0.1);
}

/* Revert text colors when sticky is active */
.header-style-4 .header-sticky.sticky .nav-link {
    color: var(--text-color) !important;
}

.header-style-4 .header-sticky.sticky .emergency-call a {
    color: var(--text-color);
}


.header-style-4 .header-sticky.sticky .btn-default {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-color);
}

.header-style-4 .header-sticky.sticky .btn-default:hover {
    color: var(--accent-color);
    background: transparent;
}

.header-style-4 .header-sticky.sticky .navbar-toggler .toggler-bar {
    background: var(--text-color);
}

/* Topbar disappears when sticky is active (same as other styles) */
.header-style-4 .header-sticky.sticky + .topbar {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* Fix Bootstrap conflicts */
.navbar-nav {
    margin: 0;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    border: none;
}

/* Remove old responsive menu styles */
.responsive-menu,
.slicknav_menu {
    display: none !important;
}

/* Conditional topbar display */
body:not(.topbar-enabled) .topbar {
    display: none;
}

/* Conditional social media display */
.topbar-social-links ul:last-child:empty {
    display: none;
}