/* 
 * Consultancy Landing Page Styles
 * Scoped to #consultancy-home-wrapper
 */

#consultancy-home-wrapper {
    background-color: #ffffff;
    /* Changed from f8fafc */
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#consultancy-home-wrapper .entry-content {
    max-width: none;
    padding: 0;
}

/* Section Spacing - Reduced for Compact Feel */
#consultancy-home-wrapper section,
#consultancy-home-wrapper .wp-block-group.consultancy-section {
    padding: 3rem 0;
    /* Reduced from 5rem */
    width: 100%;
    position: relative;
}

#consultancy-home-wrapper section.compact-section {
    padding: 1.5rem 0;
}

/* Typography Overrides */
#consultancy-home-wrapper h1,
#consultancy-home-wrapper h2,
#consultancy-home-wrapper h3 {
    color: #0f172a;
    font-weight: 700 !important;
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#consultancy-home-wrapper h1 {
    font-size: clamp(32px, 5vw, 38px) !important;
    text-align: center;
}

#consultancy-home-wrapper h2 {
    font-size: clamp(22px, 4vw, 26px) !important;
    text-align: center;
}

#consultancy-home-wrapper h3 {
    font-size: 1.15rem !important;
    margin-bottom: 0.75rem;
}

#consultancy-home-wrapper p {
    font-size: 15px;
    color: #64748b;
    /* Slightly softer color */
    max-width: 700px;
    margin-bottom: 1.25rem;
}

/* Section Background Variations */
.bg-subtle-white {
    background-color: #ffffff;
}

.bg-subtle-gray {
    background-color: #f8fafc;
}

.bg-light-blue {
    background-color: #f0f7ff;
}

.bg-gradient-soft {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

/* Trust Badges Section */
.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    /* Increased gap as requested */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.trust-badge-item {
    text-align: center;
    padding: 1rem;
}

.trust-badge-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-badge-item h3 {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
    text-align: center !important;
}

.trust-badge-item p {
    font-size: 0.8rem !important;
    line-height: 1.4;
    margin: 0 auto;
    color: #64748b;
}

/* Upload Dropzone (Rectangular) */
.hero-upload-container {
    max-width: 650px;
    margin: 2.5rem auto 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-upload-container:hover {
    border-color: #2563eb;
    background: #ffffff;
}

.hero-upload-container .performbiz-upload-widget {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* 30% Smaller font utility */
.text-caption-sm {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    margin-bottom: 0.75rem !important;
    display: block;
}

/* Rounded Cards & Shadows */
#consultancy-home-wrapper .consultancy-card,
#consultancy-home-wrapper .wp-block-group.consultancy-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    height: auto;
    min-height: 0;
    /* Remove forced min-height so cards stay compact */
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Top-align content instead of centring */
}

/* Card hover lift */
#consultancy-home-wrapper .consultancy-card:hover,
#consultancy-home-wrapper .wp-block-group.consultancy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* Increased horizontal gap for core grids */
#consultancy-home-wrapper .wp-block-columns.container {
    gap: 3rem;
}

/* Dashboard Footer Override */
.dashboard-main .site-footer {
    background: transparent;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid #e2e8f0;
}

.dashboard-main .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem;
}

.dashboard-main .footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
    margin-top: 2rem;
    color: #94a3b8;
}

/* HERO ANIMATION CONTAINER */
.hero-animation-container {
    perspective: 1000px;
    padding: 20px;
}

.animation-stage {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 16/9;
}

.dashboard-base {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dash-header {
    height: 32px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.dash-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dash-dot.red {
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.dash-dot.yellow {
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.dash-dot.green {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.scene {
    position: absolute;
    top: 32px;
    left: 0;
    width: 100%;
    height: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

/* TIMINGS: Total 12s loop (simplified for CSS) 
   Scene 1: 0-3s
   Scene 2: 3-6s
   Scene 3: 6-12s
*/
.scene-upload {
    animation: scene1 9s infinite;
}

.scene-processing {
    animation: scene2 9s infinite;
}

.scene-report {
    animation: scene3 9s infinite;
}

@keyframes scene1 {

    0%,
    30% {
        opacity: 1;
    }

    35%,
    100% {
        opacity: 0;
    }
}

@keyframes scene2 {

    0%,
    30% {
        opacity: 0;
    }

    35%,
    60% {
        opacity: 1;
    }

    65%,
    100% {
        opacity: 0;
    }
}

@keyframes scene3 {

    0%,
    60% {
        opacity: 0;
    }

    65%,
    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* SCENE 1: UPLOAD */
.file-icon {
    width: 60px;
    height: 80px;
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transform: translateX(-50px);
    animation: fileSlide 9s infinite;
}

@keyframes fileSlide {
    0% {
        transform: translateX(-150px);
        opacity: 0;
    }

    5% {
        transform: translateX(0);
        opacity: 1;
    }

    25% {
        transform: scale(0.9);
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.file-label {
    font-size: 10px;
    font-weight: bold;
    color: #2563eb;
}

.file-name {
    font-size: 8px;
    color: #64748b;
    margin-top: 4px;
}

.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px 30px;
    width: 80%;
    text-align: center;
}

.upload-fill {
    height: 4px;
    background: #2563eb;
    width: 0%;
    margin-top: 8px;
    border-radius: 2px;
    animation: fillBar 9s infinite;
}

@keyframes fillBar {
    10% {
        width: 0%;
    }

    30% {
        width: 100%;
    }

    100% {
        width: 100%;
    }
}

/* SCENE 2: PROCESSING */
.node-network {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.node {
    width: 12px;
    height: 12px;
    background: #2563eb;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 0 4px #dbeafe;
}

.n1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.n2 {
    bottom: 0;
    left: 0;
}

.n3 {
    bottom: 0;
    right: 0;
}

.n4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.connections {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.processing-badge {
    background: #dcfce7;
    color: #166534;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
    opacity: 0;
    animation: badgePop 9s infinite;
}

@keyframes badgePop {
    45% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    55% {
        transform: scale(1);
    }

    65% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* SCENE 3: REPORT */
.chart-container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 100px;
    margin-bottom: 20px;
    position: relative;
}

.chart-col {
    width: 40px;
    border-radius: 4px 4px 0 0;
}

.revenue {
    height: 0;
    background: #94a3b8;
    animation: barGrowRev 9s infinite;
}

.expense {
    height: 0;
    background: #cbd5e1;
    animation: barGrowExp 9s infinite;
}

.chart-line.profit {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    border-top: 3px solid #10b981;
    transform: rotate(-10deg);
    transform-origin: left bottom;
    opacity: 0;
    animation: lineGrow 9s infinite;
}

@keyframes barGrowRev {
    65% {
        height: 0;
    }

    70% {
        height: 80px;
    }

    100% {
        height: 80px;
    }
}

@keyframes barGrowExp {
    65% {
        height: 0;
    }

    70% {
        height: 60px;
    }

    75% {
        height: 40px;
    }

    100% {
        height: 40px;
    }
}

@keyframes lineGrow {
    75% {
        opacity: 0;
        transform: rotate(0);
    }

    80% {
        opacity: 1;
        transform: rotate(-15deg);
    }

    100% {
        opacity: 1;
        transform: rotate(-25deg);
    }
}

.final-text {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    opacity: 0;
    animation: textFade 9s infinite;
}

@keyframes textFade {
    80% {
        opacity: 0;
        transform: translateY(10px);
    }

    85% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 1;
    }
}

/* Button Refinement */
#consultancy-home-wrapper .wp-block-button__link {
    font-size: 14px;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    border: none;
}

#consultancy-home-wrapper .is-style-primary .wp-block-button__link {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

#consultancy-home-wrapper .is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

/* 
   -----------------------------------------
   CONSULTANCY HEADER & FOOTER STYLES
   -----------------------------------------
*/

/* Header - Consultancy Specific */
.consultancy-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.consultancy-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consultancy-nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.consultancy-nav-desktop .nav-link {
    font-weight: 500;
    color: #475569;
    font-size: 0.95rem;
    text-decoration: none;
}

.consultancy-nav-desktop .nav-link:hover {
    color: #2563eb;
}

/* Hamburger Button */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    margin-left: 1rem;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1e293b;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    right: 0;
}

.close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #475569;
    margin-bottom: 2rem;
}

.mobile-nav-content ul {
    list-style: none;
    padding: 0;
}

.mobile-nav-content li {
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Mobile Menu Styling */
.mobile-nav-content {
    overflow-y: auto;
    height: 100%;
}

/* User Profile Section (Mobile) */
.mobile-user-profile {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.header-avatar.large {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info .greeting {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.user-info .logout-link {
    font-size: 0.85rem;
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
}

.mobile-dashboard-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 0.75rem;
    border-radius: 6px;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-dashboard-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Accordion Menu List */
.consultancy-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.consultancy-mobile-list>li {
    border-bottom: 1px solid #f1f5f9;
}

.consultancy-mobile-list>li>a {
    display: block;
    padding: 10px 0;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.menu-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    min-height: 40px;
}

.menu-item-has-children.open .sub-menu {
    max-height: 500px;
    margin-bottom: 1rem;
}

.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f8fafc;
    border-radius: 8px;
}

.sub-menu li a {
    display: block;
    padding: 8px 1rem;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #475569;
    text-decoration: none;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.sub-menu li a:hover {
    color: #2563eb;
    background: #eff6ff;
}

.mobile-login-item {
    margin-top: 2rem;
    border-bottom: none !important;
}

.btn-login-mobile {
    display: block;
    text-align: center;
    background: #0f172a;
    color: #ffffff !important;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Footer - Consultancy Specific */
.consultancy-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #38bdf8;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Hero Section */
#consultancy-home-wrapper .consultancy-hero {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#consultancy-home-wrapper .consultancy-hero h1 {
    text-align: left;
    margin-left: 0;
}

#consultancy-home-wrapper .consultancy-hero p {
    text-align: left;
    margin-left: 0;
}

/* Hero image: shadow + rounded corners, fills column width */
#consultancy-home-wrapper .hero-feature-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    width: 100%;
    height: auto;
    display: block;
}

#consultancy-home-wrapper .hero-feature-image {
    margin: 0 !important;
}

/* ---- Trust badges: horizontal flex, controlled gap ---- */
#consultancy-home-wrapper .trust-badges .wp-block-group,
#consultancy-home-wrapper .trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
    margin-top: 0.75rem;
}

#consultancy-home-wrapper .trust-badges p.text-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    white-space: nowrap;
}

/* ---- CTA section: center button ---- */
#consultancy-home-wrapper .cta-section .wp-block-buttons {
    justify-content: center !important;
    display: flex !important;
}

/* Upload Form Integration */
#consultancy-home-wrapper .upload-form-container {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

/* Step Layout Styling */
#consultancy-home-wrapper .step-number {
    width: 36px;
    height: 36px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

#consultancy-home-wrapper .step-item p {
    font-weight: 600;
    color: #0f172a;
}

/* Layout Utilities matches theme container */
#consultancy-home-wrapper .container {
    max-width: 1100px;
}

@media (max-width: 768px) {
    #consultancy-home-wrapper section {
        padding: 2.5rem 0;
        /* Reduced from 4rem */
    }

    #consultancy-home-wrapper .consultancy-hero {
        padding: 3rem 0;
    }

    #consultancy-home-wrapper .consultancy-hero h1,
    #consultancy-home-wrapper .consultancy-hero p {
        text-align: center;
    }
}

/* Scroll Down Indicator (Hero) */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.scroll-indicator svg {
    width: 32px;
    height: 32px;
    color: #64748b;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Floating Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #0f172a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1001;
    border: none;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: #2563eb;
    transform: translateY(-5px);
}

#back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}