/*
Theme Name: Bigkreatif Themes
Theme URI: https://bigkreatif.com
Author: Bigkreatif
Author URI: https://bigkreatif.com
Description: Tema WordPress custom starter buatan Bigkreatif. Ringan, responsif, dan siap dikembangkan.
Version: 1.2
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bigkreatif
Tags: custom-background, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #fff;
}

a {
    color: var(--bk-accent, #b8892f);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    padding-left: 1.25rem;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
:root {
    --bk-ink: #101828;
    --bk-ink-soft: #56606f;
    --bk-navy: #0b2540;
    --bk-navy-soft: #16324f;
    --bk-accent: #b8892f;
    --bk-accent-dark: #96701f;
    --bk-border: #e6e9ee;
    --bk-header-h: 84px;
    --bk-topbar-h: 40px;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 10px;
    z-index: 10000;
    background: var(--bk-ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 6px 6px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Top bar kontak (company profile) */
.site-topbar {
    background: var(--bk-navy);
    color: #cbd5e1;
    font-size: 0.82rem;
}

.site-topbar-inner {
    height: var(--bk-topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 24px;
    overflow: hidden;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.topbar-item svg {
    flex-shrink: 0;
    opacity: 0.85;
}

a.topbar-item:hover {
    color: #fff !important;
}

.topbar-hours {
    opacity: 0.85;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.topbar-social a {
    color: #cbd5e1 !important;
    display: inline-flex;
}

.topbar-social a:hover {
    color: #fff !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    height: var(--bk-header-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--bk-border);
    transition: box-shadow 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled {
    height: 68px;
    box-shadow: 0 8px 24px rgba(11, 37, 64, 0.08);
}

.site-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.site-branding .custom-logo {
    display: block;
    max-height: calc(var(--bk-header-h) - 30px);
    width: auto;
    transition: max-height 0.25s ease;
}

.site-header.is-scrolled .site-branding .custom-logo {
    max-height: 38px;
}

.site-branding .site-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.1;
    white-space: nowrap;
}

.site-branding .site-title a {
    color: var(--bk-ink);
}

.site-branding .site-title a:hover {
    text-decoration: none;
    color: var(--bk-accent);
}

.site-branding .site-description {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--bk-ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav + CTA wrapper */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--bk-ink);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 8px 2px;
    position: relative;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--bk-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
    color: var(--bk-accent);
    text-decoration: none;
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after {
    transform: scaleX(1);
}

.main-navigation .current-menu-item > a {
    color: var(--bk-accent);
}

.main-navigation .current-menu-item > a::after {
    transform: scaleX(1);
}

/* Dropdown submenu (desktop) */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--bk-border);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    padding: 8px;
    flex-direction: column;
    gap: 0;
    z-index: 20;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
    display: flex;
}

.main-navigation ul ul a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul a:hover {
    background: #f3f4f6;
}

/* CTA button */
.header-cta {
    display: flex;
    align-items: center;
}

.btn-cta {
    display: inline-block;
    background: var(--bk-accent);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.btn-cta:hover,
.btn-cta:focus-visible {
    background: var(--bk-accent-dark);
    transform: translateY(-1px);
}

/* Mobile hamburger toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--bk-border);
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}

.menu-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--bk-ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Header - Responsive (mobile off-canvas menu)
   ========================================================================== */
@media (max-width: 860px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background: #fff;
        border-left: 1px solid var(--bk-border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 100px 24px 32px;
        margin-left: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: -12px 0 30px rgba(15, 23, 42, 0.08);
    }

    .main-navigation.is-open {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .main-navigation a {
        padding: 12px 4px;
        display: block;
    }

    .main-navigation a::after {
        display: none;
    }

    .main-navigation ul ul {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 14px;
        border-radius: 0;
    }

    .main-navigation li.submenu-open > ul {
        display: flex;
    }

    .header-cta {
        margin-top: 16px;
    }

    .btn-cta {
        display: block;
        text-align: center;
    }
}

body.menu-is-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .topbar-hours,
    .topbar-social {
        display: none;
    }

    .topbar-contact {
        gap: 16px;
    }

    .site-topbar {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    :root {
        --bk-header-h: 68px;
    }

    .site-branding .site-title {
        font-size: 1.15rem;
    }

    .site-branding .site-description {
        display: none;
    }

    .site-topbar-inner {
        justify-content: center;
    }

    .topbar-contact {
        gap: 14px;
    }
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site-content {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    align-items: flex-start;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.widget-area {
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 782px) {
    .site-content {
        flex-direction: column;
    }
    .widget-area {
        width: 100%;
    }
}

/* ==========================================================================
   Posts
   ========================================================================== */
.entry-title {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.entry-meta {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.entry-content {
    font-size: 1rem;
}

article.post,
article.page {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.post-thumbnail img {
    border-radius: 8px;
    margin-bottom: 16px;
}

.pagination {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

/* ==========================================================================
   Widgets & Sidebar
   ========================================================================== */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
    margin-top: 40px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 24px 0;
    margin-top: 40px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================================================
   404
   ========================================================================== */
.error-404 {
    text-align: center;
    padding: 60px 0;
}
