/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* If Funnel Sans is custom/local */
@font-face {
    font-family: 'Funnel Sans';
    src: url('fonts/FunnelSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* GLOBAL FONT SYSTEM */
/* Body text (default everywhere) */
body {
    font-family: 'Inter', sans-serif;
}

/* Paragraphs, spans, general content */
p,
span,
li,
a,
div {
    font-family: 'Inter', sans-serif;
}

/* Headings / Titles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Funnel Sans', sans-serif;
}

/* Buttons & interactive controls */
button,
a[href],
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font-family: 'Funnel Sans', sans-serif;
}

/* FAQ FIX */
.faq-question span {
    font-family: 'Funnel Sans', sans-serif;
}

.faq-answer p {
    font-family: 'Inter', sans-serif;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    display: none;
}

.nav-item:hover .nav-dropdown {
    display: flex;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-item:hover>.nav-link {
    color: #60a5fa;
}

.nav-item {
    position: relative;
    display: inline-flex;
}

.drop-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    font-size: 13px;
    color: #d1d5db;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.drop-option:hover,
.drop-option.active {
    background: #374151;
    color: #60a5fa;
}

.drop-option svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.drop-header-label {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 14px 6px;
    border-bottom: 1px solid #374151;
    margin-bottom: 4px;
}

#mobile-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: #111827;
    z-index: 99999;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    border-top: 1px solid #374151;
}

#mobile-sidebar.open {
    transform: translateY(0);
}

#sidebar-overlay {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    display: none;
}

#sidebar-overlay.open {
    display: block;
}

.sidebar-nav-link {
    display: block;
    padding: 14px 20px;
    color: #d1d5db;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid #1f2937;
    transition: background 0.15s, color 0.15s;
}

.sidebar-nav-link:hover {
    background: #1f2937;
    color: #60a5fa;
}

.sidebar-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    color: #d1d5db;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid #1f2937;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

/* SUB ACCORDION (LEVEL 2) */
.sidebar-accordion-btn.sub {
    padding-left: 28px;
    font-size: 0.85rem;
    background: #0f172a;
}

.sidebar-sub-panel {
    display: none;
    background: #020617;
}

.sidebar-sub-panel.open {
    display: block;
}

.sidebar-sub-panel .sidebar-sub-link {
    padding-left: 42px;
    font-size: 0.82rem;
}

.sidebar-accordion-btn:hover {
    background: #1f2937;
    color: #60a5fa;
}

.sidebar-accordion-btn .chevron {
    transition: transform 0.25s;
}

.sidebar-accordion-btn.active .chevron {
    transform: rotate(180deg);
}

.sidebar-accordion-panel {
    display: none;
    background: #0f172a;
}

.sidebar-accordion-panel.open {
    display: block;
}

.sidebar-sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 28px;
    color: #9ca3af;
    font-size: 0.85rem;
    border-bottom: 1px solid #1e293b;
    transition: color 0.15s, background 0.15s;
}

.sidebar-sub-link:hover {
    color: #60a5fa;
    background: #1e293b;
}

.sidebar-sub-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── HERO ── */
.hero-section {
    background: #171717;
}

.we-are-in {
    position: absolute;
    bottom: 24px;
    left: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    padding: 20px 24px;
    border-top-right-radius: 12px;
}

body {
    padding-top: 103px;
}

@media (max-width: 767px) {
    body {
        padding-top: 64px;
    }
}

/* ── SCROLL ANIMATIONS ── */
.anim {
    opacity: 0;
    will-change: opacity, transform;
}

.anim-up {
    transform: translateY(48px);
}

.anim-down {
    transform: translateY(-36px);
}

.anim-left {
    transform: translateX(-56px);
}

.anim-right {
    transform: translateX(56px);
}

.anim-scale {
    transform: scale(0.92);
}

.anim-fade {
    transform: none;
}

.anim.revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    transition:
        opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim[data-delay="100"].revealed {
    transition-delay: 0.10s;
}

.anim[data-delay="150"].revealed {
    transition-delay: 0.15s;
}

.anim[data-delay="200"].revealed {
    transition-delay: 0.20s;
}

.anim[data-delay="250"].revealed {
    transition-delay: 0.25s;
}

.anim[data-delay="300"].revealed {
    transition-delay: 0.30s;
}

.anim[data-delay="350"].revealed {
    transition-delay: 0.35s;
}

.anim[data-delay="400"].revealed {
    transition-delay: 0.40s;
}

.anim[data-delay="450"].revealed {
    transition-delay: 0.45s;
}

.anim[data-delay="500"].revealed {
    transition-delay: 0.50s;
}

.hero-anim.revealed {
    transition:
        opacity 0.55s ease-out,
        transform 0.55s ease-out;
}

.anim-line {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
}

.anim-line.revealed {
    opacity: 1;
    transform: scaleX(1);
    transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.feat-card {
    opacity: 0;
    transform: translateY(60px) rotateX(6deg);
    transform-origin: top center;
    transform-style: preserve-3d;
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease;
}

.feat-card.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.feat-card:nth-child(1) {
    transition-delay: 0s;
}

.feat-card:nth-child(2) {
    transition-delay: 0.15s;
}

.feat-card:nth-child(3) {
    transition-delay: 0.30s;
}

.feat-icon-box {
    transition: background 0.3s ease, transform 0.3s ease;
}

.feat-card:hover .feat-icon-box {
    transform: scale(1.04);
}

.feat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.07) 50%, transparent 60%);
    background-size: 200% 100%;
    background-position: -100% 0;
    pointer-events: none;
    border-radius: inherit;
}

.feat-card.revealed::after {
    animation: shimmer-once 0.9s 0.5s ease forwards;
}

@keyframes shimmer-once {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.feat-grid {
    perspective: 1000px;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.success-card {
    background: black;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 20px;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    cursor: default;
}

@media (max-width: 767px) {
    .success-card {
        padding: 18px 14px;
        gap: 10px;
        border-radius: 10px;
    }

    .success-card .card-content>p {
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0 !important;
    }

    .success-card .text-gray-400 {
        font-size: 0.78rem;
    }

    .success-card .text-gray-500 {
        font-size: 0.72rem;
    }

    .gradient-line {
        width: 3px;
    }
}

.gradient-line {
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(to bottom, #8B10B9, #00D4FF);
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.card-content>p {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
}

.card-content .text-gray-400 {
    margin-top: auto;
    padding-top: 24px;
}

.success-slider-outer {
    position: relative;
    overflow: hidden;
}

.success-slider-outer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, transparent, #e5e7eb);
    pointer-events: none;
    z-index: 5;
}

@media (max-width: 767px) {
    .success-slider-outer::after {
        display: none;
    }
}

#successSlider {
    display: flex;
    gap: 24px;
    will-change: transform;
    align-items: stretch;
}

#successSlider.animating {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 767px) {
    #successSlider {
        gap: 0;
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: black;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    border: none;
    font-size: 16px;
    transition: opacity 0.2s, background 0.2s, transform 0.2s;
}

.slider-btn:hover {
    opacity: 1;
    background: #1f2937;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.left-btn {
    left: -20px;
}

.slider-btn.right-btn {
    right: -20px;
}

@media (max-width: 767px) {
    .slider-btn.left-btn {
        left: 4px;
    }

    .slider-btn.right-btn {
        right: 4px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

.success-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.success-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: none;
    padding: 0;
}

.success-dot.active {
    background: #8B10B9;
    transform: scale(1.35);
}

/* SUCCESS SECTION mobile spacing */
@media (max-width: 767px) {
    section.py-20 {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    section.py-20 h2 {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }
}

@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll-clients {
    animation: scrollClients 25s linear infinite;
}

.animate-scroll-clients {
    animation: scrollClients 25s linear infinite;
}

/* footer shedule call button styles */
.liquid {
    background: linear-gradient(to bottom right, #2563eb, #9333ea, #ec4899);
    transform: translate(100%, -100%) scale(1.5);
    border-radius: 40% 60% 70% 30% / 40% 30% 70% 60%;
    transition: all 0.7s ease;
}

/* Hover effect */
.group:hover .liquid {
    transform: translate(0%, 0%) scale(2);
    border-radius: 50%;
}

/* ── ACTIVE PAGE NAV STATES ── */
.nav-link-active {
    color: #60a5fa !important;
    position: relative;
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(to right, #8B10B9, #5150E4);
    border-radius: 2px;
}

.drop-option-current {
    background: #1e3a5f !important;
    color: #93c5fd !important;
    font-weight: 600;
    border-left: 2px solid #60a5fa;
}

.sidebar-link-active {
    color: #60a5fa !important;
    background: #1e3a5f !important;
    border-left: 3px solid #60a5fa;
}

/* ── RIGHT-ALIGNED DROPDOWN (for nav items near the right edge) ── */
.nav-item .drop-right {
    left: auto;
    right: 0;
}

.cf-err {
    display: none;
}

.cf-err.show {
    display: block;
}

.cf-ok {
    display: none;
}

.cf-ok.show {
    display: flex;
}

.feature-image-slider {
    position: relative;
}

.feature-slide {
    opacity: 0;
    transform: scale(1.05);
    transition:
        opacity 0.8s ease,
        transform 1.2s ease;
}

.feature-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}