/*
Theme Name: BGS - Bagus Gemilang Semesta
Theme URI: https://public.bgscollection.id
Author: BGS Developer
Author URI: https://public.bgscollection.id
Description: Custom WordPress theme untuk PT Bagus Gemilang Semesta - Jasa Penagihan Profesional. Tema modern dengan desain terinspirasi Linknet.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bgs-theme
Tags: custom-logo, custom-menu, featured-images, theme-options, one-page
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --bgs-primary: #1A365D; /* Dark Corporate Blue */
    --bgs-primary-light: #2B6CB0; /* Slate Blue */
    --bgs-primary-dark: #0F1F38; /* Deep Navy */
    --bgs-accent: #3182CE; /* Trust Blue */
    --bgs-golden: #4A5568; /* Replaced Golden with Slate Gray */
    --bgs-golden-hover: #2D3748;
    --bgs-dark: #0F172A; /* Slate 900 */
    --bgs-dark-lighter: #1E293B; /* Slate 800 */
    --bgs-dark-card: #0F1F38; /* Navy Card Background */
    --bgs-navy: #1A365D;
    --bgs-white: #FFFFFF;
    --bgs-gray-50: #F8FAFC;
    --bgs-gray-100: #F1F5F9;
    --bgs-gray-200: #E2E8F0;
    --bgs-gray-300: #CBD5E1;
    --bgs-gray-400: #94A3B8;
    --bgs-gray-500: #64748B;
    --bgs-gray-600: #475569;
    --bgs-gray-700: #334155;
    --bgs-gray-800: #1E293B;
    --bgs-font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bgs-font-heading: 'Inter', sans-serif;
    --bgs-section-padding: 80px 0;
    --bgs-container-max: 1200px;
    --bgs-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bgs-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --bgs-shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --bgs-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --bgs-shadow-card: 0 4px 24px rgba(14,165,233,0.08);
    --bgs-radius-sm: 6px;
    --bgs-radius-md: 12px;
    --bgs-radius-lg: 16px;
    --bgs-radius-xl: 24px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--bgs-font-main);
    color: var(--bgs-gray-700);
    line-height: 1.7;
    background: var(--bgs-white);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--bgs-primary); transition: var(--bgs-transition); }
a:hover { color: var(--bgs-primary-dark); }

/* ===== LAYOUT ===== */
.bgs-container { max-width: var(--bgs-container-max); margin: 0 auto; padding: 0 24px; }
.bgs-section { padding: var(--bgs-section-padding); }
.bgs-section-light { background: var(--bgs-gray-50); }
.bgs-section-dark { background: var(--bgs-dark); color: var(--bgs-white); }

.bgs-header {
    background: var(--bgs-white);
    position: relative;
    z-index: 1000;
    border-bottom: none;
    transition: var(--bgs-transition);
}
.bgs-header::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 5%;
    right: 5%;
    height: 6px;
    background: var(--bgs-gray-200);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    opacity: 0.5;
}
   /* Sections that should NOT have the white card styling on their container */
.bgs-header .bgs-container,
.bgs-hero .bgs-container,
.bgs-about-v2 .bgs-container,
.bgs-footer .bgs-container {
    background: transparent;
    box-shadow: none;
    padding: 0 24px;
    border-radius: 0;
}

/* Extended width for sections that need content pinned to screen edges like Linknet */
.bgs-header .bgs-container,
.bgs-hero .bgs-container {
    max-width: 1600px;
    padding: 0 48px;
}

.bgs-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 36px;
}
.bgs-nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}
.bgs-header-tools {
    display: flex;
}
.bgs-logo img { height: 52px; width: auto; max-width: 240px; object-fit: contain; }
.bgs-logo-text { font-size: 22px; font-weight: 800; color: var(--bgs-dark); letter-spacing: -0.5px; }
.bgs-logo-text span { color: var(--bgs-primary); }

/* Navigation */
.bgs-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
}
.bgs-nav a {
    color: var(--bgs-gray-700);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.2px;
}
.bgs-nav a:hover { color: var(--bgs-primary); }
.bgs-nav li { position: relative; }
.bgs-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bgs-white);
    min-width: 220px;
    border-radius: var(--bgs-radius-md);
    box-shadow: var(--bgs-shadow-md);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--bgs-transition);
    z-index: 100;
    display: flex;
    flex-direction: column;
}
.bgs-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.bgs-nav .sub-menu a {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--bgs-gray-600);
    display: block;
}
.bgs-nav .sub-menu a:hover {
    background: var(--bgs-gray-50);
    color: var(--bgs-primary);
}

/* Mobile Menu Toggle */
.bgs-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1010;
}
.bgs-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--bgs-dark);
    border-radius: 3px;
    transition: var(--bgs-transition);
}
.bgs-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.bgs-menu-overlay.active { display: block; }

@media (max-width: 992px) {
    .bgs-menu-toggle { display: flex; }
    .bgs-nav {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: var(--bgs-white);
        z-index: 1001;
        padding: 80px 24px 32px;
        transition: left 0.35s ease;
        overflow-y: auto;
        box-shadow: var(--bgs-shadow-lg);
    }
    .bgs-nav.active { left: 0; }
    .bgs-nav ul { flex-direction: column; align-items: flex-start; gap: 20px; }
    .bgs-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        display: none;
        margin-top: 10px;
    }
    .bgs-nav li:hover > .sub-menu { display: flex; }
    .bgs-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .bgs-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .bgs-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ===== FOOTER (Linknet Style - White) ===== */
.bgs-footer {
    background: #fff;
    border-top: 1px solid #E2E8F0;
    padding: 64px 0 0;
    color: #334155;
}

/* Main grid: brand left, links right */
.bgs-footer-main {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid #E2E8F0;
}

/* Brand column */
.bgs-footer-brand { display: flex; flex-direction: column; gap: 20px; }
.bgs-footer-logo { display: inline-block; text-decoration: none; }
.bgs-footer-logo-text { font-size: 1.4rem; font-weight: 800; color: #1A365D; }
.bgs-footer-tagline {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A365D;
    line-height: 1.4;
    margin: 0;
}
.bgs-footer-detail { display: flex; flex-direction: column; gap: 4px; }
.bgs-footer-detail-label {
    font-size: 0.75rem;
    color: #94A3B8;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}
.bgs-footer-detail p {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}
.bgs-footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #1A365D;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 6px;
}
.bgs-footer-contact-link:hover { color: #2B6CB0; }
.bgs-footer-contact-link svg { stroke: #1A365D; flex-shrink: 0; }

/* Social Icons */
.bgs-footer-social { display: flex; gap: 14px; align-items: center; }
.bgs-footer-social a {
    color: #64748B;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}
.bgs-footer-social a:hover { color: #1A365D; }
.bgs-footer-social a svg { stroke: currentColor; }

/* Link columns */
.bgs-footer-links-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.bgs-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bgs-footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1A365D;
    letter-spacing: 0.4px;
    margin: 0 0 12px;
    text-transform: none;
}
.bgs-footer-col ul a {
    font-size: 0.875rem;
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s ease;
}
.bgs-footer-col ul a:hover { color: #1A365D; }

/* Bottom bar */
.bgs-footer-bottom-bar {
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    padding: 18px 0;
}
.bgs-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.bgs-footer-bottom-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bgs-footer-bottom-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1A365D;
    border: 1.5px solid #CBD5E1;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.bgs-footer-copyright {
    font-size: 0.78rem;
    color: #94A3B8;
}

@media (max-width: 992px) {
    .bgs-footer-main { grid-template-columns: 1fr; gap: 40px; }
    .bgs-footer-links-wrap { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 576px) {
    .bgs-footer-links-wrap { grid-template-columns: 1fr; gap: 24px; }
    .bgs-footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* ===== CLIENT CAROUSEL (Legacy) ===== */
.bgs-client-carousel-wrap {
    overflow: hidden;
    padding: 24px 0;
    background: var(--bgs-gray-50);
}
.bgs-client-track {
    display: flex;
    gap: 40px;
    animation: scroll-clients 25s linear infinite;
    width: max-content;
    align-items: center;
}
@keyframes scroll-clients {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.bgs-client-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.bgs-client-item:hover { opacity: 1; }
.bgs-client-item img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.bgs-client-name { font-size: 13px; font-weight: 600; color: var(--bgs-gray-600); white-space: nowrap; }
.bgs-client-item-dot { color: var(--bgs-gray-300); font-size: 10px; }
