/*
Theme Name: Mercury Child
Theme URI: https://mercurytheme.com/
Description: Child theme for Mercury theme — 8th Rule Media dark skin
Author: MercuryTheme.com
Author URI: https://mercurytheme.com/
Template: mercury
Version: 3.10-8rm-dark
*/
/* Parent theme loaded via wp_enqueue_style in functions.php */

/* ==========================================================================
   8TH RULE MEDIA — DARK THEME
   Accent orange extracted from original Engin skin.css: #ff844a (primary),
   #ff7651 (hover). Dark base from original sections: #161617.
   ========================================================================== */

:root {
  --8rm-orange: #ff844a;
  --8rm-orange-hover: #ff7651;
  --8rm-bg: #0f0f10;          /* page base — darker than #161617 for depth */
  --8rm-bg-section: #161617;  /* original section dark */
  --8rm-bg-raised: #1d1d1f;   /* cards / raised surfaces */
  --8rm-text: #e8e8e9;
  --8rm-text-dim: #a7a7ab;
  --8rm-border: #2a2a2d;
}

/* ---------- base ---------- */
body {
  background: var(--8rm-bg);
  color: var(--8rm-text);
}

/* Mercury wraps content in these — force dark (Mercury uses .space-box) */
.site, .site-content, .content-area, .entry-content,
#primary, #content, .mercury-content,
.space-box, .space-box.relative,
.space-page-content, .space-content-wrap {
  background: var(--8rm-bg) !important;
  color: var(--8rm-text);
}

/* header / footer wrapper boxes Mercury uses */
.space-header, .space-header-wrap, .space-footer, .space-footer-wrap,
.space-copy, .space-footer-menu {
  background: var(--8rm-bg-section) !important;
  color: var(--8rm-text);
}
.space-header a, .space-footer a { color: var(--8rm-text); }
.space-header a:hover, .space-footer a:hover { color: var(--8rm-orange); }

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  color: #ffffff;
}

p, li, .entry-content {
  color: var(--8rm-text);
}

a {
  color: var(--8rm-orange);
}
a:hover {
  color: var(--8rm-orange-hover);
}

/* ---------- header ---------- */
.site-header, .mercury-header, header.site-header {
  background: var(--8rm-bg-section);
  border-bottom: 1px solid var(--8rm-border);
}
.site-header a, .mercury-header a,
.site-title a, .main-navigation a {
  color: var(--8rm-text);
}
.site-header a:hover, .main-navigation a:hover {
  color: var(--8rm-orange);
}

/* ---------- buttons ---------- */
.wp-block-button__link,
.wp-element-button,
button, input[type="submit"], .wpcf7-submit {
  background: var(--8rm-orange) !important;
  color: #16110c !important;
  border: none;
  border-radius: 4px;
  padding: 0.7em 1.5em;
  font-weight: 600;
  transition: background 0.15s ease;
}
.wp-block-button__link:hover,
.wp-element-button:hover,
button:hover, input[type="submit"]:hover, .wpcf7-submit:hover {
  background: var(--8rm-orange-hover) !important;
  color: #000 !important;
}

/* ---------- group sections keep their own backgrounds ---------- */
/* my converter emits inline style background on dark groups — let it win */
.wp-block-group.has-background {
  padding: 2.5rem 1.5rem;
}

/* stats counters — make numbers orange */
.wp-block-group.has-background p.has-large-font-size strong,
.wp-block-group.has-background p strong {
  color: var(--8rm-orange);
}

/* ---------- brand logo grid ---------- */
/* logos sit in columns; give them a uniform card so white pngs read on dark */
.wp-block-columns .wp-block-column figure.wp-block-image {
  background: var(--8rm-bg-raised);
  border: 1px solid var(--8rm-border);
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wp-block-columns .wp-block-column figure.wp-block-image img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* Mercury page-title banner (white box above content) -> dark */
.space-title-box, .space-title-box.box-100,
.space-title-box-ins, .space-title-box-h1 {
  background: var(--8rm-bg-section) !important;
  color: #fff;
}
.space-title-box h1, .space-title-box-h1 h1, .space-title-box-ins h1 {
  color: #fff !important;
}

/* ---------- contact form (CF7) ---------- */
.wpcf7 {
  background: var(--8rm-bg-raised);
  border: 1px solid var(--8rm-border);
  border-radius: 8px;
  padding: 1.5rem;
}
.wpcf7 label, .wpcf7 p {
  color: var(--8rm-text);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 .wpcf7-form-control {
  background: var(--8rm-bg) !important;
  border: 1px solid var(--8rm-border) !important;
  color: var(--8rm-text) !important;
  border-radius: 4px;
  padding: 0.6em;
  width: 100%;
}
.wpcf7 input:focus, .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--8rm-orange) !important;
}
.wpcf7 .wpcf7-submit {
  width: auto;
}
/* privacy/consent links inside form — keep readable */
.wpcf7 a, .wpcf7 label a {
  color: var(--8rm-orange) !important;
}

/* ---------- lists ---------- */
.wp-block-list li::marker, ol li::marker, ul li::marker {
  color: var(--8rm-orange);
}

/* ---------- footer ---------- */
.site-footer, .mercury-footer, footer.site-footer {
  background: var(--8rm-bg-section);
  border-top: 1px solid var(--8rm-border);
  color: var(--8rm-text-dim);
}
.site-footer a {
  color: var(--8rm-orange);
}

/* ---------- misc ---------- */
/* footer contact paragraphs / dim text anywhere */
.space-footer p, .space-footer div, .space-copy p,
.entry-content p, .entry-content li {
  color: var(--8rm-text);
}

::selection {
  background: var(--8rm-orange);
  color: #16110c;
}
hr, .wp-block-separator {
  border-color: var(--8rm-border);
}
