/* =========================================================
   global.css — Shared enhancements, Pioneer Outsourcing BPO
   ========================================================= */

/* ----- Smooth navbar scroll shrink ----- */
.navbar {
    transition: padding 0.3s ease, box-shadow 0.3s ease !important;
}
.navbar.scrolled {
    padding: 10px 0 !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
}
.navbar.scrolled .logo {
    height: 52px !important;
}

/* ----- Logo: bigger, no radius, clickable ----- */
.logo {
    height: 72px !important;
    width: auto;
    border-radius: 0 !important;
    transition: height 0.3s ease;
    display: block;
}
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

/* ----- Scroll progress bar at top ----- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #F59E0B, #FBBF24, #F59E0B);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
    z-index: 2001;
    transition: width 0.08s linear;
}
@keyframes shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ----- Back-to-top button ----- */
.back-to-top {
    position: fixed;
    bottom: 104px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0A1A2F 0%, #0F2B3D 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 998;
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    transform: translateY(-3px);
}

/* ----- WhatsApp floating CTA (LEFT side — keeps right side free for Tawk.to) ----- */
.wa-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(37,211,102,0.45);
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: wa-pulse 3s ease-in-out infinite;
}
.wa-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 4px 36px rgba(37,211,102,0.70); }
}

/* ----- Scroll reveal ----- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Trust bar label ----- */
.trust-label {
    text-align: center;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
    color: #9CA3AF;
    margin-bottom: 28px;
}

/* ----- Footer enhancements ----- */
.footer-logo a {
    text-decoration: none;
    display: inline-block;
    line-height: 0;
}
.footer-logo img {
    height: 56px !important;
    margin-bottom: 16px;
}
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icon:hover {
    background: #F59E0B;
    color: white;
    transform: translateY(-3px);
}

/* ----- Hero visual card (index only) ----- */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}
.hero-stats-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 28px;
    padding: 36px 32px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.hero-stat {
    text-align: center;
}
.hero-stat-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.hero-stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-divider {
    width: 1px;
    background: rgba(255,255,255,0.12);
    height: 100%;
}
.hero-regions {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 16px 24px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}
.hero-regions span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
.hero-regions-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.45);
    text-align: center;
    margin-bottom: 10px;
}

/* ----- Service card gradient border on hover ----- */
.service-card {
    position: relative;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 29px;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.service-card:hover::after {
    opacity: 1;
}

/* ----- Mobile responsive overrides ----- */
@media (max-width: 768px) {
    .logo { height: 52px !important; }
    .navbar.scrolled .logo { height: 44px !important; }
    .hero-stats-card { grid-template-columns: 1fr 1fr; gap: 20px; padding: 28px 20px; }
    .hero-stat-num { font-size: 1.7rem; }
    .back-to-top { bottom: 96px; right: 20px; width: 44px; height: 44px; }
    .wa-float { bottom: 24px; left: 20px; width: 52px; height: 52px; font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-stats-card { grid-template-columns: 1fr 1fr; }
    .hero-stat-num { font-size: 1.4rem; }
}
