
/* HIGH CONTRAST FINAL OVERRIDE
   Rule: dark premium background + 100% readable light text everywhere.
   This file is loaded last and intentionally overrides all previous colors.
*/

:root{
  --hc-bg:#080708;
  --hc-bg-2:#110d0f;
  --hc-panel:#181315;
  --hc-panel-2:#21191c;
  --hc-panel-3:#2a2023;
  --hc-text:#ffffff;
  --hc-text-soft:#f7efe3;
  --hc-muted:#e2d6c5;
  --hc-gold:#d9b766;
  --hc-gold-2:#f0d68a;
  --hc-burgundy:#6e1828;
  --hc-burgundy-2:#8a2437;
  --hc-silver:#e3e6ea;
  --hc-line:#4a383d;
}

/* GLOBAL DARK BACKGROUND */
html,
body{
  background:
    radial-gradient(circle at 18% 8%, rgba(138,36,55,.28), transparent 34%),
    radial-gradient(circle at 84% 0%, rgba(217,183,102,.13), transparent 32%),
    linear-gradient(180deg, var(--hc-bg), var(--hc-bg-2) 48%, #070606) !important;
  color:var(--hc-text) !important;
}

/* REMOVE ALL LOW CONTRAST / OPACITY / TEXT SHADOW ISSUES */
*,
*::before,
*::after{
  text-shadow:none !important;
  opacity:1 !important;
}

/* ALL TEXT MUST BE LIGHT */
body,
body *,
p,
li,
span,
small,
label,
div,
section,
article,
main,
header,
nav,
footer,
aside,
blockquote,
td,
th,
dt,
dd{
  color:var(--hc-text-soft) !important;
  -webkit-text-fill-color:var(--hc-text-soft) !important;
}

/* HEADINGS: PURE WHITE */
h1,h2,h3,h4,h5,h6,
h1 *,h2 *,h3 *,h4 *,h5 *,h6 *,
strong,b{
  color:var(--hc-text) !important;
  -webkit-text-fill-color:var(--hc-text) !important;
}

/* PARAGRAPHS / BODY COPY: LIGHT BEIGE FOR READABILITY */
p,p *,li,li *,small,small *,
.muted,[class*="muted"],[class*="secondary"],[class*="gray"],[class*="slate"],
[class*="text-muted"],[class*="description"],[class*="Description"]{
  color:var(--hc-muted) !important;
  -webkit-text-fill-color:var(--hc-muted) !important;
}

/* BACKGROUNDS: FORCE DARK PREMIUM PANELS */
section,
main,
article,
aside,
.card,
[class*="card"],[class*="Card"],
[class*="box"],[class*="Box"],
[class*="tile"],[class*="Tile"],
[class*="item"],[class*="Item"],
[class*="panel"],[class*="Panel"],
[class*="content"],[class*="Content"],
[class*="wrapper"],[class*="Wrapper"]{
  background-color:transparent !important;
  border-color:var(--hc-line) !important;
}

/* Cards and content blocks get readable dark panels */
.card,
article,
[class*="card"],[class*="Card"],
[class*="box"],[class*="Box"],
[class*="tile"],[class*="Tile"],
[class*="item"],[class*="Item"],
[class*="panel"],[class*="Panel"]{
  background:
    linear-gradient(180deg, var(--hc-panel), var(--hc-panel-2)) !important;
  color:var(--hc-text-soft) !important;
  box-shadow:0 18px 50px rgba(0,0,0,.44) !important;
}

/* Hero / banners: dark and readable */
.hero,
[class*="hero"],[class*="Hero"],
.banner,[class*="banner"],[class*="Banner"],
section:first-of-type{
  background:
    linear-gradient(135deg, rgba(110,24,40,.96) 0%, rgba(24,19,21,.98) 52%, rgba(8,7,8,1) 100%) !important;
  color:var(--hc-text) !important;
  border-color:var(--hc-line) !important;
}

/* Any inline style with light background must become dark */
[style*="background:#fff"],
[style*="background: #fff"],
[style*="background-color:#fff"],
[style*="background-color: #fff"],
[style*="background:white"],
[style*="background: white"],
[style*="background-color:white"],
[style*="background-color: white"],
[class*="bg-white"],
[class*="bg-light"],
[class*="light"]{
  background:var(--hc-panel) !important;
  background-color:var(--hc-panel) !important;
  color:var(--hc-text-soft) !important;
}

/* Force children inside those blocks light too */
[style*="background:#fff"] *,
[style*="background: #fff"] *,
[style*="background-color:#fff"] *,
[style*="background-color: #fff"] *,
[style*="background:white"] *,
[style*="background: white"] *,
[style*="background-color:white"] *,
[style*="background-color: white"] *,
[class*="bg-white"] *,
[class*="bg-light"] *,
[class*="light"] *{
  color:var(--hc-text-soft) !important;
  -webkit-text-fill-color:var(--hc-text-soft) !important;
}

/* LINKS: GOLD */
a,
a *,
[class*="link"],
[class*="Link"]{
  color:var(--hc-gold-2) !important;
  -webkit-text-fill-color:var(--hc-gold-2) !important;
}

a:hover,
a:hover *{
  color:#fff2b8 !important;
  -webkit-text-fill-color:#fff2b8 !important;
}

/* BUTTONS: MAX CONTRAST */
button,
.button,
.btn,
a[class*="btn"],
a[class*="button"],
input[type="submit"],
input[type="button"],
[class*="Button"],
[class*="CTA"],
[class*="cta"]{
  background:linear-gradient(135deg, var(--hc-burgundy-2), var(--hc-burgundy)) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border:1px solid rgba(217,183,102,.65) !important;
  box-shadow:0 12px 30px rgba(110,24,40,.34) !important;
  font-weight:800 !important;
}

button *,
.button *,
.btn *,
a[class*="btn"] *,
a[class*="button"] *,
[class*="Button"] *,
[class*="CTA"] *,
[class*="cta"] *{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

/* FORMS */
input,
textarea,
select{
  background:#120f10 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border:1px solid var(--hc-line) !important;
}

input::placeholder,
textarea::placeholder{
  color:#cbbfae !important;
  -webkit-text-fill-color:#cbbfae !important;
}

/* TABLES */
table,thead,tbody,tr,td,th{
  background-color:transparent !important;
  color:var(--hc-text-soft) !important;
  border-color:var(--hc-line) !important;
}

th{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

/* GOLD/SILVER ACCENTS */
em,i,
[class*="accent"],
[class*="gold"],
[class*="Gold"]{
  color:var(--hc-gold-2) !important;
  -webkit-text-fill-color:var(--hc-gold-2) !important;
}

hr,
.divider,
[class*="divider"],
[class*="line"]{
  border-color:rgba(217,183,102,.42) !important;
}

/* REMOVE TEXT GRADIENTS / TRANSPARENT TEXT */
.text-transparent,
[class*="text-transparent"],
.bg-clip-text,
[class*="bg-clip-text"]{
  background:none !important;
  background-image:none !important;
  -webkit-background-clip:initial !important;
  background-clip:initial !important;
  color:var(--hc-text) !important;
  -webkit-text-fill-color:var(--hc-text) !important;
}

/* FOOTER */
footer{
  background:#070606 !important;
  color:var(--hc-text-soft) !important;
  border-top:1px solid var(--hc-line) !important;
}

footer *,
footer p,
footer li,
footer span,
footer small{
  color:var(--hc-muted) !important;
  -webkit-text-fill-color:var(--hc-muted) !important;
}

footer strong,
footer h1,footer h2,footer h3,footer h4{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

/* IMAGES ON DARK THEME */
img{
  filter:saturate(.92) contrast(1.04) !important;
}

/* LAST RESORT: inline color styles that were dark blue/black become light */
[style*="color:#1"],
[style*="color: #1"],
[style*="color:#0"],
[style*="color: #0"],
[style*="color:black"],
[style*="color: black"],
[style*="color:#000"],
[style*="color: #000"],
[style*="color:#1a1a2e"],
[style*="color: #1a1a2e"]{
  color:var(--hc-text-soft) !important;
  -webkit-text-fill-color:var(--hc-text-soft) !important;
}
