/* File: assets/css/style.css */
/* Tema: Professional Navy & Gold Luxe (FINAL COMPLETE: Scrollbar + Side Layout + Anti-Font Boosting) */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* --- [TAMBAHAN PENTING] RESET AGAR FONT HP TIDAK MEMBESAR SENDIRI --- */
html {
    -webkit-text-size-adjust: 100%; /* KUNCI PERBAIKAN FONT HP */
    text-size-adjust: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) #ffffff;
}

* {
    box-sizing: border-box; 
}

:root {
    /* --- PALET WARNA --- */
    --primary-color: #1a237e; /* Navy Blue */
    --accent-color: #fbc02d;  /* Kuning Emas */
    
    --text-color: #333;       
    --text-light: #666;       
    
    --bg-color: #ffffff;      
    --content-bg: #fff;       
    --border-color: #e0e0e0;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #ffffff; }
::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
    border: 3px solid #ffffff;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--primary-color); }

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- CONTAINER UTAMA --- */
.main-container {
    max-width: 1100px; 
    width: 100%;
    margin: 0 auto;
    padding: 60px;
    background-color: var(--content-bg);
    min-height: 100vh;
    box-shadow: 0 0 25px rgba(0,0,0,0.05);
}

/* --- HOME PAGE HEADER (MODIFIKASI: LOGO SAMPING) --- */
.home-header {
    text-align: center;
    margin-bottom: 50px;
}

.welcome-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}

/* Wrapper Baru: Logo Sebelah Teks */
.brand-wrapper {
    display: flex;             /* Sejajar Horizontal */
    align-items: center;       /* Lurus Vertikal */
    justify-content: center;   /* Posisi Tengah */
    gap: 25px;                 /* Jarak Logo ke Teks */
    margin-bottom: 40px;
}

.brand-logo img {
    width: 60px;               /* Ukuran Logo */
    height: auto;
    display: block;
    object-fit: contain;
}

.brand-text {
    text-align: left;          /* Teks Rata Kiri (Nempel Logo) */
}

.brand-title {
    font-size: 2rem; 
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    color: var(--primary-color);
    letter-spacing: 1px;
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-top: 5px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Gambar Produk Baru */
.product-showcase {
    margin: 30px 0;
}

.product-img {
    max-width: 150px;          /* Batas Lebar Gambar Produk */
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); 
    display: block;
    margin: 0 auto;
}

.brand-desc {
    max-width: 700px; 
    margin: 0 auto 40px auto;
    font-size: 1rem;
    color: var(--text-light);
}

/* --- MENU GRID HOME (CLEAN) --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 0;
    margin-bottom: 60px;
    border-top: none;
    border-bottom: none;
    padding: 20px 0; 
}

.menu-item {
    background: none;
    color: var(--primary-color);
    padding: 15px 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem; 
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item:hover {
    color: var(--accent-color);
    background: none;
}

/* --- HEADER HALAMAN DALAM --- */
.inner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--accent-color); 
}

.logo-btn {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    opacity: 1;
    flex-shrink: 0;
}

.mini-nav {
    display: flex;
    gap: 30px; 
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mini-nav a {
    text-decoration: none;
    color: var(--primary-color); 
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding-bottom: 4px;
    border-bottom: 3px solid transparent;
}

.mini-nav a:hover { color: var(--accent-color); }
.mini-nav a.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color); 
}

/* --- KONTEN HALAMAN --- */
.page-heading {
    text-align: center;
    margin-bottom: 50px;
}
.page-heading h1 {
    display: inline-block;
    border-bottom: 4px solid var(--accent-color);
    padding-bottom: 10px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-size: 2rem;
    color: var(--primary-color);
}
.page-heading p {
    color: var(--text-light);
    margin: 5px 0 0 0;
    font-style: italic;
    font-size: 1.1rem;
}

.content-section {
    background-color: #fff;
    padding: 10px 0;
    margin-bottom: 40px;
    text-align: justify;
    font-size: 1.05rem; 
}
.content-section h2, .content-section h3 {
    margin-top: 35px;
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color); 
    padding-left: 20px;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.content-section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

ul, ol { margin-left: 20px; padding-left: 0; color: var(--text-color); }
li { margin-bottom: 12px; }

/* --- TABEL SOP --- */
.sop-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.sop-table th, .sop-table td {
    padding: 18px; 
    vertical-align: top;
    text-align: left;
    border: 1px solid #e0e0e0;
}
.sop-table th {
    background-color: var(--primary-color);
    color: white;
    width: 25%;
    font-weight: bold;
    border: 1px solid var(--primary-color);
}
.sop-table tr:nth-child(even) { background-color: #f9f9fb; }

/* --- FOOTER --- */
.contact-info {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
}
.contact-info p {
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
}
.contact-info a {
    text-decoration: none;
    color: var(--text-color);
    margin: 0 10px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
}
.contact-info a:hover { color: var(--primary-color); }
.contact-info img {
    width: 20px;
    vertical-align: middle;
    margin-right: 8px;
    filter: grayscale(100%);
}
.contact-info a:hover img { filter: none; }

/* ================================================== 
   MEDIA QUERY MOBILE & TABLET
   ================================================== */

@media (max-width: 992px) {
    .main-container { padding: 40px; }
    .brand-title { font-size: 2.5rem; }
    .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .main-container { 
        padding: 20px;
        box-shadow: none;
    }
    
    /* Logo & Teks kembali menumpuk di HP agar tidak gepeng */
    .brand-wrapper {
        flex-direction: column; 
        text-align: center;
        gap: 15px;
    }
    .brand-text { text-align: center; }
    .brand-title { font-size: 1.8rem; }
    .brand-subtitle { font-size: 0.9rem; }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 0;
        margin-bottom: 40px;
    }
    
    .menu-item {
        font-size: 0.8rem; 
        padding: 15px 5px;
        background-color: transparent;
        border-radius: 0;
    }

    .inner-header {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    .mini-nav { justify-content: center; gap: 15px; }
    .mini-nav a { font-size: 0.8rem; }
    
    .page-heading h1 { font-size: 1.5rem; }
    
    /* --- TABEL SOP ANTI-ZOOM OUT & FIX FONT SIZE (DITAMBAHKAN) --- */
    .sop-table, .sop-table tbody, .sop-table tr, .sop-table td, .sop-table th {
        display: block; width: 100%;
    }
    
    .sop-table tr {
        margin-bottom: 15px;
        border: 1px solid #eee;
    }

    .sop-table th {
        background-color: #283593; 
        color: white; 
        text-align: left;
        padding: 10px 15px;
        
        /* [TAMBAHAN] Memaksa ukuran font header */
        font-size: 0.9rem !important;
    }
    
    .sop-table td {
        text-align: left; 
        padding: 15px; 
        border-top: none; 
        position: relative;
        
        /* [TAMBAHAN] Memaksa ukuran font isi agar tidak membesar sendiri */
        font-size: 0.9rem !important;
        line-height: 1.5;
        max-height: none;
    }
    
    .contact-info { margin-top: 50px; }
}