html {
    scroll-behavior: smooth;
}

/* Trust Badges */
.trust-badges-bar {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
}

.trust-badges-bar .badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
}

.trust-badges-bar .badge-item i {
    font-size: 22px;
    color: var(--theme-color1, #2563eb);
}

.trust-badges-bar .badge-item span {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* How We Work */
.how-we-work-section {
    padding: 80px 0;
}

.how-we-work-section .process-step {
    text-align: center;
    padding: 20px 15px;
    position: relative;
}

.how-we-work-section .process-step .step-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
}

.how-we-work-section .process-step h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

.how-we-work-section .process-step p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

@media (min-width: 992px) {
    .how-we-work-section .process-timeline {
        display: flex;
        position: relative;
    }

    .how-we-work-section .process-timeline::before {
        content: '';
        position: absolute;
        top: 50px;
        left: 12.5%;
        right: 12.5%;
        height: 2px;
        background: #e0e0e0;
        z-index: 0;
    }

    .how-we-work-section .process-step {
        flex: 1;
        z-index: 1;
    }
}

@media (max-width: 991px) {
    .how-we-work-section .process-step {
        border-left: 2px solid #e0e0e0;
        text-align: left;
        padding-left: 25px;
        margin-left: 15px;
    }

    .how-we-work-section .process-step .step-icon {
        display: inline-block;
        margin-right: 10px;
        font-size: 24px;
        vertical-align: middle;
    }
}

/* Homepage FAQ */
.home-faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Counter plus suffix */
.counter-suffix {
    font-size: inherit;
    font-weight: inherit;
}

/* Header Consultation CTA */
.header-consultation-cta {
    margin-left: 15px;
}

.header-consultation-cta .theme-btn {
    padding: 12px 22px;
    font-size: 14px;
    border-radius: 6px;
    white-space: nowrap;
}

.header-consultation-cta .theme-btn .btn-title-mobile {
    display: none;
}

@media (max-width: 1199px) {
    .header-consultation-cta .theme-btn .btn-title-desktop {
        display: none;
    }

    .header-consultation-cta .theme-btn .btn-title-mobile {
        display: inline;
    }

    .header-consultation-cta .theme-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 72px;
    right: 24px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Stack floating buttons above scroll-to-top (40px) + gap */
.scroll-to-top {
    z-index: 10001;
}

body.has-tawk .scroll-to-top {
    bottom: 90px !important;
}

body.has-tawk .whatsapp-float {
    bottom: 142px;
}

.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.whatsapp-float i {
    font-size: 22px;
}

@media (max-width: 767px) {
    .whatsapp-float {
        padding: 14px;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
    }

    .whatsapp-float .whatsapp-label {
        display: none;
    }
}

/* Lead Capture Popup */
.lead-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lead-popup-overlay.active {
    display: flex;
}

.lead-popup-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    padding: 35px 30px 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lead-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px;
}

.lead-popup-close:hover {
    color: #333;
}

.lead-popup-modal h3 {
    margin-bottom: 8px;
    font-size: 22px;
}

.lead-popup-modal .lead-subheading {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.lead-popup-modal--grow-crm {
    max-width: 560px;
    padding-bottom: 20px;
}

/* Grow CRM embedded form */
.grow-crm-form-embed {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.grow-crm-form-embed iframe {
    width: 100%;
    border: 0;
    display: block;
}

.grow-crm-form-embed--contact iframe {
    min-height: 650px;
}

.grow-crm-form-embed--popup {
    margin-top: 8px;
}

.grow-crm-form-embed--popup iframe {
    min-height: 420px;
}

.lead-popup-modal .form-group {
    margin-bottom: 14px;
}

.lead-popup-modal input,
.lead-popup-modal select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Cookie Consent Banner */
.cookie-consent-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 16px 24px;
    z-index: 9998;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.cookie-consent-bar.active {
    display: block;
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-inner p {
    margin: 0;
    font-size: 14px;
    color: #555;
    flex: 1;
    min-width: 200px;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-actions .btn-accept {
    background: var(--theme-color1, #2563eb);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.cookie-consent-actions .btn-learn-more {
    color: var(--theme-color1, #2563eb);
    border: 1px solid var(--theme-color1, #2563eb);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    background: transparent;
}

.cookie-consent-actions .btn-learn-more:hover {
    background: var(--theme-color1, #2563eb);
    color: #fff;
}

@media (max-width: 576px) {
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* AI Highlight Section */
.ai-highlight-section {
    padding: 80px 0;
    background: #fff;
}

.ai-highlight-section .check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.ai-highlight-section .check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #555;
}

.ai-highlight-section .check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--theme-color1, #2563eb);
    font-weight: 700;
}

.ai-highlight-cards {
    display: grid;
    gap: 16px;
}

.highlight-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
}

.highlight-card i {
    font-size: 28px;
    color: var(--theme-color1, #2563eb);
    margin-bottom: 12px;
}

.highlight-card h5 {
    margin-bottom: 8px;
}

.highlight-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Industries */
.industries-section,
.technologies-section,
.lead-magnets-section,
.final-cta-section,
.services-intro-section,
.estimate-intro-section {
    padding: 80px 0;
}

.industry-card,
.lead-magnet-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 28px 24px;
    height: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.industry-card:hover,
.lead-magnet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.industry-card i,
.lead-magnet-card i {
    font-size: 30px;
    color: var(--theme-color1, #2563eb);
    margin-bottom: 14px;
}

.industry-card h5,
.lead-magnet-card h5 {
    margin-bottom: 10px;
}

.industry-card p,
.lead-magnet-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 14px;
}

.lead-magnet-card a {
    color: var(--theme-color1, #2563eb);
    font-weight: 600;
    text-decoration: none;
}

/* Technologies */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tech-badge {
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
}

/* Final CTA */
.final-cta-box,
.service-cta-box {
    background: linear-gradient(135deg, var(--theme-color1, #2563eb), #1e40af);
    color: #fff;
    border-radius: 16px;
    padding: 50px 30px;
}

.final-cta-box h2,
.service-cta-box h3 {
    color: #fff;
    margin-bottom: 12px;
}

.final-cta-box p,
.service-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.service-cta-section {
    padding: 0 0 80px;
}

.consultation-banner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
}

.consultation-banner h3 {
    margin-bottom: 8px;
}

.consultation-banner p {
    margin: 0;
    color: #64748b;
}

/* Service pages */
.service-hero-intro {
    padding: 40px 0 0;
}

.service-hero-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.service-subheadline {
    font-size: 18px;
    color: #444;
    margin-bottom: 20px;
}

.service-rich-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.service-rich-content p {
    color: #555;
    line-height: 1.8;
}

.related-service-card,
.estimate-sidebar-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    height: calc(100% - 16px);
}

.related-service-card .icon {
    color: var(--theme-color1, #2563eb);
    font-size: 24px;
    margin-bottom: 10px;
    display: inline-block;
}

.services-page-grid .service-card-enhanced .content-box {
    padding: 24px;
}

.services-page-grid .service-card-enhanced .text {
    color: #666;
    font-size: 14px;
    margin: 12px 0;
}

.custom-page-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.custom-page-body h2,
.custom-page-body h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.custom-page-body ul,
.custom-page-body ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.custom-page-body li {
    margin-bottom: 8px;
}

/* Calculators */
.calculator-section {
    padding: 0 0 80px;
}

.calculator-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.calculator-tab {
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
}

.calculator-tab.active {
    background: var(--theme-color1, #2563eb);
    border-color: var(--theme-color1, #2563eb);
    color: #fff;
}

.calculator-panel {
    display: none;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.calculator-panel.active {
    display: block;
}

.calculator-form .form-group {
    margin-bottom: 16px;
}

.calculator-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.calculator-form select,
.calculator-form input {
    width: 100%;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
}

.calculator-result {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    min-height: 100%;
}

.calculator-result h4 {
    margin-bottom: 16px;
}

.calculator-result .result-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.calculator-result .result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.calculator-result .result-label {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.calculator-result .result-value {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.calculator-result .result-note {
    color: #64748b;
    font-size: 14px;
    margin-top: 16px;
}

/* About section: prevent CTA button overlapping author info */
.about-section .content-column .other-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-right: 0;
}

.about-section .content-column .other-info .author-info {
    flex: 1 1 auto;
    min-width: 0;
}

.about-section .content-column .other-info .theme-btn {
    position: relative;
    right: auto;
    top: auto;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .about-section .content-column .other-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-section .content-column .other-info .theme-btn {
        margin-top: 10px;
    }
}

/* Homepage: prevent service cards overlapping AI highlight section */
.service-block-new-3.at-home6 {
    margin-top: 0 !important;
}

.ai-highlight-section + .services-section-home3 {
    padding-top: 20px !important;
}

/* Main header: keep nav items on one row (sticky header is already compact) */
@media (min-width: 992px) {
    .header-style-two .header-lower .main-box {
        flex-wrap: nowrap;
    }

    .header-style-two .header-lower .main-box .nav-outer {
        /* flex: 1 1 auto;
        min-width: 0; */
    }

    .header-style-two .header-lower .main-menu .navigation {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        float: none;
        gap: 15px;
    }

    .header-style-two .header-lower .main-menu .navigation > li {
        float: none;
        flex-shrink: 0;
        white-space: nowrap;
        margin-right: 24px !important;
        padding: 20px 0;
    }

    .header-style-two .header-lower .main-menu .navigation > li > a {
        font-size: 15px;
        white-space: nowrap;
    }

    .header-style-two .header-lower .main-box .outer-box {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
}

@media (min-width: 992px) and (max-width: 1799px) {
    .header-style-two .header-lower .logo-box {
        min-width: 200px;
        margin-right: 24px;
        padding-left: 24px;
    }

    .header-style-two .header-lower .main-box {
        padding-right: 24px;
    }

    .header-style-two .header-lower .main-box .outer-box .search-btn {
        display: none;
    }

    .header-style-two .header-lower .main-menu .navigation > li {
        margin-right: 20px !important;
    }
}

@media (min-width: 992px) and (max-width: 1499px) {
    .header-style-two .header-lower .main-menu .navigation > li {
        margin-right: 16px !important;
    }

    .header-style-two .header-lower .main-menu .navigation > li > a {
        font-size: 14px;
    }

    .header-consultation-cta .theme-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    .ai-highlight-section,
    .industries-section,
    .technologies-section,
    .lead-magnets-section,
    .final-cta-section,
    .services-intro-section,
    .estimate-intro-section {
        padding: 60px 0;
    }

    .service-cta-box .text-lg-end {
        text-align: left !important;
        margin-top: 16px;
    }
}
