/*
 * Lifecinema public header (blueprint §2 "Header", §13.2, revision 1.37).
 *
 * A utility rail (announcements, location, tagline) whose lower edge is a strip of film perforations, above a floating glass "dock":
 * logo · navigation · search, language and theme · the sign-in or workspace button. It is Lifecinema's own design and shares no shapes,
 * panels or logo blocks with any sister site. The markup is built in src/View.php (`View::site`); bsnav.min.js and site.js keep driving
 * the sticky state (`.sticked`, `.in`), the dropdowns, the drawer and the "Lainnya / More" overflow, so their class names are unchanged.
 *
 * ≥ 1200 px: rail + dock with the full menu. < 1200 px: a compact dock (logo, search, language/theme from 576 px, menu button) and the drawer.
 * Loaded last on public pages, so it needs no !important beyond the few places that undo template rules.
 */

.lc-header {
    --lc-dock-h: 68px;
    --lc-reserve: 86px;                  /* page space kept free for the header; the header itself is fixed */
    --lc-glass: rgb(21 24 29 / 72%);
    --lc-glass-strong: rgb(21 24 29 / 92%);
    --lc-edge: rgb(255 255 255 / 13%);
    --lc-tint: rgb(255 255 255 / 7%);
    --lc-tint-hover: rgb(255 255 255 / 12%);
    --lc-ink: #f1f3f5;
    --lc-ink-dim: #c4cad2;
    --lc-mark: #ff7378;                  /* the red that reads on dark; white text never sits on it (§13.1) */
    --lc-red: #a20404;
    --lc-red-deep: #800303;
    --lc-shadow: 0 18px 40px -22px rgb(0 0 0 / 75%);
    position: relative;
    z-index: 100;
    height: var(--lc-reserve);
    min-height: 0 !important;
    padding: 0;
    background: none;
}
[data-site-theme="light"] .lc-header {
    --lc-glass: rgb(255 255 255 / 80%);
    --lc-glass-strong: rgb(255 255 255 / 95%);
    --lc-edge: rgb(24 27 33 / 11%);
    --lc-tint: rgb(24 27 33 / 5%);
    --lc-tint-hover: rgb(24 27 33 / 9%);
    --lc-ink: #1f2937;
    --lc-ink-dim: #4b5563;
    --lc-mark: #a20404;
    --lc-shadow: 0 18px 40px -24px rgb(24 27 33 / 45%);
}

/* The header floats over the page; the reserved height above stops content from sliding under it at the top. */
.lc-header__fixed { position: fixed; inset: 0 0 auto 0; z-index: 100; pointer-events: none; }
.lc-header .main-wrapper { max-width: none; padding: 0; margin: 0; }
.lc-header .lc-header__bar {
    display: block !important; position: static !important; width: 100%; height: auto; min-height: 0 !important;
    padding: 0 !important; margin: 0; border: 0; background: none !important; box-shadow: none !important; transform: none !important;
    animation: none !important;
}
.lc-header .lc-header__bar::before, .lc-header .lc-header__bar::after { content: none !important; }

/* ---- Dock ----------------------------------------------------------------------------------------------------------------------- */
.lc-dock {
    position: relative; display: block !important; width: min(1320px, calc(100% - 40px)); height: var(--lc-dock-h); margin: 10px auto 0 !important;
    padding: 0 !important; border: 1px solid var(--lc-edge); border-radius: 999px; pointer-events: auto;
    background: var(--lc-glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: var(--lc-shadow), inset 0 1px 0 rgb(255 255 255 / 8%);
    transition: background-color .25s ease, box-shadow .25s ease, margin .25s ease, height .25s ease;
}
.lc-dock__row { display: flex !important; align-items: center; gap: 18px; height: 100%; padding: 0 10px 0 24px; margin: 0; max-width: none; }
.lc-dock .navbar-brand-tog { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; width: auto; }
.lc-dock .navbar-brand { display: flex; align-items: center; margin: 0; padding: 0; }
.lc-dock .navbar-brand img { height: 42px; width: auto; max-width: none; }
/* The white logo sits on the dark glass, the red-outline logo on the light glass. */
.lc-dock .navbar-brand .logo-display { display: block; }
.lc-dock .navbar-brand .logo-scrolled { display: none; }
[data-site-theme="light"] .lc-dock .navbar-brand .logo-display { display: none; }
[data-site-theme="light"] .lc-dock .navbar-brand .logo-scrolled { display: block; }

/* Scrolled: the dock becomes more solid. */
.lc-header__bar.in .lc-dock { margin-top: 10px !important; background: var(--lc-glass-strong); box-shadow: 0 22px 44px -22px rgb(0 0 0 / 80%), inset 0 1px 0 rgb(255 255 255 / 8%); }
[data-site-theme="light"] .lc-header__bar.in .lc-dock { box-shadow: 0 22px 44px -26px rgb(24 27 33 / 50%); }

/* ---- Navigation ----------------------------------------------------------------------------------------------------------------- */
.lc-dock .navbar-collapse { display: none; }
@media (min-width: 1200px) {
    .lc-dock .navbar-collapse { display: flex !important; flex: 1 1 auto; align-items: center; gap: 14px; min-width: 0; padding: 0; margin: 0; background: none; }
    .lc-dock .navbar-toggler, .lc-dock .site-preferences-mobile, .lc-dock .site-search-phone { display: none !important; }
}
.lc-dock .navbar-nav.navbar-mobile {
    display: flex !important; flex: 1 1 auto; flex-direction: row; align-items: center; justify-content: center; gap: 2px;
    min-width: 0; margin: 0; padding: 0; list-style: none;
}
.lc-dock .navbar-nav .nav-item { position: relative; margin: 0; border-radius: 0; }
.lc-dock .navbar .navbar-nav .nav-item .nav-link,
.lc-dock .navbar-nav .nav-item .nav-link {
    position: relative; display: inline-flex; align-items: center; height: 44px; line-height: 1; padding: 0 16px; margin: 0 !important;
    border-radius: 999px; color: var(--lc-ink); font-size: 15px; font-weight: 600; letter-spacing: .005em; white-space: nowrap; text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}
.lc-dock .navbar-nav .nav-item .nav-link i { margin-left: 7px; font-size: 10px; opacity: .65; transition: transform .2s ease; }
.lc-dock .navbar-nav .nav-item:hover > .nav-link,
.lc-dock .navbar-nav .nav-item:focus-within > .nav-link { background: var(--lc-tint-hover); color: var(--lc-ink); }
.lc-dock .navbar-nav .nav-item.dropdown:hover > .nav-link i { transform: rotate(45deg); }
/* The current page: a short red "playhead" under the label. */
.lc-dock .navbar-nav .nav-item.active > .nav-link::after {
    content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--lc-mark);
}
.lc-dock .navbar-nav .nav-item.active > .nav-link { background: var(--lc-tint); }

/* Just above the breakpoint the items sit a little closer, so the whole menu fits in Indonesian instead of sending FAQ to "Lainnya". */
@media (min-width: 1200px) and (max-width: 1299.98px) {
    .lc-dock__row { gap: 12px; padding-left: 20px; }
    .lc-dock .navbar-nav .nav-item .nav-link { padding: 0 11px; font-size: 14.5px; }
    .lc-dock .navbar-nav .nav-item .nav-link i { margin-left: 5px; }
}

/* Dropdown (Divisi, Lainnya / More): a small glass card under the item. */
.lc-dock .navbar-nav .nav-item.dropdown > .navbar-nav {
    position: absolute; top: calc(100% + 16px); left: 50%; z-index: 5; display: flex; flex-direction: column; gap: 2px; width: auto; min-width: 220px; padding: 8px;
    margin: 0; list-style: none; border: 1px solid var(--lc-edge); border-radius: 22px; background: var(--lc-glass-strong);
    -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--lc-shadow);
    clip: auto; clip-path: none; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.lc-dock .navbar-nav .nav-item.dropdown > .navbar-nav::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; } /* keeps hover alive across the gap */
.lc-dock .navbar-nav .nav-item.dropdown:hover > .navbar-nav,
.lc-dock .navbar-nav .nav-item.dropdown:focus-within > .navbar-nav,
.lc-dock .navbar-nav .nav-item.dropdown > .navbar-nav.in {
    clip: auto; clip-path: none; opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s;
}
.lc-dock .navbar-nav .nav-item.dropdown > .navbar-nav .nav-item .nav-link { width: 100%; height: 42px; padding: 0 16px; border-radius: 14px; font-weight: 600; justify-content: flex-start; }
.lc-dock .navbar-nav .nav-item.dropdown > .navbar-nav .nav-item.active > .nav-link::after { left: 16px; bottom: 7px; margin-left: 0; width: 14px; }
.lc-dock .public-nav-more[hidden] { display: none !important; }

/* ---- Controls: search, language, theme ------------------------------------------------------------------------------------------- */
.lc-dock .site-preferences { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 2px; height: 46px; padding: 3px; margin: 0; border: 1px solid var(--lc-edge); border-radius: 999px; background: var(--lc-tint); box-shadow: none; }
.lc-dock .site-control {
    display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; min-width: 38px; height: 38px; padding: 0 10px; margin: 0; border: 0; border-radius: 999px;
    background: transparent; color: var(--lc-ink); font-size: 14px; font-weight: 700; line-height: 1; box-shadow: none; cursor: pointer;
    transition: background-color .18s ease, color .18s ease, box-shadow .15s ease, translate .15s ease;
}
.lc-dock .site-control:hover, .lc-dock .site-control:focus-visible { background: var(--lc-tint-hover); color: var(--lc-ink); }
.lc-dock .site-control i { font-size: 15px; }
.lc-dock .site-search-kbd {
    display: none; flex: 0 0 auto; padding: 3px 7px; border: 1px solid var(--lc-edge); border-radius: 7px; background: var(--lc-tint); color: var(--lc-ink-dim);
    font-family: inherit; font-size: 10.5px; font-weight: 700; line-height: 1; letter-spacing: .04em; white-space: nowrap;
}
@media (min-width: 1380px) { .lc-dock .site-search-kbd { display: inline-block; } .lc-dock .site-search-control { padding: 0 10px 0 13px; } }

/* ---- Sign in / Workspace -------------------------------------------------------------------------------------------------------- */
.lc-cta {
    display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; height: 46px; padding: 0 22px 0 18px; border-radius: 999px;
    background: var(--lc-red); color: #fff !important; font-size: 15px; font-weight: 700; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
    box-shadow: 0 12px 26px -14px rgb(162 4 4 / 95%), inset 0 1px 0 rgb(255 255 255 / 22%);
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.lc-cta i { font-size: 14px; color: #fff; }
.lc-cta:hover, .lc-cta:focus-visible { background: var(--lc-red-deep); color: #fff !important; transform: translateY(-1px); } /* buttons never take the red link hover (§13.1) */
.lc-cta:active { background: #650202; transform: none; }

/* ---- Compact dock (< 1200 px): logo, search, language/theme, menu button ------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .lc-header { --lc-dock-h: 60px; --lc-reserve: 76px; }
    .lc-dock .navbar-collapse { display: none !important; }   /* Bootstrap would show it from 992 px; the menu lives in the drawer below 1200 px */
    .lc-dock { width: calc(100% - 20px); margin: 8px auto 0 !important; border-radius: 22px; }
    .lc-header__bar.in .lc-dock { margin-top: 8px !important; }
    .lc-dock__row { padding: 0 8px 0 16px; gap: 10px; }
    .lc-dock .navbar-brand-tog { flex: 1 1 auto; width: 100%; }
    .lc-dock .navbar-brand { margin-right: auto; }
    .lc-dock .navbar-brand img { height: 38px; }
    .lc-dock .site-preferences-desktop { display: none !important; }
    .lc-dock .site-preferences-mobile { display: none; height: 42px; margin-left: 0; }
    .lc-dock .site-search-phone { display: none; }
}
@media (min-width: 576px) and (max-width: 1199.98px) {
    .lc-dock .site-preferences-mobile { display: inline-flex !important; }
}
@media (max-width: 575.98px) {
    .lc-dock .site-search-phone {
        display: inline-flex !important; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 1px solid var(--lc-edge);
        border-radius: 50%; background: var(--lc-tint); color: var(--lc-ink); font-size: 15px;
    }
}
.lc-dock .navbar-toggler {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; margin: 0; padding: 0;
    border: 1px solid var(--lc-edge); border-radius: 50%; background: var(--lc-tint); cursor: pointer;
}
.lc-dock .navbar-toggler:hover { background: var(--lc-tint-hover); }
/* Three short bars centred in the round button; they fold into a cross while the drawer is open (the stock bsnav spring animation, rescaled). */
.lc-dock .navbar-toggler.toggler-spring .navbar-toggler-icon,
.lc-dock .navbar-toggler.toggler-spring .navbar-toggler-icon::before,
.lc-dock .navbar-toggler.toggler-spring .navbar-toggler-icon::after { width: 20px; height: 2px; border-radius: 2px; background-color: var(--lc-ink); }
.lc-dock .navbar-toggler.toggler-spring .navbar-toggler-icon { top: 50%; left: 50%; margin: -1px 0 0 -10px; }
.lc-dock .navbar-toggler.toggler-spring .navbar-toggler-icon::before { top: -6px; }
.lc-dock .navbar-toggler.toggler-spring .navbar-toggler-icon::after { top: 6px; }
.lc-dock .navbar-toggler.toggler-spring.active .navbar-toggler-icon { background-color: transparent !important; }
.lc-dock .navbar-toggler.toggler-spring.active .navbar-toggler-icon::before { top: 0; transform: rotate(45deg); }
.lc-dock .navbar-toggler.toggler-spring.active .navbar-toggler-icon::after { top: 0; transform: rotate(-45deg); }

/* ---- Drawer (below 1200 px) in the dark theme ----------------------------------------------------------------------------------- */
/* The drawer sits inside the header element, and its panel is dark in the dark theme at every width, so its links and its preference pill are light at every width. */
[data-site-theme="dark"] .bsnav-mobile .navbar .navbar-nav .nav-item > .nav-link { color: #f3f4f5 !important; }
[data-site-theme="dark"] .bsnav-mobile .navbar .navbar-nav .nav-item.active > .nav-link,
[data-site-theme="dark"] .bsnav-mobile .navbar .navbar-nav .nav-item > .nav-link[aria-current="page"] { color: #fff !important; }
[data-site-theme="dark"] .bsnav-mobile .navbar .navbar-nav .navbar-nav .nav-item > .nav-link { color: #c4cad2 !important; }
[data-site-theme="dark"] .bsnav-mobile .site-preferences-drawer { border-color: rgb(255 255 255 / 14%); background: rgb(27 31 37 / 86%); }
[data-site-theme="dark"] .bsnav-mobile .site-preferences-drawer .site-control { color: #f1f3f5; }

/* Short screens (a phone held sideways): the drawer scrolls, so its contact card must follow the links instead of staying pinned over them. */
@media (max-height: 560px) {
    .bsnav-mobile .navbar { display: flex; flex-direction: column; }
    .bsnav-mobile .navbar > .navbar-nav { order: 1; }
    .bsnav-mobile .mobile-menu-company { position: static !important; order: 2; margin: 18px 0 28px; inset: auto; }
}

/* ---- Keyboard focus: a white ring edged in brand red (§13.5) ------------------------------------------------------------------- */
.lc-header :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 1px; box-shadow: 0 0 0 4px var(--lc-red); }


/* ---- Print: no header ----------------------------------------------------------------------------------------------------------- */
@media print { .lc-header { display: none !important; } }
