/* ========================================
   KARTELLE HEADER & NAVIGATION STYLES
   Consolidated CSS with transparent header and overlapping logo
   ======================================== */

/* =====================================
   HEADER STRUCTURE - TRANSPARENT WITH OVERLAP
   ===================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.header-wrapper {
    width: 100%;
}

.header-container {
  
    margin-top: -20px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 96px;
    background: linear-gradient(to right, rgb(255 255 255 / 67%) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 500;
}

/* ===== LOGO SECTION - OVERLAPPING HERO ===== */

.logo-section {
    position: relative;
    z-index: 2000;
    
    padding: 36px 42px;
    border-radius: 3px;
    transform: translateY(80px);
    transition: all 0.3s ease;
    margin-top: -60px;
    padding-top: 60px;
    background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 34%, rgba(255, 255, 255, 1) 92%, rgba(255, 255, 255, 0.23) 100%);
}

.logo-section:hover {
    transform: translateY(80px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

.header-logo {
    height: 84px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.header-title {
    height: 72px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.header-logo-link:hover .header-logo {
    transform: scale(1.05);
}

/* ===== NAVIGATION SECTION ===== */

.navigation {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: -20px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 0;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4cb7cf 0%, #24daf2 100%);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #4cb7cf;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu .active a {
    color: #24daf2;
}

.nav-menu .active a::after {
    width: 100%;
    background: linear-gradient(90deg, #24daf2 0%, #4cb7cf 100%);
}

/* ===== DROPDOWN MENU STYLES ===== */

.nav-menu .has-dropdown {
    position: relative;
}

.nav-menu .has-dropdown > a {
    cursor: pointer;
}

.nav-menu .has-dropdown > a::after {
    content: none; /* Remove underline animation for dropdown parent */
}

.nav-menu .dropdown-toggle::before {
    content: '▼';
    font-size: 9px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.nav-menu .has-dropdown.open > .dropdown-toggle::before {
    transform: rotate(180deg);
}

.nav-menu .has-dropdown:hover > .dropdown-toggle {
    color: #4cb7cf;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #ffffff;
    min-width: 240px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 12px 0;
    z-index: 3000;
    list-style: none;
    margin: 0;
}

.has-dropdown.open .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

.dropdown-menu li {
    padding: 0;
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 14px 24px;
    color: #2c2c2c;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.2s ease;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

.dropdown-menu a::after {
    display: none; /* Remove underline for dropdown items */
}

.dropdown-menu a:hover {
    background: rgba(76, 183, 207, 0.1);
    color: #4cb7cf;
    padding-left: 28px;
}

.dropdown-menu li:first-child a {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 8px 8px;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONTACT INFO BAR ===== */

.contact-info-bar {
    background-color: rgb(0 193 209 / 54%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 50;
}

.contact-info-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-item {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: "Inter", sans-serif;
}

.contact-item.address {
    color: white;
    font-size: 13px;
}

.contact-item:hover {
    color: #21a7c4;
}

.separator {
    color: #d0d0d0;
    font-weight: 300;
}

.consultation-btn {
    background: linear-gradient(135deg, #21a7c4 0%, #1a8ba3 100%);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(33, 167, 196, 0.3);
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.consultation-btn:hover {
    background: linear-gradient(135deg, #1a8ba3 0%, #157a8f 100%);
    box-shadow: 0 5px 15px rgba(33, 167, 196, 0.5);
    transform: translateY(-2px);
}

/* ===== MOBILE MENU TOGGLE (HIDDEN ON DESKTOP) ===== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 50px;
    height: 50px;
    padding: 10px;
    background: rgba(76, 183, 207, 0.15);
    border: 2px solid rgba(76, 183, 207, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10001;
}

.mobile-menu-toggle:hover {
    background: rgba(76, 183, 207, 0.25);
    border-color: #4cb7cf;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #2c2c2c;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =====================================
   HERO SECTION SPACING ADJUSTMENT
   ===================================== */

/* Add this to your main content area to accommodate the header overlap */
.hero-section {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* =====================================
   TABLET & MOBILE RESPONSIVE STYLES
   ===================================== */

@media (max-width: 1200px) {
    
    /* Header adjustments */
    .header-container {
        min-height: 80px;
        padding: 0 30px;
        background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgb(255 255 255) 100%;

        z-index: 500;
    }

    .logo-section {
        transform: translateY(55px);
        padding: 30px 34px;
        z-index: 2000;
    }

    .logo-section:hover {
        transform: translateY(55px) scale(1.02);
    }

    .header-logo {
        height: 72px;
    }

    .header-title {
        height: 60px;
    }

    .header-logo-link {
        gap: 15px;
    }

    /* Navigation becomes mobile menu */
    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 420px;
        max-width: 85vw;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 90px 40px 40px;
        margin: 0;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(76, 183, 207, 0.2);
        padding: 0;
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 18px 15px;
        width: 100%;
        font-size: 20px;
        font-weight: 700;
        color: #2c2c2c;
        text-align: left;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover {
        background-color: rgba(76, 183, 207, 0.1);
        padding-left: 25px;
    }

    .nav-menu .active a {
        background-color: rgba(36, 218, 242, 0.15);
        border-left: 5px solid #24daf2;
        color: #24daf2;
        padding-left: 20px;
    }

    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(76, 183, 207, 0.05);
        border-radius: 0;
        padding: 0;
        min-width: 100%;
        margin-top: 0;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        border-bottom: 1px solid rgba(76, 183, 207, 0.15);
        padding-left: 20px;
    }

    .dropdown-menu a {
        font-size: 17px;
        padding: 14px 15px;
        font-weight: 600;
    }

    .dropdown-menu a:hover {
        padding-left: 25px;
    }

    .nav-menu .dropdown-toggle::before {
        float: right;
        margin-right: 10px;
        margin-left: 0;
    }

    /* Hamburger animation */
    .mobile-menu-toggle.active {
        background: rgba(76, 183, 207, 0.3);
        border-color: #4cb7cf;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
        background-color: #4cb7cf;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(9px, -9px);
        background-color: #4cb7cf;
    }

    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 9999;
        animation: fadeIn 0.3s ease;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Contact info bar adjustments */
    .contact-info-bar {
        background-color: rgba(255, 255, 255, 0.9);
    }

    .contact-info-inner {
        padding: 0 30px;
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 968px) {
    
    .header-container {
        padding: 0 25px;
        min-height: 72px;
    }

    .logo-section {
        transform: translateY(45px);
        padding: 24px 28px;
    }

    .logo-section:hover {
        transform: translateY(45px) scale(1.02);
    }

    .header-logo {
        height: 66px;
    }

    .header-title {
        height: 54px;
    }

    .header-logo-link {
        gap: 12px;
    }

    .contact-info-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .separator {
        display: none;
    }
}

@media (max-width: 768px) {
    
    .header-container {
        padding: 0 20px;
        min-height: 64px;
    }

    .logo-section {
        transform: translateY(35px);
        padding: 20px 24px;
    }

    .logo-section:hover {
        transform: translateY(35px) scale(1.02);
    }

    .header-logo {
        height: 58px;
    }

    .header-title {
        height: 48px;
    }

    .header-logo-link {
        gap: 10px;
    }

    .mobile-menu-toggle {
        width: 48px;
        height: 48px;
        padding: 9px;
        gap: 5px;
    }

    .hamburger-line {
        width: 26px;
        height: 2.5px;
    }

    .nav-menu {
        width: 380px;
        padding: 80px 35px 35px;
    }

    .nav-menu a {
        font-size: 18px;
        padding: 16px 12px;
    }

    .contact-item {
        font-size: 13px;
    }

    .consultation-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    
    .header-container {
        padding: 0 15px;
        min-height: 56px;
    }

    .logo-section {
        transform: translateY(25px);
        padding: 17px 20px;
        margin-top: -10px;
    }

    .logo-section:hover {
        transform: translateY(25px) scale(1.02);
    }

    .header-logo {
        height: 50px;
    }

    .header-title {
        height: 42px;
    }

    .header-logo-link {
        gap: 8px;
    }

    .mobile-menu-toggle {
        width: 45px;
        height: 45px;
        padding: 8px;
    }

    .hamburger-line {
        width: 24px;
    }

    .nav-menu {
        width: 90%;
        max-width: 350px;
        padding: 70px 30px 30px;
    }

    .nav-menu a {
        font-size: 17px;
        padding: 15px 10px;
    }

    .contact-info-inner {
        padding: 0 15px;
    }

    .contact-item {
        font-size: 12px;
    }

    .contact-item svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 400px) {
    
    .header-logo {
        height: 46px;
    }

    .header-title {
        height: 38px;
    }

    .logo-section {
        padding: 12px 15px;
    }

    .header-logo-link {
        gap: 6px;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
    }

    .hamburger-line {
        width: 22px;
    }

    .nav-menu {
        width: 95%;
        padding: 65px 25px 25px;
    }

    .nav-menu a {
        font-size: 16px;
        padding: 14px 8px;
    }
}

/* =====================================
   ANIMATIONS
   ===================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =====================================
   DESKTOP OVERRIDE (> 1200px)
   ===================================== */

@media (min-width: 1201px) {
    
    .mobile-menu-toggle {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .nav-menu li {
        display: inline-block !important;
        width: auto !important;
        border-bottom: none !important;
    }

    .nav-menu a {
        font-size: 15px !important;
        padding: 8px 0 !important;
        text-align: center !important;
    }
}

/* =====================================
   PRINT STYLES
   ===================================== */

@media print {
    .mobile-menu-toggle,
    .contact-info-bar {
        display: none !important;
    }

    .site-header {
        position: relative !important;
    }

    .header-container {
        background-color: #ffffff !important;
        box-shadow: none !important;
    }

    .logo-section {
        transform: none !important;
        box-shadow: none !important;
    }
}
