/* =============================================================
   SABAH LAW SOCIETY - SHELL STYLES
   Professional redesign: deep navy + gold palette.
   Header, navigation, breadcrumb and footer.
   ============================================================= */

:root {
    --sls-brand-deep: #0a1628;
    --sls-brand-navy: #0e2347;
    --sls-brand-blue: #1a4f8c;
    --sls-brand-cyan: #22a8df;
    --sls-gold: #c9a84c;
    --sls-gold-dark: #a8882a;
    --sls-gold-light: #fbf3dc;
    --sls-brand-light: #f5f7fa;
    --sls-brand-border: #dde4ee;
    --sls-brand-text: #0e2347;
    --sls-brand-muted: #546580;
    --sls-brand-white: #ffffff;
}

/* ================================================================
   HEADER
   Unified single-bar design with logo, nav, and actions.
   ================================================================ */

/* Gold bar across the top */
.sls-header::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--sls-gold) 0%,
        #e8cc80 50%,
        var(--sls-gold) 100%
    );
}

.sls-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--sls-brand-deep);
    transition: box-shadow 0.3s ease;
}

.sls-header.sls-header-scrolled {
    box-shadow: 0 4px 24px rgba(10, 22, 40, 0.3);
}

.sls-header-inner {
    position: relative;
}

.sls-header-inner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 12px;
}

/* ===================== LEFT: LOGO ===================== */
.sls-header-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sls-header-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.sls-header-logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.sls-header-title {
    line-height: 1.15;
}

.sls-header-name {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    color: var(--sls-brand-white);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.sls-header-sub {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    color: var(--sls-gold);
    font-size: 11px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ===================== RIGHT: NAV + ACTIONS ===================== */
.sls-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    justify-content: flex-end;
}

/* ===================== DESKTOP NAVIGATION ===================== */
.sls-header-nav {
    display: flex;
    align-items: center;
}

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

.sls-nav-item {
    position: relative;
}

.sls-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    min-height: 72px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}

.sls-nav-link i {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.2s ease;
}

.sls-nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--sls-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.sls-nav-item:hover > .sls-nav-link,
.sls-nav-item.active > .sls-nav-link {
    color: var(--sls-brand-white);
}

.sls-nav-item:hover > .sls-nav-link::after,
.sls-nav-item.active > .sls-nav-link::after {
    transform: scaleX(1);
}

.sls-nav-item:hover > .sls-nav-link i {
    transform: rotate(180deg);
    color: var(--sls-gold);
}

.sls-nav-item.active > .sls-nav-link {
    color: var(--sls-gold);
}

/* ===================== DESKTOP DROPDOWNS ===================== */
.sls-nav-expand {
    display: none;
}

.sls-nav-dropdown,
.sls-nav-sub-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: 8px 0;
    background: var(--sls-brand-white);
    border: 1px solid var(--sls-brand-border);
    border-top: 3px solid var(--sls-gold);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 20px 48px rgba(10, 22, 40, 0.18);
    z-index: 1001;
}

.sls-nav-sub-dropdown {
    top: -8px;
    left: calc(100% + 4px);
    border-radius: 8px;
    border-top: 3px solid var(--sls-gold);
}

.sls-nav-item:hover > .sls-nav-dropdown,
.sls-nav-dropdown-group:hover > .sls-nav-sub-dropdown {
    display: block;
    animation: slsFadeIn 0.18s ease;
}

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

.sls-nav-sub-link {
    display: block;
    padding: 10px 18px;
    color: var(--sls-brand-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.sls-nav-sub-link:hover {
    background: var(--sls-gold-light);
    color: var(--sls-gold-dark);
    border-left-color: var(--sls-gold);
}

.sls-nav-dropdown-group {
    position: relative;
}

.sls-nav-dropdown-group > .sls-nav-sub-link::after {
    content: "›";
    float: right;
    font-size: 16px;
    color: var(--sls-brand-muted);
    line-height: 1.2;
}

.sls-nav-dropdown-group:hover > .sls-nav-sub-link {
    background: var(--sls-gold-light);
    color: var(--sls-gold-dark);
    border-left-color: var(--sls-gold);
}

/* ===================== HEADER ACTIONS ===================== */
.sls-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Language Dropdown */
.sls-lang-dropdown {
    position: relative;
}

.sls-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 7px 6px 7px 8px;
    min-height: 36px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 4px;
    background: rgba(201, 168, 76, 0.07);
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.22s ease;
}

.sls-lang-btn:hover {
    background: rgba(201, 168, 76, 0.16);
    border-color: var(--sls-gold);
    color: var(--sls-brand-white);
}

.sls-lang-btn i {
    font-size: 14px;
}

.sls-lang-btn .icofont-rounded-down {
    font-size: 8px;
    transition: transform 0.22s ease;
}

.sls-lang-dropdown.open .icofont-rounded-down {
    transform: rotate(180deg);
}

.sls-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 170px;
    padding: 6px 0;
    border: 1px solid var(--sls-brand-border);
    border-radius: 6px;
    background: var(--sls-brand-white);
    box-shadow: 0 16px 32px rgba(10, 22, 40, 0.18);
    z-index: 1002;
}

.sls-lang-dropdown.open .sls-lang-menu {
    display: block;
}

.sls-lang-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: var(--sls-brand-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s;
}

.sls-lang-menu a:hover {
    background: var(--sls-gold-light);
    color: var(--sls-gold-dark);
}

.lang-label {
    font-size: 13px;
}

.lang-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--sls-brand-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--sls-brand-light);
}

/* Login Button */
.sls-header-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    min-height: 36px;
    border-radius: 4px;
    background: var(--sls-gold);
    color: var(--sls-brand-deep) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.22s ease;
}

.sls-header-login:hover {
    background: #b8943f;
    color: var(--sls-brand-deep) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(168, 136, 42, 0.35);
}

.sls-header-login i {
    font-size: 14px;
}

/* ===================== MEMBER DROPDOWN ===================== */
.sls-member-dropdown {
    position: relative;
}

.sls-member-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    min-height: 36px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 4px;
    background: rgba(201, 168, 76, 0.07);
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
}

.sls-member-btn:hover {
    background: rgba(201, 168, 76, 0.16);
    border-color: var(--sls-gold);
    color: var(--sls-brand-white);
}

.sls-member-btn i {
    font-size: 14px;
}

.sls-member-btn .icofont-rounded-down {
    font-size: 8px;
    transition: transform 0.22s ease;
}

.sls-member-dropdown.open .icofont-rounded-down {
    transform: rotate(180deg);
}

.sls-member-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    padding: 6px 0;
    border: 1px solid var(--sls-brand-border);
    border-radius: 6px;
    background: var(--sls-brand-white);
    box-shadow: 0 16px 32px rgba(10, 22, 40, 0.18);
    z-index: 1002;
}

.sls-member-dropdown.open .sls-member-menu {
    display: block;
    animation: slsFadeIn 0.18s ease;
}

.sls-member-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--sls-brand-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s;
    border-left: 3px solid transparent;
}

.sls-member-menu-link:hover {
    background: var(--sls-gold-light);
    color: var(--sls-gold-dark);
    border-left-color: var(--sls-gold);
}

.sls-member-menu-link i {
    font-size: 16px;
    width: 18px;
    text-align: center;
    color: var(--sls-brand-muted);
}

.sls-member-menu-link:hover i {
    color: var(--sls-gold-dark);
}

.sls-member-menu-logout {
    border-top: 1px solid var(--sls-brand-border);
    margin-top: 4px;
    padding-top: 12px;
}

.sls-member-menu-logout i {
    color: #dc2626;
}

.sls-member-menu-logout:hover i {
    color: #b91c1c;
}

/* ===================== HAMBURGER (Mobile) ===================== */
.sls-mobile-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    transition: background 0.2s;
}

.sls-mobile-toggle:hover {
    background: rgba(201, 168, 76, 0.12);
}

.sls-hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--sls-brand-white);
    transition: all 0.25s ease;
}

/* ===================== BREADCRUMB ===================== */
.sls-breadcrumb {
    padding: 13px 0;
    background: var(--sls-brand-light);
    border-bottom: 1px solid var(--sls-brand-border);
}

.sls-breadcrumb a,
.sls-breadcrumb span {
    font-size: 13px;
}

.sls-breadcrumb a {
    color: var(--sls-brand-navy);
    text-decoration: none;
}

.sls-breadcrumb a:hover {
    color: var(--sls-gold-dark);
}

.sls-breadcrumb span.separator,
.sls-breadcrumb span.current {
    color: var(--sls-brand-muted);
}

/* ===================== FOOTER ===================== */
.sls-footer {
    position: relative;
    background: var(--sls-brand-deep);
    color: rgba(255, 255, 255, 0.75);
}

/* Gold stripe at top */
.sls-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--sls-gold) 0%,
        #e8cc80 50%,
        var(--sls-gold) 100%
    );
}

.sls-footer-main {
    padding: 72px 0 52px;
}

/* Brand */
.sls-footer-branding {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    text-decoration: none;
}

.sls-footer-branding img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    opacity: 0.9;
}

.sls-footer-branding span {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--sls-brand-white);
    line-height: 1.2;
}

.sls-footer-branding em {
    font-style: italic;
    color: var(--sls-gold);
}

.sls-footer-tagline {
    max-width: 340px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.7;
}

/* Social Icons */
.sls-footer-social {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sls-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.22s ease;
}

.sls-footer-social a:hover {
    background: var(--sls-gold);
    border-color: var(--sls-gold);
    color: var(--sls-brand-deep);
    transform: translateY(-2px);
}

/* Footer column headings */
.sls-footer-links h4,
.sls-footer-contact h4 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    font-family: "Playfair Display", Georgia, serif;
    color: var(--sls-brand-white);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

/* Footer quick links */
.sls-footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sls-footer-links li {
    margin-bottom: 11px;
}

.sls-footer-links li::before {
    content: "›";
    color: var(--sls-gold);
    margin-right: 8px;
    font-size: 15px;
}

.sls-footer-links a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.18s;
}

.sls-footer-links a:hover {
    color: var(--sls-gold);
}

/* Footer contact */
.sls-footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sls-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}

.sls-footer-contact i {
    width: 18px;
    margin-top: 2px;
    color: var(--sls-gold);
    text-align: center;
    flex-shrink: 0;
}

.sls-footer-contact a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: color 0.18s;
}

.sls-footer-contact a:hover {
    color: var(--sls-gold);
}

/* Footer bottom bar */
.sls-footer-bottom {
    padding: 22px 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sls-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
}

/* ================================================================
   MOBILE SLIDE-IN PANEL
   ================================================================ */

.sls-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sls-mobile-overlay.active {
    display: block;
    opacity: 1;
}

.sls-mobile-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--sls-brand-deep);
    z-index: 2001;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.sls-mobile-panel.open {
    right: 0;
}

.sls-mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sls-mobile-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.sls-mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 4px;
    background: transparent;
    color: var(--sls-gold);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.sls-mobile-close:hover {
    background: rgba(201, 168, 76, 0.15);
}

/* Mobile Nav List */
.sls-mobile-nav {
    flex: 1 1 auto;
    overflow-y: auto;
}

.sls-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0 0 20px;
}

.sls-mobile-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sls-mobile-link {
    display: block;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
}

.sls-mobile-link:hover {
    color: var(--sls-gold);
}

.sls-mobile-link-row {
    display: flex;
    align-items: center;
}

.sls-mobile-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 52px;
    background: none;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--sls-gold);
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.sls-mobile-expand:hover {
    background: rgba(201, 168, 76, 0.1);
}

/* Sub menu levels */
.sls-mobile-sub,
.sls-mobile-deep {
    display: none;
    background: rgba(255, 255, 255, 0.03);
}

.sls-mobile-sub.open,
.sls-mobile-deep.open {
    display: block;
}

.sls-mobile-sub-link,
.sls-mobile-deep-link {
    display: block;
    padding: 12px 20px 12px 32px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.15s;
}

.sls-mobile-deep-link {
    padding-left: 48px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.sls-mobile-sub-link:hover,
.sls-mobile-deep-link:hover {
    color: var(--sls-gold);
    border-left-color: var(--sls-gold);
    background: rgba(201, 168, 76, 0.05);
}

.sls-mobile-sub-group .sls-mobile-sub-link {
    padding-left: 32px;
}

.sls-mobile-sub-group .sls-mobile-link-row .sls-mobile-expand {
    height: 46px;
}

/* Login button in mobile */
.sls-mobile-login {
    margin-top: 12px;
    border-bottom: none;
}

.sls-mobile-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 20px;
    padding: 14px;
    border-radius: 6px;
    background: var(--sls-gold);
    color: var(--sls-brand-deep) !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.22s;
}

.sls-mobile-link-btn:hover {
    background: #b8943f;
}

/* Mobile panel footer */
.sls-mobile-panel-footer {
    padding: 15px 10px 75px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sls-mobile-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sls-mobile-lang a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.sls-mobile-lang a:hover,
.sls-mobile-lang a.active {
    color: var(--sls-gold);
}

.sls-mobile-lang-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 13px;
}

/* ===================== RESPONSIVE ===================== */

/* Large screens - tighten nav spacing */
@media (max-width: 1199px) {
    .sls-nav-link {
        padding: 0 9px;
        font-size: 10px;
    }

    .sls-header-name {
        font-size: 16px;
    }

    .sls-header-sub {
        font-size: 10px;
    }
}

/* Tablet - collapse to mobile */
@media (max-width: 991px) {
    .sls-header-inner .container {
        min-height: 62px;
    }

    .sls-header-logo img {
        width: 44px;
        height: 44px;
    }

    .sls-header-name {
        font-size: 15px;
    }

    .sls-header-sub {
        display: none;
    }

    /* Hide desktop nav & actions */
    .sls-header-nav,
    .sls-header-actions {
        display: none;
    }

    /* Show hamburger */
    .sls-mobile-toggle {
        display: flex;
    }

    .sls-footer-main {
        padding: 48px 0 34px;
    }
}

@media (max-width: 575px) {
    .sls-header-inner .container {
        min-height: 56px;
        gap: 8px;
    }

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

    .sls-header-logo img {
        width: 38px;
        height: 38px;
    }

    .sls-header-name {
        font-size: 14px;
    }

    .sls-footer-branding span {
        font-size: 19px;
    }

    .sls-mobile-panel {
        width: 100%;
        max-width: 100vw;
        right: -100%;
    }
}
