/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://canopykain.com/
 Description:  Tema Kustom untuk Website Saya
 Author:       Muhamad Septian
 Template:     generatepress
 Version:      1.0.0
*/

/* Tulis custom CSS Anda di bawah ini */
/* ==========================================================================
   RESET CONTAINER THEME UNTUK HEADER PENUH
   ========================================================================== */
.site-header {
    display: none !important; /* Tutup header native jika ada sisa */
}

/* ==========================================================================
   CUSTOM HEADER CANOPY KAIN (BIRU LANGIT & PUTIH)
   ========================================================================== */
:root {
    --ck-sky-blue: #0ea5e9;       /* Biru Langit Primer */
    --ck-sky-blue-hover: #0284c7; /* Biru Langit Sedikit Lebih Gelap */
    --ck-sky-light: #f0f9ff;      /* Aksen Biru Sangat Muda */
    --ck-text-dark: #1e293b;      /* Teks Gelap Kontras */
    --ck-text-muted: #64748b;
    --ck-border: #e2e8f0;
}

.ck-header-root {
    width: 100% !important;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9999;
    border-bottom: 1px solid #f1f5f9;
}

.ck-header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Brand & Logo */
.ck-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.ck-logo {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.ck-brand-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ck-text-dark);
    letter-spacing: -0.5px;
}

/* Nav Menu Desktop */
.ck-nav-drawer {
    display: flex;
    align-items: center;
}

.ck-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
    align-items: center;
}

.ck-menu-item {
    position: relative;
}

.ck-menu-item a {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ck-text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.ck-menu-item a:hover {
    color: var(--ck-sky-blue);
    background-color: var(--ck-sky-light);
}

.ck-arrow {
    font-size: 10px;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.2s;
}

/* Dropdown Menu (Desktop) */
.ck-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--ck-border);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    z-index: 100;
}

.ck-dropdown-menu li a {
    padding: 10px 18px;
    font-size: 14px;
    color: #334155;
    border-radius: 0;
}

.ck-dropdown-menu li a:hover {
    background: var(--ck-sky-light);
    color: var(--ck-sky-blue);
    padding-left: 22px;
}

/* Tampilkan dropdown saat kursor melayang (Desktop) */
@media (min-width: 1025px) {
    .ck-dropdown:hover .ck-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .ck-dropdown:hover .ck-arrow {
        transform: rotate(180deg);
    }
}

/* Tombol CTA WhatsApp */
.ck-btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ck-sky-blue);
    color: #ffffff !important;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ck-btn-wa:hover {
    background-color: var(--ck-sky-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45);
}

.ck-cta-mobile {
    display: none;
}

.ck-hamburger {
    display: none;
}

/* ==========================================================================
   RESPONSIVE: TABLET & MOBILE (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .ck-cta-desktop {
        display: none;
    }

    /* Tombol Hamburger */
    .ck-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10001;
    }

    .ck-hamburger span {
        width: 100%;
        height: 2.5px;
        background-color: var(--ck-text-dark);
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Hamburger Animation to 'X' */
    .ck-hamburger.is-active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .ck-hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .ck-hamburger.is-active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    /* Menu Drawer Layar Penuh / Slide */
    .ck-nav-drawer {
        position: fixed;
        top: 68px; /* Menyesuaikan tinggi header */
        left: 0;
        width: 100%;
        height: calc(100vh - 68px);
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        box-sizing: border-box;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        border-top: 1px solid var(--ck-border);
    }

    .ck-nav-drawer.is-open {
        transform: translateX(0);
    }

    .ck-menu-list {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        align-items: flex-start;
    }

    .ck-menu-item {
        width: 100%;
    }

    .ck-menu-item a {
        font-size: 16px;
        padding: 12px 16px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Dropdown Akordion di Mobile */
    .ck-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--ck-sky-light);
        border-radius: 6px;
        padding: 6px 0;
        margin: 4px 0 8px 12px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .ck-dropdown.show-dropdown .ck-dropdown-menu {
        display: block;
    }

    .ck-dropdown.show-dropdown .ck-arrow {
        transform: rotate(180deg);
    }

    .ck-cta-mobile {
        display: block;
        width: 100%;
        margin-top: 24px;
        padding-bottom: 30px;
    }

    .ck-cta-mobile .ck-btn-wa {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
    

}