/*
Theme Name:   Cuanki Kang Adi
Theme URI:    https://cuankikangadi.com
Description:  Child theme of BlogHash Pro — custom homepage for Cuanki Kang Adi
Author:       Cuanki Kang Adi
Template:     bloghash-pro
Version:      1.0.0
Text Domain:  cuankikangadi
*/

/* Child theme CSS — homepage styles ada di assets/css/home.css */

/*
 * BlogHash tetap memuat layout globalnya karena child theme masih memakai
 * parent tersebut. Batasi reset ini ke situs CKA supaya homepage tidak ikut
 * mewarisi lebar/sidebar parent, tanpa mengubah halaman aplikasi POS/Admin.
 */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.cka-site,
body.cka-site * {
    box-sizing: border-box;
}

body.cka-site {
    margin: 0;
    padding: 0;
}

body.home.cka-site #primary,
body.home.cka-site .site-main,
body.home.cka-site .content-area,
body.home.cka-site .entry-content,
body.home.cka-site #cka-home {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body.home.cka-site #primary,
body.home.cka-site #cka-home {
    overflow-x: hidden;
}

/* Jangan biarkan aturan sidebar/layout BlogHash menyisakan kolom kosong. */
body.home.cka-site .sidebar,
body.home.cka-site .widget-area,
body.home.cka-site .bloghash-sidebar {
    display: none;
}

.cka-site {
    --cka-ink: #1c1917;
    --cka-muted: #716b65;
    --cka-orange: #e85d2a;
    --cka-cream: #fffaf3;
    background: var(--cka-cream);
}

.cka-site-header {
    position: relative;
    z-index: 20;
    background: rgba(255, 250, 243, .96);
    border-bottom: 1px solid rgba(28, 25, 23, .08);
}

.cka-site-header-inner,
.cka-footer-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.cka-site-header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cka-site-brand,
.cka-footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cka-ink);
    text-decoration: none;
}

.cka-site-brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 44px;
    flex: 0 0 52px;
    background: transparent;
    font-size: 0;
}

.cka-site-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cka-site-brand-copy,
.cka-footer-brand-link > span:last-child {
    display: grid;
    line-height: 1.1;
}

.cka-site-brand-copy strong,
.cka-footer-brand-link strong {
    font-size: 14px;
    letter-spacing: .08em;
}

.cka-site-brand-copy small,
.cka-footer-brand-link small {
    margin-top: 4px;
    color: var(--cka-orange);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

.cka-primary-nav {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cka-nav-link {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--cka-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.cka-nav-link:hover,
.cka-nav-link.is-current {
    color: var(--cka-ink);
    background: #f2e8dc;
}

.cka-nav-link.cka-nav-login {
    color: #fff;
    background: var(--cka-orange);
    padding-inline: 18px;
}

.cka-nav-link.cka-nav-login:hover {
    color: #fff;
    background: #c9491d;
}

.cka-menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--cka-ink);
    font-size: 24px;
    cursor: pointer;
}

.cka-site-footer {
    margin-top: 0;
    color: #f9f1e7;
    background: #211b17;
}

.cka-footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.25fr;
    gap: 70px;
    padding-top: 62px;
    padding-bottom: 48px;
}

.cka-footer-brand-link { color: #fff; }
.cka-footer-brand p,
.cka-footer-column p {
    max-width: 300px;
    margin: 18px 0 0;
    color: #c9bdb2;
    font-size: 13px;
    line-height: 1.8;
}

.cka-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.cka-footer-social a {
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: #f9f1e7;
    font-size: 11px;
    text-decoration: none;
}

.cka-footer-column { display: flex; flex-direction: column; align-items: flex-start; }
.cka-footer-column h2 { margin: 0 0 17px; color: #fff; font-size: 14px; }
.cka-footer-column a { margin: 0 0 11px; color: #c9bdb2; font-size: 13px; text-decoration: none; }
.cka-footer-column a:hover,
.cka-footer-social a:hover { color: #fff; border-color: var(--cka-orange); }
.cka-footer-column p + p { margin-top: 5px; }

.cka-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #a99b90;
    font-size: 11px;
}

@media (max-width: 760px) {
    .cka-site-header-inner,
    .cka-footer-container { width: min(100% - 28px, 1180px); }
    .cka-site-header-inner { min-height: 68px; }
    .cka-menu-toggle { display: block; }
    .cka-primary-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        padding: 12px 14px 16px;
        flex-direction: column;
        align-items: stretch;
        background: var(--cka-cream);
        border-bottom: 1px solid rgba(28, 25, 23, .08);
        box-shadow: 0 12px 25px rgba(28, 25, 23, .08);
    }
    .cka-primary-nav.is-open { display: flex; }
    .cka-nav-link { text-align: center; }
    .cka-footer-main { grid-template-columns: 1fr; gap: 34px; padding-top: 42px; }
    .cka-footer-bottom { flex-direction: column; gap: 7px; }
}
