/* =====================================================================
   DARK PASS  (17 Nov 2026, James: "dark throughout, no bright pages")
   ---------------------------------------------------------------------
   Turns the pages that were still white/light dark, to match the
   homepage, the free tools and the Free Assessment.
   Loaded LAST in <head> (src/shared/dark.html), after each page's own
   <style>, so equal-strength rules here win without editing every page.
   Pages: products, pricing, faq, about-us, contact-us, services,
   service/*.html. (Legal pages + order-complete: assets/css/legal.css.)
   Colours come from p4-tokens.css. Contrast checked to WCAG 2.2 AA.
   ===================================================================== */

/* ---- 1. Theme pages (WordPress/Cyberguard base) -------------------- */
:root {
    --body-bg-color: #0B0C2A;  --body-bg-color-rgb: 11, 12, 42;
    --secondary-color: #B4B8D0; --secondary-color-rgb: 180, 184, 208;   /* body text: 9.6:1 on the page */
}
/* Theme headings + plain links used --link-color (near-black). Set them here instead of changing the variable,
   because the theme's button hovers also use it as a background. */
h1, h2, h3, h4, h5, h6 { color: #FFFFFF; }
a { color: #FFFFFF; }
a:hover { color: #A9C4F2; }
.pxl-service-sidebar1 .pxl-item-inner .pxl-item .pxl-item-link { color: #FFFFFF; }
body { background-color: var(--p4-bg, #0B0C2A); color: var(--secondary-color); }
/* Small blue text: the light-background blue (#3569BB) is too dark here; use the dark-background one. */
.pxl-heading .pxl-item--subtitle { --primary-color: #7DA7EA; }
.p4-link-blue { color: #7DA7EA !important; }

/* ---- 2. Products / Pricing / FAQ (.p4p) ----------------------------- */
.p4p { --p4p-ink: #FFFFFF; --p4p-muted: #B4B8D0; --p4p-line: rgba(255, 255, 255, 0.1); --p4p-soft: var(--p4-surface, #191B36); }
.p4p-sec:not(.p4p-sec--dark) { --p4p-blue: #7DA7EA; }
.p4p-sec:not(.p4p-sec--dark):not(.p4p-sec--soft) { background-color: var(--p4-bg-section, #0F1029); }
.p4p-sec--soft { border-color: rgba(255, 255, 255, 0.06); }
.p4p-btn--line { color: #FFFFFF !important; border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.04); }
.p4p-seg { background: var(--p4-surface, #191B36); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.p4p-plain { background: var(--p4-card-grad, linear-gradient(180deg, #1C1D3D 0%, #22306A 100%)); border-color: rgba(125, 160, 255, 0.18); box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.7); }
.p4p-table-wrap { background: var(--p4-surface, #191B36); }
.p4p-table tbody tr { background: transparent; }
@media (max-width: 760px) { .p4p-table tbody tr { background: var(--p4-surface, #191B36); box-shadow: none; } }
.p4p-faq summary::after { border-color: rgba(255, 255, 255, 0.3); }
.p4p-faq details[open] summary::after { background-color: rgba(125, 160, 255, 0.18); }
/* FAQ page tools */
.p4f-tools { background: var(--p4-bg-section, #0F1029); }
.p4f-toggle { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); }
.p4f-toggle[aria-pressed="true"] { background: rgba(74, 129, 211, 0.2); border-color: #7DA7EA; color: #FFFFFF; }
.p4f-copy { background: rgba(255, 255, 255, 0.04); color: #B4B8D0; }

/* ---- 3. Light-mode colours that were typed into single elements ------ */
/* Service pages: the big headline at the top (assets/css/service-page.css) */
.elementor-741 .elementor-element.elementor-element-b0b8dbf .pxl-text-editor { color: #FFFFFF; }
/* About + Contact: headings/links set to near-black in their Elementor styles */
.elementor-23 .pxl-text-editor, .elementor-25 .pxl-text-editor { color: inherit; }
.elementor-25 .pxl-list a { color: #FFFFFF !important; }
.elementor-25 .pxl-list a:after { background-color: #FFFFFF !important; }
.elementor-25 .pxl-list .pxl--item .pxl-item--icon i { color: #7DA7EA !important; }
.elementor-25 .pxl-list .pxl--item .pxl-item--icon svg path { fill: #7DA7EA !important; }
.elementor-25 .elementor-element.elementor-element-67bac82:not(.elementor-motion-effects-element-type-background) { background-color: var(--p4-surface, #191B36); }

/* ---- 4. Small colours that were tuned for white backgrounds --------- */
.p4p__eyebrow { color: #7DA7EA; }                                   /* was 3.8:1 on the hero glow */
.p4f-side__n { color: #9A9EB8; }
.p4p-est__fine { color: rgba(255, 255, 255, 0.62); }
.p4p-table td.yes { color: #4ADE80; }
.p4p-table td.no { color: #9A9EB8; }
.p4x-tag--free { color: #4ADE80; }
/* Badges / step numbers / table head on the brand blue: deeper blue, as M1 did for buttons (white text 5.4:1) */
.p4p-card__badge, .p4p-steps__n, .p4p-table thead th:last-child { background-image: linear-gradient(45deg, #3569BB 0%, #514A9D 100%); }
/* Services page: the "Business Automation" section was built for a white page */
.p4-opt .p4-opt__title, .p4-opt__rhead b, .p4-opt__rlist strong, .p4-opt .p4-opt__anyt { color: #FFFFFF; }
.p4-opt .p4-opt__lede, .p4-opt__rlist li > div > span { color: #B4B8D0; }
.p4-opt__eyebrow { color: #7DA7EA; }
.p4-opt__link { color: #A9C4F2 !important; text-decoration-color: rgba(169, 196, 242, 0.45); }
.p4-opt__link:hover { text-decoration-color: #A9C4F2; }
.p4-opt__tag, .p4-opt .p4-opt__chips li.is-more { color: #A9C4F2; background: rgba(74, 129, 211, 0.18); }
.p4-opt__rhead { border-bottom-color: rgba(255, 255, 255, 0.1); }
.p4-opt .p4-opt__rlist li { border-bottom-color: rgba(255, 255, 255, 0.1); }
.p4-opt__dot.is-good { background: rgba(74, 222, 128, 0.14); color: #4ADE80; }
.p4-opt__dot.is-bad { background: rgba(248, 113, 113, 0.14); color: #F87171; }
.p4-opt__any { background: var(--p4-surface, #191B36); border-color: rgba(125, 160, 255, 0.18); }
.p4-opt .p4-opt__chips li { background: rgba(255, 255, 255, 0.05); border-color: rgba(125, 160, 255, 0.25); color: #DDE1F0; }
.p4-opt { background: radial-gradient(ellipse 45% 50% at 0% 20%, rgba(74, 129, 211, 0.14), transparent 70%), radial-gradient(ellipse 45% 50% at 100% 90%, rgba(123, 114, 224, 0.14), transparent 70%), var(--p4-bg-section, #0F1029); color: #B4B8D0; }
.p4-opt__report { background: var(--p4-surface, #191B36); border-color: rgba(125, 160, 255, 0.18); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.p4-opt__rlist li.is-fix { background: linear-gradient(135deg, rgba(74, 129, 211, 0.18), rgba(123, 114, 224, 0.18)); }
.p4-opt__rnote { color: #9A9EB8; }
.p4p-seg button[aria-pressed="true"] { background-image: linear-gradient(45deg, #3569BB 0%, #514A9D 100%); }
.p4p-opts input:checked + span { background-image: linear-gradient(45deg, #3569BB 0%, #514A9D 100%); }

/* ---- 5. About, Contact, Services: sections that used a light photo (bg-contact1.jpg) ---- */
.elementor-23 .elementor-element.elementor-element-a8bac79:not(.elementor-motion-effects-element-type-background),
.elementor-25 .elementor-element.elementor-element-36d23f8:not(.elementor-motion-effects-element-type-background),
.elementor-479 .elementor-element.elementor-element-4011cbe:not(.elementor-motion-effects-element-type-background) {
    background-image: var(--p4-glow-violet, radial-gradient(ellipse 60% 55% at 85% 20%, rgba(81, 74, 157, 0.28), transparent 70%)), var(--p4-glow-blue, radial-gradient(ellipse 50% 50% at 10% 90%, rgba(74, 129, 211, 0.16), transparent 70%));
    background-color: var(--p4-bg, #0B0C2A); background-size: auto;
}
/* Blue cards with white text: deeper blue (same fix as the M1 buttons, 5.4:1) */
.elementor-23 .elementor-element.elementor-element-1607ffc:not(.elementor-motion-effects-element-type-background),
.elementor-23 .elementor-element.elementor-element-4eea2e7:not(.elementor-motion-effects-element-type-background),
.elementor-23 .elementor-element.elementor-element-ea2d65e:not(.elementor-motion-effects-element-type-background),
.elementor-741 .elementor-element.elementor-element-1f261b4:not(.elementor-motion-effects-element-type-background),
.elementor-741 .elementor-element.elementor-element-c432126:not(.elementor-motion-effects-element-type-background) {
    background-image: linear-gradient(45deg, #3569BB 0%, #514A9D 100%);
}
/* Service pages: the left menu buttons were light grey */
.pxl-service-sidebar1 .pxl-item-inner .pxl-item .pxl-item-link:before { background-color: var(--p4-surface, #191B36); box-shadow: inset 0 0 0 1px rgba(125, 160, 255, 0.18); }

/* ---- 6. Contact page: headings + form (labels and fields were light-mode) ---- */
.elementor-25 .elementor-element.elementor-element-f9ea3af .pxl-text-editor,
.elementor-23 .elementor-element.elementor-element-22d83f3 .pxl-text-editor,
.elementor-23 .elementor-element.elementor-element-235927f .pxl-text-editor,
.elementor-23 .elementor-element.elementor-element-9c2058e .pxl-text-editor { color: #FFFFFF; }
.elementor-23 .elementor-element.elementor-element-1607ffc p, .elementor-23 .elementor-element.elementor-element-4eea2e7 p { color: #FFFFFF; }
.p4-flabel { color: #FFFFFF; }
.p4-flabel small { color: #9A9EB8; }
.pxl-contact-form1 input:not([type=submit]):not([type=checkbox]):not([type=radio]), .pxl-contact-form1 textarea, .pxl-contact-form1 select, .pxl-contact-form1 .pxl-select-higthlight,
.pxl-contact-form1 .contact1 .pxl-select-higthlight, .pxl-contact-form1 .contact2 input, .pxl-contact-form1 .contact2 textarea, .pxl-contact-form1 .contact2 .pxl-select-higthlight {
    background: var(--p4-field-bg, rgba(0, 0, 34, 0.45)) !important; border: 1px solid rgba(255, 255, 255, 0.22) !important; color: #FFFFFF !important;
}
.pxl-contact-form1 input:focus, .pxl-contact-form1 textarea:focus, .pxl-contact-form1 select:focus,
.pxl-contact-form1 .contact2 input:focus, .pxl-contact-form1 .contact2 textarea:focus { background: rgba(0, 0, 34, 0.65) !important; border-color: #7DA7EA !important; }
.pxl-contact-form1 ::placeholder { color: #9A9EB8; opacity: 1; }
.pxl-contact-form1 select option { background: #191B36; color: #FFFFFF; }
.pxl-contact-form1 .contact1 .input-filled .pxl-select-higthlight, .pxl-contact-form1 .contact2 .input-filled .pxl-select-higthlight { color: #FFFFFF; }
.pxl-select .pxl-select-options { background-color: #191B36; color: #DDE1F0; }
.pxl-contact-form1 .contact2 .ct-button .btn:hover, .pxl-contact-form1 .contact2 .ct-button .btn:focus-visible { background-color: #15803D; }

/* ---- 7. M6 (17 Nov 2026): Services cards in the design system ---- */
/* "Learn More": was the old theme's solid black button; now the M1 secondary button (outline pill). */
.pxl-icon-box .pxl-btn-section .btn {
    background: rgba(255, 255, 255, 0.04) !important; color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px;
    min-height: 44px; padding: 0 22px; box-shadow: none;
}
.pxl-icon-box .pxl-btn-section .btn:hover, .pxl-icon-box .pxl-btn-section .btn:focus-visible {
    background: rgba(255, 255, 255, 0.10) !important; border-color: #FFFFFF;
}
/* The big faded "ghost" icon behind each card: removed. */
.pxl-icon-box1 .pxl-item-inner .pxl-icon-overlay { display: none; }   /* review 2.1: old-theme leftover; the icon tile already says it */
