/* =========================================================================
   OpticoAI - Kadence Override (Dark Theme + Brand Gradient)
   Target: opticoai.co.il  WP Admin > Appearance > Customize > Additional CSS
   Built: 2026-05-26 night sprint
   Goal: every WordPress page (services/*, about/*, contact, etc.) matches
         the new homepage visual language so navigation feels seamless.
   Notes on specificity: rules are scoped to body.wp-theme-kadence or
   common Kadence wrappers so they win over theme defaults without using
   !important except where Kadence inlines colors via the customizer.
   ========================================================================= */


/* -------------------------------------------------------------------------
   0. DESIGN TOKENS  (CSS variables exposed sitewide)
   ------------------------------------------------------------------------- */
:root {
    /* brand */
    --opt-bg:            #0a0612;
    --opt-bg-2:          #120a1f;
    --opt-bg-3:          #1a0e2e;
    --opt-text:          #e6e2f0;
    --opt-text-soft:     #b8b3c7;
    --opt-text-muted:    #8a8499;
    --opt-border:        rgba(255,255,255,0.08);
    --opt-border-strong: rgba(255,255,255,0.16);
    --opt-card:          rgba(255,255,255,0.04);
    --opt-card-hover:    rgba(255,255,255,0.07);

    /* gradient */
    --opt-grad:          linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #F97316 100%);
    --opt-grad-soft:     linear-gradient(135deg, rgba(139,92,246,0.18), rgba(236,72,153,0.18), rgba(249,115,22,0.18));
    --opt-grad-line:     linear-gradient(90deg, #8B5CF6, #EC4899, #F97316);
    --opt-grad-text:     linear-gradient(135deg, #C4B5FD 0%, #F9A8D4 50%, #FDBA74 100%);

    /* tokens */
    --opt-radius:        14px;
    --opt-radius-lg:     20px;
    --opt-shadow:        0 18px 40px -12px rgba(139,92,246,0.35);
    --opt-shadow-soft:   0 6px 20px -8px rgba(0,0,0,0.5);

    /* type */
    --opt-font-body:     'Heebo', 'Rubik', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
    --opt-font-display:  'Rubik', 'Heebo', system-ui, sans-serif;
}


/* -------------------------------------------------------------------------
   1. GLOBAL: body, typography, links, selection
   ------------------------------------------------------------------------- */
body.wp-theme-kadence,
body.wp-theme-kadence.rtl {
    background: var(--opt-bg);
    color: var(--opt-text);
    font-family: var(--opt-font-body);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.wp-theme-kadence #wrapper,
body.wp-theme-kadence #inner-wrap,
body.wp-theme-kadence .site,
body.wp-theme-kadence #page {
    background: var(--opt-bg);
    color: var(--opt-text);
}

body.wp-theme-kadence h1,
body.wp-theme-kadence h2,
body.wp-theme-kadence h3,
body.wp-theme-kadence h4,
body.wp-theme-kadence h5,
body.wp-theme-kadence h6 {
    font-family: var(--opt-font-display);
    color: var(--opt-text);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
}

body.wp-theme-kadence h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 0.6em; }
body.wp-theme-kadence h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.5em; }
body.wp-theme-kadence h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 0.5em; }

/* gradient accent heading - opt-in via class */
body.wp-theme-kadence h1.opt-grad,
body.wp-theme-kadence h2.opt-grad,
body.wp-theme-kadence .entry-content h1.opt-grad,
body.wp-theme-kadence .entry-content h2.opt-grad {
    background: var(--opt-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.wp-theme-kadence p,
body.wp-theme-kadence li,
body.wp-theme-kadence .entry-content p,
body.wp-theme-kadence .entry-content li {
    color: var(--opt-text-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

body.wp-theme-kadence a {
    color: #C4B5FD;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}
body.wp-theme-kadence a:hover,
body.wp-theme-kadence a:focus {
    color: #F9A8D4;
}

body.wp-theme-kadence ::selection {
    background: rgba(236,72,153,0.35);
    color: #fff;
}

body.wp-theme-kadence hr {
    border: 0;
    height: 1px;
    background: var(--opt-grad-line);
    opacity: 0.6;
    margin: 48px 0;
}


/* -------------------------------------------------------------------------
   2. HEADER  (site-header, upper wrap, branding, primary nav)
   ------------------------------------------------------------------------- */
body.wp-theme-kadence #masthead.site-header,
body.wp-theme-kadence .site-header {
    background: rgba(10,6,18,0.78);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--opt-border);
}

body.wp-theme-kadence .site-header-wrap,
body.wp-theme-kadence .site-header-inner-wrap,
body.wp-theme-kadence .site-header-upper-wrap,
body.wp-theme-kadence .site-header-upper-inner-wrap,
body.wp-theme-kadence .site-main-header-wrap,
body.wp-theme-kadence .site-main-header-inner-wrap {
    background: transparent;
}

body.wp-theme-kadence .site-branding a,
body.wp-theme-kadence .site-branding .site-title,
body.wp-theme-kadence .site-branding .site-title a {
    color: var(--opt-text);
    background: var(--opt-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
}

/* primary nav links */
body.wp-theme-kadence .main-navigation .menu > li > a,
body.wp-theme-kadence .header-navigation .menu > li > a {
    color: var(--opt-text);
    font-weight: 500;
    letter-spacing: 0;
    transition: color .2s ease;
}
body.wp-theme-kadence .main-navigation .menu > li > a:hover,
body.wp-theme-kadence .main-navigation .menu > li.current-menu-item > a {
    color: #F9A8D4;
}

/* nav dropdown */
body.wp-theme-kadence .main-navigation .sub-menu,
body.wp-theme-kadence .header-navigation .sub-menu {
    background: var(--opt-bg-2);
    border: 1px solid var(--opt-border);
    border-radius: var(--opt-radius);
    box-shadow: var(--opt-shadow-soft);
    overflow: hidden;
}
body.wp-theme-kadence .main-navigation .sub-menu a,
body.wp-theme-kadence .header-navigation .sub-menu a {
    color: var(--opt-text-soft);
}
body.wp-theme-kadence .main-navigation .sub-menu a:hover {
    background: rgba(139,92,246,0.12);
    color: #fff;
}


/* -------------------------------------------------------------------------
   3. MOBILE HEADER - hamburger MOVED TO LEFT
   ------------------------------------------------------------------------- */
/* Kadence ships the trigger in site-header-section-left already, so we
   force order + alignment so on RTL the visual position is the left edge */
body.wp-theme-kadence .site-mobile-header-wrap .site-header-main-section-left {
    order: 0;
    margin-inline-end: auto;
    margin-inline-start: 0;
    justify-content: flex-start;
}
body.wp-theme-kadence .site-mobile-header-wrap .site-header-main-section-center {
    order: 1;
    margin-inline: auto;
}
body.wp-theme-kadence .site-mobile-header-wrap .site-header-main-section-right {
    order: 2;
    margin-inline-start: auto;
    margin-inline-end: 0;
}

/* on RTL the visual "left" is the right edge of the DOM - flip via
   direction reset on the mobile header row */
@media (max-width: 1024px) {
    body.wp-theme-kadence.rtl .site-mobile-header-wrap .site-main-header-inner-wrap {
        direction: ltr;
    }
    body.wp-theme-kadence.rtl .site-mobile-header-wrap .site-header-section {
        direction: rtl;
    }
}

/* hamburger button */
body.wp-theme-kadence .menu-toggle-open.drawer-toggle,
body.wp-theme-kadence button.menu-toggle-open {
    background: rgba(255,255,255,0.04);
    color: var(--opt-text);
    border: 1px solid var(--opt-border);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, border-color .2s ease;
}
body.wp-theme-kadence .menu-toggle-open.drawer-toggle:hover {
    background: var(--opt-grad-soft);
    border-color: var(--opt-border-strong);
}
body.wp-theme-kadence .menu-toggle-open .menu-toggle-icon svg,
body.wp-theme-kadence .menu-toggle-open .kadence-svg-icon {
    color: var(--opt-text);
    fill: currentColor;
}


/* -------------------------------------------------------------------------
   4. MOBILE DRAWER  (popup-drawer + drawer-inner)
   ------------------------------------------------------------------------- */
body.wp-theme-kadence .popup-drawer .drawer-inner {
    background: linear-gradient(180deg, var(--opt-bg-2) 0%, var(--opt-bg) 100%);
    border-inline-start: 1px solid var(--opt-border);
    box-shadow: -20px 0 60px rgba(0,0,0,0.6);
}
body.wp-theme-kadence .popup-drawer .drawer-overlay {
    background: rgba(5,3,10,0.7);
    backdrop-filter: blur(6px);
}
body.wp-theme-kadence .popup-drawer .drawer-header {
    border-bottom: 1px solid var(--opt-border);
    padding: 16px 20px;
}
body.wp-theme-kadence .menu-toggle-close.drawer-toggle {
    background: transparent;
    color: var(--opt-text);
    border: 1px solid var(--opt-border);
    border-radius: 10px;
    width: 40px;
    height: 40px;
}
body.wp-theme-kadence .menu-toggle-close.drawer-toggle:hover {
    background: var(--opt-grad-soft);
}

body.wp-theme-kadence .mobile-drawer-content,
body.wp-theme-kadence .drawer-content {
    background: transparent;
    color: var(--opt-text);
}
body.wp-theme-kadence .mobile-navigation a,
body.wp-theme-kadence .drawer-navigation a {
    color: var(--opt-text);
    font-size: 1.15rem;
    font-weight: 500;
    padding: 14px 20px;
    border-bottom: 1px solid var(--opt-border);
    transition: background .2s ease;
}
body.wp-theme-kadence .mobile-navigation a:hover,
body.wp-theme-kadence .mobile-navigation .current-menu-item > a {
    background: var(--opt-grad-soft);
    color: #fff;
}
body.wp-theme-kadence .drawer-sub-toggle {
    color: var(--opt-text-soft);
}


/* -------------------------------------------------------------------------
   5. PAGE HERO / TITLE  (entry-hero, entry-header.page-title)
   ------------------------------------------------------------------------- */
body.wp-theme-kadence .entry-hero,
body.wp-theme-kadence .entry-hero-container-inner,
body.wp-theme-kadence header.entry-header.page-title {
    background: linear-gradient(180deg, var(--opt-bg-2) 0%, var(--opt-bg) 100%);
    border-bottom: 1px solid var(--opt-border);
    padding-top: clamp(48px, 8vw, 96px);
    padding-bottom: clamp(48px, 8vw, 96px);
}

body.wp-theme-kadence .entry-hero h1,
body.wp-theme-kadence header.entry-header.page-title h1 {
    background: var(--opt-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin: 0;
}

body.wp-theme-kadence .entry-hero .kadence-breadcrumbs,
body.wp-theme-kadence header.entry-header .kadence-breadcrumbs {
    color: var(--opt-text-muted);
}
body.wp-theme-kadence .kadence-breadcrumbs a {
    color: var(--opt-text-soft);
}


/* -------------------------------------------------------------------------
   6. CONTENT BODY  (site-main, content-area, entry-content)
   ------------------------------------------------------------------------- */
body.wp-theme-kadence .site-content,
body.wp-theme-kadence #main.site-main,
body.wp-theme-kadence .content-area {
    background: var(--opt-bg);
}

body.wp-theme-kadence .entry-content-wrap,
body.wp-theme-kadence .entry-content.single-content {
    color: var(--opt-text-soft);
}

body.wp-theme-kadence.content-style-boxed .content-bg,
body.wp-theme-kadence .content-bg,
body.wp-theme-kadence article.post,
body.wp-theme-kadence article.page {
    background: transparent;
    box-shadow: none;
}

/* section vertical rhythm */
body.wp-theme-kadence .entry-content > .wp-block-group,
body.wp-theme-kadence .entry-content > section {
    padding-top: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(40px, 6vw, 80px);
}

/* code / pre */
body.wp-theme-kadence pre,
body.wp-theme-kadence code {
    background: var(--opt-bg-3);
    color: #F9A8D4;
    border: 1px solid var(--opt-border);
    border-radius: 8px;
}
body.wp-theme-kadence pre {
    padding: 16px;
    overflow-x: auto;
}

/* blockquote */
body.wp-theme-kadence blockquote,
body.wp-theme-kadence .entry-content blockquote {
    border-inline-start: 3px solid transparent;
    border-image: var(--opt-grad-line) 1;
    background: rgba(255,255,255,0.03);
    padding: 16px 20px;
    border-radius: 8px;
    color: var(--opt-text);
}

/* tables */
body.wp-theme-kadence table {
    background: var(--opt-card);
    color: var(--opt-text-soft);
    border: 1px solid var(--opt-border);
    border-radius: var(--opt-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
body.wp-theme-kadence table th {
    background: rgba(139,92,246,0.12);
    color: var(--opt-text);
    border-bottom: 1px solid var(--opt-border-strong);
}
body.wp-theme-kadence table td {
    border-bottom: 1px solid var(--opt-border);
}


/* -------------------------------------------------------------------------
   7. BUTTONS  (gradient pill style)
   ------------------------------------------------------------------------- */
body.wp-theme-kadence .wp-block-button .wp-block-button__link,
body.wp-theme-kadence .button,
body.wp-theme-kadence button[type="submit"],
body.wp-theme-kadence input[type="submit"],
body.wp-theme-kadence .kb-button,
body.wp-theme-kadence .kt-button {
    background: var(--opt-grad);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 14px 28px;
    font-family: var(--opt-font-body);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0;
    box-shadow: var(--opt-shadow);
    transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
    cursor: pointer;
}
body.wp-theme-kadence .wp-block-button .wp-block-button__link:hover,
body.wp-theme-kadence .button:hover,
body.wp-theme-kadence button[type="submit"]:hover,
body.wp-theme-kadence input[type="submit"]:hover,
body.wp-theme-kadence .kb-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px -12px rgba(236,72,153,0.45);
    color: #fff;
    opacity: 0.97;
}

/* outline variant */
body.wp-theme-kadence .wp-block-button.is-style-outline .wp-block-button__link,
body.wp-theme-kadence .button.button-outline {
    background: transparent;
    color: var(--opt-text);
    border: 1px solid var(--opt-border-strong);
    box-shadow: none;
}
body.wp-theme-kadence .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--opt-grad-soft);
    border-color: rgba(236,72,153,0.5);
}


/* -------------------------------------------------------------------------
   8. FORMS  (inputs, labels)
   ------------------------------------------------------------------------- */
body.wp-theme-kadence input[type="text"],
body.wp-theme-kadence input[type="email"],
body.wp-theme-kadence input[type="tel"],
body.wp-theme-kadence input[type="url"],
body.wp-theme-kadence input[type="password"],
body.wp-theme-kadence input[type="search"],
body.wp-theme-kadence textarea,
body.wp-theme-kadence select {
    background: var(--opt-bg-2);
    color: var(--opt-text);
    border: 1px solid var(--opt-border);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: var(--opt-font-body);
    transition: border-color .2s ease, box-shadow .2s ease;
}
body.wp-theme-kadence input:focus,
body.wp-theme-kadence textarea:focus,
body.wp-theme-kadence select:focus {
    border-color: rgba(139,92,246,0.6);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.18);
    outline: none;
}
body.wp-theme-kadence ::placeholder {
    color: var(--opt-text-muted);
}
body.wp-theme-kadence label {
    color: var(--opt-text);
    font-weight: 500;
}


/* -------------------------------------------------------------------------
   9. CARDS / WIDGETS  (generic Kadence + Gutenberg groups)
   ------------------------------------------------------------------------- */
body.wp-theme-kadence .wp-block-group.has-background,
body.wp-theme-kadence .kt-inside-inner-col,
body.wp-theme-kadence .widget {
    background: var(--opt-card);
    border: 1px solid var(--opt-border);
    border-radius: var(--opt-radius);
    color: var(--opt-text-soft);
}

body.wp-theme-kadence .wp-block-group.has-background:hover {
    background: var(--opt-card-hover);
    border-color: var(--opt-border-strong);
}


/* -------------------------------------------------------------------------
   10. FOOTER  (site-footer, 4-column layout)
   ------------------------------------------------------------------------- */
body.wp-theme-kadence #colophon.site-footer,
body.wp-theme-kadence .site-footer {
    background: linear-gradient(180deg, var(--opt-bg) 0%, #050308 100%);
    border-top: 1px solid var(--opt-border);
    color: var(--opt-text-soft);
    padding-top: 56px;
    padding-bottom: 24px;
    margin-top: 64px;
    position: relative;
}
body.wp-theme-kadence .site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--opt-grad-line);
    opacity: 0.55;
}

body.wp-theme-kadence .site-footer-wrap,
body.wp-theme-kadence .site-middle-footer-wrap,
body.wp-theme-kadence .site-bottom-footer-wrap {
    background: transparent;
}

body.wp-theme-kadence .site-footer h2,
body.wp-theme-kadence .site-footer h3,
body.wp-theme-kadence .site-footer h4,
body.wp-theme-kadence .site-footer .widget-title {
    color: var(--opt-text);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0;
}

body.wp-theme-kadence .site-footer a {
    color: var(--opt-text-soft);
}
body.wp-theme-kadence .site-footer a:hover {
    color: #F9A8D4;
}

/* force 4-column layout on desktop even if Kadence widget area is set
   to fewer; we just stretch the existing section grid */
@media (min-width: 1024px) {
    body.wp-theme-kadence .site-middle-footer-inner-wrap.site-footer-row-columns-3 {
        display: grid;
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
}

/* footer html block - DEDUP 2026-05-29: .opt-footer is the real footer (© 2026 + contact + links).
   Hide the leftover Kadence default footer HTML (it duplicated the copyright with a stale 2025 year). */
body.wp-theme-kadence [data-section="kadence_customizer_footer_html"],
body.wp-theme-kadence .site-info-inner .footer-html {
    display: none !important;
}


/* -------------------------------------------------------------------------
   11. SPACING + LAYOUT helpers (full-width sections feel)
   ------------------------------------------------------------------------- */
body.wp-theme-kadence .entry-content > .alignfull,
body.wp-theme-kadence .wp-block-group.alignfull {
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    padding-inline: clamp(16px, 4vw, 48px);
}

body.wp-theme-kadence .wrap.container,
body.wp-theme-kadence .content-container,
body.wp-theme-kadence .site-container {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}


/* -------------------------------------------------------------------------
   12. RTL polish  (Hebrew kerning + numeric alignment)
   ------------------------------------------------------------------------- */
body.wp-theme-kadence.rtl {
    font-feature-settings: "kern" 1, "liga" 1;
}
body.wp-theme-kadence.rtl strong,
body.wp-theme-kadence.rtl b {
    font-weight: 700;
}
body.wp-theme-kadence.rtl .ltr-num {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}


/* -------------------------------------------------------------------------
   13. RESPONSIVE  (mobile spacing + nav adjustments)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
    body.wp-theme-kadence h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    body.wp-theme-kadence h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }

    body.wp-theme-kadence .entry-hero,
    body.wp-theme-kadence header.entry-header.page-title {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    body.wp-theme-kadence .entry-content > .wp-block-group,
    body.wp-theme-kadence .entry-content > section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    body.wp-theme-kadence .site-footer {
        padding-top: 40px;
        margin-top: 40px;
    }
    body.wp-theme-kadence .site-middle-footer-inner-wrap {
        gap: 24px;
    }
}


/* -------------------------------------------------------------------------
   14. ACCESSIBILITY  (focus rings on dark bg)
   ------------------------------------------------------------------------- */
body.wp-theme-kadence a:focus-visible,
body.wp-theme-kadence button:focus-visible,
body.wp-theme-kadence input:focus-visible,
body.wp-theme-kadence textarea:focus-visible,
body.wp-theme-kadence select:focus-visible {
    outline: 2px solid #F9A8D4;
    outline-offset: 2px;
    border-radius: 8px;
}


/* -------------------------------------------------------------------------
   15. SCROLLBAR  (matches dark theme, optional but cohesive)
   ------------------------------------------------------------------------- */
body.wp-theme-kadence::-webkit-scrollbar { width: 12px; height: 12px; }
body.wp-theme-kadence::-webkit-scrollbar-track { background: var(--opt-bg); }
body.wp-theme-kadence::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8B5CF6, #EC4899);
    border-radius: 8px;
    border: 3px solid var(--opt-bg);
}

/* End of file */


/* oren-brain 2026-05-29 visual pass */
/* 1) Hide social-share rail on sales/service PAGES (keep on blog posts) */
body.page .opt-share-sticky, body.page .opt-share-inline, body.page .opt-share { display: none !important; }

/* 2) Enliven flat white content sections (sections carry both .opt-v2 AND .v2-* on the SAME element) */
.v2-ideal, .v2-tools, .v2-faq, .v2-about-story, .v2-about-compare {
  background: linear-gradient(180deg,#FBF8FF 0%, #F1EBFA 100%) !important;
}
.v2-method, .v2-pricing, .v2-about-method, .v2-founder {
  background:
    radial-gradient(900px 360px at 85% -8%, rgba(236,72,153,.10), transparent 60%),
    radial-gradient(900px 360px at 10% 108%, rgba(139,92,246,.12), transparent 60%),
    #ffffff !important;
}
/* section divider accents */
.v2-ideal, .v2-method, .v2-tools, .v2-pricing, .v2-faq, .v2-about-compare, .v2-about-method { position: relative; }
/* richer depth on cards across the system */
.opt-v2 .svc, .opt-v2 .step, .opt-v2 .card, .opt-v2 .panel, .opt-v2 .tool, .opt-v2 .faq-item,
.v2-method .step, .v2-tools .tool, .v2-ideal li, .v2-faq details {
  box-shadow: 0 14px 34px -12px rgba(124,58,237,.20), 0 2px 8px -2px rgba(15,23,42,.06) !important;
}
.opt-v2 .svc, .opt-v2 .step, .opt-v2 .tool { border-color: rgba(139,92,246,.18) !important; }


/* FIX 2026-05-29: leftover dark-theme wrapper background showed as a black strip between the
   white header and the light content on every WP page. Site is light; wrappers + body must be
   light too. Background-only override (content sections keep their own colors). */
body.wp-theme-kadence,
body.wp-theme-kadence #wrapper,
body.wp-theme-kadence #inner-wrap,
body.wp-theme-kadence .site,
body.wp-theme-kadence #page {
    background: #ffffff !important;
}

/* === OPTICOAI CONTENT READABILITY (managed) === */
/* The base sheet (kadence-override.css) is a dark theme: headings -> #e6e2f0,
   body -> #b8b3c7, links -> #c4b5fd. A prior fix forced content backgrounds to
   white WITHOUT flipping the text, so content reads light-on-white sitewide.
   These rules restore dark, readable text on the white content surfaces, while
   gradient HERO sections and the final CTA keep their intended white-on-gradient. */

/* ---------- 1) All WP page content (services, about, contact, packages,
   case-studies, landing pages). Scoped to .entry-content = the shared
   container for opt-v2 / case-page / lp / blog page layouts. ---------- */
body.wp-theme-kadence .entry-content h1:not(.opt-grad),
body.wp-theme-kadence .entry-content h2:not(.opt-grad),
body.wp-theme-kadence .entry-content h3:not(.opt-grad),
body.wp-theme-kadence .entry-content h4:not(.opt-grad),
body.wp-theme-kadence .entry-content h5:not(.opt-grad) { color:#0F172A !important; }

body.wp-theme-kadence .entry-content p,
body.wp-theme-kadence .entry-content li,
body.wp-theme-kadence .entry-content blockquote,
body.wp-theme-kadence .entry-content label,
body.wp-theme-kadence .entry-content td,
body.wp-theme-kadence .entry-content figcaption { color:#334155 !important; }

body.wp-theme-kadence .entry-content strong, body.wp-theme-kadence .entry-content b { color:#1E293B !important; }

body.wp-theme-kadence .entry-content a:not(.btn):not([class*="btn"]):not([class*="wa"]):not([class*="float"]) { color:#7C3AED !important; }
body.wp-theme-kadence .entry-content a:not(.btn):not([class*="btn"]):not([class*="wa"]):not([class*="float"]):hover { color:#EC4899 !important; }

/* EXCEPTION: gradient HERO + CTA/final sections keep white-on-gradient text.
   Matches v2-*-hero, case-hero, lp-hero, v2-final-cta, lp-final, any *cta*. */
body.wp-theme-kadence .entry-content [class*="hero"] h1,
body.wp-theme-kadence .entry-content [class*="hero"] h2,
body.wp-theme-kadence .entry-content [class*="hero"] h3,
body.wp-theme-kadence .entry-content [class*="hero"] h4,
body.wp-theme-kadence .entry-content [class*="hero"] p,
body.wp-theme-kadence .entry-content [class*="hero"] li,
body.wp-theme-kadence .entry-content [class*="hero"] span,
body.wp-theme-kadence .entry-content [class*="hero"] label,
body.wp-theme-kadence .entry-content [class*="hero"] a:not(.btn):not([class*="btn"]):not([class*="wa"]):not([class*="float"]),
body.wp-theme-kadence .entry-content [class*="hero"] .pill,
body.wp-theme-kadence .entry-content [class*="cta"] h1,
body.wp-theme-kadence .entry-content [class*="cta"] h2,
body.wp-theme-kadence .entry-content [class*="cta"] h3,
body.wp-theme-kadence .entry-content [class*="cta"] p,
body.wp-theme-kadence .entry-content [class*="cta"] li,
body.wp-theme-kadence .entry-content [class*="cta"] span,
body.wp-theme-kadence .entry-content [class*="cta"] a:not(.btn):not([class*="btn"]):not([class*="wa"]):not([class*="float"]),
body.wp-theme-kadence .entry-content .v2-final-cta h1,
body.wp-theme-kadence .entry-content .v2-final-cta h2,
body.wp-theme-kadence .entry-content .v2-final-cta h3,
body.wp-theme-kadence .entry-content .v2-final-cta p,
body.wp-theme-kadence .entry-content .v2-final-cta span,
body.wp-theme-kadence .entry-content .v2-final-cta a:not(.btn):not([class*="btn"]):not([class*="wa"]):not([class*="float"]),
body.wp-theme-kadence .entry-content .lp-final h1,
body.wp-theme-kadence .entry-content .lp-final h2,
body.wp-theme-kadence .entry-content .lp-final h3,
body.wp-theme-kadence .entry-content .lp-final p,
body.wp-theme-kadence .entry-content .lp-final span,
body.wp-theme-kadence .entry-content .lp-final a:not(.btn):not([class*="btn"]):not([class*="wa"]):not([class*="float"]) { color:#fff !important; }

/* ---------- 2) Blog posts (single-post; not opt-v2) ---------- */
body.single-post .entry-content, body.single-post .entry-content-wrap,
body.single-post .entry-content p, body.single-post .entry-content li,
body.single-post .single-content, body.single-post .single-content p,
body.single-post .single-content li { color:#334155 !important; }

body.single-post .entry-title, body.single-post .entry-header h1,
body.single-post .entry-hero h1,
body.single-post .entry-content h2:not(.opt-grad),
body.single-post .entry-content h3:not(.opt-grad),
body.single-post .entry-content h4:not(.opt-grad) { color:#0F172A !important; }

body.single-post .entry-content strong, body.single-post .entry-content b { color:#1E293B !important; }

body.single-post .entry-content a, body.single-post .single-content a {
  color:#7C3AED !important; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
body.single-post .entry-content a:hover, body.single-post .single-content a:hover { color:#EC4899 !important; }

/* ---------- 3) Blog card grid (/blog/) ---------- */
.obc-title a { color:#0F172A !important; }
.obc-title a:hover { color:#7C3AED !important; }
.obc-excerpt { color:#475569 !important; }
.obc-cat { color:#7C3AED !important; }
.obc-date { color:#94A3B8 !important; }
.obc-more { color:#7C3AED !important; }
.obc-more:hover { color:#EC4899 !important; }
/* === END OPTICOAI CONTENT READABILITY === */


/* === OPTICOAI BLOG-POST HERO FIX (2026-06-04) === */
/* Kadence "thumbnail position behind" pulled the H1 up onto the light hero
   illustration (unreadable overlap on mobile) and a 32px .content-area gap sat
   above the image. Fix: full-bleed banner image flush under the header, title
   stacked cleanly below it (title color already #0F172A from the block above). */
body.single-post .content-area { margin-top: 0 !important; }
body.single-post .post-thumbnail.kadence-thumbnail-position-behind { margin-bottom: 1.25rem !important; }
body.single-post .entry-header.post-title { padding-top: 0 !important; background: transparent !important; }
body.single-post .entry-title { text-shadow: none !important; }
body.single-post .category-links a, body.single-post .entry-meta a { color:#7C3AED !important; }
/* === END OPTICOAI BLOG-POST HERO FIX === */
