/* ==========================================================================
   BTJ Union - Custom CSS (Dipanggil via functions.php)
   ========================================================================== */

/* --- CSS Variables Override (dari Customizer) --- */
:root {
    --btj-primary: #0d47a1;
    --btj-primary-light: #1565c0;
    --btj-primary-dark: #082e6a;
    --btj-secondary: #ff8f00;
    --btj-secondary-light: #ffa000;
    --btj-text: #212121;
    --btj-text-light: #757575;
    --btj-bg: #ffffff;
    --btj-bg-alt: #f5f5f5;
    --btj-bg-dark: #263238;
    --btj-border: #e0e0e0;
    --btj-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --btj-shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
    --btj-radius: 8px;
    --btj-radius-lg: 16px;
}

/* --- Divi Section Overrides --- */
.et_pb_section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.et_pb_section_0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* --- Divi Button Overrides --- */
.et_pb_button {
    background-color: var(--btj-primary) !important;
    color: #ffffff !important;
    border-radius: var(--btj-radius) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.et_pb_button:hover {
    background-color: var(--btj-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--btj-shadow-hover);
}

/* --- Divi Text Module Overrides --- */
.et_pb_text {
    font-size: 1rem;
    line-height: 1.7;
}

.et_pb_text h1, .et_pb_text h2, .et_pb_text h3 {
    font-weight: 700;
}

/* --- Hero Section --- */
.btj-hero-wrapper {
    position: relative;
    min-height: 100vh;
}

.btj-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13,71,161,0.85), rgba(8,46,106,0.9));
    z-index: 1;
}

.btj-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.btj-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.btj-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
}

/* --- Feature Cards --- */
.btj-card {
    background: var(--btj-bg);
    border-radius: var(--btj-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--btj-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--btj-border);
    text-align: center;
    height: 100%;
}

.btj-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--btj-shadow-hover);
    border-color: var(--btj-primary-light);
}

.btj-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--btj-primary), var(--btj-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
}

.btj-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--btj-text);
}

.btj-card p {
    color: var(--btj-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Stats Section --- */
.btj-stats-wrapper {
    background: linear-gradient(135deg, var(--btj-primary), var(--btj-primary-dark));
    color: #fff;
    padding: 4rem 0;
}

.btj-stat {
    text-align: center;
    padding: 1rem;
}

.btj-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #fff;
}

.btj-stat-label {
    font-size: 1rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* --- Services / Layanan --- */
.btj-service-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--btj-bg);
    border-radius: var(--btj-radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--btj-shadow);
    transition: all 0.3s ease;
    align-items: center;
}

.btj-service-item:hover {
    box-shadow: var(--btj-shadow-hover);
    transform: translateX(4px);
}

.btj-service-item-icon {
    min-width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--btj-secondary), var(--btj-secondary-light));
    color: #fff;
    border-radius: var(--btj-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* --- Team Grid --- */
.btj-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.btj-team-card {
    background: var(--btj-bg);
    border-radius: var(--btj-radius-lg);
    overflow: hidden;
    box-shadow: var(--btj-shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.btj-team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--btj-shadow-hover);
}

.btj-team-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.btj-team-card-body {
    padding: 1.5rem;
}

.btj-team-card-body h4 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.btj-team-card-body .btj-team-role {
    color: var(--btj-primary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.btj-team-card-body .btj-team-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.btj-team-card-body .btj-team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--btj-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--btj-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btj-team-card-body .btj-team-social a:hover {
    background: var(--btj-primary);
    color: #fff;
}

/* --- Testimonial --- */
.btj-testimonial {
    background: var(--btj-bg);
    border-radius: var(--btj-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--btj-shadow);
    border-left: 4px solid var(--btj-primary);
    margin-bottom: 1.5rem;
}

.btj-testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--btj-text);
    margin-bottom: 1.5rem;
}

.btj-testimonial-quote::before {
    content: "\201C";
    font-size: 3rem;
    color: var(--btj-primary-light);
    line-height: 0;
    vertical-align: -0.5em;
    margin-right: 0.1em;
}

.btj-testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btj-testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.btj-testimonial-author-name {
    font-weight: 600;
    color: var(--btj-text);
}

.btj-testimonial-author-role {
    font-size: 0.875rem;
    color: var(--btj-text-light);
}

/* --- CTA Section --- */
.btj-cta {
    background: linear-gradient(135deg, var(--btj-primary), var(--btj-primary-dark));
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
    border-radius: var(--btj-radius-lg);
}

.btj-cta h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.btj-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btj-cta .et_pb_button {
    background-color: var(--btj-secondary) !important;
}

.btj-cta .et_pb_button:hover {
    background-color: var(--btj-secondary-light) !important;
}

/* --- Footer --- */
.btj-footer {
    background-color: var(--btj-bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
}

.btj-footer h4 {
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.btj-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btj-footer a:hover {
    color: var(--btj-secondary);
}

.btj-footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.btj-footer-contact-item i {
    color: var(--btj-secondary);
    margin-top: 4px;
}

.btj-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

/* --- WhatsApp Float --- */
.btj-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btj-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

.btj-whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

/* --- Scroll to Top --- */
.btj-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    background: var(--btj-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--btj-shadow);
}

.btj-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.btj-scroll-top:hover {
    background: var(--btj-primary-dark);
    transform: translateY(-3px);
}

/* --- Breadcrumb --- */
.btj-breadcrumb {
    background: var(--btj-bg-alt);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--btj-border);
}

.btj-breadcrumb a {
    color: var(--btj-primary);
    text-decoration: none;
}

.btj-breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--btj-text-light);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .btj-hero-content h1 {
        font-size: 2.5rem;
    }

    .btj-stat-number {
        font-size: 2.75rem;
    }

    .btj-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .et_pb_section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .btj-hero-content h1 {
        font-size: 2rem;
    }

    .btj-hero-content p {
        font-size: 1rem;
    }

    .btj-stat-number {
        font-size: 2.25rem;
    }

    .btj-card {
        padding: 1.5rem;
    }

    .btj-service-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .btj-team-grid {
        grid-template-columns: 1fr;
    }

    .btj-whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .btj-scroll-top {
        right: 80px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.btj-animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* --- Loading Skeleton --- */
.btj-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
