/* ===================================================
   SOLIDTech Clean Navbar — inspired by saribuana.com
   =================================================== */

/* ---- Base ---- */
#solidtech-nav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
}

/* Offset body so content doesn't hide under fixed navbar */
body {
    padding-top: 70px;
}

.sn-inner {
    max-width: 1252px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 16px;
}

/* ---- Logo ---- */
.sn-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.sn-logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

/* ---- Desktop Menu ---- */
.sn-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}
.sn-menu > li {
    position: relative;
}
.sn-menu > li > a {
    display: block;
    padding: 8px 15px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: color .2s;
    white-space: nowrap;
}
.sn-menu > li > a:hover { color: #e00; }
.sn-menu > li.sn-active > a { color: #e00; font-weight: 600; }

/* Dropdown chevron */
.sn-menu > li.sn-has-drop > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: .78rem;
    vertical-align: middle;
}

/* ---- Dropdown ---- */
.sn-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: #fff;
    border-radius: 8px;
    min-width: 230px;
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 9999;
}
.sn-menu > li:hover > .sn-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sn-dropdown > li { position: relative; }
.sn-dropdown > li > a {
    display: block;
    padding: 10px 18px;
    color: #334155;
    font-size: 15px;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.sn-dropdown > li > a:hover { background: #f8fafc; color: #e00; }

/* ---- Sub-dropdown (e.g. Dokumentasi inside SOLID Accounting) ---- */
.sn-subdropdown {
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    border-radius: 8px;
    min-width: 190px;
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 9999;
}
.sn-dropdown > li:hover > .sn-subdropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.sn-dropdown > li.sn-has-sub > a::after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    float: right;
    margin-top: 3px;
    font-size: .82rem;
}
.sn-subdropdown > li > a {
    display: block;
    padding: 10px 18px;
    color: #334155;
    font-size: .93rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sn-subdropdown > li > a:hover { background: #f8fafc; color: #e00; }

/* ---- Right side ---- */
.sn-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- Language Selector ---- */
.sn-lang { position: relative; }
.sn-lang-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
    white-space: nowrap;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.sn-lang-btn:hover { border-color: #e00; box-shadow: 0 0 0 3px rgba(221,0,0,.07); }
.sn-lang-flag { font-size: 1.15rem; line-height: 1; }
.sn-lang-caret {
    font-size: .72rem;
    transition: transform .2s;
    margin-left: 2px;
}
.sn-lang.sn-open .sn-lang-caret { transform: rotate(180deg); }
.sn-lang-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border-radius: 8px;
    min-width: 165px;
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 10000;
}
.sn-lang.sn-open .sn-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sn-lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #334155;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sn-lang-dropdown li a:hover { background: #f8fafc; color: #e00; }
.sn-lang-dropdown .sn-flag { font-size: 1.15rem; }

/* ---- Hamburger ---- */
.sn-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.sn-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.sn-hamburger.sn-hopen span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sn-hamburger.sn-hopen span:nth-child(2) { opacity: 0; }
.sn-hamburger.sn-hopen span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile Nav Overlay ---- */
#sn-mobilenav {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9998;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .3s ease;
}
#sn-mobilenav.sn-mopen {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
}

/* ---- Mobile Menu Items ---- */
.smn-list { list-style: none; margin: 0; padding: 0; }
.smn-list > li { border-bottom: 1px solid #f1f5f9; }
.smn-list > li > a,
.smn-list > li > .smn-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    font-family: inherit;
}
.smn-list > li > a:hover,
.smn-list > li > .smn-toggle:hover { color: #e00; }
.smn-list > li.sn-active > a { color: #e00; font-weight: 600; }

/* Mobile dropdown arrow */
.smn-arrow {
    font-size: .8rem;
    transition: transform .25s;
}
.smn-toggle.sn-dopen .smn-arrow { transform: rotate(180deg); }

/* Mobile sub-menu */
.smn-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    background: #f8fafc;
}
.smn-sub.sn-dopen { max-height: 700px; }
.smn-sub > li { border-bottom: 1px solid #eef2f7; }
.smn-sub > li > a,
.smn-sub > li > .smn-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 12px 34px;
    color: #475569;
    font-size: .97rem;
    text-decoration: none;
    transition: color .15s;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    font-family: inherit;
}
.smn-sub > li > a:hover,
.smn-sub > li > .smn-toggle:hover { color: #e00; }

/* Mobile sub-sub (Dokumentasi level) */
.smn-subsub {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: #f1f5f9;
}
.smn-subsub.sn-dopen { max-height: 200px; }
.smn-subsub > li > a {
    display: block;
    padding: 11px 20px 11px 50px;
    color: #64748b;
    font-size: .93rem;
    text-decoration: none;
    border-bottom: 1px solid #e8ecf0;
    transition: color .15s;
}
.smn-subsub > li > a:hover { color: #e00; }

/* Mobile language section */
.smn-lang-section { padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
.smn-lang-label {
    font-size: .8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 10px;
    font-weight: 600;
}
.smn-lang-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.smn-lang-opts a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    color: #334155;
    font-size: .9rem;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.smn-lang-opts a:hover { border-color: #e00; color: #e00; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .sn-menu      { display: none !important; }
    .sn-lang      { display: none; }
    .sn-hamburger { display: flex !important; }
}
@media (min-width: 992px) {
    .sn-hamburger  { display: none !important; }
    #sn-mobilenav  { display: none !important; }
}

/* ---- Google Translate overrides ---- */
body { top: 0 !important; }
.skiptranslate, .goog-te-banner-frame { display: none !important; }
.goog-tooltip { display: none !important; }
.goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; border: none !important; box-shadow: none !important; }

/* ---- WhatsApp Float Button ---- */
.sn-wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.sn-wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37,211,102,.6);
}
.sn-wa-float svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

/* ---- Flag images ---- */
.sn-flag img,
.sn-lang-flag img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
}

/* Profil Pimpinan Styles */
.director-profile { display: flex; align-items: center; gap: 40px; background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-top: 40px; border-left: 5px solid #e00; }
.director-img-wrap { flex-shrink: 0; width: 220px; text-align: center; }
.director-img-wrap img { width: 100%; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); margin-bottom: 20px; object-fit: cover; }
.director-name { font-size: 22px; font-weight: 700; color: #1e293b; margin-bottom: 5px; }
.director-title { font-size: 18px; font-weight: 600; color: #e00; margin: 0; }
.director-quote { font-size: 20px; font-style: italic; font-weight: 500; color: #334155; line-height: 1.6; margin-bottom: 25px; border-left: 3px solid #e2e8f0; padding-left: 20px; }
.director-desc p { font-size: 16px; color: #475569; line-height: 1.8; margin-bottom: 15px; }
.director-desc p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .director-profile { flex-direction: column; text-align: center; padding: 30px 20px; } .director-quote { border-left: none; padding-left: 0; border-top: 3px solid #e2e8f0; border-bottom: 3px solid #e2e8f0; padding: 15px 0; } }

/* =====================================================
   GLOBAL MOBILE FIXES
   ===================================================== */

/* Prevent horizontal overflow on all pages */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
*, *::before, *::after {
    box-sizing: border-box;
}
img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   PRODUCT HERO SECTIONS (pos-devices, cctv, gps,
   networking, perangkat, barrier-gate, time-attendance)
   ===================================================== */

/* Reduce hero padding on tablets */
@media (max-width: 768px) {
    .pos-hero,
    .cctv-hero,
    .gps-hero,
    .net-hero,
    .bg-hero,
    .ta-hero {
        padding: 60px 0 40px;
    }
}

/* Reduce hero padding & font sizes on mobile */
@media (max-width: 575px) {
    .pos-hero,
    .cctv-hero,
    .gps-hero,
    .net-hero,
    .bg-hero,
    .ta-hero {
        padding: 50px 0 32px;
    }

    /* Reduce hero h1 further on very small screens */
    .pos-hero h1,
    .cctv-hero h1,
    .gps-hero h1,
    .net-hero h1,
    .bg-hero h1,
    .ta-hero h1 {
        font-size: 2.56rem;
        line-height: 1.25;
    }

    /* Reduce section heading h2 */
    .section-heading h2 {
        font-size: 2.4rem;
    }

    /* Shrink device icon (pos-devices / perangkat pages) */
    .pos-device-icon {
        font-size: 6.4rem;
        margin-bottom: 12px;
    }

    /* Reduce device box padding */
    .pos-hero-device-box {
        padding: 24px 16px;
    }

    /* Stack hero stats vertically */
    .pos-hero-stats,
    .gps-stats,
    .net-stats,
    .bg-stats,
    .ta-stats {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
        margin-top: 24px;
        padding-top: 20px;
    }
    .pos-stat {
        text-align: left;
    }
    .pos-stat-num,
    .gps-stat-num,
    .net-stat-num,
    .bg-stat-num,
    .ta-stat-num {
        font-size: 2.24rem;
    }

    /* CTA sections */
    .section-pos-cta h3,
    .section-cctv-cta h3,
    .section-gps-cta h3,
    .section-net-cta h3,
    .section-bg-cta h3,
    .section-ta-cta h3,
    .section-cta h3 {
        font-size: 2.24rem;
    }

    /* pricelist download banner in solid-accounting */
    .pricelist-download-banner {
        padding: 20px 16px;
    }
}

/* Reduce font size even more on very small phones */
@media (max-width: 400px) {
    .pos-hero h1,
    .cctv-hero h1,
    .gps-hero h1,
    .net-hero h1,
    .bg-hero h1,
    .ta-hero h1 {
        font-size: 2.24rem;
    }

    .section-heading h2 {
        font-size: 2.08rem;
    }

    .pos-device-icon {
        font-size: 4.8rem;
    }
}

/* =====================================================
   HOMEPAGE MOBILE FIXES
   ===================================================== */

@media (max-width: 768px) {
    /* Ensure about section images don't overflow */
    .dt_image_block .dt_image_box img {
        max-width: 100%;
        height: auto;
    }

    /* Stats counter section */
    .dt_counter .dt_counter_item {
        margin-bottom: 20px;
    }
}

@media (max-width: 575px) {
    /* Service cards: ensure full-width stack */
    .section-what-offering .dt-col-sm-6 {
        width: 100%;
    }

    /* Reduce oversized text in hero/banner */
    .dt_hero_content h1,
    .dt_banner_content h1 {
        font-size: 2.88rem;
    }
}

/* =====================================================
   NAVBAR OVERLAP FIX
   ===================================================== */

/* Prevent content from hiding behind sticky navbar on mobile */
@media (max-width: 991px) {
    .site-content {
        padding-top: 0;
    }
}
