/*
 * Derik Tata header — reference-matched layout.
 * Entirely scoped under #derikTataHeaderShell to avoid collisions with legacy CSS.
 */
#derikTataHeaderShell {
    --dth-navy: #1C39FF;
    --dth-blue: #1C39FF;
    --dth-text: #071a3a;
    --dth-pill: #edf4ff;
    position: relative;
    z-index: 9999;
    width: 100%;
    color: var(--dth-text);
    font-family: "Open Sans", Arial, sans-serif;
}
#derikTataHeaderShell,
#derikTataHeaderShell * { box-sizing: border-box; }
#derikTataHeaderShell a { text-decoration: none; }
#derikTataHeaderShell .dth-info-bar {
    min-height: 48px;
    width: 100%;
    padding: 0 3.8%;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    column-gap: 28px;
    color: #f7f9ff;
    background: var(--dth-navy);
    border-bottom: 1px solid rgba(255,255,255,.16);
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: .1px;
}
#derikTataHeaderShell .dth-info-left,
#derikTataHeaderShell .dth-info-right {
    display: flex;
    align-items: center;
    gap: 13px;
    white-space: nowrap;
}
#derikTataHeaderShell .dth-info-left { justify-self: start; }
#derikTataHeaderShell .dth-info-left > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
#derikTataHeaderShell .dth-info-left .fa-map-marker { font-size: 15px; }
#derikTataHeaderShell .dth-info-center {
    justify-self: center;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}
#derikTataHeaderShell .dth-info-right { justify-self: end; gap: 13px; }
#derikTataHeaderShell .dth-info-right a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f7f9ff;
    transition: color .2s ease;
}
#derikTataHeaderShell .dth-info-right a:hover { color: #a9c8ff; }
#derikTataHeaderShell .dth-info-right i { font-size: 13px; }
#derikTataHeaderShell .dth-info-divider { color: rgba(255,255,255,.5); }

#derikTataHeaderShell .dth-main-header {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
#derikTataHeaderShell .dth-header-pill {
    min-height: 76px;
    margin: 0 13px;
    padding: 0 42px 0 48px;
    display: grid;
    grid-template-columns: minmax(235px, 1fr) auto minmax(330px, 1fr);
    align-items: center;
    gap: 28px;
    background: linear-gradient(110deg, #eaf2ff 0%, #f7faff 48%, #e8f1ff 100%);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 7px 22px rgba(7, 28, 65, 0.333);
}
#derikTataHeaderShell .dth-logo {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-width: 0;
}
#derikTataHeaderShell .dth-logo img {
    display: block;
    width: 265px;
    max-width: 100%;
    max-height: 60px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}
#derikTataHeaderShell .dth-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.8vw, 48px);
    white-space: nowrap;
}
#derikTataHeaderShell .dth-desktop-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 0;
    color: #0a1730;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    transition: color .2s ease;
}
#derikTataHeaderShell .dth-desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: var(--dth-blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s ease;
}
#derikTataHeaderShell .dth-desktop-nav a:hover { color: #0758d8; }
#derikTataHeaderShell .dth-desktop-nav a:hover::after { transform: scaleX(1); }
#derikTataHeaderShell .dth-desktop-nav .fa-angle-down { font-size: 13px; }
#derikTataHeaderShell .dth-header-actions {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 20px;
    min-width: 0;
}
#derikTataHeaderShell .dth-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 200px;
    min-height: 46px;
    padding: 0 24px;
    color: #fff;
    background: var(--dth-blue);
    border: 1px solid var(--dth-blue);
    border-radius: 999px;
    box-shadow: 0 5px 12px rgba(7,88,247,.12);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
#derikTataHeaderShell .dth-cta:hover {
    color: #fff;
    background: #0348d0;
    box-shadow: 0 8px 18px rgba(7,88,247,.22);
    transform: translateY(-1px);
}
#derikTataHeaderShell .dth-cta i { font-size: 14px; transition: transform .2s ease; }
#derikTataHeaderShell .dth-cta:hover i { transform: translateX(3px); }
#derikTataHeaderShell .dth-icon-button {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #09234d;
    background: #dce9fc;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
#derikTataHeaderShell .dth-icon-button:hover,
#derikTataHeaderShell .dth-icon-button:focus {
    color: #fff;
    background: var(--dth-blue);
    transform: translateY(-1px);
    outline: none;
}
#derikTataHeaderShell #dthSearchToggle .fa-search { font-size: 22px; }
#derikTataHeaderShell .dth-menu-button { flex-direction: column; gap: 5px; }
#derikTataHeaderShell .dth-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease;
}
#derikTataHeaderShell .dth-search-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% - 4px);
    right: 86px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(440px, calc(100% - 30px));
    padding: 13px;
    background: #fff;
    border: 1px solid #e0e8f5;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(5,25,60,.18);
}
#derikTataHeaderShell .dth-search-panel[hidden],
#derikTataHeaderShell .dth-mobile-panel[hidden] { display: none !important; }
#derikTataHeaderShell .dth-search-panel label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
#derikTataHeaderShell .dth-search-panel input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    color: #0a1730;
    background: #f6f8fc;
    border: 1px solid #dce4f0;
    border-radius: 8px;
    box-shadow: none;
    font-size: 14px;
}
#derikTataHeaderShell .dth-search-panel button {
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--dth-blue);
    border: 0;
    border-radius: 8px;
}
#derikTataHeaderShell .dth-mobile-panel {
    position: absolute;
    z-index: 21;
    top: calc(100% - 4px);
    right: 26px;
    display: flex;
    flex-direction: column;
    width: min(320px, calc(100% - 30px));
    padding: 10px;
    background: #fff;
    border: 1px solid #e1e9f6;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(5,25,60,.2);
}
#derikTataHeaderShell .dth-mobile-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    color: #0a1730;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}
#derikTataHeaderShell .dth-mobile-panel a:hover { color: #0758d8; background: #f0f5ff; }
#derikTataHeaderShell .dth-mobile-panel .dth-mobile-group-link {
    margin-top: 5px;
    color: #0758d8;
    border-top: 1px solid #e7edf7;
}
@media (max-width: 1400px) {
    #derikTataHeaderShell .dth-header-pill {
        grid-template-columns: minmax(190px, .8fr) auto minmax(285px, .9fr);
        padding-right: 28px;
        padding-left: 32px;
        gap: 22px;
    }
    #derikTataHeaderShell .dth-logo img { width: 230px; }
    #derikTataHeaderShell .dth-desktop-nav { gap: clamp(14px, 1.8vw, 28px); }
    #derikTataHeaderShell .dth-desktop-nav a { font-size: 13px; }
    #derikTataHeaderShell .dth-header-actions { gap: 12px; }
    #derikTataHeaderShell .dth-cta { min-width: 190px; padding: 0 19px; }
    #derikTataHeaderShell .dth-icon-button { width: 52px; height: 52px; flex-basis: 52px; }
}
@media (max-width: 1100px) {
    #derikTataHeaderShell .dth-info-bar {
        grid-template-columns: auto 1fr;
        padding-right: 24px;
        padding-left: 24px;
        gap: 10px 18px;
    }
    #derikTataHeaderShell .dth-info-center { display: none; }
    #derikTataHeaderShell .dth-info-right { justify-self: end; }
    #derikTataHeaderShell .dth-header-pill {
        min-height: 86px;
        grid-template-columns: minmax(170px, 1fr) auto;
        padding: 0 25px;
        border-radius: 0 0 30px 30px;
    }
    #derikTataHeaderShell .dth-desktop-nav { display: none; }
    #derikTataHeaderShell .dth-header-actions { gap: 12px; }
    #derikTataHeaderShell .dth-cta { min-height: 50px; }
    #derikTataHeaderShell .dth-icon-button { width: 50px; height: 50px; flex-basis: 50px; }
}
@media (max-width: 650px) {
    #derikTataHeaderShell .dth-info-bar {
        min-height: 39px;
        display: flex;
        justify-content: center;
        padding: 6px 10px;
        font-size: 10px;
    }
    #derikTataHeaderShell .dth-info-left { gap: 7px; }
    #derikTataHeaderShell .dth-info-right { display: none; }
    #derikTataHeaderShell .dth-header-pill {
        min-height: 76px;
        margin: 0 6px;
        padding: 0 12px 0 17px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        border-radius: 0 0 24px 24px;
    }
    #derikTataHeaderShell .dth-logo img { width: 180px; max-width: 100%; max-height: 46px; }
    #derikTataHeaderShell .dth-header-actions { gap: 8px; }
    #derikTataHeaderShell .dth-cta { display: none; }
    #derikTataHeaderShell .dth-icon-button { width: 43px; height: 43px; flex-basis: 43px; }
    #derikTataHeaderShell #dthSearchToggle .fa-search { font-size: 18px; }
    #derikTataHeaderShell .dth-menu-button { gap: 4px; }
    #derikTataHeaderShell .dth-menu-button span { width: 18px; }
    #derikTataHeaderShell .dth-search-panel { right: 10px; }
    #derikTataHeaderShell .dth-mobile-panel { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    #derikTataHeaderShell *, #derikTataHeaderShell *::before, #derikTataHeaderShell *::after {
        transition: none !important;
        animation: none !important;
    }
}


/* Sticky behavior: keep the information strip and main navigation together. */
#derikTataHeaderShell {
    position: sticky;
    top: 0;
    z-index: 99999;
}

/* Avoid an ancestor's overflow/transform rules breaking sticky positioning. */
html {
    scroll-padding-top: 150px;
}
@media (max-width: 650px) {
    html {
        scroll-padding-top: 115px;
    }
}

#derikTataHeaderShell .dth-top-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f7f9ff;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

#derikTataHeaderShell .dth-top-email:hover {
    color: #a9c8ff;
}

#derikTataHeaderShell .dth-top-email i {
    font-size: 14px;
}

/* Call dropdown — isolated Derik Tata styles */
#derikTataHeaderShell .dth-call-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

#derikTataHeaderShell .dth-call-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #f7f9ff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

#derikTataHeaderShell .dth-call-trigger:hover {
    color: #a9c8ff;
}

#derikTataHeaderShell .dth-call-arrow {
    transition: transform 0.2s ease;
}

#derikTataHeaderShell .dth-call-open .dth-call-arrow {
    transform: rotate(180deg);
}

#derikTataHeaderShell .dth-call-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100000;
    width: 245px;
    padding: 7px;
    background: #fff;
    border: 1px solid #e2e9f4;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 20, 50, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease,
                visibility 0.2s ease;
}

#derikTataHeaderShell .dth-call-open .dth-call-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#derikTataHeaderShell .dth-call-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #102b58;
    border-radius: 8px;
    text-decoration: none;
}

#derikTataHeaderShell .dth-call-menu a:hover {
    background: #edf4ff;
}

#derikTataHeaderShell .dth-call-menu a > i {
    font-size: 18px;
    color: #0758f7;
}

#derikTataHeaderShell .dth-call-menu span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#derikTataHeaderShell .dth-call-menu strong {
    font-size: 13px;
}

#derikTataHeaderShell .dth-call-menu small {
    color: #667085;
    font-size: 11px;
}

/* =========================================
   DERIK TATA - SOCIAL MEDIA DROPDOWN
========================================= */

#derikTataHeaderShell .dth-social-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

#derikTataHeaderShell .dth-social-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #f7f9ff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

#derikTataHeaderShell .dth-social-trigger:hover {
    color: #a9c8ff;
}

#derikTataHeaderShell .dth-social-arrow {
    transition: transform 0.2s ease;
}

#derikTataHeaderShell .dth-social-open .dth-social-arrow {
    transform: rotate(180deg);
}

/* Dropdown panel */
#derikTataHeaderShell .dth-social-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100000;
    width: 150px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e9f4;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 20, 50, 0.18);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

#derikTataHeaderShell .dth-social-open .dth-social-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Regional sections */
#derikTataHeaderShell .dth-social-region {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 5px 2px;
}

#derikTataHeaderShell .dth-social-region > strong {
    color: #102b58;
    font-size: 13px;
    font-weight: 700;
}

/* Social icon row */
#derikTataHeaderShell .dth-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

#derikTataHeaderShell .dth-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf4ff;
    color: #0758f7;
    font-size: 15px;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

#derikTataHeaderShell .dth-social-links a:hover {
    background: #0758f7;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Divider between regions */
#derikTataHeaderShell .dth-social-divider {
    height: 1px;
    margin: 10px 0;
    background: #e8edf5;
}

/* Mobile positioning */
@media (max-width: 480px) {
    #derikTataHeaderShell .dth-social-menu {
        right: 0;
        width: 235px;
    }

    #derikTataHeaderShell .dth-social-trigger {
        gap: 5px;
        font-size: 11px;
    }
}
