/* General Header Styles */
.site-header {
    /* background-color: #fff; */ /* Old background */
    padding: 10px 0; /* Adjusted padding slightly */
    border-bottom: 1px solid #4f5b66; /* Darker border to complement new bg */
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header is above other content */
    transition: top 0.3s;
}

.site-header-custom-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff; /* Default text color for header */
    position: relative;
    /* overflow: hidden; */ /* Removed to allow submenu to be visible */
}

.site-header-custom-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: -1; /* Ensure pattern is behind content */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    max-height: 75px; /* Increased logo size */
    transition: max-height 0.3s ease;
}

/* Desktop Navigation */
.header-nav-desktop .main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.header-nav-desktop .main-menu > li {
    margin-left: 25px;
    position: relative; /* For submenu positioning */
}

.header-nav-desktop .main-menu > li > a {
    text-decoration: none;
    /* color: #333; */
    color: #f0f0f0; /* Lighter color for dark background */
    font-weight: 600;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.header-nav-desktop .main-menu > li > a:hover,
.header-nav-desktop .main-menu > li.has-submenu-desktop:hover > a {
    /* color: #cc9966; */
    color: #00c6ff; /* Brighter hover color for dark background */
}

/* Desktop Submenu */
.has-submenu-desktop .submenu-desktop {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 1050; /* Increased z-index */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.has-submenu-desktop:hover .submenu-desktop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-desktop li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.submenu-desktop li a:hover {
    background-color: #f8f9fa;
    /* color: #cc9966; */
    color: #007bff; /* Adjust submenu hover if needed, though it's on a light bg */
}

/* Header Actions (Contact Info & Mobile Toggle) */
.header-actions {
    display: flex;
    align-items: center;
}

.header-contact-info-short {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.header-contact-info-short a {
    text-decoration: none;
    /* color: #555; */
    color: #e0e0e0; /* Lighter for dark background */
    font-size: 0.9em;
    margin: 0 5px;
    transition: color 0.3s ease;
}
.header-contact-info-short a i {
    margin-right: 5px;
    /* color: #cc9966; */
    color: #00c6ff; /* Brighter icon color */
}

.header-contact-info-short a:hover {
    /* color: #cc9966; */
    color: #fff; /* White hover for links */
}

.header-divider-short {
    /* color: #ddd; */
    color: #6c757d; /* Darker divider for contrast */
    margin: 0 8px;
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    /* color: #333; */
    color: #f0f0f0; /* Lighter for dark background */
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen */
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    z-index: 1002;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    padding-bottom: 20px; /* Space for contact info */
    position: relative;
    display: none; /* Hidden by default on all screen sizes */
}

.mobile-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
}

.mobile-logo img {
    max-height: 40px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #f0f0f0;
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: #00c6ff;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #f0f0f0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-menu li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #00c6ff;
}

.mobile-menu li.has-submenu-mobile > a {
    display: inline-block; /* To allow button next to it */
    width: calc(100% - 40px); /* Adjust width to make space for button */
}

.submenu-toggle-mobile {
    background: none;
    border: none;
    float: right;
    padding: 12px;
    cursor: pointer;
    color: #f0f0f0;
    font-size: 1em;
    transition: color 0.3s ease;
}

.submenu-toggle-mobile:hover {
    color: #00c6ff;
}

.submenu-mobile {
    list-style: none;
    padding-left: 20px; /* Indent submenu */
    margin: 0;
    display: none; /* Hidden by default */
    background-color: rgba(0,0,0,0.2);
}

.submenu-mobile.open {
    display: block;
}

.submenu-mobile li a {
    padding-left: 30px; /* Further indent submenu items */
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Lighter border for sub-items */
    color: #e0e0e0;
}

.submenu-mobile li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #00c6ff;
}

.submenu-mobile li:last-child a {
    border-bottom: none;
}

.mobile-contact-info {
    padding: 15px 20px;
    font-size: 0.9em;
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-contact-info a {
    display: block;
    color: #f0f0f0;
    text-decoration: none;
    margin-bottom: 10px;
    border-bottom: none !important; /* Override general li a border */
    transition: color 0.3s ease;
}
.mobile-contact-info a:hover {
    color: #00c6ff;
    background-color: transparent !important; /* Override general li a hover */
}
.mobile-contact-info a i {
    margin-right: 8px;
    color: #00c6ff;
}
.mobile-contact-info hr {
    margin-top: 10px;
    margin-bottom: 15px;
    border-color: rgba(255,255,255,0.2);
}

.mobile-social-icons {
    margin-top: 15px;
    text-align: left;
}

.mobile-social-icons a {
    display: inline-block;
    color: #f0f0f0;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.mobile-social-icons a:hover {
    color: #00c6ff;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 991px) { /* Common breakpoint for tablets and mobiles */
    .header-nav-desktop,
    .header-contact-info-short {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-inner {
        justify-content: space-between;
    }
    
    /* Show mobile nav only on mobile screens */
    .mobile-nav {
        display: block;
        position: fixed;
    }
}

/* Desktop - ensure mobile nav is completely hidden */
@media (min-width: 992px) {
    .mobile-nav {
        display: none !important;
    }
    .mobile-menu-overlay {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Sticky header related style */
body.mobile-nav-active {
    overflow: hidden; /* Prevent scrolling of body when mobile menu is open */
}

/* Add your existing styles for layout-header.css here if any */

.top-header {
    padding: 0.25rem 0; /* Further reduced padding */
    background-color: #f8f9fa; /* Optional: a light background for better separation */
    font-size: 0.8rem; /* Further reduced base font size */
    border-bottom: 1px solid #e0e0e0; /* Optional: a subtle border */
}

.top-header-content {
    display: flex;
    justify-content: space-between; 
    align-items: baseline; /* Changed from center to baseline for better text alignment */
    width: 100%;
}

.top-header-left {
    /* Styles for the left part (slogan) */
}

.top-header-slogan {
    font-weight: 600; /* Dolgun - boldish */
    color: #333; /* Kurumsal - corporate-like color */
    letter-spacing: 0.5px; /* Adds a bit of corporate feel */
    font-size: 0.95em; /* Adjusted relative to new base */
}

.contact-info {
    text-align: right; /* Aligns contact info to the right */
}

.contact-info a {
    color: #555; /* Slightly softer color for links */
    text-decoration: none;
    margin-left: 8px; /* Slightly reduced margin */
    font-size: 0.95em; /* Adjusted relative to new base */
}

.contact-info a:hover {
    color: #007bff; /* Standard link hover color */
}

.contact-info .fas {
    margin-right: 5px; /* Space between icon and text */
    color: #007bff; /* Icon color to match links or a theme color */
}

.contact-info .separator {
    margin: 0 8px;
    color: #ccc;
}

/* Responsive adjustments if needed */
@media (max-width: 768px) {
    .top-header-content {
        flex-direction: column;
        align-items: center;
    }
    .top-header-slogan {
        margin-bottom: 5px;
        text-align: center;
    }
    .contact-info {
        text-align: center;
    }
    .contact-info a {
        margin-left: 5px;
        margin-right: 5px;
    }
}

/* Styles for social icons in header actions */
.header-actions .header-social-icons a {
    /* color: #f0f0f0; */ /* Base color inherited or set by .site-header-custom-bg */
    transition: color 0.3s ease;
    /* font-size: 1.3em; */ /* Already has inline style, keep or override consistently */
    /* margin: 0 6px; */ /* Already has inline style */
}

/* Define a general hover color, overridden by specific brand colors below */
.header-actions .header-social-icons a:hover {
    color: #00c6ff; /* Bright hover for unspecified icons */
}

.header-actions .header-social-icons .phone {
    color: #f0f0f0; /* Initial color for phone icon on dark bg */
}
.header-actions .header-social-icons .phone:hover {
    color: #00c6ff; /* Hover color for phone icon */
}

.header-actions .header-social-icons .instagram {
    color: #E1306C; /* Initial brand color */
}
.header-actions .header-social-icons .instagram:hover {
    color: #c72a63; /* Darker/alternative brand hover */
}

.header-actions .header-social-icons .twitter {
    color: #1DA1F2; /* Initial brand color */
}
.header-actions .header-social-icons .twitter:hover {
    color: #1a8cd8; /* Darker/alternative brand hover */
}

.header-actions .header-social-icons .linkedin {
    color: #0077B5; /* Initial brand color */
}
.header-actions .header-social-icons .linkedin:hover {
    color: #005e90; /* Darker/alternative brand hover */
}

.header-actions .header-social-icons .facebook {
    color: #1877F2; /* Initial brand color */
}
.header-actions .header-social-icons .facebook:hover {
    color: #125cb9; /* Darker/alternative brand hover */
}

.header-actions .header-social-icons .whatsapp {
    color: #25D366; /* Initial brand color */
}
.header-actions .header-social-icons .whatsapp:hover {
    color: #1da851; /* Darker/alternative brand hover */
}

/* Top Header Adjustments (if it visually merges with the main header) */
/* If .top-header should also have a dark background, you'd add styles for it here. */
/* For now, assuming .top-header remains visually distinct with its own background. */

/* Sticky Header Adjustments */
.sticky-header.fixed .site-header-custom-bg {
    /* You might want a slightly different background or shadow when sticky */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.sticky-header.fixed .header-logo img {
    max-height: 60px; /* Slightly smaller logo when sticky */
}

/* Ensure mobile menu button is visible on dark header */
@media (max-width: 991px) {
    .header-nav-desktop,
    .header-contact-info-short { /* Hide desktop nav and short contact info */
        display: none;
    }
    .mobile-menu-toggle {
        display: block; /* Show mobile menu toggle */
        color: #f0f0f0; /* Ensure visibility on dark header */
    }
    .mobile-menu-toggle:hover {
        color: #00c6ff;
    }
    .header-inner {
        /* Adjust justify-content if logo is not centered as desired with only logo and toggle */
        /* For example, if you want logo left, toggle right: justify-content: space-between; */
        /* If logo should be centered and toggle right: */
        /* justify-content: flex-start; or rely on margin-left: auto for toggle if it's part of actions */
    }
} 