/* =====================================================================
   NAZHAK STUDIO — DESIGN SYSTEM
   Token warna, tipografi, komponen dasar, header & footer situs.
   Semua modul (marketplace, booking, kasir, kalkulator, menu digital)
   memetakan variabelnya ke token di sini (lihat nzk-app-shell.css).
   ===================================================================== */

:root {
    /* Brand */
    --nzk-ink:            #111111;
    --nzk-primary:        #2F3E34;
    --nzk-primary-hover:  #24302A;
    --nzk-primary-soft:   #EEF2EF;
    --nzk-primary-line:   #CBD6CE;
    --nzk-accent:         #A8875A;
    --nzk-accent-soft:    #F6F1E9;

    /* Netral */
    --nzk-bg:             #F7F7F5;
    --nzk-bg-2:           #EFEFEB;
    --nzk-surface:        #FFFFFF;
    --nzk-border:         #E4E4DF;
    --nzk-border-strong:  #CFCFC8;
    --nzk-text:           #161616;
    --nzk-text-2:         #3A3A37;
    --nzk-muted:          #6B6B66;
    --nzk-faint:          #9C9C95;

    /* Status */
    --nzk-success:        #2E7D4F;
    --nzk-success-soft:   #EAF4EE;
    --nzk-warning:        #A86B12;
    --nzk-warning-soft:   #FBF3E4;
    --nzk-danger:         #B3261E;
    --nzk-danger-soft:    #FBECEA;
    --nzk-info:           #2D5B8A;
    --nzk-info-soft:      #EBF1F7;

    /* Tipografi */
    --nzk-font:           'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nzk-font-display:   'Instrument Serif', Georgia, 'Times New Roman', serif;

    /* Bentuk */
    --nzk-r-sm:   6px;
    --nzk-r-md:   10px;
    --nzk-r-lg:   14px;
    --nzk-r-pill: 999px;

    --nzk-shadow-xs: 0 1px 2px rgba(17, 17, 17, .05);
    --nzk-shadow-sm: 0 1px 3px rgba(17, 17, 17, .06), 0 1px 2px rgba(17, 17, 17, .04);
    --nzk-shadow-md: 0 6px 18px rgba(17, 17, 17, .07), 0 2px 6px rgba(17, 17, 17, .04);
    --nzk-shadow-lg: 0 18px 44px rgba(17, 17, 17, .12);

    --nzk-ease: cubic-bezier(.2, .7, .2, 1);
    --nzk-header-h: 72px;
    --nzk-container: 1200px;
}

/* ---------------------------------------------------------------------
   Dasar
--------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
html.nzk-lock, html.nzk-lock body { overflow: hidden; }

body.nzk-theme {
    margin: 0;
    background: var(--nzk-bg);
    color: var(--nzk-text);
    font-family: var(--nzk-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nzk-theme *, body.nzk-theme *::before, body.nzk-theme *::after { box-sizing: border-box; }
body.nzk-theme img { max-width: 100%; height: auto; }
body.nzk-theme a { color: inherit; }
body.nzk-theme :focus-visible { outline: 2px solid var(--nzk-primary); outline-offset: 2px; }

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

.nzk-container {
    width: 100%;
    max-width: var(--nzk-container);
    margin: 0 auto;
    padding: 0 24px;
}
.nzk-container--narrow { max-width: 960px; }

/* ---------------------------------------------------------------------
   Tombol
--------------------------------------------------------------------- */
.nzk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--nzk-r-sm);
    font-family: var(--nzk-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .18s var(--nzk-ease), color .18s var(--nzk-ease), border-color .18s var(--nzk-ease), box-shadow .18s var(--nzk-ease);
    white-space: nowrap;
}
.nzk-btn:disabled { opacity: .5; cursor: not-allowed; }
.nzk-btn--primary { background: var(--nzk-ink); color: #fff !important; }
.nzk-btn--primary:hover:not(:disabled) { background: var(--nzk-primary); }
.nzk-btn--ghost { background: var(--nzk-surface); color: var(--nzk-text) !important; border-color: var(--nzk-border-strong); }
.nzk-btn--ghost:hover:not(:disabled) { border-color: var(--nzk-ink); }
.nzk-btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.nzk-btn--block { width: 100%; }

.nzk-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: var(--nzk-r-sm);
    background: transparent;
    color: var(--nzk-text);
    font-size: 17px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s var(--nzk-ease);
}
.nzk-icon-btn:hover { background: var(--nzk-bg-2); }

/* ---------------------------------------------------------------------
   Komponen umum
--------------------------------------------------------------------- */
.nzk-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nzk-muted);
}

.nzk-card {
    background: var(--nzk-surface);
    border: 1px solid var(--nzk-border);
    border-radius: var(--nzk-r-lg);
    padding: 28px;
    margin-bottom: 20px;
}
.nzk-card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--nzk-ink); }
.nzk-muted { color: var(--nzk-muted); }

.nzk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--nzk-r-pill);
    font-size: 12px;
    font-weight: 600;
    background: var(--nzk-bg-2);
    color: var(--nzk-text-2);
    white-space: nowrap;
}
.nzk-badge--success, .nzk-badge--approved { background: var(--nzk-success-soft); color: var(--nzk-success); }
.nzk-badge--unpaid  { background: var(--nzk-warning-soft); color: var(--nzk-warning); }
.nzk-badge--rejected { background: var(--nzk-danger-soft); color: var(--nzk-danger); }
.nzk-badge--paid    { background: var(--nzk-primary-soft); color: var(--nzk-primary); }

.nzk-alert {
    padding: 14px 18px;
    border-radius: var(--nzk-r-md);
    border: 1px solid;
    margin-bottom: 20px;
    font-size: 14px;
}
.nzk-alert--success { background: var(--nzk-success-soft); border-color: #BFDCCB; color: var(--nzk-success); }
.nzk-alert--error   { background: var(--nzk-danger-soft); border-color: #F0C4BF; color: var(--nzk-danger); }

/* Kartu pesan (login diperlukan / tidak ditemukan) */
.nzk-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62vh;
    padding: 56px 20px;
}
.nzk-notice__card {
    width: 100%;
    max-width: 480px;
    padding: 44px 36px;
    text-align: center;
    background: var(--nzk-surface);
    border: 1px solid var(--nzk-border);
    border-radius: var(--nzk-r-lg);
    box-shadow: var(--nzk-shadow-sm);
}
.nzk-notice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--nzk-primary-soft);
    color: var(--nzk-primary);
    font-size: 22px;
}
.nzk-notice__title {
    margin: 0 0 10px;
    font-family: var(--nzk-font-display);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--nzk-ink);
}
.nzk-notice__desc { margin: 0 0 28px; color: var(--nzk-muted); font-size: 15px; }

/* Formulir */
.nzk-form--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.nzk-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--nzk-text-2); }
.nzk-field--full, .nzk-form__actions { grid-column: 1 / -1; }
.nzk-field input, .nzk-field textarea, .nzk-field select, .nzk-copy input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--nzk-border-strong);
    border-radius: var(--nzk-r-sm);
    background: var(--nzk-surface);
    color: var(--nzk-text);
    font: 400 14px/1.4 var(--nzk-font);
    transition: border-color .15s, box-shadow .15s;
}
.nzk-field input:focus, .nzk-field textarea:focus, .nzk-copy input:focus {
    outline: none;
    border-color: var(--nzk-primary);
    box-shadow: 0 0 0 3px var(--nzk-primary-soft);
}
.nzk-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.nzk-check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--nzk-primary); }

/* Tabel */
.nzk-table-wrap { overflow-x: auto; }
.nzk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nzk-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--nzk-border);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--nzk-muted);
}
.nzk-table td { padding: 12px; border-bottom: 1px solid var(--nzk-border); vertical-align: middle; }
.nzk-table tr:last-child td { border-bottom: 0; }

/* Statistik */
.nzk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.nzk-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    background: var(--nzk-surface);
    border: 1px solid var(--nzk-border);
    border-radius: var(--nzk-r-md);
}
.nzk-stat__label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--nzk-muted); }
.nzk-stat__value { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; color: var(--nzk-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nzk-stat__sub { font-size: 12px; color: var(--nzk-faint); }
.nzk-stat--accent { background: var(--nzk-ink); border-color: var(--nzk-ink); }
.nzk-stat--accent .nzk-stat__label, .nzk-stat--accent .nzk-stat__sub { color: rgba(255, 255, 255, .65); }
.nzk-stat--accent .nzk-stat__value { color: #fff; }

/* ---------------------------------------------------------------------
   Halaman konten
--------------------------------------------------------------------- */
.nzk-page { padding: 56px 0 88px; }
.nzk-page-head { margin-bottom: 36px; }
.nzk-page-head__title {
    margin: 8px 0 0;
    font-family: var(--nzk-font-display);
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.01em;
    color: var(--nzk-ink);
}
.nzk-page-head__desc { margin-top: 14px; max-width: 680px; color: var(--nzk-muted); font-size: 17px; }
.nzk-content { font-size: 16px; color: var(--nzk-text-2); }
.nzk-content > * { max-width: 100%; }
.nzk-content h2, .nzk-content h3 { color: var(--nzk-ink); line-height: 1.25; }
.nzk-content a { color: var(--nzk-primary); text-underline-offset: 3px; }
.nzk-single__thumb { margin: 0 0 32px; }
.nzk-single__thumb img { border-radius: var(--nzk-r-lg); }

.nzk-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.nzk-post-card { background: var(--nzk-surface); border: 1px solid var(--nzk-border); border-radius: var(--nzk-r-lg); overflow: hidden; }
.nzk-post-card__thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.nzk-post-card__body { padding: 20px 22px 24px; }
.nzk-post-card__title { margin: 6px 0 8px; font-size: 19px; line-height: 1.3; }
.nzk-post-card__title a { text-decoration: none; }
.nzk-post-card__body p { margin: 0; color: var(--nzk-muted); font-size: 14px; }
.nzk-pagination { margin-top: 40px; }
.nzk-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nzk-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--nzk-border); border-radius: var(--nzk-r-sm);
    background: var(--nzk-surface); text-decoration: none; font-size: 14px;
}
.nzk-pagination .page-numbers.current { background: var(--nzk-ink); border-color: var(--nzk-ink); color: #fff; }

/* ---------------------------------------------------------------------
   Bar pengumuman
--------------------------------------------------------------------- */
.nzk-announce {
    background: var(--nzk-ink);
    color: #fff;
    font-size: 13px;
    text-align: center;
    padding: 9px 0;
    letter-spacing: .01em;
}
.nzk-announce a { color: #fff; text-decoration: none; }
.nzk-announce a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nzk-announce i { margin-left: 6px; font-size: 11px; }

/* ---------------------------------------------------------------------
   Header situs
--------------------------------------------------------------------- */
.nzk-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--nzk-ease), box-shadow .2s var(--nzk-ease);
}
body.admin-bar .nzk-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nzk-header { top: 0; } }
.nzk-header.is-scrolled { border-bottom-color: var(--nzk-border); box-shadow: var(--nzk-shadow-xs); }

.nzk-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--nzk-header-h);
}
.nzk-header__brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nzk-header__logo { display: block; height: 34px; width: auto; max-width: 180px; object-fit: contain; }
.nzk-logo-text { font-family: var(--nzk-font-display); font-size: 26px; color: var(--nzk-ink); line-height: 1; }

.nzk-header__nav { flex: 1; min-width: 0; }
.nzk-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nzk-menu > li { position: relative; }
.nzk-menu a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--nzk-r-sm);
    color: var(--nzk-text-2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s, background .15s;
}
.nzk-menu a:hover { color: var(--nzk-ink); background: var(--nzk-bg); }
.nzk-menu .current-menu-item > a, .nzk-menu .current_page_item > a { color: var(--nzk-ink); font-weight: 600; }
.nzk-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--nzk-surface);
    border: 1px solid var(--nzk-border);
    border-radius: var(--nzk-r-md);
    box-shadow: var(--nzk-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.nzk-menu li:hover > .sub-menu, .nzk-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nzk-menu .sub-menu a { display: flex; height: auto; padding: 10px 12px; }

.nzk-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nzk-header__cta { margin-left: 8px; }
.nzk-header__toggle { display: none; }

.nzk-cart-count {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--nzk-r-pill);
    background: var(--nzk-ink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.nzk-cart-count[hidden] { display: none; }

.nzk-search { border-top: 1px solid var(--nzk-border); background: var(--nzk-surface); }
.nzk-search[hidden] { display: none; }
.nzk-search__form { display: flex; align-items: center; gap: 12px; height: 64px; color: var(--nzk-muted); }
.nzk-search__form input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    background: transparent;
    font: 500 16px var(--nzk-font);
    color: var(--nzk-text);
}
.nzk-search__form input[type="search"]:focus { outline: none; }

/* Drawer seluler */
.nzk-drawer { position: fixed; inset: 0; z-index: 1000; }
.nzk-drawer[hidden] { display: none; }
.nzk-drawer__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .4); opacity: 0; transition: opacity .2s var(--nzk-ease); }
.nzk-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(360px, 88vw);
    background: var(--nzk-surface);
    box-shadow: var(--nzk-shadow-lg);
    transform: translateX(100%);
    transition: transform .22s var(--nzk-ease);
}
.nzk-drawer.is-open .nzk-drawer__backdrop { opacity: 1; }
.nzk-drawer.is-open .nzk-drawer__panel { transform: none; }
.nzk-drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--nzk-header-h); padding: 0 16px 0 24px; border-bottom: 1px solid var(--nzk-border); }
.nzk-drawer__menu { margin: 0; padding: 12px; list-style: none; overflow-y: auto; }
.nzk-drawer__menu a { display: block; padding: 14px 12px; border-radius: var(--nzk-r-sm); color: var(--nzk-text); font-size: 16px; font-weight: 500; text-decoration: none; }
.nzk-drawer__menu a:hover, .nzk-drawer__menu .current-menu-item > a { background: var(--nzk-bg); }
.nzk-drawer__menu .sub-menu { margin: 0; padding: 0 0 0 12px; list-style: none; }
.nzk-drawer__foot { display: grid; gap: 10px; margin-top: auto; padding: 20px 24px 28px; border-top: 1px solid var(--nzk-border); }

@media (max-width: 1024px) {
    .nzk-header__nav, .nzk-header__cta { display: none; }
    .nzk-header__toggle { display: inline-flex; }
    .nzk-header__inner { gap: 16px; }
}
@media (max-width: 600px) {
    :root { --nzk-header-h: 64px; }
    .nzk-container { padding: 0 16px; }
    .nzk-header__logo { height: 28px; }
}

/* ---------------------------------------------------------------------
   Footer situs
--------------------------------------------------------------------- */
.nzk-footer { background: var(--nzk-ink); color: rgba(255, 255, 255, .72); font-size: 14px; }
.nzk-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .15s; }
.nzk-footer a:hover { color: #fff; }
.nzk-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 56px;
}
.nzk-footer__logo { display: inline-block; }
.nzk-footer__logo-img { display: block; height: 34px; width: auto; filter: brightness(0) invert(1); }
.nzk-footer__logo .nzk-logo-text { color: #fff; }
.nzk-footer__tagline {
    max-width: 340px;
    margin: 20px 0 24px;
    font-family: var(--nzk-font-display);
    font-size: 22px;
    line-height: 1.3;
    color: #fff;
}
.nzk-footer__contact { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.nzk-footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.nzk-footer__contact i { width: 16px; margin-top: 4px; color: rgba(255, 255, 255, .5); }
.nzk-footer__social { display: flex; gap: 8px; }
.nzk-footer__social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
}
.nzk-footer__social a:hover { border-color: #fff; }
.nzk-footer__title {
    margin: 0 0 18px;
    font-family: var(--nzk-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
}
.nzk-footer__col ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nzk-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.nzk-footer__bottom .nzk-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}
.nzk-footer__menu { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }

@media (max-width: 960px) {
    .nzk-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
    .nzk-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .nzk-footer__grid { grid-template-columns: 1fr; padding-top: 56px; }
    .nzk-form--grid { grid-template-columns: 1fr; }
    .nzk-card { padding: 22px 18px; }
    .nzk-page { padding: 40px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.nzk-badge--lead { background: var(--nzk-info-soft); color: var(--nzk-info); }
