/* ==========================================================================
   Malebo Labs brand layer
   Paste into Appearance > Customize > Additional CSS, or let mu-plugins/malebo-brand.php load it.
   Loads AFTER the Vela theme, so it only overrides tokens and a few hard-coded blues.

   Contrast (WCAG): #006838 on white 6.9:1 (AA text). White on #006838 6.9:1.
   Hover #00522C on white 9.4:1. #4CB87F on black 8.5:1 for dark sections.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/PlusJakartaSans-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2");
}

:root {
  /* Brand */
  --accent: #006838;          /* Malebo green, from the logo */
  --accent-hover: #00522C;    /* darker on hover, 9.4:1 on white */
  --app-accent: #006838;      /* default; each app card still sets its own inline */
  --brand-ink: #0B1F17;       /* near-black green for headings and footer */
  --brand-paper: #F7F5EF;     /* warm off-white for soft sections */
  --soft: #F7F5EF;
  --soft-2: #EAE7DD;
  --ink: #14211B;
  --dark: #0B1F17;
  --dark-2: #0F2A1E;
  --dark-soft: #14352A;
  --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Headings in the brand typeface (not Arabic, which keeps its own font stack) */
html:not([lang^="ar"]) h1,
html:not([lang^="ar"]) h2,
html:not([lang^="ar"]) h3,
html:not([lang^="ar"]) .stat strong,
html:not([lang^="ar"]) .hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Selection and focus ring in brand green */
::selection { background: rgba(0, 104, 56, 0.18); }

/* Gradient headline word: green to a lighter green (still 3:1+ for large text) */
.hero h1 .accent-text {
  background: linear-gradient(120deg, #006838, #2FA36B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Gutenberg colour presets used by the theme */
.has-vela-accent-color { color: #006838; }
.has-vela-accent-background-color { background-color: #006838; }

/* Primary buttons: white text on green is 6.9:1 */
.button-primary, .nav-cta { background: var(--accent); color: #fff; }
.button-primary:hover, .nav-cta:hover { background: var(--accent-hover); color: #fff; }
.get-pill:hover { background: var(--accent); color: #fff; }

/* Dark sections: use the lighter green so links and buttons stay readable */
.section--dark {
  --accent: #4CB87F;
  --accent-hover: #6FD09A;
  background: var(--dark);
}
.section--dark .button-primary { background: var(--accent); color: #04140C; }
.section--dark .button-primary:hover { background: var(--accent-hover); color: #04140C; }
.section--dark a { text-decoration-color: rgba(76, 184, 127, 0.6); }

/* Links in article text: green, underlined, with a darker hover */
.entry-content a { color: #006838; }
.entry-content a:hover { color: #00522C; }

/* Footer in brand ink */
.site-footer { background: var(--brand-ink); }

/* Reduced motion: respect the visitor's setting */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Stop-gap content fixes (remove once the theme text itself is corrected)
   ========================================================================== */

/* Hide the hero aggregate rating until there are enough ratings to be persuasive.
   Per-card ratings stay. Delete this rule to bring it back. */
.hero-rating { display: none; }

/* App info panel: the theme pulls Size and Age rating from Apple's lookup API,
   which currently reports Best Whiskey Cocktail Maker as 17+ (App Store shows 18+)
   and slightly different sizes. Hide those two rows rather than show stale facts. */
.info-list > div:nth-child(5),
.info-list > div:nth-child(7) { display: none; }
