/*
 * AlfaDigi legacy pages — dark design system (2026-10-28)
 * Reference: /home/. Excludes custom AlfaDigi Home page 2807.
 * Visual-only: does not hide, move, replace, or edit content.
 */
body.page:not(.page-id-2807) {
  --thm-base: #1fb6f5;
  --thm-black: #040b1c;
  --thm-gray: #c2d0eb;
  --adg-bg: #040b1c;
  --adg-surface: #071126;
  --adg-card: #0b1b37;
  --adg-card-hover: #0d3864;
  --adg-accent: #8bdfff;
  --adg-orange: #f37021;
  --adg-fg: #eef3ff;
  --adg-copy: #c2d0eb;
  --adg-muted: #adbfdf;
  --adg-border: #466389;
  background: var(--adg-bg) !important;
  color: var(--adg-copy) !important;
}

/* The theme's actual sections and cards use their own surfaces. */
body.page:not(.page-id-2807) :is(
  .page-wrapper, #page, #wrapper, #content, .site-content, .site-main,
  .page-content, .elementor, .elementor-section, .elementor-top-section,
  .elementor-inner-section, .elementor-section-wrap, .elementor-widget-wrap,
  .elementor-container, .content-area, .main-content,
  .services-section, .services-section-two, .services-section-three,
  .services-section-four, .service-section, .service-section-two,
  .featured-section, .about-section, .testimonials-section, .team-section,
  .history-section, .portfolio-section, .projects-section, .news-section,
  .blog-section, .contact-section, .contact-info-section,
  .parallax-section, .fact-counter, .facts-section, .sponsors-section,
  .agency-section, .why-choose-us, .page-banner, .page-title, .page-header,
  .linoor-service, .linoor-featured, .linoor-testimonials, .linoor-team
) {
  background-color: var(--adg-bg) !important;
}
/* Retain existing artwork/photo background images while neutralizing
 * the old charcoal or white base color. */
body.page:not(.page-id-2807) :is(
  .services-section, .services-section-two, .services-section-three,
  .services-section-four, .service-section, .page-banner, .page-header,
  .featured-section, .testimonials-section, .parallax-section
) {
  background-blend-mode: multiply;
}
body.page:not(.page-id-2807) :is(
  .main-header, .header-upper, .header-lower, .sticky-header,
  .main-menu ul, .main-menu .navigation > li > ul,
  .main-menu .navigation > li > ul > li > ul, .mobile-menu,
  .mobile-menu .menu-box, .site-footer, .main-footer,
  .footer-bottom, .footer-upper, .footer-widget,
  .footer-widget-area, .site-sidebar, .sidebar, .sidebar .widget
) {
  background-color: var(--adg-surface) !important;
}
/* Linoor cards: override the actual widget/service classes, not
 * only Elementor wrappers (which missed the visible service blocks). */
body.page:not(.page-id-2807) :is(
  .service-block, .service-block-two, .service-block-three,
  .service-block-four, .service-block-five, .service-block-six,
  .services-section .service-block,
  .services-section-two .service-block,
  .services-section-three .service-block,
  .services-section-four .service-block,
  .service-block .inner-box, .service-block-two .inner-box,
  .service-block-three .inner-box, .service-block-four .inner-box,
  .service-block-five .inner-box, .service-block-six .inner-box,
  .service-block .inner, .service-block-two .inner,
  .service-block-three .inner, .service-block-four .inner,
  .service-block .lower-content, .service-block .content-box,
  .services-section .inner-box, .services-section-two .inner-box,
  .services-section-three .inner-box,
  .feature-block .inner-box, .featured-block .inner-box,
  .team-block .inner-box, .testimonial-block .inner-box,
  .news-block .inner-box, .project-block .inner-box,
  .history-block .inner-box, .contact-block .inner-box,
  .info-box, .feature-card, .service-card, .team-card,
  .blog-card, .testimonial-card, .contact-card,
  .inner-box, .card, .content-box, .contact-form, .form-box
) {
  background-color: var(--adg-card) !important;
  border-color: var(--adg-border) !important;
}
/* Remove the old orange service-card fills/panels: active cards stay
 * recognizably highlighted but now use strong navy-blue. */
body.page:not(.page-id-2807) :is(
  .service-block, .service-block-two, .service-block-three,
  .service-block-four, .service-block-five, .service-block-six,
  .service-card, .feature-card
):is(:hover, .active, .current, .featured, .selected, :first-child) {
  background-color: var(--adg-card-hover) !important;
}
body.page:not(.page-id-2807) :is(
  .service-block, .service-block-two, .service-block-three,
  .service-block-four, .service-block-five, .service-block-six,
  .service-card, .feature-card
):is(:hover, .active, .current, .featured, .selected, :first-child)
:is(.inner-box, .inner, .content-box, .lower-content) {
  background-color: var(--adg-card-hover) !important;
}
body.page:not(.page-id-2807) :is(
  .services-section, .services-section-two,
  .services-section-three, .services-section-four
) :is(.service-block, .service-block-two, .service-block-three, .service-block-four)
:is(:hover, .active, .current, .featured, .selected, :first-child)
:is(.inner-box, .inner, .content-box)::before {
  background-color: #155aa9 !important;
}
body.page:not(.page-id-2807) :is(
  .services-section, .services-section-two,
  .services-section-three, .services-section-four
) :is(.service-block, .service-block-two, .service-block-three, .service-block-four)
:is(:hover, .active, .current, .featured, .selected, :first-child)
:is(.inner-box, .inner, .content-box)::after {
  background-color: #0b305a !important;
}
/* Some widget overlays and prebuilt theme "orange" elements. */
body.page:not(.page-id-2807) :is(
  .services-section, .services-section-two, .services-section-three,
  .services-section-four
) :is(.icon-box, .service-icon, .service-block__icon, .service-block .icon,
  .service-block-two .icon, .service-block-three .icon,
  .service-block .count, .service-block .number,
  .service-block-two .count, .service-block-two .number,
  .service-block-three .count, .service-block-three .number,
  .service-block__number) {
  color: var(--adg-accent) !important;
}
body.page:not(.page-id-2807) :is(
 .services-section, .services-section-two, .services-section-three,
 .services-section-four
) :is(.icon-box i, .service-icon i, .service-block .icon i,
 .service-block-two .icon i, .service-block-three .icon i,
 .icon-box svg, .icon svg) {
  color: var(--adg-accent) !important;
}
body.page:not(.page-id-2807) :is(
  .service-block, .service-block-two, .service-block-three, .service-block-four
) :is(.inner-box, .inner, .content-box) :is(h2,h3,h4,h5,h6,a,span,p) {
  color: var(--adg-fg) !important;
}
/* All visible copy, headings, captions, and nav labels. */
body.page:not(.page-id-2807) :is(
  h1,h2,h3,h4,h5,h6, .sec-title h2, .sec-title h3,
  .sec-title .title, .page-banner h1, .page-banner__title,
  .elementor-heading-title, .section-title, .widget-title,
  .main-menu a, .main-navigation a, .mobile-menu a
) {
  color: var(--adg-fg) !important;
}
body.page:not(.page-id-2807) :is(
  p,li,dl,dd,dt,blockquote,figcaption,small,legend,label,
  .sec-title .text, .section-title p, .elementor-text-editor,
  .elementor-widget-text-editor, .elementor-icon-list-text,
  .text, .description, [class*="__text"], [class*="__description"]
) {
  color: var(--adg-copy) !important;
}
body.page:not(.page-id-2807) :is(
  .sub-title, .subtitle, .sec-title .sub-title,
  .count, .counter, .number, .date, .category, .tag,
  .icon, .icon-box, .elementor-icon
) {
  color: var(--adg-accent) !important;
}
body.page:not(.page-id-2807) :is(
  a:not(.theme-btn):not(.btn):not(.button):not(.elementor-button)
) {
  color: var(--adg-accent) !important;
}
body.page:not(.page-id-2807) a:hover {
  color: #ffb586 !important;
}
body.page:not(.page-id-2807) :is(
  .theme-btn,.btn,.button,.elementor-button,
  .wpforms-submit,input[type="submit"],button[type="submit"],
  .wpcf7-submit, .btn-style-one, .btn-style-two
) {
  color: #ffffff !important;
  background: #155aa9 !important;
  border-color: #8bdfff !important;
}
body.page:not(.page-id-2807) :is(
  .theme-btn,.btn,.button,.elementor-button,
  .wpforms-submit,input[type="submit"],button[type="submit"],
  .wpcf7-submit, .btn-style-one, .btn-style-two
) :is(span,i,strong) { color: #fff !important; }
body.page:not(.page-id-2807) :is(
  .theme-btn,.btn,.button,.elementor-button,
  .wpforms-submit,input[type="submit"],button[type="submit"],
  .wpcf7-submit, .btn-style-one, .btn-style-two
):hover { background: #0d3864 !important; color: #fff !important; }
/* Readable inputs and WPForms confirmation/error messaging. */
body.page:not(.page-id-2807) :is(
 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
 textarea, select, .form-control, .input-text, .search-field,
 .wpforms-field input, .wpforms-field textarea
) {
  background: #0b203e !important;
  color: #f4f7ff !important;
  border: 1px solid #6483af !important;
  opacity: 1 !important;
  caret-color: #8bdfff;
}
body.page:not(.page-id-2807) :is(input,textarea)::placeholder {
 color: #c1cee7 !important; opacity: 1 !important;
}
body.page:not(.page-id-2807) :is(
  input,textarea,select,button,a,[tabindex]
):focus-visible {
  outline: 3px solid #ffab75 !important;
  outline-offset: 3px;
}
body.page:not(.page-id-2807) :is(
  .overlay-box, .project-overlay, .portfolio-overlay
) { background-color: rgba(4,11,28,.82) !important; }
body.page:not(.page-id-2807) :is(
  .pagination li,.pagination a,.page-numbers,.tag-cloud-link,
  .wp-block-table,table,th,td
) {
  background-color: var(--adg-card) !important;
  color: var(--adg-fg) !important;
  border-color: var(--adg-border) !important;
}
/* Keep images, videos, maps, logos and media at natural colors. */
body.page:not(.page-id-2807) img,
body.page:not(.page-id-2807) video,
body.page:not(.page-id-2807) iframe { opacity: 1; }
/* Remove orange decorative corners only where they obscure card copy. */
body.page:not(.page-id-2807) :is(
  .services-section, .services-section-two, .services-section-three
) :is(.service-block,.service-block-two,.service-block-three)
:is(.inner-box,.inner,.content-box) {
  isolation: isolate;
}
body.page:not(.page-id-2807) :is(
 .services-section,.services-section-two,.services-section-three
) :is(.service-block,.service-block-two,.service-block-three)
:is(.inner-box,.inner,.content-box) > * {
  position: relative;
  z-index: 1;
}
