/*
 Theme Name:   Astra Child
 Theme URI:    https://kuasahukumpajak.id/
 Author:       fathnan.id
 Author URI:   https://kuasahukumpajak.id/
 Description:  Astra PRO Lifetime
 Version:      2.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://kuasahukumpajak.id/
 Text Domain:  astra-child
 Template:     astra
*/

/* ========================================================
   RESET MARGIN & RUANG PUTIH BAWAAN
   ======================================================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

#page.site-main-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ========================================================
   VARIABLES & DESIGN TOKENS
   ======================================================== */
:root {
    --brand-teal-sticky: rgba(14, 34, 34, 0.95);
    --brand-teal-card: #163838;
    --brand-accent: #85A6A6;
    --brand-accent-hover: #739494;
    --brand-white: #ffffff;
    --brand-text-dark: #1e293b;
    --brand-text-muted: #64748b;
}

/* ========================================================
   1. FIXED TRANSPARENT HEADER
   ======================================================== */
header#site-header.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: background 0.3s ease, background-color 0.3s ease, height 0.3s ease, box-shadow 0.3s ease !important;
    font-family: 'DM Sans', sans-serif !important;
}

body.admin-bar header#site-header.site-header {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar header#site-header.site-header {
        top: 46px !important;
    }
}

.header-main-wrapper {
    width: 100% !important;
    padding: 0 45px !important;
    height: 90px !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    transition: height 0.3s ease !important;
}

.header-container {
    width: 100% !important;
    max-width: 1680px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
}

.header-col {
    display: flex;
    align-items: center;
}

.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 1 1 auto;
    justify-content: center;
}

.header-right {
    flex: 0 0 auto;
    gap: 24px;
}

/* Logo */
.custom-brand-logo {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.custom-brand-logo .site-logo-img {
    height: 48px !important;
    width: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

/* Navigasi */
.primary-nav-menu .nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    gap: 36px !important;
}

.primary-nav-menu .nav-list li a {
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: var(--brand-white) !important;
    padding: 8px 0 !important;
    position: relative !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45) !important;
    transition: all 0.25s ease !important;
    display: inline-block !important;
}

.primary-nav-menu .nav-list li a:hover,
.primary-nav-menu .nav-list li.active a {
    color: #ffffff !important;
}

.primary-nav-menu .nav-list li.active a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 100% !important;
    height: 2.5px !important;
    background-color: var(--brand-accent) !important;
    border-radius: 2px !important;
    box-shadow: 0 0 8px rgba(133, 166, 166, 0.8) !important;
}

/* ========================================================
   2. BUTTON CTA, SEARCH & CUSTOM FINXPERT TOGGLE
   ======================================================== */
.btn-cta-pill {
    background-color: var(--brand-accent) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.btn-cta-pill:hover {
    background-color: var(--brand-accent-hover) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

.btn-cta-pill i {
    font-size: 14px !important;
    transition: transform 0.25s ease !important;
}

.btn-cta-pill:hover i {
    transform: translateX(3px);
}

/* Tombol Search Bersih Sesuai Screenshot */
.btn-search-clean {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    color: #ffffff !important;
    font-size: 20px !important;
    padding: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.25s ease !important;
}

.btn-search-clean:hover {
    color: var(--brand-accent) !important;
}

/* FinXpert Custom Hamburger Toggle (Dengan Panah Diagonal) */
.finxpert-toggle-btn {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    width: 32px !important;
    height: 24px !important;
    position: relative !important;
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 0 !important;
    transition: opacity 0.2s ease !important;
}

.finxpert-toggle-btn .line {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background-color: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
}

.finxpert-toggle-btn .line-top {
    width: 30px !important;
}

.finxpert-toggle-btn .toggle-mid-row {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 2px !important;
    position: relative !important;
}

.finxpert-toggle-btn .arrow-diagonal {
    position: absolute !important;
    left: -2px !important;
    bottom: -6px !important;
    font-size: 15px !important;
    color: var(--brand-accent) !important; /* Warna sage teal persis screenshot */
    line-height: 1 !important;
}

.finxpert-toggle-btn .line-mid {
    width: 19px !important;
    margin-left: auto !important;
}

.finxpert-toggle-btn .line-bot {
    width: 19px !important;
    margin-left: auto !important;
}

.finxpert-toggle-btn:hover .line {
    background-color: var(--brand-accent) !important;
}

/* ========================================================
   3. STICKY HEADER STATE
   ======================================================== */
header#site-header.is-scrolled {
    background-color: var(--brand-teal-sticky) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
    border-bottom: 1px solid rgba(133, 166, 166, 0.25) !important;
}

header#site-header.is-scrolled .header-main-wrapper {
    height: 72px !important;
}

header#site-header.is-scrolled .custom-brand-logo .site-logo-img {
    height: 40px !important;
}

/* ========================================================
   4. OFF-CANVAS SIDEBAR DRAWER (PERSIS SCREENSHOT)
   ======================================================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-drawer {
    position: fixed;
    top: 0;
    right: -520px;
    width: 480px;
    max-width: 90vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999999;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: 'DM Sans', sans-serif;
    color: var(--brand-text-dark);
}

.sidebar-drawer.active {
    right: 0;
}

.sidebar-drawer-inner {
    padding: 40px 36px 36px 36px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Close Button */
.sidebar-close-btn {
    position: absolute;
    top: 24px;
    right: 28px;
    background: transparent;
    border: none;
    font-size: 26px;
    color: #1e293b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-close-btn:hover {
    color: #ef4444;
    transform: rotate(90deg);
}

/* Header Drawer */
.sidebar-header-area {
    margin-bottom: 30px;
}

.sidebar-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.sidebar-logo img {
    height: 42px;
    width: auto;
}

.sidebar-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--brand-text-muted);
    margin: 0;
}

/* Section Title dengan Dash Icon Hijau */
.sidebar-sec-title {
    font-size: 18px;
    font-weight: 700;
    color: #163838;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px 0;
}

.sidebar-sec-title .dash-pill {
    width: 22px;
    height: 7px;
    background-color: var(--brand-accent);
    border-radius: 20px;
    display: inline-block;
}

/* Grid 3 Kartu Layanan */
.services-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.service-card-item {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    transition: all 0.3s ease;
}

.service-card-item:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.card-icon {
    font-size: 26px;
    color: #2F4F4F;
    line-height: 1;
}

.card-num {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #163838;
    margin: 0;
}

/* Newsletter Area */
.sidebar-newsletter-area {
    margin-bottom: 28px;
}

.sidebar-newsletter-form {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    margin-top: 14px;
}

.sidebar-newsletter-form input {
    border: none !important;
    outline: none !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    flex: 1 !important;
    color: #334155 !important;
}

.sidebar-newsletter-form button {
    background: var(--brand-accent) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 12px 18px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: background 0.2s ease !important;
}

.sidebar-newsletter-form button:hover {
    background: var(--brand-accent-hover) !important;
}

/* Follow Us Social Icons */
.sidebar-social-area {
    margin-bottom: 34px;
}

.social-circle-list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 14px 0 0 0;
}

.social-circle-list li a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--brand-accent);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-circle-list li a:hover {
    background-color: #163838;
    transform: translateY(-2px);
}

/* Contact Bottom Pill Bar */
.sidebar-contact-card {
    margin-top: auto;
    background-color: #1a3838;
    border-radius: 12px;
    padding: 22px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    color: #ffffff;
}

.contact-col {
    display: flex;
    flex-direction: column;
}

.contact-col:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 14px;
}

.contact-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.contact-val {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.contact-val:hover {
    color: var(--brand-accent);
}

/* ========================================================
   5. RESPONSIVE BREAKPOINT
   ======================================================== */
@media (max-width: 991px) {
    .header-main-wrapper {
        padding: 0 20px !important;
        height: 72px !important;
    }
    .header-center {
        display: none !important;
    }
    .btn-cta-pill {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .sidebar-drawer {
        width: 100vw;
        max-width: 100vw;
    }
    .sidebar-drawer-inner {
        padding: 30px 20px;
    }
    .services-card-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .sidebar-contact-card {
        grid-template-columns: 1fr;
    }
    .contact-col:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
}