﻿/*
 * Regnant IT Solutions â€” brand overrides for the Softconic parent theme.
 * Loaded last (see functions.php) so these win over the parent styles.
 * Brand red #FF0013 is set globally via Theme Options â†’ Color (primary_color),
 * which the parent theme exposes as --theme-color (an R, G, B triple).
 * Same tokens as alexmuriithi.com (decided 17 November 2026).
 *
 * The parent theme is Softconic by Egens Lab (https://www.egenslab.com/), used under
 * the Envato Market licence; its code remains the property of its author.
 * Everything in this file: Regnant IT Solutions <https://regnantitsolutions.com>
 * Developer: Alex Muriithi <https://alexmuriithi.com>
 * Copyright 2026 Regnant IT Solutions. SPDX-License-Identifier: GPL-2.0-or-later
 */
:root {
  --rg-red: #FF0013;       /* brand red: accents, borders, icons, red on dark */
  --rg-red-solid: #EE0012; /* behind white text: 4.5:1 contrast */
  --rg-red-text: #D10011;  /* red text on a white or light background */
  /* Forced dark (Chrome on Android, Samsung Internet) must leave both themes alone;
     the light theme sets "only light" (below, "Dark and light themes"). */
  color-scheme: dark;
}

/* Saira, served from this site instead of Google Fonts (assets/fonts/, SIL Open Font
   License, see assets/fonts/OFL-Saira.txt). One variable file per script covers every
   weight from 300 to 800. inc/performance.php removes the parent theme's Google link. */
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/saira-latin-ext.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/saira-latin.woff2') format('woff2');
}

/* Hero: show project mockups in their true colours (parent adds a theme-colour tint). */
.banner-area3 .banner-wrapper .banner-image::after {
  background-color: transparent;
}

/* "15+ Years Experience" badge: white text reads better on the red circle. */
.home3-about-section .about-right .about-exprience .years h2,
.home3-about-section .about-right .about-exprience .years h2 span {
  color: #fff;
}

/* Footer logo: the widget outputs the image at its natural size. */
.footer-logo img {
  max-width: 220px;
  height: auto;
}

/* "Let's talk" CTA band: outline marquee was 12% white (designed for a photo background),
   too faint on the brand red-glow background; button gets the brand red. */
.home3-contact-area .contact-wrapper .marquee_text {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}
/* Both "Let's talk" banner styles (home + service pages) share .contact-wrapper .contact-btn. */
.contact-wrapper .contact-btn a {
  border-color: rgb(var(--theme-color)) !important;
  background-image: none !important;
  background-color: rgba(var(--theme-color), 0.12) !important;
}
.contact-wrapper .contact-btn a:hover {
  color: var(--white-color) !important;
}
.contact-wrapper .contact-btn a:hover svg {
  stroke: var(--white-color) !important;
}

/* Logo marquees (Technology Partners): breathing room between logos. */
.marquee_text .single-client {
  margin-right: 70px;
}

/* Quote form consent checkbox: inline with its text, sentence case. */
.wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: rgb(var(--theme-color));
}
.wpcf7-acceptance .wpcf7-list-item-label {
  text-transform: none;
  font-weight: 400;
}
.wpcf7-acceptance .wpcf7-list-item-label a {
  color: rgb(var(--theme-color));
  text-decoration: underline;
}

/* Text for screen readers only (for example the search result count). */
.rg-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Portfolio cards: the project name and category sit in an overlay that the theme shows
   only on mouse hover. Found with TalkBack on a phone: keyboard and screen reader focus
   landed on invisible links, and touch screens (no hover) never showed the names. Show
   it on keyboard focus, and always on screens that can't hover. */
#rg-main .single-work:focus-within .work-content {
  opacity: 1;
  transform: scaleY(1);
}
@media (hover: none) {
  #rg-main .single-work .work-content {
    opacity: 1;
    transform: scaleY(1);
  }
}
/* The overlay sits on the project picture, so it stays dark with white text in the
   light theme too (the light theme had turned the text dark on the dark fade). */
:root[data-theme="light"] #rg-main .single-work .work-content {
  --white-color: #fff;
  background: linear-gradient(180deg, rgba(29, 29, 29, 0) 23.76%, #1d1d1d 90.19%);
}
:root[data-theme="light"] #rg-main .single-work .work-content h3 a {
  color: #fff;
}
:root[data-theme="light"] #rg-main .single-work .work-content h3 a:hover {
  color: rgb(var(--theme-color));
}

/* Contact map placeholder: the Google map loads only on request (inc/performance.php). */
.rg-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 500px; /* the height of the map that replaces it */
  padding: 32px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 0, 19, 0.14) 0%, rgba(255, 0, 19, 0) 65%),
    #171717;
  line-height: 1.5;
  text-align: center;
}
.rg-map .rg-map-place {
  margin: 0;
  color: #fff;
  font-family: var(--font-saira);
  font-size: 22px;
  font-weight: 600;
}
.rg-map .rg-map-note {
  max-width: 440px;
  margin: 0;
  color: #b5b5b5;
  font-size: 14px;
}
.rg-map-note a {
  color: #ff3341;
  text-decoration: underline;
}
:root[data-theme="light"] .rg-map {
  border-color: var(--rg-line);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 0, 19, 0.08) 0%, rgba(255, 0, 19, 0) 65%),
    var(--rg-panel);
}
:root[data-theme="light"] .rg-map .rg-map-place {
  color: var(--rg-ink);
}
:root[data-theme="light"] .rg-map .rg-map-note {
  color: #4a4a4a;
}
:root[data-theme="light"] .rg-map-note a {
  color: #c4000f;
}

/* Quote form dropdowns: the real <select> (inc/accessibility.php drops the theme's
   nice-select stand-in), styled like the text boxes beside it. */
.contact-form-wrap select {
  width: 100%;
  height: 41px;
  padding: 0 40px 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23dedada' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  color: #dedada;
  font-family: var(--font-saira);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  appearance: none;
  cursor: pointer;
}
.contact-form-wrap select option {
  background-color: #1d1d1d;
  color: #dedada;
}
:root[data-theme="light"] .contact-form-wrap select option {
  background-color: #fff;
  color: #141414;
}

/* FAQ questions: keep sentence case as written. */
.accordion-button {
  text-transform: none;
}

/* Preloader: parent hard-codes a teal gradient and green ring; use brand dark + red. */
#particles-background {
  background: #0f0f0f;
  background-image: linear-gradient(45deg, #0f0f0f 2%, #2a0004 100%);
}
/* Keep client/brand names as written (e.g. "mFieldwork", not "MFieldwork"). */
.home3-success-stories-area h3,
.home3-success-stories-area h3 a {
  text-transform: none;
}

/* Remaining hard-coded theme greens (#06D889 / rgb 6,216,137) -> brand red,
   including the preloader ring. */
.loader-line-mask .loader-line {
  box-shadow: inset 0 0 0 1px rgba(255, 0, 19, 0.6) !important;
}
.wp-block-tag-cloud a:hover,
.tagcloud a:hover,
.widget-area .wp-block-tag-cloud a:hover {
  border-color: rgba(255, 0, 19, 0.15);
}
/* Inline SVGs printed by Softconic Core widgets (About, Services). */
svg [fill="#06D889" i] { fill: #FF0013; }
svg [stroke="#06D889" i] { stroke: #FF0013; }
svg stop[stop-color^="#06D889" i] { stop-color: #FF0013; }

/* ------------------------------------------------------------------
   Equal-height cards: every card in a row/slider matches the tallest.
   ------------------------------------------------------------------ */

/* Sliders (Home services, testimonials): let slides
   stretch to the tallest slide instead of sizing to their own content. */
.home3-solution-slider .swiper-wrapper,
.home3-testimonial-slider .swiper-wrapper {
  align-items: stretch;
}
.home3-solution-slider .swiper-slide,
.home3-testimonial-slider .swiper-slide {
  height: auto;
  display: flex;
}

/* Service cards (Home slider + Services grid). */
.home3-solution-section .solution-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.home3-solution-section .solution-card .solution-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.home3-solution-section .row > [class*="col-"] {
  display: flex;
}

/* Testimonials: keep the 50px gap for the speech-bubble tail, pin author to bottom. */
.home3-testimonil-area .testimonial-card3 {
  width: 100%;
  height: calc(100% - 50px);
  display: flex;
  flex-direction: column;
}
.home3-testimonil-area .testimonial-card3 .testimonial-content {
  flex: 1 1 auto;
}
.home3-testimonil-area .testimonial-card3 .testimonial-btm {
  margin-top: auto;
}

/* Image cards: same frame size for every screenshot, cropped from the top. */
.success-storie-card {
  width: 100%;
}
.success-storie-card .success-img img {
  height: 500px;
  object-fit: cover;
  object-position: top center;
}
@media (min-width: 1400px) and (max-width: 1599px), (max-width: 991px) {
  .success-storie-card .success-img img { height: 400px; }
}
.single-work .work-img img,
.portfolio-masonary-page .single-work .work-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: top center;
}


/* Home "Our Work" slider: straight row instead of the theme's zig-zag stagger,
   and same-size caption boxes (room for a two-line title) so every card lines up. */
.home3-success-stories-area .swiper-slide:nth-child(even),
.swiper.home3-success-stories-slider .swiper-slide:nth-child(even) {
  margin-top: 0;
}
.success-storie-card .success-content h3 a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em; /* 2 lines x 1.4 line-height */
  text-transform: none; /* keep client names as written ("mFieldwork") */
}

/* X (formerly Twitter): the bundled Boxicons only has the old bird, so draw the X logo
   in its place. Inherits the link colour, so hover states keep working. */
.bx.bxl-twitter::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Contact page info card: email is no longer shown (contact form only), so hide the
   now-empty email row instead of leaving a bare envelope icon. */
.single-info:has(.info.email-in):not(:has(.info.email-in a)) {
  display: none;
}

/* Inner-page title banner (breadcrumbs): the stretched home-banner image put its glow
   on the bottom edge, where it was cut off against the page background. Use a soft red
   glow centred behind the title that fades out fully, on the page's own background. */
.breadcrumbs {
  background-color: #0f0f0f !important;
  background-image:
    radial-gradient(ellipse 45% 55% at 50% 55%, rgba(255, 0, 19, 0.30) 0%, rgba(255, 0, 19, 0.12) 45%, rgba(255, 0, 19, 0) 75%) !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
}

/* ------------------------------------------------------------------
   Responsive fixes (found testing at 320 / 375 / 768 / 1024 / 1440px)
   ------------------------------------------------------------------ */

/* Large headings were fixed at 55-70px on every screen, so long words
   ("Maintenance", "Development") ran off small phones. Scale with the screen. */
@media (max-width: 767px) {
  .section-title-3 h2 {
    font-size: clamp(28px, 8.5vw, 44px) !important;
    line-height: 1.2 !important;
  }
  .contact-wrapper .title {
    font-size: clamp(32px, 10vw, 56px) !important;
    line-height: 1.15 !important;
  }
}
h1, h2, h3, h4 {
  overflow-wrap: break-word;
}

/* About "Founded" card: on narrow phones the round WORK WITH US button sat on top
   of the big "2024". Drop it below, right-aligned, instead. */
@media (max-width: 479px) {
  .home6-choose-section .choose-btm .choose-left-content .about-btn {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: fit-content;
    margin: 24px 0 0 auto;
    z-index: 1;
  }
}

/* Phones: theme containers sit 12px from the screen edge; use 20px like the rest of the site. */
@media (max-width: 575px) {
  .container,
  .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Service pages (children of Services) are built from full-width Elementor sections
   whose text sat 10px from the edge on phones and tablets. Pad each whole section
   evenly so everything inside moves together and keeps its own alignment. */
@media (max-width: 575px) {
  body.parent-pageid-31 .elementor-top-section {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (min-width: 576px) and (max-width: 1399px) {
  body.parent-pageid-31 .elementor-top-section {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* Home + About "Our Approach" block: between 768-1199px the image and text sat side by
   side and squeezed the text into a ~220px column. Stack them like on phones. */
@media (min-width: 768px) and (max-width: 1199px) {
  .home3-about-section .about-left {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  .home3-about-section .about-left .about-img,
  .home3-about-section .about-left .about-content {
    width: 100%;
    max-width: none;
  }
  .home3-about-section .about-left .about-img img {
    width: 100%;
  }
}
/* Keep the round "15+ Years Experience" badge round: it was shrinking into an oval
   with its text spilling out when space got tight. */
.home3-about-section .about-exprience {
  flex-shrink: 0;
}

/* Service pages on portrait tablets (768-991px): two half-width columns left the
   intro text cramped and pushed the image to the screen edge. Stack them as on phones. */
@media (min-width: 768px) and (max-width: 991px) {
  body.parent-pageid-31 .elementor-top-section > .elementor-container > .elementor-column {
    width: 100%;
  }
  body.parent-pageid-31 .elementor-top-section > .elementor-container > .elementor-column + .elementor-column {
    margin-top: 30px;
  }
  body.parent-pageid-31 .elementor-top-section .elementor-widget-image img {
    width: 100%;
    height: auto;
  }
}

/* Home hero on portrait tablets (768-991px): the theme hid the round project image,
   leaving the lower ~40% of the first screen empty. Show it under the text instead. */
@media (min-width: 768px) and (max-width: 991px) {
  .banner-area3 .banner-wrapper {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
  }
  .banner-area3 .banner-wrapper .banner-image {
    display: block !important;
    align-self: center;
    width: 100%;
    max-width: 300px;
    visibility: visible !important;
  }
  .banner-area3 .banner-wrapper .banner-image img {
    width: 100%;
    height: auto;
  }
}

/* ------------------------------------------------------------------
   Tap targets: grow the clickable area of small links to 24px+ (WCAG 2.2)
   without moving anything. Padding adds hit area; the negative margin
   cancels it out in the layout.
   ------------------------------------------------------------------ */
.success-storie-card .success-content > a {
  padding-block: 4px;
  margin-top: -4px;
  margin-bottom: 11px; /* theme's 15px gap minus the 4px padding */
}
.success-storie-card .success-content > a::after {
  bottom: 1px; /* theme had -3px; shift by the 4px padding so the underline stays put */
}
.breadcrumb-list a {
  padding-block: 3px;
  margin-block: -3px;
}
.single-navigation .content a {
  display: inline-block;
  padding-block: 4px;
  margin-block: -4px;
}

/* Home hero slider: the 1.5s crossfade showed both headlines on top of each other
   mid-transition. Fade the outgoing text out quickly and bring the new text in
   once it has gone; the background still crossfades as before. */
.banner3-slider .swiper-slide .banner-content,
.banner3-slider .swiper-slide .banner-image {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.banner3-slider .swiper-slide.swiper-slide-active .banner-content,
.banner3-slider .swiper-slide.swiper-slide-active .banner-image {
  opacity: 1;
  transition: opacity 0.6s ease 0.6s;
}

/* ------------------------------------------------------------------
   Desktop alignment: every section starts on the same left edge as the
   footer (the standard .container: 1140px on laptops, 1320px on large
   screens). Previously sections started anywhere from 55px to 160px in.
   ------------------------------------------------------------------ */
@media (min-width: 1200px) {
  :root { --rg-cw: 1140px; }
}
@media (min-width: 1400px) {
  :root { --rg-cw: 1320px; }
}
@media (min-width: 1200px) {
  /* Header (home used 7% side padding, inner pages 4.5%) */
  .header-area2 {
    padding-left: calc((100% - var(--rg-cw)) / 2 + 12px) !important;
    padding-right: calc((100% - var(--rg-cw)) / 2 + 12px) !important;
  }
  /* Home hero text (fixed 120px) */
  .banner-area3 .banner-wrapper {
    padding-left: calc((100% - var(--rg-cw)) / 2 + 12px) !important;
    padding-right: calc((100% - var(--rg-cw)) / 2 + 12px) !important;
  }
  /* Our Clients (65px set in Elementor) */
  .elementor-widget-container:has(> .home3-partner-area) {
    padding-left: calc((100% - var(--rg-cw)) / 2 + 12px) !important;
    padding-right: calc((100% - var(--rg-cw)) / 2 + 12px) !important;
  }
  /* Our Approach / Who We Are (5%) and By The Numbers (7%) */
  .home3-about-section,
  .home4-feature-area {
    padding-left: calc((100% - var(--rg-cw)) / 2) !important;
    padding-right: calc((100% - var(--rg-cw)) / 2) !important;
  }
  .home3-about-section .section-title-3 {
    padding-left: 0;
  }
  /* About "Why Choose Us" title was nudged 50px in */
  .home6-choose-section .choose-top .choose-title {
    margin-left: 0;
  }
  /* Our Work: full-width section with a hard-coded 150px side padding */
  .elementor-top-section.elementor-section-full_width:has(.home3-success-stories-slider) {
    padding-left: calc((100% - var(--rg-cw)) / 2 + 2px) !important;
    padding-right: calc((100% - var(--rg-cw)) / 2 + 2px) !important;
  }
  /* Contact form and Services grid: Bootstrap container nested inside an Elementor
     container, so the 12px side padding doubled up */
  .contact-page-wrap > .container,
  .elementor-section-boxed .home3-solution-section > .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  /* Service pages "How we work": the steps row spanned the full screen width */
  .service-details .work-item > .container-fluid {
    max-width: var(--rg-cw);
    margin-left: auto;
    margin-right: auto;
  }
  /* Elementor boxed sections (Our Services, Our Work, service pages): match the
     container width (Elementor columns add 10px padding vs Bootstrap's 12px). */
  .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: calc(var(--rg-cw) - 4px) !important;
  }
}

/* "Nothing found" state (empty blog, empty search): the parent theme hard-codes a generic
   cartoon; show the branded knight instead. Done in CSS so a theme update can't undo it.
   mix-blend-mode: lighten lets the artwork's black background take the page colour. */
.error-area-wrapper > a:has(> img[src*="search-not-found"]) {
  display: inline-block;
  width: min(340px, 80vw);
  aspect-ratio: 1 / 1;
  background: url("../img/nothing-found.jpg") center / contain no-repeat;
  mix-blend-mode: lighten;
}
.error-area-wrapper > a > img[src*="search-not-found"] {
  display: none;
}

/* Empty blog / no search results: the sidebar only has empty widgets, so hide it and
   centre the message. Once posts exist the "nothing found" block is gone and the
   sidebar comes back by itself. */
.row:has(> .col-lg-8 .error-area-wrapper) > .col-lg-4 {
  display: none;
}
.row:has(> .col-lg-8 .error-area-wrapper) > .col-lg-8 {
  flex: 0 0 100%;
  max-width: 100%;
}
.error-area-wrapper {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------------
   Live site search (assets/js/regnant-search.js)
   ------------------------------------------------------------------ */

/* Header button: same look as the round paper-plane button next to it */
.header-area2 .nav-right .rg-search-btn {
  height: 36px;
  width: 36px;
  border-radius: 15px;
  border: 1px solid var(--white-color, #fff);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: 0.35s;
}
.header-area2 .nav-right .rg-search-btn:hover,
.header-area2 .nav-right .rg-search-btn:focus-visible {
  background-color: rgb(var(--theme-color));
  border-color: rgb(var(--theme-color));
  outline: none;
}
/* Tablets: the theme drops the gap between header buttons below 992px */
@media (max-width: 991px) {
  .header-area2 .nav-right .rg-search-btn { margin-right: 14px; }
}
/* Phones: three round buttons don't fit beside the logo. The paper-plane panel repeats
   the phone, address and social links already in the hamburger menu, so drop it here. */
@media (max-width: 575px) {
  .header-area2 .nav-right .sidebar-btn2 { display: none !important; }
  .header-area2 .nav-right .rg-search-btn { margin-right: 0; }
  .header-area2 .nav-right .mobile-menu-btn { margin-left: 40px; }
}

/* Dark circle that grows out of the search icon */
.rg-search-overlay {
  position: fixed;
  z-index: 99998;
  border-radius: 50%;
  background: #070707;
  transform: scale(0);
  transition: transform 0.5s ease;
  pointer-events: none;
}
.rg-search-overlay.is-open {
  transform: scale(1);
}

/* Full-screen panel */
.rg-search {
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow-y: auto;
  padding: 120px 20px 60px;
  color: #fff;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease 0.15s;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(255, 0, 19, 0.22) 0%, rgba(255, 0, 19, 0) 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(140, 0, 12, 0.28) 0%, rgba(140, 0, 12, 0) 70%);
}
.rg-search[hidden] { display: none; }
.rg-search.is-open { opacity: 1; }
html.rg-search-lock,
html.rg-search-lock body { overflow: hidden; }

.rg-search-inner {
  max-width: 680px;
  margin: 0 auto;
}
.rg-search-close {
  position: absolute;
  top: 32px;
  right: 40px;
  background: none;
  border: 0;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
}
.rg-search-close:hover,
.rg-search-close:focus-visible { color: rgb(var(--theme-color)); outline: none; }

.rg-search h4 {
  font-size: 32px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #D9D9D9 60%, #FF4D5A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rg-search-hint {
  font-size: 15px;
  color: #9A9A9A;
  margin-bottom: 36px;
}
.rg-search-hint em { font-style: normal; color: #F2F2F2; }

.rg-search-input {
  width: 100%;
  font-size: 26px;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px 6px 0 0;
  padding: 14px 16px;
  outline: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.rg-search-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.rg-search-input:focus {
  border-bottom-color: rgb(var(--theme-color));
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px -12px rgba(255, 0, 19, 0.6);
}
.rg-search-input::-webkit-search-cancel-button { filter: invert(1); }

.rg-search-results { text-align: left; margin-top: 24px; }
.rg-search-results ul { list-style: none; padding: 0; margin: 0; }
.rg-search-results li { margin-bottom: 8px; }
.rg-search-meta { font-size: 13px; color: #9A9A9A; margin-bottom: 10px; }

.rg-search-result {
  display: block;
  padding: 12px 16px;
  background: rgba(20, 20, 20, 0.75);
  border: 1px solid #262626;
  border-left: 3px solid transparent;
  border-radius: 6px;
  color: #D9D9D9;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.rg-search-result:hover,
.rg-search-result:focus {
  color: #fff;
  background: rgba(255, 0, 19, 0.08);
  border-color: #3a0a0e;
  border-left-color: rgb(var(--theme-color));
  outline: none;
}
.rg-search-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FF4D5A;
  line-height: 18px;
}
.rg-search-section {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-top: 2px;
}
.rg-search-text { display: block; font-size: 14px; line-height: 22px; margin-top: 2px; }
.rg-search-result mark {
  background: rgba(255, 0, 19, 0.35);
  color: #fff;
  padding: 0 2px;
  border-radius: 2px;
}

@media (max-width: 575px) {
  .rg-search { padding-top: 90px; }
  .rg-search-close { top: 18px; right: 14px; }
  .rg-search h4 { font-size: 24px; }
  .rg-search-input { font-size: 20px; }
}

/* Flash the matched text after jumping to it */
@keyframes rgSearchHit {
  0%, 60% { box-shadow: 0 0 0 3px rgba(255, 0, 19, 0.9); background-color: rgba(255, 0, 19, 0.15); }
  100% { box-shadow: 0 0 0 3px rgba(255, 0, 19, 0); background-color: rgba(255, 0, 19, 0); }
}
.rg-search-hit {
  border-radius: 4px;
  animation: rgSearchHit 2.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .rg-search-overlay { transition: none; }
  .rg-search { transition: none; }
}

/* ------------------------------------------------------------------
   FAQ ([regnant_faq] shortcode, inc/schema.php): native <details>
   elements, so they open with the keyboard and need no script.
   ------------------------------------------------------------------ */
/* Same container as the rest of the page, so the heading sits on the page's left edge. */
.rg-faq {
  padding: 100px 0 110px;
}
.rg-faq-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgb(var(--theme-color));
}
.rg-faq h2 {
  margin: 0 0 30px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.rg-faq-item {
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}
.rg-faq-item + .rg-faq-item {
  margin-top: 12px;
}
.rg-faq-item[open] {
  border-color: rgba(255, 0, 19, 0.45);
}
.rg-faq-item summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 16px 56px 16px 20px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.rg-faq-item summary::-webkit-details-marker {
  display: none;
}
/* Plus that turns into a minus when the answer is open. */
.rg-faq-item summary::before,
.rg-faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  background: rgb(var(--theme-color));
  transition: transform 0.2s;
}
.rg-faq-item summary::after {
  transform: rotate(90deg);
}
.rg-faq-item[open] summary::after {
  transform: rotate(0deg);
}
.rg-faq-item summary:hover {
  color: #FF4D5A;
}
.rg-faq-item summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}
.rg-faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 16px;
  line-height: 1.7;
  color: #C9C9C9;
  max-width: 900px;
}
/* Elementor's column already supplies the side gap on desktop (see Desktop alignment). */
@media (min-width: 1200px) {
  .rg-faq .container { padding-left: 0; padding-right: 0; }
}
@media (max-width: 767px) {
  .rg-faq { padding: 60px 0 70px; }
  .rg-faq-item summary { font-size: 16px; padding-left: 16px; }
  .rg-faq-item p { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rg-faq-item summary::before,
  .rg-faq-item summary::after { transition: none; }
}

/* ------------------------------------------------------------------
   Contrast and tap targets (WCAG 2.2 AA), from the 17 November 2026
   check of ten pages on desktop and phone widths.
   ------------------------------------------------------------------ */
/* Portfolio filter: the active pill had light grey text on the brand red (3.2:1).
   White on the darker red is 4.5:1. */
.portfolio-masonary-page .isotope-menu li.active {
  background: var(--rg-red-solid);
  color: #fff;
}
/* Home hero social icons were 16px wide: give each link a 24px target. */
.banner-area3 .social-area ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
}
/* Slider dots (12px and 14px): keep their look and extend the clickable area to 24px
   with an invisible box. The dots are already spaced 39px and 52px apart, so the
   boxes don't overlap. (::after is taken: the theme draws the dot's centre with it.) */
.swiper-pagination-clickable .swiper-pagination-bullet {
  position: relative;
}
.swiper-pagination-clickable .swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
}

/* ==========================================================================
   Keyboard access (WCAG 2.4.1, 2.4.7, 2.2.2). Markup in inc/accessibility.php,
   slideshow button in assets/js/regnant-a11y.js.
   ========================================================================== */
/* Skip link: hidden until it receives keyboard focus. */
.rg-skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 12px 18px;
  background: #fff;
  color: #0f0f0f;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transform: translateY(-200%);
}
.rg-skip-link:focus {
  transform: none;
  color: #0f0f0f;
}
#rg-main:focus {
  outline: none;
}
/* One clear focus ring everywhere. Elementor and the parent theme remove outlines on
   several pages; a white ring with a gap shows on the dark design. */
:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 2px !important;
}
/* Desktop menu: open the Services dropdown when keyboard focus moves into it, as the
   theme does on hover. */
@media (min-width: 992px) {
  .header-area2 .main-menu ul > li:focus-within > ul.sub-menu {
    display: block;
  }
}
/* The theme's "+" icons and panel buttons are now keyboard buttons (regnant-a11y.js). */
.main-menu .dropdown-icon[role="button"],
.sidebar-btn2[role="button"],
.header-sidebar .close-btn[role="button"],
.mobile-menu-btn[role="button"] {
  cursor: pointer;
}
/* Phone menu button: the theme draws its three lines from a 0x0 box, so there was
   nothing to tap or to show focus on. Give it a 44x44 box; the lines stay where
   they were (centred on the same point, right edges aligned). */
@media (max-width: 991px) {
  .header-area2 .nav-right .mobile-menu-btn {
    width: 44px;
    height: 44px;
    margin-right: -5px;
  }
  .header-area2 .nav-right .mobile-menu-btn span {
    top: 21px;
    right: 5px;
  }
}
/* "Step 01" labels on project pages: 18px brand red on a slightly lifted panel was
   4.3:1. A touch lighter red reaches 4.7:1. */
.portfolio-details .portfolio-content .working-process .single-process span,
.case-study-details .single-process span {
  color: #ff2a3a;
}
/* Slideshow pause/play button. */
.rg-slider-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.8);
  cursor: pointer;
}
.rg-slider-toggle::before,
.rg-slider-toggle::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 4px;
  height: 14px;
  background: #fff;
}
.rg-slider-toggle::before { left: 12px; }
.rg-slider-toggle::after { right: 12px; }
.rg-slider-toggle.is-paused::after { display: none; }
.rg-slider-toggle.is-paused::before {
  left: 13px;
  width: 0;
  height: 0;
  background: none;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
}
.rg-slider-toggle:hover {
  background: var(--rg-red-solid);
}
/* Marquee pause button, at the right-hand end of the moving line. */
.rg-marquee-box {
  position: relative;
}
.rg-marquee-toggle {
  top: 50%;
  bottom: auto;
  right: 0;
  transform: translateY(-50%);
}
.rg-marquee-paused .js-marquee-wrapper {
  animation-play-state: paused !important;
}

/* Footer "Get In Touch": the proposal promise under the phone number (functions.php). */
.rg-footer-promise {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #b5b5b5;
}

/* 404 page: the header sits on top of the page (position: absolute, about 92-110px
   tall), but under 1400px the theme gives this area only 70px of top padding, so the
   "404" heading was hidden behind the header (found on a real phone). */
@media (max-width: 1399px) {
  .error-page-bg {
    padding-top: 170px;
  }
}
@media (max-width: 991px) {
  .error-page-bg {
    padding-top: 140px;
  }
}

/* Under 768px the parent theme layers a demo picture (home-5/home5-services-bg.png)
   that isn't shipped, so every phone page asked for a missing file. Keep its colour. */
@media (max-width: 767px) {
  footer,
  footer.two,
  footer.three,
  footer.four {
    background-image: linear-gradient(#171717, #171717);
  }
}
.home5-partner-area,
.home5-testimonial-area,
.service-section-bg {
  background-image: linear-gradient(#171717, #171717);
}

/* ==========================================================================
   Dark and light themes (inc/theme-mode.php sets data-theme on <html>)
   ========================================================================== */
/* Theme button: same round look as the search button beside it. */
.header-area2 .nav-right .rg-theme-btn {
  height: 36px;
  width: 36px;
  margin-left: 14px;
  border-radius: 15px;
  border: 1px solid var(--white-color, #fff);
  background: transparent;
  color: var(--white-color, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: 0.35s;
}
.header-area2 .nav-right .rg-theme-btn:hover,
.header-area2 .nav-right .rg-theme-btn:focus-visible {
  background-color: rgb(var(--theme-color));
  border-color: rgb(var(--theme-color));
  color: #fff;
}
.rg-theme-btn .rg-theme-moon,
:root[data-theme="light"] .rg-theme-btn .rg-theme-sun {
  display: none;
}
:root[data-theme="light"] .rg-theme-btn .rg-theme-moon {
  display: block;
}
@media (max-width: 991px) {
  .header-area2 .nav-right .rg-theme-btn {
    margin-left: 0;
    margin-right: 14px;
  }
}

/* --------------------------------------------------------------------------
   Light theme. The parent theme is dark-only: most text uses --white-color and
   most panels --black-color2, so those are swapped first; the rest are hard-coded
   colours overridden below. The footer stays dark in both themes.
   -------------------------------------------------------------------------- */
/* Red: the theme's red (--theme-color) is used mostly for text and thin accents, so the
   light theme deepens it to #D10011 (4.9:1 on the light page, like alexmuriithi.com).
   Red buttons keep the brand red behind dark text. */
:root[data-theme="light"] {
  color-scheme: only light; /* stops forced dark recolouring the light theme */
  --rg-page: #f3f3f5;
  --rg-panel: #fff;
  --rg-ink: #141414;
  --rg-body: #4a4a4a;
  --rg-line: rgba(0, 0, 0, 0.12);
  --white-color: #141414;
  --black-color2: #fff;
  --rg-red-text: #d10011;
  /* The theme's settings print --theme-color with !important. */
  --theme-color: 209, 0, 17 !important;
  --rg-red: #d10011;
}
:root[data-theme="light"] body {
  background-color: var(--rg-page);
  color: var(--rg-body);
}
/* The footer stays dark in both themes: restore the dark values inside it. */
:root[data-theme="light"] footer {
  background-color: #0f0f0f; /* its picture doesn't reach the "Start your project" band */
  --white-color: #fff;
  --black-color2: #1d1d1d;
  --theme-color: 255, 0, 19 !important;
  --rg-red: #ff0013;
}
/* Header icons (search, paper plane, theme) follow the text colour. */
:root[data-theme="light"] .header-area2 .nav-right .rg-search-btn,
:root[data-theme="light"] .header-area2 .nav-right .rg-theme-btn,
:root[data-theme="light"] .header-area2 .nav-right .sidebar-btn2 {
  color: var(--rg-ink);
  border-color: var(--rg-ink);
}
:root[data-theme="light"] .header-area2 .nav-right .sidebar-btn2 svg path {
  fill: var(--rg-ink);
}
:root[data-theme="light"] .header-area2 .nav-right :is(.rg-search-btn, .rg-theme-btn, .sidebar-btn2):hover,
:root[data-theme="light"] .header-area2 .nav-right :is(.rg-search-btn, .rg-theme-btn, .sidebar-btn2):focus-visible {
  color: #fff;
}
:root[data-theme="light"] .header-area2 .nav-right .sidebar-btn2:hover svg path {
  fill: #fff;
}
/* Home hero: its background picture is a faint grid on dark; light grey instead. */
:root[data-theme="light"] .banner-area3 {
  background-image: radial-gradient(ellipse at 70% 40%, rgba(255, 0, 19, 0.08) 0%, rgba(255, 0, 19, 0) 60%);
  background-color: var(--rg-page);
}
:root[data-theme="light"] .banner-area3::before,
:root[data-theme="light"] .banner-area3::after {
  background-color: var(--rg-line);
}
/* The hero's corner artwork is a black swoosh drawn for the dark background. */
:root[data-theme="light"] .banner-area3 .banner-vector {
  display: none;
}
/* The "Every project is different" band fades to black at top and bottom. */
:root[data-theme="light"] .home3-contact-area::before,
:root[data-theme="light"] .home3-contact-area::after {
  display: none;
}
/* Outline words (letters drawn as a faint edge only). */
:root[data-theme="light"] .home4-contact-area .contact-wrapper .title,
:root[data-theme="light"] .marquee_text {
  -webkit-text-stroke-color: rgba(0, 0, 0, 0.18);
}
/* Quote form panel (a dark picture) and its fields. */
:root[data-theme="light"] .contact-form-wrap {
  background-color: var(--rg-panel);
  background-image: none;
  border: 1px solid var(--rg-line);
}
:root[data-theme="light"] .contact-form-wrap :is(h2, h3, h4, h5, label, .form-inner),
:root[data-theme="light"] #rg-main .contact-form-wrap .wpcf7-list-item-label {
  color: var(--rg-ink);
}
:root[data-theme="light"] .contact-form-wrap :is(input:not([type="checkbox"]), textarea, select) {
  background-color: #f7f7f9;
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: var(--rg-ink);
}
:root[data-theme="light"] .contact-form-wrap select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.6'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .contact-form-wrap :is(input, textarea)::placeholder {
  color: #6b6b6b;
}
/* About, "One team across two continents": a dark card built around the dark mascot
   artwork. It stays dark in both themes, with its dark-theme text colours. */
:root[data-theme="light"] .choose-left-content {
  --white-color: #fff;
  --theme-color: 255, 0, 19 !important;
}
:root[data-theme="light"] #rg-main .choose-left-content :is(h1, h2, h3, h4, h5, h6),
:root[data-theme="light"] #rg-main .choose-left-content :is(h1, h2, h3, h4, h5, h6) a {
  color: #fff;
}
:root[data-theme="light"] #rg-main .choose-left-content :is(p, li) {
  color: #b5b5b5;
}
/* 404 page and the blog/search sidebar widgets: dark pictures. */
:root[data-theme="light"] .error-page-bg {
  background-color: var(--rg-page);
  background-image: radial-gradient(ellipse at 75% 45%, rgba(255, 0, 19, 0.08) 0%, rgba(255, 0, 19, 0) 60%);
}
:root[data-theme="light"] .widget-area .single-widgets {
  background-color: var(--rg-panel);
  background-image: none;
  border: 1px solid var(--rg-line);
}
:root[data-theme="light"] .widget-area .single-widgets :is(h1, h2, h3, h4, h5, h6, a, li, span) {
  color: var(--rg-ink);
}
:root[data-theme="light"] .widget-area .single-widgets input {
  background-color: #f7f7f9;
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: var(--rg-ink);
}
/* Page-title banner: the current page name after "Home ->". */
:root[data-theme="light"] .breadcrumbs .breadcrumb-list,
:root[data-theme="light"] .breadcrumbs .breadcrumb-list span {
  color: var(--rg-ink);
}
/* "Our Work" cards: the caption box is a dark picture. */
:root[data-theme="light"] .success-storie-card .success-content {
  background-image: none;
  background-color: var(--rg-panel);
  border: 1px solid var(--rg-line);
}
:root[data-theme="light"] .primary-btn3,
:root[data-theme="light"] .rg-slider-toggle:hover {
  background-color: #ff0013;
}
/* Exceptions to the #rg-main text colours below, at the same strength. */
:root[data-theme="light"] #rg-main .portfolio-masonary-page .isotope-menu li {
  color: var(--rg-ink);
}
:root[data-theme="light"] #rg-main .portfolio-masonary-page .isotope-menu li.active {
  background: #ee0012;
  color: #fff;
}
:root[data-theme="light"] #rg-main .about-exprience .years,
:root[data-theme="light"] #rg-main .about-exprience .years * {
  color: #fff; /* large text on the red badge */
}
:root[data-theme="light"] #rg-main .portfolio-info li span,
:root[data-theme="light"] #rg-main .blog-meta a {
  color: var(--rg-body);
}
/* Decorative background words ("Start your project" as an outline, "Let's talk" at 8%
   opacity, by the theme's design in both themes). */
:root[data-theme="light"] #rg-main .contact-wrapper .title,
:root[data-theme="light"] #rg-main .contact-wrapper > .content {
  color: var(--rg-ink);
}
:root[data-theme="light"] #rg-main .success-storie-card .success-content > :is(a, span) {
  color: var(--rg-body);
}
:root[data-theme="light"] .portfolio-details .portfolio-content .working-process .single-process span,
:root[data-theme="light"] .case-study-details .single-process span {
  color: #d10011;
}
/* FAQ accordions on the service pages, and the "Start your project" call to action. */
:root[data-theme="light"] .service-accordion .accordion .accordion-item .accordion-button.collapsed,
:root[data-theme="light"] .accordion-button.collapsed,
:root[data-theme="light"] .contact-wrapper .title,
:root[data-theme="light"] .contact-wrapper > .content {
  color: var(--rg-ink);
}
:root[data-theme="light"] .service-accordion .accordion .accordion-item .accordion-body,
:root[data-theme="light"] .accordion-body,
:root[data-theme="light"] #searchform label {
  color: var(--rg-body);
}
:root[data-theme="light"] .single-blog .blog-content {
  background-color: var(--rg-panel);
  border: 1px solid var(--rg-line);
}
/* Text: the parent hard-codes white headings and #B5B5B5 body text. */
:root[data-theme="light"] #rg-main :is(h1, h2, h3, h4, h5, h6),
:root[data-theme="light"] #rg-main :is(h1, h2, h3, h4, h5, h6) a,
:root[data-theme="light"] .rg-faq summary {
  color: var(--rg-ink);
}
:root[data-theme="light"] #rg-main :is(p, li),
:root[data-theme="light"] #rg-main .head-desc,
:root[data-theme="light"] #rg-main .single-info .info a {
  color: var(--rg-body);
}
/* Header and menus. */
:root[data-theme="light"] .header-area2,
:root[data-theme="light"] .header-area2.sticky {
  background-color: var(--rg-panel);
  border-bottom: 1px solid var(--rg-line);
}
:root[data-theme="light"] .header-area2 .main-menu ul > li > a,
:root[data-theme="light"] .header-area2 .main-menu ul > li .dropdown-icon,
:root[data-theme="light"] .header-area2 .main-menu ul > li::after {
  color: var(--rg-ink);
}
:root[data-theme="light"] .header-area2 .main-menu ul.sub-menu,
:root[data-theme="light"] .header-sidebar {
  background-color: var(--rg-panel);
}
@media (max-width: 991px) {
  :root[data-theme="light"] .header-area2 .main-menu {
    background-color: var(--rg-panel);
    border-right: 1px solid var(--rg-line);
  }
}
:root[data-theme="light"] .header-area2 .nav-right .mobile-menu-btn span,
:root[data-theme="light"] .header-area2 .nav-right .mobile-menu-btn span::before,
:root[data-theme="light"] .header-area2 .nav-right .mobile-menu-btn span::after {
  background-color: var(--rg-ink);
}
:root[data-theme="light"] .header-area2 .nav-right .mobile-menu-btn.active span {
  background-color: transparent;
}
/* The three Elementor sections stored with a dark band (#1B1F23): white panels. */
:root[data-theme="light"] .elementor .elementor-element.elementor-element-3b96ee0,
:root[data-theme="light"] .elementor .elementor-element.elementor-element-a59928e,
:root[data-theme="light"] .elementor .elementor-element.elementor-element-e3504ac {
  background-color: var(--rg-panel);
}
/* Cards and panels drawn on dark images or colours. */
:root[data-theme="light"] .home3-solution-section .solution-card,
:root[data-theme="light"] .home4-trusted-client-area {
  background-color: var(--rg-panel);
  background-image: none;
  border: 1px solid var(--rg-line);
}
:root[data-theme="light"] .home3-solution-section .solution-card:hover {
  background-color: #fff5f5;
}
/* Page-title banner and the "get a quote" area: their background pictures are a red glow
   on black; in the light theme a soft red glow on white instead. */
/* (They are set as inline styles, hence !important.) */
:root[data-theme="light"] .breadcrumbs,
:root[data-theme="light"] .home3-contact-area,
:root[data-theme="light"] .portfolio-details-sm-banner {
  background-color: var(--rg-panel) !important;
  background-image: radial-gradient(ellipse at center, rgba(255, 0, 19, 0.1) 0%, rgba(255, 0, 19, 0) 65%) !important;
}
:root[data-theme="light"] .portfolio-info {
  background-color: var(--rg-panel) !important;
  background-image: none !important;
  border: 1px solid var(--rg-line);
}

/* ==========================================================================
   Cookie banner and "Cookie settings" (assets/js/regnant-analytics.js). Shown only
   once a real GA4 Measurement ID is set in inc/analytics.php.
   ========================================================================== */
.rg-consent[hidden] {
  display: none !important;
}
.rg-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100001;
  padding: 18px 20px;
  background: #141414;
  border-top: 2px solid var(--rg-red);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}
.rg-consent-inner {
  max-width: 1296px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.rg-consent-text {
  flex: 1 1 420px;
}
.rg-consent-title {
  margin: 0 0 4px;
  font-size: 18px;
  color: #fff;
}
.rg-consent p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #d9d9d9;
}
.rg-consent a {
  color: var(--rg-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rg-consent a:hover,
.rg-consent a:focus-visible {
  color: #fff;
}
/* Accept and Reject look exactly alike: equal prominence. */
.rg-consent-actions {
  display: flex;
  gap: 12px;
}
.rg-consent-button {
  min-width: 120px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid #fff;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.rg-consent-button:hover,
.rg-consent-button[aria-pressed="true"] {
  background: #fff;
  color: #0f0f0f;
}
/* While the banner is open, keep focused content and the page end clear of it. */
body.rg-consent-open {
  padding-bottom: var(--rg-consent-height, 0px);
}
html {
  scroll-padding-bottom: var(--rg-consent-height, 0px);
}
.rg-cookie-settings {
  margin-left: 16px;
  padding: 4px 0;
  min-height: 24px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rg-cookie-settings:hover {
  color: #fff;
}

/* ==========================================================================
   Contrast and spacing on the theme's red buttons and content links (A.5 audit)
   ========================================================================== */
/* Red buttons: the theme's #1D1D1D text on the brand red was 4.22:1 (16px text needs
   4.5:1). The site's background black reads the same and gives 4.78:1. On hover the
   theme sweeps a near-black fill in behind white text, which is fine. */
.primary-btn3 {
  color: #0f0f0f;
}
/* Text spacing (WCAG 1.4.12) checked: the button text stays inside the button; the
   overflow a scan reports is the hover fill, which is meant to be clipped. */
/* Links in project and page text (block editor paragraphs): Bootstrap's blue on hover
   was 2.98:1 on the dark page. Same style as the text pages: red, underlined. */
#rg-main .wp-block-paragraph a:not([class]) {
  color: var(--rg-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#rg-main .wp-block-paragraph a:not([class]):hover,
#rg-main .wp-block-paragraph a:not([class]):focus-visible {
  color: #fff;
}

/* ==========================================================================
   Screens of every shape
   ========================================================================== */
/* Ultrawide monitors: the home hero's side pieces (slider dots, social icons,
   "Scroll down", the pause button, the two thin lines and the corner artwork) were
   placed from the screen edges, so on a 3440px screen they sat 800px away from the
   content. Measure them from a centred 1440px frame instead. --rg-frame is 0 up to
   1440px wide, so nothing moves on ordinary screens. */
.banner-area3 {
  --rg-frame: max(0px, calc(50% - 720px));
}
.banner-area3::before {
  left: calc(var(--rg-frame) + 60px);
}
.banner-area3::after {
  right: calc(var(--rg-frame) + 60px);
}
.banner-area3 .swiper-pagination1 {
  left: calc(var(--rg-frame) + 19px) !important; /* the theme sets left: 19px !important */
}
.banner-area3 .social-area {
  right: calc(var(--rg-frame) + 22px);
}
.banner-area3 .scroll-down {
  right: calc(var(--rg-frame) + 40px);
}
.banner-area3 .banner-vector {
  right: var(--rg-frame);
}
.banner3-slider .rg-slider-toggle {
  right: calc(var(--rg-frame) + 12px);
}
/* Full-width marquee lines keep moving edge to edge; their pause button stays by the
   content. */
.rg-marquee-box .rg-marquee-toggle {
  right: max(0px, calc(50% - 720px));
}
/* About's "Built on platforms we trust" strip grew with the screen (8% margins). */
@media (min-width: 1561px) {
  .home4-trusted-client-area {
    max-width: 1296px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* Phones held sideways (short screens): the hero's 215px top padding pushed the
   headline below the first screen. */
@media (orientation: landscape) and (max-height: 500px) {
  .banner-area3 .banner-wrapper {
    padding-top: 125px;
    padding-bottom: 70px;
  }
}

/* ==========================================================================
   Text pages (Privacy Policy, Terms of Service, accessibility statement)
   Pages written in the block editor rather than Elementor. The parent theme runs
   their text the full container width (1296px) in one grey, with links the same
   colour as the text. Give them a readable column, white headings and links that
   look like links (red on the dark page is 4.8:1, and underlined so colour isn't
   the only cue).
   ========================================================================== */
body.page-template-default:not(.elementor-page) .page-content-wrapper > .container > * {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
body.page-template-default:not(.elementor-page) .page-content-wrapper h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  font-size: 28px;
  color: #fff;
}
body.page-template-default:not(.elementor-page) .page-content-wrapper ul li {
  margin-bottom: 8px;
}
body.page-template-default:not(.elementor-page) .page-content-wrapper :is(p, li) a {
  color: var(--rg-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.page-template-default:not(.elementor-page) .page-content-wrapper :is(p, li) a:hover,
body.page-template-default:not(.elementor-page) .page-content-wrapper :is(p, li) a:focus-visible {
  color: #fff;
}
