/* ============================================
   KBC THEME - HEADER & FOOTER STYLES
   Fully Responsive Design
   ============================================ */

/* ============================================
   TOP BAR
   ============================================ */
.kbc-topbar {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.topbar-badge, .topbar-phone, .topbar-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.86);
    font-size: 13px;
    transition: all 0.2s ease;
}

.topbar-phone:hover {
    background: rgba(255,255,255,0.10);
}

.topbar-button {
    background: linear-gradient(135deg, rgba(174,33,65,0.90), rgba(183,72,122,0.90));
    border-color: rgba(174,33,65,0.55);
}

.topbar-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(174,33,65,0.3);
}

.topbar-badge svg, .topbar-phone svg {
    flex-shrink: 0;
}

/* ============================================
   MAIN HEADER
   ============================================ */
.site-header {
    position: relative;
    z-index: 10000;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 
        0 1px 0 0 rgba(214,188,89,0.15),
        0 4px 20px rgba(0,0,0,0.3);
}

.site-header.sticky-header {
    position: sticky;
    top: 0;
    z-index: 10000;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

.site-branding {
    flex-shrink: 0;
}

.site-branding .custom-logo-link img {
    max-width: 110px;
    height: auto;
    display: block;
}

.site-title {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

/* Desktop Menu */
.desktop-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255,255,255,0.72);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.06);
}

/* Dropdown Menus */
.primary-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    padding: 8px;
    background: rgba(7,11,20,0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 10001;
}

.primary-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu li {
    width: 100%;
}

.primary-menu .sub-menu li a {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: left;
}

.primary-menu .sub-menu li a:hover {
    background: rgba(174,33,65,0.15);
    color: rgba(255,255,255,0.92);
}

/* Menu Item with Dropdown Arrow */
.primary-menu > li.menu-item-has-children > a::after {
    content: '▾';
    font-size: 14px;
    color: #d6bc59;
    font-weight: bold;
    transition: transform 0.2s ease, color 0.2s ease;
}

.primary-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    color: #ae2141;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: rgba(255,255,255,0.86);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.header-phone:hover {
    color: rgba(255,255,255,1);
}

.header-phone svg {
    flex-shrink: 0;
    stroke: #d6bc59;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.header-btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.09);
}

.header-btn.primary {
    border-color: rgba(174,33,65,0.55);
    background: linear-gradient(135deg, rgba(174,33,65,0.90), rgba(183,72,122,0.90));
}

.header-btn.primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(174,33,65,0.4);
}

.btn-spark {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%);
    box-shadow: 0 0 0 6px rgba(214,188,89,0.10), 0 0 22px rgba(214,188,89,0.28);
}

/* Button Visibility Controls */
/* Hide completely - works on all devices */
.topbar-phone.hide,
.topbar-button.hide,
.header-phone.hide,
.header-btn.hide {
    display: none !important;
}

/* Hide on desktop - show on mobile */
.hide-desktop {
    display: none !important;
}

/* Hide on mobile - show on desktop (will be overridden in mobile breakpoint) */
.hide-mobile {
    display: inline-flex !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: white;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.20);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* ============================================
   MOBILE DRAWER
   ============================================ */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.drawer-header .custom-logo-link img {
    max-width: 120px;
}

.drawer-close {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-close:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.20);
}

.drawer-close:active {
    transform: scale(0.95);
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu > li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 12px;
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    font-size: 16px;
}

/* Arrow indicator for mobile items with children */
.mobile-nav-menu li.menu-item-has-children > a::after {
    content: '▾';
    font-size: 14px;
    color: #d6bc59;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.mobile-nav-menu li.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
    color: #ae2141;
}

.mobile-nav-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav-menu li.menu-item-has-children.open .sub-menu {
    max-height: 500px;
}

.mobile-nav-menu .sub-menu li a {
    display: block;
    padding: 12px 24px;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-menu .sub-menu li a:hover {
    background: rgba(255,255,255,0.03);
    color: #ae2141;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 58px 0 28px;
    border-top: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

.footer-column {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.10);
}

.footer-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 16px;
}

.footer-description {
    margin: 0 0 24px;
    line-height: 1.7;
    font-size: 14px;
}

.footer-contact {
    margin-top: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 14px;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    stroke: #d6bc59;
}

.contact-item a {
    color: #ae2141;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #b7487a;
}

.footer-title {
    margin: 0 0 18px;
    font-size: 20px;
    letter-spacing: -0.2px;
    color: rgba(255,255,255,0.95);
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu li a {
    display: block;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.20);
    color: rgba(255,255,255,0.86);
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.footer-menu li a:hover {
    background: rgba(174,33,65,0.15);
    border-color: rgba(174,33,65,0.30);
    color: rgba(255,255,255,0.95);
}

/* Certifications */
.certifications-section {
    margin: 36px 0 28px;
    text-align: center;
}

.certifications-section h3 {
    margin: 0 0 12px;
    font-size: 20px;
    letter-spacing: -0.3px;
    color: rgba(255,255,255,0.95);
}

.certifications-section p {
    margin: 0 0 24px;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.cert-box {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.15);
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-box img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    object-fit: contain;
}

/* Acknowledgement */
.acknowledgement {
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(214,188,89,0.25);
    background: rgba(214,188,89,0.08);
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
}

.acknowledgement strong {
    display: block;
    margin-bottom: 8px;
    color: #d6bc59;
    font-weight: 700;
    font-size: 14px;
}

/* Copyright */
.copyright {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.56);
}

.copyright-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.copyright-links a {
    color: rgba(255,255,255,0.72);
    font-weight: 600;
    transition: color 0.2s ease;
}

.copyright-links a:hover {
    color: #ae2141;
}

.separator {
    opacity: 0.5;
    margin: 0 4px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .primary-menu {
        gap: 4px;
    }
    
    .primary-menu > li > a {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .header-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 900px) {
    /* Top Bar Mobile */
    .topbar-row {
        justify-content: center;
    }
    
    .topbar-left {
        display: none;
    }
    
    .topbar-badge {
        display: none !important;
    }
    
    .topbar-phone strong {
        font-size: 13px;
    }
    
    /* Mobile visibility overrides */
    /* Hide on mobile = hide on mobile */
    .topbar-phone.hide-mobile,
    .topbar-button.hide-mobile,
    .header-phone.hide-mobile,
    .header-btn.hide-mobile {
        display: none !important;
    }
    
    /* Hide on desktop = show on mobile */
    .topbar-phone.hide-desktop,
    .topbar-button.hide-desktop {
        display: inline-flex !important;
    }
    
    .header-phone.hide-desktop,
    .header-btn.hide-desktop {
        display: inline-flex !important;
    }
    
    /* Header Mobile */
    .site-branding .custom-logo-link img {
        max-width: 90px;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .copyright {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright-links {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .topbar-right {
        gap: 8px;
    }
    
    .topbar-phone, .topbar-button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .main-navigation {
        padding: 10px 0;
    }
    
    .footer-column {
        padding: 20px;
    }
    
    .certifications-section h3 {
        font-size: 18px;
    }
}
