
/* ==============================================
   CIS MOBILE RESPONSIVE SYSTEM
   Breakpoints: 991px (tablet), 768px (phablet), 480px (mobile)
   ============================================== */

/* ======= 1. HAMBURGER BUTTON ======= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    z-index: 1100;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}
.navbar.scrolled .hamburger span {
    background: #ffffff;
}
.hamburger.open span { background: var(--cis-navy) !important; }
.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ======= 2. TABLET BREAKPOINT (≤ 991px) ======= */
@media (max-width: 991px) {

    /* ---- Container ---- */
    .container {
        padding: 0 20px;
    }

    /* ---- Navbar ---- */

    /* Mobile Logo & Hamburger Layout */
    .nav-container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav-logo {
        position: static;
        transform: none;
        display: flex;
        align-items: center;
    }
    .logo-text {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.05rem !important;
        white-space: nowrap;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 100px 32px 40px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
        overflow-y: auto;
        box-shadow: -8px 0 40px rgba(0,0,0,0.3);
    }
    .nav-links.is-open {
        right: 0;
    }
    .nav-links a:not(.btn) {
        color: var(--cis-navy) !important;
        font-size: 1.2rem;
        font-weight: 600;
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid rgba(18,56,103,0.1);
    }
    .nav-links a:not(.btn)::after {
        display: none;
    }
    .nav-links .btn {
        margin-top: 24px;
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 1rem;
    }
    .lang-switcher {
        margin-top: 24px;
        background: rgba(18,56,103,0.08) !important;
        border-color: rgba(18,56,103,0.15) !important;
        width: 100%;
        justify-content: center;
        padding: 6px !important;
    }
    .lang-btn {
        color: var(--cis-navy) !important;
        flex: 1;
        text-align: center;
        padding: 8px 0 !important;
    }

    /* Mobile overlay when menu open */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 1040;
        
    }
    .nav-overlay.is-open {
        display: block;
    }

    /* ---- Hero Slider ---- */
    .hero-category {
        font-size: 0.75rem !important;
        letter-spacing: 1.5px;
    }
    .hero-title {
        font-size: 2.4rem !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
    }
    .hero-desc {
        font-size: 1rem !important;
        line-height: 1.65 !important;
    }
    .btn-sony {
        padding: 13px 28px !important;
        font-size: 0.9rem !important;
    }

    /* ---- Stats Banner ---- */
    .stats-banner {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 24px 20px !important;
    }
    .stat-banner-item h3 {
        font-size: 1.8rem !important;
    }
    .stat-banner-item p {
        font-size: 0.75rem !important;
    }

    /* ---- Bento Grid ---- */
    .bento-grid {
        grid-template-columns: 1fr !important;
    }
    .bento-card {
        height: 280px !important;
    }

    /* ---- Overview Cards ---- */
    .overview-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        margin-top: 40px !important;
    }
    .overview-card {
        padding: 36px 24px !important;
    }

    /* ---- B-card (Bisnis page) ---- */
    .b-card {
        flex-direction: column !important;
    }
    .b-card-img {
        min-height: 260px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(18,56,103,0.07) !important;
    }
    .b-card-content {
        padding: 36px 28px !important;
    }
    .b-card-content h2 {
        font-size: 2rem !important;
    }
    .stat-grid {
        gap: 16px !important;
    }
    .stat-item h4 {
        font-size: 1.6rem !important;
    }

    /* ---- Tentang page ---- */
    .exec-profile {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .exec-img-container {
        position: relative !important;
        top: 0 !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }
    .exec-title h2 {
        font-size: 2.2rem !important;
    }
    .milestone-grid {
        grid-template-columns: 1fr !important;
    }
    .vision-mission {
        grid-template-columns: 1fr !important;
    }

    /* ---- Kontak page ---- */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    .page-header h1 {
        font-size: 2.8rem !important;
    }
}

/* ======= 3. MOBILE BREAKPOINT (≤ 768px) ======= */
@media (max-width: 768px) {

    /* ---- Root / Base ---- */
    html { font-size: 15px; }

    .section {
        padding: 64px 0 !important;
    }

    /* ---- Hero ---- */
    .hero-title {
        font-size: 2rem !important;
    }
    .hero-content {
        padding: 0 8px;
    }

    /* ---- Stats ---- */
    .stats-banner {
        padding: 20px 16px !important;
    }
    .stat-banner-item {
        padding: 0 !important;
    }
    .stat-banner-item h3 {
        font-size: 1.5rem !important;
    }

    /* ---- Overview section ---- */
    .overview-grid {
        grid-template-columns: 1fr !important;
    }
    .section-title { font-size: 2rem !important; }
    .section-subtitle { font-size: 1rem !important; }

    /* ---- Footer ---- */
    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* ---- Bento Section ---- */
    .bento-section { padding: 60px 0 !important; }
    .bento-header h2 { font-size: 2rem !important; }
    .bento-card { height: 240px !important; }
    .bento-label { font-size: 1.5rem !important; }

    /* ---- Business page ---- */
    .b-card-content h2 { font-size: 1.8rem !important; }
    .b-card-content p { font-size: 1rem !important; }

    /* ---- About page ---- */
    .exec-bio p { font-size: 1rem !important; }
    .exec-title h2 { font-size: 1.9rem !important; }
    .exec-title h3 { font-size: 0.95rem !important; }
    .page-header h1 { font-size: 2.2rem !important; }

    /* ---- Lang switcher nav-container fix ---- */
    .nav-logo img { height: 36px; }
}

/* ======= 4. SMALL MOBILE (≤ 480px) ======= */
@media (max-width: 480px) {

    .container { padding: 0 16px; }

    /* ---- Hero ---- */
    .hero-title {
        font-size: 1.75rem !important;
    }
    .hero-category {
        font-size: 0.7rem !important;
    }
    .hero-desc {
        font-size: 0.92rem !important;
    }

    /* ---- Stats banner ---- */
    .stats-banner {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        text-align: center;
    }
    .stat-banner-item h3 { font-size: 2rem !important; }
    .stat-banner-item p { font-size: 0.85rem !important; }

    /* ---- Cards ---- */
    .overview-card { padding: 28px 20px !important; }
    .b-card-content { padding: 28px 20px !important; }
    .b-card-img { min-height: 200px !important; }
    .stat-item h4 { font-size: 1.4rem !important; }

    /* ---- Footer ---- */
    .sony-footer { padding: 60px 0 24px !important; }
    .footer-bottom-links { gap: 12px; }
    .footer-copyright { font-size: 0.75rem; }

    /* ---- Page Header ---- */
    .page-header h1 { font-size: 1.9rem !important; }
    .page-header p { font-size: 0.95rem !important; }

    /* ---- Leadership ---- */
    .exec-img-container { max-width: 260px !important; }
    .exec-title h2 { font-size: 1.7rem !important; }
    .milestone-item h4 { font-size: 1.05rem !important; }

    /* ---- Vision/Mission ---- */
    .overview-card p { font-size: 1rem !important; }
}
