/* =========================================================
   ResolutionsDMA official logo-derived brand system
   Extracted from the authoritative logo raster:
     Signature red   #D82425  (primary commercial action)
     Red deep        #A31C1E  (hover/active)
     Metallic silver #AEB6BF
     Gray            #8A8F98
     Graphite        #3A3F45
     Carbon black    #14171A
     White           #FFFFFF
     Platinum        #F4F5F7
   ========================================================= */
:root {
  --rdma-red: #D82425;
  --rdma-red-deep: #A31C1E;
  --rdma-silver: #AEB6BF;
  --rdma-gray: #8A8F98;
  --rdma-graphite: #3A3F45;
  --rdma-carbon: #14171A;
  --rdma-ink: #1F2326;
  --rdma-platinum: #F4F5F7;
  --rdma-white: #FFFFFF;
  /* Keep legacy token names resolving to the new palette. */
  --rdma-navy: #14171A;
  --rdma-deep: #1F2326;
  --rdma-gold: #D82425;
  --rdma-text: #5A5F66;
  --rdma-line: #E3E6EA;
  --rdma-paper: #F4F5F7;
}

/* Headings and body text. */
body, h1, h2, h3, h4, h5, h6, .pxl-item--title, .elementor-heading-title { color: var(--rdma-graphite); }
body, p, .pxl-text-editor, .pxl-item--description { color: #5A5F66; }
h1, h2, h3, .pxl-item--title { color: #14171A; }

/* Primary buttons: red with white text. */
.btn, .pxl-button .btn, .pxl-button a.btn, .elementor-button, .wpcf7-submit, .pxl-pricing .btn-see,
a.btn[href*="strategy-consultation"], a.btn[href*="contact-us"], #pxl-header-elementor .btn,
.rdma-primary-cta .btn, .pxl-contact-form .btn, a.btn[href="#online-consultation"] {
  background: var(--rdma-red) !important;
  border-color: var(--rdma-red) !important;
  color: #ffffff !important;
}
.btn:hover, .btn:focus-visible, .pxl-button .btn:hover, .elementor-button:hover, .wpcf7-submit:hover,
a.btn[href*="strategy-consultation"]:hover, a.btn[href*="contact-us"]:hover, #pxl-header-elementor .btn:hover,
.pxl-contact-form .btn:hover, a.btn[href="#online-consultation"]:hover {
  background: var(--rdma-red-deep) !important;
  border-color: var(--rdma-red-deep) !important;
  color: #ffffff !important;
}

/* Secondary buttons: graphite with white text, red on hover. */
.rdma-modern-experience .rdma-button {
  background: #ffffff !important;
  border-color: #14171A !important;
  color: #14171A !important;
}
.rdma-modern-experience .rdma-button--primary {
  background: var(--rdma-red) !important;
  border-color: var(--rdma-red) !important;
  color: #ffffff !important;
}
.rdma-modern-experience .rdma-button:hover {
  background: #14171A !important;
  border-color: #14171A !important;
  color: #ffffff !important;
}

/* Header: white surface, graphite text, red CTA. */
#pxl-header-elementor { background: #ffffff; }
#pxl-header-elementor .pxl-menu-primary > li > a > .pxl-menu-item-text { color: #14171A !important; }

/* Dropdown: carbon surface, white links, red hover. */
@media (min-width: 1201px) {
  #pxl-header-elementor .pxl-menu-primary .sub-menu { background: #14171A !important; border-color: rgba(255,255,255,.12); }
  #pxl-header-elementor .pxl-menu-primary .sub-menu a,
  #pxl-header-elementor .pxl-menu-primary .sub-menu .pxl-menu-item-text { color: #ffffff !important; }
  #pxl-header-elementor .pxl-menu-primary .sub-menu a:hover,
  #pxl-header-elementor .pxl-menu-primary .sub-menu a:focus-visible,
  #pxl-header-elementor .pxl-menu-primary .sub-menu li.current-menu-item > a {
    background: var(--rdma-red) !important; color: #ffffff !important;
  }
  #pxl-header-elementor .pxl-menu-primary .sub-menu a:hover .pxl-menu-item-text,
  #pxl-header-elementor .pxl-menu-primary .sub-menu li.current-menu-item > a .pxl-menu-item-text { color: #ffffff !important; }
}

/* Footer: carbon surface. */
#pxl-footer-elementor { background: #14171A; }

/* Focus: red ring. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible,
#pxl-nav-mobile:focus-visible, .pxl-menu-close:focus-visible, .pxl-menu-toggle:focus-visible,
.rdma-service-card:focus-visible, .rdma-industry-card:focus-visible, .rdma-case-card:focus-visible {
  outline: 3px solid var(--rdma-red) !important;
  outline-offset: 3px !important;
}

/* Service cards: red icon, silver hover treatment. */
.rdma-service-icon { background: var(--rdma-red); color: #ffffff; }
.rdma-service-card:hover, .rdma-service-card:focus-visible { border-color: var(--rdma-red); }
.rdma-service-card--consult { background: var(--rdma-red); border-color: var(--rdma-red); color: #ffffff; }
.rdma-service-card--consult h3, .rdma-service-card--consult .rdma-service-cta { color: #ffffff; }
.rdma-service-card--consult .rdma-service-icon { background: #14171A; color: #ffffff; }

/* Industry chips: red hover. */
.rdma-industry-card:hover, .rdma-industry-card:focus-visible { border-color: var(--rdma-red); background: #fff0f0; }

/* Process step accent. */
.rdma-how-we-work .rdma-step-number, .rdma-step-number { color: var(--rdma-red); }
.rdma-eyebrow, .rdma-services-home .rdma-eyebrow, .rdma-how-we-work .rdma-eyebrow, .rdma-cases-home .rdma-eyebrow, .rdma-why-home .rdma-eyebrow { color: var(--rdma-red); }

/* Hero SVG brand palette (carbon + red + silver). */
.rdma-hero-svg text { fill: #14171A; }

/* Homepage experience tokens: align the local custom properties to the logo palette. */
.elementor-21 .rdma-modern-experience {
  --rdma-ink: #14171A;
  --rdma-muted: #5A5F66;
  --rdma-line: #E3E6EA;
  --rdma-accent: #D82425;
  background: #F4F5F7;
}
.rdma-modern-experience .rdma-art {
  background: linear-gradient(145deg, #14171A, #1F2326 55%, #3A3F45);
  border-color: #E3E6EA;
}
.rdma-modern-experience .rdma-eyebrow,
.rdma-modern-experience .rdma-card-kicker { color: #D82425; }
.rdma-modern-experience .rdma-step-number { color: #D82425; }
.rdma-modern-experience .rdma-step.is-active { border-color: #D82425; }
