
/* ============================================================
   Kajaawa Global Header
   One consistent header across theme/page/CPT templates.
   ============================================================ */

:root {
    --kgh-green: #078b0b;
    --kgh-active: #07953f;
    --kgh-text: #141414;
    --kgh-border: #eeeeee;
    --kgh-max: 1280px;
}


/*
 * Hide only the actual theme header containers we know about.
 * IMPORTANT: do not hide generic <header>, .header-wrapper, .header-top,
 * .header-bottom, or page-builder wrappers, because some homepage layouts
 * place hero/about content inside those containers.
 */
body > #header-wrapper,
body > #header,
body > .dt-header-tpl,
body .wrapper > #header-wrapper,
body .wrapper > #header,
body .page-wrapper > #header-wrapper,
body .page-wrapper > #header,
body .dt-sc-header-top-bar,
body .dt-header-menu-wrapper {
    display: none !important;
}

#kajaawa-global-header,
#kajaawa-global-header * {
    box-sizing: border-box;
}

#kajaawa-global-header {
    width: 100%;
    position: relative;
    z-index: 99990;
    background: #fff;
    font-family: inherit;
    line-height: 1.4;
    clear: both;
}

.kgh-inner {
    width: min(calc(100% - 40px), var(--kgh-max));
    margin: 0 auto;
}

.kgh-topbar {
    min-height: 38px;
    background: var(--kgh-green);
    color: #fff;
}

.kgh-topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
}

.kgh-contact-list {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.kgh-contact-link,
.kgh-contact-link:visited {
    color: #fff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.kgh-contact-link:hover {
    color: #fff !important;
    opacity: .86;
}

.kgh-contact-icon {
    font-size: 15px;
    line-height: 1;
}

.kgh-wa {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
}

.kgh-whatsapp-svg {
    width: 18px;
    height: 18px;
    display: block;
    overflow: visible;
}

.kgh-mainbar {
    background: #fff;
    border-bottom: 1px solid var(--kgh-border);
}

.kgh-mainbar-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.kgh-brand,
.kgh-brand:visited {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    flex: 0 0 auto;
}

.kgh-logo {
    width: auto;
    height: 50px;
    max-width: 270px;
    object-fit: contain;
    display: block;
}

.kgh-logo-text {
    display: none;
    color: #0da14b;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1;
}

.kgh-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.kgh-nav-link,
.kgh-nav-link:visited {
    color: var(--kgh-text) !important;
    text-decoration: none !important;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .2px;
    padding: 14px 0;
    position: relative;
    transition: color .18s ease;
}

.kgh-nav-link:hover,
.kgh-nav-link.is-active {
    color: var(--kgh-active) !important;
}

.kgh-home-icon {
    font-size: 17px;
    margin-right: 4px;
    position: relative;
    top: 1px;
}

.kgh-toggle {
    width: 44px;
    height: 44px;
    appearance: none;
    border: 0;
    border-radius: 6px;
    background: transparent;
    padding: 8px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.kgh-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #151515;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.kgh-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.kgh-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.kgh-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* WordPress admin bar: do not overlap it. */
body.admin-bar #kajaawa-global-header {
    margin-top: 0;
}

@media (max-width: 782px) {
    .kgh-inner {
        width: min(calc(100% - 28px), var(--kgh-max));
    }

    .kgh-topbar {
        padding: 7px 0;
    }

    .kgh-topbar-inner {
        min-height: 30px;
    }

    .kgh-contact-list {
        width: 100%;
        gap: 5px 14px;
    }

    .kgh-contact-link {
        font-size: 12px;
    }

    .kgh-contact-link:nth-child(3) {
        display: none;
    }

    .kgh-mainbar-inner {
        min-height: 74px;
        position: relative;
    }

    .kgh-logo {
        height: 42px;
        max-width: 210px;
    }

    .kgh-logo-text {
        font-size: 31px;
    }

    .kgh-toggle {
        display: flex;
    }

    .kgh-nav {
        display: none;
        position: absolute;
        left: -14px;
        right: -14px;
        top: 100%;
        z-index: 99999;
        background: #fff;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        box-shadow: 0 12px 24px rgba(0,0,0,.08);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 7px 14px 12px;
    }

    .kgh-nav.is-open {
        display: flex;
    }

    .kgh-nav-link,
    .kgh-nav-link:visited {
        display: block;
        padding: 15px 12px;
        border-bottom: 1px solid #f1f1f1;
        font-size: 15px;
    }

    .kgh-nav-link:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 480px) {
    .kgh-contact-list {
        justify-content: center;
    }

    .kgh-contact-link {
        font-size: 11px;
    }

    .kgh-contact-link:first-child span:last-child {
        font-size: 0;
    }

    .kgh-contact-link:first-child span:last-child::after {
        content: "Call: +91-6033114867";
        font-size: 11px;
    }

    .kgh-contact-link:nth-child(2) span:last-child {
        font-size: 0;
    }

    .kgh-contact-link:nth-child(2) span:last-child::after {
        content: "WhatsApp";
        font-size: 11px;
    }
}


/* ============================================================
   Tours archive spacing fix
   The custom /tours/ template starts its eyebrow flush against
   the header edge, which clips the first line slightly.
   This applies ONLY to the exact /tours/ listing page.
   ============================================================ */
body.kgh-tours-index #main,
body.kgh-tours-index main,
body.kgh-tours-index .site-main,
body.kgh-tours-index .main-content,
body.kgh-tours-index .content-wrapper {
    padding-top: 16px !important;
}

/* If the archive hero/title is the first child, keep a minimum top gap. */
body.kgh-tours-index #kajaawa-global-header + * {
    margin-top: 0 !important;
}

@media (max-width: 782px) {
    body.kgh-tours-index #main,
    body.kgh-tours-index main,
    body.kgh-tours-index .site-main,
    body.kgh-tours-index .main-content,
    body.kgh-tours-index .content-wrapper {
        padding-top: 12px !important;
    }
}
