/* =========================================================
   IMPRSHR theme fixes — loaded last on every page.
   Dark mode = default. Light mode = body.light-mode
   ========================================================= */

/* ---------- Light mode palette: darker gold for readable text on cream ---------- */
html body.light-mode {
  --accent-gold: #9a7624;
  --accent-gold-dim: #7f611d;
  --text-silver: #474e5c;
  --bg-obsidian: #f7f4ec;
  --bg-gunmetal: #efe9dc;
  --bg-card: #ffffff;
  background-color: var(--bg-obsidian);
}

/* ---------- Light mode header ---------- */
html body.light-mode .lang-globe-btn { color: #1a1d24 !important; }
html body.light-mode .lang-globe-btn:hover { color: var(--accent-gold) !important; }
@media (min-width: 992px) {
  /* the mobile-menu gradient was painting beige boxes behind desktop links */
  html body.light-mode .main-nav { background: none !important; }
}
html body.light-mode .header-cta-logo {
  background: #1a1d24 !important;
  color: #fff !important;
  border-color: #1a1d24 !important;
}
html body.light-mode .header-cta-logo span { -webkit-text-fill-color: #e9cf8a !important; }

/* ---------- Light mode heroes: clean cream veil so text always reads ---------- */
html body.light-mode .hero-section,
html body.light-mode .page-header { position: relative; }
html body.light-mode #hero::before,
html body.light-mode .hero-section::before,
html body.light-mode .page-header::before {
  content: "" !important;
  display: block !important; /* main.css hides it in light mode */
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: linear-gradient(180deg,
      rgba(247, 244, 236, 0.78) 0%,
      rgba(247, 244, 236, 0.86) 55%,
      rgba(247, 244, 236, 1) 100%) !important;
}
html body.light-mode .hero-content,
html body.light-mode .page-content,
html body.light-mode .hero-section .container,
html body.light-mode .page-header .container { position: relative; z-index: 5 !important; }
html body.light-mode .hero-section h1,
html body.light-mode .page-header h1 { color: #14171f !important; text-shadow: none !important; }
html body.light-mode .hero-section p,
html body.light-mode .page-header p { color: #3b4250 !important; text-shadow: none !important; }
html body.light-mode .hero-section .highlight-gold,
html body.light-mode .hero-section .text-gold,
html body.light-mode .page-header .text-gold { color: var(--accent-gold) !important; -webkit-text-fill-color: var(--accent-gold) !important; }

html body.light-mode .hero-section .reveal-text { color: #14171f !important; -webkit-text-fill-color: #14171f !important; background: none !important; }

/* homepage silk layer: max-width:100vw clipped the 120% layer and left a bare strip on the right */
.hero-bg-anim { top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; }

/* ---------- Light mode buttons ---------- */
html body.light-mode .btn-primary {
  background: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
  color: #fff !important;
}
html body.light-mode .btn-primary:hover { background: #7f611d !important; border-color: #7f611d !important; }
html body.light-mode .btn-outline,
html body.light-mode .btn-glass {
  background: transparent !important;
  color: #14171f !important;
  border: 1px solid rgba(20, 23, 31, 0.35) !important;
}
html body.light-mode .btn-outline:hover,
html body.light-mode .btn-glass:hover { border-color: #14171f !important; background: rgba(20, 23, 31, 0.05) !important; }

/* ---------- Light mode text & cards ---------- */
html body.light-mode .section-desc,
html body.light-mode .card-text,
html body.light-mode .about-desc { color: var(--text-silver) !important; }
html body.light-mode .service-card,
html body.light-mode .ninja-faq-card,
html body.light-mode .news-card,
html body.light-mode .process-step {
  background: #fff !important;
  border: 1px solid rgba(20, 23, 31, 0.08) !important;
  box-shadow: 0 6px 24px rgba(20, 23, 31, 0.06) !important;
}

/* ---------- Client logos: keep every logo visible in both modes ---------- */
/* dark/black logos -> white in dark mode */
html body:not(.light-mode) img[src*="Vichy-Logo"],
html body:not(.light-mode) img[src*="carlsberg-srbija_rgb"],
html body:not(.light-mode) img[src*="cebef logo"],
html body:not(.light-mode) img[src*="schwarzkopf-logo"],
html body:not(.light-mode) img[src*="slide_3_img_7"],
html body:not(.light-mode) img[src*="teranova"],
html body:not(.light-mode) img[src*="terranova"],
html body:not(.light-mode) img[src*="urban decay logo"],
html body:not(.light-mode) img[src*="5-koridori-srbije"],
html body:not(.light-mode) img[src*="ranka-grupa"] {
  filter: brightness(0) invert(1) !important;
  opacity: 0.88 !important;
}
/* white/light-grey logos -> dark in light mode */
html body.light-mode img[src*="legend.svg"],
html body.light-mode img[src*="loreal.svg"],
html body.light-mode img[src*="stevomandic"] {
  filter: brightness(0) !important;
  opacity: 0.8 !important;
}
/* empty logo file (IMPP) — hide instead of showing a blank gap */
a:has(> img[src*="IMPP logo"]) { display: none !important; }
img[src*="IMPP logo"] { display: none !important; }

/* ---------- Smooth theme switch ---------- */
body, .site-header, .site-footer, .service-card, .ninja-faq-card, .news-card {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

/* ---------- Logo wordmark gold on white header ---------- */
html body.light-mode .logo-text span,
html body.light-mode .footer-logo span {
  background: linear-gradient(135deg, #9a7624 0%, #c5a028 50%, #8a6a1f 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}

/* ---------- Section headings: had no size rule (fell back to 24px) ---------- */
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -0.5px; margin-bottom: 14px; }

/* ---------- ROI calculator (marketing pages) in light mode ---------- */
html body.light-mode .roi-calculator {
  background: #fff !important;
  border: 1px solid rgba(154, 118, 36, 0.25) !important;
  box-shadow: 0 20px 50px rgba(20, 23, 31, 0.08) !important;
}
html body.light-mode .roi-title,
html body.light-mode .roi-stat-value {
  background: linear-gradient(135deg, #9a7624 0%, #b8902f 50%, #7f611d 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}
html body.light-mode .roi-desc { color: #474e5c !important; }
html body.light-mode .roi-slider-value { color: #14171f !important; text-shadow: none !important; }
html body.light-mode .roi-slider {
  background: linear-gradient(90deg, rgba(154, 118, 36, 0.55), rgba(20, 23, 31, 0.10)) !important;
  border-color: rgba(20, 23, 31, 0.08) !important;
}
html body.light-mode .roi-slider::-webkit-slider-thumb { box-shadow: 0 2px 8px rgba(20, 23, 31, 0.25) !important; }
html body.light-mode .roi-results { border-top-color: rgba(20, 23, 31, 0.08) !important; }
html body.light-mode .roi-stat-label { color: #5a6270 !important; }

/* Firefox had no slider thumb style at all (calculator.css only styles WebKit) */
.roi-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #c3a155, #a6864f); border: 2px solid #fff; cursor: pointer; box-shadow: 0 0 16px rgba(195, 161, 85, 0.7); }
.roi-slider::-moz-range-progress { height: 8px; border-radius: 4px; background: #c3a155; }
html body.light-mode .roi-slider::-moz-range-thumb { background: #9a7624; box-shadow: 0 2px 8px rgba(20, 23, 31, 0.25); }
html body.light-mode .roi-slider::-moz-range-progress { background: #9a7624; }

/* ---------- Light mode: components found by contrast scan ---------- */
/* AI page process cards were dark boxes with dark text */
html body.light-mode .ai-step {
  background: #fff !important;
  border: 1px solid rgba(20, 23, 31, 0.08) !important;
  box-shadow: 0 6px 24px rgba(20, 23, 31, 0.06) !important;
}
html body.light-mode .ai-step p { color: #474e5c !important; }
/* marketing timeline badges */
html body.light-mode .timeline-step-badge { color: #9a7624 !important; border-color: rgba(154, 118, 36, 0.35) !important; }
/* PR page white list text */
html body.light-mode li.text-white,
html body.light-mode .text-white:not(.btn):not([class*="btn-"]) { color: #1a1d24 !important; }
/* product badges with fixed light-grey text */
html body.light-mode [style*="color: #a0a0a0"] { color: #5a6270 !important; }
/* image banners with text on top (e.g. Lobbying): keep them dark with white text in both modes */
html body.light-mode .lobbying-card,
html body.light-mode div:has(> img[src*="global_connectivity_network"][style*="opacity"]) { background: #0b0c10 !important; }
html body.light-mode .lobbying-card h3:not(#_):not(#_),
html body.light-mode .lobbying-card p:not(#_):not(#_),
html body.light-mode div:has(> img[src*="global_connectivity_network"][style*="opacity"]) h3:not(#_):not(#_),
html body.light-mode div:has(> img[src*="global_connectivity_network"][style*="opacity"]) p:not(#_):not(#_) { color: #fff !important; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
