/* Red Green IT Solutions Ltd — brand-only colour layer and CMS-only elements.
   The supplied public/assets/css/main.css remains the authority for all template
   spacing, typography, sizing, transitions, animations, hover and layout rules. */
:root {
    --rg-red: #b91c2c;
    --rg-red-hover: #981627;
    --rg-green: #10763a;
    --rg-green-hover: #07562b;
    --rg-ink: #162b26;
    --rg-soft: #e9f6ec;
    --ztc-bg-main-bg-1: #b91c2c;
    --ztc-bg-main-bg-2: #10763a;
    --ztc-bg-main-bg-3: #b91c2c;
    --ztc-bg-main-bg-4: #cbec5f;
}

/* Keep built-in pseudo-element button transitions, recolour the layers only. */
.rg-template-site .theme-btn10::after { background: var(--rg-green); }
.rg-template-site .theme-btn10::before { background: var(--rg-red); }
.rg-template-site .theme-btn11::before { background: var(--rg-green-hover); }
.rg-template-site .theme-btn10,
.rg-template-site .theme-btn10:hover,
.rg-template-site .theme-btn11,
.rg-template-site .theme-btn11:hover { color: #fff; }
.rg-template-site .theme-btn1 { background-color: var(--rg-green); color: #fff; }
.rg-template-site .theme-btn1:hover { background-color: var(--rg-red); color: #fff; }
.rg-template-site .cta-btn1 { color: var(--rg-green-hover); }
.rg-template-site .cta-btn1:hover { color: #fff; background: var(--rg-green-hover); }
.rg-template-site .cta-btn2:hover { background-color: var(--rg-green-hover); border-color: var(--rg-green-hover); color: #fff; }
.rg-template-site .heading6 span.span { background: var(--rg-green); color: #fff; }
.rg-template-site .heading6 h2 span { color: var(--rg-green-hover); }
.rg-template-site .heading6 h4 a:hover { color: var(--rg-red); }
.rg-template-site .tp-slider-title-box h1 span.color { color: #d0f69f; }
.rg-template-site .tp-slider-arrow-box button { color: var(--rg-green-hover); }
.rg-template-site .tp-slider-arrow-box button:hover { background: var(--rg-green-hover); color: #fff; }
.rg-template-site .service6 .service-box::before { background-color: var(--rg-green); }
.rg-template-site .service6 .service-box:hover .heading6 h4 a,
.rg-template-site .service6 .service-box:hover .heading6 p,
.rg-template-site .service6 .service-box:hover .heading6 .learn { color: #fff; }
.rg-template-site .case9 .single-slider .heading-area .arrow { background-color: var(--rg-green); color: #fff; }
.rg-template-site .case9 .single-slider:hover .heading-area .arrow { background-color: var(--rg-red); color: #fff; }
.rg-template-site .team6 .team-box .heading-area h4 a:hover { color: var(--rg-red); }
.rg-template-site .team6 .team-box .image .hover-area ul li a:hover { background: var(--rg-green); color: #fff; }
.rg-template-site .faq6 .accordion-button:not(.collapsed) { color: var(--rg-green-hover); }
.rg-template-site .faq6 .accordion-button:focus-visible { outline: 2px solid var(--rg-green); outline-offset: 2px; }
.rg-template-site .header-area6 .main-menu-ex ul li > a:hover,
.rg-template-site .header-area6 .main-menu-ex ul li > a:focus-visible { color: var(--rg-green-hover); }
.rg-template-site .footer5 .copyright-area { background: var(--rg-green-hover); }
.rg-template-site .footer5 .copyright-area .coppyright p { color: #fff; }

/* The original template's preloader and scroll progress controls are restored
   in Blade. Only their colours/keyboard focus are changed here. */
.rg-template-site.no-scroll-y { overflow: hidden; }
.rg-template-site .ctn-preloader.ctn-preloader1 .loader-section-left { background: #103c2b; }
.rg-template-site .ctn-preloader.ctn-preloader1 .loader-section-right { background: #671724; }
.rg-template-site .ctn-preloader .animation-preloader .spinner { border-top-color: #e6ffd9; }
.rg-template-site .ctn-preloader .animation-preloader .txt-loading .letters-loading:before { color: #fff; }
.rg-template-site .progress-wrap { border: 0; padding: 0; background: #fff; }
.rg-template-site .progress-wrap::before,
.rg-template-site .progress-wrap::after { color: var(--rg-green-hover); font-family: "Font Awesome 6 Pro"; font-weight: 900; }
.rg-template-site .progress-wrap svg.progress-circle path { stroke: var(--rg-green); }
.rg-template-site .progress-wrap:hover svg.progress-circle path { stroke: var(--rg-red); }
.rg-template-site .progress-wrap:focus-visible,
.rg-template-site a:focus-visible,
.rg-template-site button:focus-visible { outline: 2px solid var(--rg-green); outline-offset: 3px; }

/* CMS additions absent from the stock template; no stock template elements
   have their dimensions or positioning changed in this section. */
.rg-template-site .rg-top-slogan { color: #e0ffe4; font-weight: 700; }
.rg-template-site .header-top .pera p { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.rg-template-site .rg-about-badge { position: absolute; bottom: 20px; left: 24px; display: inline-flex; align-items: center; gap: 12px; color: #fff; background: var(--rg-green-hover); padding: 12px 18px; border-radius: 6px; font-weight: 700; }
.rg-template-site .rg-about-badge small { font-weight: 500; }
.rg-template-site .rg-profile-link,
.rg-template-site .rg-document-card .learn { color: var(--rg-green-hover); font-weight: 700; }
.rg-template-site .rg-team-bio { color: #475569; line-height: 1.6; }
.rg-template-site .rg-founder-role,
.rg-template-site .rg-project-category { color: var(--rg-red); font-weight: 700; }
.rg-template-site .rg-founder-headline { color: var(--rg-green-hover); font-weight: 700; }
.rg-template-site .rg-founder-quote { border-left: 4px solid var(--rg-green); padding: 16px 20px; background: var(--rg-soft); white-space: pre-line; }
.rg-template-site .rg-founder-image img { max-width: 100%; }
.rg-template-site .rg-preserve-lines { white-space: pre-line; }
.rg-template-site .rg-content-section { row-gap: 24px; }
.rg-template-site .rg-section-light { background: #f6faf7; }
.rg-template-site .rg-demo-link { color: var(--rg-green-hover); font-weight: 700; }
.rg-template-site .rg-project-category { display: inline-block; text-transform: uppercase; font-size: 13px; }
.rg-template-site .rg-document-card { border: 1px solid #e1e9e2; padding: 22px; height: 100%; }
.rg-template-site .rg-document-card .icon { color: var(--rg-green); }
.rg-template-site .rg-footer-address,
.rg-template-site .rg-footer-number { line-height: 1.7; }
.rg-template-site .rg-footer-link { display: inline-block; margin-top: 12px; }
.rg-template-site .rg-honeypot { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden; }
.rg-template-site .rg-testimonial-card { background: #fff; border: 1px solid #e0e9e3; padding: 28px; height: 100%; }
.rg-template-site .rg-testimonial-card .rg-quote-icon { color: var(--rg-green); }
.rg-template-site .rg-testimonial-author { color: var(--rg-ink); font-weight: 700; }
.rg-template-site .rg-testimonial-card small { color: var(--rg-red); }
.rg-template-site .rg-marquee-item { display: inline-flex; align-items: center; white-space: nowrap; padding: 16px 26px; }
.rg-template-site .rg-marquee-star { color: var(--rg-green); padding-right: 12px; }
.rg-template-site .marquee-wrap { overflow: hidden; }
.rg-template-site .marquee-text { display: flex; width: max-content; animation: rg-marquee 40s linear infinite; }
@keyframes rg-marquee { to { transform: translateX(-50%); } }
.rg-template-site .main-menu-ex li.has-dropdown { position: relative; }
.rg-template-site .main-menu-ex ul.rg-dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; padding: 10px 0; background: #fff; z-index: 50; box-shadow: 0 10px 35px #0002; }
.rg-template-site .main-menu-ex li.has-dropdown:hover > ul.rg-dropdown,
.rg-template-site .main-menu-ex li.has-dropdown:focus-within > ul.rg-dropdown { display: block; }
.rg-template-site .main-menu-ex ul.rg-dropdown li { display: block; }
.rg-template-site .main-menu-ex ul.rg-dropdown a { display: block; padding: 10px 18px; color: var(--rg-ink); }
.rg-template-site .main-menu-ex ul.rg-dropdown a:hover { color: var(--rg-green-hover); }

/* Mobile navigation is CMS-authored, not the original template's nested menu.
   It must have its own slide-in rules, isolated from the public template. */
.rg-template-site .mobile-header-elements { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.rg-template-site .mobile-logo img, .rg-template-site .mobile-sidebar .logo-m img { max-width: 110px; max-height: 66px; object-fit: contain; }
.rg-template-site .rg-mobile-toggle { border: 0; background: var(--rg-soft); color: var(--rg-green-hover); padding: 10px 14px; cursor: pointer; }
.rg-template-site #rgMobileSidebar { position: fixed; inset: 0 auto 0 0; width: min(340px, 90vw); height: 100dvh; overflow: auto; z-index: 10002; visibility: hidden; transform: translateX(-105%); transition: transform .3s ease, visibility .3s; background: #fff; box-shadow: 10px 0 40px #0003; }
.rg-template-site #rgMobileSidebar.rg-open { visibility: visible; transform: translateX(0); }
.rg-template-site #rgMobileSidebar .logo-m { padding: 22px; }
.rg-template-site #rgMobileSidebar .rg-mobile-close { position: absolute; top: 18px; right: 14px; border: 0; background: var(--rg-soft); color: var(--rg-red); padding: 8px 11px; }
.rg-template-site #rgMobileSidebar .mobile-nav { padding: 12px 20px; }
.rg-template-site #rgMobileSidebar .mobile-nav li { border-bottom: 1px solid #e1ebe4; }
.rg-template-site #rgMobileSidebar .mobile-nav a { display: block; color: var(--rg-ink); padding: 12px 6px; }
.rg-template-site #rgMobileSidebar .mobile-nav a:hover { color: var(--rg-green-hover); }
.rg-template-site #rgMobileSidebar .rg-mobile-submenu { padding-left: 16px; }
.rg-template-site #rgMobileSidebar .mobile-button, .rg-template-site #rgMobileSidebar .rg-mobile-address { padding: 18px 24px; }
.rg-template-site #rgMobileSidebar .menu-btn2 { background: var(--rg-green); color: #fff; display: inline-block; padding: 12px 18px; }
.rg-mobile-overlay { position: fixed; inset: 0; z-index: 10001; background: #001b13a8; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility .3s; }
.rg-mobile-overlay.rg-open { visibility: visible; opacity: 1; pointer-events: auto; }
body.rg-menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .rg-template-site .marquee-text { animation: none; }
    .rg-template-site .rg-mobile-overlay, .rg-template-site #rgMobileSidebar { transition: none; }
    .rg-template-site .progress-wrap, .rg-template-site .ctn-preloader .loader-section { transition-duration: .01ms; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}
