/* =========================================================
   SIDARSA — GLOBAL DESIGN SYSTEM (Desa Sarwodadi)
   Tema: Dominasi Biru Telur Asin | Responsive Mobile First
   File: assets/css/style.css
   ========================================================= */

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #f0fdfd;
    --secondary: #0284c7;
    --secondary-dark: #0369a1;
    --secondary-light: #e0f2fe;
    --bg-body: #f4fbfb;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #ccfbf1;
    --orange-bg: #e0f7f6;
    --orange-icon: #0d9488;
    --green-bg: #e0f2fe;
    --green-icon: #0284c7;
    --pink-bg: #fff1f2;
    --pink-icon: #e11d48;
    --radius-lg: 20px;
    --radius-md: 13px;
    --shadow-soft: 0 8px 24px rgba(13, 148, 136, .07);
    --shadow-card: 0 5px 18px rgba(13, 148, 136, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.container {
    width: 100%;
    max-width: 1440px !important;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

/* Header — struktur dan identitas tetap */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
}
.navbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.logo-image { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.logo-content { min-width: 0; flex: 1; }
.logo-title { font-size: 1.55rem; font-weight: 850; letter-spacing: -.6px; line-height: 1.1; }
.logo-orange { color: #0d9488; }
.logo-green { color: #0284c7; }
.logo-subtitle {
    width: 100%; margin-top: 3px; font-size: .78rem; font-weight: 500;
    line-height: 1.25; color: var(--text-muted); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 768px) {
    .logo-subtitle { font-size: .85rem; white-space: normal; overflow: visible; text-overflow: clip; }
}
.main-menu { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.menu-link {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 17px; font-size: .94rem; font-weight: 650; color: var(--text-dark);
    background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.menu-link:hover { color: var(--secondary); background: var(--secondary-light); border-color: #7dd3fc; }
.menu-link.active { color: #fff; background: var(--secondary); border-color: var(--secondary); }
.menu-link.active:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); }

/* Main & footer */
.site-main { flex: 1 0 auto; padding-top: 28px; padding-bottom: 56px; }
.site-footer {
    flex-shrink: 0; margin-top: auto; padding: 20px 0;
    background: #fff; border-top: 1px solid var(--border-color);
}
.footer-content {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; font-size: .9rem; font-weight: 500; color: var(--text-muted);
}

/* Bottom navigation mobile — layout tetap lima menu */
.bottom-nav {
    display: none; position: fixed; right: 0; bottom: 0; left: 0; z-index: 9999;
    height: 64px; align-items: center; justify-content: space-around;
    background: rgba(255,255,255,.97); border-top: 1px solid var(--border-color);
    box-shadow: 0 -5px 20px rgba(13, 148, 136, .08); backdrop-filter: blur(12px);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 20%; height: 100%; gap: 2px; font-size: 11px; font-weight: 650;
    color: #64748b; transition: color .2s ease;
}
.bottom-nav-item i { font-size: 18px; margin-bottom: 1px; }
.bottom-nav-item.active { color: var(--primary); }

@media (max-width: 992px) {
    .container { padding-left: 20px !important; padding-right: 20px !important; }
}
@media (max-width: 768px) {
    .container { padding-left: 15px !important; padding-right: 15px !important; }
    .navbar { min-height: 64px; gap: 10px; }
    .logo { gap: 8px; }
    .logo-image { width: 36px; height: 36px; }
    .logo-title { font-size: 1.15rem; }
    .logo-subtitle { font-size: .56rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .main-menu { display: none; }
    .bottom-nav { display: flex; }
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .site-main { padding-top: 16px; padding-bottom: 24px; }
    .site-footer { padding-bottom: 78px; }
    .footer-content { flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
}
@media (max-width: 380px) {
    .logo { gap: 6px; }
    .logo-image { width: 30px; height: 30px; }
    .logo-title { font-size: 1rem; }
    .logo-subtitle { font-size: .49rem; }
    .bottom-nav { height: 60px; }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}