/* =====================================================================
   RED & WHITE demo theme ("Demo Three"). Only loaded in demo mode and only
   active under body.demo-redwhite — it recolours the whole site by
   overriding the theme / Modern 1 / --cf-* variables, nothing else.
   ===================================================================== */
body.demo-redwhite {
  /* theme core (header bars, buttons, links all read these) */
  --primary-color: 220, 38, 38;
  --primary-hex: #dc2626;
  --secondary-color: #991b1b;

  /* colourful layer */
  --cf-1: #dc2626;  --cf-1b: #ef4444;  --cf-1-rgb: 220,38,38;  --cf-1b-rgb: 239,68,68;
  --cf-2: #b91c1c;  --cf-2b: #f87171;  --cf-2-rgb: 185,28,28;
  --cf-3: #f43f5e;  --cf-3b: #fb7185;  --cf-3-rgb: 244,63,94;
  --cf-4: #991b1b;  --cf-4b: #dc2626;  --cf-4-rgb: 153,27,27;
  --cf-dark: #1a0709;
  --cf-ink: #1f1315;
  --cf-stage-a: #fff5f5; --cf-stage-b: #ffffff; --cf-stage-c: #fff0f0;
  --cf-green-a: #dc2626; --cf-green-b: #fb7185;
  --cf-grad: linear-gradient(135deg, #dc2626, #ef4444 55%, #b91c1c);
  --cf-grad-cool: linear-gradient(135deg, #b91c1c, #dc2626 60%, #f43f5e);

  background: #fff;
}

/* Modern 1 palette */
body.demo-redwhite .m1 {
  --m1-bg: #fff7f7;
  --m1-ink: #1f1315;
  --m1-muted: #6b5558;
  --m1-line: #fbe0e0;
  --m1-violet: #dc2626;
  --m1-violet-2: #ef4444;
  --m1-pink: #b91c1c;
  --m1-amber: #f43f5e;
  --m1-dark: #1a0709;
  --m1-shadow: 0 20px 45px -22px rgba(185, 28, 28, 0.32);
}
body.demo-redwhite .m1-btn-primary { box-shadow: 0 12px 26px -10px rgba(220, 38, 38, .65); }
body.demo-redwhite .m1 .m1-step-ic,
body.demo-redwhite .m1 .m1-cat-ic,
body.demo-redwhite .m1 .m1-feat-ic,
body.demo-redwhite .m1 .m1-p-thumb,
body.demo-redwhite .m1 .m1-faq summary::after { background: #fff1f1; }
body.demo-redwhite .m1-step:not(:last-child)::after { border-top-color: #f5b5b5; }

/* white page, red accents on structure */
body.demo-redwhite main#maincontent {
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(220,38,38,.07), transparent 60%),
    radial-gradient(800px 400px at 100% 10%, rgba(248,113,113,.08), transparent 60%);
}
body.demo-redwhite .m1-sec-head h2,
body.demo-redwhite .category-title,
body.demo-redwhite .heading2 { background: linear-gradient(90deg, #991b1b, #dc2626); -webkit-background-clip: text; background-clip: text; }

/* dark pieces become deep red-black */
body.demo-redwhite .m1-aurora { background: #1a0709; }
body.demo-redwhite .m1-aurora__blob--1 { background: #dc2626; }
body.demo-redwhite .m1-aurora__blob--2 { background: #f43f5e; }
body.demo-redwhite .m1-aurora__blob--3 { background: #ffffff; opacity: .35; }
body.demo-redwhite .m1-aurora h1 em { background: linear-gradient(90deg, #ffffff, #fecaca, #fb7185); -webkit-background-clip: text; background-clip: text; }
body.demo-redwhite .ftr3, body.demo-redwhite .ftr5 { --ftr-bg: #1a0709; --ftr-muted: #d9b8bb; }
body.demo-redwhite .ftr5 { background: radial-gradient(600px 340px at 0% 0%, rgba(220,38,38,.55), transparent 65%), radial-gradient(560px 340px at 100% 8%, rgba(248,113,113,.3), transparent 65%), #1a0709; }

/* red nav bars with white text, white cards */
body.demo-redwhite .hdr4-nav, body.demo-redwhite .hdr4-nav.sticky { background-image: linear-gradient(90deg, #991b1b, #dc2626); }
body.demo-redwhite .m1-p-card, body.demo-redwhite .m1-blog-card, body.demo-redwhite .m1-t-card,
body.demo-redwhite .m1-why-card, body.demo-redwhite .card-custom { background: #fff; }
body.demo-redwhite .m1-cta, body.demo-redwhite .pd3-hero { background: linear-gradient(120deg, #991b1b, #dc2626 55%, #f43f5e); }
body.demo-redwhite .m1 .m1-cta-btn--solid { color: #b91c1c; }
body.demo-redwhite .hdr5-bar { border-color: rgba(220,38,38,.35); box-shadow: 0 18px 40px -22px rgba(185,28,28,.5), 0 0 0 4px rgba(220,38,38,.07); }

/* small "red & white" badge so visitors know which demo they are on */
body.demo-redwhite::after {
  content: "Demo 3 · Red & White"; position: fixed; left: 14px; bottom: 14px; z-index: 9999;
  padding: 7px 14px; border-radius: 999px; font: 700 12px/1 system-ui, sans-serif; color: #fff;
  background: linear-gradient(135deg, #991b1b, #dc2626); box-shadow: 0 10px 24px -10px rgba(185,28,28,.8); pointer-events: none;
}

/* buttons / tabs that default to near-black become red */
body.demo-redwhite .m1-tab.active { background: linear-gradient(135deg, #b91c1c, #dc2626); box-shadow: 0 8px 18px -8px rgba(185,28,28,.6); }
body.demo-redwhite .m1 .m1-add { background: linear-gradient(135deg, #b91c1c, #dc2626); color: #fff; border-color: transparent; }
body.demo-redwhite .m1 .m1-add:hover { filter: brightness(1.08); }

/* brand marquee names carry inline brand colours; keep the demo strictly red & white */
body.demo-redwhite .m1-brands-track * { color: #b91c1c !important; }
body.demo-redwhite .m1-brands-track *:nth-child(even) { color: #ef4444 !important; }

/* footer legibility on the deep red background */
body.demo-redwhite .ftr3, body.demo-redwhite .ftr5 { --ftr-ink: #ffffff; --ftr-muted: #f3dcde; color: #f3dcde; }
body.demo-redwhite .ftr3 p, body.demo-redwhite .ftr5 p,
body.demo-redwhite .ftr3-about, body.demo-redwhite .ftr5-about,
body.demo-redwhite .ftr3-nl__copy p, body.demo-redwhite .ftr5-nl__copy p,
body.demo-redwhite .ftr3-bottom p, body.demo-redwhite .ftr5-bottom p { color: #f3dcde !important; opacity: 1; }
body.demo-redwhite .ftr3-links a, body.demo-redwhite .ftr5-links a { color: #f3dcde; }
body.demo-redwhite .ftr3-links a:hover, body.demo-redwhite .ftr5-links a:hover { color: #fff; }
body.demo-redwhite .ftr3-heading, body.demo-redwhite .ftr5-heading { color: #fff; -webkit-text-fill-color: #fff; background: none; }
body.demo-redwhite .ftr3-nl__title, body.demo-redwhite .ftr5-nl__title { color: #fff; }
body.demo-redwhite .ftr3-nl, body.demo-redwhite .ftr5-nl { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
body.demo-redwhite .ftr3-nl__input, body.demo-redwhite .ftr5-nl__input { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
body.demo-redwhite .ftr3-nl__input::placeholder, body.demo-redwhite .ftr5-nl__input::placeholder { color: #f0cfd2; }
body.demo-redwhite .ftr3-bottom, body.demo-redwhite .ftr5-bottom { border-top-color: rgba(255,255,255,.2); }
body.demo-redwhite .ftr3-contact i, body.demo-redwhite .ftr5-contact i { color: #fda4af; }
body.demo-redwhite .ftr3-social a, body.demo-redwhite .ftr5-social a { color: #fff; border-color: rgba(255,255,255,.35); }
/* the teal logo disappears on red: render the footer logo white */
body.demo-redwhite .ftr3 .footer-logo img, body.demo-redwhite .ftr5 .footer-logo img { filter: brightness(0) invert(1); }
