/* =========================================
   Biz World — Custom Styles (supplements Tailwind)
   ========================================= */

/* --- Smooth Scroll --- */
html {
    scroll-padding-top: 80px;
}

/* --- Hero pattern overlay --- */
.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(201,168,76,0.06) 0%, transparent 50%),
                       radial-gradient(circle at 75% 75%, rgba(201,168,76,0.04) 0%, transparent 50%);
}

/* --- Select dropdown arrows --- */
.select-arrow-light {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.select-arrow-dark {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* --- WhatsApp pulse animation --- */
.whatsapp-pulse {
    animation: wa-pulse 2.5s ease-in-out infinite;
}

@keyframes wa-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37,211,102,0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37,211,102,0.5),
                    0 0 0 12px rgba(37,211,102,0.08);
    }
}

/* --- Back to top visible state --- */
#backToTop.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* --- Mobile toggle animation --- */
#mobileToggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobileToggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobileToggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Scroll-triggered fade-in --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Counter number tabular --- */
.counter {
    font-variant-numeric: tabular-nums;
}

/* --- Navbar scroll shadow --- */
#navbar.scrolled {
    box-shadow: 0 2px 20px rgba(10,31,92,0.06);
}

/* --- Stats divider fix for mobile --- */
@media (max-width: 1023px) {
    .divide-x > :not(:first-child) {
        border-left-width: 0;
    }
    .divide-x > :nth-child(odd) {
        border-right: 1px solid #f3f4f6;
    }
    .divide-x > :nth-child(1),
    .divide-x > :nth-child(2) {
        border-bottom: 1px solid #f3f4f6;
    }
}

/* --- Focus ring override for accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* --- Select option styling (Firefox) --- */
select option {
    background: #fff;
    color: #374151;
}

.select-arrow-light option {
    background: #0A1F5C;
    color: #fff;
}

/* --- FAQ accordion on visa pages --- */
.faq-open .faq-answer {
    display: block !important;
}
.faq-open .faq-chevron {
    transform: rotate(180deg);
}

/* --- Mobile accordion for nav --- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}
.mobile-accordion.open .accordion-content {
    max-height: 800px;
    opacity: 1;
    padding-bottom: 4px;
}
.mobile-accordion.open > .accordion-toggle > svg:last-child {
    transform: rotate(180deg);
}
