/* Bridge between Datawise's original styles and WISECP's data-driven partials.
   Datawise CSS stays untouched; only glue for WISECP components lives here. */

/* WISECP's app shell turns body into a flex column on wide screens. Datawise's
   full-width public sections are normal document-flow blocks. */
body.dw-page { display: block; }

/* Keep the first saved slide full width while Slick waits to initialize. */
#home .fon-slider .fon-item:not(.slick-slide) { width: 100%; flex: 0 0 100%; }

/* Saved Datawise carousels can remain hidden if the demo's Ajax bootstrap is absent. */
.dw-page .fon-content-carousel:not(.slick-initialized) {
    visibility: visible !important;
    opacity: 1 !important;
}

/* ---- Header ---------------------------------------------------------------- */
.dw-wordmark { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
#fon-header .site-menu .megamenuli:focus-within > .megamenu-container { opacity: 1; visibility: visible; }
#fon-header .nav-link:focus-visible,
#fon-header .header-buttons:focus-visible,
#mobmenu a:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 2px; }
#fon-header .dropdown-menu .dropdown-item.active,
#fon-header .dropdown-menu .dropdown-item:active { background-color: var(--theme-primary); color: #fff; }
/* WISECP account menu inside the dark Datawise header */
#fon-header .dw-account .account-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: 0; font-weight: 700; }
#fon-header.header-fixed .dw-account .account-avatar { background: var(--theme-primary); }
#fon-header .dw-account .account-menu { min-width: 260px; }
#fon-header .dw-account .account-menu .dropdown-item { display: flex; align-items: center; gap: 8px; }

/* Transparent header over a light slide: dark menu text, dark logo, light buttons. */
#fon-header.header-4 .site-menu > li > a,
#fon-header.header-4 .header-buttons,
#fon-header.header-4 .mobile-menu-toggle { transition: color .25s ease, background-color .25s ease, border-color .25s ease; }
#home #fon-header.header-4.dw-on-light:not(.header-fixed) .site-menu > li > a { color: var(--link-color); }
/* Menu hover/active accent chosen by bridge.js for contrast against the slide/header background. */
#fon-header.header-4:not(.header-fixed) .site-menu > li:hover > a,
#fon-header.header-4:not(.header-fixed) .site-menu > li > a:hover,
#fon-header.header-4:not(.header-fixed) .site-menu > li > a:focus-visible,
#home #fon-header.header-4.dw-on-light:not(.header-fixed) .site-menu > li:hover > a,
#home #fon-header.header-4.dw-on-light:not(.header-fixed) .site-menu > li > a:focus-visible { color: var(--dw-header-accent, var(--theme-primary)); }
#fon-header.header-4:not(.header-fixed) .site-menu > li > a:after { background: var(--dw-header-accent, var(--theme-primary)); }
#home #fon-header.header-4.dw-on-light:not(.header-fixed) .flogo { display: none; }
#home #fon-header.header-4.dw-on-light:not(.header-fixed) .hlogo { display: inline-block; }
#home #fon-header.header-4.dw-on-light:not(.header-fixed) .dw-wordmark { color: var(--link-color); }
#home #fon-header.header-4.dw-on-light:not(.header-fixed) .header-buttons:not(.btn) {
    color: var(--text-color) !important; border-color: rgba(var(--theme-secondary-rgb), .12); background-color: rgba(255, 255, 255, .7);
}
#home #fon-header.header-4.dw-on-light:not(.header-fixed) .mobile-menu-toggle { --fon-link-color: var(--theme-secondary); color: var(--theme-secondary); }
#home .fon-slider .fon-item.light-bg:before { display: none; }
@media (prefers-reduced-motion: reduce) {
    #fon-header.header-4 .site-menu > li > a, #fon-header.header-4 .header-buttons, #fon-header.header-4 .mobile-menu-toggle { transition: none; }
}

/* ---- Datawise plan cards (home + product category pages) ------------------------ */
.dw-plan-card.plan-card { transition: none; text-align: center; }
.dw-plan-card.plan-card:hover { transform: none; box-shadow: none; }
.dw-plan-card { height: 100%; display: flex; flex-direction: column; }
.dw-plan-card .pricing-body { flex: 1; }
.dw-plan-card .price-special { font-size: 12px; line-height: 1; align-items: center; }
.dw-plan-card .dw-all-features { display: inline-flex; align-items: center; gap: 6px; margin: 16px auto 0; padding: 0; border: 0; background: none;
    font-size: 13px; font-weight: 600; color: var(--link-color); text-decoration: none; }
.dw-plan-card .dw-all-features:hover { color: var(--theme-primary); }
.dw-plan-card .dw-all-features[aria-expanded="true"] i { transform: rotate(90deg); }
.dw-plan-card .dw-all-features i { transition: transform .2s ease; }
.dw-plan-grid { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .dw-plan-card .dw-all-features i { transition: none; } }

/* ---- Datawise comparison table (category pages) --------------------------------
   Datawise lays the product columns out with slick; here they are a native scroll strip
   (swipe on touch, arrow buttons on desktop) kept in sync between header and body by bridge.js. */
.dw-compare { --dw-ct-cols: min(3, var(--dw-ct-n)); }
@media (max-width: 991.98px) { .dw-compare { --dw-ct-cols: min(2, var(--dw-ct-n)); } }
@media (max-width: 767.98px) { .dw-compare { --dw-ct-cols: 1; } }
.dw-compare .ctProductsWrapper { position: relative; min-width: 0; }
.dw-compare .ctProductColumns { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dw-compare .ctProductColumns::-webkit-scrollbar { display: none; }
.dw-compare .ctProduct { flex: 0 0 calc(100% / var(--dw-ct-cols)); width: auto; max-width: none; scroll-snap-align: start; }
.dw-compare .ctHeader .ctProduct > .top-info { height: 100%; padding: 30px 20px; }
/* Label and value rows must stay the same height to line up across the two lists. */
.dw-compare .ctFeaturesList li { line-height: 24px; min-height: 45px; }
.dw-compare .ctProduct .ctFeaturesList li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-compare .ctHeader .ctFeatures .top-info { height: 100%; }
.dw-compare .ctBody { overflow: hidden; }
.dw-compare .popular-badge { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 2px 12px; border-radius: 0 0 6px 6px;
    background: var(--bs-success); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.dw-compare .dw-ct-arrow { position: absolute; top: 50%; z-index: 3; width: 36px; height: 36px; margin-top: -18px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--bs-border-color); border-radius: 50%; background: #fff; color: var(--theme-secondary); box-shadow: 0 4px 12px rgba(25,48,91,.12); }
.dw-compare .dw-ct-arrow[hidden] { display: none; }
.dw-compare .dw-ct-arrow:hover:not(:disabled) { color: #fff; background: var(--theme-primary); border-color: var(--theme-primary); }
.dw-compare .dw-ct-arrow:disabled { opacity: .35; cursor: default; }
.dw-compare .dw-ct-arrow:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 2px; }
.dw-compare .dw-ct-prev { left: -10px; }
.dw-compare .dw-ct-next { right: -10px; }
@media (max-width: 575.98px) {
    .dw-compare .comparisonTable .top-info { padding: 20px 12px; }
    .dw-compare .ctFeaturesList li { padding: 10px; font-size: 13px; }
}

/* ---- Campaign countdown tiles (Datawise inline styles) ----------------------- */
.dw-countdown-default > span { background: var(--bs-theme-light); border-radius: .25rem; padding: 10px; width: 50px; }
.dw-countdown-featured > span { background: #fff; border-radius: .25rem; padding: 10px; width: 50px; }

/* ---- Home contact form -------------------------------------------------------- */
.dw-contact-form .captcha-img, .dw-contact-form [data-captcha] img { border-radius: .375rem; }

/* ---- Top notice bar (Datawise shows it with its own script) ------------------ */
#dw-top-notice { display: block !important; position: relative; z-index: 2001; }
#dw-top-notice .top-notice-bar { display: block !important; padding: 10px 0; }
#dw-top-notice .top-notice-btn { color: #fff; background: none; border: 0; }
/* Over the slider the header is absolute at top:0; let it start below the notice instead. */
#home #dw-top-notice + #fon-header.header-4:not(.header-fixed) { top: var(--dw-notice-h, 0px); }

/* ---- Mobile menu ------------------------------------------------------------- */
#mobmenu .inner { display: none; }
#mobmenu .inner.show { display: block; }

/* ---- Footer ------------------------------------------------------------------ */
.footer .footer-top { display: block; grid-template-columns: none; padding-bottom: 0; }
.footer .ebulten-form .wui-collapse:not(.wui-show) { display: none; }
.footer .ebulten-form .wui-collapse.wui-show { display: block; }
.footer .dw-nl-consent .form-check-input { border-color: rgba(255,255,255,.7); background-color: transparent; }
.footer .dw-nl-consent .form-check-input:checked { background-color: var(--theme-secondary); border-color: var(--theme-secondary); }
.footer .ebultentitle { line-height: 1.2; margin-bottom: 4px; }
.footer .dw-footer-status { color: rgba(255,255,255,.75); }
.footer .dw-status { display: inline-flex; align-items: center; gap: 8px; color: #fff; white-space: nowrap; }
.footer .dw-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #20bd6b; box-shadow: 0 0 0 3px rgba(32,189,107,.18); }
.footer .dw-payments .fa-brands { font-size: 30px; line-height: 1; color: rgba(255,255,255,.8); }
.footer .footer-bottom a { color: inherit; }
.footer .footer-bottom a:hover { color: #fff; }

/* ---- Home: WISECP data rendered in Datawise markup --------------------------- */
/* Datawise's search pill with WISECP's single search mode (the AI option has no backend). */
.ai-toggle-container #btn-classic { min-width: 124px; white-space: nowrap; }
.ai-toggle-container .ai-toggle-slider { left: 4px !important; width: calc(100% - 8px) !important; transform: none !important; }
.spot-tld .dw-tld-text { font-size: 1.1rem; white-space: nowrap; }
.dw-server-cta p { color: var(--text-color); }
/* Without blog posts the logo row follows the contact band directly; clear its overhanging image. */
@media (min-width: 992px) { #section-meet-us-project + #section-client-logos { padding-top: 200px !important; } }
.datawise-contact-action { display: flex; align-items: center; justify-content: center; min-height: 150px; }
.native-testimonials { padding: 85px 0; background: #f6f8fd; }
.native-testimonial-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.native-testimonial-card { margin: 0; padding: 24px; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(25,48,91,.07); }
.native-testimonial-card blockquote { color: #334155; line-height: 1.7; }
.native-testimonial-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.native-testimonial-card figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.native-testimonial-card figcaption span { color: #64748b; font-size: 12px; }
.native-articles { padding: 85px 0; background: #f6f8fd; }
.native-article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.native-article-grid .articles-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ---- Inner WISECP pages under the Datawise header ---------------------------- */
/* The Datawise newsletter card overlaps the section above it; leave room on inner pages. */
body.dw-page:not(#home) > main { min-height: 40vh; padding-bottom: 96px; }

@media (max-width: 991.98px) {
    .native-article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575.98px) {
    .native-testimonial-grid,
    .native-article-grid { grid-template-columns: 1fr; }
    .footer .dw-payments .fa-brands { font-size: 26px; }
}
