/* =========================================================
   DSS-iD | HEADER / NAVIGATION
   File: css/header.css
   Dependencies: Bootstrap 5, Font Awesome (optional)
   ========================================================= */

/* Header shell */
.dss-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #edf0f3;
    box-shadow: 0 4px 20px rgba(15, 35, 58, 0.045);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.dss-header,
.dss-header * {
    box-sizing: border-box;
}

.dss-header .container {
    max-width: 1320px;
}

.dss-header .navbar {
    min-height: 82px;
    padding: 0;
}

/* Brand */
.dss-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 35px 0 0;
    padding: 12px 0;
    text-decoration: none;
}

.dss-header .brand-mark {
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #e4c58f;
    background: #142b45;
    border: 1px solid rgba(199, 166, 106, 0.55);
    border-radius: 5px;
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.dss-header .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dss-header .brand-text strong {
    color: #142b45;
    font-family: "Manrope", sans-serif;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
}

.dss-header .brand-text small {
    margin-top: 4px;
    color: #9a8057;
    font-family: "DM Sans", sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

/* Main navigation */
.dss-header .navbar-collapse {
    align-items: center;
}

.dss-header .navbar-nav {
    align-items: center;
    gap: 7px;
}

.dss-header .nav-item {
    position: relative;
}

.dss-header .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 82px;
    padding: 0 15px !important;
    color: #344459 !important;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.22s ease;
}

.dss-header .nav-link:hover,
.dss-header .nav-link:focus,
.dss-header .nav-link.active {
    color: #a7834b !important;
}

.dss-header .nav-link::after {
    position: absolute;
    right: 15px;
    bottom: 20px;
    left: 15px;
    width: auto;
    height: 2px;
    content: "";
    background: #c7a66a;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease;
}

.dss-header .nav-link:hover::after,
.dss-header .nav-link:focus::after,
.dss-header .nav-link.active::after {
    transform: scaleX(1);
}

/* Bootstrap dropdown indicator */
.dss-header .dropdown-toggle::after {
    position: static;
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-top: 0.3em solid currentColor;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    background: none;
    transform: none;
    transition: none;
}

/* Dropdown panel */
.dss-header .dropdown-menu {
    min-width: 245px;
    margin: 0;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(15, 35, 58, 0.12);
}

.dss-header .dropdown-item {
    display: block;
    padding: 11px 13px;
    color: #344459;
    border-radius: 4px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 500;
    white-space: normal;
    transition: color 0.2s ease, background 0.2s ease, padding 0.2s ease;
}

.dss-header .dropdown-item:hover,
.dss-header .dropdown-item:focus {
    padding-left: 18px;
    color: #9b7845;
    background: #f7f4ee;
}

/* Contact button */
.dss-header .btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 21px;
    color: #ffffff !important;
    background: #142b45;
    border: 1px solid #142b45;
    border-radius: 4px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.22s ease, background 0.22s ease,
                border-color 0.22s ease, transform 0.22s ease;
}

.dss-header .btn-contact:hover,
.dss-header .btn-contact:focus {
    color: #142b45 !important;
    background: #c7a66a;
    border-color: #c7a66a;
    transform: translateY(-2px);
}

/* Keyboard accessibility */
.dss-header a:focus-visible,
.dss-header button:focus-visible {
    outline: 3px solid rgba(199, 166, 106, 0.55);
    outline-offset: 3px;
}

/* Tablet and mobile */
@media (max-width: 991.98px) {
    .dss-header .navbar {
        min-height: 72px;
    }

    .dss-header .navbar-brand {
        margin-right: 15px;
        padding: 10px 0;
    }

    .dss-header .navbar-toggler {
        padding: 9px 12px;
        border: 1px solid #e5e9ed;
        border-radius: 4px;
        box-shadow: none !important;
    }

    .dss-header .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(199, 166, 106, 0.18) !important;
    }

    .dss-header .navbar-collapse {
        padding: 10px 0 20px;
        border-top: 1px solid #edf0f3;
    }

    .dss-header .navbar-nav {
        align-items: stretch;
        gap: 0;
    }

    .dss-header .nav-link {
        display: flex;
        justify-content: space-between;
        min-height: 0;
        width: 100%;
        padding: 12px 5px !important;
    }

    .dss-header .nav-link::after {
        display: none;
    }

    .dss-header .dropdown-menu {
        min-width: 0;
        padding: 8px;
        background: #f7f8fa;
        border: 0;
        border-radius: 4px;
        box-shadow: none;
    }

    .dss-header .dropdown-item {
        padding: 11px 15px;
    }

    .dss-header .dropdown-item:hover,
    .dss-header .dropdown-item:focus {
        padding-left: 20px;
    }

    .dss-header .nav-item.ms-lg-3 {
        margin: 10px 0 0 !important;
    }

    .dss-header .btn-contact {
        width: 100%;
        min-height: 46px;
    }
}

/* Small phones */
@media (max-width: 575.98px) {
    .dss-header .brand-mark {
        flex-basis: 41px;
        width: 41px;
        height: 41px;
        font-size: 22px;
    }

    .dss-header .brand-text strong {
        font-size: 21px;
    }

    .dss-header .brand-text small {
        font-size: 7px;
        letter-spacing: 1px;
    }
}


/* Brand logo image - same compact square size as the original mark */
.dss-header .brand-logo {
    display: block;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    padding: 3px;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    border: 1px solid #eef1f4;
    border-radius: 4px;
}

@media (max-width: 575.98px) {
    .dss-header .brand-logo {
        flex-basis: 41px;
        width: 41px;
        height: 41px;
        padding: 3px;
    }
}

/* =====================================
   KBLI DROPDOWN - FIX
===================================== */

.dss-header .layanan-item {
    position: relative;
    display: flex;
    align-items: center;
    list-style: none;
}

.dss-header .layanan-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    width: auto;
    min-height: 82px;
    padding: 0 15px !important;

    color: #344459;
    background: transparent;
    border: none;

    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.dss-header .layanan-toggle:hover,
.dss-header .layanan-toggle[aria-expanded="true"] {
    color: #a7834b;
}

.dss-header .layanan-toggle::after {
    display: none !important;
}

.dss-header .career-chevron {
    font-size: 10px;
    transition: transform .25s ease;
}


/* Dropdown tertutup secara default */
.dss-header .dropdown-menu-luxury {
    position: absolute;
    top: calc(100% - 5px);
    left: 0;
    z-index: 1100;

    display: none;
    width: 255px;
    padding: 9px;

    background: #fff;
    border: 1px solid #edf0f3;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(15, 35, 58, .13);
}

/* Dropdown terbuka */
.dss-header .layanan-item.open .dropdown-menu-luxury {
    display: block;
}

.dss-header .dropdown-menu-luxury a {
    display: block;
    padding: 12px 14px;

    color: #344459;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
}

.dss-header .dropdown-menu-luxury a:hover {
    color: #a7834b;
    background: #f7f4ee;
}

/* Mobile */
@media (max-width: 991.98px) {
    .dss-header .layanan-item {
        display: block;
        width: 100%;
    }

    .dss-header .layanan-toggle {
        display: flex;
        justify-content: space-between;
        width: 100%;
        min-height: 0;
        padding: 12px 5px !important;
    }

    .dss-header .dropdown-menu-luxury {
        position: static;
        width: 100%;
        padding: 8px;
        background: #f7f8fa;
        border: none;
        box-shadow: none;
    }
}
.dss-topbar {
    background: #36D6E6 !important;
    color: #142b45;
    border-bottom: 2px solid #24b9cc;
}

.dss-topbar small {
    color: #142b45;
}

.dss-topbar i {
    color: #142b45;
}

.dss-topbar .btn {
    color: #142b45 !important;
    background: #ffffff;
    border: 1px solid rgba(20,43,69,.12);
}

.dss-topbar .btn:hover {
    color: #ffffff !important;
    background: #142b45;
    border-color: #142b45;
}
/* =====================================
   KBLI DROPDOWN - HOVER DESKTOP
===================================== */

@media (min-width: 992px) {

    /* Buka dropdown saat kursor diarahkan */
    .dss-header .layanan-item:hover .dropdown-menu-luxury,
    .dss-header .layanan-item:focus-within .dropdown-menu-luxury,
    .dss-header .layanan-item.open .dropdown-menu-luxury {
        display: block;
    }

    /* Warna tombol saat hover */
    .dss-header .layanan-item:hover .layanan-toggle {
        color: #a7834b !important;
    }

   
    /* Posisi submenu */
    .dss-header .dropdown-menu-luxury {
        top: 100%;
        left: 0;
        margin-top: 0;
    }
}
/* KBLI ARROW - STATIC LIKE BOOTSTRAP */
.dss-header .layanan-toggle .career-chevron,
.dss-header .layanan-item:hover .career-chevron,
.dss-header .layanan-item.open .career-chevron {
    transform: none !important;
    transition: none !important;
}
/* =====================================================
   DSS-iD MEGA MENU LAYANAN
===================================================== */

.dss-header {
    position: sticky;
    top: 0;
    z-index: 1050;
}

.dss-header .dss-mega-item {
    position: static;
}

.dss-header .dss-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1000px, calc(100vw - 40px));
    margin-top: 10px;
    padding: 0;
    border: 1px solid rgba(20, 43, 69, .08);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(20, 43, 69, .16);
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    display: block;
    transition: opacity .25s ease, visibility .25s ease,
                margin-top .25s ease;
}

.dss-header .dss-mega-item.show .dss-mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.dss-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 30px 28px;
}

.dss-mega-column {
    padding: 0 28px;
}

.dss-mega-column:first-child {
    border-right: 1px solid #e9eef3;
}

.dss-mega-column:last-child {
    padding-right: 10px;
}

.dss-mega-heading {
    margin-bottom: 24px;
}

.dss-mega-heading span {
    color: #36D6E6;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.dss-mega-heading p {
    margin: 7px 0 0;
    color: #65758a;
    font-size: 13px;
}

.dss-service-link {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 19px;
    padding: 10px;
    border-radius: 9px;
    text-decoration: none;
    transition: all .25s ease;
}

.dss-service-link:hover {
    background: #f2fbfc;
    transform: translateX(4px);
}

.dss-service-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #e9f9fb;
    color: #168c9a;
    font-size: 17px;
    transition: all .25s ease;
}

.dss-service-link:hover .dss-service-icon {
    background: #36D6E6;
    color: #142B45;
}

.dss-service-link h6 {
    margin: 0 0 5px;
    color: #142B45;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.dss-service-link p {
    margin: 0;
    color: #718198;
    font-size: 12px;
    line-height: 1.65;
}

.dss-mega-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 35px;
    background: #f3f8fb;
    border-top: 1px solid #e8eef3;
}

.dss-mega-footer strong {
    display: block;
    margin-bottom: 4px;
    color: #142B45;
    font-size: 13px;
}

.dss-mega-footer span {
    color: #718198;
    font-size: 11px;
}

.dss-mega-footer a {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 5px;
    background: #142B45;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: .25s ease;
}

.dss-mega-footer a:hover {
    background: #36D6E6;
    color: #142B45;
}

/* DESKTOP HOVER */
@media (min-width: 992px) {
    .dss-header .dss-mega-item:hover .dss-mega-menu {
        opacity: 1;
        visibility: visible;
        margin-top: 0;
    }
}

/* TABLET & MOBILE */
@media (max-width: 991.98px) {
    .dss-header .dss-mega-item {
        position: relative;
    }

    .dss-header .dss-mega-menu {
        position: static;
        width: 100%;
        transform: none;
        margin: 0;
        border-radius: 8px;
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
    }

    .dss-header .dss-mega-item.show .dss-mega-menu {
        display: block;
        margin: 8px 0 15px;
    }

    .dss-mega-grid {
        grid-template-columns: 1fr;
        padding: 20px 10px;
    }

    .dss-mega-column {
        padding: 0 10px;
    }

    .dss-mega-column:first-child {
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-right: 0;
        border-bottom: 1px solid #e9eef3;
    }

    .dss-mega-column:last-child {
        padding-right: 10px;
    }

    .dss-mega-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }
}

@media (max-width: 575.98px) {
    .dss-service-link {
        gap: 11px;
    }

    .dss-service-icon {
        width: 39px;
        height: 39px;
        font-size: 15px;
    }

    .dss-service-link h6 {
        font-size: 12px;
    }

    .dss-service-link p {
        font-size: 11px;
    }
}
/* =====================================================
   DSS-iD NESTED MEGA MENU
===================================================== */

.dss-header .dss-service-parent {
    position: relative;
}

/* Tombol kategori utama */
.dss-header .dss-service-trigger {
    position: relative;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

/* Konten kategori */
.dss-header .dss-service-content {
    flex: 1;
    min-width: 0;
}

.dss-header .dss-submenu-arrow {
    margin-left: auto;
    padding-left: 5px;
    color: #142B45;
    font-size: 13px;
    transition: .2s ease;
}

/* Hover kategori */
.dss-header .dss-service-parent:hover > .dss-service-trigger,
.dss-header .dss-service-parent.open > .dss-service-trigger {
    background: #f4f8fa;
}

.dss-header .dss-service-parent:hover > .dss-service-trigger h6,
.dss-header .dss-service-parent.open > .dss-service-trigger h6 {
    color: #a80f0f;
}

.dss-header .dss-service-parent:hover .dss-submenu-arrow,
.dss-header .dss-service-parent.open .dss-submenu-arrow {
    color: #b51212;
    transform: translateX(4px);
}

/* SUBMENU TINGKAT KEDUA */
.dss-header .dss-nested-menu {
    position: absolute;
    z-index: 20;
    top: 0;
    left: calc(100% + 10px);

    width: 325px;
    padding: 20px;

    border: 1px solid #e8edf2;
    border-radius: 15px;

    background: #fff;
    box-shadow: 0 18px 45px rgba(20,43,69,.15);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(10px);
    transition: opacity .2s ease,
                visibility .2s ease,
                transform .2s ease;
}

/* Tampilkan submenu */
.dss-header .dss-service-parent:hover > .dss-nested-menu,
.dss-header .dss-service-parent.open > .dss-nested-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

/* Judul submenu */
.dss-header .dss-nested-title {
    margin-bottom: 15px;
    color: #8799b0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
}

/* Pilihan layanan */
.dss-header .dss-nested-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.dss-header .dss-nested-links a {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;

    border: 1px solid #dce5ed;
    border-radius: 10px;

    background: #f8fafc;
    color: #34465d;

    font-size: 12px;
    font-weight: 600;
    text-decoration: none;

    transition: all .2s ease;
}

.dss-header .dss-nested-links a:hover {
    border-color: #36D6E6;
    background: #e9fbfd;
    color: #142B45;
    transform: translateY(-2px);
}

/* Pastikan submenu tidak terpotong */
.dss-header .dss-mega-menu {
    overflow: visible;
}

/* MOBILE */
@media (max-width: 991.98px) {

    .dss-header .dss-nested-menu {
        position: static;
        width: 100%;
        margin: 5px 0 12px;
        padding: 15px;

        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;

        border-radius: 10px;
        box-shadow: none;
        background: #f8fafc;
    }

    .dss-header .dss-service-parent.open > .dss-nested-menu {
        display: block;
    }

    .dss-header .dss-submenu-arrow {
        transition: none;
    }

}